@appbaseio/reactivesearch-vue 1.36.6 → 1.36.7
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 +35043 -26307
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +42 -42
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +118 -91
- package/dist/cjs/{ReactiveComponentPrivate-04f3bf64.js → ReactiveComponentPrivate-3a197e2c.js} +103 -66
- package/dist/cjs/ReactiveComponentPrivate.js +1 -1
- package/dist/cjs/ReactiveGoogleMap.js +8 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/DataSearch.js +118 -91
- package/dist/es/{ReactiveComponentPrivate-a774148b.js → ReactiveComponentPrivate-ebe9a60a.js} +103 -66
- package/dist/es/ReactiveComponentPrivate.js +1 -1
- package/dist/es/ReactiveGoogleMap.js +8 -0
- package/dist/es/index.js +1 -1
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
package/dist/es/{ReactiveComponentPrivate-a774148b.js → ReactiveComponentPrivate-ebe9a60a.js}
RENAMED
|
@@ -77,7 +77,8 @@ var SearchBox = {
|
|
|
77
77
|
currentValue: '',
|
|
78
78
|
selectedTags: [],
|
|
79
79
|
isOpen: false,
|
|
80
|
-
normalizedSuggestions: []
|
|
80
|
+
normalizedSuggestions: [],
|
|
81
|
+
isSuggestionSelected: false
|
|
81
82
|
};
|
|
82
83
|
this.internalComponent = props.componentId + "__internal";
|
|
83
84
|
return this.__state;
|
|
@@ -277,7 +278,9 @@ var SearchBox = {
|
|
|
277
278
|
if (this.$options.isTagsMode) {
|
|
278
279
|
cause = causes.SUGGESTION_SELECT;
|
|
279
280
|
}
|
|
280
|
-
this.
|
|
281
|
+
if (!this.isSuggestionSelected) {
|
|
282
|
+
this.setValue(newVal || '', true, this.$props, cause);
|
|
283
|
+
}
|
|
281
284
|
}
|
|
282
285
|
},
|
|
283
286
|
focusShortcuts: function focusShortcuts() {
|
|
@@ -406,10 +409,11 @@ var SearchBox = {
|
|
|
406
409
|
categoryValue = undefined;
|
|
407
410
|
}
|
|
408
411
|
var performUpdate = function performUpdate() {
|
|
412
|
+
var isTagAdded = false;
|
|
409
413
|
if (_this.$options.isTagsMode && isEqual(value, _this.selectedTags)) {
|
|
410
414
|
return;
|
|
411
415
|
}
|
|
412
|
-
if (_this.$options.isTagsMode
|
|
416
|
+
if (_this.$options.isTagsMode) {
|
|
413
417
|
if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
|
|
414
418
|
// check if value already present in selectedTags
|
|
415
419
|
if (typeof value === 'string' && _this.selectedTags.includes(value)) {
|
|
@@ -418,14 +422,36 @@ var SearchBox = {
|
|
|
418
422
|
}
|
|
419
423
|
_this.selectedTags = [].concat(_this.selectedTags);
|
|
420
424
|
if (typeof value === 'string' && !!value) {
|
|
421
|
-
|
|
425
|
+
if (props.strictSelection && cause === causes.SUGGESTION_SELECT) {
|
|
426
|
+
_this.selectedTags.push(value);
|
|
427
|
+
isTagAdded = true;
|
|
428
|
+
} else if (!props.strictSelection) {
|
|
429
|
+
_this.selectedTags.push(value);
|
|
430
|
+
isTagAdded = true;
|
|
431
|
+
}
|
|
422
432
|
} else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
|
|
423
|
-
|
|
433
|
+
if (props.strictSelection && cause === causes.SUGGESTION_SELECT) {
|
|
434
|
+
_this.selectedTags = value;
|
|
435
|
+
isTagAdded = true;
|
|
436
|
+
} else if (!props.strictSelection) {
|
|
437
|
+
_this.selectedTags.push(value);
|
|
438
|
+
isTagAdded = true;
|
|
439
|
+
}
|
|
424
440
|
}
|
|
425
441
|
} else if (value) {
|
|
426
|
-
|
|
442
|
+
if (props.strictSelection && cause === causes.SUGGESTION_SELECT) {
|
|
443
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
444
|
+
isTagAdded = true;
|
|
445
|
+
} else if (!props.strictSelection) {
|
|
446
|
+
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
447
|
+
isTagAdded = true;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if (props.strictSelection && !isTagAdded) {
|
|
451
|
+
_this.currentValue = value;
|
|
452
|
+
} else {
|
|
453
|
+
_this.currentValue = '';
|
|
427
454
|
}
|
|
428
|
-
_this.currentValue = '';
|
|
429
455
|
} else {
|
|
430
456
|
_this.currentValue = decodeHtml(value);
|
|
431
457
|
}
|
|
@@ -438,16 +464,22 @@ var SearchBox = {
|
|
|
438
464
|
if (toggleIsOpen) {
|
|
439
465
|
_this.isOpen = false;
|
|
440
466
|
}
|
|
441
|
-
if (typeof _this.currentValue === 'string')
|
|
467
|
+
if (typeof _this.currentValue === 'string') {
|
|
468
|
+
if (_this.$options.isTagsMode && props.strictSelection && isTagAdded) {
|
|
469
|
+
_this.triggerDefaultQuery(_this.currentValue);
|
|
470
|
+
} else if (!_this.$options.isTagsMode) {
|
|
471
|
+
_this.triggerDefaultQuery(_this.currentValue);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
442
474
|
} // in case of strict selection only SUGGESTION_SELECT should be able
|
|
443
475
|
// to set the query otherwise the value should reset
|
|
444
|
-
if (props.strictSelection) {
|
|
476
|
+
if (_this.$options.isTagsMode && props.strictSelection && isTagAdded) {
|
|
445
477
|
if (cause === causes.SUGGESTION_SELECT || (_this.$options.isTagsMode ? _this.selectedTags.length === 0 : value === '')) {
|
|
446
478
|
_this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
|
|
447
|
-
} else {
|
|
479
|
+
} else if (!props.strictSelection) {
|
|
448
480
|
_this.setValue('', true);
|
|
449
481
|
}
|
|
450
|
-
} else if (props.value === undefined || cause === causes.SUGGESTION_SELECT || cause === causes.CLEAR_VALUE) {
|
|
482
|
+
} else if (!_this.$options.isTagsMode && (props.value === undefined || cause === causes.SUGGESTION_SELECT || cause === causes.CLEAR_VALUE)) {
|
|
451
483
|
_this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
|
|
452
484
|
}
|
|
453
485
|
} else {
|
|
@@ -566,6 +598,7 @@ var SearchBox = {
|
|
|
566
598
|
this.onValueSelectedHandler('', causes.CLEAR_VALUE);
|
|
567
599
|
},
|
|
568
600
|
handleKeyDown: function handleKeyDown(event, highlightedIndex) {
|
|
601
|
+
var _this2 = this;
|
|
569
602
|
if (highlightedIndex === void 0) {
|
|
570
603
|
highlightedIndex = null;
|
|
571
604
|
}
|
|
@@ -574,7 +607,11 @@ var SearchBox = {
|
|
|
574
607
|
if (this.$props.autosuggest === false) {
|
|
575
608
|
this.enterButtonOnClick();
|
|
576
609
|
} else if (highlightedIndex === null) {
|
|
577
|
-
this.
|
|
610
|
+
this.isSuggestionSelected = true;
|
|
611
|
+
setTimeout(function () {
|
|
612
|
+
_this2.isSuggestionSelected = false;
|
|
613
|
+
}, 50);
|
|
614
|
+
this.setValue(event.target.value, true, this.$props, undefined // to handle tags
|
|
578
615
|
);
|
|
579
616
|
|
|
580
617
|
this.onValueSelectedHandler(event.target.value, causes.ENTER_PRESS);
|
|
@@ -586,7 +623,7 @@ var SearchBox = {
|
|
|
586
623
|
this.$emit('key-down', event, this.triggerQuery);
|
|
587
624
|
},
|
|
588
625
|
onInputChange: function onInputChange(e) {
|
|
589
|
-
var
|
|
626
|
+
var _this3 = this;
|
|
590
627
|
var inputValue = e.target.value;
|
|
591
628
|
if (!this.$data.isOpen && this.$props.autosuggest) {
|
|
592
629
|
this.isOpen = true;
|
|
@@ -597,7 +634,7 @@ var SearchBox = {
|
|
|
597
634
|
} else {
|
|
598
635
|
this.$emit('change', inputValue, function (_ref3) {
|
|
599
636
|
var isOpen = _ref3.isOpen;
|
|
600
|
-
return
|
|
637
|
+
return _this3.triggerQuery({
|
|
601
638
|
defaultQuery: true,
|
|
602
639
|
customQuery: true,
|
|
603
640
|
value: inputValue,
|
|
@@ -607,7 +644,7 @@ var SearchBox = {
|
|
|
607
644
|
}
|
|
608
645
|
},
|
|
609
646
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
610
|
-
var
|
|
647
|
+
var _this4 = this;
|
|
611
648
|
this.isOpen = false;
|
|
612
649
|
var value = this.$props.value;
|
|
613
650
|
// Record analytics for selected suggestions
|
|
@@ -628,10 +665,10 @@ var SearchBox = {
|
|
|
628
665
|
this.setValue(emitValue, true, this.$props, causes.SUGGESTION_SELECT, false, suggestion._category);
|
|
629
666
|
this.$emit('change', emitValue, function (_ref4) {
|
|
630
667
|
var isOpen = _ref4.isOpen;
|
|
631
|
-
return
|
|
668
|
+
return _this4.triggerQuery(_extends({
|
|
632
669
|
isOpen: isOpen,
|
|
633
670
|
value: emitValue
|
|
634
|
-
}, !
|
|
671
|
+
}, !_this4.$options.isTagsMode && {
|
|
635
672
|
categoryValue: suggestion._category
|
|
636
673
|
}));
|
|
637
674
|
});
|
|
@@ -746,7 +783,7 @@ var SearchBox = {
|
|
|
746
783
|
});
|
|
747
784
|
},
|
|
748
785
|
renderEnterButtonElement: function renderEnterButtonElement() {
|
|
749
|
-
var
|
|
786
|
+
var _this5 = this;
|
|
750
787
|
var h = this.$createElement;
|
|
751
788
|
var _this$$props4 = this.$props,
|
|
752
789
|
enterButton = _this$$props4.enterButton,
|
|
@@ -755,7 +792,7 @@ var SearchBox = {
|
|
|
755
792
|
if (enterButton) {
|
|
756
793
|
var getEnterButtonMarkup = function getEnterButtonMarkup() {
|
|
757
794
|
if (renderEnterButton) {
|
|
758
|
-
return renderEnterButton(
|
|
795
|
+
return renderEnterButton(_this5.enterButtonOnClick);
|
|
759
796
|
}
|
|
760
797
|
return h(Button, {
|
|
761
798
|
"class": "enter-btn " + getClassName(innerClass, 'enter-button'),
|
|
@@ -763,7 +800,7 @@ var SearchBox = {
|
|
|
763
800
|
"primary": true
|
|
764
801
|
},
|
|
765
802
|
"on": {
|
|
766
|
-
"click":
|
|
803
|
+
"click": _this5.enterButtonOnClick
|
|
767
804
|
}
|
|
768
805
|
}, ["Search"]);
|
|
769
806
|
};
|
|
@@ -830,7 +867,7 @@ var SearchBox = {
|
|
|
830
867
|
(_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
|
|
831
868
|
},
|
|
832
869
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
833
|
-
var
|
|
870
|
+
var _this6 = this;
|
|
834
871
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
835
872
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
836
873
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -845,7 +882,7 @@ var SearchBox = {
|
|
|
845
882
|
function (event, handler) {
|
|
846
883
|
// Prevent the default refresh event under WINDOWS system
|
|
847
884
|
event.preventDefault();
|
|
848
|
-
|
|
885
|
+
_this6.focusSearchBox(event);
|
|
849
886
|
});
|
|
850
887
|
|
|
851
888
|
// if one of modifier keys are used, they are handled below
|
|
@@ -855,7 +892,7 @@ var SearchBox = {
|
|
|
855
892
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
856
893
|
var element = modifierKeys[index];
|
|
857
894
|
if (hotkeys[element]) {
|
|
858
|
-
|
|
895
|
+
_this6.focusSearchBox(event);
|
|
859
896
|
break;
|
|
860
897
|
}
|
|
861
898
|
}
|
|
@@ -868,11 +905,11 @@ var SearchBox = {
|
|
|
868
905
|
this.triggerDefaultQuery(value);
|
|
869
906
|
},
|
|
870
907
|
renderAutoFill: function renderAutoFill(suggestion) {
|
|
871
|
-
var
|
|
908
|
+
var _this7 = this;
|
|
872
909
|
var h = this.$createElement;
|
|
873
910
|
var handleAutoFillClick = function handleAutoFillClick(e) {
|
|
874
911
|
e.stopPropagation();
|
|
875
|
-
|
|
912
|
+
_this7.onAutofillClick(suggestion);
|
|
876
913
|
};
|
|
877
914
|
/* 👇 avoid showing autofill for category suggestions👇 */
|
|
878
915
|
return suggestion._category ? null : h(AutoFillSvg, {
|
|
@@ -882,7 +919,7 @@ var SearchBox = {
|
|
|
882
919
|
});
|
|
883
920
|
},
|
|
884
921
|
renderTag: function renderTag(item) {
|
|
885
|
-
var
|
|
922
|
+
var _this8 = this;
|
|
886
923
|
var h = this.$createElement;
|
|
887
924
|
var innerClass = this.$props.innerClass;
|
|
888
925
|
return h(TagItem, {
|
|
@@ -895,7 +932,7 @@ var SearchBox = {
|
|
|
895
932
|
"class": "close-icon",
|
|
896
933
|
"on": {
|
|
897
934
|
"click": function click() {
|
|
898
|
-
return
|
|
935
|
+
return _this8.clearTag(item);
|
|
899
936
|
}
|
|
900
937
|
}
|
|
901
938
|
}, [h(CancelSvg)])]);
|
|
@@ -917,7 +954,7 @@ var SearchBox = {
|
|
|
917
954
|
}
|
|
918
955
|
},
|
|
919
956
|
renderTags: function renderTags() {
|
|
920
|
-
var
|
|
957
|
+
var _this9 = this;
|
|
921
958
|
var h = this.$createElement;
|
|
922
959
|
if (!Array.isArray(this.selectedTags)) {
|
|
923
960
|
return null;
|
|
@@ -930,7 +967,7 @@ var SearchBox = {
|
|
|
930
967
|
handleClear: this.clearTag,
|
|
931
968
|
handleClearAll: this.clearAllTags
|
|
932
969
|
}) : h(TagsContainer, [tagsList.map(function (item) {
|
|
933
|
-
return
|
|
970
|
+
return _this9.renderTag(item);
|
|
934
971
|
}), shouldRenderClearAllTag && h(TagItem, {
|
|
935
972
|
"class": getClassName(this.$props.innerClass, 'selected-tag') || ''
|
|
936
973
|
}, [h("span", ["Clear All"]), h("span", {
|
|
@@ -946,7 +983,7 @@ var SearchBox = {
|
|
|
946
983
|
}
|
|
947
984
|
},
|
|
948
985
|
render: function render() {
|
|
949
|
-
var
|
|
986
|
+
var _this10 = this;
|
|
950
987
|
var h = arguments[0];
|
|
951
988
|
var _this$$props6 = this.$props,
|
|
952
989
|
theme = _this$$props6.theme,
|
|
@@ -987,14 +1024,14 @@ var SearchBox = {
|
|
|
987
1024
|
return null;
|
|
988
1025
|
}
|
|
989
1026
|
};
|
|
990
|
-
return h("div", [
|
|
1027
|
+
return h("div", [_this10.hasCustomRenderer && _this10.getComponent({
|
|
991
1028
|
isOpen: isOpen,
|
|
992
1029
|
getItemProps: getItemProps,
|
|
993
1030
|
getItemEvents: getItemEvents,
|
|
994
1031
|
highlightedIndex: highlightedIndex
|
|
995
|
-
}),
|
|
996
|
-
"class": suggestions(
|
|
997
|
-
}, [
|
|
1032
|
+
}), _this10.renderErrorComponent(), !_this10.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
|
|
1033
|
+
"class": suggestions(_this10.themePreset, theme) + " " + getClassName(_this10.$props.innerClass, 'list')
|
|
1034
|
+
}, [_this10.normalizedSuggestions.map(function (item, index) {
|
|
998
1035
|
return renderItem ? h("li", {
|
|
999
1036
|
"domProps": _extends({}, getItemProps({
|
|
1000
1037
|
item: item
|
|
@@ -1004,7 +1041,7 @@ var SearchBox = {
|
|
|
1004
1041
|
})),
|
|
1005
1042
|
"key": index + 1 + "-" + item.value,
|
|
1006
1043
|
"style": {
|
|
1007
|
-
backgroundColor:
|
|
1044
|
+
backgroundColor: _this10.getBackgroundColor(highlightedIndex, index),
|
|
1008
1045
|
justifyContent: 'flex-start',
|
|
1009
1046
|
alignItems: 'center'
|
|
1010
1047
|
}
|
|
@@ -1017,7 +1054,7 @@ var SearchBox = {
|
|
|
1017
1054
|
})),
|
|
1018
1055
|
"key": index + 1 + "-" + item.value,
|
|
1019
1056
|
"style": {
|
|
1020
|
-
backgroundColor:
|
|
1057
|
+
backgroundColor: _this10.getBackgroundColor(highlightedIndex, index),
|
|
1021
1058
|
justifyContent: 'flex-start',
|
|
1022
1059
|
alignItems: 'center'
|
|
1023
1060
|
}
|
|
@@ -1028,58 +1065,58 @@ var SearchBox = {
|
|
|
1028
1065
|
}
|
|
1029
1066
|
}, [h(CustomSvg, {
|
|
1030
1067
|
"attrs": {
|
|
1031
|
-
"className": getClassName(
|
|
1068
|
+
"className": getClassName(_this10.$props.innerClass, item._suggestion_type + "-search-icon") || null,
|
|
1032
1069
|
"icon": getIcon(item._suggestion_type),
|
|
1033
1070
|
"type": item._suggestion_type + "-search-icon"
|
|
1034
1071
|
}
|
|
1035
1072
|
})]), h(SuggestionItem, {
|
|
1036
1073
|
"attrs": {
|
|
1037
|
-
"currentValue":
|
|
1074
|
+
"currentValue": _this10.currentValue,
|
|
1038
1075
|
"suggestion": item
|
|
1039
1076
|
}
|
|
1040
|
-
}),
|
|
1041
|
-
})]) :
|
|
1077
|
+
}), _this10.renderAutoFill(item)]);
|
|
1078
|
+
})]) : _this10.renderNoSuggestions(_this10.normalizedSuggestions)]);
|
|
1042
1079
|
};
|
|
1043
1080
|
return h("div", {
|
|
1044
1081
|
"class": suggestionsContainer
|
|
1045
|
-
}, [h(InputGroup, [
|
|
1082
|
+
}, [h(InputGroup, [_this10.renderInputAddonBefore(), h(InputWrapper, [h(Input, {
|
|
1046
1083
|
"attrs": {
|
|
1047
|
-
"id":
|
|
1048
|
-
"showIcon":
|
|
1049
|
-
"showClear":
|
|
1050
|
-
"iconPosition":
|
|
1051
|
-
"placeholder":
|
|
1052
|
-
"autoFocus":
|
|
1053
|
-
"themePreset":
|
|
1084
|
+
"id": _this10.$props.componentId + "-input",
|
|
1085
|
+
"showIcon": _this10.$props.showIcon,
|
|
1086
|
+
"showClear": _this10.$props.showClear,
|
|
1087
|
+
"iconPosition": _this10.$props.iconPosition,
|
|
1088
|
+
"placeholder": _this10.$props.placeholder,
|
|
1089
|
+
"autoFocus": _this10.$props.autoFocus,
|
|
1090
|
+
"themePreset": _this10.themePreset,
|
|
1054
1091
|
"autocomplete": "off"
|
|
1055
1092
|
},
|
|
1056
|
-
"ref":
|
|
1057
|
-
"class": getClassName(
|
|
1093
|
+
"ref": _this10.$props.innerRef,
|
|
1094
|
+
"class": getClassName(_this10.$props.innerClass, 'input'),
|
|
1058
1095
|
"on": _extends({}, getInputEvents({
|
|
1059
|
-
onInput:
|
|
1096
|
+
onInput: _this10.onInputChange,
|
|
1060
1097
|
onBlur: function onBlur(e) {
|
|
1061
|
-
|
|
1098
|
+
_this10.$emit('blur', e, _this10.triggerQuery);
|
|
1062
1099
|
},
|
|
1063
|
-
onFocus:
|
|
1100
|
+
onFocus: _this10.handleFocus,
|
|
1064
1101
|
onKeyPress: function onKeyPress(e) {
|
|
1065
|
-
|
|
1066
|
-
|
|
1102
|
+
_this10.$emit('keyPress', e, _this10.triggerQuery);
|
|
1103
|
+
_this10.$emit('key-press', e, _this10.triggerQuery);
|
|
1067
1104
|
},
|
|
1068
1105
|
onKeyDown: function onKeyDown(e) {
|
|
1069
|
-
return
|
|
1106
|
+
return _this10.handleKeyDown(e, highlightedIndex);
|
|
1070
1107
|
},
|
|
1071
1108
|
onKeyUp: function onKeyUp(e) {
|
|
1072
|
-
|
|
1073
|
-
|
|
1109
|
+
_this10.$emit('keyUp', e, _this10.triggerQuery);
|
|
1110
|
+
_this10.$emit('key-up', e, _this10.triggerQuery);
|
|
1074
1111
|
},
|
|
1075
1112
|
onClick: function onClick() {
|
|
1076
1113
|
setHighlightedIndex(null);
|
|
1077
1114
|
}
|
|
1078
1115
|
})),
|
|
1079
1116
|
"domProps": _extends({}, getInputProps({
|
|
1080
|
-
value:
|
|
1117
|
+
value: _this10.$data.currentValue === null ? '' : _this10.$data.currentValue
|
|
1081
1118
|
}))
|
|
1082
|
-
}),
|
|
1119
|
+
}), _this10.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()]), _this10.renderInputAddonAfter(), _this10.renderEnterButtonElement()]), expandSuggestionsContainer && renderSuggestionsDropdown(), _this10.renderTags()]);
|
|
1083
1120
|
}
|
|
1084
1121
|
}
|
|
1085
1122
|
}) : h("div", {
|
|
@@ -1095,20 +1132,20 @@ var SearchBox = {
|
|
|
1095
1132
|
},
|
|
1096
1133
|
"on": _extends({}, {
|
|
1097
1134
|
blur: function blur(e) {
|
|
1098
|
-
|
|
1135
|
+
_this10.$emit('blur', e, _this10.triggerQuery);
|
|
1099
1136
|
},
|
|
1100
1137
|
keypress: function keypress(e) {
|
|
1101
|
-
|
|
1102
|
-
|
|
1138
|
+
_this10.$emit('keyPress', e, _this10.triggerQuery);
|
|
1139
|
+
_this10.$emit('key-press', e, _this10.triggerQuery);
|
|
1103
1140
|
},
|
|
1104
1141
|
input: this.onInputChange,
|
|
1105
1142
|
focus: function focus(e) {
|
|
1106
|
-
|
|
1143
|
+
_this10.$emit('focus', e, _this10.triggerQuery);
|
|
1107
1144
|
},
|
|
1108
1145
|
keydown: this.handleKeyDown,
|
|
1109
1146
|
keyup: function keyup(e) {
|
|
1110
|
-
|
|
1111
|
-
|
|
1147
|
+
_this10.$emit('keyUp', e, _this10.triggerQuery);
|
|
1148
|
+
_this10.$emit('key-up', e, _this10.triggerQuery);
|
|
1112
1149
|
}
|
|
1113
1150
|
}),
|
|
1114
1151
|
"domProps": _extends({}, {
|
|
@@ -27,7 +27,7 @@ import './Input-c09c0b56.js';
|
|
|
27
27
|
import 'compute-scroll-into-view';
|
|
28
28
|
import './Container-d00219f7.js';
|
|
29
29
|
import 'vue-highlight-words';
|
|
30
|
-
export { R as default } from './ReactiveComponentPrivate-
|
|
30
|
+
export { R as default } from './ReactiveComponentPrivate-ebe9a60a.js';
|
|
31
31
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
32
32
|
import './FormControlList-99797d0a.js';
|
|
33
33
|
import './utils-9e5a16a1.js';
|
|
@@ -2,6 +2,7 @@ import { Actions, helper } from '@appbaseio/reactivecore';
|
|
|
2
2
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey, d as _inheritsLoose, _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
|
|
4
4
|
import VueTypes from 'vue-types';
|
|
5
|
+
import { isEqual as isEqual$2 } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
5
6
|
import 'emotion';
|
|
6
7
|
import styled, { css } from '@appbaseio/vue-emotion';
|
|
7
8
|
import 'polished';
|
|
@@ -1681,6 +1682,13 @@ var GoogleMapMarker = {
|
|
|
1681
1682
|
markerIcon: null
|
|
1682
1683
|
};
|
|
1683
1684
|
},
|
|
1685
|
+
watch: {
|
|
1686
|
+
marker: function marker(newVal, oldVal) {
|
|
1687
|
+
if (!isEqual$2(newVal, oldVal)) {
|
|
1688
|
+
this.markerIcon = null;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
},
|
|
1684
1692
|
methods: {
|
|
1685
1693
|
setIcon: function setIcon(icon) {
|
|
1686
1694
|
this.markerIcon = icon;
|
package/dist/es/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import 'compute-scroll-into-view';
|
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
35
|
export { default as DataSearch } from './DataSearch.js';
|
|
36
|
-
export { R as ReactiveComponentPrivate, S as SearchBox } from './ReactiveComponentPrivate-
|
|
36
|
+
export { R as ReactiveComponentPrivate, S as SearchBox } from './ReactiveComponentPrivate-ebe9a60a.js';
|
|
37
37
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
38
38
|
import './FormControlList-99797d0a.js';
|
|
39
39
|
import './utils-9e5a16a1.js';
|
package/dist/es/install.js
CHANGED
|
@@ -33,7 +33,7 @@ import 'compute-scroll-into-view';
|
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
35
|
import DataSearch from './DataSearch.js';
|
|
36
|
-
import { S as SearchBox, R as ReactiveComponentPrivate } from './ReactiveComponentPrivate-
|
|
36
|
+
import { S as SearchBox, R as ReactiveComponentPrivate } from './ReactiveComponentPrivate-ebe9a60a.js';
|
|
37
37
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
38
38
|
import './FormControlList-99797d0a.js';
|
|
39
39
|
import './utils-9e5a16a1.js';
|
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.7",
|
|
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",
|