@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
package/dist/es/DataSearch.js
CHANGED
|
@@ -53,8 +53,7 @@ var DataSearch = {
|
|
|
53
53
|
selectedTags: [],
|
|
54
54
|
isOpen: false,
|
|
55
55
|
normalizedSuggestions: [],
|
|
56
|
-
isPending: false
|
|
57
|
-
isSuggestionSelected: false
|
|
56
|
+
isPending: false
|
|
58
57
|
};
|
|
59
58
|
this.internalComponent = props.componentId + "__internal";
|
|
60
59
|
return this.__state;
|
|
@@ -294,23 +293,12 @@ var DataSearch = {
|
|
|
294
293
|
this.updateQueryHandler(this.componentId, this.$data.currentValue, this.$props);
|
|
295
294
|
}
|
|
296
295
|
},
|
|
297
|
-
isLoading: function isLoading(newVal) {
|
|
298
|
-
if (newVal) {
|
|
299
|
-
this.suggestions = [];
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
296
|
suggestions: function suggestions(newVal) {
|
|
303
|
-
if (this.isLoading) {
|
|
304
|
-
this.normalizedSuggestions = [];
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
297
|
if (Array.isArray(newVal) && this.$data.currentValue.trim().length) {
|
|
308
298
|
// shallow check allows us to set suggestions even if the next set
|
|
309
299
|
// of suggestions are same as the current one
|
|
310
300
|
this.$emit('suggestions', newVal);
|
|
311
|
-
|
|
312
|
-
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
313
|
-
}
|
|
301
|
+
this.normalizedSuggestions = this.onSuggestions(newVal);
|
|
314
302
|
}
|
|
315
303
|
},
|
|
316
304
|
selectedValue: function selectedValue(newVal, oldVal) {
|
|
@@ -444,11 +432,12 @@ var DataSearch = {
|
|
|
444
432
|
return;
|
|
445
433
|
}
|
|
446
434
|
// Refresh recent searches when value becomes empty
|
|
447
|
-
if (
|
|
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) {
|
|
451
|
-
var isTagAdded = false;
|
|
452
441
|
if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
|
|
453
442
|
// check if value already present in selectedTags
|
|
454
443
|
if (typeof value === 'string' && _this.selectedTags.includes(value)) {
|
|
@@ -457,36 +446,14 @@ var DataSearch = {
|
|
|
457
446
|
}
|
|
458
447
|
_this.selectedTags = [].concat(_this.selectedTags);
|
|
459
448
|
if (typeof value === 'string' && !!value) {
|
|
460
|
-
|
|
461
|
-
_this.selectedTags.push(value);
|
|
462
|
-
isTagAdded = true;
|
|
463
|
-
} else if (!props.strictSelection) {
|
|
464
|
-
_this.selectedTags.push(value);
|
|
465
|
-
isTagAdded = true;
|
|
466
|
-
}
|
|
449
|
+
_this.selectedTags.push(value);
|
|
467
450
|
} else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
|
|
468
|
-
|
|
469
|
-
_this.selectedTags = value;
|
|
470
|
-
isTagAdded = true;
|
|
471
|
-
} else if (!props.strictSelection) {
|
|
472
|
-
_this.selectedTags.push(value);
|
|
473
|
-
isTagAdded = true;
|
|
474
|
-
}
|
|
451
|
+
_this.selectedTags = value;
|
|
475
452
|
}
|
|
476
453
|
} else if (value) {
|
|
477
|
-
|
|
478
|
-
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
479
|
-
isTagAdded = true;
|
|
480
|
-
} else if (!props.strictSelection) {
|
|
481
|
-
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
482
|
-
isTagAdded = true;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
if (props.strictSelection && !isTagAdded) {
|
|
486
|
-
_this.currentValue = value;
|
|
487
|
-
} else {
|
|
488
|
-
_this.currentValue = '';
|
|
454
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
489
455
|
}
|
|
456
|
+
_this.currentValue = '';
|
|
490
457
|
} else {
|
|
491
458
|
_this.currentValue = value;
|
|
492
459
|
}
|
|
@@ -506,7 +473,7 @@ var DataSearch = {
|
|
|
506
473
|
if (props.strictSelection && props.autosuggest) {
|
|
507
474
|
if (cause === causes.SUGGESTION_SELECT || props.value !== undefined) {
|
|
508
475
|
_this.updateQueryHandler(props.componentId, queryHandlerValue, props);
|
|
509
|
-
} else if (_this.currentValue !== ''
|
|
476
|
+
} else if (_this.currentValue !== '') {
|
|
510
477
|
_this.setValue('', true);
|
|
511
478
|
}
|
|
512
479
|
} else {
|
|
@@ -536,6 +503,11 @@ var DataSearch = {
|
|
|
536
503
|
if (props === void 0) {
|
|
537
504
|
props = this.$props;
|
|
538
505
|
}
|
|
506
|
+
if (!value && props.enableDefaultSuggestions === false) {
|
|
507
|
+
// clear Component data from store
|
|
508
|
+
this.resetStoreForComponent(props.componentId);
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
539
511
|
var defaultQueryOptions;
|
|
540
512
|
var query = DataSearch.defaultQuery(value, props);
|
|
541
513
|
if (this.defaultQuery) {
|
|
@@ -630,17 +602,17 @@ var DataSearch = {
|
|
|
630
602
|
var targetValue = event.target.value;
|
|
631
603
|
var _this$$props2 = this.$props,
|
|
632
604
|
value = _this$$props2.value,
|
|
633
|
-
|
|
605
|
+
strictSelection = _this$$props2.strictSelection,
|
|
606
|
+
size = _this$$props2.size,
|
|
607
|
+
autosuggest = _this$$props2.autosuggest;
|
|
634
608
|
if (value !== undefined) {
|
|
635
609
|
this.isPending = true;
|
|
636
610
|
}
|
|
637
611
|
// if a suggestion was selected, delegate the handling to suggestion handler
|
|
638
612
|
if (event.key === 'Enter' && (highlightedIndex === null || highlightedIndex < 0 || highlightedIndex === [].concat([].concat(this.suggestionsList).slice(0, size || 10), this.defaultSearchSuggestions, this.topSuggestions).length)) {
|
|
639
613
|
this.isPending = false;
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
this.onValueSelectedHandler(targetValue, causes.ENTER_PRESS);
|
|
643
|
-
}
|
|
614
|
+
this.setValue(this.$options.isTagsMode && autosuggest && strictSelection ? '' : targetValue, true, this.$props, undefined, false);
|
|
615
|
+
this.onValueSelectedHandler(targetValue, causes.ENTER_PRESS);
|
|
644
616
|
}
|
|
645
617
|
// Need to review
|
|
646
618
|
this.$emit('keyDown', event, this.triggerQuery);
|
|
@@ -676,16 +648,11 @@ var DataSearch = {
|
|
|
676
648
|
}
|
|
677
649
|
},
|
|
678
650
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
679
|
-
var _this3 = this;
|
|
680
651
|
var value = this.$props.value;
|
|
681
652
|
// Record analytics for selected suggestions
|
|
682
653
|
this.triggerClickAnalytics(suggestion._click_id);
|
|
683
654
|
if (value === undefined) {
|
|
684
655
|
this.setValue(suggestion.value, true, this.$props, causes.SUGGESTION_SELECT);
|
|
685
|
-
this.isSuggestionSelected = true;
|
|
686
|
-
setTimeout(function () {
|
|
687
|
-
_this3.isSuggestionSelected = false;
|
|
688
|
-
}, 50);
|
|
689
656
|
} else if (this.$options.isTagsMode) {
|
|
690
657
|
var emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
|
|
691
658
|
if (this.selectedTags.includes(suggestion.value)) {
|
|
@@ -791,7 +758,7 @@ var DataSearch = {
|
|
|
791
758
|
return null;
|
|
792
759
|
},
|
|
793
760
|
renderTag: function renderTag(item) {
|
|
794
|
-
var
|
|
761
|
+
var _this3 = this;
|
|
795
762
|
var h = this.$createElement;
|
|
796
763
|
var innerClass = this.$props.innerClass;
|
|
797
764
|
return h(TagItem, {
|
|
@@ -804,7 +771,7 @@ var DataSearch = {
|
|
|
804
771
|
"class": "close-icon",
|
|
805
772
|
"on": {
|
|
806
773
|
"click": function click() {
|
|
807
|
-
return
|
|
774
|
+
return _this3.clearTag(item);
|
|
808
775
|
}
|
|
809
776
|
}
|
|
810
777
|
}, [h(CancelSvg)])]);
|
|
@@ -826,7 +793,7 @@ var DataSearch = {
|
|
|
826
793
|
}
|
|
827
794
|
},
|
|
828
795
|
renderTags: function renderTags() {
|
|
829
|
-
var
|
|
796
|
+
var _this4 = this;
|
|
830
797
|
var h = this.$createElement;
|
|
831
798
|
if (!Array.isArray(this.selectedTags)) {
|
|
832
799
|
return null;
|
|
@@ -839,7 +806,7 @@ var DataSearch = {
|
|
|
839
806
|
handleClear: this.clearTag,
|
|
840
807
|
handleClearAll: this.clearAllTags
|
|
841
808
|
}) : h(TagsContainer, [tagsList.map(function (item) {
|
|
842
|
-
return
|
|
809
|
+
return _this4.renderTag(item);
|
|
843
810
|
}), shouldRenderClearAllTag && h(TagItem, {
|
|
844
811
|
"class": getClassName(this.$props.innerClass, 'selected-tag') || ''
|
|
845
812
|
}, [h("span", ["Clear All"]), h("span", {
|
|
@@ -918,7 +885,7 @@ var DataSearch = {
|
|
|
918
885
|
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
919
886
|
},
|
|
920
887
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
921
|
-
var
|
|
888
|
+
var _this5 = this;
|
|
922
889
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
923
890
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
924
891
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -933,7 +900,7 @@ var DataSearch = {
|
|
|
933
900
|
function (event, handler) {
|
|
934
901
|
// Prevent the default refresh event under WINDOWS system
|
|
935
902
|
event.preventDefault();
|
|
936
|
-
|
|
903
|
+
_this5.focusSearchBox(event);
|
|
937
904
|
});
|
|
938
905
|
|
|
939
906
|
// if one of modifier keys are used, they are handled below
|
|
@@ -943,7 +910,7 @@ var DataSearch = {
|
|
|
943
910
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
944
911
|
var element = modifierKeys[index];
|
|
945
912
|
if (hotkeys[element]) {
|
|
946
|
-
|
|
913
|
+
_this5.focusSearchBox(event);
|
|
947
914
|
break;
|
|
948
915
|
}
|
|
949
916
|
}
|
|
@@ -951,7 +918,7 @@ var DataSearch = {
|
|
|
951
918
|
}
|
|
952
919
|
},
|
|
953
920
|
render: function render() {
|
|
954
|
-
var
|
|
921
|
+
var _this6 = this;
|
|
955
922
|
var h = arguments[0];
|
|
956
923
|
var _this$$props6 = this.$props,
|
|
957
924
|
theme = _this$$props6.theme,
|
|
@@ -986,14 +953,14 @@ var DataSearch = {
|
|
|
986
953
|
highlightedIndex = _ref4.highlightedIndex,
|
|
987
954
|
setHighlightedIndex = _ref4.setHighlightedIndex;
|
|
988
955
|
var renderSuggestionsContainer = function renderSuggestionsContainer() {
|
|
989
|
-
return h("div", [
|
|
956
|
+
return h("div", [_this6.hasCustomRenderer && _this6.getComponent({
|
|
990
957
|
isOpen: isOpen,
|
|
991
958
|
getItemProps: getItemProps,
|
|
992
959
|
getItemEvents: getItemEvents,
|
|
993
960
|
highlightedIndex: highlightedIndex
|
|
994
|
-
}),
|
|
995
|
-
"class": suggestions(
|
|
996
|
-
}, [
|
|
961
|
+
}), _this6.renderErrorComponent(), !_this6.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
|
|
962
|
+
"class": suggestions(_this6.themePreset, theme) + " " + getClassName(_this6.$props.innerClass, 'list')
|
|
963
|
+
}, [_this6.suggestionsList.slice(0, size || 10).map(function (item, index) {
|
|
997
964
|
return h("li", {
|
|
998
965
|
"domProps": _extends({}, getItemProps({
|
|
999
966
|
item: item
|
|
@@ -1003,15 +970,15 @@ var DataSearch = {
|
|
|
1003
970
|
})),
|
|
1004
971
|
"key": index + 1 + "-" + item.value,
|
|
1005
972
|
"style": {
|
|
1006
|
-
backgroundColor:
|
|
973
|
+
backgroundColor: _this6.getBackgroundColor(highlightedIndex, index)
|
|
1007
974
|
}
|
|
1008
975
|
}, [h(SuggestionItem, {
|
|
1009
976
|
"attrs": {
|
|
1010
|
-
"currentValue":
|
|
977
|
+
"currentValue": _this6.currentValue,
|
|
1011
978
|
"suggestion": item
|
|
1012
979
|
}
|
|
1013
980
|
})]);
|
|
1014
|
-
}),
|
|
981
|
+
}), _this6.defaultSearchSuggestions.map(function (sugg, index) {
|
|
1015
982
|
return h("li", {
|
|
1016
983
|
"domProps": _extends({}, getItemProps({
|
|
1017
984
|
item: sugg
|
|
@@ -1019,9 +986,9 @@ var DataSearch = {
|
|
|
1019
986
|
"on": _extends({}, getItemEvents({
|
|
1020
987
|
item: sugg
|
|
1021
988
|
})),
|
|
1022
|
-
"key":
|
|
989
|
+
"key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
1023
990
|
"style": {
|
|
1024
|
-
backgroundColor:
|
|
991
|
+
backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
|
|
1025
992
|
justifyContent: 'flex-start'
|
|
1026
993
|
}
|
|
1027
994
|
}, [h("div", {
|
|
@@ -1030,28 +997,28 @@ var DataSearch = {
|
|
|
1030
997
|
}
|
|
1031
998
|
}, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
|
|
1032
999
|
"attrs": {
|
|
1033
|
-
"className": getClassName(
|
|
1000
|
+
"className": getClassName(_this6.$props.innerClass, 'recent-search-icon') || null,
|
|
1034
1001
|
"icon": recentSearchesIcon,
|
|
1035
1002
|
"type": "recent-search-icon"
|
|
1036
1003
|
}
|
|
1037
1004
|
}), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
|
|
1038
1005
|
"attrs": {
|
|
1039
|
-
"className": getClassName(
|
|
1006
|
+
"className": getClassName(_this6.$props.innerClass, 'popular-search-icon') || null,
|
|
1040
1007
|
"icon": popularSearchesIcon,
|
|
1041
1008
|
"type": "popular-search-icon"
|
|
1042
1009
|
}
|
|
1043
1010
|
})]), h(SuggestionItem, {
|
|
1044
1011
|
"attrs": {
|
|
1045
|
-
"currentValue":
|
|
1012
|
+
"currentValue": _this6.currentValue,
|
|
1046
1013
|
"suggestion": sugg
|
|
1047
1014
|
}
|
|
1048
1015
|
})]);
|
|
1049
|
-
}), hasQuerySuggestionsRenderer(
|
|
1016
|
+
}), hasQuerySuggestionsRenderer(_this6) ? _this6.getComponent({
|
|
1050
1017
|
isOpen: isOpen,
|
|
1051
1018
|
getItemProps: getItemProps,
|
|
1052
1019
|
getItemEvents: getItemEvents,
|
|
1053
1020
|
highlightedIndex: highlightedIndex
|
|
1054
|
-
}, true) :
|
|
1021
|
+
}, true) : _this6.topSuggestions.map(function (sugg, index) {
|
|
1055
1022
|
return h("li", {
|
|
1056
1023
|
"domProps": _extends({}, getItemProps({
|
|
1057
1024
|
item: sugg
|
|
@@ -1059,9 +1026,9 @@ var DataSearch = {
|
|
|
1059
1026
|
"on": _extends({}, getItemEvents({
|
|
1060
1027
|
item: sugg
|
|
1061
1028
|
})),
|
|
1062
|
-
"key":
|
|
1029
|
+
"key": _this6.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
1063
1030
|
"style": {
|
|
1064
|
-
backgroundColor:
|
|
1031
|
+
backgroundColor: _this6.getBackgroundColor(highlightedIndex, _this6.suggestionsList.length + index),
|
|
1065
1032
|
justifyContent: 'flex-start'
|
|
1066
1033
|
}
|
|
1067
1034
|
}, [h("div", {
|
|
@@ -1070,58 +1037,58 @@ var DataSearch = {
|
|
|
1070
1037
|
}
|
|
1071
1038
|
}, [h(CustomSvg, {
|
|
1072
1039
|
"attrs": {
|
|
1073
|
-
"className": getClassName(
|
|
1040
|
+
"className": getClassName(_this6.$props.innerClass, 'popular-search-icon') || null,
|
|
1074
1041
|
"icon": popularSearchesIcon,
|
|
1075
1042
|
"type": "popular-search-icon"
|
|
1076
1043
|
}
|
|
1077
1044
|
})]), h(SuggestionItem, {
|
|
1078
1045
|
"attrs": {
|
|
1079
|
-
"currentValue":
|
|
1046
|
+
"currentValue": _this6.currentValue,
|
|
1080
1047
|
"suggestion": sugg
|
|
1081
1048
|
}
|
|
1082
1049
|
})]);
|
|
1083
|
-
})]) :
|
|
1050
|
+
})]) : _this6.renderNoSuggestions(_this6.suggestionsList)]);
|
|
1084
1051
|
};
|
|
1085
1052
|
return h("div", {
|
|
1086
1053
|
"class": suggestionsContainer
|
|
1087
|
-
}, [h(InputGroup, [
|
|
1054
|
+
}, [h(InputGroup, [_this6.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
|
|
1088
1055
|
"attrs": {
|
|
1089
|
-
"id":
|
|
1090
|
-
"showIcon":
|
|
1091
|
-
"showClear":
|
|
1092
|
-
"iconPosition":
|
|
1093
|
-
"placeholder":
|
|
1094
|
-
"autoFocus":
|
|
1095
|
-
"themePreset":
|
|
1056
|
+
"id": _this6.$props.componentId + "-input",
|
|
1057
|
+
"showIcon": _this6.$props.showIcon,
|
|
1058
|
+
"showClear": _this6.$props.showClear,
|
|
1059
|
+
"iconPosition": _this6.$props.iconPosition,
|
|
1060
|
+
"placeholder": _this6.$props.placeholder,
|
|
1061
|
+
"autoFocus": _this6.$props.autoFocus,
|
|
1062
|
+
"themePreset": _this6.themePreset,
|
|
1096
1063
|
"autocomplete": "off"
|
|
1097
1064
|
},
|
|
1098
|
-
"ref":
|
|
1099
|
-
"class": getClassName(
|
|
1065
|
+
"ref": _this6.$props.innerRef,
|
|
1066
|
+
"class": getClassName(_this6.$props.innerClass, 'input'),
|
|
1100
1067
|
"on": _extends({}, getInputEvents({
|
|
1101
|
-
onInput:
|
|
1068
|
+
onInput: _this6.onInputChange,
|
|
1102
1069
|
onBlur: function onBlur(e) {
|
|
1103
|
-
|
|
1070
|
+
_this6.$emit('blur', e, _this6.triggerQuery);
|
|
1104
1071
|
},
|
|
1105
|
-
onFocus:
|
|
1072
|
+
onFocus: _this6.handleFocus,
|
|
1106
1073
|
onKeyPress: function onKeyPress(e) {
|
|
1107
|
-
|
|
1108
|
-
|
|
1074
|
+
_this6.$emit('keyPress', e, _this6.triggerQuery);
|
|
1075
|
+
_this6.$emit('key-press', e, _this6.triggerQuery);
|
|
1109
1076
|
},
|
|
1110
1077
|
onKeyDown: function onKeyDown(e) {
|
|
1111
|
-
return
|
|
1078
|
+
return _this6.handleKeyDown(e, highlightedIndex);
|
|
1112
1079
|
},
|
|
1113
1080
|
onKeyUp: function onKeyUp(e) {
|
|
1114
|
-
|
|
1115
|
-
|
|
1081
|
+
_this6.$emit('keyUp', e, _this6.triggerQuery);
|
|
1082
|
+
_this6.$emit('key-up', e, _this6.triggerQuery);
|
|
1116
1083
|
},
|
|
1117
1084
|
onClick: function onClick() {
|
|
1118
1085
|
setHighlightedIndex(null);
|
|
1119
1086
|
}
|
|
1120
1087
|
})),
|
|
1121
1088
|
"domProps": _extends({}, getInputProps({
|
|
1122
|
-
value:
|
|
1089
|
+
value: _this6.$data.currentValue === null || typeof _this6.$data.currentValue !== 'string' ? '' : _this6.$data.currentValue
|
|
1123
1090
|
}))
|
|
1124
|
-
}),
|
|
1091
|
+
}), _this6.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this6.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this6.renderTags()]);
|
|
1125
1092
|
}
|
|
1126
1093
|
}
|
|
1127
1094
|
}) : h("div", {
|
|
@@ -1137,22 +1104,22 @@ var DataSearch = {
|
|
|
1137
1104
|
},
|
|
1138
1105
|
"on": _extends({}, {
|
|
1139
1106
|
blur: function blur(e) {
|
|
1140
|
-
|
|
1107
|
+
_this6.$emit('blur', e, _this6.triggerQuery);
|
|
1141
1108
|
},
|
|
1142
1109
|
keypress: function keypress(e) {
|
|
1143
|
-
|
|
1144
|
-
|
|
1110
|
+
_this6.$emit('keyPress', e, _this6.triggerQuery);
|
|
1111
|
+
_this6.$emit('key-press', e, _this6.triggerQuery);
|
|
1145
1112
|
},
|
|
1146
1113
|
input: this.onInputChange,
|
|
1147
1114
|
focus: function focus(e) {
|
|
1148
|
-
|
|
1115
|
+
_this6.$emit('focus', e, _this6.triggerQuery);
|
|
1149
1116
|
},
|
|
1150
1117
|
keydown: function keydown(e) {
|
|
1151
|
-
|
|
1118
|
+
_this6.handleKeyDown(e, null);
|
|
1152
1119
|
},
|
|
1153
1120
|
keyup: function keyup(e) {
|
|
1154
|
-
|
|
1155
|
-
|
|
1121
|
+
_this6.$emit('keyUp', e, _this6.triggerQuery);
|
|
1122
|
+
_this6.$emit('key-up', e, _this6.triggerQuery);
|
|
1156
1123
|
}
|
|
1157
1124
|
}),
|
|
1158
1125
|
"domProps": _extends({}, {
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
2
|
+
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
+
"version": "1.36.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"jsnext:main": "dist/es/index.js",
|
|
7
|
+
"module": "dist/es/index.js",
|
|
8
|
+
"description": "A Vue UI components library for building search experiences",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"appbase",
|
|
11
|
+
"elasticsearch",
|
|
12
|
+
"search"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/appbaseio/reactivesearch.git"
|
|
17
|
+
},
|
|
18
|
+
"author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"watch": "nps watch",
|
|
22
|
+
"serve": "vue-cli-service serve",
|
|
23
|
+
"build": "vue-cli-service build",
|
|
24
|
+
"start": "nps",
|
|
25
|
+
"pretest": "nps build",
|
|
26
|
+
"test": "nps test",
|
|
27
|
+
"precommit": "lint-staged",
|
|
28
|
+
"prepare": "npm start validate",
|
|
29
|
+
"version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
|
|
30
|
+
"postpublish": "yarn run version-upgrade"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@appbaseio/analytics": "^1.1.1",
|
|
38
|
+
"@appbaseio/reactivecore": "9.15.2",
|
|
39
|
+
"@appbaseio/vue-emotion": "0.4.4",
|
|
40
|
+
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
41
|
+
"appbase-js": "^5.3.4",
|
|
42
|
+
"compute-scroll-into-view": "^1.0.11",
|
|
43
|
+
"emotion": "9.2.12",
|
|
44
|
+
"gmap-vue": "^3.5.4",
|
|
45
|
+
"hotkeys-js": "^3.8.7",
|
|
46
|
+
"ngeohash": "^0.6.3",
|
|
47
|
+
"polished": "^2.2.0",
|
|
48
|
+
"redux": "^4.0.0",
|
|
49
|
+
"url-search-params-polyfill": "^7.0.0",
|
|
50
|
+
"vue-highlight-words": "^1.2.0",
|
|
51
|
+
"vue-no-ssr": "^1.1.0",
|
|
52
|
+
"vue-slider-component": "^3.2.15",
|
|
53
|
+
"vue-types": "^1.7.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"vue": "^2.6.10"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@babel/plugin-external-helpers": "^7.2.0",
|
|
60
|
+
"@babel/plugin-proposal-class-properties": "^7.5.5",
|
|
61
|
+
"@babel/plugin-proposal-json-strings": "^7.2.0",
|
|
62
|
+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
63
|
+
"@babel/plugin-syntax-import-meta": "^7.2.0",
|
|
64
|
+
"@babel/plugin-syntax-jsx": "^7.2.0",
|
|
65
|
+
"@babel/preset-env": "^7.5.5",
|
|
66
|
+
"@babel/preset-stage-2": "^7.0.0",
|
|
67
|
+
"@vue/babel-preset-jsx": "^1.1.0",
|
|
68
|
+
"@vue/compiler-sfc": "^3.0.11",
|
|
69
|
+
"eslint": "^4.12.0",
|
|
70
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
71
|
+
"eslint-config-prettier": "^3.1.0",
|
|
72
|
+
"eslint-plugin-vue": "^4.7.1",
|
|
73
|
+
"nps": "^5.9.3",
|
|
74
|
+
"nps-utils": "^1.7.0",
|
|
75
|
+
"postcss": "^8.3.0",
|
|
76
|
+
"rollup": "^1.20.3",
|
|
77
|
+
"rollup-plugin-babel": "^4.3.3",
|
|
78
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
79
|
+
"rollup-plugin-json": "^4.0.0",
|
|
80
|
+
"rollup-plugin-node-builtins": "^2.1.2",
|
|
81
|
+
"rollup-plugin-node-globals": "^1.4.0",
|
|
82
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
83
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
84
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
85
|
+
"rollup-plugin-terser": "^5.1.1",
|
|
86
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
87
|
+
"vue-eslint-parser": "^3.2.2"
|
|
88
|
+
}
|
|
89
89
|
}
|