@appbaseio/reactivesearch-vue 1.33.5 → 1.34.0-alpha.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.
Files changed (98) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +6840 -9315
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +7 -13
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/Button-626c5e8e.js +58 -0
  6. package/dist/cjs/{CancelSvg-220a7cc3.js → CancelSvg-062a42f0.js} +32 -40
  7. package/dist/cjs/Card-c381ded3.js +26 -0
  8. package/dist/cjs/{ComponentWrapper-b6d4660c.js → ComponentWrapper-db45cc6d.js} +5 -5
  9. package/dist/cjs/Container-29f049b2.js +12 -0
  10. package/dist/cjs/{DataSearch-1c5c2202.js → DataSearch-7c71ec9f.js} +712 -850
  11. package/dist/cjs/DataSearch.js +12 -11
  12. package/dist/cjs/{DropDown-8984b544.js → DropDown-3b899b20.js} +78 -79
  13. package/dist/cjs/DynamicRangeSlider.js +51 -37
  14. package/dist/cjs/Flex-d5675ea6.js +48 -0
  15. package/dist/cjs/FormControlList-cf1ff2ca.js +42 -0
  16. package/dist/cjs/Input-4d278ca0.js +74 -0
  17. package/dist/cjs/ListItem-c067bc07.js +41 -0
  18. package/dist/cjs/MultiDropdownList.js +71 -62
  19. package/dist/cjs/MultiList.js +85 -88
  20. package/dist/cjs/MultiRange.js +54 -41
  21. package/dist/cjs/{Pagination-07f4dbad.js → Pagination-a468f960.js} +56 -53
  22. package/dist/cjs/{PreferencesConsumer-5d67b486.js → PreferencesConsumer-034c55e3.js} +6 -5
  23. package/dist/cjs/RangeInput.js +115 -107
  24. package/dist/cjs/RangeSlider.js +50 -36
  25. package/dist/cjs/ReactiveBase.js +66 -48
  26. package/dist/cjs/{ReactiveComponent-4e75c939.js → ReactiveComponent-f0f486ca.js} +325 -311
  27. package/dist/cjs/ReactiveComponent.js +21 -20
  28. package/dist/cjs/ReactiveGoogleMap.js +283 -307
  29. package/dist/cjs/ReactiveList.js +99 -116
  30. package/dist/cjs/ResultCard.js +26 -19
  31. package/dist/cjs/ResultList.js +31 -27
  32. package/dist/cjs/SelectedFilters.js +49 -34
  33. package/dist/cjs/SingleDropdownList.js +70 -61
  34. package/dist/cjs/SingleList.js +86 -90
  35. package/dist/cjs/SingleRange.js +48 -39
  36. package/dist/cjs/StateProvider.js +2 -2
  37. package/dist/cjs/Title-8802a218.js +12 -0
  38. package/dist/cjs/ToggleButton.js +39 -32
  39. package/dist/cjs/{index-30126fd0.js → index-dc25b706.js} +6 -6
  40. package/dist/cjs/index.js +22 -21
  41. package/dist/cjs/install.js +21 -20
  42. package/dist/cjs/ssr-eb901d09.js +35 -0
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/{vueTypes-7cfc2f98.js → vueTypes-621a8143.js} +1 -1
  45. package/dist/es/Button-ebafa3d6.js +52 -0
  46. package/dist/es/{CancelSvg-e40552a5.js → CancelSvg-14ebc9a1.js} +30 -37
  47. package/dist/es/{Card-19ad6d90.js → Card-1951569e.js} +5 -6
  48. package/dist/es/{ComponentWrapper-8042aa35.js → ComponentWrapper-bf443c0b.js} +4 -4
  49. package/dist/es/Container-d00219f7.js +1 -1
  50. package/dist/es/{DataSearch-5bb904c5.js → DataSearch-4f9a4e46.js} +705 -842
  51. package/dist/es/DataSearch.js +10 -9
  52. package/dist/es/{DropDown-28ddce07.js → DropDown-35e232b7.js} +78 -78
  53. package/dist/es/DynamicRangeSlider.js +48 -34
  54. package/dist/es/Flex-a08e22d7.js +46 -0
  55. package/dist/es/FormControlList-fa5cf78b.js +38 -0
  56. package/dist/es/Input-3b8408a6.js +69 -0
  57. package/dist/es/{ListItem-07888a65.js → ListItem-47a6345a.js} +6 -7
  58. package/dist/es/MultiDropdownList.js +69 -60
  59. package/dist/es/MultiList.js +84 -87
  60. package/dist/es/MultiRange.js +52 -39
  61. package/dist/es/{Pagination-28e56c5c.js → Pagination-145b4ff2.js} +56 -53
  62. package/dist/es/{PreferencesConsumer-bc097ebb.js → PreferencesConsumer-7ea7313a.js} +5 -4
  63. package/dist/es/RangeInput.js +112 -103
  64. package/dist/es/RangeSlider.js +47 -33
  65. package/dist/es/ReactiveBase.js +65 -46
  66. package/dist/es/{ReactiveComponent-09c183c8.js → ReactiveComponent-e2fb9eb4.js} +321 -306
  67. package/dist/es/ReactiveComponent.js +18 -17
  68. package/dist/es/ReactiveGoogleMap.js +279 -302
  69. package/dist/es/ReactiveList.js +97 -113
  70. package/dist/es/ResultCard.js +25 -18
  71. package/dist/es/ResultList.js +30 -26
  72. package/dist/es/SelectedFilters.js +47 -32
  73. package/dist/es/SingleDropdownList.js +68 -59
  74. package/dist/es/SingleList.js +84 -88
  75. package/dist/es/SingleRange.js +46 -37
  76. package/dist/es/StateProvider.js +2 -2
  77. package/dist/es/Title-863dfa42.js +1 -1
  78. package/dist/es/ToggleButton.js +37 -30
  79. package/dist/es/{index-0444a498.js → index-285a43a6.js} +6 -6
  80. package/dist/es/index.js +19 -18
  81. package/dist/es/install.js +18 -17
  82. package/dist/es/ssr-03607d84.js +1 -1
  83. package/dist/es/version.js +1 -1
  84. package/dist/es/{vueTypes-8986b709.js → vueTypes-e4af6fe2.js} +1 -1
  85. package/package.json +8 -8
  86. package/dist/cjs/Button-841fd06d.js +0 -62
  87. package/dist/cjs/Card-240f283d.js +0 -30
  88. package/dist/cjs/Container-e699ea95.js +0 -15
  89. package/dist/cjs/Flex-ddd7cb6b.js +0 -50
  90. package/dist/cjs/FormControlList-bbb5cd24.js +0 -45
  91. package/dist/cjs/Input-ead4cd84.js +0 -77
  92. package/dist/cjs/ListItem-5088bd6a.js +0 -45
  93. package/dist/cjs/Title-16042ea0.js +0 -15
  94. package/dist/cjs/ssr-f2fc1bf6.js +0 -36
  95. package/dist/es/Button-153cd885.js +0 -53
  96. package/dist/es/Flex-7c177a10.js +0 -45
  97. package/dist/es/FormControlList-99797d0a.js +0 -38
  98. package/dist/es/Input-c09c0b56.js +0 -69
@@ -1,27 +1,30 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
3
3
  import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-ded08042.js';
4
+ import { createVNode, isVNode } from 'vue';
4
5
  import VueTypes from 'vue-types';
5
- import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
+ import 'emotion';
7
8
  import 'polished';
8
- import { l as loadMoreContainer, B as Button } from './Button-153cd885.js';
9
- import { t as types } from './vueTypes-8986b709.js';
9
+ import { l as loadMoreContainer, B as Button } from './Button-ebafa3d6.js';
10
+ import { t as types } from './vueTypes-e4af6fe2.js';
10
11
  import '@appbaseio/reactivecore/lib/utils/transform';
11
12
  import 'redux';
12
- import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, q as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-0444a498.js';
13
- import { C as ComponentWrapper } from './ComponentWrapper-8042aa35.js';
14
- import { P as PreferencesConsumer } from './PreferencesConsumer-bc097ebb.js';
15
- import '@vue/babel-helper-vue-jsx-merge-props';
13
+ import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, q as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-285a43a6.js';
14
+ import { C as ComponentWrapper } from './ComponentWrapper-bf443c0b.js';
15
+ import { P as PreferencesConsumer } from './PreferencesConsumer-7ea7313a.js';
16
16
  import { T as Title } from './Title-863dfa42.js';
17
- import './CancelSvg-e40552a5.js';
18
- import './Input-c09c0b56.js';
17
+ import './CancelSvg-14ebc9a1.js';
18
+ import './Input-3b8408a6.js';
19
19
  import 'compute-scroll-into-view';
20
20
  import { C as Container } from './Container-d00219f7.js';
21
21
  import '@appbaseio/reactivecore/lib/utils/suggestions';
22
22
  import { g as getAggsQuery } from './utils-9e5a16a1.js';
23
- import { D as Dropdown } from './DropDown-28ddce07.js';
23
+ import { D as Dropdown } from './DropDown-35e232b7.js';
24
24
 
25
+ function _isSlot(s) {
26
+ return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
27
+ }
25
28
  var updateQuery = Actions.updateQuery,
26
29
  setQueryOptions = Actions.setQueryOptions,
27
30
  setCustomQuery = Actions.setCustomQuery,
@@ -80,7 +83,7 @@ var MultiDropdownList = {
80
83
  showSearch: VueTypes.bool.def(false),
81
84
  showClear: VueTypes.bool.def(false),
82
85
  showLoadMore: VueTypes.bool.def(false),
83
- loadMoreLabel: VueTypes.oneOfType([VueTypes.string, VueTypes.any]).def('Load More'),
86
+ loadMoreLabel: VueTypes.oneOfType([VueTypes.string, VueTypes.nullable]).def('Load More'),
84
87
  nestedField: types.string,
85
88
  index: VueTypes.string,
86
89
  searchPlaceholder: VueTypes.string.def('Type here to search...'),
@@ -182,25 +185,25 @@ var MultiDropdownList = {
182
185
  }
183
186
  },
184
187
  render: function render() {
185
- var h = arguments[0];
188
+ var _this3 = this;
186
189
  var _this$$props = this.$props,
187
190
  showLoadMore = _this$$props.showLoadMore,
188
191
  loadMoreLabel = _this$$props.loadMoreLabel,
189
192
  renderItem = _this$$props.renderItem,
190
193
  renderError = _this$$props.renderError,
191
194
  renderLabel = _this$$props.renderLabel;
192
- var renderItemCalc = this.$scopedSlots.renderItem || renderItem;
193
- var renderErrorCalc = this.$scopedSlots.renderError || renderError;
194
- var renderLabelCalc = this.$scopedSlots.renderLabel || renderLabel;
195
+ var renderItemCalc = this.$slots.renderItem || renderItem;
196
+ var renderErrorCalc = this.$slots.renderError || renderError;
197
+ var renderLabelCalc = this.$slots.renderLabel || renderLabel;
195
198
  var isLastBucket = this.$data.isLastBucket;
196
- var renderNoResults = this.$scopedSlots.renderNoResults || this.$props.renderNoResults;
199
+ var renderNoResults = this.$slots.renderNoResults || this.$props.renderNoResults;
197
200
  var selectAll = [];
198
201
  if (renderErrorCalc && this.error) {
199
202
  return isFunction(renderErrorCalc) ? renderErrorCalc(this.error) : renderErrorCalc;
200
203
  }
201
204
  if (!this.hasCustomRenderer && this.$data.modifiedOptions.length === 0 && !this.isLoading) {
202
205
  if (renderNoResults && isFunction(renderNoResults)) {
203
- return h("div", [renderNoResults()]);
206
+ return createVNode("div", null, [renderNoResults()]);
204
207
  }
205
208
  if (renderNoResults && !isFunction(renderNoResults)) {
206
209
  return renderNoResults;
@@ -213,47 +216,53 @@ var MultiDropdownList = {
213
216
  doc_count: this.totalDocumentCount
214
217
  }];
215
218
  }
216
- return h(Container, {
219
+ return createVNode(Container, {
217
220
  "class": this.$props.className
218
- }, [this.$props.title && h(Title, {
219
- "class": getClassName(this.$props.innerClass, 'title') || ''
220
- }, [this.$props.title]), h(Dropdown, {
221
- "attrs": {
222
- "innerClass": this.$props.innerClass,
223
- "items": [].concat(selectAll, this.$data.modifiedOptions.filter(function (item) {
224
- return String(item.key).trim().length;
225
- }).map(function (item) {
226
- return _extends({}, item, {
227
- key: String(item.key)
228
- });
229
- })),
230
- "hasCustomRenderer": this.hasCustomRenderer,
231
- "customRenderer": this.getComponent,
232
- "handleChange": this.handleChange,
233
- "selectedItem": this.$data.currentValue,
234
- "placeholder": this.$props.placeholder,
235
- "labelField": "key",
236
- "multi": true,
237
- "showCount": this.$props.showCount,
238
- "themePreset": this.themePreset,
239
- "renderItem": renderItemCalc,
240
- "renderNoResults": this.$scopedSlots.renderNoResults || this.$props.renderNoResults,
241
- "showSearch": this.$props.showSearch,
242
- "showClear": this.$props.showClear,
243
- "searchPlaceholder": this.$props.searchPlaceholder,
244
- "transformData": this.$props.transformData,
245
- "footer": showLoadMore && !isLastBucket && h("div", {
246
- "attrs": {
247
- "css": loadMoreContainer
221
+ }, {
222
+ "default": function _default() {
223
+ return [_this3.$props.title && createVNode(Title, {
224
+ "class": getClassName(_this3.$props.innerClass, 'title') || ''
225
+ }, {
226
+ "default": function _default() {
227
+ return [_this3.$props.title];
248
228
  }
249
- }, [h(Button, {
250
- "on": {
251
- "click": this.handleLoadMore
252
- }
253
- }, [loadMoreLabel])]),
254
- "customLabelRenderer": renderLabelCalc
229
+ }), createVNode(Dropdown, {
230
+ "innerClass": _this3.$props.innerClass,
231
+ "items": [].concat(selectAll, _this3.$data.modifiedOptions.filter(function (item) {
232
+ return String(item.key).trim().length;
233
+ }).map(function (item) {
234
+ return _extends({}, item, {
235
+ key: String(item.key)
236
+ });
237
+ })),
238
+ "hasCustomRenderer": _this3.hasCustomRenderer,
239
+ "customRenderer": _this3.getComponent,
240
+ "handleChange": _this3.handleChange,
241
+ "selectedItem": _this3.$data.currentValue,
242
+ "placeholder": _this3.$props.placeholder,
243
+ "labelField": "key",
244
+ "multi": true,
245
+ "showCount": _this3.$props.showCount,
246
+ "themePreset": _this3.themePreset,
247
+ "renderItem": renderItemCalc,
248
+ "renderNoResults": _this3.$slots.renderNoResults || _this3.$props.renderNoResults,
249
+ "showSearch": _this3.$props.showSearch,
250
+ "showClear": _this3.$props.showClear,
251
+ "searchPlaceholder": _this3.$props.searchPlaceholder,
252
+ "transformData": _this3.$props.transformData,
253
+ "footer": showLoadMore && !isLastBucket && createVNode("div", {
254
+ "css": loadMoreContainer
255
+ }, [createVNode(Button, {
256
+ "onClick": _this3.handleLoadMore
257
+ }, _isSlot(loadMoreLabel) ? loadMoreLabel : {
258
+ "default": function _default() {
259
+ return [loadMoreLabel];
260
+ }
261
+ })]),
262
+ "customLabelRenderer": renderLabelCalc
263
+ }, null)];
255
264
  }
256
- })]);
265
+ });
257
266
  },
258
267
  methods: {
259
268
  handleChange: function handleChange(item) {
@@ -266,7 +275,7 @@ var MultiDropdownList = {
266
275
  }
267
276
  },
268
277
  setValue: function setValue(value, isDefaultValue, props) {
269
- var _this3 = this;
278
+ var _this4 = this;
270
279
  if (isDefaultValue === void 0) {
271
280
  isDefaultValue = false;
272
281
  }
@@ -319,10 +328,10 @@ var MultiDropdownList = {
319
328
  finalValues = Object.keys(currentValue);
320
329
  }
321
330
  var performUpdate = function performUpdate() {
322
- _this3.currentValue = _extends({}, currentValue);
323
- _this3.updateQueryHandler(finalValues, props);
324
- _this3.$emit('valueChange', finalValues);
325
- _this3.$emit('value-change', finalValues);
331
+ _this4.currentValue = _extends({}, currentValue);
332
+ _this4.updateQueryHandler(finalValues, props);
333
+ _this4.$emit('valueChange', finalValues);
334
+ _this4.$emit('value-change', finalValues);
326
335
  };
327
336
  checkValueChange(props.componentId, finalValues, props.beforeValueChange, performUpdate);
328
337
  },
@@ -1,21 +1,22 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
3
- import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-ded08042.js';
3
+ import { b as _objectWithoutPropertiesLoose, c as _toPropertyKey, a as _extends } from './_rollupPluginBabelHelpers-ded08042.js';
4
+ import { createVNode, mergeProps, createTextVNode } from 'vue';
4
5
  import VueTypes from 'vue-types';
5
- import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
+ import 'emotion';
7
8
  import 'polished';
8
- import { t as types } from './vueTypes-8986b709.js';
9
+ import { t as types } from './vueTypes-e4af6fe2.js';
9
10
  import '@appbaseio/reactivecore/lib/utils/transform';
10
11
  import 'redux';
11
- import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, o as isEvent, q as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-0444a498.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-8042aa35.js';
13
- import { P as PreferencesConsumer } from './PreferencesConsumer-bc097ebb.js';
12
+ import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, o as isEvent, q as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-285a43a6.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-bf443c0b.js';
14
+ import { P as PreferencesConsumer } from './PreferencesConsumer-7ea7313a.js';
14
15
  import { T as Title } from './Title-863dfa42.js';
15
- import { I as Input } from './Input-c09c0b56.js';
16
+ import { I as Input } from './Input-3b8408a6.js';
16
17
  import { C as Container } from './Container-d00219f7.js';
17
18
  import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
18
- import { U as UL, C as Checkbox } from './FormControlList-99797d0a.js';
19
+ import { U as UL, C as Checkbox } from './FormControlList-fa5cf78b.js';
19
20
  import { g as getAggsQuery } from './utils-9e5a16a1.js';
20
21
 
21
22
  var updateQuery = Actions.updateQuery,
@@ -153,13 +154,12 @@ var MultiList = {
153
154
  },
154
155
  render: function render() {
155
156
  var _this2 = this;
156
- var h = arguments[0];
157
157
  var _this$$props = this.$props,
158
158
  selectAllLabel = _this$$props.selectAllLabel,
159
159
  renderItem = _this$$props.renderItem,
160
160
  renderError = _this$$props.renderError;
161
- var renderItemCalc = this.$scopedSlots.renderItem || renderItem;
162
- var renderErrorCalc = this.$scopedSlots.renderError || renderError;
161
+ var renderItemCalc = this.$slots.renderItem || renderItem;
162
+ var renderErrorCalc = this.$slots.renderError || renderError;
163
163
  if (renderErrorCalc && this.error) {
164
164
  return isFunction(renderErrorCalc) ? renderErrorCalc(this.error) : renderErrorCalc;
165
165
  }
@@ -183,69 +183,72 @@ var MultiList = {
183
183
  }
184
184
  return false;
185
185
  });
186
- return h(Container, {
186
+ return createVNode(Container, {
187
187
  "class": this.$props.className
188
- }, [this.$props.title && h(Title, {
189
- "class": getClassName(this.$props.innerClass, 'title')
190
- }, [this.$props.title]), this.renderSearch(), this.hasCustomRenderer ? this.getComponent() : h(UL, {
191
- "class": getClassName(this.$props.innerClass, 'list')
192
- }, [selectAllLabel ? h("li", {
193
- "key": selectAllLabel,
194
- "class": "" + (this.currentValue[selectAllLabel] ? 'active' : '')
195
- }, [h(Checkbox, {
196
- "attrs": {
197
- "type": "checkbox",
198
- "id": this.$props.componentId + "-" + selectAllLabel,
199
- "name": selectAllLabel,
200
- "value": selectAllLabel,
201
- "show": this.$props.showCheckbox
202
- },
203
- "class": getClassName(this.$props.innerClass, 'checkbox'),
204
- "on": {
205
- "click": this.handleClick
206
- },
207
- "domProps": _extends({}, {
208
- checked: !!this.currentValue[selectAllLabel]
209
- })
210
- }), h("label", {
211
- "class": getClassName(this.$props.innerClass, 'label'),
212
- "attrs": {
213
- "for": this.$props.componentId + "-" + selectAllLabel
188
+ }, {
189
+ "default": function _default() {
190
+ return [_this2.$props.title && createVNode(Title, {
191
+ "class": getClassName(_this2.$props.innerClass, 'title')
192
+ }, {
193
+ "default": function _default() {
194
+ return [_this2.$props.title];
195
+ }
196
+ }), _this2.renderSearch(), _this2.hasCustomRenderer ? _this2.getComponent() : createVNode(UL, {
197
+ "class": getClassName(_this2.$props.innerClass, 'list')
198
+ }, {
199
+ "default": function _default() {
200
+ return [selectAllLabel ? createVNode("li", {
201
+ "key": selectAllLabel,
202
+ "class": "" + (_this2.currentValue[selectAllLabel] ? 'active' : '')
203
+ }, [createVNode(Checkbox, mergeProps({
204
+ "type": "checkbox",
205
+ "class": getClassName(_this2.$props.innerClass, 'checkbox'),
206
+ "id": _this2.$props.componentId + "-" + selectAllLabel,
207
+ "name": selectAllLabel,
208
+ "value": selectAllLabel,
209
+ "onClick": _this2.handleClick
210
+ }, {
211
+ domProps: {
212
+ checked: !!_this2.currentValue[selectAllLabel]
213
+ }
214
+ }, {
215
+ "show": _this2.$props.showCheckbox
216
+ }), null), createVNode("label", {
217
+ "class": getClassName(_this2.$props.innerClass, 'label'),
218
+ "for": _this2.$props.componentId + "-" + selectAllLabel
219
+ }, [createVNode("span", null, [selectAllLabel, _this2.$props.showCount && createVNode("span", {
220
+ "class": getClassName(_this2.$props.innerClass, 'count')
221
+ }, [createTextVNode("\xA0("), _this2.totalDocumentCount, createTextVNode(")")])])])]) : null, !_this2.hasCustomRenderer && filteredItemsToRender.length === 0 && !_this2.isLoading ? _this2.renderNoResult() : filteredItemsToRender.map(function (item) {
222
+ return createVNode("li", {
223
+ "key": item.key,
224
+ "class": "" + (_this2.$data.currentValue[item.key] ? 'active' : '')
225
+ }, [createVNode(Checkbox, mergeProps({
226
+ "type": "checkbox",
227
+ "class": getClassName(_this2.$props.innerClass, 'checkbox'),
228
+ "id": _this2.$props.componentId + "-" + item.key,
229
+ "name": _this2.$props.componentId,
230
+ "value": item.key,
231
+ "onClick": _this2.handleClick,
232
+ "show": _this2.$props.showCheckbox
233
+ }, {
234
+ domProps: {
235
+ checked: !!_this2.$data.currentValue[item.key]
236
+ }
237
+ }), null), createVNode("label", {
238
+ "class": getClassName(_this2.$props.innerClass, 'label'),
239
+ "for": _this2.$props.componentId + "-" + item.key
240
+ }, [renderItemCalc ? renderItemCalc({
241
+ label: item.key,
242
+ count: item.doc_count,
243
+ isChecked: !!_this2.$data.currentValue[item.key]
244
+ }) : createVNode("span", null, [item.key, _this2.$props.showCount && createVNode("span", {
245
+ "class": getClassName(_this2.$props.innerClass, 'count')
246
+ }, [createTextVNode("\xA0("), item.doc_count, createTextVNode(")")])])])]);
247
+ })];
248
+ }
249
+ })];
214
250
  }
215
- }, [h("span", [selectAllLabel, this.$props.showCount && h("span", {
216
- "class": getClassName(this.$props.innerClass, 'count')
217
- }, ["\xA0(", this.totalDocumentCount, ")"])])])]) : null, !this.hasCustomRenderer && filteredItemsToRender.length === 0 && !this.isLoading ? this.renderNoResult() : filteredItemsToRender.map(function (item) {
218
- return h("li", {
219
- "key": item.key,
220
- "class": "" + (_this2.$data.currentValue[item.key] ? 'active' : '')
221
- }, [h(Checkbox, {
222
- "attrs": {
223
- "type": "checkbox",
224
- "id": _this2.$props.componentId + "-" + item.key,
225
- "name": _this2.$props.componentId,
226
- "value": item.key,
227
- "show": _this2.$props.showCheckbox
228
- },
229
- "class": getClassName(_this2.$props.innerClass, 'checkbox'),
230
- "on": {
231
- "click": _this2.handleClick
232
- },
233
- "domProps": _extends({}, {
234
- checked: !!_this2.$data.currentValue[item.key]
235
- })
236
- }), h("label", {
237
- "class": getClassName(_this2.$props.innerClass, 'label'),
238
- "attrs": {
239
- "for": _this2.$props.componentId + "-" + item.key
240
- }
241
- }, [renderItemCalc ? renderItemCalc({
242
- label: item.key,
243
- count: item.doc_count,
244
- isChecked: !!_this2.$data.currentValue[item.key]
245
- }) : h("span", [item.key, _this2.$props.showCount && h("span", {
246
- "class": getClassName(_this2.$props.innerClass, 'count')
247
- }, ["\xA0(", item.doc_count, ")"])])])]);
248
- })])]);
251
+ });
249
252
  },
250
253
  methods: {
251
254
  setValue: function setValue(value, isDefaultValue, props) {
@@ -373,22 +376,17 @@ var MultiList = {
373
376
  this.searchTerm = value;
374
377
  },
375
378
  renderSearch: function renderSearch() {
376
- var h = this.$createElement;
377
379
  if (this.$props.showSearch) {
378
- return h(Input, {
380
+ return createVNode(Input, {
379
381
  "class": getClassName(this.$props.innerClass, 'input') || '',
380
- "on": {
381
- "input": this.handleInputChange
382
- },
383
- "attrs": {
384
- "value": this.$data.searchTerm,
385
- "placeholder": this.$props.placeholder,
386
- "themePreset": this.$props.themePreset
387
- },
382
+ "onInput": this.handleInputChange,
383
+ "value": this.$data.searchTerm,
384
+ "placeholder": this.$props.placeholder,
388
385
  "style": {
389
386
  margin: '0 0 8px'
390
- }
391
- });
387
+ },
388
+ "themePreset": this.$props.themePreset
389
+ }, null);
392
390
  }
393
391
  return null;
394
392
  },
@@ -425,9 +423,8 @@ var MultiList = {
425
423
  return getComponent(data, this);
426
424
  },
427
425
  renderNoResult: function renderNoResult() {
428
- var h = this.$createElement;
429
- var renderNoResults = this.$scopedSlots.renderNoResults || this.$props.renderNoResults;
430
- return h("p", {
426
+ var renderNoResults = this.$slots.renderNoResults || this.$props.renderNoResults;
427
+ return createVNode("p", {
431
428
  "class": getClassName(this.$props.innerClass, 'noResults') || null
432
429
  }, [isFunction(renderNoResults) ? renderNoResults() : renderNoResults]);
433
430
  }
@@ -1,20 +1,23 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
3
3
  import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey } from './_rollupPluginBabelHelpers-ded08042.js';
4
+ import { createVNode, mergeProps, isVNode } from 'vue';
4
5
  import VueTypes from 'vue-types';
5
- import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-8986b709.js';
8
+ import { t as types } from './vueTypes-e4af6fe2.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
- import { q as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-0444a498.js';
12
- import { C as ComponentWrapper } from './ComponentWrapper-8042aa35.js';
13
- import { P as PreferencesConsumer } from './PreferencesConsumer-bc097ebb.js';
11
+ import { q as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-285a43a6.js';
12
+ import { C as ComponentWrapper } from './ComponentWrapper-bf443c0b.js';
13
+ import { P as PreferencesConsumer } from './PreferencesConsumer-7ea7313a.js';
14
14
  import { T as Title } from './Title-863dfa42.js';
15
15
  import { C as Container } from './Container-d00219f7.js';
16
- import { U as UL, C as Checkbox } from './FormControlList-99797d0a.js';
16
+ import { U as UL, C as Checkbox } from './FormControlList-fa5cf78b.js';
17
17
 
18
+ function _isSlot(s) {
19
+ return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
20
+ }
18
21
  var updateQuery = Actions.updateQuery,
19
22
  setQueryOptions = Actions.setQueryOptions,
20
23
  setCustomQuery = Actions.setCustomQuery;
@@ -182,41 +185,51 @@ var MultiRange = {
182
185
  }
183
186
  },
184
187
  render: function render() {
188
+ var _slot;
185
189
  var _this2 = this;
186
- var h = arguments[0];
187
- return h(Container, {
190
+ return createVNode(Container, {
188
191
  "class": this.$props.className
189
- }, [this.$props.title && h(Title, {
190
- "class": getClassName(this.$props.innerClass, 'title')
191
- }, [this.$props.title]), h(UL, {
192
- "class": getClassName(this.$props.innerClass, 'list')
193
- }, [this.$props.data.map(function (item) {
194
- var selected = !!_this2.$data.currentValue && _this2.$data.currentValue.label === item.label;
195
- return h("li", {
196
- "key": item.label,
197
- "class": "" + (selected ? 'active' : '')
198
- }, [h(Checkbox, {
199
- "class": getClassName(_this2.$props.innerClass, 'checkbox'),
200
- "attrs": {
201
- "id": _this2.$props.componentId + "-" + item.label,
202
- "name": _this2.$props.componentId,
203
- "value": item.label,
204
- "type": "Checkbox",
205
- "show": _this2.$props.showCheckbox
206
- },
207
- "domProps": _extends({}, {
208
- checked: _this2.selectedValues[item.label]
209
- }),
210
- "on": _extends({}, {
211
- click: _this2.handleClick
212
- })
213
- }), h("label", {
214
- "class": getClassName(_this2.$props.innerClass, 'label'),
215
- "attrs": {
216
- "for": _this2.$props.componentId + "-" + item.label
217
- }
218
- }, [item.label])]);
219
- })])]);
192
+ }, {
193
+ "default": function _default() {
194
+ return [_this2.$props.title && createVNode(Title, {
195
+ "class": getClassName(_this2.$props.innerClass, 'title')
196
+ }, {
197
+ "default": function _default() {
198
+ return [_this2.$props.title];
199
+ }
200
+ }), createVNode(UL, {
201
+ "class": getClassName(_this2.$props.innerClass, 'list')
202
+ }, _isSlot(_slot = _this2.$props.data.map(function (item) {
203
+ var selected = !!_this2.$data.currentValue && _this2.$data.currentValue.label === item.label;
204
+ return createVNode("li", {
205
+ "key": item.label,
206
+ "class": "" + (selected ? 'active' : '')
207
+ }, [createVNode(Checkbox, mergeProps({
208
+ "class": getClassName(_this2.$props.innerClass, 'checkbox'),
209
+ "id": _this2.$props.componentId + "-" + item.label,
210
+ "name": _this2.$props.componentId,
211
+ "value": item.label,
212
+ "type": "Checkbox",
213
+ "show": _this2.$props.showCheckbox
214
+ }, {
215
+ domProps: {
216
+ checked: _this2.selectedValues[item.label]
217
+ }
218
+ }, {
219
+ on: {
220
+ click: _this2.handleClick
221
+ }
222
+ }), null), createVNode("label", {
223
+ "class": getClassName(_this2.$props.innerClass, 'label'),
224
+ "for": _this2.$props.componentId + "-" + item.label
225
+ }, [item.label])]);
226
+ })) ? _slot : {
227
+ "default": function _default() {
228
+ return [_slot];
229
+ }
230
+ })];
231
+ }
232
+ });
220
233
  }
221
234
  };
222
235
  MultiRange.parseValue = function (value, props) {