@appbaseio/reactivesearch-vue 1.35.5 → 1.36.0
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 +15 -11
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +2 -2
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +14 -10
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +14 -10
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -10288,12 +10288,23 @@
|
|
|
10288
10288
|
this.updateQueryHandler(this.componentId, this.$data.currentValue, this.$props);
|
|
10289
10289
|
}
|
|
10290
10290
|
},
|
|
10291
|
+
isLoading: function isLoading(newVal) {
|
|
10292
|
+
if (newVal) {
|
|
10293
|
+
this.suggestions = [];
|
|
10294
|
+
}
|
|
10295
|
+
},
|
|
10291
10296
|
suggestions: function suggestions(newVal) {
|
|
10297
|
+
if (this.isLoading) {
|
|
10298
|
+
this.normalizedSuggestions = [];
|
|
10299
|
+
return;
|
|
10300
|
+
}
|
|
10292
10301
|
if (Array.isArray(newVal) && this.$data.currentValue.trim().length) {
|
|
10293
10302
|
// shallow check allows us to set suggestions even if the next set
|
|
10294
10303
|
// of suggestions are same as the current one
|
|
10295
10304
|
this.$emit('suggestions', newVal);
|
|
10296
|
-
this.normalizedSuggestions
|
|
10305
|
+
if (!isEqual$4(this.normalizedSuggestions, newVal)) {
|
|
10306
|
+
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
10307
|
+
}
|
|
10297
10308
|
}
|
|
10298
10309
|
},
|
|
10299
10310
|
selectedValue: function selectedValue(newVal, oldVal) {
|
|
@@ -10427,9 +10438,7 @@
|
|
|
10427
10438
|
return;
|
|
10428
10439
|
}
|
|
10429
10440
|
// Refresh recent searches when value becomes empty
|
|
10430
|
-
if (!value &&
|
|
10431
|
-
_this.resetStoreForComponent(props.componentId);
|
|
10432
|
-
} else if (!value && _this.currentValue && _this.enableRecentSearches) {
|
|
10441
|
+
if (props.enableDefaultSuggestions && !value && _this.currentValue && _this.enableRecentSearches) {
|
|
10433
10442
|
_this.getRecentSearches();
|
|
10434
10443
|
}
|
|
10435
10444
|
if (isTagsMode) {
|
|
@@ -10487,7 +10496,7 @@
|
|
|
10487
10496
|
_this.$emit('suggestions', _this.suggestions);
|
|
10488
10497
|
} else if (!value) {
|
|
10489
10498
|
// reset suggestions
|
|
10490
|
-
_this.
|
|
10499
|
+
_this.normalizedSuggestions = [];
|
|
10491
10500
|
// invoke on suggestions
|
|
10492
10501
|
_this.$emit('suggestions', _this.suggestions);
|
|
10493
10502
|
}
|
|
@@ -10498,11 +10507,6 @@
|
|
|
10498
10507
|
if (props === void 0) {
|
|
10499
10508
|
props = this.$props;
|
|
10500
10509
|
}
|
|
10501
|
-
if (!value && props.enableDefaultSuggestions === false) {
|
|
10502
|
-
// clear Component data from store
|
|
10503
|
-
this.resetStoreForComponent(props.componentId);
|
|
10504
|
-
return;
|
|
10505
|
-
}
|
|
10506
10510
|
var defaultQueryOptions;
|
|
10507
10511
|
var query = DataSearch.defaultQuery(value, props);
|
|
10508
10512
|
if (this.defaultQuery) {
|
|
@@ -26252,7 +26256,7 @@
|
|
|
26252
26256
|
});
|
|
26253
26257
|
}
|
|
26254
26258
|
|
|
26255
|
-
var version = "1.
|
|
26259
|
+
var version = "1.36.0";
|
|
26256
26260
|
|
|
26257
26261
|
var components$1 = [RLConnected, ResultCard, ResultList, ReactiveBase, DSConnected, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
|
|
26258
26262
|
function install (Vue) {
|