@appbaseio/reactivesearch-vue 1.16.0-alpha.25 → 1.16.0-alpha.26
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 +277 -59
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DataSearch.js +1 -1
- package/dist/cjs/{DropDown-d3c78c41.js → DropDown-323d7048.js} +1 -1
- package/dist/cjs/DynamicRangeSlider.js +1 -1
- package/dist/cjs/MultiDropdownList.js +2 -2
- package/dist/cjs/MultiList.js +1 -1
- package/dist/cjs/MultiRange.js +1 -1
- package/dist/cjs/{Pagination-d4dbfd5a.js → Pagination-0b9ec0fc.js} +1 -1
- package/dist/cjs/RangeInput.js +1 -1
- package/dist/cjs/RangeSlider.js +1 -1
- package/dist/cjs/ReactiveBase.js +13 -7
- package/dist/cjs/ReactiveComponent.js +12 -12
- package/dist/cjs/ReactiveGoogleMap.js +2 -2
- package/dist/cjs/ReactiveList.js +7 -2
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +1 -1
- package/dist/cjs/SingleDropdownList.js +2 -2
- package/dist/cjs/SingleList.js +1 -1
- package/dist/cjs/SingleRange.js +1 -1
- package/dist/cjs/ToggleButton.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/initReactivesearch.js +12 -12
- package/dist/cjs/install.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-409348b0.js → vueTypes-829a5f2c.js} +5 -1
- package/dist/es/DataSearch.js +1 -1
- package/dist/es/{DropDown-8894cc22.js → DropDown-c4ef3292.js} +1 -1
- package/dist/es/DynamicRangeSlider.js +1 -1
- package/dist/es/MultiDropdownList.js +2 -2
- package/dist/es/MultiList.js +1 -1
- package/dist/es/MultiRange.js +1 -1
- package/dist/es/{Pagination-a2ab7fcb.js → Pagination-e8216949.js} +1 -1
- package/dist/es/RangeInput.js +1 -1
- package/dist/es/RangeSlider.js +1 -1
- package/dist/es/ReactiveBase.js +13 -7
- package/dist/es/ReactiveComponent.js +12 -12
- package/dist/es/ReactiveGoogleMap.js +2 -2
- package/dist/es/ReactiveList.js +7 -2
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +1 -1
- package/dist/es/SingleDropdownList.js +2 -2
- package/dist/es/SingleList.js +1 -1
- package/dist/es/SingleRange.js +1 -1
- package/dist/es/ToggleButton.js +1 -1
- package/dist/es/index.js +3 -3
- package/dist/es/initReactivesearch.js +12 -12
- package/dist/es/install.js +3 -3
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-a9b9d5c9.js → vueTypes-98819a12.js} +5 -1
- package/package.json +3 -3
package/dist/es/ReactiveBase.js
CHANGED
|
@@ -4,7 +4,7 @@ import VueTypes from 'vue-types';
|
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import { isEqual as isEqual$1 } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
6
6
|
import styled from '@appbaseio/vue-emotion';
|
|
7
|
-
import { t as types } from './vueTypes-
|
|
7
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
8
8
|
import 'redux';
|
|
9
9
|
import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-4755c9a0.js';
|
|
10
10
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
@@ -350,7 +350,7 @@ var ReactiveBase = {
|
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
props: {
|
|
353
|
-
app: types.
|
|
353
|
+
app: types.string,
|
|
354
354
|
analytics: VueTypes.bool,
|
|
355
355
|
analyticsConfig: types.analyticsConfig,
|
|
356
356
|
appbaseConfig: types.appbaseConfig,
|
|
@@ -370,7 +370,8 @@ var ReactiveBase = {
|
|
|
370
370
|
transformResponse: types.func,
|
|
371
371
|
as: VueTypes.string.def('div'),
|
|
372
372
|
getSearchParams: types.func,
|
|
373
|
-
setSearchParams: types.func
|
|
373
|
+
setSearchParams: types.func,
|
|
374
|
+
mongodb: types.mongodb
|
|
374
375
|
},
|
|
375
376
|
provide: function provide() {
|
|
376
377
|
return {
|
|
@@ -410,6 +411,9 @@ var ReactiveBase = {
|
|
|
410
411
|
this.store.dispatch(updateAnalyticsConfig(newVal));
|
|
411
412
|
}
|
|
412
413
|
}
|
|
414
|
+
},
|
|
415
|
+
mongodb: function mongodb() {
|
|
416
|
+
this.updateState(this.$props);
|
|
413
417
|
}
|
|
414
418
|
},
|
|
415
419
|
computed: {
|
|
@@ -417,12 +421,13 @@ var ReactiveBase = {
|
|
|
417
421
|
var _this$$props = this.$props,
|
|
418
422
|
enableAppbase = _this$$props.enableAppbase,
|
|
419
423
|
headers = _this$$props.headers,
|
|
420
|
-
appbaseConfig = _this$$props.appbaseConfig
|
|
424
|
+
appbaseConfig = _this$$props.appbaseConfig,
|
|
425
|
+
mongodb = _this$$props.mongodb;
|
|
421
426
|
|
|
422
427
|
var _ref = appbaseConfig || {},
|
|
423
428
|
enableTelemetry = _ref.enableTelemetry;
|
|
424
429
|
|
|
425
|
-
return _extends({}, enableAppbase && _extends({
|
|
430
|
+
return _extends({}, enableAppbase && !mongodb && _extends({
|
|
426
431
|
'X-Search-Client': X_SEARCH_CLIENT
|
|
427
432
|
}, enableTelemetry === false && {
|
|
428
433
|
'X-Enable-Telemetry': false
|
|
@@ -440,7 +445,7 @@ var ReactiveBase = {
|
|
|
440
445
|
var appbaseConfig = _extends({}, props.analyticsConfig, props.appbaseConfig);
|
|
441
446
|
|
|
442
447
|
var config = {
|
|
443
|
-
url: props.url && props.url.trim() !== '' ? props.url : '
|
|
448
|
+
url: props.url && props.url.trim() !== '' ? props.url : '',
|
|
444
449
|
app: props.app,
|
|
445
450
|
credentials: credentials,
|
|
446
451
|
type: props.type ? props.type : '*',
|
|
@@ -448,7 +453,8 @@ var ReactiveBase = {
|
|
|
448
453
|
transformResponse: props.transformResponse,
|
|
449
454
|
enableAppbase: props.enableAppbase,
|
|
450
455
|
analytics: props.appbaseConfig ? props.appbaseConfig.recordAnalytics : props.analytics,
|
|
451
|
-
analyticsConfig: appbaseConfig
|
|
456
|
+
analyticsConfig: appbaseConfig,
|
|
457
|
+
mongodb: props.mongodb
|
|
452
458
|
};
|
|
453
459
|
var queryParams = '';
|
|
454
460
|
|
|
@@ -2,7 +2,7 @@ import { Actions, helper } from '@appbaseio/reactivecore';
|
|
|
2
2
|
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
|
-
import { t as types } from './vueTypes-
|
|
5
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
6
6
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
7
7
|
import 'redux';
|
|
8
8
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
@@ -45,7 +45,7 @@ var ReactiveComponent = {
|
|
|
45
45
|
this.internalComponent = null;
|
|
46
46
|
this.$defaultQuery = null; // Set custom query in store
|
|
47
47
|
|
|
48
|
-
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props,
|
|
48
|
+
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.selectedValue);
|
|
49
49
|
var customQuery = props.customQuery,
|
|
50
50
|
componentId = props.componentId,
|
|
51
51
|
filterLabel = props.filterLabel,
|
|
@@ -68,7 +68,7 @@ var ReactiveComponent = {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
if (customQuery) {
|
|
71
|
-
var calcCustomQuery = customQuery(props);
|
|
71
|
+
var calcCustomQuery = customQuery(this.selectedValue, props);
|
|
72
72
|
|
|
73
73
|
var _ref = calcCustomQuery || {},
|
|
74
74
|
query = _ref.query;
|
|
@@ -87,7 +87,7 @@ var ReactiveComponent = {
|
|
|
87
87
|
|
|
88
88
|
this.updateQuery({
|
|
89
89
|
componentId: componentId,
|
|
90
|
-
|
|
90
|
+
query: queryToSet,
|
|
91
91
|
value: this.selectedValue || null,
|
|
92
92
|
label: filterLabel,
|
|
93
93
|
showFilter: showFilter,
|
|
@@ -138,8 +138,8 @@ var ReactiveComponent = {
|
|
|
138
138
|
},
|
|
139
139
|
beforeMount: function beforeMount() {
|
|
140
140
|
if (this.internalComponent && this.$props.defaultQuery) {
|
|
141
|
-
updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props,
|
|
142
|
-
this.$defaultQuery = this.$props.defaultQuery();
|
|
141
|
+
updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.selectedValue);
|
|
142
|
+
this.$defaultQuery = this.$props.defaultQuery(this.selectedValue, this.$props);
|
|
143
143
|
|
|
144
144
|
var _ref3 = this.$defaultQuery || {},
|
|
145
145
|
query = _ref3.query,
|
|
@@ -203,8 +203,8 @@ var ReactiveComponent = {
|
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
205
|
defaultQuery: function defaultQuery(newVal, oldVal) {
|
|
206
|
-
if (newVal && !isQueryIdentical(newVal, oldVal,
|
|
207
|
-
this.$defaultQuery = newVal();
|
|
206
|
+
if (newVal && !isQueryIdentical(newVal, oldVal, this.selectedValue, this.$props)) {
|
|
207
|
+
this.$defaultQuery = newVal(this.selectedValue, this.$props);
|
|
208
208
|
|
|
209
209
|
var _ref4 = this.$defaultQuery || {},
|
|
210
210
|
query = _ref4.query,
|
|
@@ -215,7 +215,7 @@ var ReactiveComponent = {
|
|
|
215
215
|
} else this.setQueryOptions(this.internalComponent, this.getAggsQuery(), false); // Update default query for RS API
|
|
216
216
|
|
|
217
217
|
|
|
218
|
-
updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props,
|
|
218
|
+
updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.selectedValue);
|
|
219
219
|
var queryToSet = query || null;
|
|
220
220
|
|
|
221
221
|
if (!queryToSet && this.$defaultQuery && this.$defaultQuery.id) {
|
|
@@ -229,9 +229,9 @@ var ReactiveComponent = {
|
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
231
|
customQuery: function customQuery(newVal, oldVal) {
|
|
232
|
-
if (newVal && !isQueryIdentical(newVal, oldVal,
|
|
232
|
+
if (newVal && !isQueryIdentical(newVal, oldVal, this.selectedValue, this.$props)) {
|
|
233
233
|
var componentId = this.$props.componentId;
|
|
234
|
-
this.$customQuery = newVal(this.$props);
|
|
234
|
+
this.$customQuery = newVal(this.selectedValue, this.$props);
|
|
235
235
|
|
|
236
236
|
var _ref5 = this.$customQuery || {},
|
|
237
237
|
query = _ref5.query,
|
|
@@ -242,7 +242,7 @@ var ReactiveComponent = {
|
|
|
242
242
|
} else this.setQueryOptions(componentId, this.getAggsQuery(), false); // Update custom query for RS API
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props,
|
|
245
|
+
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.selectedValue);
|
|
246
246
|
var queryToSet = query || null;
|
|
247
247
|
|
|
248
248
|
if (this.$customQuery && this.$customQuery.id) {
|
|
@@ -6,8 +6,8 @@ import 'emotion';
|
|
|
6
6
|
import styled, { css } from '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
10
|
-
import { P as Pagination } from './Pagination-
|
|
9
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
10
|
+
import { P as Pagination } from './Pagination-e8216949.js';
|
|
11
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
12
12
|
import 'redux';
|
|
13
13
|
import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-4755c9a0.js';
|
package/dist/es/ReactiveList.js
CHANGED
|
@@ -7,8 +7,8 @@ import { css } from 'emotion';
|
|
|
7
7
|
import styled from '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
9
|
import './Button-799185e2.js';
|
|
10
|
-
import { t as types } from './vueTypes-
|
|
11
|
-
import { P as Pagination } from './Pagination-
|
|
10
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
11
|
+
import { P as Pagination } from './Pagination-e8216949.js';
|
|
12
12
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
13
|
import 'redux';
|
|
14
14
|
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-4755c9a0.js';
|
|
@@ -807,6 +807,11 @@ var ReactiveList = {
|
|
|
807
807
|
renderNoResult: function renderNoResult() {
|
|
808
808
|
var h = this.$createElement;
|
|
809
809
|
var renderNoResults = this.$scopedSlots.renderNoResults || this.$props.renderNoResults;
|
|
810
|
+
|
|
811
|
+
if (this.$scopedSlots.renderNoResults) {
|
|
812
|
+
return isFunction(renderNoResults) ? renderNoResults() : renderNoResults;
|
|
813
|
+
}
|
|
814
|
+
|
|
810
815
|
return h("p", {
|
|
811
816
|
"class": getClassName(this.$props.innerClass, 'noResults') || null
|
|
812
817
|
}, [isFunction(renderNoResults) ? renderNoResults() : renderNoResults]);
|
package/dist/es/ResultCard.js
CHANGED
|
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
|
|
|
3
3
|
import 'emotion';
|
|
4
4
|
import '@appbaseio/vue-emotion';
|
|
5
5
|
import 'polished';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
8
|
import { T as Title } from './Title-579f8d6c.js';
|
|
9
9
|
import { I as Image, C as Card } from './Card-04b3c33e.js';
|
package/dist/es/ResultList.js
CHANGED
|
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
|
|
|
3
3
|
import 'emotion';
|
|
4
4
|
import '@appbaseio/vue-emotion';
|
|
5
5
|
import 'polished';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
7
7
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
8
8
|
import { T as Title } from './Title-579f8d6c.js';
|
|
9
9
|
import { I as Image, L as ListItem } from './ListItem-bdb6d53d.js';
|
|
@@ -6,7 +6,7 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { f as filters, B as Button } from './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { c as connect } from './index-4755c9a0.js';
|
|
12
12
|
import { T as Title } from './Title-579f8d6c.js';
|
|
@@ -6,7 +6,7 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { l as loadMoreContainer, B as Button } from './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
12
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, h as hasCustomRenderer, c as connect } from './index-4755c9a0.js';
|
|
@@ -17,7 +17,7 @@ import 'compute-scroll-into-view';
|
|
|
17
17
|
import './DownShift-e7ccf2a7.js';
|
|
18
18
|
import { C as Container } from './Container-4383c6f0.js';
|
|
19
19
|
import { g as getAggsQuery } from './utils-3a32e13f.js';
|
|
20
|
-
import { D as Dropdown } from './DropDown-
|
|
20
|
+
import { D as Dropdown } from './DropDown-c4ef3292.js';
|
|
21
21
|
|
|
22
22
|
var updateQuery = Actions.updateQuery,
|
|
23
23
|
setQueryOptions = Actions.setQueryOptions,
|
package/dist/es/SingleList.js
CHANGED
|
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, n as isEvent, h as hasCustomRenderer, c as connect } from './index-4755c9a0.js';
|
package/dist/es/SingleRange.js
CHANGED
|
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
11
|
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
package/dist/es/ToggleButton.js
CHANGED
|
@@ -6,7 +6,7 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { B as Button, t as toggleButtons } from './Button-799185e2.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-98819a12.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
12
|
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
package/dist/es/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import 'emotion';
|
|
|
7
7
|
import '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
9
|
import './Button-799185e2.js';
|
|
10
|
-
import './vueTypes-
|
|
11
|
-
import './Pagination-
|
|
10
|
+
import './vueTypes-98819a12.js';
|
|
11
|
+
import './Pagination-e8216949.js';
|
|
12
12
|
export { default as ReactiveList } from './ReactiveList.js';
|
|
13
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
14
14
|
import 'redux';
|
|
@@ -34,7 +34,7 @@ import './FormControlList-fe389a2e.js';
|
|
|
34
34
|
import './utils-3a32e13f.js';
|
|
35
35
|
export { default as SingleList } from './SingleList.js';
|
|
36
36
|
export { default as MultiList } from './MultiList.js';
|
|
37
|
-
import './DropDown-
|
|
37
|
+
import './DropDown-c4ef3292.js';
|
|
38
38
|
export { default as SingleDropdownList } from './SingleDropdownList.js';
|
|
39
39
|
export { default as MultiDropdownList } from './MultiDropdownList.js';
|
|
40
40
|
export { default as ToggleButton } from './ToggleButton.js';
|
|
@@ -116,16 +116,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
116
116
|
compProps[key] = component[key];
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
var isInternalComponentPresent = false;
|
|
120
|
-
|
|
121
|
-
if (component.customQuery && typeof component.customQuery === 'function') {
|
|
122
|
-
customQueries[component.componentId] = component.customQuery(component.value, compProps);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
if (component.defaultQuery && typeof component.defaultQuery === 'function') {
|
|
126
|
-
defaultQueries[component.componentId] = component.defaultQuery(component.value, compProps);
|
|
127
|
-
}
|
|
128
|
-
|
|
119
|
+
var isInternalComponentPresent = false;
|
|
129
120
|
var isResultComponent = resultComponents.includes(componentType);
|
|
130
121
|
var internalComponent = component.componentId + "__internal";
|
|
131
122
|
var label = component.filterLabel || component.componentId;
|
|
@@ -149,7 +140,16 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
149
140
|
reference: reference,
|
|
150
141
|
showFilter: showFilter,
|
|
151
142
|
URLParams: component.URLParams || false
|
|
152
|
-
}); //
|
|
143
|
+
}); // Set custom and default queries
|
|
144
|
+
|
|
145
|
+
if (component.customQuery && typeof component.customQuery === 'function') {
|
|
146
|
+
customQueries[component.componentId] = component.customQuery(value, compProps);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (component.defaultQuery && typeof component.defaultQuery === 'function') {
|
|
150
|
+
defaultQueries[component.componentId] = component.defaultQuery(value, compProps);
|
|
151
|
+
} // [2] set query options - main component query (valid for result components)
|
|
152
|
+
|
|
153
153
|
|
|
154
154
|
if (componentsWithOptions.includes(componentType)) {
|
|
155
155
|
var options = component.source.generateQueryOptions ? component.source.generateQueryOptions(component) : null;
|
|
@@ -236,7 +236,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
if (isResultComponent) {
|
|
239
|
-
var _getQuery = getQuery(component,
|
|
239
|
+
var _getQuery = getQuery(component, value, componentType),
|
|
240
240
|
query = _getQuery.query;
|
|
241
241
|
|
|
242
242
|
queryList = queryReducer(queryList, {
|
package/dist/es/install.js
CHANGED
|
@@ -7,8 +7,8 @@ import 'emotion';
|
|
|
7
7
|
import '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
9
|
import './Button-799185e2.js';
|
|
10
|
-
import './vueTypes-
|
|
11
|
-
import './Pagination-
|
|
10
|
+
import './vueTypes-98819a12.js';
|
|
11
|
+
import './Pagination-e8216949.js';
|
|
12
12
|
import ReactiveList from './ReactiveList.js';
|
|
13
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
14
14
|
import 'redux';
|
|
@@ -34,7 +34,7 @@ import './FormControlList-fe389a2e.js';
|
|
|
34
34
|
import './utils-3a32e13f.js';
|
|
35
35
|
import SingleList from './SingleList.js';
|
|
36
36
|
import MultiList from './MultiList.js';
|
|
37
|
-
import './DropDown-
|
|
37
|
+
import './DropDown-c4ef3292.js';
|
|
38
38
|
import SingleDropdownList from './SingleDropdownList.js';
|
|
39
39
|
import MultiDropdownList from './MultiDropdownList.js';
|
|
40
40
|
import ToggleButton from './ToggleButton.js';
|
package/dist/es/version.js
CHANGED
|
@@ -121,7 +121,11 @@ var types = {
|
|
|
121
121
|
userId: VueTypes.string,
|
|
122
122
|
customEvents: VueTypes.object,
|
|
123
123
|
enableTelemetry: VueTypes.bool.def(true)
|
|
124
|
-
}).def({})
|
|
124
|
+
}).def({}),
|
|
125
|
+
mongodb: VueTypes.shape({
|
|
126
|
+
db: VueTypes.string,
|
|
127
|
+
collection: VueTypes.string
|
|
128
|
+
})
|
|
125
129
|
};
|
|
126
130
|
|
|
127
131
|
export { types as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "1.16.0-alpha.
|
|
3
|
+
"version": "1.16.0-alpha.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@appbaseio/reactivecore": "9.
|
|
37
|
+
"@appbaseio/reactivecore": "9.13.0",
|
|
38
38
|
"@appbaseio/vue-emotion": "0.4.4",
|
|
39
39
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
40
|
-
"appbase-js": "^4.
|
|
40
|
+
"appbase-js": "^4.5.1",
|
|
41
41
|
"compute-scroll-into-view": "^1.0.11",
|
|
42
42
|
"emotion": "9.2.12",
|
|
43
43
|
"gmap-vue": "^1.5.0",
|