@dataloop-ai/components 0.16.17 → 0.16.19
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.
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
icon="icon-dl-search"
|
|
28
28
|
size="m"
|
|
29
29
|
:disabled="disabled"
|
|
30
|
-
@click="
|
|
30
|
+
@click="emitSearchQuery"
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
33
33
|
<!-- <div class="dl-smart-search__filters-btn-wrapper">
|
|
@@ -193,8 +193,6 @@ export default defineComponent({
|
|
|
193
193
|
findSuggestions(inputModel.value)
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
const log = console.dir
|
|
197
|
-
|
|
198
196
|
return {
|
|
199
197
|
uuid: `dl-smart-search-${v4()}`,
|
|
200
198
|
inputModel,
|
|
@@ -209,8 +207,7 @@ export default defineComponent({
|
|
|
209
207
|
isFocused,
|
|
210
208
|
handleInputModel,
|
|
211
209
|
setFocused,
|
|
212
|
-
findSuggestions
|
|
213
|
-
log
|
|
210
|
+
findSuggestions
|
|
214
211
|
}
|
|
215
212
|
},
|
|
216
213
|
computed: {
|
|
@@ -276,6 +273,13 @@ export default defineComponent({
|
|
|
276
273
|
this.activeQuery = query
|
|
277
274
|
this.$emit('search-query', this.activeQuery)
|
|
278
275
|
},
|
|
276
|
+
emitSearchQuery() {
|
|
277
|
+
this.activeQuery = {
|
|
278
|
+
name: '',
|
|
279
|
+
query: this.inputModel
|
|
280
|
+
}
|
|
281
|
+
this.$emit('search-query', this.activeQuery)
|
|
282
|
+
},
|
|
279
283
|
emitRemoveQuery() {
|
|
280
284
|
if (!this.activeQuery) return
|
|
281
285
|
this.$emit('remove-query', this.activeQuery)
|