@appbaseio/reactivesearch-vue 1.16.0-alpha.30 → 1.16.0-alpha.31

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.
Files changed (51) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +78 -26
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +2 -2
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{ComponentWrapper-ab813390.js → ComponentWrapper-7302fe1a.js} +1 -1
  6. package/dist/cjs/DataSearch.js +2 -2
  7. package/dist/cjs/{DropDown-0359da33.js → DropDown-c46d8b0c.js} +15 -10
  8. package/dist/cjs/DynamicRangeSlider.js +37 -4
  9. package/dist/cjs/MultiDropdownList.js +5 -4
  10. package/dist/cjs/MultiList.js +15 -10
  11. package/dist/cjs/MultiRange.js +2 -2
  12. package/dist/cjs/RangeInput.js +6 -2
  13. package/dist/cjs/RangeSlider.js +2 -2
  14. package/dist/cjs/ReactiveBase.js +1 -1
  15. package/dist/cjs/ReactiveComponent.js +2 -2
  16. package/dist/cjs/ReactiveGoogleMap.js +2 -2
  17. package/dist/cjs/ReactiveList.js +2 -2
  18. package/dist/cjs/SelectedFilters.js +1 -1
  19. package/dist/cjs/SingleDropdownList.js +4 -3
  20. package/dist/cjs/SingleList.js +2 -2
  21. package/dist/cjs/SingleRange.js +2 -2
  22. package/dist/cjs/StateProvider.js +1 -1
  23. package/dist/cjs/ToggleButton.js +2 -2
  24. package/dist/cjs/{index-2a8358cd.js → index-d44a0a21.js} +10 -4
  25. package/dist/cjs/index.js +3 -3
  26. package/dist/cjs/install.js +3 -3
  27. package/dist/cjs/version.js +1 -1
  28. package/dist/es/{ComponentWrapper-459505fd.js → ComponentWrapper-bbb717bc.js} +1 -1
  29. package/dist/es/DataSearch.js +2 -2
  30. package/dist/es/{DropDown-168b60f6.js → DropDown-4edaa621.js} +15 -10
  31. package/dist/es/DynamicRangeSlider.js +37 -4
  32. package/dist/es/MultiDropdownList.js +5 -4
  33. package/dist/es/MultiList.js +15 -10
  34. package/dist/es/MultiRange.js +2 -2
  35. package/dist/es/RangeInput.js +6 -2
  36. package/dist/es/RangeSlider.js +2 -2
  37. package/dist/es/ReactiveBase.js +1 -1
  38. package/dist/es/ReactiveComponent.js +2 -2
  39. package/dist/es/ReactiveGoogleMap.js +2 -2
  40. package/dist/es/ReactiveList.js +2 -2
  41. package/dist/es/SelectedFilters.js +1 -1
  42. package/dist/es/SingleDropdownList.js +4 -3
  43. package/dist/es/SingleList.js +2 -2
  44. package/dist/es/SingleRange.js +2 -2
  45. package/dist/es/StateProvider.js +1 -1
  46. package/dist/es/ToggleButton.js +2 -2
  47. package/dist/es/{index-4755c9a0.js → index-5daa8276.js} +10 -4
  48. package/dist/es/index.js +3 -3
  49. package/dist/es/install.js +3 -3
  50. package/dist/es/version.js +1 -1
  51. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import '@appbaseio/vue-emotion';
6
6
  import { t as types } from './vueTypes-9326e0be.js';
7
7
  import 'redux';
8
- import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-4755c9a0.js';
8
+ import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-5daa8276.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';
@@ -47,7 +47,8 @@ var DynamicRangeSlider = {
47
47
  URLParams: VueTypes.bool.def(false),
48
48
  sliderOptions: VueTypes.object.def({}),
49
49
  nestedField: types.string,
50
- index: VueTypes.string
50
+ index: VueTypes.string,
51
+ value: types.range
51
52
  },
52
53
  data: function data() {
53
54
  this.internalRangeComponent = this.$props.componentId + "__range__internal";
@@ -93,6 +94,8 @@ var DynamicRangeSlider = {
93
94
  components = _this$$$store$getStat.components;
94
95
  }
95
96
 
97
+ var value = this.$props.value;
98
+
96
99
  if (this.destroyOnUnmount || components.indexOf(this.componentId) === -1) {
97
100
  this.addComponent(this.componentId);
98
101
  this.addComponent(this.internalRangeComponent);
@@ -101,6 +104,8 @@ var DynamicRangeSlider = {
101
104
  this.handleChange(this.selectedValue);
102
105
  } else if (this.selectedValue) {
103
106
  this.handleChange(DynamicRangeSlider.parseValue(this.selectedValue, this.$props));
107
+ } else if (value) {
108
+ this.handleChange(DynamicRangeSlider.parseValue(value, this.$props));
104
109
  } // get range before executing other queries
105
110
 
106
111
 
@@ -119,6 +124,13 @@ var DynamicRangeSlider = {
119
124
  }
120
125
  },
121
126
  methods: {
127
+ isControlled: function isControlled() {
128
+ if (this.$props.value && this.$listeners) {
129
+ return true;
130
+ }
131
+
132
+ return false;
133
+ },
122
134
  setDefaultValue: function setDefaultValue(_ref) {
123
135
  var start = _ref.start,
124
136
  end = _ref.end;
@@ -129,6 +141,8 @@ var DynamicRangeSlider = {
129
141
  defaultEnd = _this$$props$defaultV.end;
130
142
 
131
143
  this.handleChange([defaultStart, defaultEnd]);
144
+ } else if (this.isControlled()) {
145
+ this.handleChange(DynamicRangeSlider.parseValue(this.$props.value), 'change');
132
146
  } else {
133
147
  this.currentValue = [start, end];
134
148
  }
@@ -178,7 +192,16 @@ var DynamicRangeSlider = {
178
192
  },
179
193
  handleSlider: function handleSlider() {
180
194
  var sliderValues = this.$refs.slider.getValue();
181
- this.handleChange(sliderValues);
195
+ var value = this.$props.value;
196
+
197
+ if (value === undefined) {
198
+ this.handleChange(sliderValues);
199
+ } else {
200
+ this.$emit('change', {
201
+ start: sliderValues[0],
202
+ end: sliderValues[1]
203
+ });
204
+ }
182
205
  },
183
206
  handleChange: function handleChange(currentValue) {
184
207
  var _this2 = this;
@@ -271,6 +294,7 @@ var DynamicRangeSlider = {
271
294
  start: this.range.start,
272
295
  end: this.range.end
273
296
  };
297
+ this.$emit('change', value);
274
298
  this.handleChange(DynamicRangeSlider.parseValue(value, this.$props));
275
299
  },
276
300
  range: function range(newValue, oldValue) {
@@ -292,6 +316,11 @@ var DynamicRangeSlider = {
292
316
  if (!isQueryIdentical(newVal, oldVal, this.$data.currentValue, this.$props)) {
293
317
  this.updateQueryHandler(this.$data.currentValue);
294
318
  }
319
+ },
320
+ value: function value(newVal, oldVal) {
321
+ if (!isEqual(newVal, oldVal)) {
322
+ this.handleChange(DynamicRangeSlider.parseValue(newVal, this.$props));
323
+ }
295
324
  }
296
325
  },
297
326
  render: function render() {
@@ -365,7 +394,11 @@ DynamicRangeSlider.defaultQuery = function (values, props) {
365
394
  };
366
395
 
367
396
  DynamicRangeSlider.parseValue = function (value) {
368
- return [value.start, value.end];
397
+ if (value) {
398
+ return Array.isArray(value) ? value : [value.start, value.end];
399
+ }
400
+
401
+ return [];
369
402
  };
370
403
 
371
404
  var mapStateToProps = function mapStateToProps(state, props) {
@@ -9,8 +9,9 @@ import { l as loadMoreContainer, B as Button } from './Button-799185e2.js';
9
9
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
13
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
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-5daa8276.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.js';
14
+ import '@vue/babel-helper-vue-jsx-merge-props';
14
15
  import { T as Title } from './Title-579f8d6c.js';
15
16
  import './CancelSvg-4d9e0857.js';
16
17
  import './Input-d8519224.js';
@@ -18,7 +19,7 @@ import 'compute-scroll-into-view';
18
19
  import { C as Container } from './Container-4383c6f0.js';
19
20
  import '@appbaseio/reactivecore/lib/utils/suggestions';
20
21
  import { g as getAggsQuery } from './utils-3a32e13f.js';
21
- import { D as Dropdown } from './DropDown-168b60f6.js';
22
+ import { D as Dropdown } from './DropDown-4edaa621.js';
22
23
 
23
24
  var updateQuery = Actions.updateQuery,
24
25
  setQueryOptions = Actions.setQueryOptions,
@@ -342,7 +343,7 @@ var MultiDropdownList = {
342
343
  }
343
344
 
344
345
  var performUpdate = function performUpdate() {
345
- _this3.currentValue = currentValue;
346
+ _this3.currentValue = _extends({}, currentValue);
346
347
 
347
348
  _this3.updateQueryHandler(finalValues, props);
348
349
 
@@ -8,8 +8,8 @@ import 'polished';
8
8
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
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-5daa8276.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.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';
@@ -84,13 +84,14 @@ var MultiList = {
84
84
  },
85
85
  beforeMount: function beforeMount() {
86
86
  this.updateQueryHandlerOptions(this.$props);
87
+ var value = this.selectedValue || this.$props.value || this.$props.defaultValue;
88
+ this.setValue(value, !this.selectedValue);
89
+ },
90
+ mounted: function mounted() {
91
+ var currentValue = Object.keys(this.$data.currentValue);
87
92
 
88
- if (this.selectedValue) {
89
- this.setValue(this.selectedValue);
90
- } else if (this.$props.value) {
91
- this.setValue(this.$props.value, true);
92
- } else if (this.$props.defaultValue) {
93
- this.setValue(this.$props.defaultValue, true);
93
+ if (this.$props.value !== undefined && !isEqual(this.$props.value, currentValue)) {
94
+ this.$emit('change', currentValue);
94
95
  }
95
96
  },
96
97
  watch: {
@@ -135,7 +136,11 @@ var MultiList = {
135
136
  }
136
137
 
137
138
  if (!isEqual(selectedValue, newVal)) {
138
- this.setValue(newVal || [], true);
139
+ if (this.value === undefined) {
140
+ this.setValue(newVal, true);
141
+ } else {
142
+ this.$emit('change', newVal);
143
+ }
139
144
  }
140
145
  },
141
146
  defaultQuery: function defaultQuery(newVal, oldVal) {
@@ -434,7 +439,7 @@ var MultiList = {
434
439
  if (value === undefined) {
435
440
  this.setValue(currentValue);
436
441
  } else {
437
- var values = parseValueArray(value, currentValue);
442
+ var values = parseValueArray(value || [], currentValue);
438
443
  this.$emit('change', values);
439
444
  }
440
445
  },
@@ -8,8 +8,8 @@ import 'polished';
8
8
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
11
+ import { o as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5daa8276.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.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';
@@ -8,8 +8,8 @@ import 'polished';
8
8
  import { t as types } from './vueTypes-9326e0be.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
- import { c as connect } from './index-4755c9a0.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
11
+ import { c as connect } from './index-5daa8276.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.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';
@@ -193,6 +193,10 @@ var RangeInput = {
193
193
  if (this.$props.defaultValue && this.$props.defaultValue.start && this.$props.defaultValue.end) {
194
194
  this.handleChange(this.$props.defaultValue);
195
195
  }
196
+
197
+ if (this.isControlled()) {
198
+ this.handleChange(this.$props.value, 'change');
199
+ }
196
200
  },
197
201
  render: function render() {
198
202
  var h = arguments[0];
@@ -6,8 +6,8 @@ import '@appbaseio/vue-emotion';
6
6
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
10
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
9
+ import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5daa8276.js';
10
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.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';
@@ -6,7 +6,7 @@ import { isEqual as isEqual$1 } from '@appbaseio/reactivecore/lib/utils/helper';
6
6
  import styled from '@appbaseio/vue-emotion';
7
7
  import { t as types } from './vueTypes-9326e0be.js';
8
8
  import 'redux';
9
- import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-4755c9a0.js';
9
+ import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-5daa8276.js';
10
10
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
11
11
  import { updateAnalyticsConfig } from '@appbaseio/reactivecore/lib/actions/analytics';
12
12
  import Appbase from 'appbase-js';
@@ -5,8 +5,8 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
9
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
8
+ import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, c as connect } from './index-5daa8276.js';
9
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.js';
10
10
 
11
11
  var _excluded = ["options"],
12
12
  _excluded2 = ["query"],
@@ -10,8 +10,8 @@ import { t as types } from './vueTypes-9326e0be.js';
10
10
  import { P as Pagination } from './Pagination-b3e4054a.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-4755c9a0.js';
14
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
13
+ import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-5daa8276.js';
14
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.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';
@@ -11,8 +11,8 @@ import { t as types } from './vueTypes-9326e0be.js';
11
11
  import { P as Pagination } from './Pagination-b3e4054a.js';
12
12
  import '@appbaseio/reactivecore/lib/utils/transform';
13
13
  import 'redux';
14
- import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-4755c9a0.js';
15
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
14
+ import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-5daa8276.js';
15
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.js';
16
16
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
17
17
  import './Title-579f8d6c.js';
18
18
  import { c as container } from './ListItem-bdb6d53d.js';
@@ -8,7 +8,7 @@ import 'polished';
8
8
  import { f as filters, B as Button } from './Button-799185e2.js';
9
9
  import { t as types } from './vueTypes-9326e0be.js';
10
10
  import 'redux';
11
- import { c as connect } from './index-4755c9a0.js';
11
+ import { c as connect } from './index-5daa8276.js';
12
12
  import { T as Title } from './Title-579f8d6c.js';
13
13
  import { C as Container } from './Container-4383c6f0.js';
14
14
 
@@ -9,8 +9,9 @@ import { l as loadMoreContainer, B as Button } from './Button-799185e2.js';
9
9
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
13
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
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-5daa8276.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.js';
14
+ import '@vue/babel-helper-vue-jsx-merge-props';
14
15
  import { T as Title } from './Title-579f8d6c.js';
15
16
  import './CancelSvg-4d9e0857.js';
16
17
  import './Input-d8519224.js';
@@ -18,7 +19,7 @@ import 'compute-scroll-into-view';
18
19
  import { C as Container } from './Container-4383c6f0.js';
19
20
  import '@appbaseio/reactivecore/lib/utils/suggestions';
20
21
  import { g as getAggsQuery } from './utils-3a32e13f.js';
21
- import { D as Dropdown } from './DropDown-168b60f6.js';
22
+ import { D as Dropdown } from './DropDown-4edaa621.js';
22
23
 
23
24
  var updateQuery = Actions.updateQuery,
24
25
  setQueryOptions = Actions.setQueryOptions,
@@ -8,8 +8,8 @@ import 'polished';
8
8
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
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-5daa8276.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.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';
@@ -8,8 +8,8 @@ import 'polished';
8
8
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
11
+ import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5daa8276.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.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';
@@ -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-4755c9a0.js';
6
+ import { c as connect } from './index-5daa8276.js';
7
7
 
8
8
  var getSearchState = helper.getSearchState;
9
9
  var defaultKeys = ['hits', 'value', 'aggregations', 'error'];
@@ -9,8 +9,8 @@ import { B as Button, t as toggleButtons } from './Button-799185e2.js';
9
9
  import { t as types } from './vueTypes-9326e0be.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-4755c9a0.js';
13
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
12
+ import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5daa8276.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.js';
14
14
  import { T as Title } from './Title-579f8d6c.js';
15
15
  import { C as Container } from './Container-4383c6f0.js';
16
16
 
@@ -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 keys = Object.keys(objectValues);
159
- var selectedValues = keys.map(function (key) {
160
- return objectValues[key] ? key : null;
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
@@ -12,8 +12,8 @@ import './Pagination-b3e4054a.js';
12
12
  export { default as ReactiveList } from './ReactiveList.js';
13
13
  import '@appbaseio/reactivecore/lib/utils/transform';
14
14
  import 'redux';
15
- import './index-4755c9a0.js';
16
- import './ComponentWrapper-459505fd.js';
15
+ import './index-5daa8276.js';
16
+ import './ComponentWrapper-bbb717bc.js';
17
17
  import '@vue/babel-helper-vue-jsx-merge-props';
18
18
  import './Title-579f8d6c.js';
19
19
  import './ListItem-bdb6d53d.js';
@@ -35,7 +35,7 @@ import './FormControlList-fe389a2e.js';
35
35
  import './utils-3a32e13f.js';
36
36
  export { default as SingleList } from './SingleList.js';
37
37
  export { default as MultiList } from './MultiList.js';
38
- import './DropDown-168b60f6.js';
38
+ import './DropDown-4edaa621.js';
39
39
  export { default as SingleDropdownList } from './SingleDropdownList.js';
40
40
  export { default as MultiDropdownList } from './MultiDropdownList.js';
41
41
  export { default as ToggleButton } from './ToggleButton.js';
@@ -12,8 +12,8 @@ import './Pagination-b3e4054a.js';
12
12
  import ReactiveList from './ReactiveList.js';
13
13
  import '@appbaseio/reactivecore/lib/utils/transform';
14
14
  import 'redux';
15
- import './index-4755c9a0.js';
16
- import './ComponentWrapper-459505fd.js';
15
+ import './index-5daa8276.js';
16
+ import './ComponentWrapper-bbb717bc.js';
17
17
  import '@vue/babel-helper-vue-jsx-merge-props';
18
18
  import './Title-579f8d6c.js';
19
19
  import './ListItem-bdb6d53d.js';
@@ -35,7 +35,7 @@ import './FormControlList-fe389a2e.js';
35
35
  import './utils-3a32e13f.js';
36
36
  import SingleList from './SingleList.js';
37
37
  import MultiList from './MultiList.js';
38
- import './DropDown-168b60f6.js';
38
+ import './DropDown-4edaa621.js';
39
39
  import SingleDropdownList from './SingleDropdownList.js';
40
40
  import MultiDropdownList from './MultiDropdownList.js';
41
41
  import ToggleButton from './ToggleButton.js';
@@ -1,3 +1,3 @@
1
- var version = "1.16.0-alpha.30";
1
+ var version = "1.16.0-alpha.31";
2
2
 
3
3
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.16.0-alpha.30",
3
+ "version": "1.16.0-alpha.31",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",