@appbaseio/reactivesearch-vue 1.16.0-alpha.44 → 1.16.0-alpha.47
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 +41 -59
- 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/DynamicRangeSlider.js +2 -3
- package/dist/cjs/MultiDropdownList.js +5 -7
- package/dist/cjs/MultiList.js +5 -7
- package/dist/cjs/MultiRange.js +2 -3
- package/dist/cjs/RangeSlider.js +2 -3
- package/dist/cjs/ReactiveComponent.js +8 -2
- package/dist/cjs/SingleDropdownList.js +5 -7
- package/dist/cjs/SingleList.js +5 -7
- package/dist/cjs/SingleRange.js +2 -3
- package/dist/cjs/initReactivesearch.js +3 -15
- package/dist/cjs/version.js +1 -1
- package/dist/es/DynamicRangeSlider.js +2 -3
- package/dist/es/MultiDropdownList.js +5 -7
- package/dist/es/MultiList.js +5 -7
- package/dist/es/MultiRange.js +2 -3
- package/dist/es/RangeSlider.js +2 -3
- package/dist/es/ReactiveComponent.js +8 -2
- package/dist/es/SingleDropdownList.js +5 -7
- package/dist/es/SingleList.js +5 -7
- package/dist/es/SingleRange.js +2 -3
- package/dist/es/initReactivesearch.js +3 -15
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -5209,7 +5209,7 @@
|
|
|
5209
5209
|
}
|
|
5210
5210
|
|
|
5211
5211
|
return {
|
|
5212
|
-
|
|
5212
|
+
_key: sortBy
|
|
5213
5213
|
};
|
|
5214
5214
|
}
|
|
5215
5215
|
|
|
@@ -20973,7 +20973,6 @@
|
|
|
20973
20973
|
checkValueChange$1(props.componentId, value, props.beforeValueChange, performUpdate);
|
|
20974
20974
|
},
|
|
20975
20975
|
updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props) {
|
|
20976
|
-
var defaultQueryOptions;
|
|
20977
20976
|
var query = SingleList.defaultQuery(value, props);
|
|
20978
20977
|
|
|
20979
20978
|
if (this.defaultQuery) {
|
|
@@ -20982,14 +20981,14 @@
|
|
|
20982
20981
|
|
|
20983
20982
|
if (defaultQueryObj) {
|
|
20984
20983
|
query = defaultQueryObj;
|
|
20985
|
-
}
|
|
20984
|
+
} // Update calculated default query in store
|
|
20986
20985
|
|
|
20987
|
-
defaultQueryOptions = getOptionsForCustomQuery$2(defaultQueryToBeSet); // Update calculated default query in store
|
|
20988
20986
|
|
|
20989
20987
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
20988
|
+
var defaultQueryOptions = getOptionsForCustomQuery$2(defaultQueryToBeSet);
|
|
20989
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
20990
20990
|
}
|
|
20991
20991
|
|
|
20992
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
20993
20992
|
this.updateQuery({
|
|
20994
20993
|
componentId: this.internalComponent,
|
|
20995
20994
|
query: query,
|
|
@@ -21000,16 +20999,15 @@
|
|
|
21000
20999
|
updateQueryHandler: function updateQueryHandler(value, props) {
|
|
21001
21000
|
var customQuery = props.customQuery;
|
|
21002
21001
|
var query = SingleList.defaultQuery(value, props);
|
|
21003
|
-
var customQueryOptions;
|
|
21004
21002
|
|
|
21005
21003
|
if (customQuery) {
|
|
21006
21004
|
var customQueryCalc = customQuery(value, props);
|
|
21007
21005
|
query = extractQueryFromCustomQuery$2(customQueryCalc);
|
|
21008
|
-
customQueryOptions = getOptionsForCustomQuery$2(customQueryCalc);
|
|
21006
|
+
var customQueryOptions = getOptionsForCustomQuery$2(customQueryCalc);
|
|
21009
21007
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
21008
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
21010
21009
|
}
|
|
21011
21010
|
|
|
21012
|
-
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
21013
21011
|
this.updateQuery({
|
|
21014
21012
|
componentId: props.componentId,
|
|
21015
21013
|
query: query,
|
|
@@ -21532,7 +21530,6 @@
|
|
|
21532
21530
|
checkValueChange$2(props.componentId, finalValues, props.beforeValueChange, performUpdate);
|
|
21533
21531
|
},
|
|
21534
21532
|
updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props) {
|
|
21535
|
-
var defaultQueryOptions;
|
|
21536
21533
|
var query = MultiList.defaultQuery(value, props);
|
|
21537
21534
|
|
|
21538
21535
|
if (this.defaultQuery) {
|
|
@@ -21541,14 +21538,14 @@
|
|
|
21541
21538
|
|
|
21542
21539
|
if (defaultQueryObj) {
|
|
21543
21540
|
query = defaultQueryObj;
|
|
21544
|
-
}
|
|
21541
|
+
} // Update calculated default query in store
|
|
21545
21542
|
|
|
21546
|
-
defaultQueryOptions = getOptionsForCustomQuery$3(defaultQueryToBeSet); // Update calculated default query in store
|
|
21547
21543
|
|
|
21548
21544
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
21545
|
+
var defaultQueryOptions = getOptionsForCustomQuery$3(defaultQueryToBeSet);
|
|
21546
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
21549
21547
|
}
|
|
21550
21548
|
|
|
21551
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
21552
21549
|
this.updateQuery({
|
|
21553
21550
|
componentId: this.internalComponent,
|
|
21554
21551
|
query: query,
|
|
@@ -21559,16 +21556,15 @@
|
|
|
21559
21556
|
updateQueryHandler: function updateQueryHandler(value, props) {
|
|
21560
21557
|
var customQuery = props.customQuery;
|
|
21561
21558
|
var query = MultiList.defaultQuery(value, props);
|
|
21562
|
-
var customQueryOptions;
|
|
21563
21559
|
|
|
21564
21560
|
if (customQuery) {
|
|
21565
21561
|
var customQueryCalc = customQuery(value, props);
|
|
21566
21562
|
query = extractQueryFromCustomQuery$3(customQueryCalc);
|
|
21567
|
-
customQueryOptions = getOptionsForCustomQuery$3(customQueryCalc);
|
|
21568
21563
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
21564
|
+
var customQueryOptions = getOptionsForCustomQuery$3(customQueryCalc);
|
|
21565
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
21569
21566
|
}
|
|
21570
21567
|
|
|
21571
|
-
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
21572
21568
|
this.updateQuery({
|
|
21573
21569
|
componentId: props.componentId,
|
|
21574
21570
|
query: query,
|
|
@@ -22373,7 +22369,6 @@
|
|
|
22373
22369
|
}
|
|
22374
22370
|
},
|
|
22375
22371
|
updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props) {
|
|
22376
|
-
var defaultQueryOptions;
|
|
22377
22372
|
var query = SingleDropdownList.defaultQuery(value, props);
|
|
22378
22373
|
|
|
22379
22374
|
if (this.defaultQuery) {
|
|
@@ -22382,14 +22377,14 @@
|
|
|
22382
22377
|
|
|
22383
22378
|
if (defaultQueryObj) {
|
|
22384
22379
|
query = defaultQueryObj;
|
|
22385
|
-
}
|
|
22380
|
+
} // Update calculated default query in store
|
|
22386
22381
|
|
|
22387
|
-
defaultQueryOptions = getOptionsForCustomQuery$4(defaultQueryToBeSet); // Update calculated default query in store
|
|
22388
22382
|
|
|
22389
22383
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
22384
|
+
var defaultQueryOptions = getOptionsForCustomQuery$4(defaultQueryToBeSet);
|
|
22385
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
22390
22386
|
}
|
|
22391
22387
|
|
|
22392
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
22393
22388
|
this.updateQuery({
|
|
22394
22389
|
componentId: this.internalComponent,
|
|
22395
22390
|
query: query,
|
|
@@ -22400,16 +22395,15 @@
|
|
|
22400
22395
|
updateQueryHandler: function updateQueryHandler(value, props) {
|
|
22401
22396
|
var customQuery = props.customQuery;
|
|
22402
22397
|
var query = SingleDropdownList.defaultQuery(value, props);
|
|
22403
|
-
var customQueryOptions;
|
|
22404
22398
|
|
|
22405
22399
|
if (customQuery) {
|
|
22406
22400
|
var customQueryCalc = customQuery(value, props);
|
|
22407
22401
|
query = extractQueryFromCustomQuery$4(customQueryCalc);
|
|
22408
|
-
customQueryOptions = getOptionsForCustomQuery$4(customQueryCalc);
|
|
22409
22402
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
22403
|
+
var customQueryOptions = getOptionsForCustomQuery$4(customQueryCalc);
|
|
22404
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
22410
22405
|
}
|
|
22411
22406
|
|
|
22412
|
-
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
22413
22407
|
this.updateQuery({
|
|
22414
22408
|
componentId: props.componentId,
|
|
22415
22409
|
query: query,
|
|
@@ -22905,7 +22899,6 @@
|
|
|
22905
22899
|
checkValueChange$4(props.componentId, finalValues, props.beforeValueChange, performUpdate);
|
|
22906
22900
|
},
|
|
22907
22901
|
updateDefaultQueryHandler: function updateDefaultQueryHandler(value, props) {
|
|
22908
|
-
var defaultQueryOptions;
|
|
22909
22902
|
var query = MultiDropdownList.defaultQuery(value, props);
|
|
22910
22903
|
|
|
22911
22904
|
if (this.defaultQuery) {
|
|
@@ -22914,14 +22907,14 @@
|
|
|
22914
22907
|
|
|
22915
22908
|
if (defaultQueryObj) {
|
|
22916
22909
|
query = defaultQueryObj;
|
|
22917
|
-
}
|
|
22910
|
+
} // Update calculated default query in store
|
|
22918
22911
|
|
|
22919
|
-
defaultQueryOptions = getOptionsForCustomQuery$5(defaultQueryToBeSet); // Update calculated default query in store
|
|
22920
22912
|
|
|
22921
22913
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
22914
|
+
var defaultQueryOptions = getOptionsForCustomQuery$5(defaultQueryToBeSet);
|
|
22915
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
22922
22916
|
}
|
|
22923
22917
|
|
|
22924
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
22925
22918
|
this.updateQuery({
|
|
22926
22919
|
componentId: this.internalComponent,
|
|
22927
22920
|
query: query,
|
|
@@ -22932,16 +22925,15 @@
|
|
|
22932
22925
|
updateQueryHandler: function updateQueryHandler(value, props) {
|
|
22933
22926
|
var customQuery = props.customQuery;
|
|
22934
22927
|
var query = MultiDropdownList.defaultQuery(value, props);
|
|
22935
|
-
var customQueryOptions;
|
|
22936
22928
|
|
|
22937
22929
|
if (customQuery) {
|
|
22938
22930
|
var customQueryCalc = customQuery(value, props);
|
|
22939
22931
|
query = extractQueryFromCustomQuery$5(customQueryCalc);
|
|
22940
|
-
customQueryOptions = getOptionsForCustomQuery$5(customQueryCalc);
|
|
22941
22932
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
22933
|
+
var customQueryOptions = getOptionsForCustomQuery$5(customQueryCalc);
|
|
22934
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
22942
22935
|
}
|
|
22943
22936
|
|
|
22944
|
-
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
22945
22937
|
this.updateQuery({
|
|
22946
22938
|
componentId: props.componentId,
|
|
22947
22939
|
query: query,
|
|
@@ -23562,10 +23554,16 @@
|
|
|
23562
23554
|
|
|
23563
23555
|
var customQueryCalc = _extends({}, options, {
|
|
23564
23556
|
query: queryToBeSet
|
|
23565
|
-
});
|
|
23557
|
+
});
|
|
23558
|
+
|
|
23559
|
+
var rsAPIQuery = customQueryCalc; // handle stored queries
|
|
23566
23560
|
|
|
23561
|
+
if (queryToBeSet && queryToBeSet.id) {
|
|
23562
|
+
rsAPIQuery = queryToBeSet;
|
|
23563
|
+
} // Update customQuery field for RS API
|
|
23567
23564
|
|
|
23568
|
-
|
|
23565
|
+
|
|
23566
|
+
_this.setCustomQuery(props.componentId, rsAPIQuery);
|
|
23569
23567
|
|
|
23570
23568
|
if (options) {
|
|
23571
23569
|
_this.setQueryOptions(props.componentId, _extends({}, _this.getAggsQuery(), options), false);
|
|
@@ -24096,17 +24094,16 @@
|
|
|
24096
24094
|
updateQueryHandler: function updateQueryHandler(value, props) {
|
|
24097
24095
|
var customQuery = props.customQuery;
|
|
24098
24096
|
var query = SingleRange.defaultQuery(value, props);
|
|
24099
|
-
var customQueryOptions;
|
|
24100
24097
|
|
|
24101
24098
|
if (customQuery) {
|
|
24102
24099
|
var _ref = customQuery(value, props) || {};
|
|
24103
24100
|
|
|
24104
24101
|
query = _ref.query;
|
|
24105
|
-
customQueryOptions = getOptionsFromQuery$1(customQuery(value, props));
|
|
24102
|
+
var customQueryOptions = getOptionsFromQuery$1(customQuery(value, props));
|
|
24106
24103
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
24104
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
24107
24105
|
}
|
|
24108
24106
|
|
|
24109
|
-
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
24110
24107
|
this.updateQuery({
|
|
24111
24108
|
componentId: props.componentId,
|
|
24112
24109
|
query: query,
|
|
@@ -24305,17 +24302,16 @@
|
|
|
24305
24302
|
updateQueryHandler: function updateQueryHandler(value, props) {
|
|
24306
24303
|
var customQuery = props.customQuery;
|
|
24307
24304
|
var query = MultiRange.defaultQuery(value, props);
|
|
24308
|
-
var customQueryOptions;
|
|
24309
24305
|
|
|
24310
24306
|
if (customQuery) {
|
|
24311
24307
|
var _ref = customQuery(value, props) || {};
|
|
24312
24308
|
|
|
24313
24309
|
query = _ref.query;
|
|
24314
|
-
customQueryOptions = getOptionsFromQuery$2(customQuery(value, props));
|
|
24310
|
+
var customQueryOptions = getOptionsFromQuery$2(customQuery(value, props));
|
|
24315
24311
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
24312
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
24316
24313
|
}
|
|
24317
24314
|
|
|
24318
|
-
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
24319
24315
|
this.updateQuery({
|
|
24320
24316
|
componentId: props.componentId,
|
|
24321
24317
|
query: query,
|
|
@@ -24896,14 +24892,14 @@
|
|
|
24896
24892
|
updateQueryHandler: function updateQueryHandler(value, props) {
|
|
24897
24893
|
var customQuery = props.customQuery;
|
|
24898
24894
|
var query = RangeSlider.defaultQuery(value, props);
|
|
24899
|
-
var customQueryOptions;
|
|
24900
24895
|
|
|
24901
24896
|
if (customQuery) {
|
|
24902
24897
|
var _ref = customQuery(value, props) || {};
|
|
24903
24898
|
|
|
24904
24899
|
query = _ref.query;
|
|
24905
|
-
customQueryOptions = getOptionsFromQuery$3(customQuery(value, props));
|
|
24900
|
+
var customQueryOptions = getOptionsFromQuery$3(customQuery(value, props));
|
|
24906
24901
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
24902
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
24907
24903
|
}
|
|
24908
24904
|
|
|
24909
24905
|
var showFilter = props.showFilter,
|
|
@@ -24914,7 +24910,6 @@
|
|
|
24914
24910
|
currentEnd = value[1]; // check if the slider is at its initial position
|
|
24915
24911
|
|
|
24916
24912
|
var isInitialValue = currentStart === start && currentEnd === end;
|
|
24917
|
-
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
24918
24913
|
this.updateQuery({
|
|
24919
24914
|
componentId: props.componentId,
|
|
24920
24915
|
query: query,
|
|
@@ -25299,7 +25294,6 @@
|
|
|
25299
25294
|
},
|
|
25300
25295
|
updateQueryHandler: function updateQueryHandler(value) {
|
|
25301
25296
|
var query = DynamicRangeSlider.defaultQuery(value, this.$props);
|
|
25302
|
-
var customQueryOptions;
|
|
25303
25297
|
|
|
25304
25298
|
if (this.$props.customQuery) {
|
|
25305
25299
|
var customQueryTobeSet = this.$props.customQuery(value, this.$props);
|
|
@@ -25309,8 +25303,9 @@
|
|
|
25309
25303
|
query = queryTobeSet;
|
|
25310
25304
|
}
|
|
25311
25305
|
|
|
25312
|
-
customQueryOptions = getOptionsForCustomQuery$7(customQueryTobeSet);
|
|
25306
|
+
var customQueryOptions = getOptionsForCustomQuery$7(customQueryTobeSet);
|
|
25313
25307
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, value);
|
|
25308
|
+
this.setQueryOptions(this.$props.componentId, customQueryOptions, false);
|
|
25314
25309
|
}
|
|
25315
25310
|
|
|
25316
25311
|
var _ref2 = this.range || {
|
|
@@ -25324,7 +25319,6 @@
|
|
|
25324
25319
|
currentEnd = value[1]; // check if the slider is at its initial position
|
|
25325
25320
|
|
|
25326
25321
|
var isInitialValue = currentStart === start && currentEnd === end;
|
|
25327
|
-
this.setQueryOptions(this.$props.componentId, customQueryOptions, false);
|
|
25328
25322
|
this.updateQuery({
|
|
25329
25323
|
componentId: this.$props.componentId,
|
|
25330
25324
|
query: query,
|
|
@@ -32496,8 +32490,7 @@
|
|
|
32496
32490
|
|
|
32497
32491
|
var _excluded$5 = ["aggs", "size"],
|
|
32498
32492
|
_excluded2 = ["query"],
|
|
32499
|
-
_excluded3 = ["query"]
|
|
32500
|
-
_excluded4 = ["aggs", "size"];
|
|
32493
|
+
_excluded3 = ["query"];
|
|
32501
32494
|
var X_SEARCH_CLIENT$1 = 'ReactiveSearch Vue';
|
|
32502
32495
|
var componentsWithoutFilters = [constants_1$1.numberBox, constants_1$1.ratingsFilter];
|
|
32503
32496
|
var resultComponents = [constants_1$1.reactiveList, constants_1$1.reactiveMap];
|
|
@@ -32767,7 +32760,7 @@
|
|
|
32767
32760
|
queryOptions = queryOptionsReducer(queryOptions, {
|
|
32768
32761
|
type: 'SET_QUERY_OPTIONS',
|
|
32769
32762
|
component: component.componentId,
|
|
32770
|
-
options: _extends({},
|
|
32763
|
+
options: _extends({}, options)
|
|
32771
32764
|
}); // Set component type in component props
|
|
32772
32765
|
|
|
32773
32766
|
compProps.componentType = componentType;
|
|
@@ -32792,18 +32785,6 @@
|
|
|
32792
32785
|
options = _buildQuery.options;
|
|
32793
32786
|
|
|
32794
32787
|
var componentQueryOptions = options;
|
|
32795
|
-
var componentType = component.source.componentType;
|
|
32796
|
-
|
|
32797
|
-
if (componentType !== constants_1$1.reactiveComponent) {
|
|
32798
|
-
// don't merge aggs, size
|
|
32799
|
-
var _ref4 = options || {},
|
|
32800
|
-
aggs = _ref4.aggs,
|
|
32801
|
-
size = _ref4.size,
|
|
32802
|
-
rest = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
32803
|
-
|
|
32804
|
-
componentQueryOptions = rest;
|
|
32805
|
-
}
|
|
32806
|
-
|
|
32807
32788
|
var validOptions = ['aggs', 'from', 'sort']; // check if query or componentQueryOptions are valid - non-empty
|
|
32808
32789
|
|
|
32809
32790
|
if (queryObj && !!Object.keys(queryObj).length || componentQueryOptions && Object.keys(componentQueryOptions).some(function (item) {
|
|
@@ -32991,6 +32972,7 @@
|
|
|
32991
32972
|
rsAPISettings.customEvents = utils_2(config.analyticsConfig.customEvents) ? config.analyticsConfig.customEvents : undefined;
|
|
32992
32973
|
}
|
|
32993
32974
|
|
|
32975
|
+
console.log('FINAL QUERY', JSON.stringify(finalQuery));
|
|
32994
32976
|
appbaseRef.reactiveSearchv3(finalQuery, rsAPISettings).then(function (res) {
|
|
32995
32977
|
handleRSResponse(res);
|
|
32996
32978
|
})["catch"](function (err) {
|
|
@@ -33009,7 +32991,7 @@
|
|
|
33009
32991
|
});
|
|
33010
32992
|
}
|
|
33011
32993
|
|
|
33012
|
-
var version = "1.16.0-alpha.
|
|
32994
|
+
var version = "1.16.0-alpha.47";
|
|
33013
32995
|
|
|
33014
32996
|
var _templateObject$o, _templateObject2$b;
|
|
33015
32997
|
|