@appbaseio/reactivesearch-vue 1.36.2 → 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 +107 -79
- 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 +106 -78
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +106 -78
- package/dist/es/version.js +1 -1
- package/package.json +87 -87
package/dist/es/DataSearch.js
CHANGED
|
@@ -53,7 +53,8 @@ var DataSearch = {
|
|
|
53
53
|
selectedTags: [],
|
|
54
54
|
isOpen: false,
|
|
55
55
|
normalizedSuggestions: [],
|
|
56
|
-
isPending: false
|
|
56
|
+
isPending: false,
|
|
57
|
+
isSuggestionSelected: false
|
|
57
58
|
};
|
|
58
59
|
this.internalComponent = props.componentId + "__internal";
|
|
59
60
|
return this.__state;
|
|
@@ -431,13 +432,13 @@ var DataSearch = {
|
|
|
431
432
|
if (isTagsMode && isEqual(value, _this.selectedTags)) {
|
|
432
433
|
return;
|
|
433
434
|
}
|
|
434
|
-
// Refresh recent searches when value becomes empty
|
|
435
435
|
if (!value && props.enableDefaultSuggestions === false) {
|
|
436
436
|
_this.resetStoreForComponent(props.componentId);
|
|
437
437
|
} else if (!value && _this.currentValue && _this.enableRecentSearches) {
|
|
438
438
|
_this.getRecentSearches();
|
|
439
439
|
}
|
|
440
440
|
if (isTagsMode) {
|
|
441
|
+
var isTagAdded = false;
|
|
441
442
|
if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
|
|
442
443
|
// check if value already present in selectedTags
|
|
443
444
|
if (typeof value === 'string' && _this.selectedTags.includes(value)) {
|
|
@@ -446,14 +447,36 @@ var DataSearch = {
|
|
|
446
447
|
}
|
|
447
448
|
_this.selectedTags = [].concat(_this.selectedTags);
|
|
448
449
|
if (typeof value === 'string' && !!value) {
|
|
449
|
-
|
|
450
|
+
if (props.strictSelection && cause === causes.SUGGESTION_SELECT) {
|
|
451
|
+
_this.selectedTags.push(value);
|
|
452
|
+
isTagAdded = true;
|
|
453
|
+
} else if (!props.strictSelection) {
|
|
454
|
+
_this.selectedTags.push(value);
|
|
455
|
+
isTagAdded = true;
|
|
456
|
+
}
|
|
450
457
|
} else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
|
|
451
|
-
|
|
458
|
+
if (props.strictSelection && cause === causes.SUGGESTION_SELECT) {
|
|
459
|
+
_this.selectedTags = value;
|
|
460
|
+
isTagAdded = true;
|
|
461
|
+
} else if (!props.strictSelection) {
|
|
462
|
+
_this.selectedTags.push(value);
|
|
463
|
+
isTagAdded = true;
|
|
464
|
+
}
|
|
452
465
|
}
|
|
453
466
|
} else if (value) {
|
|
454
|
-
|
|
467
|
+
if (props.strictSelection && cause === causes.SUGGESTION_SELECT) {
|
|
468
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
469
|
+
isTagAdded = true;
|
|
470
|
+
} else if (!props.strictSelection) {
|
|
471
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
472
|
+
isTagAdded = true;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
if (props.strictSelection && !isTagAdded) {
|
|
476
|
+
_this.currentValue = value;
|
|
477
|
+
} else {
|
|
478
|
+
_this.currentValue = '';
|
|
455
479
|
}
|
|
456
|
-
_this.currentValue = '';
|
|
457
480
|
} else {
|
|
458
481
|
_this.currentValue = value;
|
|
459
482
|
}
|
|
@@ -473,7 +496,7 @@ var DataSearch = {
|
|
|
473
496
|
if (props.strictSelection && props.autosuggest) {
|
|
474
497
|
if (cause === causes.SUGGESTION_SELECT || props.value !== undefined) {
|
|
475
498
|
_this.updateQueryHandler(props.componentId, queryHandlerValue, props);
|
|
476
|
-
} else if (_this.currentValue !== '') {
|
|
499
|
+
} else if (_this.currentValue !== '' && !props.strictSelection) {
|
|
477
500
|
_this.setValue('', true);
|
|
478
501
|
}
|
|
479
502
|
} else {
|
|
@@ -503,11 +526,6 @@ var DataSearch = {
|
|
|
503
526
|
if (props === void 0) {
|
|
504
527
|
props = this.$props;
|
|
505
528
|
}
|
|
506
|
-
if (!value && props.enableDefaultSuggestions === false) {
|
|
507
|
-
// clear Component data from store
|
|
508
|
-
this.resetStoreForComponent(props.componentId);
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
529
|
var defaultQueryOptions;
|
|
512
530
|
var query = DataSearch.defaultQuery(value, props);
|
|
513
531
|
if (this.defaultQuery) {
|
|
@@ -520,13 +538,18 @@ var DataSearch = {
|
|
|
520
538
|
// Update calculated default query in store
|
|
521
539
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
522
540
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
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
|
+
}
|
|
530
553
|
},
|
|
531
554
|
updateQueryHandler: function updateQueryHandler(componentId, value, props) {
|
|
532
555
|
var customQuery = props.customQuery,
|
|
@@ -602,17 +625,17 @@ var DataSearch = {
|
|
|
602
625
|
var targetValue = event.target.value;
|
|
603
626
|
var _this$$props2 = this.$props,
|
|
604
627
|
value = _this$$props2.value,
|
|
605
|
-
|
|
606
|
-
size = _this$$props2.size,
|
|
607
|
-
autosuggest = _this$$props2.autosuggest;
|
|
628
|
+
size = _this$$props2.size;
|
|
608
629
|
if (value !== undefined) {
|
|
609
630
|
this.isPending = true;
|
|
610
631
|
}
|
|
611
632
|
// if a suggestion was selected, delegate the handling to suggestion handler
|
|
612
633
|
if (event.key === 'Enter' && (highlightedIndex === null || highlightedIndex < 0 || highlightedIndex === [].concat([].concat(this.suggestionsList).slice(0, size || 10), this.defaultSearchSuggestions, this.topSuggestions).length)) {
|
|
613
634
|
this.isPending = false;
|
|
614
|
-
|
|
615
|
-
|
|
635
|
+
if (!this.isSuggestionSelected) {
|
|
636
|
+
this.setValue(targetValue, true, this.$props, undefined, false);
|
|
637
|
+
this.onValueSelectedHandler(targetValue, causes.ENTER_PRESS);
|
|
638
|
+
}
|
|
616
639
|
}
|
|
617
640
|
// Need to review
|
|
618
641
|
this.$emit('keyDown', event, this.triggerQuery);
|
|
@@ -648,11 +671,16 @@ var DataSearch = {
|
|
|
648
671
|
}
|
|
649
672
|
},
|
|
650
673
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
674
|
+
var _this3 = this;
|
|
651
675
|
var value = this.$props.value;
|
|
652
676
|
// Record analytics for selected suggestions
|
|
653
677
|
this.triggerClickAnalytics(suggestion._click_id);
|
|
654
678
|
if (value === undefined) {
|
|
655
679
|
this.setValue(suggestion.value, true, this.$props, causes.SUGGESTION_SELECT);
|
|
680
|
+
this.isSuggestionSelected = true;
|
|
681
|
+
setTimeout(function () {
|
|
682
|
+
_this3.isSuggestionSelected = false;
|
|
683
|
+
}, 50);
|
|
656
684
|
} else if (this.$options.isTagsMode) {
|
|
657
685
|
var emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
|
|
658
686
|
if (this.selectedTags.includes(suggestion.value)) {
|
|
@@ -758,7 +786,7 @@ var DataSearch = {
|
|
|
758
786
|
return null;
|
|
759
787
|
},
|
|
760
788
|
renderTag: function renderTag(item) {
|
|
761
|
-
var
|
|
789
|
+
var _this4 = this;
|
|
762
790
|
var h = this.$createElement;
|
|
763
791
|
var innerClass = this.$props.innerClass;
|
|
764
792
|
return h(TagItem, {
|
|
@@ -771,7 +799,7 @@ var DataSearch = {
|
|
|
771
799
|
"class": "close-icon",
|
|
772
800
|
"on": {
|
|
773
801
|
"click": function click() {
|
|
774
|
-
return
|
|
802
|
+
return _this4.clearTag(item);
|
|
775
803
|
}
|
|
776
804
|
}
|
|
777
805
|
}, [h(CancelSvg)])]);
|
|
@@ -793,7 +821,7 @@ var DataSearch = {
|
|
|
793
821
|
}
|
|
794
822
|
},
|
|
795
823
|
renderTags: function renderTags() {
|
|
796
|
-
var
|
|
824
|
+
var _this5 = this;
|
|
797
825
|
var h = this.$createElement;
|
|
798
826
|
if (!Array.isArray(this.selectedTags)) {
|
|
799
827
|
return null;
|
|
@@ -806,7 +834,7 @@ var DataSearch = {
|
|
|
806
834
|
handleClear: this.clearTag,
|
|
807
835
|
handleClearAll: this.clearAllTags
|
|
808
836
|
}) : h(TagsContainer, [tagsList.map(function (item) {
|
|
809
|
-
return
|
|
837
|
+
return _this5.renderTag(item);
|
|
810
838
|
}), shouldRenderClearAllTag && h(TagItem, {
|
|
811
839
|
"class": getClassName(this.$props.innerClass, 'selected-tag') || ''
|
|
812
840
|
}, [h("span", ["Clear All"]), h("span", {
|
|
@@ -885,7 +913,7 @@ var DataSearch = {
|
|
|
885
913
|
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
886
914
|
},
|
|
887
915
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
888
|
-
var
|
|
916
|
+
var _this6 = this;
|
|
889
917
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
890
918
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
891
919
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -900,7 +928,7 @@ var DataSearch = {
|
|
|
900
928
|
function (event, handler) {
|
|
901
929
|
// Prevent the default refresh event under WINDOWS system
|
|
902
930
|
event.preventDefault();
|
|
903
|
-
|
|
931
|
+
_this6.focusSearchBox(event);
|
|
904
932
|
});
|
|
905
933
|
|
|
906
934
|
// if one of modifier keys are used, they are handled below
|
|
@@ -910,7 +938,7 @@ var DataSearch = {
|
|
|
910
938
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
911
939
|
var element = modifierKeys[index];
|
|
912
940
|
if (hotkeys[element]) {
|
|
913
|
-
|
|
941
|
+
_this6.focusSearchBox(event);
|
|
914
942
|
break;
|
|
915
943
|
}
|
|
916
944
|
}
|
|
@@ -918,7 +946,7 @@ var DataSearch = {
|
|
|
918
946
|
}
|
|
919
947
|
},
|
|
920
948
|
render: function render() {
|
|
921
|
-
var
|
|
949
|
+
var _this7 = this;
|
|
922
950
|
var h = arguments[0];
|
|
923
951
|
var _this$$props6 = this.$props,
|
|
924
952
|
theme = _this$$props6.theme,
|
|
@@ -953,14 +981,14 @@ var DataSearch = {
|
|
|
953
981
|
highlightedIndex = _ref4.highlightedIndex,
|
|
954
982
|
setHighlightedIndex = _ref4.setHighlightedIndex;
|
|
955
983
|
var renderSuggestionsContainer = function renderSuggestionsContainer() {
|
|
956
|
-
return h("div", [
|
|
984
|
+
return h("div", [_this7.hasCustomRenderer && _this7.getComponent({
|
|
957
985
|
isOpen: isOpen,
|
|
958
986
|
getItemProps: getItemProps,
|
|
959
987
|
getItemEvents: getItemEvents,
|
|
960
988
|
highlightedIndex: highlightedIndex
|
|
961
|
-
}),
|
|
962
|
-
"class": suggestions(
|
|
963
|
-
}, [
|
|
989
|
+
}), _this7.renderErrorComponent(), !_this7.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
|
|
990
|
+
"class": suggestions(_this7.themePreset, theme) + " " + getClassName(_this7.$props.innerClass, 'list')
|
|
991
|
+
}, [_this7.suggestionsList.slice(0, size || 10).map(function (item, index) {
|
|
964
992
|
return h("li", {
|
|
965
993
|
"domProps": _extends({}, getItemProps({
|
|
966
994
|
item: item
|
|
@@ -970,15 +998,15 @@ var DataSearch = {
|
|
|
970
998
|
})),
|
|
971
999
|
"key": index + 1 + "-" + item.value,
|
|
972
1000
|
"style": {
|
|
973
|
-
backgroundColor:
|
|
1001
|
+
backgroundColor: _this7.getBackgroundColor(highlightedIndex, index)
|
|
974
1002
|
}
|
|
975
1003
|
}, [h(SuggestionItem, {
|
|
976
1004
|
"attrs": {
|
|
977
|
-
"currentValue":
|
|
1005
|
+
"currentValue": _this7.currentValue,
|
|
978
1006
|
"suggestion": item
|
|
979
1007
|
}
|
|
980
1008
|
})]);
|
|
981
|
-
}),
|
|
1009
|
+
}), _this7.defaultSearchSuggestions.map(function (sugg, index) {
|
|
982
1010
|
return h("li", {
|
|
983
1011
|
"domProps": _extends({}, getItemProps({
|
|
984
1012
|
item: sugg
|
|
@@ -986,9 +1014,9 @@ var DataSearch = {
|
|
|
986
1014
|
"on": _extends({}, getItemEvents({
|
|
987
1015
|
item: sugg
|
|
988
1016
|
})),
|
|
989
|
-
"key":
|
|
1017
|
+
"key": _this7.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
990
1018
|
"style": {
|
|
991
|
-
backgroundColor:
|
|
1019
|
+
backgroundColor: _this7.getBackgroundColor(highlightedIndex, _this7.suggestionsList.length + index),
|
|
992
1020
|
justifyContent: 'flex-start'
|
|
993
1021
|
}
|
|
994
1022
|
}, [h("div", {
|
|
@@ -997,28 +1025,28 @@ var DataSearch = {
|
|
|
997
1025
|
}
|
|
998
1026
|
}, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
|
|
999
1027
|
"attrs": {
|
|
1000
|
-
"className": getClassName(
|
|
1028
|
+
"className": getClassName(_this7.$props.innerClass, 'recent-search-icon') || null,
|
|
1001
1029
|
"icon": recentSearchesIcon,
|
|
1002
1030
|
"type": "recent-search-icon"
|
|
1003
1031
|
}
|
|
1004
1032
|
}), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
|
|
1005
1033
|
"attrs": {
|
|
1006
|
-
"className": getClassName(
|
|
1034
|
+
"className": getClassName(_this7.$props.innerClass, 'popular-search-icon') || null,
|
|
1007
1035
|
"icon": popularSearchesIcon,
|
|
1008
1036
|
"type": "popular-search-icon"
|
|
1009
1037
|
}
|
|
1010
1038
|
})]), h(SuggestionItem, {
|
|
1011
1039
|
"attrs": {
|
|
1012
|
-
"currentValue":
|
|
1040
|
+
"currentValue": _this7.currentValue,
|
|
1013
1041
|
"suggestion": sugg
|
|
1014
1042
|
}
|
|
1015
1043
|
})]);
|
|
1016
|
-
}), hasQuerySuggestionsRenderer(
|
|
1044
|
+
}), hasQuerySuggestionsRenderer(_this7) ? _this7.getComponent({
|
|
1017
1045
|
isOpen: isOpen,
|
|
1018
1046
|
getItemProps: getItemProps,
|
|
1019
1047
|
getItemEvents: getItemEvents,
|
|
1020
1048
|
highlightedIndex: highlightedIndex
|
|
1021
|
-
}, true) :
|
|
1049
|
+
}, true) : _this7.topSuggestions.map(function (sugg, index) {
|
|
1022
1050
|
return h("li", {
|
|
1023
1051
|
"domProps": _extends({}, getItemProps({
|
|
1024
1052
|
item: sugg
|
|
@@ -1026,9 +1054,9 @@ var DataSearch = {
|
|
|
1026
1054
|
"on": _extends({}, getItemEvents({
|
|
1027
1055
|
item: sugg
|
|
1028
1056
|
})),
|
|
1029
|
-
"key":
|
|
1057
|
+
"key": _this7.suggestionsList.length + index + 1 + "-" + sugg.value,
|
|
1030
1058
|
"style": {
|
|
1031
|
-
backgroundColor:
|
|
1059
|
+
backgroundColor: _this7.getBackgroundColor(highlightedIndex, _this7.suggestionsList.length + index),
|
|
1032
1060
|
justifyContent: 'flex-start'
|
|
1033
1061
|
}
|
|
1034
1062
|
}, [h("div", {
|
|
@@ -1037,58 +1065,58 @@ var DataSearch = {
|
|
|
1037
1065
|
}
|
|
1038
1066
|
}, [h(CustomSvg, {
|
|
1039
1067
|
"attrs": {
|
|
1040
|
-
"className": getClassName(
|
|
1068
|
+
"className": getClassName(_this7.$props.innerClass, 'popular-search-icon') || null,
|
|
1041
1069
|
"icon": popularSearchesIcon,
|
|
1042
1070
|
"type": "popular-search-icon"
|
|
1043
1071
|
}
|
|
1044
1072
|
})]), h(SuggestionItem, {
|
|
1045
1073
|
"attrs": {
|
|
1046
|
-
"currentValue":
|
|
1074
|
+
"currentValue": _this7.currentValue,
|
|
1047
1075
|
"suggestion": sugg
|
|
1048
1076
|
}
|
|
1049
1077
|
})]);
|
|
1050
|
-
})]) :
|
|
1078
|
+
})]) : _this7.renderNoSuggestions(_this7.suggestionsList)]);
|
|
1051
1079
|
};
|
|
1052
1080
|
return h("div", {
|
|
1053
1081
|
"class": suggestionsContainer
|
|
1054
|
-
}, [h(InputGroup, [
|
|
1082
|
+
}, [h(InputGroup, [_this7.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
|
|
1055
1083
|
"attrs": {
|
|
1056
|
-
"id":
|
|
1057
|
-
"showIcon":
|
|
1058
|
-
"showClear":
|
|
1059
|
-
"iconPosition":
|
|
1060
|
-
"placeholder":
|
|
1061
|
-
"autoFocus":
|
|
1062
|
-
"themePreset":
|
|
1084
|
+
"id": _this7.$props.componentId + "-input",
|
|
1085
|
+
"showIcon": _this7.$props.showIcon,
|
|
1086
|
+
"showClear": _this7.$props.showClear,
|
|
1087
|
+
"iconPosition": _this7.$props.iconPosition,
|
|
1088
|
+
"placeholder": _this7.$props.placeholder,
|
|
1089
|
+
"autoFocus": _this7.$props.autoFocus,
|
|
1090
|
+
"themePreset": _this7.themePreset,
|
|
1063
1091
|
"autocomplete": "off"
|
|
1064
1092
|
},
|
|
1065
|
-
"ref":
|
|
1066
|
-
"class": getClassName(
|
|
1093
|
+
"ref": _this7.$props.innerRef,
|
|
1094
|
+
"class": getClassName(_this7.$props.innerClass, 'input'),
|
|
1067
1095
|
"on": _extends({}, getInputEvents({
|
|
1068
|
-
onInput:
|
|
1096
|
+
onInput: _this7.onInputChange,
|
|
1069
1097
|
onBlur: function onBlur(e) {
|
|
1070
|
-
|
|
1098
|
+
_this7.$emit('blur', e, _this7.triggerQuery);
|
|
1071
1099
|
},
|
|
1072
|
-
onFocus:
|
|
1100
|
+
onFocus: _this7.handleFocus,
|
|
1073
1101
|
onKeyPress: function onKeyPress(e) {
|
|
1074
|
-
|
|
1075
|
-
|
|
1102
|
+
_this7.$emit('keyPress', e, _this7.triggerQuery);
|
|
1103
|
+
_this7.$emit('key-press', e, _this7.triggerQuery);
|
|
1076
1104
|
},
|
|
1077
1105
|
onKeyDown: function onKeyDown(e) {
|
|
1078
|
-
return
|
|
1106
|
+
return _this7.handleKeyDown(e, highlightedIndex);
|
|
1079
1107
|
},
|
|
1080
1108
|
onKeyUp: function onKeyUp(e) {
|
|
1081
|
-
|
|
1082
|
-
|
|
1109
|
+
_this7.$emit('keyUp', e, _this7.triggerQuery);
|
|
1110
|
+
_this7.$emit('key-up', e, _this7.triggerQuery);
|
|
1083
1111
|
},
|
|
1084
1112
|
onClick: function onClick() {
|
|
1085
1113
|
setHighlightedIndex(null);
|
|
1086
1114
|
}
|
|
1087
1115
|
})),
|
|
1088
1116
|
"domProps": _extends({}, getInputProps({
|
|
1089
|
-
value:
|
|
1117
|
+
value: _this7.$data.currentValue === null || typeof _this7.$data.currentValue !== 'string' ? '' : _this7.$data.currentValue
|
|
1090
1118
|
}))
|
|
1091
|
-
}),
|
|
1119
|
+
}), _this7.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this7.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this7.renderTags()]);
|
|
1092
1120
|
}
|
|
1093
1121
|
}
|
|
1094
1122
|
}) : h("div", {
|
|
@@ -1104,22 +1132,22 @@ var DataSearch = {
|
|
|
1104
1132
|
},
|
|
1105
1133
|
"on": _extends({}, {
|
|
1106
1134
|
blur: function blur(e) {
|
|
1107
|
-
|
|
1135
|
+
_this7.$emit('blur', e, _this7.triggerQuery);
|
|
1108
1136
|
},
|
|
1109
1137
|
keypress: function keypress(e) {
|
|
1110
|
-
|
|
1111
|
-
|
|
1138
|
+
_this7.$emit('keyPress', e, _this7.triggerQuery);
|
|
1139
|
+
_this7.$emit('key-press', e, _this7.triggerQuery);
|
|
1112
1140
|
},
|
|
1113
1141
|
input: this.onInputChange,
|
|
1114
1142
|
focus: function focus(e) {
|
|
1115
|
-
|
|
1143
|
+
_this7.$emit('focus', e, _this7.triggerQuery);
|
|
1116
1144
|
},
|
|
1117
1145
|
keydown: function keydown(e) {
|
|
1118
|
-
|
|
1146
|
+
_this7.handleKeyDown(e, null);
|
|
1119
1147
|
},
|
|
1120
1148
|
keyup: function keyup(e) {
|
|
1121
|
-
|
|
1122
|
-
|
|
1149
|
+
_this7.$emit('keyUp', e, _this7.triggerQuery);
|
|
1150
|
+
_this7.$emit('key-up', e, _this7.triggerQuery);
|
|
1123
1151
|
}
|
|
1124
1152
|
}),
|
|
1125
1153
|
"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.3",
|
|
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
|
}
|