@appbaseio/reactivesearch-vue 1.16.0-alpha.38 → 1.16.0-alpha.39
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 +31 -9
- 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/MultiDropdownList.js +1 -1
- package/dist/cjs/MultiList.js +1 -1
- package/dist/cjs/ReactiveComponent.js +1 -1
- package/dist/cjs/SingleDropdownList.js +1 -1
- package/dist/cjs/initReactivesearch.js +24 -4
- package/dist/cjs/version.js +1 -1
- package/dist/es/MultiDropdownList.js +1 -1
- package/dist/es/MultiList.js +1 -1
- package/dist/es/ReactiveComponent.js +1 -1
- package/dist/es/SingleDropdownList.js +1 -1
- package/dist/es/initReactivesearch.js +24 -4
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -8871,6 +8871,8 @@
|
|
|
8871
8871
|
}, options, queryOptions[component]);
|
|
8872
8872
|
|
|
8873
8873
|
var oldQuery = queryLog[component];
|
|
8874
|
+
console.log('OLD QUERY', component, JSON.stringify(oldQuery));
|
|
8875
|
+
console.log('NEW QUERY', component, JSON.stringify(currentQuery));
|
|
8874
8876
|
|
|
8875
8877
|
if (mustExecuteMapQuery || !(0, helper.isEqual)(currentQuery, oldQuery)) {
|
|
8876
8878
|
orderOfQueries = [].concat(_toConsumableArray(orderOfQueries), [component]);
|
|
@@ -21233,7 +21235,7 @@
|
|
|
21233
21235
|
showCount: VueTypes.bool.def(true),
|
|
21234
21236
|
showFilter: VueTypes.bool.def(true),
|
|
21235
21237
|
showSearch: VueTypes.bool.def(true),
|
|
21236
|
-
size: VueTypes.number
|
|
21238
|
+
size: VueTypes.number,
|
|
21237
21239
|
sortBy: VueTypes.oneOf(['asc', 'desc', 'count']).def('count'),
|
|
21238
21240
|
title: types.title,
|
|
21239
21241
|
URLParams: VueTypes.bool.def(false),
|
|
@@ -22143,7 +22145,7 @@
|
|
|
22143
22145
|
selectAllLabel: types.string,
|
|
22144
22146
|
showCount: VueTypes.bool.def(true),
|
|
22145
22147
|
showFilter: VueTypes.bool.def(true),
|
|
22146
|
-
size: VueTypes.number
|
|
22148
|
+
size: VueTypes.number,
|
|
22147
22149
|
sortBy: VueTypes.oneOf(['asc', 'desc', 'count']).def('count'),
|
|
22148
22150
|
title: types.title,
|
|
22149
22151
|
URLParams: VueTypes.bool.def(false),
|
|
@@ -22601,7 +22603,7 @@
|
|
|
22601
22603
|
selectAllLabel: types.string,
|
|
22602
22604
|
showCount: VueTypes.bool.def(true),
|
|
22603
22605
|
showFilter: VueTypes.bool.def(true),
|
|
22604
|
-
size: VueTypes.number
|
|
22606
|
+
size: VueTypes.number,
|
|
22605
22607
|
sortBy: VueTypes.oneOf(['asc', 'desc', 'count']).def('count'),
|
|
22606
22608
|
title: types.title,
|
|
22607
22609
|
URLParams: VueTypes.bool.def(false),
|
|
@@ -23467,7 +23469,7 @@
|
|
|
23467
23469
|
componentId: types.stringRequired,
|
|
23468
23470
|
aggregationField: types.string,
|
|
23469
23471
|
aggregationSize: VueTypes.number,
|
|
23470
|
-
size: VueTypes.number
|
|
23472
|
+
size: VueTypes.number,
|
|
23471
23473
|
defaultQuery: types.func,
|
|
23472
23474
|
customQuery: types.func,
|
|
23473
23475
|
filterLabel: types.string,
|
|
@@ -32478,7 +32480,8 @@
|
|
|
32478
32480
|
ReactiveGoogleMap.componentType = constants_1$1.reactiveMap;
|
|
32479
32481
|
|
|
32480
32482
|
var _excluded$5 = ["aggs", "size"],
|
|
32481
|
-
_excluded2 = ["query"]
|
|
32483
|
+
_excluded2 = ["query"],
|
|
32484
|
+
_excluded3 = ["aggs", "size"];
|
|
32482
32485
|
var X_SEARCH_CLIENT$1 = 'ReactiveSearch Vue';
|
|
32483
32486
|
var componentsWithoutFilters = [constants_1$1.numberBox, constants_1$1.ratingsFilter];
|
|
32484
32487
|
var resultComponents = [constants_1$1.reactiveList, constants_1$1.reactiveMap];
|
|
@@ -32640,6 +32643,7 @@
|
|
|
32640
32643
|
componentQueryOptions = _extends({}, componentQueryOptions, component.source.generateQueryOptions(component));
|
|
32641
32644
|
}
|
|
32642
32645
|
|
|
32646
|
+
console.log('QUERY LOG componentQueryOptions', component.componentId, componentQueryOptions);
|
|
32643
32647
|
var highlightQuery = {};
|
|
32644
32648
|
|
|
32645
32649
|
if (component.source.highlightQuery) {
|
|
@@ -32763,9 +32767,23 @@
|
|
|
32763
32767
|
queryObj = _buildQuery.queryObj,
|
|
32764
32768
|
options = _buildQuery.options;
|
|
32765
32769
|
|
|
32766
|
-
var
|
|
32770
|
+
var componentQueryOptions = options;
|
|
32771
|
+
var componentType = component.source.componentType;
|
|
32772
|
+
console.log('COMPONENT TYPE', componentType);
|
|
32773
|
+
|
|
32774
|
+
if (componentType !== constants_1$1.reactiveComponent) {
|
|
32775
|
+
// don't merge aggs, size
|
|
32776
|
+
var _ref3 = options || {},
|
|
32777
|
+
aggs = _ref3.aggs,
|
|
32778
|
+
size = _ref3.size,
|
|
32779
|
+
rest = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
32780
|
+
|
|
32781
|
+
componentQueryOptions = rest;
|
|
32782
|
+
}
|
|
32783
|
+
|
|
32784
|
+
var validOptions = ['aggs', 'from', 'sort']; // check if query or componentQueryOptions are valid - non-empty
|
|
32767
32785
|
|
|
32768
|
-
if (queryObj && !!Object.keys(queryObj).length ||
|
|
32786
|
+
if (queryObj && !!Object.keys(queryObj).length || componentQueryOptions && Object.keys(componentQueryOptions).some(function (item) {
|
|
32769
32787
|
return validOptions.includes(item);
|
|
32770
32788
|
})) {
|
|
32771
32789
|
var _extends2;
|
|
@@ -32780,8 +32798,12 @@
|
|
|
32780
32798
|
|
|
32781
32799
|
var currentQuery = _extends({
|
|
32782
32800
|
query: _extends({}, queryObj)
|
|
32783
|
-
},
|
|
32801
|
+
}, componentQueryOptions, queryOptions[component.componentId]);
|
|
32784
32802
|
|
|
32803
|
+
console.log('QUERY LOG build QUERY', component.componentId, queryObj);
|
|
32804
|
+
console.log('QUERY LOG build OPTIONS', component.componentId, componentQueryOptions);
|
|
32805
|
+
console.log('QUERY LOG OPTIONS (component)', component.componentId, queryOptions[component.componentId]);
|
|
32806
|
+
console.log('QUERY LOG', component.componentId, currentQuery);
|
|
32785
32807
|
queryLog = _extends({}, queryLog, (_extends2 = {}, _extends2[component.componentId] = currentQuery, _extends2));
|
|
32786
32808
|
|
|
32787
32809
|
if (settings.enableAppbase) {
|
|
@@ -32968,7 +32990,7 @@
|
|
|
32968
32990
|
});
|
|
32969
32991
|
}
|
|
32970
32992
|
|
|
32971
|
-
var version = "1.16.0-alpha.
|
|
32993
|
+
var version = "1.16.0-alpha.39";
|
|
32972
32994
|
|
|
32973
32995
|
var _templateObject$o, _templateObject2$b;
|
|
32974
32996
|
|