@appbaseio/reactivesearch-vue 1.36.1 → 1.36.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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +76 -111
- 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 +74 -107
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +74 -107
- package/dist/es/version.js +1 -1
- package/package.json +87 -87
|
@@ -6892,15 +6892,13 @@
|
|
|
6892
6892
|
return function (dispatch) {
|
|
6893
6893
|
dispatch(setRawData(componentId, null));
|
|
6894
6894
|
dispatch(setCustomData(null, componentId));
|
|
6895
|
-
dispatch(setPromotedResults([], componentId));
|
|
6896
|
-
dispatch(setPopularSuggestions([], componentId));
|
|
6897
|
-
dispatch(setDefaultPopularSuggestions([], componentId));
|
|
6898
6895
|
dispatch((0, hits.updateAggs)(componentId, null));
|
|
6899
6896
|
dispatch((0, hits.updateCompositeAggs)(componentId, {}));
|
|
6900
6897
|
dispatch((0, hits.updateHits)(componentId, {
|
|
6901
6898
|
hits: [],
|
|
6902
6899
|
total: 0
|
|
6903
6900
|
}, 0));
|
|
6901
|
+
dispatch(logQuery(componentId, null));
|
|
6904
6902
|
};
|
|
6905
6903
|
}
|
|
6906
6904
|
function setLastUsedAppbaseQuery(query) {
|
|
@@ -18720,8 +18718,7 @@
|
|
|
18720
18718
|
selectedTags: [],
|
|
18721
18719
|
isOpen: false,
|
|
18722
18720
|
normalizedSuggestions: [],
|
|
18723
|
-
isPending: false
|
|
18724
|
-
isSuggestionSelected: false
|
|
18721
|
+
isPending: false
|
|
18725
18722
|
};
|
|
18726
18723
|
this.internalComponent = props.componentId + "__internal";
|
|
18727
18724
|
return this.__state;
|
|
@@ -18961,23 +18958,12 @@
|
|
|
18961
18958
|
this.updateQueryHandler(this.componentId, this.$data.currentValue, this.$props);
|
|
18962
18959
|
}
|
|
18963
18960
|
},
|
|
18964
|
-
isLoading: function isLoading(newVal) {
|
|
18965
|
-
if (newVal) {
|
|
18966
|
-
this.suggestions = [];
|
|
18967
|
-
}
|
|
18968
|
-
},
|
|
18969
18961
|
suggestions: function suggestions(newVal) {
|
|
18970
|
-
if (this.isLoading) {
|
|
18971
|
-
this.normalizedSuggestions = [];
|
|
18972
|
-
return;
|
|
18973
|
-
}
|
|
18974
18962
|
if (Array.isArray(newVal) && this.$data.currentValue.trim().length) {
|
|
18975
18963
|
// shallow check allows us to set suggestions even if the next set
|
|
18976
18964
|
// of suggestions are same as the current one
|
|
18977
18965
|
this.$emit('suggestions', newVal);
|
|
18978
|
-
|
|
18979
|
-
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
18980
|
-
}
|
|
18966
|
+
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
18981
18967
|
}
|
|
18982
18968
|
},
|
|
18983
18969
|
selectedValue: function selectedValue(newVal, oldVal) {
|
|
@@ -19111,11 +19097,12 @@
|
|
|
19111
19097
|
return;
|
|
19112
19098
|
}
|
|
19113
19099
|
// Refresh recent searches when value becomes empty
|
|
19114
|
-
if (
|
|
19100
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
19101
|
+
_this.resetStoreForComponent(props.componentId);
|
|
19102
|
+
} else if (!value && _this.currentValue && _this.enableRecentSearches) {
|
|
19115
19103
|
_this.getRecentSearches();
|
|
19116
19104
|
}
|
|
19117
19105
|
if (isTagsMode) {
|
|
19118
|
-
var isTagAdded = false;
|
|
19119
19106
|
if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
|
|
19120
19107
|
// check if value already present in selectedTags
|
|
19121
19108
|
if (typeof value === 'string' && _this.selectedTags.includes(value)) {
|
|
@@ -19124,36 +19111,14 @@
|
|
|
19124
19111
|
}
|
|
19125
19112
|
_this.selectedTags = [].concat(_this.selectedTags);
|
|
19126
19113
|
if (typeof value === 'string' && !!value) {
|
|
19127
|
-
|
|
19128
|
-
_this.selectedTags.push(value);
|
|
19129
|
-
isTagAdded = true;
|
|
19130
|
-
} else if (!props.strictSelection) {
|
|
19131
|
-
_this.selectedTags.push(value);
|
|
19132
|
-
isTagAdded = true;
|
|
19133
|
-
}
|
|
19114
|
+
_this.selectedTags.push(value);
|
|
19134
19115
|
} else if (Array.isArray(value) && !isEqual$4(_this.selectedTags, value)) {
|
|
19135
|
-
|
|
19136
|
-
_this.selectedTags = value;
|
|
19137
|
-
isTagAdded = true;
|
|
19138
|
-
} else if (!props.strictSelection) {
|
|
19139
|
-
_this.selectedTags.push(value);
|
|
19140
|
-
isTagAdded = true;
|
|
19141
|
-
}
|
|
19116
|
+
_this.selectedTags = value;
|
|
19142
19117
|
}
|
|
19143
19118
|
} else if (value) {
|
|
19144
|
-
|
|
19145
|
-
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
19146
|
-
isTagAdded = true;
|
|
19147
|
-
} else if (!props.strictSelection) {
|
|
19148
|
-
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
19149
|
-
isTagAdded = true;
|
|
19150
|
-
}
|
|
19151
|
-
}
|
|
19152
|
-
if (props.strictSelection && !isTagAdded) {
|
|
19153
|
-
_this.currentValue = value;
|
|
19154
|
-
} else {
|
|
19155
|
-
_this.currentValue = '';
|
|
19119
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
19156
19120
|
}
|
|
19121
|
+
_this.currentValue = '';
|
|
19157
19122
|
} else {
|
|
19158
19123
|
_this.currentValue = value;
|
|
19159
19124
|
}
|
|
@@ -19173,7 +19138,7 @@
|
|
|
19173
19138
|
if (props.strictSelection && props.autosuggest) {
|
|
19174
19139
|
if (cause === lib_7.SUGGESTION_SELECT || props.value !== undefined) {
|
|
19175
19140
|
_this.updateQueryHandler(props.componentId, queryHandlerValue, props);
|
|
19176
|
-
} else if (_this.currentValue !== ''
|
|
19141
|
+
} else if (_this.currentValue !== '') {
|
|
19177
19142
|
_this.setValue('', true);
|
|
19178
19143
|
}
|
|
19179
19144
|
} else {
|
|
@@ -19203,6 +19168,11 @@
|
|
|
19203
19168
|
if (props === void 0) {
|
|
19204
19169
|
props = this.$props;
|
|
19205
19170
|
}
|
|
19171
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
19172
|
+
// clear Component data from store
|
|
19173
|
+
this.resetStoreForComponent(props.componentId);
|
|
19174
|
+
return;
|
|
19175
|
+
}
|
|
19206
19176
|
var defaultQueryOptions;
|
|
19207
19177
|
var query = DataSearch.defaultQuery(value, props);
|
|
19208
19178
|
if (this.defaultQuery) {
|
|
@@ -19297,17 +19267,17 @@
|
|
|
19297
19267
|
var targetValue = event.target.value;
|
|
19298
19268
|
var _this$$props2 = this.$props,
|
|
19299
19269
|
value = _this$$props2.value,
|
|
19300
|
-
|
|
19270
|
+
strictSelection = _this$$props2.strictSelection,
|
|
19271
|
+
size = _this$$props2.size,
|
|
19272
|
+
autosuggest = _this$$props2.autosuggest;
|
|
19301
19273
|
if (value !== undefined) {
|
|
19302
19274
|
this.isPending = true;
|
|
19303
19275
|
}
|
|
19304
19276
|
// if a suggestion was selected, delegate the handling to suggestion handler
|
|
19305
19277
|
if (event.key === 'Enter' && (highlightedIndex === null || highlightedIndex < 0 || highlightedIndex === [].concat([].concat(this.suggestionsList).slice(0, size || 10), this.defaultSearchSuggestions, this.topSuggestions).length)) {
|
|
19306
19278
|
this.isPending = false;
|
|
19307
|
-
|
|
19308
|
-
|
|
19309
|
-
this.onValueSelectedHandler(targetValue, lib_7.ENTER_PRESS);
|
|
19310
|
-
}
|
|
19279
|
+
this.setValue(this.$options.isTagsMode && autosuggest && strictSelection ? '' : targetValue, true, this.$props, undefined, false);
|
|
19280
|
+
this.onValueSelectedHandler(targetValue, lib_7.ENTER_PRESS);
|
|
19311
19281
|
}
|
|
19312
19282
|
// Need to review
|
|
19313
19283
|
this.$emit('keyDown', event, this.triggerQuery);
|
|
@@ -19343,16 +19313,11 @@
|
|
|
19343
19313
|
}
|
|
19344
19314
|
},
|
|
19345
19315
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
19346
|
-
var _this3 = this;
|
|
19347
19316
|
var value = this.$props.value;
|
|
19348
19317
|
// Record analytics for selected suggestions
|
|
19349
19318
|
this.triggerClickAnalytics(suggestion._click_id);
|
|
19350
19319
|
if (value === undefined) {
|
|
19351
19320
|
this.setValue(suggestion.value, true, this.$props, lib_7.SUGGESTION_SELECT);
|
|
19352
|
-
this.isSuggestionSelected = true;
|
|
19353
|
-
setTimeout(function () {
|
|
19354
|
-
_this3.isSuggestionSelected = false;
|
|
19355
|
-
}, 50);
|
|
19356
19321
|
} else if (this.$options.isTagsMode) {
|
|
19357
19322
|
var emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
|
|
19358
19323
|
if (this.selectedTags.includes(suggestion.value)) {
|
|
@@ -19458,7 +19423,7 @@
|
|
|
19458
19423
|
return null;
|
|
19459
19424
|
},
|
|
19460
19425
|
renderTag: function renderTag(item) {
|
|
19461
|
-
var
|
|
19426
|
+
var _this3 = this;
|
|
19462
19427
|
var h = this.$createElement;
|
|
19463
19428
|
var innerClass = this.$props.innerClass;
|
|
19464
19429
|
return h(TagItem, {
|
|
@@ -19471,7 +19436,7 @@
|
|
|
19471
19436
|
"class": "close-icon",
|
|
19472
19437
|
"on": {
|
|
19473
19438
|
"click": function click() {
|
|
19474
|
-
return
|
|
19439
|
+
return _this3.clearTag(item);
|
|
19475
19440
|
}
|
|
19476
19441
|
}
|
|
19477
19442
|
}, [h(CancelSvg)])]);
|
|
@@ -19493,7 +19458,7 @@
|
|
|
19493
19458
|
}
|
|
19494
19459
|
},
|
|
19495
19460
|
renderTags: function renderTags() {
|
|
19496
|
-
var
|
|
19461
|
+
var _this4 = this;
|
|
19497
19462
|
var h = this.$createElement;
|
|
19498
19463
|
if (!Array.isArray(this.selectedTags)) {
|
|
19499
19464
|
return null;
|
|
@@ -19506,7 +19471,7 @@
|
|
|
19506
19471
|
handleClear: this.clearTag,
|
|
19507
19472
|
handleClearAll: this.clearAllTags
|
|
19508
19473
|
}) : h(TagsContainer, [tagsList.map(function (item) {
|
|
19509
|
-
return
|
|
19474
|
+
return _this4.renderTag(item);
|
|
19510
19475
|
}), shouldRenderClearAllTag && h(TagItem, {
|
|
19511
19476
|
"class": getClassName$3(this.$props.innerClass, 'selected-tag') || ''
|
|
19512
19477
|
}, [h("span", ["Clear All"]), h("span", {
|
|
@@ -19585,7 +19550,7 @@
|
|
|
19585
19550
|
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
19586
19551
|
},
|
|
19587
19552
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
19588
|
-
var
|
|
19553
|
+
var _this5 = this;
|
|
19589
19554
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
19590
19555
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
19591
19556
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -19600,7 +19565,7 @@
|
|
|
19600
19565
|
function (event, handler) {
|
|
19601
19566
|
// Prevent the default refresh event under WINDOWS system
|
|
19602
19567
|
event.preventDefault();
|
|
19603
|
-
|
|
19568
|
+
_this5.focusSearchBox(event);
|
|
19604
19569
|
});
|
|
19605
19570
|
|
|
19606
19571
|
// if one of modifier keys are used, they are handled below
|
|
@@ -19610,7 +19575,7 @@
|
|
|
19610
19575
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
19611
19576
|
var element = modifierKeys[index];
|
|
19612
19577
|
if (hotkeys[element]) {
|
|
19613
|
-
|
|
19578
|
+
_this5.focusSearchBox(event);
|
|
19614
19579
|
break;
|
|
19615
19580
|
}
|
|
19616
19581
|
}
|
|
@@ -19618,7 +19583,7 @@
|
|
|
19618
19583
|
}
|
|
19619
19584
|
},
|
|
19620
19585
|
render: function render() {
|
|
19621
|
-
var
|
|
19586
|
+
var _this6 = this;
|
|
19622
19587
|
var h = arguments[0];
|
|
19623
19588
|
var _this$$props6 = this.$props,
|
|
19624
19589
|
theme = _this$$props6.theme,
|
|
@@ -19653,14 +19618,14 @@
|
|
|
19653
19618
|
highlightedIndex = _ref4.highlightedIndex,
|
|
19654
19619
|
setHighlightedIndex = _ref4.setHighlightedIndex;
|
|
19655
19620
|
var renderSuggestionsContainer = function renderSuggestionsContainer() {
|
|
19656
|
-
return h("div", [
|
|
19621
|
+
return h("div", [_this6.hasCustomRenderer && _this6.getComponent({
|
|
19657
19622
|
isOpen: isOpen,
|
|
19658
19623
|
getItemProps: getItemProps,
|
|
19659
19624
|
getItemEvents: getItemEvents,
|
|
19660
19625
|
highlightedIndex: highlightedIndex
|
|
19661
|
-
}),
|
|
19662
|
-
"class": suggestions$1(
|
|
19663
|
-
}, [
|
|
19626
|
+
}), _this6.renderErrorComponent(), !_this6.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
|
|
19627
|
+
"class": suggestions$1(_this6.themePreset, theme) + " " + getClassName$3(_this6.$props.innerClass, 'list')
|
|
19628
|
+
}, [_this6.suggestionsList.slice(0, size || 10).map(function (item, index) {
|
|
19664
19629
|
return h("li", {
|
|
19665
19630
|
"domProps": _extends({}, getItemProps({
|
|
19666
19631
|
item: item
|
|
@@ -19670,15 +19635,15 @@
|
|
|
19670
19635
|
})),
|
|
19671
19636
|
"key": index + 1 + "-" + item.value,
|
|
19672
19637
|
"style": {
|
|
19673
|
-
backgroundColor:
|
|
19638
|
+
backgroundColor: _this6.getBackgroundColor(highlightedIndex, index)
|
|
19674
19639
|
}
|
|
19675
19640
|
}, [h(SuggestionItem, {
|
|
19676
19641
|
"attrs": {
|
|
19677
|
-
"currentValue":
|
|
19642
|
+
"currentValue": _this6.currentValue,
|
|
19678
19643
|
"suggestion": item
|
|
19679
19644
|
}
|
|
19680
19645
|
})]);
|
|
19681
|
-
}),
|
|
19646
|
+
}), _this6.defaultSearchSuggestions.map(function (sugg, index) {
|
|
19682
19647
|
return h("li", {
|
|
19683
19648
|
"domProps": _extends({}, getItemProps({
|
|
19684
19649
|
item: sugg
|
|
@@ -19686,9 +19651,9 @@
|
|
|
19686
19651
|
"on": _extends({}, getItemEvents({
|
|
19687
19652
|
item: sugg
|
|
19688
19653
|
})),
|
|
19689
|
-
"key":
|
|
19654
|
+
"key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
19690
19655
|
"style": {
|
|
19691
|
-
backgroundColor:
|
|
19656
|
+
backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
|
|
19692
19657
|
justifyContent: 'flex-start'
|
|
19693
19658
|
}
|
|
19694
19659
|
}, [h("div", {
|
|
@@ -19697,28 +19662,28 @@
|
|
|
19697
19662
|
}
|
|
19698
19663
|
}, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
|
|
19699
19664
|
"attrs": {
|
|
19700
|
-
"className": getClassName$3(
|
|
19665
|
+
"className": getClassName$3(_this6.$props.innerClass, 'recent-search-icon') || null,
|
|
19701
19666
|
"icon": recentSearchesIcon,
|
|
19702
19667
|
"type": "recent-search-icon"
|
|
19703
19668
|
}
|
|
19704
19669
|
}), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
|
|
19705
19670
|
"attrs": {
|
|
19706
|
-
"className": getClassName$3(
|
|
19671
|
+
"className": getClassName$3(_this6.$props.innerClass, 'popular-search-icon') || null,
|
|
19707
19672
|
"icon": popularSearchesIcon,
|
|
19708
19673
|
"type": "popular-search-icon"
|
|
19709
19674
|
}
|
|
19710
19675
|
})]), h(SuggestionItem, {
|
|
19711
19676
|
"attrs": {
|
|
19712
|
-
"currentValue":
|
|
19677
|
+
"currentValue": _this6.currentValue,
|
|
19713
19678
|
"suggestion": sugg
|
|
19714
19679
|
}
|
|
19715
19680
|
})]);
|
|
19716
|
-
}), hasQuerySuggestionsRenderer(
|
|
19681
|
+
}), hasQuerySuggestionsRenderer(_this6) ? _this6.getComponent({
|
|
19717
19682
|
isOpen: isOpen,
|
|
19718
19683
|
getItemProps: getItemProps,
|
|
19719
19684
|
getItemEvents: getItemEvents,
|
|
19720
19685
|
highlightedIndex: highlightedIndex
|
|
19721
|
-
}, true) :
|
|
19686
|
+
}, true) : _this6.topSuggestions.map(function (sugg, index) {
|
|
19722
19687
|
return h("li", {
|
|
19723
19688
|
"domProps": _extends({}, getItemProps({
|
|
19724
19689
|
item: sugg
|
|
@@ -19726,9 +19691,9 @@
|
|
|
19726
19691
|
"on": _extends({}, getItemEvents({
|
|
19727
19692
|
item: sugg
|
|
19728
19693
|
})),
|
|
19729
|
-
"key":
|
|
19694
|
+
"key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
19730
19695
|
"style": {
|
|
19731
|
-
backgroundColor:
|
|
19696
|
+
backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
|
|
19732
19697
|
justifyContent: 'flex-start'
|
|
19733
19698
|
}
|
|
19734
19699
|
}, [h("div", {
|
|
@@ -19737,58 +19702,58 @@
|
|
|
19737
19702
|
}
|
|
19738
19703
|
}, [h(CustomSvg, {
|
|
19739
19704
|
"attrs": {
|
|
19740
|
-
"className": getClassName$3(
|
|
19705
|
+
"className": getClassName$3(_this6.$props.innerClass, 'popular-search-icon') || null,
|
|
19741
19706
|
"icon": popularSearchesIcon,
|
|
19742
19707
|
"type": "popular-search-icon"
|
|
19743
19708
|
}
|
|
19744
19709
|
})]), h(SuggestionItem, {
|
|
19745
19710
|
"attrs": {
|
|
19746
|
-
"currentValue":
|
|
19711
|
+
"currentValue": _this6.currentValue,
|
|
19747
19712
|
"suggestion": sugg
|
|
19748
19713
|
}
|
|
19749
19714
|
})]);
|
|
19750
|
-
})]) :
|
|
19715
|
+
})]) : _this6.renderNoSuggestions(_this6.suggestionsList)]);
|
|
19751
19716
|
};
|
|
19752
19717
|
return h("div", {
|
|
19753
19718
|
"class": suggestionsContainer
|
|
19754
|
-
}, [h(InputGroup, [
|
|
19719
|
+
}, [h(InputGroup, [_this6.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
|
|
19755
19720
|
"attrs": {
|
|
19756
|
-
"id":
|
|
19757
|
-
"showIcon":
|
|
19758
|
-
"showClear":
|
|
19759
|
-
"iconPosition":
|
|
19760
|
-
"placeholder":
|
|
19761
|
-
"autoFocus":
|
|
19762
|
-
"themePreset":
|
|
19721
|
+
"id": _this6.$props.componentId + "-input",
|
|
19722
|
+
"showIcon": _this6.$props.showIcon,
|
|
19723
|
+
"showClear": _this6.$props.showClear,
|
|
19724
|
+
"iconPosition": _this6.$props.iconPosition,
|
|
19725
|
+
"placeholder": _this6.$props.placeholder,
|
|
19726
|
+
"autoFocus": _this6.$props.autoFocus,
|
|
19727
|
+
"themePreset": _this6.themePreset,
|
|
19763
19728
|
"autocomplete": "off"
|
|
19764
19729
|
},
|
|
19765
|
-
"ref":
|
|
19766
|
-
"class": getClassName$3(
|
|
19730
|
+
"ref": _this6.$props.innerRef,
|
|
19731
|
+
"class": getClassName$3(_this6.$props.innerClass, 'input'),
|
|
19767
19732
|
"on": _extends({}, getInputEvents({
|
|
19768
|
-
onInput:
|
|
19733
|
+
onInput: _this6.onInputChange,
|
|
19769
19734
|
onBlur: function onBlur(e) {
|
|
19770
|
-
|
|
19735
|
+
_this6.$emit('blur', e, _this6.triggerQuery);
|
|
19771
19736
|
},
|
|
19772
|
-
onFocus:
|
|
19737
|
+
onFocus: _this6.handleFocus,
|
|
19773
19738
|
onKeyPress: function onKeyPress(e) {
|
|
19774
|
-
|
|
19775
|
-
|
|
19739
|
+
_this6.$emit('keyPress', e, _this6.triggerQuery);
|
|
19740
|
+
_this6.$emit('key-press', e, _this6.triggerQuery);
|
|
19776
19741
|
},
|
|
19777
19742
|
onKeyDown: function onKeyDown(e) {
|
|
19778
|
-
return
|
|
19743
|
+
return _this6.handleKeyDown(e, highlightedIndex);
|
|
19779
19744
|
},
|
|
19780
19745
|
onKeyUp: function onKeyUp(e) {
|
|
19781
|
-
|
|
19782
|
-
|
|
19746
|
+
_this6.$emit('keyUp', e, _this6.triggerQuery);
|
|
19747
|
+
_this6.$emit('key-up', e, _this6.triggerQuery);
|
|
19783
19748
|
},
|
|
19784
19749
|
onClick: function onClick() {
|
|
19785
19750
|
setHighlightedIndex(null);
|
|
19786
19751
|
}
|
|
19787
19752
|
})),
|
|
19788
19753
|
"domProps": _extends({}, getInputProps({
|
|
19789
|
-
value:
|
|
19754
|
+
value: _this6.$data.currentValue === null || typeof _this6.$data.currentValue !== 'string' ? '' : _this6.$data.currentValue
|
|
19790
19755
|
}))
|
|
19791
|
-
}),
|
|
19756
|
+
}), _this6.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this6.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this6.renderTags()]);
|
|
19792
19757
|
}
|
|
19793
19758
|
}
|
|
19794
19759
|
}) : h("div", {
|
|
@@ -19804,22 +19769,22 @@
|
|
|
19804
19769
|
},
|
|
19805
19770
|
"on": _extends({}, {
|
|
19806
19771
|
blur: function blur(e) {
|
|
19807
|
-
|
|
19772
|
+
_this6.$emit('blur', e, _this6.triggerQuery);
|
|
19808
19773
|
},
|
|
19809
19774
|
keypress: function keypress(e) {
|
|
19810
|
-
|
|
19811
|
-
|
|
19775
|
+
_this6.$emit('keyPress', e, _this6.triggerQuery);
|
|
19776
|
+
_this6.$emit('key-press', e, _this6.triggerQuery);
|
|
19812
19777
|
},
|
|
19813
19778
|
input: this.onInputChange,
|
|
19814
19779
|
focus: function focus(e) {
|
|
19815
|
-
|
|
19780
|
+
_this6.$emit('focus', e, _this6.triggerQuery);
|
|
19816
19781
|
},
|
|
19817
19782
|
keydown: function keydown(e) {
|
|
19818
|
-
|
|
19783
|
+
_this6.handleKeyDown(e, null);
|
|
19819
19784
|
},
|
|
19820
19785
|
keyup: function keyup(e) {
|
|
19821
|
-
|
|
19822
|
-
|
|
19786
|
+
_this6.$emit('keyUp', e, _this6.triggerQuery);
|
|
19787
|
+
_this6.$emit('key-up', e, _this6.triggerQuery);
|
|
19823
19788
|
}
|
|
19824
19789
|
}),
|
|
19825
19790
|
"domProps": _extends({}, {
|
|
@@ -34994,7 +34959,7 @@
|
|
|
34994
34959
|
});
|
|
34995
34960
|
}
|
|
34996
34961
|
|
|
34997
|
-
var version = "1.36.
|
|
34962
|
+
var version = "1.36.2";
|
|
34998
34963
|
|
|
34999
34964
|
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];
|
|
35000
34965
|
function install (Vue) {
|