@appbaseio/reactivesearch-vue 1.25.0 → 1.27.0-gamma.2
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 +1822 -512
- 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/{CancelSvg-62d42af4.js → CancelSvg-4aa35935.js} +1 -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 -2101
- package/dist/cjs/{DropDown-5847d6e4.js → DropDown-0076babc.js} +18 -13
- package/dist/cjs/DynamicRangeSlider.js +48 -12
- package/dist/cjs/{Input-3cc3fa59.js → Input-a9ee53ed.js} +1 -1
- package/dist/cjs/MultiDropdownList.js +10 -9
- package/dist/cjs/MultiList.js +19 -14
- 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 +2 -2
- package/dist/cjs/ReactiveComponent.js +3 -3
- package/dist/cjs/ReactiveList.js +14 -4
- 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 +9 -8
- package/dist/cjs/SingleList.js +6 -6
- package/dist/cjs/SingleRange.js +4 -4
- package/dist/cjs/StateProvider.js +7 -3
- package/dist/cjs/ToggleButton.js +4 -4
- package/dist/cjs/{index-89c39a9e.js → index-4509aa45.js} +10 -4
- package/dist/cjs/index.js +14 -13
- package/dist/cjs/install-d95c7185.js +1204 -0
- package/dist/cjs/install.js +28 -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/{CancelSvg-e0cace2d.js → CancelSvg-c2c03a35.js} +1 -14
- 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 -2100
- package/dist/es/{DropDown-1ee01031.js → DropDown-0dd8f2a3.js} +18 -13
- package/dist/es/DynamicRangeSlider.js +48 -12
- package/dist/es/{Input-08bb1bcf.js → Input-10b1d62d.js} +1 -1
- package/dist/es/MultiDropdownList.js +10 -9
- package/dist/es/MultiList.js +19 -14
- 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 +2 -2
- package/dist/es/ReactiveComponent.js +3 -3
- package/dist/es/ReactiveList.js +14 -4
- 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 +9 -8
- package/dist/es/SingleList.js +6 -6
- package/dist/es/SingleRange.js +4 -4
- package/dist/es/StateProvider.js +7 -3
- package/dist/es/ToggleButton.js +4 -4
- package/dist/es/{index-cb1950b6.js → index-78920565.js} +10 -4
- package/dist/es/index.js +10 -10
- package/dist/es/install-432674ef.js +1197 -0
- package/dist/es/install.js +26 -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 +5 -5
- package/dist/cjs/ssr-08e95ede.js +0 -39
- package/dist/es/ssr-5d255b08.js +0 -33
|
@@ -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-91561391.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-687b2304.js';
|
|
10
10
|
import 'redux';
|
|
11
|
-
import { c as connect } from './index-
|
|
11
|
+
import { c as connect } from './index-78920565.js';
|
|
12
12
|
import { T as Title } from './Title-3522ff56.js';
|
|
13
13
|
import { C as Container } from './Container-18b03fde.js';
|
|
14
14
|
|
|
@@ -25,7 +25,8 @@ var SelectedFilters = {
|
|
|
25
25
|
innerClass: types.style,
|
|
26
26
|
showClearAll: VueTypes.bool.def(true),
|
|
27
27
|
title: types.title,
|
|
28
|
-
resetToDefault: VueTypes.bool.def(false)
|
|
28
|
+
resetToDefault: VueTypes.bool.def(false),
|
|
29
|
+
resetToValues: VueTypes.object
|
|
29
30
|
},
|
|
30
31
|
inject: {
|
|
31
32
|
theme: {
|
|
@@ -78,15 +79,16 @@ var SelectedFilters = {
|
|
|
78
79
|
this.$emit('clear', component, value);
|
|
79
80
|
},
|
|
80
81
|
clearValues: function clearValues() {
|
|
81
|
-
var resetToDefault = this.resetToDefault
|
|
82
|
+
var resetToDefault = this.resetToDefault,
|
|
83
|
+
resetToValues = this.resetToValues;
|
|
82
84
|
|
|
83
85
|
if (resetToDefault) {
|
|
84
86
|
this.resetValuesToDefault();
|
|
85
87
|
} else {
|
|
86
|
-
this.clearValuesAction();
|
|
88
|
+
this.clearValuesAction(resetToValues);
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
this.$emit('clear',
|
|
91
|
+
this.$emit('clear', resetToValues);
|
|
90
92
|
},
|
|
91
93
|
renderValue: function renderValue(value, isArray) {
|
|
92
94
|
var _this2 = this;
|
|
@@ -6,19 +6,20 @@ import 'emotion';
|
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
8
|
import { l as loadMoreContainer, B as Button } from './Button-91561391.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-687b2304.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-78920565.js';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-0f3431d1.js';
|
|
14
|
+
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
14
15
|
import { T as Title } from './Title-3522ff56.js';
|
|
15
|
-
import './CancelSvg-
|
|
16
|
-
import './Input-
|
|
16
|
+
import './CancelSvg-c2c03a35.js';
|
|
17
|
+
import './Input-10b1d62d.js';
|
|
17
18
|
import 'compute-scroll-into-view';
|
|
18
19
|
import { C as Container } from './Container-18b03fde.js';
|
|
19
20
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
20
21
|
import { g as getAggsQuery } from './utils-64a2e5f0.js';
|
|
21
|
-
import { D as Dropdown } from './DropDown-
|
|
22
|
+
import { D as Dropdown } from './DropDown-0dd8f2a3.js';
|
|
22
23
|
|
|
23
24
|
var updateQuery = Actions.updateQuery,
|
|
24
25
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -294,7 +295,7 @@ var SingleDropdownList = {
|
|
|
294
295
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
295
296
|
}
|
|
296
297
|
|
|
297
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions);
|
|
298
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
298
299
|
this.updateQuery({
|
|
299
300
|
componentId: this.internalComponent,
|
|
300
301
|
query: query,
|
|
@@ -315,7 +316,7 @@ var SingleDropdownList = {
|
|
|
315
316
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
316
317
|
}
|
|
317
318
|
|
|
318
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
319
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
319
320
|
this.updateQuery({
|
|
320
321
|
componentId: props.componentId,
|
|
321
322
|
query: query,
|
package/dist/es/SingleList.js
CHANGED
|
@@ -5,13 +5,13 @@ 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-687b2304.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-78920565.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-0f3431d1.js';
|
|
13
13
|
import { T as Title } from './Title-3522ff56.js';
|
|
14
|
-
import { I as Input } from './Input-
|
|
14
|
+
import { I as Input } from './Input-10b1d62d.js';
|
|
15
15
|
import { C as Container } from './Container-18b03fde.js';
|
|
16
16
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
17
17
|
import { U as UL, R as Radio } from './FormControlList-704f8dee.js';
|
|
@@ -277,7 +277,7 @@ var SingleList = {
|
|
|
277
277
|
updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
this.setQueryOptions(this.internalComponent, defaultQueryOptions);
|
|
280
|
+
this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
|
|
281
281
|
this.updateQuery({
|
|
282
282
|
componentId: this.internalComponent,
|
|
283
283
|
query: query,
|
|
@@ -298,7 +298,7 @@ var SingleList = {
|
|
|
298
298
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
301
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
302
302
|
this.updateQuery({
|
|
303
303
|
componentId: props.componentId,
|
|
304
304
|
query: query,
|
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-687b2304.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-78920565.js';
|
|
12
|
+
import { C as ComponentWrapper } from './ComponentWrapper-0f3431d1.js';
|
|
13
13
|
import { T as Title } from './Title-3522ff56.js';
|
|
14
14
|
import { C as Container } from './Container-18b03fde.js';
|
|
15
15
|
import { U as UL, R as Radio } from './FormControlList-704f8dee.js';
|
|
@@ -160,7 +160,7 @@ var SingleRange = {
|
|
|
160
160
|
updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
this.setQueryOptions(props.componentId, customQueryOptions);
|
|
163
|
+
this.setQueryOptions(props.componentId, customQueryOptions, false);
|
|
164
164
|
this.updateQuery({
|
|
165
165
|
componentId: props.componentId,
|
|
166
166
|
query: query,
|
package/dist/es/StateProvider.js
CHANGED
|
@@ -3,12 +3,16 @@ import { a as _extends } from './_rollupPluginBabelHelpers-0f24d612.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-78920565.js';
|
|
7
7
|
|
|
8
8
|
var getSearchState = helper.getSearchState;
|
|
9
9
|
var defaultKeys = ['hits', 'value', 'aggregations', 'error'];
|
|
10
10
|
|
|
11
11
|
var filterProps = function filterProps(props) {
|
|
12
|
+
if (props === void 0) {
|
|
13
|
+
props = {};
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
return _extends({}, props, {
|
|
13
17
|
props: props.componentProps
|
|
14
18
|
});
|
|
@@ -28,7 +32,7 @@ var filterByComponentIds = function filterByComponentIds(state, props) {
|
|
|
28
32
|
return _ref = {}, _ref[componentIds] = state[componentIds], _ref;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
if (componentIds
|
|
35
|
+
if (Array.isArray(componentIds)) {
|
|
32
36
|
var filteredState = {};
|
|
33
37
|
componentIds.forEach(function (componentId) {
|
|
34
38
|
filteredState[componentId] = state[componentId];
|
|
@@ -67,7 +71,7 @@ var StateProvider = {
|
|
|
67
71
|
};
|
|
68
72
|
return this.__state;
|
|
69
73
|
},
|
|
70
|
-
|
|
74
|
+
created: function created() {
|
|
71
75
|
this.searchState = filterByKeys(getSearchState(filterProps(this.searchStateProps)), this.includeKeys);
|
|
72
76
|
},
|
|
73
77
|
computed: {
|
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-91561391.js';
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
9
|
+
import { t as types } from './vueTypes-687b2304.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-78920565.js';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-0f3431d1.js';
|
|
14
14
|
import { T as Title } from './Title-3522ff56.js';
|
|
15
15
|
import { C as Container } from './Container-18b03fde.js';
|
|
16
16
|
|
|
@@ -186,7 +186,7 @@ var ToggleButton = {
|
|
|
186
186
|
var _ref = customQuery(value, props) || {};
|
|
187
187
|
|
|
188
188
|
query = _ref.query;
|
|
189
|
-
this.setQueryOptions(props.componentId, getOptionsFromQuery(customQuery(value, props)));
|
|
189
|
+
this.setQueryOptions(props.componentId, getOptionsFromQuery(customQuery(value, props)), false);
|
|
190
190
|
updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
|
|
191
191
|
}
|
|
192
192
|
|
|
@@ -155,10 +155,16 @@ var isFunction = function isFunction(element) {
|
|
|
155
155
|
}; // parses current array (i.e. this.$props.value) for `onChange` callback for multi-* components
|
|
156
156
|
|
|
157
157
|
function parseValueArray(objectValues, currentValue) {
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
var selectedValues;
|
|
159
|
+
|
|
160
|
+
if (Array.isArray(objectValues)) {
|
|
161
|
+
selectedValues = [].concat(objectValues);
|
|
162
|
+
} else {
|
|
163
|
+
var keys = Object.keys(objectValues);
|
|
164
|
+
selectedValues = keys.map(function (key) {
|
|
165
|
+
return objectValues[key] ? key : null;
|
|
166
|
+
});
|
|
167
|
+
}
|
|
162
168
|
|
|
163
169
|
if (selectedValues.includes(currentValue)) {
|
|
164
170
|
return selectedValues.filter(function (item) {
|
package/dist/es/index.js
CHANGED
|
@@ -7,12 +7,12 @@ import 'emotion';
|
|
|
7
7
|
import '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
9
|
import './Button-91561391.js';
|
|
10
|
-
import './vueTypes-
|
|
10
|
+
import './vueTypes-687b2304.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-78920565.js';
|
|
15
|
+
import './ComponentWrapper-0f3431d1.js';
|
|
16
16
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
17
17
|
import './Title-3522ff56.js';
|
|
18
18
|
import './ListItem-8e8fb535.js';
|
|
@@ -23,18 +23,20 @@ import 'appbase-js';
|
|
|
23
23
|
import 'url-search-params-polyfill';
|
|
24
24
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
25
25
|
import 'hotkeys-js';
|
|
26
|
-
export {
|
|
27
|
-
import './CancelSvg-
|
|
28
|
-
import './Input-
|
|
26
|
+
export { D as DataSearch } from './DataSearch-77325036.js';
|
|
27
|
+
import './CancelSvg-c2c03a35.js';
|
|
28
|
+
import './Input-10b1d62d.js';
|
|
29
29
|
import 'compute-scroll-into-view';
|
|
30
30
|
import './Container-18b03fde.js';
|
|
31
31
|
import 'vue-highlight-words';
|
|
32
|
+
import { i as install } from './install-432674ef.js';
|
|
33
|
+
export { S as SearchBox, i as install } from './install-432674ef.js';
|
|
32
34
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
33
35
|
import './FormControlList-704f8dee.js';
|
|
34
36
|
import './utils-64a2e5f0.js';
|
|
35
37
|
export { default as SingleList } from './SingleList.js';
|
|
36
38
|
export { default as MultiList } from './MultiList.js';
|
|
37
|
-
import './DropDown-
|
|
39
|
+
import './DropDown-0dd8f2a3.js';
|
|
38
40
|
export { default as SingleDropdownList } from './SingleDropdownList.js';
|
|
39
41
|
export { default as MultiDropdownList } from './MultiDropdownList.js';
|
|
40
42
|
export { default as ToggleButton } from './ToggleButton.js';
|
|
@@ -45,7 +47,7 @@ export { default as MultiRange } from './MultiRange.js';
|
|
|
45
47
|
export { default as ResultCard } from './ResultCard.js';
|
|
46
48
|
export { default as ResultList } from './ResultList.js';
|
|
47
49
|
import 'vue-no-ssr';
|
|
48
|
-
import './ssr-
|
|
50
|
+
import './ssr-a41dfea9.js';
|
|
49
51
|
export { default as RangeSlider } from './RangeSlider.js';
|
|
50
52
|
export { default as DynamicRangeSlider } from './DynamicRangeSlider.js';
|
|
51
53
|
export { default as StateProvider } from './StateProvider.js';
|
|
@@ -61,8 +63,6 @@ export { default as initReactivesearch } from './initReactivesearch.js';
|
|
|
61
63
|
import version from './version.js';
|
|
62
64
|
export { default as version } from './version.js';
|
|
63
65
|
export { default as RangeInput } from './RangeInput.js';
|
|
64
|
-
import install from './install.js';
|
|
65
|
-
export { default as install } from './install.js';
|
|
66
66
|
|
|
67
67
|
// Add polyfills to support in IE
|
|
68
68
|
|