@appbaseio/reactivesearch-vue 1.36.1 → 1.36.3
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/dist/@appbaseio/reactivesearch-vue.umd.js +18 -25
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +3 -3
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +16 -21
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +16 -21
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
package/dist/cjs/DataSearch.js
CHANGED
|
@@ -301,23 +301,12 @@ var DataSearch = {
|
|
|
301
301
|
this.updateQueryHandler(this.componentId, this.$data.currentValue, this.$props);
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
|
-
isLoading: function isLoading(newVal) {
|
|
305
|
-
if (newVal) {
|
|
306
|
-
this.suggestions = [];
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
304
|
suggestions: function suggestions(newVal) {
|
|
310
|
-
if (this.isLoading) {
|
|
311
|
-
this.normalizedSuggestions = [];
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
305
|
if (Array.isArray(newVal) && this.$data.currentValue.trim().length) {
|
|
315
306
|
// shallow check allows us to set suggestions even if the next set
|
|
316
307
|
// of suggestions are same as the current one
|
|
317
308
|
this.$emit('suggestions', newVal);
|
|
318
|
-
|
|
319
|
-
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
320
|
-
}
|
|
309
|
+
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
321
310
|
}
|
|
322
311
|
},
|
|
323
312
|
selectedValue: function selectedValue(newVal, oldVal) {
|
|
@@ -450,8 +439,9 @@ var DataSearch = {
|
|
|
450
439
|
if (isTagsMode && isEqual(value, _this.selectedTags)) {
|
|
451
440
|
return;
|
|
452
441
|
}
|
|
453
|
-
|
|
454
|
-
|
|
442
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
443
|
+
_this.resetStoreForComponent(props.componentId);
|
|
444
|
+
} else if (!value && _this.currentValue && _this.enableRecentSearches) {
|
|
455
445
|
_this.getRecentSearches();
|
|
456
446
|
}
|
|
457
447
|
if (isTagsMode) {
|
|
@@ -555,13 +545,18 @@ var DataSearch = {
|
|
|
555
545
|
// Update calculated default query in store
|
|
556
546
|
index.updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
557
547
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
548
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
549
|
+
// clear Component data from store
|
|
550
|
+
this.resetStoreForComponent(props.componentId);
|
|
551
|
+
} else {
|
|
552
|
+
this.setQueryOptions(this.internalComponent, _rollupPluginBabelHelpers._extends({}, this.queryOptions, defaultQueryOptions), execute);
|
|
553
|
+
this.updateQuery({
|
|
554
|
+
componentId: this.internalComponent,
|
|
555
|
+
query: query,
|
|
556
|
+
value: value,
|
|
557
|
+
componentType: constants.componentTypes.dataSearch
|
|
558
|
+
}, execute);
|
|
559
|
+
}
|
|
565
560
|
},
|
|
566
561
|
updateQueryHandler: function updateQueryHandler(componentId, value, props) {
|
|
567
562
|
var customQuery = props.customQuery,
|
package/dist/cjs/version.js
CHANGED
package/dist/es/DataSearch.js
CHANGED
|
@@ -294,23 +294,12 @@ var DataSearch = {
|
|
|
294
294
|
this.updateQueryHandler(this.componentId, this.$data.currentValue, this.$props);
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
|
-
isLoading: function isLoading(newVal) {
|
|
298
|
-
if (newVal) {
|
|
299
|
-
this.suggestions = [];
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
297
|
suggestions: function suggestions(newVal) {
|
|
303
|
-
if (this.isLoading) {
|
|
304
|
-
this.normalizedSuggestions = [];
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
298
|
if (Array.isArray(newVal) && this.$data.currentValue.trim().length) {
|
|
308
299
|
// shallow check allows us to set suggestions even if the next set
|
|
309
300
|
// of suggestions are same as the current one
|
|
310
301
|
this.$emit('suggestions', newVal);
|
|
311
|
-
|
|
312
|
-
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
313
|
-
}
|
|
302
|
+
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
314
303
|
}
|
|
315
304
|
},
|
|
316
305
|
selectedValue: function selectedValue(newVal, oldVal) {
|
|
@@ -443,8 +432,9 @@ var DataSearch = {
|
|
|
443
432
|
if (isTagsMode && isEqual(value, _this.selectedTags)) {
|
|
444
433
|
return;
|
|
445
434
|
}
|
|
446
|
-
|
|
447
|
-
|
|
435
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
436
|
+
_this.resetStoreForComponent(props.componentId);
|
|
437
|
+
} else if (!value && _this.currentValue && _this.enableRecentSearches) {
|
|
448
438
|
_this.getRecentSearches();
|
|
449
439
|
}
|
|
450
440
|
if (isTagsMode) {
|
|
@@ -548,13 +538,18 @@ var DataSearch = {
|
|
|
548
538
|
// Update calculated default query in store
|
|
549
539
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
550
540
|
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
541
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
542
|
+
// clear Component data from store
|
|
543
|
+
this.resetStoreForComponent(props.componentId);
|
|
544
|
+
} else {
|
|
545
|
+
this.setQueryOptions(this.internalComponent, _extends({}, this.queryOptions, defaultQueryOptions), execute);
|
|
546
|
+
this.updateQuery({
|
|
547
|
+
componentId: this.internalComponent,
|
|
548
|
+
query: query,
|
|
549
|
+
value: value,
|
|
550
|
+
componentType: componentTypes.dataSearch
|
|
551
|
+
}, execute);
|
|
552
|
+
}
|
|
558
553
|
},
|
|
559
554
|
updateQueryHandler: function updateQueryHandler(componentId, value, props) {
|
|
560
555
|
var customQuery = props.customQuery,
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@appbaseio/analytics": "^1.1.1",
|
|
38
|
-
"@appbaseio/reactivecore": "9.15.
|
|
38
|
+
"@appbaseio/reactivecore": "9.15.2",
|
|
39
39
|
"@appbaseio/vue-emotion": "0.4.4",
|
|
40
40
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
41
41
|
"appbase-js": "^5.3.4",
|