@appbaseio/reactivesearch-vue 1.24.3 → 1.27.0-gamma.1
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 +2015 -567
- 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/{DownShift-62e82255.js → CancelSvg-4aa35935.js} +58 -14
- package/dist/cjs/{ComponentWrapper-32481890.js → ComponentWrapper-10bad289.js} +1 -1
- package/dist/cjs/DataSearch-37dfdf39.js +2154 -0
- package/dist/cjs/DataSearch.js +18 -2152
- package/dist/cjs/{DropDown-6815b9b6.js → DropDown-0076babc.js} +66 -24
- package/dist/cjs/DynamicRangeSlider.js +48 -12
- package/dist/cjs/{Input-3cc3fa59.js → Input-a9ee53ed.js} +1 -1
- package/dist/cjs/MultiDropdownList.js +19 -11
- package/dist/cjs/MultiList.js +22 -16
- package/dist/cjs/MultiRange.js +4 -4
- package/dist/cjs/RangeInput.js +10 -6
- package/dist/cjs/RangeSlider.js +19 -22
- package/dist/cjs/ReactiveBase.js +6 -4
- package/dist/cjs/ReactiveComponent.js +3 -3
- package/dist/cjs/ReactiveList.js +61 -44
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +8 -6
- package/dist/cjs/SingleDropdownList.js +18 -10
- package/dist/cjs/SingleList.js +10 -9
- package/dist/cjs/SingleRange.js +4 -4
- package/dist/cjs/StateProvider.js +7 -3
- package/dist/cjs/ToggleButton.js +5 -5
- package/dist/cjs/{index-89c39a9e.js → index-4509aa45.js} +10 -4
- package/dist/cjs/index.js +17 -13
- package/dist/cjs/initReactivesearch.js +19 -0
- package/dist/cjs/install-b7a80fc1.js +1196 -0
- package/dist/cjs/install.js +29 -33
- package/dist/cjs/ssr-0ee35a09.js +39 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-4c19b4c8.js → vueTypes-57d01f18.js} +3 -3
- package/dist/es/{DownShift-3558d402.js → CancelSvg-c2c03a35.js} +55 -16
- package/dist/es/{ComponentWrapper-4f85a67e.js → ComponentWrapper-0f3431d1.js} +1 -1
- package/dist/es/DataSearch-77325036.js +2141 -0
- package/dist/es/DataSearch.js +17 -2151
- package/dist/es/{DropDown-035c804f.js → DropDown-0dd8f2a3.js} +65 -23
- package/dist/es/DynamicRangeSlider.js +48 -12
- package/dist/es/{Input-08bb1bcf.js → Input-10b1d62d.js} +1 -1
- package/dist/es/MultiDropdownList.js +19 -11
- package/dist/es/MultiList.js +22 -16
- package/dist/es/MultiRange.js +4 -4
- package/dist/es/RangeInput.js +10 -6
- package/dist/es/RangeSlider.js +19 -22
- package/dist/es/ReactiveBase.js +6 -4
- package/dist/es/ReactiveComponent.js +3 -3
- package/dist/es/ReactiveList.js +61 -44
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +8 -6
- package/dist/es/SingleDropdownList.js +18 -10
- package/dist/es/SingleList.js +10 -9
- package/dist/es/SingleRange.js +4 -4
- package/dist/es/StateProvider.js +7 -3
- package/dist/es/ToggleButton.js +5 -5
- package/dist/es/{index-cb1950b6.js → index-78920565.js} +10 -4
- package/dist/es/index.js +13 -10
- package/dist/es/initReactivesearch.js +19 -0
- package/dist/es/install-86388b0e.js +1189 -0
- package/dist/es/install.js +27 -35
- package/dist/es/ssr-a41dfea9.js +33 -0
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-fb61bb7b.js → vueTypes-687b2304.js} +3 -3
- package/package.json +4 -4
- package/dist/cjs/ssr-08e95ede.js +0 -39
- package/dist/es/ssr-5d255b08.js +0 -33
|
@@ -6,6 +6,8 @@ import Appbase from 'appbase-js';
|
|
|
6
6
|
import valueReducer from '@appbaseio/reactivecore/lib/reducers/valueReducer';
|
|
7
7
|
import queryReducer from '@appbaseio/reactivecore/lib/reducers/queryReducer';
|
|
8
8
|
import queryOptionsReducer from '@appbaseio/reactivecore/lib/reducers/queryOptionsReducer';
|
|
9
|
+
import compositeAggsReducer from '@appbaseio/reactivecore/lib/reducers/compositeAggsReducer';
|
|
10
|
+
import { UPDATE_COMPOSITE_AGGS } from '@appbaseio/reactivecore/lib/constants';
|
|
9
11
|
import dependencyTreeReducer from '@appbaseio/reactivecore/lib/reducers/dependencyTreeReducer';
|
|
10
12
|
import fetchGraphQL from '@appbaseio/reactivecore/lib/utils/graphQL';
|
|
11
13
|
import { isPropertyDefined } from '@appbaseio/reactivecore/lib/actions/utils';
|
|
@@ -102,6 +104,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
102
104
|
var orderOfQueries = [];
|
|
103
105
|
var hits = {};
|
|
104
106
|
var aggregations = {};
|
|
107
|
+
var compositeAggregations = {};
|
|
105
108
|
var state = {};
|
|
106
109
|
var customQueries = {};
|
|
107
110
|
var defaultQueries = {};
|
|
@@ -336,6 +339,11 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
336
339
|
var _extends4;
|
|
337
340
|
|
|
338
341
|
aggregations = _extends({}, aggregations, (_extends4 = {}, _extends4[component] = response.aggregations, _extends4));
|
|
342
|
+
compositeAggregations = compositeAggsReducer(compositeAggregations, {
|
|
343
|
+
type: UPDATE_COMPOSITE_AGGS,
|
|
344
|
+
aggregations: response.aggregations,
|
|
345
|
+
append: false
|
|
346
|
+
});
|
|
339
347
|
}
|
|
340
348
|
|
|
341
349
|
hits = _extends({}, hits, (_extends5 = {}, _extends5[component] = {
|
|
@@ -362,6 +370,8 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
362
370
|
var promotedResults = {};
|
|
363
371
|
var rawData = {};
|
|
364
372
|
var customData = {};
|
|
373
|
+
var settingsResponse = {};
|
|
374
|
+
var timestamp = {};
|
|
365
375
|
var allPromises = orderOfQueries.map(function (component) {
|
|
366
376
|
return new Promise(function (responseResolve, responseReject) {
|
|
367
377
|
handleTransformResponse(res[component], component).then(function (response) {
|
|
@@ -380,6 +390,11 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
380
390
|
|
|
381
391
|
if (response.customData) {
|
|
382
392
|
customData[component] = response.customData;
|
|
393
|
+
} // Update settings
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
if (response.settings) {
|
|
397
|
+
settingsResponse[component] = response.settings;
|
|
383
398
|
}
|
|
384
399
|
|
|
385
400
|
if (response.aggregations) {
|
|
@@ -388,6 +403,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
388
403
|
aggregations = _extends({}, aggregations, (_extends6 = {}, _extends6[component] = response.aggregations, _extends6));
|
|
389
404
|
}
|
|
390
405
|
|
|
406
|
+
timestamp[component] = res._timestamp;
|
|
391
407
|
hits = _extends({}, hits, (_extends7 = {}, _extends7[component] = {
|
|
392
408
|
hits: response.hits.hits,
|
|
393
409
|
total: typeof response.hits.total === 'object' ? response.hits.total.value : response.hits.total,
|
|
@@ -403,8 +419,11 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
403
419
|
Promise.all(allPromises).then(function () {
|
|
404
420
|
state = _extends({}, state, {
|
|
405
421
|
hits: hits,
|
|
422
|
+
timestamp: timestamp,
|
|
406
423
|
aggregations: aggregations,
|
|
424
|
+
compositeAggregations: compositeAggregations,
|
|
407
425
|
promotedResults: promotedResults,
|
|
426
|
+
settings: settingsResponse,
|
|
408
427
|
customData: customData,
|
|
409
428
|
rawData: rawData
|
|
410
429
|
});
|