-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(supersearch): Add qualifier pill plugin (#1176)
* Add extension with decorators * Atomic ranges * Insert quotes on empty value * Keep extension and extension-specific components together * Export qualifier plugin from supersearch package * Remove sveltekit specific import Imports from '$app/stores' are SvelteKit-specific imports which would require @sveltejs/kit to be added as a peer-dependency, resulting in larger bundle-sizes for non-svelte implementations. * Add lxlquery language and qualifier plugin to demo app * Add qualifier colors to demo page * Capitalize lezer rules for qualifiers * Use visibleRanges to only render widgets when visible * Prepend qualifier classes with lxl * Fix tests --------- Co-authored-by: Johan Bisse Mattsson <[email protected]> Co-authored-by: Johan Bisse Mattsson <[email protected]>
- Loading branch information
1 parent
f29cb78
commit bf186fb
Showing
15 changed files
with
331 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
.lxlq.qualifier { | ||
color: green; | ||
.lxl-qualifier, | ||
.lxl-qualifier-remove { | ||
background: rgba(14, 113, 128, 0.15); | ||
padding: 2px 5px; | ||
} | ||
|
||
.lxlq.qualifier-key { | ||
.lxl-qualifier-key { | ||
color: green; | ||
} | ||
|
||
.lxlq.qualifier-value { | ||
color: green; | ||
} | ||
|
||
.lxlq.equal-operator, | ||
.lxlq.compare-operator { | ||
color: darkolivegreen; | ||
} | ||
|
||
.lxlq.boolean-operator { | ||
color: #935493; | ||
} | ||
|
||
.lxlq.boolean-query { | ||
.lxl-boolean-query { | ||
color: purple; | ||
} | ||
|
||
.lxlq.wildcard { | ||
color: orange; | ||
.lxl-wildcard { | ||
color: purple; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.