@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
|
@@ -17,6 +17,7 @@ var fetchGraphQL = _interopDefault(require('@appbaseio/reactivecore/lib/utils/gr
|
|
|
17
17
|
var utils = require('@appbaseio/reactivecore/lib/actions/utils');
|
|
18
18
|
|
|
19
19
|
var _excluded = ["aggs", "size"];
|
|
20
|
+
var X_SEARCH_CLIENT = 'ReactiveSearch Vue';
|
|
20
21
|
var componentsWithHighlightQuery = [constants.componentTypes.dataSearch, constants.componentTypes.categorySearch];
|
|
21
22
|
var componentsWithOptions = [constants.componentTypes.reactiveList, constants.componentTypes.reactiveMap, constants.componentTypes.singleList, constants.componentTypes.multiList, constants.componentTypes.tagCloud].concat(componentsWithHighlightQuery);
|
|
22
23
|
var componentsWithoutFilters = [constants.componentTypes.numberBox, constants.componentTypes.ratingsFilter];
|
|
@@ -74,6 +75,14 @@ function getQuery(component, value, componentType) {
|
|
|
74
75
|
function initReactivesearch(componentCollection, searchState, settings) {
|
|
75
76
|
return new Promise(function (resolve, reject) {
|
|
76
77
|
var credentials = settings.url && settings.url.trim() !== '' && !settings.credentials ? null : settings.credentials;
|
|
78
|
+
var enableTelemetry = settings.appbaseConfig && settings.appbaseConfig.enableTelemetry !== undefined ? settings.appbaseConfig.enableTelemetry : true;
|
|
79
|
+
|
|
80
|
+
var headers = _rollupPluginBabelHelpers._extends({}, settings.enableAppbase && _rollupPluginBabelHelpers._extends({
|
|
81
|
+
'X-Search-Client': X_SEARCH_CLIENT
|
|
82
|
+
}, enableTelemetry === false && {
|
|
83
|
+
'X-Enable-Telemetry': false
|
|
84
|
+
}), settings.headers);
|
|
85
|
+
|
|
77
86
|
var config = {
|
|
78
87
|
url: settings.url && settings.url.trim() !== '' ? settings.url : 'https://scalr.api.appbase.io',
|
|
79
88
|
app: settings.app,
|
|
@@ -82,7 +91,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
82
91
|
type: settings.type ? settings.type : '*',
|
|
83
92
|
transformResponse: settings.transformResponse || null,
|
|
84
93
|
graphQLUrl: settings.graphQLUrl || '',
|
|
85
|
-
headers:
|
|
94
|
+
headers: headers,
|
|
86
95
|
analyticsConfig: settings.appbaseConfig || null
|
|
87
96
|
};
|
|
88
97
|
var appbaseRef = Appbase(config);
|
|
@@ -304,8 +313,9 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
304
313
|
appbaseQuery = _rollupPluginBabelHelpers._extends({}, appbaseQuery, (_extends3 = {}, _extends3[component.componentId] = query, _extends3), transform.getDependentQueries(state, component.componentId, orderOfQueries));
|
|
305
314
|
}
|
|
306
315
|
} else {
|
|
316
|
+
var preference = config && config.analyticsConfig && config.analyticsConfig.userId ? config.analyticsConfig.userId + "_" + component : component;
|
|
307
317
|
finalQuery = [].concat(finalQuery, [{
|
|
308
|
-
preference:
|
|
318
|
+
preference: preference
|
|
309
319
|
}, currentQuery]);
|
|
310
320
|
}
|
|
311
321
|
}
|
package/dist/cjs/install.js
CHANGED
|
@@ -10,13 +10,13 @@ require('emotion');
|
|
|
10
10
|
require('@appbaseio/vue-emotion');
|
|
11
11
|
require('polished');
|
|
12
12
|
require('./Button-d2f1aeda.js');
|
|
13
|
-
require('./vueTypes-
|
|
14
|
-
require('./Pagination-
|
|
13
|
+
require('./vueTypes-409348b0.js');
|
|
14
|
+
require('./Pagination-d4dbfd5a.js');
|
|
15
15
|
var ReactiveList = require('./ReactiveList.js');
|
|
16
16
|
require('@appbaseio/reactivecore/lib/utils/transform');
|
|
17
17
|
require('redux');
|
|
18
|
-
require('./index-
|
|
19
|
-
require('./ComponentWrapper-
|
|
18
|
+
require('./index-2a8358cd.js');
|
|
19
|
+
require('./ComponentWrapper-ab813390.js');
|
|
20
20
|
require('@vue/babel-helper-vue-jsx-merge-props');
|
|
21
21
|
require('./Title-39765ee6.js');
|
|
22
22
|
require('./ListItem-933c27e4.js');
|
|
@@ -38,7 +38,7 @@ require('./FormControlList-73497794.js');
|
|
|
38
38
|
require('./utils-23afb20b.js');
|
|
39
39
|
var SingleList = require('./SingleList.js');
|
|
40
40
|
var MultiList = require('./MultiList.js');
|
|
41
|
-
require('./DropDown-
|
|
41
|
+
require('./DropDown-d3c78c41.js');
|
|
42
42
|
var SingleDropdownList = require('./SingleDropdownList.js');
|
|
43
43
|
var MultiDropdownList = require('./MultiDropdownList.js');
|
|
44
44
|
var ToggleButton = require('./ToggleButton.js');
|
package/dist/cjs/version.js
CHANGED
|
@@ -123,8 +123,9 @@ var types = {
|
|
|
123
123
|
emptyQuery: VueTypes.bool,
|
|
124
124
|
suggestionAnalytics: VueTypes.bool,
|
|
125
125
|
userId: VueTypes.string,
|
|
126
|
-
customEvents: VueTypes.object
|
|
127
|
-
|
|
126
|
+
customEvents: VueTypes.object,
|
|
127
|
+
enableTelemetry: VueTypes.bool.def(true)
|
|
128
|
+
}).def({})
|
|
128
129
|
};
|
|
129
130
|
|
|
130
131
|
exports.types = types;
|
|
@@ -3,7 +3,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import { getInternalComponentID } from '@appbaseio/reactivecore/lib/utils/transform';
|
|
6
|
-
import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-
|
|
6
|
+
import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-4755c9a0.js';
|
|
7
7
|
|
|
8
8
|
var addComponent = Actions.addComponent,
|
|
9
9
|
removeComponent = Actions.removeComponent,
|
package/dist/es/DataSearch.js
CHANGED
|
@@ -5,11 +5,11 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import styled, { css, cx, injectGlobal } from '@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 { g as getComponent, h as hasCustomRenderer, f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, j as getQuerySuggestionsComponent, a as isFunction, k as isEmpty, p as parseFocusShortcuts, l as extractModifierKeysFromFocusShortcuts, m as hasQuerySuggestionsRenderer, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
11
|
+
import { g as getComponent, h as hasCustomRenderer, f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, j as getQuerySuggestionsComponent, a as isFunction, k as isEmpty, p as parseFocusShortcuts, l as extractModifierKeysFromFocusShortcuts, m as hasQuerySuggestionsRenderer, 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 { F as Flex } from './Flex-aac91505.js';
|
|
15
15
|
import { getQueryOptions } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
@@ -1491,7 +1491,7 @@ var DataSearch = {
|
|
|
1491
1491
|
if (event.key === 'Enter' && highlightedIndex === null) {
|
|
1492
1492
|
this.setValue(event.target.value, true);
|
|
1493
1493
|
this.onValueSelectedHandler(event.target.value, causes.ENTER_PRESS);
|
|
1494
|
-
} //
|
|
1494
|
+
} // Need to review
|
|
1495
1495
|
|
|
1496
1496
|
|
|
1497
1497
|
this.$emit('keyDown', event, this.triggerQuery);
|
|
@@ -3,8 +3,8 @@ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPlugin
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { css } from 'emotion';
|
|
5
5
|
import styled from '@appbaseio/vue-emotion';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
7
|
-
import { a as isFunction } from './index-
|
|
6
|
+
import { t as types } from './vueTypes-a9b9d5c9.js';
|
|
7
|
+
import { a as isFunction } from './index-4755c9a0.js';
|
|
8
8
|
import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-d8519224.js';
|
|
9
9
|
import { D as Downshift } from './DownShift-e7ccf2a7.js';
|
|
10
10
|
|
|
@@ -3,9 +3,9 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import '@appbaseio/vue-emotion';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-a9b9d5c9.js';
|
|
7
7
|
import 'redux';
|
|
8
|
-
import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-
|
|
8
|
+
import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
9
9
|
import { T as Title } from './Title-579f8d6c.js';
|
|
10
10
|
import { C as Container } from './Container-4383c6f0.js';
|
|
11
11
|
import NoSSR from 'vue-no-ssr';
|
|
@@ -6,18 +6,18 @@ 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-a9b9d5c9.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
|
-
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
12
|
+
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, o as parseValueArray, g as getComponent, h as hasCustomRenderer, 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 './Input-d8519224.js';
|
|
16
16
|
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-8894cc22.js';
|
|
21
21
|
|
|
22
22
|
var updateQuery = Actions.updateQuery,
|
|
23
23
|
setQueryOptions = Actions.setQueryOptions,
|
package/dist/es/MultiList.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, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, n as isEvent, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
11
|
+
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, n as isEvent, o as parseValueArray, g as getComponent, h as hasCustomRenderer, 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 { I as Input } from './Input-d8519224.js';
|
|
15
15
|
import { C as Container } from './Container-4383c6f0.js';
|
package/dist/es/MultiRange.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 { o as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
11
|
+
import { o as parseValueArray, 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, C as Checkbox } from './FormControlList-fe389a2e.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
2
|
import VueTypes from 'vue-types';
|
|
3
3
|
import { p as pagination, B as Button } from './Button-799185e2.js';
|
|
4
|
-
import { t as types } from './vueTypes-
|
|
4
|
+
import { t as types } from './vueTypes-a9b9d5c9.js';
|
|
5
5
|
|
|
6
6
|
var getClassName = helper.getClassName,
|
|
7
7
|
handleA11yAction = helper.handleA11yAction;
|
package/dist/es/RangeInput.js
CHANGED
|
@@ -5,11 +5,11 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
|
5
5
|
import { css } from 'emotion';
|
|
6
6
|
import styled from '@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 { c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
11
|
+
import { c as connect } from './index-4755c9a0.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
13
13
|
import './Title-579f8d6c.js';
|
|
14
14
|
import { F as Flex } from './Flex-aac91505.js';
|
|
15
15
|
import { I as Input } from './Input-d8519224.js';
|
package/dist/es/RangeSlider.js
CHANGED
|
@@ -3,11 +3,11 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import '@appbaseio/vue-emotion';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-a9b9d5c9.js';
|
|
7
7
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
8
8
|
import 'redux';
|
|
9
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
10
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
9
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
10
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
11
11
|
import { T as Title } from './Title-579f8d6c.js';
|
|
12
12
|
import { C as Container } from './Container-4383c6f0.js';
|
|
13
13
|
import NoSSR from 'vue-no-ssr';
|
package/dist/es/ReactiveBase.js
CHANGED
|
@@ -3,9 +3,9 @@ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPlugin
|
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import styled from '@appbaseio/vue-emotion';
|
|
6
|
-
import { t as types } from './vueTypes-
|
|
6
|
+
import { t as types } from './vueTypes-a9b9d5c9.js';
|
|
7
7
|
import 'redux';
|
|
8
|
-
import { c as connect, e as composeThemeObject } from './index-
|
|
8
|
+
import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-4755c9a0.js';
|
|
9
9
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
10
10
|
import { isEqual as isEqual$1 } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
11
11
|
import { updateAnalyticsConfig } from '@appbaseio/reactivecore/lib/actions/analytics';
|
|
@@ -412,6 +412,23 @@ var ReactiveBase = {
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
},
|
|
415
|
+
computed: {
|
|
416
|
+
getHeaders: function getHeaders() {
|
|
417
|
+
var _this$$props = this.$props,
|
|
418
|
+
enableAppbase = _this$$props.enableAppbase,
|
|
419
|
+
headers = _this$$props.headers,
|
|
420
|
+
appbaseConfig = _this$$props.appbaseConfig;
|
|
421
|
+
|
|
422
|
+
var _ref = appbaseConfig || {},
|
|
423
|
+
enableTelemetry = _ref.enableTelemetry;
|
|
424
|
+
|
|
425
|
+
return _extends({}, enableAppbase && _extends({
|
|
426
|
+
'X-Search-Client': X_SEARCH_CLIENT
|
|
427
|
+
}, enableTelemetry === false && {
|
|
428
|
+
'X-Enable-Telemetry': false
|
|
429
|
+
}), headers);
|
|
430
|
+
}
|
|
431
|
+
},
|
|
415
432
|
methods: {
|
|
416
433
|
updateState: function updateState(props) {
|
|
417
434
|
this.setStore(props);
|
|
@@ -464,9 +481,7 @@ var ReactiveBase = {
|
|
|
464
481
|
} catch (e) {// Do not add to selectedValues if JSON parsing fails.
|
|
465
482
|
}
|
|
466
483
|
});
|
|
467
|
-
var
|
|
468
|
-
headers = _props$headers === void 0 ? {} : _props$headers,
|
|
469
|
-
themePreset = props.themePreset;
|
|
484
|
+
var themePreset = props.themePreset;
|
|
470
485
|
var appbaseRef = Appbase(config);
|
|
471
486
|
|
|
472
487
|
if (this.$props.transformRequest) {
|
|
@@ -487,7 +502,7 @@ var ReactiveBase = {
|
|
|
487
502
|
appbaseRef: appbaseRef,
|
|
488
503
|
selectedValues: selectedValues,
|
|
489
504
|
urlValues: urlValues,
|
|
490
|
-
headers:
|
|
505
|
+
headers: this.getHeaders
|
|
491
506
|
}, this.$props.initialState);
|
|
492
507
|
|
|
493
508
|
this.store = configureStore(initialState);
|
|
@@ -496,10 +511,9 @@ var ReactiveBase = {
|
|
|
496
511
|
render: function render() {
|
|
497
512
|
var h = arguments[0];
|
|
498
513
|
var children = this.$slots["default"];
|
|
499
|
-
var _this$$
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
className = _this$$props.className;
|
|
514
|
+
var _this$$props2 = this.$props,
|
|
515
|
+
style = _this$$props2.style,
|
|
516
|
+
className = _this$$props2.className;
|
|
503
517
|
return h(Provider, {
|
|
504
518
|
"attrs": {
|
|
505
519
|
"store": this.store
|
|
@@ -507,7 +521,7 @@ var ReactiveBase = {
|
|
|
507
521
|
}, [h(URLParamsProvider$1, {
|
|
508
522
|
"attrs": {
|
|
509
523
|
"as": this.$props.as,
|
|
510
|
-
"headers":
|
|
524
|
+
"headers": this.getHeaders,
|
|
511
525
|
"className": className,
|
|
512
526
|
"getSearchParams": this.getSearchParams,
|
|
513
527
|
"setSearchParams": this.setSearchParams
|
|
@@ -2,11 +2,11 @@ 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-a9b9d5c9.js';
|
|
6
6
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
7
7
|
import 'redux';
|
|
8
|
-
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, c as connect } from './index-
|
|
9
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
8
|
+
import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
|
|
9
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
10
10
|
|
|
11
11
|
var _excluded = ["options"],
|
|
12
12
|
_excluded2 = ["query"],
|
|
@@ -79,9 +79,15 @@ var ReactiveComponent = {
|
|
|
79
79
|
this.setQueryOptions(componentId, _extends({}, customQueryOptions, this.getAggsQuery()), false);
|
|
80
80
|
} else this.setQueryOptions(componentId, this.getAggsQuery(), false);
|
|
81
81
|
|
|
82
|
+
var queryToSet = query || null;
|
|
83
|
+
|
|
84
|
+
if (calcCustomQuery && calcCustomQuery.id) {
|
|
85
|
+
queryToSet = calcCustomQuery;
|
|
86
|
+
}
|
|
87
|
+
|
|
82
88
|
this.updateQuery({
|
|
83
89
|
componentId: componentId,
|
|
84
|
-
|
|
90
|
+
queryToSet: queryToSet,
|
|
85
91
|
value: this.selectedValue || null,
|
|
86
92
|
label: filterLabel,
|
|
87
93
|
showFilter: showFilter,
|
|
@@ -95,6 +101,12 @@ var ReactiveComponent = {
|
|
|
95
101
|
|
|
96
102
|
if (options) {
|
|
97
103
|
_this.setQueryOptions(props.componentId, _extends({}, options, _this.getAggsQuery()), false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
var queryToBeSet = obj.query; // when enableAppbase is true, Backend throws error because of repeated query in request body
|
|
107
|
+
|
|
108
|
+
if (obj && obj.query && obj.query.query) {
|
|
109
|
+
queryToBeSet = obj.query.query;
|
|
98
110
|
} // Update customQuery field for RS API
|
|
99
111
|
|
|
100
112
|
|
|
@@ -102,7 +114,11 @@ var ReactiveComponent = {
|
|
|
102
114
|
var customQueryCalc = _extends({}, options);
|
|
103
115
|
|
|
104
116
|
if (obj && obj.query) {
|
|
105
|
-
|
|
117
|
+
if (obj.query.id) {
|
|
118
|
+
customQueryCalc = queryToBeSet;
|
|
119
|
+
} else {
|
|
120
|
+
customQueryCalc.query = obj.query;
|
|
121
|
+
}
|
|
106
122
|
}
|
|
107
123
|
|
|
108
124
|
_this.setCustomQuery(props.componentId, customQueryCalc);
|
|
@@ -133,9 +149,15 @@ var ReactiveComponent = {
|
|
|
133
149
|
this.setQueryOptions(this.internalComponent, _extends({}, queryOptions, this.getAggsQuery()), false);
|
|
134
150
|
} else this.setQueryOptions(this.internalComponent, this.getAggsQuery(), false);
|
|
135
151
|
|
|
152
|
+
var queryToSet = query || null;
|
|
153
|
+
|
|
154
|
+
if (!queryToSet && this.$defaultQuery && this.$defaultQuery.id) {
|
|
155
|
+
queryToSet = this.$defaultQuery;
|
|
156
|
+
}
|
|
157
|
+
|
|
136
158
|
this.updateQuery({
|
|
137
159
|
componentId: this.internalComponent,
|
|
138
|
-
query:
|
|
160
|
+
query: queryToSet
|
|
139
161
|
});
|
|
140
162
|
}
|
|
141
163
|
},
|
|
@@ -194,9 +216,15 @@ var ReactiveComponent = {
|
|
|
194
216
|
|
|
195
217
|
|
|
196
218
|
updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, undefined);
|
|
219
|
+
var queryToSet = query || null;
|
|
220
|
+
|
|
221
|
+
if (!queryToSet && this.$defaultQuery && this.$defaultQuery.id) {
|
|
222
|
+
queryToSet = this.$defaultQuery;
|
|
223
|
+
}
|
|
224
|
+
|
|
197
225
|
this.updateQuery({
|
|
198
226
|
componentId: this.internalComponent,
|
|
199
|
-
query:
|
|
227
|
+
query: queryToSet
|
|
200
228
|
});
|
|
201
229
|
}
|
|
202
230
|
},
|
|
@@ -215,9 +243,15 @@ var ReactiveComponent = {
|
|
|
215
243
|
|
|
216
244
|
|
|
217
245
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, undefined);
|
|
246
|
+
var queryToSet = query || null;
|
|
247
|
+
|
|
248
|
+
if (this.$customQuery && this.$customQuery.id) {
|
|
249
|
+
queryToSet = this.$customQuery;
|
|
250
|
+
}
|
|
251
|
+
|
|
218
252
|
this.updateQuery({
|
|
219
253
|
componentId: componentId,
|
|
220
|
-
query:
|
|
254
|
+
query: queryToSet
|
|
221
255
|
});
|
|
222
256
|
}
|
|
223
257
|
}
|
|
@@ -6,12 +6,12 @@ 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-a9b9d5c9.js';
|
|
10
|
+
import { P as Pagination } from './Pagination-a2ab7fcb.js';
|
|
11
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
12
12
|
import 'redux';
|
|
13
|
-
import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-
|
|
14
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
+
import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-4755c9a0.js';
|
|
14
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
15
15
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
16
16
|
import { C as Checkbox } from './FormControlList-fe389a2e.js';
|
|
17
17
|
import * as GmapMapFull from 'gmap-vue';
|
package/dist/es/ReactiveList.js
CHANGED
|
@@ -6,12 +6,12 @@ import { css } from 'emotion';
|
|
|
6
6
|
import styled 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-a9b9d5c9.js';
|
|
10
|
+
import { P as Pagination } from './Pagination-a2ab7fcb.js';
|
|
11
11
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
12
12
|
import 'redux';
|
|
13
|
-
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-
|
|
14
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
13
|
+
import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-4755c9a0.js';
|
|
14
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
15
15
|
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
16
16
|
import './Title-579f8d6c.js';
|
|
17
17
|
import { c as container } from './ListItem-bdb6d53d.js';
|
|
@@ -273,18 +273,17 @@ var ReactiveList = {
|
|
|
273
273
|
ResultCardsWrapper: ResultCardsWrapper
|
|
274
274
|
},
|
|
275
275
|
data: function data() {
|
|
276
|
-
var props = this.$props;
|
|
277
276
|
var currentPageState = 0;
|
|
277
|
+
var defaultPage = this.defaultPage || -1;
|
|
278
278
|
|
|
279
|
-
if (
|
|
280
|
-
currentPageState =
|
|
281
|
-
} else if (
|
|
282
|
-
currentPageState = Math.max(
|
|
279
|
+
if (defaultPage >= 0) {
|
|
280
|
+
currentPageState = defaultPage;
|
|
281
|
+
} else if (this.currentPage) {
|
|
282
|
+
currentPageState = Math.max(this.currentPage - 1, 0);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
this.__state = {
|
|
286
|
-
from: currentPageState *
|
|
287
|
-
isLoading: true,
|
|
286
|
+
from: currentPageState * this.size,
|
|
288
287
|
currentPageState: currentPageState
|
|
289
288
|
};
|
|
290
289
|
return this.__state;
|
|
@@ -313,8 +312,10 @@ var ReactiveList = {
|
|
|
313
312
|
console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
|
|
314
313
|
}
|
|
315
314
|
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
var defaultPage = this.defaultPage || -1;
|
|
316
|
+
|
|
317
|
+
if (defaultPage >= 0) {
|
|
318
|
+
this.currentPageState = defaultPage;
|
|
318
319
|
this.from = this.currentPageState * this.$props.size;
|
|
319
320
|
}
|
|
320
321
|
|
|
@@ -782,7 +783,7 @@ var ReactiveList = {
|
|
|
782
783
|
if (this.stats.numberOfResults) {
|
|
783
784
|
return h("p", {
|
|
784
785
|
"class": resultStats + " " + getClassName(this.$props.innerClass, 'resultStats')
|
|
785
|
-
}, [this.stats.numberOfResults, " results found in ", this.stats.time, "ms"]);
|
|
786
|
+
}, [this.stats.numberOfResults, " results found in ", this.stats.time || 0, "ms"]);
|
|
786
787
|
}
|
|
787
788
|
|
|
788
789
|
return null;
|
|
@@ -915,7 +916,7 @@ var ReactiveList = {
|
|
|
915
916
|
return {
|
|
916
917
|
data: this.withClickIds(filteredResults),
|
|
917
918
|
aggregationData: this.withClickIds(aggregationData || []),
|
|
918
|
-
promotedData: this.withClickIds(promotedResults),
|
|
919
|
+
promotedData: this.withClickIds(promotedResults || []),
|
|
919
920
|
rawData: this.rawData,
|
|
920
921
|
resultStats: this.stats,
|
|
921
922
|
customData: customData
|
|
@@ -927,7 +928,7 @@ var ReactiveList = {
|
|
|
927
928
|
|
|
928
929
|
var data = _extends({
|
|
929
930
|
error: error,
|
|
930
|
-
loading: isLoading,
|
|
931
|
+
loading: isLoading || false,
|
|
931
932
|
loadMore: this.loadMore,
|
|
932
933
|
// TODO: Remove in v2
|
|
933
934
|
triggerAnalytics: this.triggerClickAnalytics,
|
|
@@ -942,13 +943,13 @@ var ReactiveList = {
|
|
|
942
943
|
|
|
943
944
|
var mapStateToProps = function mapStateToProps(state, props) {
|
|
944
945
|
return {
|
|
945
|
-
defaultPage: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value - 1
|
|
946
|
+
defaultPage: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value - 1,
|
|
946
947
|
hits: state.hits[props.componentId] && state.hits[props.componentId].hits,
|
|
947
948
|
rawData: state.rawData[props.componentId],
|
|
948
|
-
aggregationData: state.compositeAggregations[props.componentId]
|
|
949
|
-
promotedResults: state.promotedResults[props.componentId]
|
|
949
|
+
aggregationData: state.compositeAggregations[props.componentId],
|
|
950
|
+
promotedResults: state.promotedResults[props.componentId],
|
|
950
951
|
customData: state.customData[props.componentId],
|
|
951
|
-
time: state.hits[props.componentId] && state.hits[props.componentId].time
|
|
952
|
+
time: state.hits[props.componentId] && state.hits[props.componentId].time,
|
|
952
953
|
total: state.hits[props.componentId] && state.hits[props.componentId].total,
|
|
953
954
|
hidden: state.hits[props.componentId] && state.hits[props.componentId].hidden,
|
|
954
955
|
analytics: state.config && state.config.analytics,
|
|
@@ -957,7 +958,7 @@ var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
957
958
|
error: state.error[props.componentId],
|
|
958
959
|
afterKey: state.aggregations[props.componentId] && state.aggregations[props.componentId][props.aggregationField] && state.aggregations[props.componentId][props.aggregationField].after_key,
|
|
959
960
|
componentProps: state.props[props.componentId],
|
|
960
|
-
isLoading: state.isLoading[props.componentId]
|
|
961
|
+
isLoading: state.isLoading[props.componentId]
|
|
961
962
|
};
|
|
962
963
|
};
|
|
963
964
|
|
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-a9b9d5c9.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-a9b9d5c9.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,9 +6,9 @@ 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-a9b9d5c9.js';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { c as connect } from './index-
|
|
11
|
+
import { c as connect } from './index-4755c9a0.js';
|
|
12
12
|
import { T as Title } from './Title-579f8d6c.js';
|
|
13
13
|
import { C as Container } from './Container-4383c6f0.js';
|
|
14
14
|
|
|
@@ -6,18 +6,18 @@ 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-a9b9d5c9.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
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-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
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';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
14
14
|
import { T as Title } from './Title-579f8d6c.js';
|
|
15
15
|
import './Input-d8519224.js';
|
|
16
16
|
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-8894cc22.js';
|
|
21
21
|
|
|
22
22
|
var updateQuery = Actions.updateQuery,
|
|
23
23
|
setQueryOptions = Actions.setQueryOptions,
|
package/dist/es/SingleList.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, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, n as isEvent, h as hasCustomRenderer, c as connect } from './index-
|
|
12
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
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';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
|
|
13
13
|
import { T as Title } from './Title-579f8d6c.js';
|
|
14
14
|
import { I as Input } from './Input-d8519224.js';
|
|
15
15
|
import { C as Container } from './Container-4383c6f0.js';
|