@caido-utils/components 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -213,7 +213,6 @@ function onScroll() {
|
|
|
213
213
|
"
|
|
214
214
|
@mousedown.prevent="acceptSuggestion(item)"
|
|
215
215
|
>
|
|
216
|
-
<span class="text-surface-500 text-xs w-3 shrink-0">x</span>
|
|
217
216
|
<span class="flex-1">{{ item.value }}</span>
|
|
218
217
|
<span v-if="item.description" class="text-surface-500 text-xs">{{
|
|
219
218
|
item.description
|
|
@@ -173,7 +173,15 @@ export function getSuggestions(query, cursorPos) {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
if (currentToken === "filter") {
|
|
176
|
-
return {
|
|
176
|
+
return {
|
|
177
|
+
category: "Filters",
|
|
178
|
+
items: FILTER_VALUES.map((f) => ({
|
|
179
|
+
...f,
|
|
180
|
+
value: "filter:" + f.value
|
|
181
|
+
})),
|
|
182
|
+
partial: "filter",
|
|
183
|
+
suffix: " "
|
|
184
|
+
};
|
|
177
185
|
}
|
|
178
186
|
const upperPreceding = preceding.toUpperCase();
|
|
179
187
|
if (!preceding || upperPreceding.endsWith("AND") || upperPreceding.endsWith("OR") || preceding.endsWith("(")) {
|