@appbaseio/reactivesearch-vue 1.16.0-alpha.20 → 1.16.0-alpha.24
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 +179 -1055
- 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/{ComponentWrapper-d7d87585.js → ComponentWrapper-ab813390.js} +1 -1
- package/dist/cjs/DataSearch.js +4 -4
- package/dist/cjs/{DropDown-35d1472d.js → DropDown-d3c78c41.js} +2 -2
- package/dist/cjs/DynamicRangeSlider.js +2 -2
- package/dist/cjs/MultiDropdownList.js +4 -4
- package/dist/cjs/MultiList.js +3 -3
- package/dist/cjs/MultiRange.js +3 -3
- package/dist/cjs/{Pagination-96c06392.js → Pagination-d4dbfd5a.js} +1 -1
- package/dist/cjs/RangeInput.js +3 -3
- package/dist/cjs/RangeSlider.js +3 -3
- package/dist/cjs/ReactiveBase.js +25 -11
- package/dist/cjs/ReactiveComponent.js +42 -8
- package/dist/cjs/ReactiveGoogleMap.js +4 -4
- package/dist/cjs/ReactiveList.js +22 -21
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +2 -2
- package/dist/cjs/SingleDropdownList.js +4 -4
- package/dist/cjs/SingleList.js +3 -3
- package/dist/cjs/SingleRange.js +3 -3
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/ToggleButton.js +3 -3
- package/dist/cjs/{index-9e4adbb3.js → index-2a8358cd.js} +2 -0
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/initReactivesearch.js +12 -2
- package/dist/cjs/install.js +5 -5
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-c21f265b.js → vueTypes-409348b0.js} +3 -2
- package/dist/es/{ComponentWrapper-66d3e6b8.js → ComponentWrapper-459505fd.js} +1 -1
- package/dist/es/DataSearch.js +4 -4
- package/dist/es/{DropDown-ece64867.js → DropDown-8894cc22.js} +2 -2
- package/dist/es/DynamicRangeSlider.js +2 -2
- package/dist/es/MultiDropdownList.js +4 -4
- package/dist/es/MultiList.js +3 -3
- package/dist/es/MultiRange.js +3 -3
- package/dist/es/{Pagination-f8d7a011.js → Pagination-a2ab7fcb.js} +1 -1
- package/dist/es/RangeInput.js +3 -3
- package/dist/es/RangeSlider.js +3 -3
- package/dist/es/ReactiveBase.js +25 -11
- package/dist/es/ReactiveComponent.js +42 -8
- package/dist/es/ReactiveGoogleMap.js +4 -4
- package/dist/es/ReactiveList.js +22 -21
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +2 -2
- package/dist/es/SingleDropdownList.js +4 -4
- package/dist/es/SingleList.js +3 -3
- package/dist/es/SingleRange.js +3 -3
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/ToggleButton.js +3 -3
- package/dist/es/{index-f5d9c5c6.js → index-4755c9a0.js} +2 -1
- package/dist/es/index.js +5 -5
- package/dist/es/initReactivesearch.js +13 -3
- package/dist/es/install.js +5 -5
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-98d938a9.js → vueTypes-a9b9d5c9.js} +3 -2
- package/package.json +3 -3
package/dist/es/SingleRange.js
CHANGED
|
@@ -5,11 +5,11 @@ 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-a9b9d5c9.js';
|
|
9
9
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
11
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
13
13
|
import { T as Title } from './Title-579f8d6c.js';
|
|
14
14
|
import { C as Container } from './Container-4383c6f0.js';
|
|
15
15
|
import { U as UL, R as Radio } from './FormControlList-fe389a2e.js';
|
package/dist/es/StateProvider.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import 'redux';
|
|
6
|
-
import { c as connect } from './index-
|
|
6
|
+
import { c as connect } from './index-4755c9a0.js';
|
|
7
7
|
|
|
8
8
|
var getSearchState = helper.getSearchState;
|
|
9
9
|
var defaultKeys = ['hits', 'value', 'aggregations', 'error'];
|
|
@@ -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,11 +6,11 @@ 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-a9b9d5c9.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
12
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
14
14
|
import { T as Title } from './Title-579f8d6c.js';
|
|
15
15
|
import { C as Container } from './Container-4383c6f0.js';
|
|
16
16
|
|
|
@@ -129,6 +129,7 @@ var connect = function connect() {
|
|
|
129
129
|
// storeKey,
|
|
130
130
|
// });
|
|
131
131
|
|
|
132
|
+
var X_SEARCH_CLIENT = 'ReactiveSearch Vue';
|
|
132
133
|
var composeThemeObject = function composeThemeObject(ownTheme, userTheme) {
|
|
133
134
|
if (ownTheme === void 0) {
|
|
134
135
|
ownTheme = {};
|
|
@@ -358,4 +359,4 @@ function extractModifierKeysFromFocusShortcuts(focusShortcutsArray) {
|
|
|
358
359
|
});
|
|
359
360
|
}
|
|
360
361
|
|
|
361
|
-
export { isFunction as a, getCamelCase as b, connect as c, getValidPropsKeys as d, composeThemeObject as e, updateCustomQuery as f, getComponent as g, hasCustomRenderer as h, isQueryIdentical as i, getQuerySuggestionsComponent as j, isEmpty as k, extractModifierKeysFromFocusShortcuts as l, hasQuerySuggestionsRenderer as m, isEvent as n, parseValueArray as o, parseFocusShortcuts as p, updateDefaultQuery as u };
|
|
362
|
+
export { X_SEARCH_CLIENT as X, isFunction as a, getCamelCase as b, connect as c, getValidPropsKeys as d, composeThemeObject as e, updateCustomQuery as f, getComponent as g, hasCustomRenderer as h, isQueryIdentical as i, getQuerySuggestionsComponent as j, isEmpty as k, extractModifierKeysFromFocusShortcuts as l, hasQuerySuggestionsRenderer as m, isEvent as n, parseValueArray as o, parseFocusShortcuts as p, updateDefaultQuery as u };
|
package/dist/es/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import './Button-799185e2.js';
|
|
9
|
-
import './vueTypes-
|
|
10
|
-
import './Pagination-
|
|
9
|
+
import './vueTypes-a9b9d5c9.js';
|
|
10
|
+
import './Pagination-a2ab7fcb.js';
|
|
11
11
|
export { default as ReactiveList } from './ReactiveList.js';
|
|
12
12
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
13
|
import 'redux';
|
|
14
|
-
import './index-
|
|
15
|
-
import './ComponentWrapper-
|
|
14
|
+
import './index-4755c9a0.js';
|
|
15
|
+
import './ComponentWrapper-459505fd.js';
|
|
16
16
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
17
17
|
import './Title-579f8d6c.js';
|
|
18
18
|
import './ListItem-bdb6d53d.js';
|
|
@@ -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-8894cc22.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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
2
2
|
import { validProps, componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
3
|
import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
4
4
|
import { pushToAndClause, buildQuery } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
@@ -11,6 +11,7 @@ import fetchGraphQL from '@appbaseio/reactivecore/lib/utils/graphQL';
|
|
|
11
11
|
import { isPropertyDefined } from '@appbaseio/reactivecore/lib/actions/utils';
|
|
12
12
|
|
|
13
13
|
var _excluded = ["aggs", "size"];
|
|
14
|
+
var X_SEARCH_CLIENT = 'ReactiveSearch Vue';
|
|
14
15
|
var componentsWithHighlightQuery = [componentTypes.dataSearch, componentTypes.categorySearch];
|
|
15
16
|
var componentsWithOptions = [componentTypes.reactiveList, componentTypes.reactiveMap, componentTypes.singleList, componentTypes.multiList, componentTypes.tagCloud].concat(componentsWithHighlightQuery);
|
|
16
17
|
var componentsWithoutFilters = [componentTypes.numberBox, componentTypes.ratingsFilter];
|
|
@@ -68,6 +69,14 @@ function getQuery(component, value, componentType) {
|
|
|
68
69
|
function initReactivesearch(componentCollection, searchState, settings) {
|
|
69
70
|
return new Promise(function (resolve, reject) {
|
|
70
71
|
var credentials = settings.url && settings.url.trim() !== '' && !settings.credentials ? null : settings.credentials;
|
|
72
|
+
var enableTelemetry = settings.appbaseConfig && settings.appbaseConfig.enableTelemetry !== undefined ? settings.appbaseConfig.enableTelemetry : true;
|
|
73
|
+
|
|
74
|
+
var headers = _extends({}, settings.enableAppbase && _extends({
|
|
75
|
+
'X-Search-Client': X_SEARCH_CLIENT
|
|
76
|
+
}, enableTelemetry === false && {
|
|
77
|
+
'X-Enable-Telemetry': false
|
|
78
|
+
}), settings.headers);
|
|
79
|
+
|
|
71
80
|
var config = {
|
|
72
81
|
url: settings.url && settings.url.trim() !== '' ? settings.url : 'https://scalr.api.appbase.io',
|
|
73
82
|
app: settings.app,
|
|
@@ -76,7 +85,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
76
85
|
type: settings.type ? settings.type : '*',
|
|
77
86
|
transformResponse: settings.transformResponse || null,
|
|
78
87
|
graphQLUrl: settings.graphQLUrl || '',
|
|
79
|
-
headers:
|
|
88
|
+
headers: headers,
|
|
80
89
|
analyticsConfig: settings.appbaseConfig || null
|
|
81
90
|
};
|
|
82
91
|
var appbaseRef = Appbase(config);
|
|
@@ -298,8 +307,9 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
298
307
|
appbaseQuery = _extends({}, appbaseQuery, (_extends3 = {}, _extends3[component.componentId] = query, _extends3), getDependentQueries(state, component.componentId, orderOfQueries));
|
|
299
308
|
}
|
|
300
309
|
} else {
|
|
310
|
+
var preference = config && config.analyticsConfig && config.analyticsConfig.userId ? config.analyticsConfig.userId + "_" + component : component;
|
|
301
311
|
finalQuery = [].concat(finalQuery, [{
|
|
302
|
-
preference:
|
|
312
|
+
preference: preference
|
|
303
313
|
}, currentQuery]);
|
|
304
314
|
}
|
|
305
315
|
}
|
package/dist/es/install.js
CHANGED
|
@@ -6,13 +6,13 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import './Button-799185e2.js';
|
|
9
|
-
import './vueTypes-
|
|
10
|
-
import './Pagination-
|
|
9
|
+
import './vueTypes-a9b9d5c9.js';
|
|
10
|
+
import './Pagination-a2ab7fcb.js';
|
|
11
11
|
import ReactiveList from './ReactiveList.js';
|
|
12
12
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
13
|
import 'redux';
|
|
14
|
-
import './index-
|
|
15
|
-
import './ComponentWrapper-
|
|
14
|
+
import './index-4755c9a0.js';
|
|
15
|
+
import './ComponentWrapper-459505fd.js';
|
|
16
16
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
17
17
|
import './Title-579f8d6c.js';
|
|
18
18
|
import './ListItem-bdb6d53d.js';
|
|
@@ -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-8894cc22.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
|
@@ -119,8 +119,9 @@ var types = {
|
|
|
119
119
|
emptyQuery: VueTypes.bool,
|
|
120
120
|
suggestionAnalytics: VueTypes.bool,
|
|
121
121
|
userId: VueTypes.string,
|
|
122
|
-
customEvents: VueTypes.object
|
|
123
|
-
|
|
122
|
+
customEvents: VueTypes.object,
|
|
123
|
+
enableTelemetry: VueTypes.bool.def(true)
|
|
124
|
+
}).def({})
|
|
124
125
|
};
|
|
125
126
|
|
|
126
127
|
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.24",
|
|
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.12.
|
|
37
|
+
"@appbaseio/reactivecore": "9.12.8",
|
|
38
38
|
"@appbaseio/vue-emotion": "0.4.4",
|
|
39
39
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|
|
40
|
-
"appbase-js": "^4.1
|
|
40
|
+
"appbase-js": "^4.4.1",
|
|
41
41
|
"compute-scroll-into-view": "^1.0.11",
|
|
42
42
|
"emotion": "9.2.12",
|
|
43
43
|
"gmap-vue": "^1.5.0",
|