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

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 (101) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +7438 -6512
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/Button-d2f1aeda.js +68 -0
  6. package/dist/cjs/{DownShift-b09da079.js → CancelSvg-82021d23.js} +60 -16
  7. package/dist/cjs/Card-4b915733.js +30 -0
  8. package/dist/cjs/{ComponentWrapper-5a0a8849.js → ComponentWrapper-ab813390.js} +40 -21
  9. package/dist/cjs/{Container-f84e72fc.js → Container-8a08d663.js} +3 -11
  10. package/dist/cjs/DataSearch.js +341 -391
  11. package/dist/cjs/{DropDown-c66be1a8.js → DropDown-0359da33.js} +76 -96
  12. package/dist/cjs/DynamicRangeSlider.js +47 -24
  13. package/dist/cjs/Flex-699639d2.js +52 -0
  14. package/dist/cjs/FormControlList-73497794.js +47 -0
  15. package/dist/cjs/Input-c6f181d5.js +79 -0
  16. package/dist/cjs/ListItem-933c27e4.js +46 -0
  17. package/dist/cjs/MultiDropdownList.js +69 -45
  18. package/dist/cjs/MultiList.js +36 -21
  19. package/dist/cjs/MultiRange.js +20 -14
  20. package/dist/cjs/{Pagination-91df3b77.js → Pagination-1b2320a7.js} +4 -3
  21. package/dist/cjs/RangeInput.js +25 -45
  22. package/dist/cjs/RangeSlider.js +31 -28
  23. package/dist/cjs/ReactiveBase.js +55 -34
  24. package/dist/cjs/ReactiveComponent.js +80 -36
  25. package/dist/cjs/ReactiveGoogleMap.js +320 -234
  26. package/dist/cjs/ReactiveList.js +149 -202
  27. package/dist/cjs/ResultCard.js +8 -6
  28. package/dist/cjs/ResultList.js +8 -6
  29. package/dist/cjs/SelectedFilters.js +25 -12
  30. package/dist/cjs/SingleDropdownList.js +69 -45
  31. package/dist/cjs/SingleList.js +44 -26
  32. package/dist/cjs/SingleRange.js +17 -11
  33. package/dist/cjs/StateProvider.js +11 -7
  34. package/dist/cjs/{Title-e9beb554.js → Title-39765ee6.js} +3 -11
  35. package/dist/cjs/ToggleButton.js +35 -16
  36. package/dist/cjs/{_rollupPluginBabelHelpers-280a574c.js → _rollupPluginBabelHelpers-4abdbfff.js} +11 -1
  37. package/dist/cjs/{index-e0583d76.js → index-2a8358cd.js} +77 -9
  38. package/dist/cjs/index.js +23 -19
  39. package/dist/cjs/initReactivesearch.js +80 -38
  40. package/dist/cjs/install.js +20 -18
  41. package/dist/cjs/ssr-c333c82c.js +39 -0
  42. package/dist/cjs/{utils-d1ea9f95.js → utils-23afb20b.js} +2 -2
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/{vueTypes-c21f265b.js → vueTypes-6de9d2a9.js} +9 -4
  45. package/dist/es/Button-799185e2.js +59 -0
  46. package/dist/es/{DownShift-d8f2500f.js → CancelSvg-4d9e0857.js} +56 -17
  47. package/dist/es/Card-04b3c33e.js +23 -0
  48. package/dist/es/{ComponentWrapper-d0b21b95.js → ComponentWrapper-459505fd.js} +40 -21
  49. package/dist/es/Container-4383c6f0.js +10 -0
  50. package/dist/es/DataSearch.js +339 -389
  51. package/dist/es/{DropDown-5dbd69c2.js → DropDown-168b60f6.js} +75 -95
  52. package/dist/es/DynamicRangeSlider.js +47 -24
  53. package/dist/es/Flex-aac91505.js +47 -0
  54. package/dist/es/FormControlList-fe389a2e.js +40 -0
  55. package/dist/es/Input-d8519224.js +71 -0
  56. package/dist/es/ListItem-bdb6d53d.js +39 -0
  57. package/dist/es/MultiDropdownList.js +69 -45
  58. package/dist/es/MultiList.js +36 -21
  59. package/dist/es/MultiRange.js +20 -14
  60. package/dist/es/{Pagination-800af44f.js → Pagination-b3e4054a.js} +4 -3
  61. package/dist/es/RangeInput.js +25 -45
  62. package/dist/es/RangeSlider.js +31 -28
  63. package/dist/es/ReactiveBase.js +55 -34
  64. package/dist/es/ReactiveComponent.js +80 -36
  65. package/dist/es/ReactiveGoogleMap.js +320 -234
  66. package/dist/es/ReactiveList.js +149 -202
  67. package/dist/es/ResultCard.js +8 -6
  68. package/dist/es/ResultList.js +8 -6
  69. package/dist/es/SelectedFilters.js +25 -12
  70. package/dist/es/SingleDropdownList.js +69 -45
  71. package/dist/es/SingleList.js +44 -26
  72. package/dist/es/SingleRange.js +17 -11
  73. package/dist/es/StateProvider.js +11 -7
  74. package/dist/es/Title-579f8d6c.js +10 -0
  75. package/dist/es/ToggleButton.js +35 -16
  76. package/dist/es/{_rollupPluginBabelHelpers-c9fbe19f.js → _rollupPluginBabelHelpers-ecf6c03c.js} +11 -1
  77. package/dist/es/{index-1fe91a0a.js → index-4755c9a0.js} +74 -10
  78. package/dist/es/index.js +23 -19
  79. package/dist/es/initReactivesearch.js +80 -38
  80. package/dist/es/install.js +20 -18
  81. package/dist/es/ssr-e3196de1.js +33 -0
  82. package/dist/es/{utils-ce3d86fd.js → utils-3a32e13f.js} +2 -2
  83. package/dist/es/version.js +1 -1
  84. package/dist/es/{vueTypes-98d938a9.js → vueTypes-9326e0be.js} +9 -4
  85. package/package.json +86 -78
  86. package/dist/cjs/Button-78d8bc26.js +0 -146
  87. package/dist/cjs/Card-b4af314f.js +0 -58
  88. package/dist/cjs/Flex-737c55be.js +0 -160
  89. package/dist/cjs/FormControlList-08dfb28e.js +0 -105
  90. package/dist/cjs/Input-643d02a7.js +0 -178
  91. package/dist/cjs/ListItem-0c58c5d2.js +0 -84
  92. package/dist/cjs/ssr-b7a729f9.js +0 -47
  93. package/dist/es/Button-6c71c66e.js +0 -137
  94. package/dist/es/Card-ecf70ba1.js +0 -51
  95. package/dist/es/Container-f5efec9e.js +0 -18
  96. package/dist/es/Flex-40a74d8a.js +0 -155
  97. package/dist/es/FormControlList-b96aebef.js +0 -98
  98. package/dist/es/Input-dfd9dd40.js +0 -170
  99. package/dist/es/ListItem-da73bc7d.js +0 -77
  100. package/dist/es/Title-22c2f3bf.js +0 -18
  101. package/dist/es/ssr-2f57791d.js +0 -41
@@ -1,23 +1,24 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
- import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-c9fbe19f.js';
2
+ import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-ecf6c03c.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { l as loadMoreContainer, B as Button } from './Button-6c71c66e.js';
9
- import { t as types } from './vueTypes-98d938a9.js';
8
+ import { l as loadMoreContainer, B as Button } from './Button-799185e2.js';
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, p as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-1fe91a0a.js';
13
- import { C as ComponentWrapper } from './ComponentWrapper-d0b21b95.js';
14
- import { T as Title } from './Title-22c2f3bf.js';
15
- import './Input-dfd9dd40.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-4755c9a0.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
14
+ import { T as Title } from './Title-579f8d6c.js';
15
+ import './CancelSvg-4d9e0857.js';
16
+ import './Input-d8519224.js';
16
17
  import 'compute-scroll-into-view';
17
- import './DownShift-d8f2500f.js';
18
- import { C as Container } from './Container-f5efec9e.js';
19
- import { g as getAggsQuery } from './utils-ce3d86fd.js';
20
- import { D as Dropdown } from './DropDown-5dbd69c2.js';
18
+ import { C as Container } from './Container-4383c6f0.js';
19
+ import '@appbaseio/reactivecore/lib/utils/suggestions';
20
+ import { g as getAggsQuery } from './utils-3a32e13f.js';
21
+ import { D as Dropdown } from './DropDown-168b60f6.js';
21
22
 
22
23
  var updateQuery = Actions.updateQuery,
23
24
  setQueryOptions = Actions.setQueryOptions,
@@ -74,12 +75,21 @@ var MultiDropdownList = {
74
75
  showMissing: VueTypes.bool.def(false),
75
76
  missingLabel: VueTypes.string.def('N/A'),
76
77
  showSearch: VueTypes.bool.def(false),
78
+ showClear: VueTypes.bool.def(false),
77
79
  showLoadMore: VueTypes.bool.def(false),
78
80
  loadMoreLabel: VueTypes.oneOfType([VueTypes.string, VueTypes.any]).def('Load More'),
79
- nestedField: types.string
81
+ nestedField: types.string,
82
+ index: VueTypes.string,
83
+ searchPlaceholder: VueTypes.string.def('Type here to search...')
80
84
  },
81
85
  created: function created() {
82
- // Set custom and default queries in store
86
+ if (!this.enableAppbase && this.$props.index) {
87
+ console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
88
+ }
89
+
90
+ var props = this.$props;
91
+ this.modifiedOptions = this.options && this.options[props.dataField] ? this.options[props.dataField].buckets : []; // Set custom and default queries in store
92
+
83
93
  updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
84
94
  updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
85
95
  },
@@ -117,33 +127,35 @@ var MultiDropdownList = {
117
127
  options: function options(newVal, oldVal) {
118
128
  var _this2 = this;
119
129
 
120
- checkPropChange(oldVal, newVal, function () {
121
- var _this2$$props = _this2.$props,
122
- showLoadMore = _this2$$props.showLoadMore,
123
- dataField = _this2$$props.dataField;
124
- var modifiedOptions = _this2.$data.modifiedOptions;
125
-
126
- if (showLoadMore) {
127
- // append options with showLoadMore
128
- var buckets = newVal[dataField].buckets;
129
- var nextOptions = [].concat(modifiedOptions, buckets.map(function (bucket) {
130
- return {
131
- key: bucket.key[dataField],
132
- doc_count: bucket.doc_count
130
+ if (newVal) {
131
+ checkPropChange(oldVal, newVal, function () {
132
+ var _this2$$props = _this2.$props,
133
+ showLoadMore = _this2$$props.showLoadMore,
134
+ dataField = _this2$$props.dataField;
135
+ var modifiedOptions = _this2.$data.modifiedOptions;
136
+
137
+ if (showLoadMore) {
138
+ // append options with showLoadMore
139
+ var buckets = newVal[dataField].buckets;
140
+ var nextOptions = [].concat(modifiedOptions, buckets.map(function (bucket) {
141
+ return {
142
+ key: bucket.key[dataField],
143
+ doc_count: bucket.doc_count
144
+ };
145
+ }));
146
+ var after = newVal[dataField].after_key; // detect the last bucket by checking if the next set of buckets were empty
147
+
148
+ var isLastBucket = !buckets.length;
149
+ _this2.after = {
150
+ after: after
133
151
  };
134
- }));
135
- var after = newVal[dataField].after_key; // detect the last bucket by checking if the next set of buckets were empty
136
-
137
- var isLastBucket = !buckets.length;
138
- _this2.after = {
139
- after: after
140
- };
141
- _this2.isLastBucket = isLastBucket;
142
- _this2.modifiedOptions = nextOptions;
143
- } else {
144
- _this2.modifiedOptions = newVal[_this2.$props.dataField] ? newVal[_this2.$props.dataField].buckets : [];
145
- }
146
- });
152
+ _this2.isLastBucket = isLastBucket;
153
+ _this2.modifiedOptions = nextOptions;
154
+ } else {
155
+ _this2.modifiedOptions = newVal[_this2.$props.dataField] ? newVal[_this2.$props.dataField].buckets : [];
156
+ }
157
+ });
158
+ }
147
159
  },
148
160
  size: function size() {
149
161
  this.updateQueryOptions(this.$props);
@@ -186,13 +198,22 @@ var MultiDropdownList = {
186
198
  var renderErrorCalc = this.$scopedSlots.renderError || renderError;
187
199
  var renderLabelCalc = this.$scopedSlots.renderLabel || renderLabel;
188
200
  var isLastBucket = this.$data.isLastBucket;
201
+ var renderNoResults = this.$scopedSlots.renderNoResults || this.$props.renderNoResults;
189
202
  var selectAll = [];
190
203
 
191
204
  if (renderErrorCalc && this.error) {
192
205
  return isFunction(renderErrorCalc) ? renderErrorCalc(this.error) : renderErrorCalc;
193
206
  }
194
207
 
195
- if (!this.hasCustomRenderer && this.$data.modifiedOptions.length === 0) {
208
+ if (!this.hasCustomRenderer && this.$data.modifiedOptions.length === 0 && !this.isLoading) {
209
+ if (renderNoResults && isFunction(renderNoResults)) {
210
+ return h("div", [renderNoResults()]);
211
+ }
212
+
213
+ if (renderNoResults && !isFunction(renderNoResults)) {
214
+ return renderNoResults;
215
+ }
216
+
196
217
  return null;
197
218
  }
198
219
 
@@ -212,7 +233,7 @@ var MultiDropdownList = {
212
233
  "items": [].concat(selectAll, this.$data.modifiedOptions.filter(function (item) {
213
234
  return String(item.key).trim().length;
214
235
  }).map(function (item) {
215
- return _extends(_extends({}, item), {}, {
236
+ return _extends({}, item, {
216
237
  key: String(item.key)
217
238
  });
218
239
  })),
@@ -228,6 +249,8 @@ var MultiDropdownList = {
228
249
  "renderItem": renderItemCalc,
229
250
  "renderNoResults": this.$scopedSlots.renderNoResults || this.$props.renderNoResults,
230
251
  "showSearch": this.$props.showSearch,
252
+ "showClear": this.$props.showClear,
253
+ "searchPlaceholder": this.$props.searchPlaceholder,
231
254
  "transformData": this.$props.transformData,
232
255
  "footer": showLoadMore && !isLastBucket && h("div", {
233
256
  "attrs": {
@@ -346,7 +369,7 @@ var MultiDropdownList = {
346
369
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
347
370
  }
348
371
 
349
- this.setQueryOptions(this.internalComponent, defaultQueryOptions);
372
+ this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
350
373
  this.updateQuery({
351
374
  componentId: this.internalComponent,
352
375
  query: query,
@@ -367,7 +390,7 @@ var MultiDropdownList = {
367
390
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
368
391
  }
369
392
 
370
- this.setQueryOptions(props.componentId, customQueryOptions);
393
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
371
394
  this.updateQuery({
372
395
  componentId: props.componentId,
373
396
  query: query,
@@ -402,7 +425,7 @@ var MultiDropdownList = {
402
425
  if (props.defaultQuery) {
403
426
  var value = Object.keys(this.$data.currentValue);
404
427
  var defaultQueryOptions = getOptionsFromQuery(props.defaultQuery(value, props));
405
- this.setQueryOptions(this.internalComponent, _extends(_extends({}, queryOptions), defaultQueryOptions));
428
+ this.setQueryOptions(this.internalComponent, _extends({}, queryOptions, defaultQueryOptions));
406
429
  } else {
407
430
  this.setQueryOptions(this.internalComponent, queryOptions);
408
431
  }
@@ -537,7 +560,8 @@ var mapStateToProps = function mapStateToProps(state, props) {
537
560
  selectedValue: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value || null,
538
561
  themePreset: state.config.themePreset,
539
562
  error: state.error[props.componentId],
540
- componentProps: state.props[props.componentId]
563
+ componentProps: state.props[props.componentId],
564
+ enableAppbase: state.config.enableAppbase
541
565
  };
542
566
  };
543
567
 
@@ -1,20 +1,21 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
- import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-c9fbe19f.js';
2
+ import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-ecf6c03c.js';
3
3
  import VueTypes from 'vue-types';
4
4
  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-98d938a9.js';
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, l as isEvent, p as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-1fe91a0a.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-d0b21b95.js';
13
- import { T as Title } from './Title-22c2f3bf.js';
14
- import { I as Input } from './Input-dfd9dd40.js';
15
- import { C as Container } from './Container-f5efec9e.js';
16
- import { U as UL, C as Checkbox } from './FormControlList-b96aebef.js';
17
- import { g as getAggsQuery } from './utils-ce3d86fd.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-4755c9a0.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
13
+ import { T as Title } from './Title-579f8d6c.js';
14
+ import { I as Input } from './Input-d8519224.js';
15
+ import { C as Container } from './Container-4383c6f0.js';
16
+ import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
17
+ import { U as UL, C as Checkbox } from './FormControlList-fe389a2e.js';
18
+ import { g as getAggsQuery } from './utils-3a32e13f.js';
18
19
 
19
20
  var updateQuery = Actions.updateQuery,
20
21
  setQueryOptions = Actions.setQueryOptions,
@@ -33,7 +34,7 @@ var MultiList = {
33
34
  queryFormat: VueTypes.oneOf(['and', 'or']).def('or'),
34
35
  showCheckbox: VueTypes.bool.def(true),
35
36
  beforeValueChange: types.func,
36
- className: types.string.def(''),
37
+ className: VueTypes.string.def(''),
37
38
  componentId: types.stringRequired,
38
39
  customQuery: types.func,
39
40
  dataField: types.stringRequired,
@@ -57,20 +58,27 @@ var MultiList = {
57
58
  URLParams: VueTypes.bool.def(false),
58
59
  showMissing: VueTypes.bool.def(false),
59
60
  missingLabel: VueTypes.string.def('N/A'),
60
- nestedField: types.string
61
+ nestedField: types.string,
62
+ index: VueTypes.string
61
63
  },
62
64
  data: function data() {
63
65
  var props = this.$props;
64
66
  this.__state = {
65
67
  currentValue: {},
66
- modifiedOptions: props.options && props.options[props.dataField] ? props.options[props.dataField].buckets : [],
68
+ modifiedOptions: [],
67
69
  searchTerm: ''
68
70
  };
69
71
  this.internalComponent = props.componentId + "__internal";
70
72
  return this.__state;
71
73
  },
72
74
  created: function created() {
73
- // Set custom and default queries in store
75
+ if (!this.enableAppbase && this.$props.index) {
76
+ console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
77
+ }
78
+
79
+ var props = this.$props;
80
+ this.modifiedOptions = this.options && this.options[props.dataField] ? this.options[props.dataField].buckets : []; // Set custom and default queries in store
81
+
74
82
  updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
75
83
  updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
76
84
  },
@@ -87,7 +95,9 @@ var MultiList = {
87
95
  },
88
96
  watch: {
89
97
  options: function options(newVal) {
90
- this.modifiedOptions = newVal[this.$props.dataField] ? newVal[this.$props.dataField].buckets : [];
98
+ if (newVal) {
99
+ this.modifiedOptions = newVal[this.$props.dataField] ? newVal[this.$props.dataField].buckets : [];
100
+ }
91
101
  },
92
102
  size: function size() {
93
103
  this.updateQueryHandlerOptions(this.$props);
@@ -154,8 +164,12 @@ var MultiList = {
154
164
  return isFunction(renderErrorCalc) ? renderErrorCalc(this.error) : renderErrorCalc;
155
165
  }
156
166
 
157
- if (!this.hasCustomRenderer && this.modifiedOptions.length === 0) {
158
- return null;
167
+ if (!this.hasCustomRenderer && this.modifiedOptions.length === 0 && !this.isLoading) {
168
+ if (this.renderNoResult) {
169
+ this.renderNoResult();
170
+ } else {
171
+ return null;
172
+ }
159
173
  }
160
174
 
161
175
  var itemsToRender = this.$data.modifiedOptions;
@@ -167,7 +181,7 @@ var MultiList = {
167
181
  var filteredItemsToRender = itemsToRender.filter(function (item) {
168
182
  if (String(item.key).length) {
169
183
  if (_this2.$props.showSearch && _this2.$data.searchTerm) {
170
- return String(item.key).toLowerCase().includes(_this2.$data.searchTerm.toLowerCase());
184
+ return replaceDiacritics(String(item.key)).toLowerCase().includes(replaceDiacritics(_this2.$data.searchTerm).toLowerCase());
171
185
  }
172
186
 
173
187
  return true;
@@ -335,7 +349,7 @@ var MultiList = {
335
349
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
336
350
  }
337
351
 
338
- this.setQueryOptions(this.internalComponent, defaultQueryOptions);
352
+ this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
339
353
  this.updateQuery({
340
354
  componentId: this.internalComponent,
341
355
  query: query,
@@ -356,7 +370,7 @@ var MultiList = {
356
370
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
357
371
  }
358
372
 
359
- this.setQueryOptions(props.componentId, customQueryOptions);
373
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
360
374
  this.updateQuery({
361
375
  componentId: props.componentId,
362
376
  query: query,
@@ -377,7 +391,7 @@ var MultiList = {
377
391
  if (props.defaultQuery) {
378
392
  var value = Object.keys(this.$data.currentValue);
379
393
  var defaultQueryOptions = getOptionsFromQuery(props.defaultQuery(value, props));
380
- this.setQueryOptions(this.internalComponent, _extends(_extends({}, queryOptions), defaultQueryOptions));
394
+ this.setQueryOptions(this.internalComponent, _extends({}, queryOptions, defaultQueryOptions));
381
395
  } else {
382
396
  this.setQueryOptions(this.internalComponent, queryOptions);
383
397
  }
@@ -558,7 +572,8 @@ var mapStateToProps = function mapStateToProps(state, props) {
558
572
  selectedValue: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value || null,
559
573
  themePreset: state.config.themePreset,
560
574
  error: state.error[props.componentId],
561
- componentProps: state.props[props.componentId]
575
+ componentProps: state.props[props.componentId],
576
+ enableAppbase: state.config.enableAppbase
562
577
  };
563
578
  };
564
579
 
@@ -1,18 +1,18 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
- import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-c9fbe19f.js';
2
+ import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-ecf6c03c.js';
3
3
  import VueTypes from 'vue-types';
4
4
  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-98d938a9.js';
8
+ import { t as types } from './vueTypes-9326e0be.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
- import { p as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-1fe91a0a.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-d0b21b95.js';
13
- import { T as Title } from './Title-22c2f3bf.js';
14
- import { C as Container } from './Container-f5efec9e.js';
15
- import { U as UL, C as Checkbox } from './FormControlList-b96aebef.js';
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
+ import { T as Title } from './Title-579f8d6c.js';
14
+ import { C as Container } from './Container-4383c6f0.js';
15
+ import { U as UL, C as Checkbox } from './FormControlList-fe389a2e.js';
16
16
 
17
17
  var updateQuery = Actions.updateQuery,
18
18
  setQueryOptions = Actions.setQueryOptions,
@@ -48,7 +48,8 @@ var MultiRange = {
48
48
  showCheckbox: VueTypes.bool.def(true),
49
49
  title: types.title,
50
50
  URLParams: VueTypes.bool.def(false),
51
- nestedField: types.string
51
+ nestedField: types.string,
52
+ index: VueTypes.string
52
53
  },
53
54
  methods: {
54
55
  handleClick: function handleClick(e) {
@@ -92,7 +93,7 @@ var MultiRange = {
92
93
  if (reset) {
93
94
  selectedValues = values;
94
95
  } else {
95
- selectedValues = _extends(_extends({}, selectedValues), values);
96
+ selectedValues = _extends({}, selectedValues, values);
96
97
  }
97
98
  } else if (selectedValues[item]) {
98
99
  currentValue = currentValue.filter(function (value) {
@@ -111,7 +112,7 @@ var MultiRange = {
111
112
  return item.indexOf(value.label) !== -1;
112
113
  });
113
114
  currentValue = [].concat(currentValue, currentItems);
114
- selectedValues = _extends(_extends({}, selectedValues), {}, (_extends2 = {}, _extends2[item] = true, _extends2));
115
+ selectedValues = _extends({}, selectedValues, (_extends2 = {}, _extends2[typeof item === 'object' ? item.label : item] = true, _extends2));
115
116
  }
116
117
 
117
118
  var performUpdate = function performUpdate() {
@@ -140,7 +141,7 @@ var MultiRange = {
140
141
  updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
141
142
  }
142
143
 
143
- this.setQueryOptions(props.componentId, customQueryOptions);
144
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
144
145
  this.updateQuery({
145
146
  componentId: props.componentId,
146
147
  query: query,
@@ -166,7 +167,7 @@ var MultiRange = {
166
167
  },
167
168
  selectedValue: function selectedValue(newVal) {
168
169
  if (!isEqual(this.$data.currentValue, newVal)) {
169
- this.selectItem(newVal);
170
+ this.selectItem(newVal, true, undefined, true);
170
171
  }
171
172
  },
172
173
  customQuery: function customQuery(newVal, oldVal) {
@@ -176,7 +177,11 @@ var MultiRange = {
176
177
  }
177
178
  },
178
179
  created: function created() {
179
- // Set custom query in store
180
+ if (!this.enableAppbase && this.$props.index) {
181
+ console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
182
+ } // Set custom query in store
183
+
184
+
180
185
  updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
181
186
  },
182
187
  beforeMount: function beforeMount() {
@@ -282,7 +287,8 @@ MultiRange.defaultQuery = function (values, props) {
282
287
  var mapStateToProps = function mapStateToProps(state, props) {
283
288
  return {
284
289
  selectedValue: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value || null,
285
- componentProps: state.props[props.componentId]
290
+ componentProps: state.props[props.componentId],
291
+ enableAppbase: state.config.enableAppbase
286
292
  };
287
293
  };
288
294
 
@@ -1,6 +1,7 @@
1
1
  import { helper } from '@appbaseio/reactivecore';
2
- import { p as pagination, B as Button } from './Button-6c71c66e.js';
3
- import { t as types } from './vueTypes-98d938a9.js';
2
+ import VueTypes from 'vue-types';
3
+ import { p as pagination, B as Button } from './Button-799185e2.js';
4
+ import { t as types } from './vueTypes-9326e0be.js';
4
5
 
5
6
  var getClassName = helper.getClassName,
6
7
  handleA11yAction = helper.handleA11yAction;
@@ -20,7 +21,7 @@ var Pagination = {
20
21
  pages: types.number,
21
22
  setPage: types.func,
22
23
  totalPages: types.number,
23
- showEndPage: types.bool,
24
+ showEndPage: VueTypes.bool,
24
25
  prevLabel: types.string,
25
26
  nextLabel: types.string
26
27
  },
@@ -1,55 +1,35 @@
1
1
  import { helper } from '@appbaseio/reactivecore';
2
- import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-c9fbe19f.js';
2
+ import { _ as _taggedTemplateLiteralLoose, 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 { css } from 'emotion';
6
6
  import styled from '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-98d938a9.js';
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-1fe91a0a.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-d0b21b95.js';
13
- import './Title-22c2f3bf.js';
14
- import { F as Flex } from './Flex-40a74d8a.js';
15
- import { I as Input } from './Input-dfd9dd40.js';
16
- import { C as Container } from './Container-f5efec9e.js';
11
+ import { c as connect } from './index-4755c9a0.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
13
+ import './Title-579f8d6c.js';
14
+ import { F as Flex } from './Flex-aac91505.js';
15
+ import { I as Input } from './Input-d8519224.js';
16
+ import { C as Container } from './Container-4383c6f0.js';
17
17
  import 'vue-no-ssr';
18
- import './ssr-2f57791d.js';
18
+ import './ssr-e3196de1.js';
19
19
  import { RangeConnected as RangeConnected$1 } from './RangeSlider.js';
20
20
 
21
- function _templateObject2() {
22
- var data = _taggedTemplateLiteralLoose(["\n\t", ";\n\tfont-size: 13px;\n\tmargin: 8px;\n"]);
23
-
24
- _templateObject2 = function _templateObject2() {
25
- return data;
26
- };
27
-
28
- return data;
29
- }
30
-
31
- function _templateObject() {
32
- var data = _taggedTemplateLiteralLoose(["\n\tcolor: ", ";\n"]);
33
-
34
- _templateObject = function _templateObject() {
35
- return data;
36
- };
37
-
38
- return data;
39
- }
21
+ var _templateObject, _templateObject2;
40
22
 
41
23
  var alert = function alert(_ref) {
42
24
  var theme = _ref.theme;
43
- return css(_templateObject(), theme.colors.alertColor);
25
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tcolor: ", ";\n"])), theme.colors.alertColor);
44
26
  };
45
27
 
46
- var Content = styled('div')(_templateObject2(), function (props) {
28
+ var Content = styled('div')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t", ";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])), function (props) {
47
29
  return props.alert && alert;
48
30
  });
49
31
 
50
- var checkValueChange = helper.checkValueChange,
51
- getClassName = helper.getClassName,
52
- getOptionsFromQuery = helper.getOptionsFromQuery,
32
+ var getClassName = helper.getClassName,
53
33
  isEqual = helper.isEqual;
54
34
  var RangeInput = {
55
35
  name: 'RangeInput',
@@ -95,7 +75,7 @@ var RangeInput = {
95
75
  stepValue: types.number,
96
76
  componentStyle: types.style,
97
77
  componentId: types.stringRequired,
98
- includeNullValues: types.bool,
78
+ includeNullValues: VueTypes.bool,
99
79
  beforeValueChange: types.func,
100
80
  customQuery: types.func,
101
81
  data: types.data,
@@ -130,17 +110,19 @@ var RangeInput = {
130
110
  return false;
131
111
  },
132
112
  handleChange: function handleChange(value, event) {
113
+ var currentValue = value;
114
+
133
115
  if (this.shouldUpdate(value) && !isEqual(value, this.currentValue)) {
134
116
  switch (event) {
135
117
  case 'change':
136
118
  if (!value) {
137
- value = {
119
+ currentValue = {
138
120
  start: this.$props.range ? this.$props.range.start : 0,
139
121
  end: this.$props.range ? this.$props.range.end : 10
140
122
  };
141
123
  }
142
124
 
143
- this.$data.currentValue = _extends({}, value);
125
+ this.$data.currentValue = _extends({}, currentValue);
144
126
  this.$emit('change', this.$data.currentValue);
145
127
  break;
146
128
 
@@ -150,13 +132,13 @@ var RangeInput = {
150
132
  break;
151
133
 
152
134
  default:
153
- this.$data.currentValue = _extends({}, value);
135
+ this.$data.currentValue = _extends({}, currentValue);
154
136
  break;
155
137
  }
156
138
  }
157
139
  },
158
140
  handleOnChange: function handleOnChange(value) {
159
- this.handleChange(value, 'change');
141
+ this.handleChange(value || this.$props.range, 'change');
160
142
  },
161
143
  handleValueChange: function handleValueChange(value) {
162
144
  this.handleChange(value, 'value-change');
@@ -172,12 +154,10 @@ var RangeInput = {
172
154
  } else {
173
155
  this.$data.isEndValid = false;
174
156
  }
175
- } else {
176
- if (name === 'start' && !this.$data.isStartValid) {
177
- this.$data.isStartValid = true;
178
- } else if (name === 'end' && !this.$data.isEndValid) {
179
- this.$data.isEndValid = true;
180
- }
157
+ } else if (name === 'start' && !this.$data.isStartValid) {
158
+ this.$data.isStartValid = true;
159
+ } else if (name === 'end' && !this.$data.isEndValid) {
160
+ this.$data.isEndValid = true;
181
161
  }
182
162
 
183
163
  if (this.$data.isStartValid && this.$data.isEndValid) {
@@ -334,7 +314,7 @@ var RangeInput = {
334
314
  }
335
315
  };
336
316
 
337
- var mapStateToProps = function mapStateToProps(state, props) {
317
+ var mapStateToProps = function mapStateToProps(state) {
338
318
  return {
339
319
  themePreset: state.config.themePreset
340
320
  };