@appbaseio/reactivesearch-vue 1.33.4 → 1.33.6
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 +174 -119
- 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/{ComponentWrapper-b6d4660c.js → ComponentWrapper-f89a5972.js} +2 -2
- package/dist/cjs/{DataSearch-2b5740ea.js → DataSearch-de3b7c47.js} +49 -41
- package/dist/cjs/DataSearch.js +2 -2
- package/dist/cjs/DynamicRangeSlider.js +8 -6
- package/dist/cjs/MultiDropdownList.js +6 -5
- package/dist/cjs/MultiList.js +6 -5
- package/dist/cjs/MultiRange.js +6 -5
- package/dist/cjs/RangeInput.js +6 -5
- package/dist/cjs/RangeSlider.js +6 -5
- package/dist/cjs/{ReactiveComponent-fd8d7403.js → ReactiveComponent-71def4c6.js} +14 -15
- package/dist/cjs/ReactiveComponent.js +3 -3
- package/dist/cjs/ReactiveGoogleMap.js +7 -6
- package/dist/cjs/ReactiveList.js +6 -5
- package/dist/cjs/SelectedFilters.js +4 -3
- package/dist/cjs/SingleDropdownList.js +6 -5
- package/dist/cjs/SingleList.js +6 -5
- package/dist/cjs/SingleRange.js +6 -5
- package/dist/cjs/StateProvider.js +4 -3
- package/dist/cjs/ToggleButton.js +8 -7
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/install.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/es/{ComponentWrapper-8042aa35.js → ComponentWrapper-39966c87.js} +2 -2
- package/dist/es/{DataSearch-68d2a78c.js → DataSearch-06d0273d.js} +49 -41
- package/dist/es/DataSearch.js +2 -2
- package/dist/es/DynamicRangeSlider.js +8 -6
- package/dist/es/MultiDropdownList.js +6 -5
- package/dist/es/MultiList.js +6 -5
- package/dist/es/MultiRange.js +6 -5
- package/dist/es/RangeInput.js +6 -5
- package/dist/es/RangeSlider.js +6 -5
- package/dist/es/{ReactiveComponent-62fa87e0.js → ReactiveComponent-1671403c.js} +22 -23
- package/dist/es/ReactiveComponent.js +3 -3
- package/dist/es/ReactiveGoogleMap.js +7 -6
- package/dist/es/ReactiveList.js +6 -5
- package/dist/es/SelectedFilters.js +4 -3
- package/dist/es/SingleDropdownList.js +6 -5
- package/dist/es/SingleList.js +6 -5
- package/dist/es/SingleRange.js +6 -5
- package/dist/es/StateProvider.js +4 -3
- package/dist/es/ToggleButton.js +8 -7
- package/dist/es/index.js +3 -3
- package/dist/es/install.js +3 -3
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -6386,7 +6386,8 @@
|
|
|
6386
6386
|
searchboxId: props.searchboxId
|
|
6387
6387
|
} : {}) : {}, {
|
|
6388
6388
|
calendarInterval: props.calendarInterval,
|
|
6389
|
-
endpoint: endpoint
|
|
6389
|
+
endpoint: endpoint,
|
|
6390
|
+
range: props.range
|
|
6390
6391
|
});
|
|
6391
6392
|
}
|
|
6392
6393
|
return null;
|
|
@@ -6417,6 +6418,7 @@
|
|
|
6417
6418
|
var aggregations = componentProps.aggregations;
|
|
6418
6419
|
var pagination = void 0;
|
|
6419
6420
|
var from = componentProps.from;
|
|
6421
|
+
var range = void 0;
|
|
6420
6422
|
if (queryType === constants$1.queryTypes.term) {
|
|
6421
6423
|
if (componentProps.showLoadMore && hasPaginationSupport(componentProps.componentType)) {
|
|
6422
6424
|
pagination = true;
|
|
@@ -6487,6 +6489,36 @@
|
|
|
6487
6489
|
};
|
|
6488
6490
|
}
|
|
6489
6491
|
}
|
|
6492
|
+
var rangeValue = void 0;
|
|
6493
|
+
if (componentProps.componentType === constants$1.componentTypes.dynamicRangeSlider) {
|
|
6494
|
+
rangeValue = store.aggregations[component + '__range__internal'];
|
|
6495
|
+
if (componentProps.nestedField) {
|
|
6496
|
+
rangeValue = rangeValue && store.aggregations[component + '__range__internal'][componentProps.nestedField].min ? {
|
|
6497
|
+
start: store.aggregations[component + '__range__internal'][componentProps.nestedField].min.value,
|
|
6498
|
+
end: store.aggregations[component + '__range__internal'][componentProps.nestedField].max.value
|
|
6499
|
+
} : null;
|
|
6500
|
+
} else {
|
|
6501
|
+
rangeValue = rangeValue && store.aggregations[component + '__range__internal'].min ? {
|
|
6502
|
+
start: store.aggregations[component + '__range__internal'].min.value,
|
|
6503
|
+
end: store.aggregations[component + '__range__internal'].max.value
|
|
6504
|
+
} : null;
|
|
6505
|
+
}
|
|
6506
|
+
} else {
|
|
6507
|
+
rangeValue = componentProps.range;
|
|
6508
|
+
}
|
|
6509
|
+
if (rangeValue) {
|
|
6510
|
+
if ((0, helper.isValidDateRangeQueryFormat)(componentProps.queryFormat)) {
|
|
6511
|
+
range = {
|
|
6512
|
+
start: (0, helper.formatDate)(new _xdate2["default"](rangeValue.start), componentProps),
|
|
6513
|
+
end: (0, helper.formatDate)(new _xdate2["default"](rangeValue.end), componentProps)
|
|
6514
|
+
};
|
|
6515
|
+
} else {
|
|
6516
|
+
range = {
|
|
6517
|
+
start: parseFloat(rangeValue.start),
|
|
6518
|
+
end: parseFloat(rangeValue.end)
|
|
6519
|
+
};
|
|
6520
|
+
}
|
|
6521
|
+
}
|
|
6490
6522
|
}
|
|
6491
6523
|
if (dateRangeComponents.includes(componentProps.componentType)) {
|
|
6492
6524
|
if (value) {
|
|
@@ -6625,7 +6657,8 @@
|
|
|
6625
6657
|
categoryValue: store.internalValues[component] ? store.internalValues[component].category : undefined,
|
|
6626
6658
|
value: queryValue,
|
|
6627
6659
|
pagination: pagination,
|
|
6628
|
-
from: from
|
|
6660
|
+
from: from,
|
|
6661
|
+
range: range
|
|
6629
6662
|
}, customOptions);
|
|
6630
6663
|
};
|
|
6631
6664
|
function flatReactProp(reactProp, componentID) {
|
|
@@ -8925,10 +8958,10 @@
|
|
|
8925
8958
|
timestamp: timestamp
|
|
8926
8959
|
};
|
|
8927
8960
|
}
|
|
8928
|
-
function addComponent(component) {
|
|
8961
|
+
function addComponent(component, timestamp) {
|
|
8929
8962
|
return function (dispatch) {
|
|
8930
8963
|
dispatch(addComponentToList(component));
|
|
8931
|
-
dispatch(addComponentTimestamp(component,
|
|
8964
|
+
dispatch(addComponentTimestamp(component, timestamp));
|
|
8932
8965
|
};
|
|
8933
8966
|
}
|
|
8934
8967
|
function removeComponent(component) {
|
|
@@ -13234,7 +13267,7 @@
|
|
|
13234
13267
|
// or component is not present in store
|
|
13235
13268
|
if (this.destroyOnUnmount || components.indexOf(this.componentProps.componentId) === -1) {
|
|
13236
13269
|
// Register component
|
|
13237
|
-
this.addComponent(this.componentId);
|
|
13270
|
+
this.addComponent(this.componentId, this.$timestamp);
|
|
13238
13271
|
var onQueryChange = function onQueryChange() {
|
|
13239
13272
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13240
13273
|
args[_key] = arguments[_key];
|
|
@@ -13256,7 +13289,7 @@
|
|
|
13256
13289
|
}
|
|
13257
13290
|
// Register internal component
|
|
13258
13291
|
if (this.internalComponent && (this.destroyOnUnmount || components.indexOf(this.internalComponent) === -1)) {
|
|
13259
|
-
this.addComponent(this.internalComponent);
|
|
13292
|
+
this.addComponent(this.internalComponent, this.$timestamp);
|
|
13260
13293
|
this.setComponentProps(this.internalComponent, this.componentProps, options.componentType);
|
|
13261
13294
|
}
|
|
13262
13295
|
},
|
|
@@ -14465,13 +14498,14 @@
|
|
|
14465
14498
|
componentType: constants_1$1.reactiveList,
|
|
14466
14499
|
internalComponent: ReactiveList.hasInternalComponent()
|
|
14467
14500
|
}));
|
|
14468
|
-
|
|
14469
|
-
|
|
14501
|
+
RLConnected.name = ReactiveList.name;
|
|
14502
|
+
RLConnected.install = function (Vue) {
|
|
14503
|
+
Vue.component(RLConnected.name, RLConnected);
|
|
14470
14504
|
Vue.component(ResultListWrapper.name, ResultListWrapper);
|
|
14471
14505
|
Vue.component(ResultCardsWrapper.name, ResultCardsWrapper);
|
|
14472
14506
|
};
|
|
14473
14507
|
// Add componentType for SSR
|
|
14474
|
-
|
|
14508
|
+
RLConnected.componentType = constants_1$1.reactiveList;
|
|
14475
14509
|
|
|
14476
14510
|
function URL$1(url) {
|
|
14477
14511
|
var pattern = RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?");
|
|
@@ -18991,6 +19025,7 @@
|
|
|
18991
19025
|
}
|
|
18992
19026
|
this.handleTextChange = debounce$1(this.handleText, this.$props.debounce);
|
|
18993
19027
|
this.updateDefaultQueryHandlerDebounced = debounce$1(this.updateDefaultQueryHandler, this.$props.debounce);
|
|
19028
|
+
this.updateQueryHandlerDebounced = debounce$1(this.updateQueryHandler, this.$props.debounce);
|
|
18994
19029
|
// Set custom and default queries in store
|
|
18995
19030
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
18996
19031
|
updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
|
|
@@ -19174,7 +19209,7 @@
|
|
|
19174
19209
|
if (this.isPending && this.$options.isTagsMode && Array.isArray(newVal)) {
|
|
19175
19210
|
this.isPending = false;
|
|
19176
19211
|
}
|
|
19177
|
-
this.setValue(newVal, true, this.$props, undefined, false, typeof newVal !== 'string' && this.$options.isTagsMode);
|
|
19212
|
+
this.setValue(newVal, true, this.$props, newVal === '' ? lib_7.CLEAR_VALUE : undefined, false, typeof newVal !== 'string' && this.$options.isTagsMode);
|
|
19178
19213
|
}
|
|
19179
19214
|
},
|
|
19180
19215
|
defaultQuery: function defaultQuery(newVal, oldVal) {
|
|
@@ -19216,8 +19251,10 @@
|
|
|
19216
19251
|
handleText: function handleText(value) {
|
|
19217
19252
|
if (this.$props.autosuggest) {
|
|
19218
19253
|
this.updateDefaultQueryHandlerDebounced(value, this.$props);
|
|
19219
|
-
} else {
|
|
19220
|
-
this.
|
|
19254
|
+
} else if (!this.$options.isTagsMode) {
|
|
19255
|
+
this.updateQueryHandlerDebounced(this.$props.componentId, value, this.$props);
|
|
19256
|
+
} else if (this.$options.isTagsMode) {
|
|
19257
|
+
this.$data.currentValue = value;
|
|
19221
19258
|
}
|
|
19222
19259
|
},
|
|
19223
19260
|
validateDataField: function validateDataField() {
|
|
@@ -19362,10 +19399,10 @@
|
|
|
19362
19399
|
} // in case of strict selection only SUGGESTION_SELECT should be able
|
|
19363
19400
|
// to set the query otherwise the value should reset
|
|
19364
19401
|
|
|
19365
|
-
if (props.strictSelection) {
|
|
19366
|
-
if (cause === lib_7.SUGGESTION_SELECT ||
|
|
19402
|
+
if (props.strictSelection && props.autosuggest) {
|
|
19403
|
+
if (cause === lib_7.SUGGESTION_SELECT || props.value !== undefined) {
|
|
19367
19404
|
_this.updateQueryHandler(props.componentId, queryHandlerValue, props);
|
|
19368
|
-
} else {
|
|
19405
|
+
} else if (_this.currentValue !== '') {
|
|
19369
19406
|
_this.setValue('', true);
|
|
19370
19407
|
}
|
|
19371
19408
|
} else {
|
|
@@ -19491,17 +19528,20 @@
|
|
|
19491
19528
|
this.onValueSelectedHandler('', lib_7.CLEAR_VALUE);
|
|
19492
19529
|
},
|
|
19493
19530
|
handleKeyDown: function handleKeyDown(event, highlightedIndex) {
|
|
19494
|
-
var
|
|
19531
|
+
var targetValue = event.target.value;
|
|
19532
|
+
var _this$$props2 = this.$props,
|
|
19533
|
+
value = _this$$props2.value,
|
|
19534
|
+
strictSelection = _this$$props2.strictSelection,
|
|
19535
|
+
size = _this$$props2.size,
|
|
19536
|
+
autosuggest = _this$$props2.autosuggest;
|
|
19495
19537
|
if (value !== undefined) {
|
|
19496
19538
|
this.isPending = true;
|
|
19497
19539
|
}
|
|
19498
|
-
|
|
19499
19540
|
// if a suggestion was selected, delegate the handling to suggestion handler
|
|
19500
|
-
if (event.key === 'Enter' && highlightedIndex === null) {
|
|
19501
|
-
this.
|
|
19502
|
-
);
|
|
19503
|
-
|
|
19504
|
-
this.onValueSelectedHandler(event.target.value, lib_7.ENTER_PRESS);
|
|
19541
|
+
if (event.key === 'Enter' && (highlightedIndex === null || highlightedIndex < 0 || highlightedIndex === [].concat([].concat(this.suggestionsList).slice(0, size || 10), this.defaultSearchSuggestions, this.topSuggestions).length)) {
|
|
19542
|
+
this.isPending = false;
|
|
19543
|
+
this.setValue(this.$options.isTagsMode && autosuggest && strictSelection ? '' : targetValue, true, this.$props, undefined, false);
|
|
19544
|
+
this.onValueSelectedHandler(targetValue, lib_7.ENTER_PRESS);
|
|
19505
19545
|
}
|
|
19506
19546
|
// Need to review
|
|
19507
19547
|
this.$emit('keyDown', event, this.triggerQuery);
|
|
@@ -19513,19 +19553,19 @@
|
|
|
19513
19553
|
if (!this.$data.isOpen) {
|
|
19514
19554
|
this.isOpen = true;
|
|
19515
19555
|
}
|
|
19516
|
-
var _this$$
|
|
19517
|
-
value = _this$$
|
|
19518
|
-
autosuggest = _this$$
|
|
19556
|
+
var _this$$props3 = this.$props,
|
|
19557
|
+
value = _this$$props3.value,
|
|
19558
|
+
autosuggest = _this$$props3.autosuggest;
|
|
19519
19559
|
if (value === undefined) {
|
|
19520
19560
|
this.setValue(inputValue, false, this.$props, undefined, true, false);
|
|
19521
19561
|
} else {
|
|
19522
19562
|
this.isPending = true;
|
|
19563
|
+
this.currentValue = inputValue;
|
|
19523
19564
|
this.$emit('change', inputValue, function (_temp2) {
|
|
19524
19565
|
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
|
19525
19566
|
_ref3$isOpen = _ref3.isOpen,
|
|
19526
19567
|
isOpen = _ref3$isOpen === void 0 ? false : _ref3$isOpen;
|
|
19527
19568
|
if (_this2.$options.isTagsMode && autosuggest) {
|
|
19528
|
-
_this2.currentValue = value;
|
|
19529
19569
|
_this2.isOpen = isOpen;
|
|
19530
19570
|
_this2.updateDefaultQueryHandlerDebounced(_this2.currentValue, _this2.$props);
|
|
19531
19571
|
return;
|
|
@@ -19613,9 +19653,9 @@
|
|
|
19613
19653
|
finalSuggestionsList = [];
|
|
19614
19654
|
}
|
|
19615
19655
|
var h = this.$createElement;
|
|
19616
|
-
var _this$$
|
|
19617
|
-
theme = _this$$
|
|
19618
|
-
innerClass = _this$$
|
|
19656
|
+
var _this$$props4 = this.$props,
|
|
19657
|
+
theme = _this$$props4.theme,
|
|
19658
|
+
innerClass = _this$$props4.innerClass;
|
|
19619
19659
|
var renderNoSuggestion = this.$scopedSlots.renderNoSuggestion || this.$props.renderNoSuggestion;
|
|
19620
19660
|
var renderError = this.$scopedSlots.renderError || this.$props.renderError;
|
|
19621
19661
|
var _this$$data = this.$data,
|
|
@@ -19719,13 +19759,13 @@
|
|
|
19719
19759
|
},
|
|
19720
19760
|
renderIcons: function renderIcons() {
|
|
19721
19761
|
var h = this.$createElement;
|
|
19722
|
-
var _this$$
|
|
19723
|
-
iconPosition = _this$$
|
|
19724
|
-
showClear = _this$$
|
|
19725
|
-
innerClass = _this$$
|
|
19726
|
-
getMicInstance = _this$$
|
|
19727
|
-
showVoiceSearch = _this$$
|
|
19728
|
-
showIcon = _this$$
|
|
19762
|
+
var _this$$props5 = this.$props,
|
|
19763
|
+
iconPosition = _this$$props5.iconPosition,
|
|
19764
|
+
showClear = _this$$props5.showClear,
|
|
19765
|
+
innerClass = _this$$props5.innerClass,
|
|
19766
|
+
getMicInstance = _this$$props5.getMicInstance,
|
|
19767
|
+
showVoiceSearch = _this$$props5.showVoiceSearch,
|
|
19768
|
+
showIcon = _this$$props5.showIcon;
|
|
19729
19769
|
var renderMic = this.$scopedSlots.renderMic || this.$props.renderMic;
|
|
19730
19770
|
var currentValue = this.$data.currentValue;
|
|
19731
19771
|
return h("div", [h(IconGroup, {
|
|
@@ -19809,11 +19849,11 @@
|
|
|
19809
19849
|
render: function render() {
|
|
19810
19850
|
var _this6 = this;
|
|
19811
19851
|
var h = arguments[0];
|
|
19812
|
-
var _this$$
|
|
19813
|
-
theme = _this$$
|
|
19814
|
-
size = _this$$
|
|
19815
|
-
expandSuggestionsContainer = _this$$
|
|
19816
|
-
enableDefaultSuggestions = _this$$
|
|
19852
|
+
var _this$$props6 = this.$props,
|
|
19853
|
+
theme = _this$$props6.theme,
|
|
19854
|
+
size = _this$$props6.size,
|
|
19855
|
+
expandSuggestionsContainer = _this$$props6.expandSuggestionsContainer,
|
|
19856
|
+
enableDefaultSuggestions = _this$$props6.enableDefaultSuggestions;
|
|
19817
19857
|
var _this$$scopedSlots = this.$scopedSlots,
|
|
19818
19858
|
recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
|
|
19819
19859
|
popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
|
|
@@ -19975,7 +20015,7 @@
|
|
|
19975
20015
|
}
|
|
19976
20016
|
})),
|
|
19977
20017
|
"domProps": _extends({}, getInputProps({
|
|
19978
|
-
value: _this6.$data.currentValue === null ? '' : _this6.$data.currentValue
|
|
20018
|
+
value: _this6.$data.currentValue === null || typeof _this6.$data.currentValue !== 'string' ? '' : _this6.$data.currentValue
|
|
19979
20019
|
}))
|
|
19980
20020
|
}), _this6.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this6.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer(), _this6.renderTags()]);
|
|
19981
20021
|
}
|
|
@@ -20004,8 +20044,7 @@
|
|
|
20004
20044
|
_this6.$emit('focus', e, _this6.triggerQuery);
|
|
20005
20045
|
},
|
|
20006
20046
|
keydown: function keydown(e) {
|
|
20007
|
-
_this6
|
|
20008
|
-
_this6.$emit('key-down', e, _this6.triggerQuery);
|
|
20047
|
+
_this6.handleKeyDown(e, null);
|
|
20009
20048
|
},
|
|
20010
20049
|
keyup: function keyup(e) {
|
|
20011
20050
|
_this6.$emit('keyUp', e, _this6.triggerQuery);
|
|
@@ -20017,7 +20056,7 @@
|
|
|
20017
20056
|
value: this.$data.currentValue ? this.$data.currentValue : ''
|
|
20018
20057
|
}),
|
|
20019
20058
|
"ref": this.$props.innerRef
|
|
20020
|
-
}), this.renderIcons()]), this.renderInputAddonAfter()])])]);
|
|
20059
|
+
}), this.renderIcons()]), this.renderInputAddonAfter()]), this.renderTags()])]);
|
|
20021
20060
|
},
|
|
20022
20061
|
destroyed: function destroyed() {
|
|
20023
20062
|
document.removeEventListener('keydown', this.onKeyDown);
|
|
@@ -20192,11 +20231,14 @@
|
|
|
20192
20231
|
componentType: constants_1$1.dataSearch,
|
|
20193
20232
|
internalComponent: DataSearch.hasInternalComponent()
|
|
20194
20233
|
}));
|
|
20195
|
-
|
|
20196
|
-
|
|
20234
|
+
DSConnected.name = DataSearch.name;
|
|
20235
|
+
|
|
20236
|
+
// plugins usage
|
|
20237
|
+
DSConnected.install = function (Vue) {
|
|
20238
|
+
Vue.component(DSConnected.name, DSConnected);
|
|
20197
20239
|
};
|
|
20198
20240
|
// Add componentType for SSR
|
|
20199
|
-
|
|
20241
|
+
DSConnected.componentType = constants_1$1.dataSearch;
|
|
20200
20242
|
|
|
20201
20243
|
var _templateObject$k;
|
|
20202
20244
|
var AutofillSvgIcon = index$1('button')(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"])));
|
|
@@ -20438,7 +20480,6 @@
|
|
|
20438
20480
|
// selected value is cleared, call onValueSelected
|
|
20439
20481
|
this.onValueSelectedHandler('', lib_7.CLEAR_VALUE);
|
|
20440
20482
|
}
|
|
20441
|
-
// if (this.$props.value === undefined) {
|
|
20442
20483
|
if (this.$options.isTagsMode) {
|
|
20443
20484
|
// handling reset of tags through SelectedFilters or URL
|
|
20444
20485
|
this.selectedTags = [];
|
|
@@ -20448,7 +20489,6 @@
|
|
|
20448
20489
|
cause = lib_7.SUGGESTION_SELECT;
|
|
20449
20490
|
}
|
|
20450
20491
|
this.setValue(newVal || '', true, this.$props, cause);
|
|
20451
|
-
// }
|
|
20452
20492
|
}
|
|
20453
20493
|
},
|
|
20454
20494
|
focusShortcuts: function focusShortcuts() {
|
|
@@ -20591,8 +20631,7 @@
|
|
|
20591
20631
|
if (typeof value === 'string' && !!value) {
|
|
20592
20632
|
_this.selectedTags.push(value);
|
|
20593
20633
|
} else if (Array.isArray(value) && !isEqual$5(_this.selectedTags, value)) {
|
|
20594
|
-
|
|
20595
|
-
_this.selectedTags = mergedArray;
|
|
20634
|
+
_this.selectedTags = value;
|
|
20596
20635
|
}
|
|
20597
20636
|
} else if (value) {
|
|
20598
20637
|
_this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
@@ -21416,11 +21455,12 @@
|
|
|
21416
21455
|
componentType: constants_1$1.searchBox,
|
|
21417
21456
|
internalComponent: true
|
|
21418
21457
|
}));
|
|
21419
|
-
|
|
21420
|
-
|
|
21458
|
+
SBConnected.name = SearchBox.name;
|
|
21459
|
+
SBConnected.install = function (Vue) {
|
|
21460
|
+
Vue.component(SBConnected.name, SBConnected);
|
|
21421
21461
|
};
|
|
21422
21462
|
// Add componentType for SSR
|
|
21423
|
-
|
|
21463
|
+
SBConnected.componentType = constants_1$1.searchBox;
|
|
21424
21464
|
|
|
21425
21465
|
var _templateObject$l, _templateObject2$8, _templateObject3$6, _templateObject4$5, _templateObject5$3, _templateObject6$3;
|
|
21426
21466
|
var item = {
|
|
@@ -21934,12 +21974,13 @@
|
|
|
21934
21974
|
componentType: constants_1$1.singleList,
|
|
21935
21975
|
internalComponent: SingleList.hasInternalComponent()
|
|
21936
21976
|
}));
|
|
21937
|
-
|
|
21938
|
-
|
|
21977
|
+
ListConnected.name = SingleList.name;
|
|
21978
|
+
ListConnected.install = function (Vue) {
|
|
21979
|
+
Vue.component(ListConnected.name, ListConnected);
|
|
21939
21980
|
};
|
|
21940
21981
|
|
|
21941
21982
|
// Add componentType for SSR
|
|
21942
|
-
|
|
21983
|
+
ListConnected.componentType = constants_1$1.singleList;
|
|
21943
21984
|
|
|
21944
21985
|
var updateQuery$4 = lib_5.updateQuery,
|
|
21945
21986
|
setQueryOptions$3 = lib_5.setQueryOptions,
|
|
@@ -22468,12 +22509,13 @@
|
|
|
22468
22509
|
componentType: constants_1$1.multiList,
|
|
22469
22510
|
internalComponent: MultiList.hasInternalComponent()
|
|
22470
22511
|
}));
|
|
22471
|
-
|
|
22472
|
-
|
|
22512
|
+
ListConnected$1.name = MultiList.name;
|
|
22513
|
+
ListConnected$1.install = function (Vue) {
|
|
22514
|
+
Vue.component(ListConnected$1.name, ListConnected$1);
|
|
22473
22515
|
};
|
|
22474
22516
|
|
|
22475
22517
|
// Add componentType for SSR
|
|
22476
|
-
|
|
22518
|
+
ListConnected$1.componentType = constants_1$1.multiList;
|
|
22477
22519
|
|
|
22478
22520
|
var _templateObject$m, _templateObject2$9, _templateObject3$7, _templateObject4$6;
|
|
22479
22521
|
var small = css(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"])));
|
|
@@ -23174,12 +23216,13 @@
|
|
|
23174
23216
|
componentType: constants_1$1.singleDropdownList,
|
|
23175
23217
|
internalComponent: SingleDropdownList.hasInternalComponent()
|
|
23176
23218
|
}));
|
|
23177
|
-
|
|
23178
|
-
|
|
23219
|
+
ListConnected$2.name = SingleDropdownList.name;
|
|
23220
|
+
ListConnected$2.install = function (Vue) {
|
|
23221
|
+
Vue.component(ListConnected$2.name, ListConnected$2);
|
|
23179
23222
|
};
|
|
23180
23223
|
|
|
23181
23224
|
// Add componentType for SSR
|
|
23182
|
-
|
|
23225
|
+
ListConnected$2.componentType = constants_1$1.singleDropdownList;
|
|
23183
23226
|
|
|
23184
23227
|
var updateQuery$6 = lib_5.updateQuery,
|
|
23185
23228
|
setQueryOptions$5 = lib_5.setQueryOptions,
|
|
@@ -23688,12 +23731,13 @@
|
|
|
23688
23731
|
componentType: constants_1$1.multiDropdownList,
|
|
23689
23732
|
internalComponent: MultiDropdownList.hasInternalComponent()
|
|
23690
23733
|
}));
|
|
23691
|
-
|
|
23692
|
-
|
|
23734
|
+
ListConnected$3.name = MultiDropdownList.name;
|
|
23735
|
+
ListConnected$3.install = function (Vue) {
|
|
23736
|
+
Vue.component(ListConnected$3.name, ListConnected$3);
|
|
23693
23737
|
};
|
|
23694
23738
|
|
|
23695
23739
|
// Add componentType for SSR
|
|
23696
|
-
|
|
23740
|
+
ListConnected$3.componentType = constants_1$1.multiDropdownList;
|
|
23697
23741
|
|
|
23698
23742
|
var updateQuery$7 = lib_5.updateQuery,
|
|
23699
23743
|
setQueryOptions$6 = lib_5.setQueryOptions,
|
|
@@ -23980,14 +24024,15 @@
|
|
|
23980
24024
|
setQueryOptions: setQueryOptions$6,
|
|
23981
24025
|
setCustomQuery: setCustomQuery$6
|
|
23982
24026
|
};
|
|
23983
|
-
var
|
|
24027
|
+
var TBConnected = PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$9, mapDispatchtoProps$6)(ToggleButton), {
|
|
23984
24028
|
componentType: constants_1$1.toggleButton
|
|
23985
24029
|
}));
|
|
23986
|
-
|
|
23987
|
-
|
|
24030
|
+
TBConnected.name = ToggleButton.name;
|
|
24031
|
+
TBConnected.install = function (Vue) {
|
|
24032
|
+
Vue.component(TBConnected.name, TBConnected);
|
|
23988
24033
|
};
|
|
23989
24034
|
// Add componentType for SSR
|
|
23990
|
-
|
|
24035
|
+
TBConnected.componentType = constants_1$1.toggleButton;
|
|
23991
24036
|
|
|
23992
24037
|
/*!
|
|
23993
24038
|
* vue-no-ssr v1.1.1
|
|
@@ -24125,6 +24170,7 @@
|
|
|
24125
24170
|
},
|
|
24126
24171
|
created: function created() {
|
|
24127
24172
|
var _this = this;
|
|
24173
|
+
this.$timestamp = new Date().getTime();
|
|
24128
24174
|
var onQueryChange = function onQueryChange() {
|
|
24129
24175
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24130
24176
|
args[_key] = arguments[_key];
|
|
@@ -24153,8 +24199,8 @@
|
|
|
24153
24199
|
}
|
|
24154
24200
|
var value = this.$props.value;
|
|
24155
24201
|
if (this.destroyOnUnmount || components.indexOf(this.componentId) === -1) {
|
|
24156
|
-
this.addComponent(this.componentId);
|
|
24157
|
-
this.addComponent(this.internalRangeComponent);
|
|
24202
|
+
this.addComponent(this.componentId, this.$timestamp);
|
|
24203
|
+
this.addComponent(this.internalRangeComponent, this.$timestamp);
|
|
24158
24204
|
if (Array.isArray(this.selectedValue)) {
|
|
24159
24205
|
this.handleChange(this.selectedValue);
|
|
24160
24206
|
} else if (this.selectedValue) {
|
|
@@ -24467,12 +24513,13 @@
|
|
|
24467
24513
|
updateComponentProps: updateComponentProps$2
|
|
24468
24514
|
};
|
|
24469
24515
|
var RangeConnected = PreferencesConsumer(connect(mapStateToProps$a, mapDispatchtoProps$7)(DynamicRangeSlider));
|
|
24470
|
-
|
|
24471
|
-
|
|
24516
|
+
RangeConnected.name = DynamicRangeSlider.name;
|
|
24517
|
+
RangeConnected.install = function (Vue) {
|
|
24518
|
+
Vue.component(RangeConnected.name, RangeConnected);
|
|
24472
24519
|
};
|
|
24473
24520
|
|
|
24474
24521
|
// Add componentType for SSR
|
|
24475
|
-
|
|
24522
|
+
RangeConnected.componentType = constants_1$1.dynamicRangeSlider;
|
|
24476
24523
|
|
|
24477
24524
|
var updateQuery$9 = lib_5.updateQuery,
|
|
24478
24525
|
setQueryOptions$8 = lib_5.setQueryOptions,
|
|
@@ -24673,11 +24720,12 @@
|
|
|
24673
24720
|
var RangeConnected$1 = PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$b, mapDispatchtoProps$8)(SingleRange), {
|
|
24674
24721
|
componentType: constants_1$1.singleRange
|
|
24675
24722
|
}));
|
|
24676
|
-
|
|
24677
|
-
|
|
24723
|
+
RangeConnected$1.name = SingleRange.name;
|
|
24724
|
+
RangeConnected$1.install = function (Vue) {
|
|
24725
|
+
Vue.component(RangeConnected$1.name, RangeConnected$1);
|
|
24678
24726
|
};
|
|
24679
24727
|
// Add componentType for SSR
|
|
24680
|
-
|
|
24728
|
+
RangeConnected$1.componentType = constants_1$1.singleRange;
|
|
24681
24729
|
|
|
24682
24730
|
var updateQuery$a = lib_5.updateQuery,
|
|
24683
24731
|
setQueryOptions$9 = lib_5.setQueryOptions,
|
|
@@ -24941,11 +24989,12 @@
|
|
|
24941
24989
|
var RangeConnected$2 = PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$c, mapDispatchtoProps$9)(MultiRange), {
|
|
24942
24990
|
componentType: constants_1$1.multiRange
|
|
24943
24991
|
}));
|
|
24944
|
-
|
|
24945
|
-
|
|
24992
|
+
RangeConnected$2.name = MultiRange.name;
|
|
24993
|
+
RangeConnected$2.install = function (Vue) {
|
|
24994
|
+
Vue.component(RangeConnected$2.name, RangeConnected$2);
|
|
24946
24995
|
};
|
|
24947
24996
|
// Add componentType for SSR
|
|
24948
|
-
|
|
24997
|
+
RangeConnected$2.componentType = constants_1$1.multiRange;
|
|
24949
24998
|
|
|
24950
24999
|
var updateQuery$b = lib_5.updateQuery,
|
|
24951
25000
|
setQueryOptions$a = lib_5.setQueryOptions,
|
|
@@ -25192,12 +25241,13 @@
|
|
|
25192
25241
|
var RangeConnected$3 = PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$d, mapDispatchtoProps$a)(RangeSlider), {
|
|
25193
25242
|
componentType: constants_1$1.rangeSlider
|
|
25194
25243
|
}));
|
|
25195
|
-
|
|
25196
|
-
|
|
25244
|
+
RangeConnected$3.name = RangeSlider.name;
|
|
25245
|
+
RangeConnected$3.install = function (Vue) {
|
|
25246
|
+
Vue.component(RangeConnected$3.name, RangeConnected$3);
|
|
25197
25247
|
};
|
|
25198
25248
|
|
|
25199
25249
|
// Add componentType for SSR
|
|
25200
|
-
|
|
25250
|
+
RangeConnected$3.componentType = constants_1$1.rangeSlider;
|
|
25201
25251
|
|
|
25202
25252
|
var _templateObject$p, _templateObject2$b;
|
|
25203
25253
|
var alert = function alert(_ref) {
|
|
@@ -25494,12 +25544,13 @@
|
|
|
25494
25544
|
var RangeConnected$4 = PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$e, {})(RangeInput), {
|
|
25495
25545
|
componentType: constants_1$1.rangeInput
|
|
25496
25546
|
}));
|
|
25497
|
-
|
|
25498
|
-
|
|
25547
|
+
RangeConnected$4.name = RangeInput.name;
|
|
25548
|
+
RangeConnected$4.install = function (Vue) {
|
|
25549
|
+
Vue.component(RangeConnected$4.name, RangeConnected$4);
|
|
25499
25550
|
};
|
|
25500
25551
|
|
|
25501
25552
|
// Add componentType for SSR
|
|
25502
|
-
|
|
25553
|
+
RangeConnected$4.componentType = constants_1$1.rangeInput;
|
|
25503
25554
|
|
|
25504
25555
|
var _excluded = ["options"];
|
|
25505
25556
|
var updateQuery$c = lib_5.updateQuery,
|
|
@@ -25817,7 +25868,7 @@
|
|
|
25817
25868
|
break;
|
|
25818
25869
|
// basic components
|
|
25819
25870
|
case constants_1$1.toggleButton:
|
|
25820
|
-
component =
|
|
25871
|
+
component = TBConnected;
|
|
25821
25872
|
break;
|
|
25822
25873
|
// range components
|
|
25823
25874
|
case constants_1$1.dynamicRangeSlider:
|
|
@@ -25844,12 +25895,13 @@
|
|
|
25844
25895
|
});
|
|
25845
25896
|
}
|
|
25846
25897
|
});
|
|
25847
|
-
|
|
25848
|
-
|
|
25898
|
+
RcConnected.name = ReactiveComponent.name;
|
|
25899
|
+
RcConnected.install = function (Vue) {
|
|
25900
|
+
Vue.component(RcConnected.name, RcConnected);
|
|
25849
25901
|
};
|
|
25850
25902
|
|
|
25851
25903
|
// Add componentType for SSR
|
|
25852
|
-
|
|
25904
|
+
RcConnected.componentType = constants_1$1.reactiveComponent;
|
|
25853
25905
|
|
|
25854
25906
|
var setValue$2 = lib_5.setValue,
|
|
25855
25907
|
clearValues = lib_5.clearValues,
|
|
@@ -26013,8 +26065,9 @@
|
|
|
26013
26065
|
resetValuesToDefault: resetValuesToDefault
|
|
26014
26066
|
};
|
|
26015
26067
|
var RcConnected$1 = connect(mapStateToProps$g, mapDispatchtoProps$c)(SelectedFilters);
|
|
26016
|
-
|
|
26017
|
-
|
|
26068
|
+
RcConnected$1.name = SelectedFilters.name;
|
|
26069
|
+
RcConnected$1.install = function (Vue) {
|
|
26070
|
+
Vue.component(RcConnected$1.name, RcConnected$1);
|
|
26018
26071
|
};
|
|
26019
26072
|
|
|
26020
26073
|
var ResultCardTitle = {
|
|
@@ -26460,8 +26513,9 @@
|
|
|
26460
26513
|
setSearchStateFn: setSearchState
|
|
26461
26514
|
};
|
|
26462
26515
|
var StateProviderConnected = connect(mapStateToProps$h, mapDispatchtoProps$d)(StateProvider);
|
|
26463
|
-
|
|
26464
|
-
|
|
26516
|
+
StateProviderConnected.name = StateProvider.name;
|
|
26517
|
+
StateProviderConnected.install = function (Vue) {
|
|
26518
|
+
Vue.component(StateProviderConnected.name, StateProviderConnected);
|
|
26465
26519
|
};
|
|
26466
26520
|
|
|
26467
26521
|
function ownKeys$1(object, enumerableOnly) {
|
|
@@ -32974,7 +33028,8 @@
|
|
|
32974
33028
|
geo_bounding_box: (_geo_bounding_box = {}, _geo_bounding_box[this.dataField] = boundingBoxCoordinates, _geo_bounding_box)
|
|
32975
33029
|
};
|
|
32976
33030
|
if (this.$defaultQuery) {
|
|
32977
|
-
var
|
|
33031
|
+
var _ref2 = this.$defaultQuery || {},
|
|
33032
|
+
query = _ref2.query;
|
|
32978
33033
|
if (query) {
|
|
32979
33034
|
// adds defaultQuery's query to geo-query
|
|
32980
33035
|
// to generate a map query
|
|
@@ -33121,14 +33176,14 @@
|
|
|
33121
33176
|
var options = getQueryOptions$5(this.$props);
|
|
33122
33177
|
options.from = this.$data.from;
|
|
33123
33178
|
if (this.$props.sortBy) {
|
|
33124
|
-
var
|
|
33125
|
-
options.sort = [(
|
|
33179
|
+
var _ref3;
|
|
33180
|
+
options.sort = [(_ref3 = {}, _ref3[this.$props.dataField] = {
|
|
33126
33181
|
order: this.$props.sortBy
|
|
33127
|
-
},
|
|
33182
|
+
}, _ref3)];
|
|
33128
33183
|
}
|
|
33129
33184
|
this.$defaultQuery = null;
|
|
33130
33185
|
if (this.$props.defaultQuery) {
|
|
33131
|
-
this.$defaultQuery = this.$props.defaultQuery();
|
|
33186
|
+
this.$defaultQuery = this.$props.defaultQuery() || {};
|
|
33132
33187
|
options = _extends({}, options, getOptionsFromQuery$4(this.$defaultQuery));
|
|
33133
33188
|
|
|
33134
33189
|
// Override sort query with defaultQuery's sort if defined
|
|
@@ -35043,9 +35098,9 @@
|
|
|
35043
35098
|
});
|
|
35044
35099
|
}
|
|
35045
35100
|
|
|
35046
|
-
var version = "1.33.
|
|
35101
|
+
var version = "1.33.6";
|
|
35047
35102
|
|
|
35048
|
-
var components$1 = [
|
|
35103
|
+
var components$1 = [RLConnected, ResultCard, ResultList, ReactiveBase, DSConnected, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
|
|
35049
35104
|
function install (Vue) {
|
|
35050
35105
|
components$1.map(function (component) {
|
|
35051
35106
|
Vue.use(component);
|
|
@@ -35062,26 +35117,26 @@
|
|
|
35062
35117
|
install: install
|
|
35063
35118
|
};
|
|
35064
35119
|
|
|
35065
|
-
exports.DataSearch =
|
|
35066
|
-
exports.DynamicRangeSlider =
|
|
35067
|
-
exports.MultiDropdownList =
|
|
35068
|
-
exports.MultiList =
|
|
35069
|
-
exports.MultiRange =
|
|
35070
|
-
exports.RangeInput =
|
|
35071
|
-
exports.RangeSlider =
|
|
35120
|
+
exports.DataSearch = DSConnected;
|
|
35121
|
+
exports.DynamicRangeSlider = RangeConnected;
|
|
35122
|
+
exports.MultiDropdownList = ListConnected$3;
|
|
35123
|
+
exports.MultiList = ListConnected$1;
|
|
35124
|
+
exports.MultiRange = RangeConnected$2;
|
|
35125
|
+
exports.RangeInput = RangeConnected$4;
|
|
35126
|
+
exports.RangeSlider = RangeConnected$3;
|
|
35072
35127
|
exports.ReactiveBase = ReactiveBase;
|
|
35073
|
-
exports.ReactiveComponent =
|
|
35128
|
+
exports.ReactiveComponent = RcConnected;
|
|
35074
35129
|
exports.ReactiveGoogleMap = ReactiveGoogleMap;
|
|
35075
|
-
exports.ReactiveList =
|
|
35130
|
+
exports.ReactiveList = RLConnected;
|
|
35076
35131
|
exports.ResultCard = ResultCard;
|
|
35077
35132
|
exports.ResultList = ResultList;
|
|
35078
|
-
exports.SearchBox =
|
|
35079
|
-
exports.SelectedFilters =
|
|
35080
|
-
exports.SingleDropdownList =
|
|
35081
|
-
exports.SingleList =
|
|
35082
|
-
exports.SingleRange =
|
|
35083
|
-
exports.StateProvider =
|
|
35084
|
-
exports.ToggleButton =
|
|
35133
|
+
exports.SearchBox = SBConnected;
|
|
35134
|
+
exports.SelectedFilters = RcConnected$1;
|
|
35135
|
+
exports.SingleDropdownList = ListConnected$2;
|
|
35136
|
+
exports.SingleList = ListConnected;
|
|
35137
|
+
exports.SingleRange = RangeConnected$1;
|
|
35138
|
+
exports.StateProvider = StateProviderConnected;
|
|
35139
|
+
exports.ToggleButton = TBConnected;
|
|
35085
35140
|
exports.componentTypes = constants_1$1;
|
|
35086
35141
|
exports.default = index$4;
|
|
35087
35142
|
exports.initReactivesearch = initReactivesearch;
|