@dataloop-ai/components 0.19.76 → 0.19.78

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.76",
3
+ "version": "0.19.78",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -22,7 +22,7 @@
22
22
  "check-only": "if grep -E -H -r --exclude-dir=.git --exclude-dir=node_modules --exclude=*.json --exclude=*.yml '^(describe|it).only' .; then echo 'Found only in test files' && exit 1; fi"
23
23
  },
24
24
  "dependencies": {
25
- "@dataloop-ai/icons": "^3.0.14",
25
+ "@dataloop-ai/icons": "^3.0.18",
26
26
  "@types/flat": "^5.0.2",
27
27
  "@types/lodash": "^4.14.184",
28
28
  "chart.js": "^3.9.1",
@@ -386,12 +386,6 @@ export default defineComponent({
386
386
  let lastSearchQuery: string
387
387
 
388
388
  const updateJSONQuery = () => {
389
- if (lastSearchQuery === searchQuery.value) {
390
- return null
391
- } else {
392
- lastSearchQuery = searchQuery.value
393
- }
394
-
395
389
  try {
396
390
  const bracketless = removeBrackets(searchQuery.value)
397
391
  const cleanedAliases = revertAliases(bracketless, aliases.value)
@@ -610,10 +604,13 @@ export default defineComponent({
610
604
  return
611
605
  }
612
606
 
613
- const toSearch = updateJSONQuery()
614
- if (toSearch) {
615
- emit('search', toSearch)
616
- showSuggestions.value = false
607
+ if (lastSearchQuery !== searchQuery.value) {
608
+ lastSearchQuery = searchQuery.value
609
+ const toSearch = updateJSONQuery()
610
+ if (toSearch) {
611
+ emit('search', toSearch)
612
+ showSuggestions.value = false
613
+ }
617
614
  }
618
615
  }
619
616
 
@@ -99,7 +99,7 @@ export default defineComponent({
99
99
 
100
100
  const computedSortIcon = computed<string>(() => {
101
101
  return props.pagination.descending
102
- ? 'icon-dl-arrowdown'
102
+ ? 'icon-dl-arrow-down'
103
103
  : 'icon-dl-arrow-up'
104
104
  })
105
105