@appbaseio/reactivesearch-vue 1.33.4 → 1.33.5
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 +159 -105
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DataSearch-2b5740ea.js → DataSearch-1c5c2202.js} +46 -37
- package/dist/cjs/DataSearch.js +1 -1
- package/dist/cjs/DynamicRangeSlider.js +5 -4
- package/dist/cjs/MultiDropdownList.js +5 -4
- package/dist/cjs/MultiList.js +5 -4
- package/dist/cjs/MultiRange.js +5 -4
- package/dist/cjs/RangeInput.js +5 -4
- package/dist/cjs/RangeSlider.js +5 -4
- package/dist/cjs/{ReactiveComponent-fd8d7403.js → ReactiveComponent-4e75c939.js} +13 -14
- package/dist/cjs/ReactiveComponent.js +2 -2
- package/dist/cjs/ReactiveList.js +5 -4
- package/dist/cjs/SelectedFilters.js +4 -3
- package/dist/cjs/SingleDropdownList.js +5 -4
- package/dist/cjs/SingleList.js +5 -4
- package/dist/cjs/SingleRange.js +5 -4
- package/dist/cjs/StateProvider.js +4 -3
- package/dist/cjs/ToggleButton.js +7 -6
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/install.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/{DataSearch-68d2a78c.js → DataSearch-5bb904c5.js} +46 -37
- package/dist/es/DataSearch.js +1 -1
- package/dist/es/DynamicRangeSlider.js +5 -4
- package/dist/es/MultiDropdownList.js +5 -4
- package/dist/es/MultiList.js +5 -4
- package/dist/es/MultiRange.js +5 -4
- package/dist/es/RangeInput.js +5 -4
- package/dist/es/RangeSlider.js +5 -4
- package/dist/es/{ReactiveComponent-62fa87e0.js → ReactiveComponent-09c183c8.js} +21 -22
- package/dist/es/ReactiveComponent.js +2 -2
- package/dist/es/ReactiveList.js +5 -4
- package/dist/es/SelectedFilters.js +4 -3
- package/dist/es/SingleDropdownList.js +5 -4
- package/dist/es/SingleList.js +5 -4
- package/dist/es/SingleRange.js +5 -4
- package/dist/es/StateProvider.js +4 -3
- package/dist/es/ToggleButton.js +7 -6
- package/dist/es/index.js +2 -2
- package/dist/es/install.js +2 -2
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -946,6 +946,7 @@ var DataSearch = {
|
|
|
946
946
|
}
|
|
947
947
|
this.handleTextChange = debounce(this.handleText, this.$props.debounce);
|
|
948
948
|
this.updateDefaultQueryHandlerDebounced = debounce(this.updateDefaultQueryHandler, this.$props.debounce);
|
|
949
|
+
this.updateQueryHandlerDebounced = debounce(this.updateQueryHandler, this.$props.debounce);
|
|
949
950
|
// Set custom and default queries in store
|
|
950
951
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
951
952
|
updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
|
|
@@ -1129,7 +1130,7 @@ var DataSearch = {
|
|
|
1129
1130
|
if (this.isPending && this.$options.isTagsMode && Array.isArray(newVal)) {
|
|
1130
1131
|
this.isPending = false;
|
|
1131
1132
|
}
|
|
1132
|
-
this.setValue(newVal, true, this.$props, undefined, false, typeof newVal !== 'string' && this.$options.isTagsMode);
|
|
1133
|
+
this.setValue(newVal, true, this.$props, newVal === '' ? causes.CLEAR_VALUE : undefined, false, typeof newVal !== 'string' && this.$options.isTagsMode);
|
|
1133
1134
|
}
|
|
1134
1135
|
},
|
|
1135
1136
|
defaultQuery: function defaultQuery(newVal, oldVal) {
|
|
@@ -1171,8 +1172,10 @@ var DataSearch = {
|
|
|
1171
1172
|
handleText: function handleText(value) {
|
|
1172
1173
|
if (this.$props.autosuggest) {
|
|
1173
1174
|
this.updateDefaultQueryHandlerDebounced(value, this.$props);
|
|
1174
|
-
} else {
|
|
1175
|
-
this.
|
|
1175
|
+
} else if (!this.$options.isTagsMode) {
|
|
1176
|
+
this.updateQueryHandlerDebounced(this.$props.componentId, value, this.$props);
|
|
1177
|
+
} else if (this.$options.isTagsMode) {
|
|
1178
|
+
this.$data.currentValue = value;
|
|
1176
1179
|
}
|
|
1177
1180
|
},
|
|
1178
1181
|
validateDataField: function validateDataField() {
|
|
@@ -1317,10 +1320,10 @@ var DataSearch = {
|
|
|
1317
1320
|
} // in case of strict selection only SUGGESTION_SELECT should be able
|
|
1318
1321
|
// to set the query otherwise the value should reset
|
|
1319
1322
|
|
|
1320
|
-
if (props.strictSelection) {
|
|
1321
|
-
if (cause === causes.SUGGESTION_SELECT ||
|
|
1323
|
+
if (props.strictSelection && props.autosuggest) {
|
|
1324
|
+
if (cause === causes.SUGGESTION_SELECT || props.value !== undefined) {
|
|
1322
1325
|
_this.updateQueryHandler(props.componentId, queryHandlerValue, props);
|
|
1323
|
-
} else {
|
|
1326
|
+
} else if (_this.currentValue !== '') {
|
|
1324
1327
|
_this.setValue('', true);
|
|
1325
1328
|
}
|
|
1326
1329
|
} else {
|
|
@@ -1446,17 +1449,20 @@ var DataSearch = {
|
|
|
1446
1449
|
this.onValueSelectedHandler('', causes.CLEAR_VALUE);
|
|
1447
1450
|
},
|
|
1448
1451
|
handleKeyDown: function handleKeyDown(event, highlightedIndex) {
|
|
1449
|
-
var
|
|
1452
|
+
var targetValue = event.target.value;
|
|
1453
|
+
var _this$$props2 = this.$props,
|
|
1454
|
+
value = _this$$props2.value,
|
|
1455
|
+
strictSelection = _this$$props2.strictSelection,
|
|
1456
|
+
size = _this$$props2.size;
|
|
1450
1457
|
if (value !== undefined) {
|
|
1451
1458
|
this.isPending = true;
|
|
1452
1459
|
}
|
|
1453
1460
|
|
|
1454
1461
|
// if a suggestion was selected, delegate the handling to suggestion handler
|
|
1455
|
-
if (event.key === 'Enter' && highlightedIndex === null) {
|
|
1456
|
-
this.
|
|
1457
|
-
);
|
|
1458
|
-
|
|
1459
|
-
this.onValueSelectedHandler(event.target.value, causes.ENTER_PRESS);
|
|
1462
|
+
if (event.key === 'Enter' && (highlightedIndex === null || highlightedIndex < 0 || highlightedIndex === [].concat([].concat(this.suggestionsList).slice(0, size || 10), this.defaultSearchSuggestions, this.topSuggestions).length)) {
|
|
1463
|
+
this.isPending = false;
|
|
1464
|
+
this.setValue(this.$options.isTagsMode && strictSelection ? '' : targetValue, true, this.$props, undefined, false);
|
|
1465
|
+
this.onValueSelectedHandler(targetValue, causes.ENTER_PRESS);
|
|
1460
1466
|
}
|
|
1461
1467
|
// Need to review
|
|
1462
1468
|
this.$emit('keyDown', event, this.triggerQuery);
|
|
@@ -1468,19 +1474,19 @@ var DataSearch = {
|
|
|
1468
1474
|
if (!this.$data.isOpen) {
|
|
1469
1475
|
this.isOpen = true;
|
|
1470
1476
|
}
|
|
1471
|
-
var _this$$
|
|
1472
|
-
value = _this$$
|
|
1473
|
-
autosuggest = _this$$
|
|
1477
|
+
var _this$$props3 = this.$props,
|
|
1478
|
+
value = _this$$props3.value,
|
|
1479
|
+
autosuggest = _this$$props3.autosuggest;
|
|
1474
1480
|
if (value === undefined) {
|
|
1475
1481
|
this.setValue(inputValue, false, this.$props, undefined, true, false);
|
|
1476
1482
|
} else {
|
|
1477
1483
|
this.isPending = true;
|
|
1484
|
+
this.currentValue = inputValue;
|
|
1478
1485
|
this.$emit('change', inputValue, function (_temp2) {
|
|
1479
1486
|
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
|
1480
1487
|
_ref3$isOpen = _ref3.isOpen,
|
|
1481
1488
|
isOpen = _ref3$isOpen === void 0 ? false : _ref3$isOpen;
|
|
1482
1489
|
if (_this2.$options.isTagsMode && autosuggest) {
|
|
1483
|
-
_this2.currentValue = value;
|
|
1484
1490
|
_this2.isOpen = isOpen;
|
|
1485
1491
|
_this2.updateDefaultQueryHandlerDebounced(_this2.currentValue, _this2.$props);
|
|
1486
1492
|
return;
|
|
@@ -1568,9 +1574,9 @@ var DataSearch = {
|
|
|
1568
1574
|
finalSuggestionsList = [];
|
|
1569
1575
|
}
|
|
1570
1576
|
var h = this.$createElement;
|
|
1571
|
-
var _this$$
|
|
1572
|
-
theme = _this$$
|
|
1573
|
-
innerClass = _this$$
|
|
1577
|
+
var _this$$props4 = this.$props,
|
|
1578
|
+
theme = _this$$props4.theme,
|
|
1579
|
+
innerClass = _this$$props4.innerClass;
|
|
1574
1580
|
var renderNoSuggestion = this.$scopedSlots.renderNoSuggestion || this.$props.renderNoSuggestion;
|
|
1575
1581
|
var renderError = this.$scopedSlots.renderError || this.$props.renderError;
|
|
1576
1582
|
var _this$$data = this.$data,
|
|
@@ -1674,13 +1680,13 @@ var DataSearch = {
|
|
|
1674
1680
|
},
|
|
1675
1681
|
renderIcons: function renderIcons() {
|
|
1676
1682
|
var h = this.$createElement;
|
|
1677
|
-
var _this$$
|
|
1678
|
-
iconPosition = _this$$
|
|
1679
|
-
showClear = _this$$
|
|
1680
|
-
innerClass = _this$$
|
|
1681
|
-
getMicInstance = _this$$
|
|
1682
|
-
showVoiceSearch = _this$$
|
|
1683
|
-
showIcon = _this$$
|
|
1683
|
+
var _this$$props5 = this.$props,
|
|
1684
|
+
iconPosition = _this$$props5.iconPosition,
|
|
1685
|
+
showClear = _this$$props5.showClear,
|
|
1686
|
+
innerClass = _this$$props5.innerClass,
|
|
1687
|
+
getMicInstance = _this$$props5.getMicInstance,
|
|
1688
|
+
showVoiceSearch = _this$$props5.showVoiceSearch,
|
|
1689
|
+
showIcon = _this$$props5.showIcon;
|
|
1684
1690
|
var renderMic = this.$scopedSlots.renderMic || this.$props.renderMic;
|
|
1685
1691
|
var currentValue = this.$data.currentValue;
|
|
1686
1692
|
return h("div", [h(IconGroup, {
|
|
@@ -1764,11 +1770,11 @@ var DataSearch = {
|
|
|
1764
1770
|
render: function render() {
|
|
1765
1771
|
var _this6 = this;
|
|
1766
1772
|
var h = arguments[0];
|
|
1767
|
-
var _this$$
|
|
1768
|
-
theme = _this$$
|
|
1769
|
-
size = _this$$
|
|
1770
|
-
expandSuggestionsContainer = _this$$
|
|
1771
|
-
enableDefaultSuggestions = _this$$
|
|
1773
|
+
var _this$$props6 = this.$props,
|
|
1774
|
+
theme = _this$$props6.theme,
|
|
1775
|
+
size = _this$$props6.size,
|
|
1776
|
+
expandSuggestionsContainer = _this$$props6.expandSuggestionsContainer,
|
|
1777
|
+
enableDefaultSuggestions = _this$$props6.enableDefaultSuggestions;
|
|
1772
1778
|
var _this$$scopedSlots = this.$scopedSlots,
|
|
1773
1779
|
recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
|
|
1774
1780
|
popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
|
|
@@ -1930,7 +1936,7 @@ var DataSearch = {
|
|
|
1930
1936
|
}
|
|
1931
1937
|
})),
|
|
1932
1938
|
"domProps": _extends({}, getInputProps({
|
|
1933
|
-
value: _this6.$data.currentValue === null ? '' : _this6.$data.currentValue
|
|
1939
|
+
value: _this6.$data.currentValue === null || typeof _this6.$data.currentValue !== 'string' ? '' : _this6.$data.currentValue
|
|
1934
1940
|
}))
|
|
1935
1941
|
}), _this6.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this6.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this6.renderTags()]);
|
|
1936
1942
|
}
|
|
@@ -1972,7 +1978,7 @@ var DataSearch = {
|
|
|
1972
1978
|
value: this.$data.currentValue ? this.$data.currentValue : ''
|
|
1973
1979
|
}),
|
|
1974
1980
|
"ref": this.$props.innerRef
|
|
1975
|
-
}), this.renderIcons()]), this.renderInputAddonAfter()])])]);
|
|
1981
|
+
}), this.renderIcons()]), this.renderInputAddonAfter()]), this.renderTags()])]);
|
|
1976
1982
|
},
|
|
1977
1983
|
destroyed: function destroyed() {
|
|
1978
1984
|
document.removeEventListener('keydown', this.onKeyDown);
|
|
@@ -2147,10 +2153,13 @@ var DSConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps,
|
|
|
2147
2153
|
componentType: componentTypes.dataSearch,
|
|
2148
2154
|
internalComponent: DataSearch.hasInternalComponent()
|
|
2149
2155
|
}));
|
|
2150
|
-
|
|
2151
|
-
|
|
2156
|
+
DSConnected.name = DataSearch.name;
|
|
2157
|
+
|
|
2158
|
+
// plugins usage
|
|
2159
|
+
DSConnected.install = function (Vue) {
|
|
2160
|
+
Vue.component(DSConnected.name, DSConnected);
|
|
2152
2161
|
};
|
|
2153
2162
|
// Add componentType for SSR
|
|
2154
|
-
|
|
2163
|
+
DSConnected.componentType = componentTypes.dataSearch;
|
|
2155
2164
|
|
|
2156
|
-
export { CustomSvg as C, DSConnected as D, InputAddon as I, Mic as M, SearchSvg as S, TagItem as T,
|
|
2165
|
+
export { CustomSvg as C, DSConnected as D, InputAddon as I, Mic as M, SearchSvg as S, TagItem as T, DSConnected as a, SuggestionWrapper as b, TagsContainer as c, InputGroup as d, SuggestionItem as e };
|
package/dist/es/DataSearch.js
CHANGED
|
@@ -15,7 +15,7 @@ import './PreferencesConsumer-bc097ebb.js';
|
|
|
15
15
|
import './Title-863dfa42.js';
|
|
16
16
|
import './Flex-7c177a10.js';
|
|
17
17
|
import 'hotkeys-js';
|
|
18
|
-
export { D as DSConnected, a as default } from './DataSearch-
|
|
18
|
+
export { D as DSConnected, a as default } from './DataSearch-5bb904c5.js';
|
|
19
19
|
import './CancelSvg-e40552a5.js';
|
|
20
20
|
import './Input-c09c0b56.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
@@ -404,12 +404,13 @@ var mapDispatchtoProps = {
|
|
|
404
404
|
updateComponentProps: updateComponentProps
|
|
405
405
|
};
|
|
406
406
|
var RangeConnected = PreferencesConsumer(connect(mapStateToProps, mapDispatchtoProps)(DynamicRangeSlider));
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
RangeConnected.name = DynamicRangeSlider.name;
|
|
408
|
+
RangeConnected.install = function (Vue) {
|
|
409
|
+
Vue.component(RangeConnected.name, RangeConnected);
|
|
409
410
|
};
|
|
410
411
|
|
|
411
412
|
// Add componentType for SSR
|
|
412
|
-
|
|
413
|
+
RangeConnected.componentType = componentTypes.dynamicRangeSlider;
|
|
413
414
|
|
|
414
|
-
export default
|
|
415
|
+
export default RangeConnected;
|
|
415
416
|
export { RangeConnected };
|
|
@@ -529,12 +529,13 @@ var ListConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps
|
|
|
529
529
|
componentType: componentTypes.multiDropdownList,
|
|
530
530
|
internalComponent: MultiDropdownList.hasInternalComponent()
|
|
531
531
|
}));
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
ListConnected.name = MultiDropdownList.name;
|
|
533
|
+
ListConnected.install = function (Vue) {
|
|
534
|
+
Vue.component(ListConnected.name, ListConnected);
|
|
534
535
|
};
|
|
535
536
|
|
|
536
537
|
// Add componentType for SSR
|
|
537
|
-
|
|
538
|
+
ListConnected.componentType = componentTypes.multiDropdownList;
|
|
538
539
|
|
|
539
|
-
export default
|
|
540
|
+
export default ListConnected;
|
|
540
541
|
export { ListConnected };
|
package/dist/es/MultiList.js
CHANGED
|
@@ -545,12 +545,13 @@ var ListConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps
|
|
|
545
545
|
componentType: componentTypes.multiList,
|
|
546
546
|
internalComponent: MultiList.hasInternalComponent()
|
|
547
547
|
}));
|
|
548
|
-
|
|
549
|
-
|
|
548
|
+
ListConnected.name = MultiList.name;
|
|
549
|
+
ListConnected.install = function (Vue) {
|
|
550
|
+
Vue.component(ListConnected.name, ListConnected);
|
|
550
551
|
};
|
|
551
552
|
|
|
552
553
|
// Add componentType for SSR
|
|
553
|
-
|
|
554
|
+
ListConnected.componentType = componentTypes.multiList;
|
|
554
555
|
|
|
555
|
-
export default
|
|
556
|
+
export default ListConnected;
|
|
556
557
|
export { ListConnected };
|
package/dist/es/MultiRange.js
CHANGED
|
@@ -277,11 +277,12 @@ var mapDispatchtoProps = {
|
|
|
277
277
|
var RangeConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, mapDispatchtoProps)(MultiRange), {
|
|
278
278
|
componentType: componentTypes.multiRange
|
|
279
279
|
}));
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
RangeConnected.name = MultiRange.name;
|
|
281
|
+
RangeConnected.install = function (Vue) {
|
|
282
|
+
Vue.component(RangeConnected.name, RangeConnected);
|
|
282
283
|
};
|
|
283
284
|
// Add componentType for SSR
|
|
284
|
-
|
|
285
|
+
RangeConnected.componentType = componentTypes.multiRange;
|
|
285
286
|
|
|
286
|
-
export default
|
|
287
|
+
export default RangeConnected;
|
|
287
288
|
export { RangeConnected };
|
package/dist/es/RangeInput.js
CHANGED
|
@@ -314,12 +314,13 @@ var mapStateToProps = function mapStateToProps(state) {
|
|
|
314
314
|
var RangeConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, {})(RangeInput), {
|
|
315
315
|
componentType: componentTypes.rangeInput
|
|
316
316
|
}));
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
RangeConnected.name = RangeInput.name;
|
|
318
|
+
RangeConnected.install = function (Vue) {
|
|
319
|
+
Vue.component(RangeConnected.name, RangeConnected);
|
|
319
320
|
};
|
|
320
321
|
|
|
321
322
|
// Add componentType for SSR
|
|
322
|
-
|
|
323
|
+
RangeConnected.componentType = componentTypes.rangeInput;
|
|
323
324
|
|
|
324
|
-
export default
|
|
325
|
+
export default RangeConnected;
|
|
325
326
|
export { RangeConnected };
|
package/dist/es/RangeSlider.js
CHANGED
|
@@ -259,12 +259,13 @@ var mapDispatchtoProps = {
|
|
|
259
259
|
var RangeConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, mapDispatchtoProps)(RangeSlider), {
|
|
260
260
|
componentType: componentTypes.rangeSlider
|
|
261
261
|
}));
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
RangeConnected.name = RangeSlider.name;
|
|
263
|
+
RangeConnected.install = function (Vue) {
|
|
264
|
+
Vue.component(RangeConnected.name, RangeConnected);
|
|
264
265
|
};
|
|
265
266
|
|
|
266
267
|
// Add componentType for SSR
|
|
267
|
-
|
|
268
|
+
RangeConnected.componentType = componentTypes.rangeSlider;
|
|
268
269
|
|
|
269
|
-
export default
|
|
270
|
+
export default RangeConnected;
|
|
270
271
|
export { RangeConnected };
|
|
@@ -12,15 +12,15 @@ import { C as ComponentWrapper } from './ComponentWrapper-8042aa35.js';
|
|
|
12
12
|
import { P as PreferencesConsumer } from './PreferencesConsumer-bc097ebb.js';
|
|
13
13
|
import { T as Title } from './Title-863dfa42.js';
|
|
14
14
|
import hotkeys from 'hotkeys-js';
|
|
15
|
-
import { S as SearchSvg, b as SuggestionWrapper, I as InputAddon, M as Mic, T as TagItem, c as TagsContainer, d as InputGroup, C as CustomSvg, e as SuggestionItem, D as DSConnected } from './DataSearch-
|
|
15
|
+
import { S as SearchSvg, b as SuggestionWrapper, I as InputAddon, M as Mic, T as TagItem, c as TagsContainer, d as InputGroup, C as CustomSvg, e as SuggestionItem, D as DSConnected } from './DataSearch-5bb904c5.js';
|
|
16
16
|
import { C as CancelSvg, a as IconGroup, I as IconWrapper, D as Downshift, b as InputWrapper } from './CancelSvg-e40552a5.js';
|
|
17
17
|
import { s as suggestionsContainer, I as Input, a as suggestions } from './Input-c09c0b56.js';
|
|
18
18
|
import { C as Container } from './Container-d00219f7.js';
|
|
19
|
-
import { ListConnected as ListConnected$
|
|
20
|
-
import { ListConnected as ListConnected$
|
|
21
|
-
import { ListConnected as ListConnected$
|
|
22
|
-
import { ListConnected
|
|
23
|
-
import {
|
|
19
|
+
import { ListConnected as ListConnected$3 } from './SingleList.js';
|
|
20
|
+
import { ListConnected as ListConnected$2 } from './MultiList.js';
|
|
21
|
+
import { ListConnected as ListConnected$1 } from './SingleDropdownList.js';
|
|
22
|
+
import { ListConnected } from './MultiDropdownList.js';
|
|
23
|
+
import { TBConnected } from './ToggleButton.js';
|
|
24
24
|
import { RangeConnected as RangeConnected$4 } from './DynamicRangeSlider.js';
|
|
25
25
|
import { RangeConnected as RangeConnected$3 } from './SingleRange.js';
|
|
26
26
|
import { RangeConnected as RangeConnected$2 } from './MultiRange.js';
|
|
@@ -267,7 +267,6 @@ var SearchBox = {
|
|
|
267
267
|
// selected value is cleared, call onValueSelected
|
|
268
268
|
this.onValueSelectedHandler('', causes.CLEAR_VALUE);
|
|
269
269
|
}
|
|
270
|
-
// if (this.$props.value === undefined) {
|
|
271
270
|
if (this.$options.isTagsMode) {
|
|
272
271
|
// handling reset of tags through SelectedFilters or URL
|
|
273
272
|
this.selectedTags = [];
|
|
@@ -277,7 +276,6 @@ var SearchBox = {
|
|
|
277
276
|
cause = causes.SUGGESTION_SELECT;
|
|
278
277
|
}
|
|
279
278
|
this.setValue(newVal || '', true, this.$props, cause);
|
|
280
|
-
// }
|
|
281
279
|
}
|
|
282
280
|
},
|
|
283
281
|
focusShortcuts: function focusShortcuts() {
|
|
@@ -420,8 +418,7 @@ var SearchBox = {
|
|
|
420
418
|
if (typeof value === 'string' && !!value) {
|
|
421
419
|
_this.selectedTags.push(value);
|
|
422
420
|
} else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
|
|
423
|
-
|
|
424
|
-
_this.selectedTags = mergedArray;
|
|
421
|
+
_this.selectedTags = value;
|
|
425
422
|
}
|
|
426
423
|
} else if (value) {
|
|
427
424
|
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
@@ -1245,11 +1242,12 @@ var SBConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps,
|
|
|
1245
1242
|
componentType: componentTypes.searchBox,
|
|
1246
1243
|
internalComponent: true
|
|
1247
1244
|
}));
|
|
1248
|
-
|
|
1249
|
-
|
|
1245
|
+
SBConnected.name = SearchBox.name;
|
|
1246
|
+
SBConnected.install = function (Vue) {
|
|
1247
|
+
Vue.component(SBConnected.name, SBConnected);
|
|
1250
1248
|
};
|
|
1251
1249
|
// Add componentType for SSR
|
|
1252
|
-
|
|
1250
|
+
SBConnected.componentType = componentTypes.searchBox;
|
|
1253
1251
|
|
|
1254
1252
|
var _excluded = ["options"];
|
|
1255
1253
|
var updateQuery$1 = Actions.updateQuery,
|
|
@@ -1554,20 +1552,20 @@ var RcConnected = PreferencesConsumer({
|
|
|
1554
1552
|
break;
|
|
1555
1553
|
// list components
|
|
1556
1554
|
case componentTypes.singleList:
|
|
1557
|
-
component = ListConnected$
|
|
1555
|
+
component = ListConnected$3;
|
|
1558
1556
|
break;
|
|
1559
1557
|
case componentTypes.multiList:
|
|
1560
|
-
component = ListConnected$
|
|
1558
|
+
component = ListConnected$2;
|
|
1561
1559
|
break;
|
|
1562
1560
|
case componentTypes.singleDropdownList:
|
|
1563
|
-
component = ListConnected$
|
|
1561
|
+
component = ListConnected$1;
|
|
1564
1562
|
break;
|
|
1565
1563
|
case componentTypes.multiDropdownList:
|
|
1566
|
-
component = ListConnected
|
|
1564
|
+
component = ListConnected;
|
|
1567
1565
|
break;
|
|
1568
1566
|
// basic components
|
|
1569
1567
|
case componentTypes.toggleButton:
|
|
1570
|
-
component =
|
|
1568
|
+
component = TBConnected;
|
|
1571
1569
|
break;
|
|
1572
1570
|
// range components
|
|
1573
1571
|
case componentTypes.dynamicRangeSlider:
|
|
@@ -1594,11 +1592,12 @@ var RcConnected = PreferencesConsumer({
|
|
|
1594
1592
|
});
|
|
1595
1593
|
}
|
|
1596
1594
|
});
|
|
1597
|
-
|
|
1598
|
-
|
|
1595
|
+
RcConnected.name = ReactiveComponent.name;
|
|
1596
|
+
RcConnected.install = function (Vue) {
|
|
1597
|
+
Vue.component(RcConnected.name, RcConnected);
|
|
1599
1598
|
};
|
|
1600
1599
|
|
|
1601
1600
|
// Add componentType for SSR
|
|
1602
|
-
|
|
1601
|
+
RcConnected.componentType = componentTypes.reactiveComponent;
|
|
1603
1602
|
|
|
1604
|
-
export {
|
|
1603
|
+
export { RcConnected as R, SBConnected as S };
|
|
@@ -21,13 +21,13 @@ import './ListItem-07888a65.js';
|
|
|
21
21
|
import './Card-19ad6d90.js';
|
|
22
22
|
import './Flex-7c177a10.js';
|
|
23
23
|
import 'hotkeys-js';
|
|
24
|
-
import './DataSearch-
|
|
24
|
+
import './DataSearch-5bb904c5.js';
|
|
25
25
|
import './CancelSvg-e40552a5.js';
|
|
26
26
|
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 './ReactiveComponent-
|
|
30
|
+
export { R as default } from './ReactiveComponent-09c183c8.js';
|
|
31
31
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
32
32
|
import './FormControlList-99797d0a.js';
|
|
33
33
|
import './utils-9e5a16a1.js';
|
package/dist/es/ReactiveList.js
CHANGED
|
@@ -951,13 +951,14 @@ var RLConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps,
|
|
|
951
951
|
componentType: componentTypes.reactiveList,
|
|
952
952
|
internalComponent: ReactiveList.hasInternalComponent()
|
|
953
953
|
}));
|
|
954
|
-
|
|
955
|
-
|
|
954
|
+
RLConnected.name = ReactiveList.name;
|
|
955
|
+
RLConnected.install = function (Vue) {
|
|
956
|
+
Vue.component(RLConnected.name, RLConnected);
|
|
956
957
|
Vue.component(ResultListWrapper.name, ResultListWrapper);
|
|
957
958
|
Vue.component(ResultCardsWrapper.name, ResultCardsWrapper);
|
|
958
959
|
};
|
|
959
960
|
// Add componentType for SSR
|
|
960
|
-
|
|
961
|
+
RLConnected.componentType = componentTypes.reactiveList;
|
|
961
962
|
|
|
962
|
-
export default
|
|
963
|
+
export default RLConnected;
|
|
963
964
|
export { RLConnected };
|
|
@@ -174,8 +174,9 @@ var mapDispatchtoProps = {
|
|
|
174
174
|
resetValuesToDefault: resetValuesToDefault
|
|
175
175
|
};
|
|
176
176
|
var RcConnected = connect(mapStateToProps, mapDispatchtoProps)(SelectedFilters);
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
RcConnected.name = SelectedFilters.name;
|
|
178
|
+
RcConnected.install = function (Vue) {
|
|
179
|
+
Vue.component(RcConnected.name, RcConnected);
|
|
179
180
|
};
|
|
180
181
|
|
|
181
|
-
export default
|
|
182
|
+
export default RcConnected;
|
|
@@ -433,12 +433,13 @@ var ListConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps
|
|
|
433
433
|
componentType: componentTypes.singleDropdownList,
|
|
434
434
|
internalComponent: SingleDropdownList.hasInternalComponent()
|
|
435
435
|
}));
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
ListConnected.name = SingleDropdownList.name;
|
|
437
|
+
ListConnected.install = function (Vue) {
|
|
438
|
+
Vue.component(ListConnected.name, ListConnected);
|
|
438
439
|
};
|
|
439
440
|
|
|
440
441
|
// Add componentType for SSR
|
|
441
|
-
|
|
442
|
+
ListConnected.componentType = componentTypes.singleDropdownList;
|
|
442
443
|
|
|
443
|
-
export default
|
|
444
|
+
export default ListConnected;
|
|
444
445
|
export { ListConnected };
|
package/dist/es/SingleList.js
CHANGED
|
@@ -450,12 +450,13 @@ var ListConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps
|
|
|
450
450
|
componentType: componentTypes.singleList,
|
|
451
451
|
internalComponent: SingleList.hasInternalComponent()
|
|
452
452
|
}));
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
ListConnected.name = SingleList.name;
|
|
454
|
+
ListConnected.install = function (Vue) {
|
|
455
|
+
Vue.component(ListConnected.name, ListConnected);
|
|
455
456
|
};
|
|
456
457
|
|
|
457
458
|
// Add componentType for SSR
|
|
458
|
-
|
|
459
|
+
ListConnected.componentType = componentTypes.singleList;
|
|
459
460
|
|
|
460
|
-
export default
|
|
461
|
+
export default ListConnected;
|
|
461
462
|
export { ListConnected };
|
package/dist/es/SingleRange.js
CHANGED
|
@@ -214,11 +214,12 @@ var mapDispatchtoProps = {
|
|
|
214
214
|
var RangeConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, mapDispatchtoProps)(SingleRange), {
|
|
215
215
|
componentType: componentTypes.singleRange
|
|
216
216
|
}));
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
RangeConnected.name = SingleRange.name;
|
|
218
|
+
RangeConnected.install = function (Vue) {
|
|
219
|
+
Vue.component(RangeConnected.name, RangeConnected);
|
|
219
220
|
};
|
|
220
221
|
// Add componentType for SSR
|
|
221
|
-
|
|
222
|
+
RangeConnected.componentType = componentTypes.singleRange;
|
|
222
223
|
|
|
223
|
-
export default
|
|
224
|
+
export default RangeConnected;
|
|
224
225
|
export { RangeConnected };
|
package/dist/es/StateProvider.js
CHANGED
|
@@ -241,8 +241,9 @@ var mapDispatchtoProps = {
|
|
|
241
241
|
setSearchStateFn: setSearchState
|
|
242
242
|
};
|
|
243
243
|
var StateProviderConnected = connect(mapStateToProps, mapDispatchtoProps)(StateProvider);
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
StateProviderConnected.name = StateProvider.name;
|
|
245
|
+
StateProviderConnected.install = function (Vue) {
|
|
246
|
+
Vue.component(StateProviderConnected.name, StateProviderConnected);
|
|
246
247
|
};
|
|
247
248
|
|
|
248
|
-
export default
|
|
249
|
+
export default StateProviderConnected;
|
package/dist/es/ToggleButton.js
CHANGED
|
@@ -300,14 +300,15 @@ var mapDispatchtoProps = {
|
|
|
300
300
|
setQueryOptions: setQueryOptions,
|
|
301
301
|
setCustomQuery: setCustomQuery
|
|
302
302
|
};
|
|
303
|
-
var
|
|
303
|
+
var TBConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, mapDispatchtoProps)(ToggleButton), {
|
|
304
304
|
componentType: componentTypes.toggleButton
|
|
305
305
|
}));
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
TBConnected.name = ToggleButton.name;
|
|
307
|
+
TBConnected.install = function (Vue) {
|
|
308
|
+
Vue.component(TBConnected.name, TBConnected);
|
|
308
309
|
};
|
|
309
310
|
// Add componentType for SSR
|
|
310
|
-
|
|
311
|
+
TBConnected.componentType = componentTypes.toggleButton;
|
|
311
312
|
|
|
312
|
-
export default
|
|
313
|
-
export {
|
|
313
|
+
export default TBConnected;
|
|
314
|
+
export { TBConnected };
|
package/dist/es/index.js
CHANGED
|
@@ -26,13 +26,13 @@ import '@appbaseio/analytics';
|
|
|
26
26
|
import 'url-search-params-polyfill';
|
|
27
27
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
28
28
|
import 'hotkeys-js';
|
|
29
|
-
export { a as DataSearch } from './DataSearch-
|
|
29
|
+
export { a as DataSearch } from './DataSearch-5bb904c5.js';
|
|
30
30
|
import './CancelSvg-e40552a5.js';
|
|
31
31
|
import './Input-c09c0b56.js';
|
|
32
32
|
import 'compute-scroll-into-view';
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
|
-
export { R as ReactiveComponent, S as SearchBox } from './ReactiveComponent-
|
|
35
|
+
export { R as ReactiveComponent, S as SearchBox } from './ReactiveComponent-09c183c8.js';
|
|
36
36
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
37
37
|
import './FormControlList-99797d0a.js';
|
|
38
38
|
import './utils-9e5a16a1.js';
|
package/dist/es/install.js
CHANGED
|
@@ -26,13 +26,13 @@ import '@appbaseio/analytics';
|
|
|
26
26
|
import 'url-search-params-polyfill';
|
|
27
27
|
import ReactiveBase from './ReactiveBase.js';
|
|
28
28
|
import 'hotkeys-js';
|
|
29
|
-
import { a as DataSearch } from './DataSearch-
|
|
29
|
+
import { a as DataSearch } from './DataSearch-5bb904c5.js';
|
|
30
30
|
import './CancelSvg-e40552a5.js';
|
|
31
31
|
import './Input-c09c0b56.js';
|
|
32
32
|
import 'compute-scroll-into-view';
|
|
33
33
|
import './Container-d00219f7.js';
|
|
34
34
|
import 'vue-highlight-words';
|
|
35
|
-
import { S as SearchBox, R as ReactiveComponent } from './ReactiveComponent-
|
|
35
|
+
import { S as SearchBox, R as ReactiveComponent } from './ReactiveComponent-09c183c8.js';
|
|
36
36
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
37
37
|
import './FormControlList-99797d0a.js';
|
|
38
38
|
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.33.
|
|
3
|
+
"version": "1.33.5",
|
|
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.14.
|
|
38
|
+
"@appbaseio/reactivecore": "9.14.35",
|
|
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.2.0",
|