@appbaseio/reactivesearch-vue 1.16.0-alpha.22 → 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 +335 -116
- 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/DataSearch.js +2 -2
- 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 +14 -8
- package/dist/cjs/ReactiveComponent.js +12 -12
- package/dist/cjs/ReactiveGoogleMap.js +2 -2
- package/dist/cjs/ReactiveList.js +58 -54
- 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/StateProvider.js +1 -1
- package/dist/cjs/ToggleButton.js +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/initReactivesearch.js +15 -14
- package/dist/cjs/install.js +4 -4
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-409348b0.js → vueTypes-829a5f2c.js} +5 -1
- package/dist/es/DataSearch.js +2 -2
- 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 +14 -8
- package/dist/es/ReactiveComponent.js +12 -12
- package/dist/es/ReactiveGoogleMap.js +2 -2
- package/dist/es/ReactiveList.js +58 -54
- 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/StateProvider.js +1 -1
- package/dist/es/ToggleButton.js +1 -1
- package/dist/es/index.js +4 -4
- package/dist/es/initReactivesearch.js +15 -14
- package/dist/es/install.js +4 -4
- 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/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/StateProvider.js
CHANGED
|
@@ -89,7 +89,7 @@ var StateProvider = {
|
|
|
89
89
|
watch: {
|
|
90
90
|
searchState: function searchState(newVal, oldVal) {
|
|
91
91
|
if (this.isStateChanged(newVal, oldVal)) {
|
|
92
|
-
this.$emit('change',
|
|
92
|
+
this.$emit('change', oldVal, newVal);
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
selectedValues: function selectedValues(newVal, oldVal) {
|
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
|
@@ -2,12 +2,13 @@ import '@appbaseio/reactivecore';
|
|
|
2
2
|
import './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
3
3
|
import 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
|
+
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
5
6
|
import 'emotion';
|
|
6
7
|
import '@appbaseio/vue-emotion';
|
|
7
8
|
import 'polished';
|
|
8
9
|
import './Button-799185e2.js';
|
|
9
|
-
import './vueTypes-
|
|
10
|
-
import './Pagination-
|
|
10
|
+
import './vueTypes-98819a12.js';
|
|
11
|
+
import './Pagination-e8216949.js';
|
|
11
12
|
export { default as ReactiveList } from './ReactiveList.js';
|
|
12
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
14
|
import 'redux';
|
|
@@ -18,7 +19,6 @@ import './Title-579f8d6c.js';
|
|
|
18
19
|
import './ListItem-bdb6d53d.js';
|
|
19
20
|
import './Card-04b3c33e.js';
|
|
20
21
|
import './Flex-aac91505.js';
|
|
21
|
-
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
22
22
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
23
23
|
import 'appbase-js';
|
|
24
24
|
import 'url-search-params-polyfill';
|
|
@@ -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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
2
2
|
import { validProps, componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
|
-
import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
4
3
|
import { pushToAndClause, buildQuery } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
4
|
+
import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
5
5
|
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';
|
|
@@ -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, {
|
|
@@ -307,8 +307,9 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
307
307
|
appbaseQuery = _extends({}, appbaseQuery, (_extends3 = {}, _extends3[component.componentId] = query, _extends3), getDependentQueries(state, component.componentId, orderOfQueries));
|
|
308
308
|
}
|
|
309
309
|
} else {
|
|
310
|
+
var preference = config && config.analyticsConfig && config.analyticsConfig.userId ? config.analyticsConfig.userId + "_" + component : component;
|
|
310
311
|
finalQuery = [].concat(finalQuery, [{
|
|
311
|
-
preference:
|
|
312
|
+
preference: preference
|
|
312
313
|
}, currentQuery]);
|
|
313
314
|
}
|
|
314
315
|
}
|
package/dist/es/install.js
CHANGED
|
@@ -2,12 +2,13 @@ import '@appbaseio/reactivecore';
|
|
|
2
2
|
import './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
3
3
|
import 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
|
+
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
5
6
|
import 'emotion';
|
|
6
7
|
import '@appbaseio/vue-emotion';
|
|
7
8
|
import 'polished';
|
|
8
9
|
import './Button-799185e2.js';
|
|
9
|
-
import './vueTypes-
|
|
10
|
-
import './Pagination-
|
|
10
|
+
import './vueTypes-98819a12.js';
|
|
11
|
+
import './Pagination-e8216949.js';
|
|
11
12
|
import ReactiveList from './ReactiveList.js';
|
|
12
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
14
|
import 'redux';
|
|
@@ -18,7 +19,6 @@ import './Title-579f8d6c.js';
|
|
|
18
19
|
import './ListItem-bdb6d53d.js';
|
|
19
20
|
import './Card-04b3c33e.js';
|
|
20
21
|
import './Flex-aac91505.js';
|
|
21
|
-
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
22
22
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
23
23
|
import 'appbase-js';
|
|
24
24
|
import 'url-search-params-polyfill';
|
|
@@ -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",
|