@appbaseio/reactivesearch-vue 1.34.0-alpha.1 → 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 +6957 -9320
  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-9318cece.js → ComponentWrapper-db45cc6d.js} +18 -9
  9. package/dist/cjs/Container-29f049b2.js +12 -0
  10. package/dist/cjs/{DataSearch-8ea2651a.js → DataSearch-7c71ec9f.js} +749 -881
  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 +67 -49
  26. package/dist/cjs/{ReactiveComponent-0a354ed7.js → ReactiveComponent-f0f486ca.js} +326 -315
  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-240450cc.js → ComponentWrapper-bf443c0b.js} +17 -8
  49. package/dist/es/Container-d00219f7.js +1 -1
  50. package/dist/es/{DataSearch-dcaa106b.js → DataSearch-4f9a4e46.js} +742 -873
  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 +66 -47
  66. package/dist/es/{ReactiveComponent-9352370c.js → ReactiveComponent-e2fb9eb4.js} +322 -310
  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 +87 -87
  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
@@ -6,22 +6,23 @@ var configureStore = require('@appbaseio/reactivecore');
6
6
  var configureStore__default = _interopDefault(configureStore);
7
7
  var constants = require('@appbaseio/reactivecore/lib/utils/constants');
8
8
  var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
9
+ var vue = require('vue');
9
10
  var VueTypes = _interopDefault(require('vue-types'));
10
11
  var helper = require('@appbaseio/reactivecore/lib/utils/helper');
11
- var styled = require('@appbaseio/vue-emotion');
12
- var styled__default = _interopDefault(styled);
13
- var Button = require('./Button-841fd06d.js');
14
- var vueTypes = require('./vueTypes-7cfc2f98.js');
12
+ var vueEmotion = require('@appbaseio/vue-emotion');
13
+ var Button = require('./Button-626c5e8e.js');
14
+ var vueTypes = require('./vueTypes-621a8143.js');
15
15
  var ReactiveList = require('./ReactiveList.js');
16
- var index = require('./index-30126fd0.js');
17
- var ComponentWrapper = require('./ComponentWrapper-9318cece.js');
18
- var PreferencesConsumer = require('./PreferencesConsumer-5d67b486.js');
19
- var Title = require('./Title-16042ea0.js');
16
+ var index = require('./index-dc25b706.js');
17
+ var ComponentWrapper = require('./ComponentWrapper-db45cc6d.js');
18
+ var PreferencesConsumer = require('./PreferencesConsumer-034c55e3.js');
19
+ var Title = require('./Title-8802a218.js');
20
20
  var hotkeys = _interopDefault(require('hotkeys-js'));
21
- var DataSearch = require('./DataSearch-8ea2651a.js');
22
- var CancelSvg = require('./CancelSvg-220a7cc3.js');
23
- var Input = require('./Input-ead4cd84.js');
24
- var Container = require('./Container-e699ea95.js');
21
+ var DataSearch = require('./DataSearch-7c71ec9f.js');
22
+ var CancelSvg = require('./CancelSvg-062a42f0.js');
23
+ var Input = require('./Input-4d278ca0.js');
24
+ var Container = require('./Container-29f049b2.js');
25
+ var _transformOn = _interopDefault(require('@vue/babel-helper-vue-transform-on'));
25
26
  var SingleList = require('./SingleList.js');
26
27
  var MultiList = require('./MultiList.js');
27
28
  var SingleDropdownList = require('./SingleDropdownList.js');
@@ -34,24 +35,21 @@ var RangeSlider = require('./RangeSlider.js');
34
35
  var RangeInput = require('./RangeInput.js');
35
36
 
36
37
  var _templateObject;
37
- var AutofillSvgIcon = styled__default('button')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"])));
38
+ var AutofillSvgIcon = vueEmotion.styled('button')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"])));
38
39
  var AutoFillSvg = {
39
40
  name: 'AutoFillSvg',
40
41
  render: function render() {
41
- var h = arguments[0];
42
- return h(AutofillSvgIcon, {
43
- "on": {
44
- "click": this.$listeners.click
42
+ return vue.createVNode(AutofillSvgIcon, {
43
+ "onClick": this.$attrs.click
44
+ }, {
45
+ "default": function _default() {
46
+ return [vue.createVNode("svg", {
47
+ "viewBox": "0 0 24 24"
48
+ }, [vue.createVNode("path", {
49
+ "d": "M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"
50
+ }, null)])];
45
51
  }
46
- }, [h("svg", {
47
- "attrs": {
48
- "viewBox": "0 0 24 24"
49
- }
50
- }, [h("path", {
51
- "attrs": {
52
- "d": "M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"
53
- }
54
- })])]);
52
+ });
55
53
  },
56
54
  methods: {
57
55
  clicked: function clicked(e) {
@@ -61,6 +59,9 @@ var AutoFillSvg = {
61
59
  }
62
60
  };
63
61
 
62
+ function _isSlot(s) {
63
+ return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
64
+ }
64
65
  var updateQuery = configureStore.Actions.updateQuery,
65
66
  setCustomQuery = configureStore.Actions.setCustomQuery,
66
67
  setDefaultQuery = configureStore.Actions.setDefaultQuery,
@@ -73,7 +74,7 @@ var _debounce = configureStore.helper.debounce,
73
74
  withClickIds = configureStore.helper.withClickIds,
74
75
  getResultStats = configureStore.helper.getResultStats,
75
76
  normalizeDataField = configureStore.helper.normalizeDataField;
76
- var SearchBox = {
77
+ var SearchBox = vue.defineComponent({
77
78
  name: 'SearchBox',
78
79
  isTagsMode: false,
79
80
  data: function data() {
@@ -273,7 +274,6 @@ var SearchBox = {
273
274
  // selected value is cleared, call onValueSelected
274
275
  this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
275
276
  }
276
- // if (this.$props.value === undefined) {
277
277
  if (this.$options.isTagsMode) {
278
278
  // handling reset of tags through SelectedFilters or URL
279
279
  this.selectedTags = [];
@@ -283,7 +283,6 @@ var SearchBox = {
283
283
  cause = configureStore.causes.SUGGESTION_SELECT;
284
284
  }
285
285
  this.setValue(newVal || '', true, this.$props, cause);
286
- // }
287
286
  }
288
287
  },
289
288
  focusShortcuts: function focusShortcuts() {
@@ -426,8 +425,7 @@ var SearchBox = {
426
425
  if (typeof value === 'string' && !!value) {
427
426
  _this.selectedTags.push(value);
428
427
  } else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
429
- var mergedArray = Array.from(new Set([].concat(_this.selectedTags, value)));
430
- _this.selectedTags = mergedArray;
428
+ _this.selectedTags = value;
431
429
  }
432
430
  } else if (value) {
433
431
  _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
@@ -667,31 +665,31 @@ var SearchBox = {
667
665
  return highlightedIndex === index ? '#eee' : '#fff';
668
666
  },
669
667
  renderIcon: function renderIcon() {
670
- var h = this.$createElement;
671
668
  if (this.$props.showIcon) {
672
- return this.$props.icon || h(DataSearch.SearchSvg);
669
+ return this.$props.icon || vue.createVNode(DataSearch.SearchSvg, null, null);
673
670
  }
674
671
  return null;
675
672
  },
676
673
  renderErrorComponent: function renderErrorComponent() {
677
- var h = this.$createElement;
678
- var renderError = this.$scopedSlots.renderError || this.$props.renderError;
674
+ var _this4 = this;
675
+ var renderError = this.$slots.renderError || this.$props.renderError;
679
676
  if (this.error && renderError && this.$data.currentValue && !this.isLoading) {
680
- return h(DataSearch.SuggestionWrapper, {
681
- "attrs": {
682
- "innerClass": this.$props.innerClass,
683
- "innerClassName": "error",
684
- "theme": this.theme,
685
- "themePreset": this.themePreset
677
+ return vue.createVNode(DataSearch.SuggestionWrapper, {
678
+ "innerClass": this.$props.innerClass,
679
+ "innerClassName": "error",
680
+ "theme": this.theme,
681
+ "themePreset": this.themePreset
682
+ }, {
683
+ "default": function _default() {
684
+ return [index.isFunction(renderError) ? renderError(_this4.error) : renderError];
686
685
  }
687
- }, [index.isFunction(renderError) ? renderError(this.error) : renderError]);
686
+ });
688
687
  }
689
688
  return null;
690
689
  },
691
690
  renderCancelIcon: function renderCancelIcon() {
692
- var h = this.$createElement;
693
691
  if (this.$props.showClear) {
694
- return this.$props.clearIcon || h(CancelSvg.CancelSvg);
692
+ return this.$props.clearIcon || vue.createVNode(CancelSvg.CancelSvg, null, null);
695
693
  }
696
694
  return null;
697
695
  },
@@ -699,49 +697,54 @@ var SearchBox = {
699
697
  if (finalSuggestionsList === void 0) {
700
698
  finalSuggestionsList = [];
701
699
  }
702
- var h = this.$createElement;
703
700
  var _this$$props3 = this.$props,
704
701
  theme = _this$$props3.theme,
705
702
  innerClass = _this$$props3.innerClass;
706
- var renderNoSuggestion = this.$scopedSlots.renderNoSuggestion || this.$props.renderNoSuggestion;
707
- var renderError = this.$scopedSlots.renderError || this.$props.renderError;
703
+ var renderNoSuggestion = this.$slots.renderNoSuggestion || this.$props.renderNoSuggestion;
704
+ var renderError = this.$slots.renderError || this.$props.renderError;
708
705
  var _this$$data = this.$data,
709
706
  isOpen = _this$$data.isOpen,
710
707
  currentValue = _this$$data.currentValue;
711
708
  if (renderNoSuggestion && isOpen && !finalSuggestionsList.length && !this.isLoading && currentValue && !(renderError && this.error)) {
712
- return h(DataSearch.SuggestionWrapper, {
713
- "attrs": {
714
- "innerClass": innerClass,
715
- "themePreset": this.themePreset,
716
- "theme": theme,
717
- "innerClassName": "noSuggestion"
718
- },
709
+ return vue.createVNode(DataSearch.SuggestionWrapper, {
710
+ "innerClass": innerClass,
711
+ "themePreset": this.themePreset,
712
+ "theme": theme,
713
+ "innerClassName": "noSuggestion",
719
714
  "scopedSlots": {
720
715
  "default": function _default() {
721
716
  return typeof renderNoSuggestion === 'function' ? renderNoSuggestion(currentValue) : renderNoSuggestion;
722
717
  }
723
718
  }
724
- });
719
+ }, null);
725
720
  }
726
721
  return null;
727
722
  },
728
723
  renderInputAddonBefore: function renderInputAddonBefore() {
729
- var h = this.$createElement;
730
- var addonBefore = this.$scopedSlots.addonBefore;
724
+ var addonBefore = this.$slots.addonBefore;
731
725
  if (addonBefore) {
732
- return h(DataSearch.InputAddon, {
726
+ var _slot;
727
+ return vue.createVNode(DataSearch.InputAddon, {
733
728
  "class": "addon-before"
734
- }, [addonBefore()]);
729
+ }, _isSlot(_slot = addonBefore()) ? _slot : {
730
+ "default": function _default() {
731
+ return [_slot];
732
+ }
733
+ });
735
734
  }
736
735
  return null;
737
736
  },
738
737
  renderInputAddonAfter: function renderInputAddonAfter() {
739
- var h = this.$createElement;
740
- var addonAfter = this.$scopedSlots.addonAfter;
738
+ var addonAfter = this.$slots.addonAfter;
741
739
  if (addonAfter) {
742
- return h(DataSearch.InputAddon, {
740
+ var _slot2;
741
+ return vue.createVNode(DataSearch.InputAddon, {
743
742
  "class": "addon-after"
744
- }, [addonAfter()]);
743
+ }, _isSlot(_slot2 = addonAfter()) ? _slot2 : {
744
+ "default": function _default() {
745
+ return [_slot2];
746
+ }
747
+ });
745
748
  }
746
749
  return null;
747
750
  },
@@ -753,35 +756,35 @@ var SearchBox = {
753
756
  });
754
757
  },
755
758
  renderEnterButtonElement: function renderEnterButtonElement() {
756
- var _this4 = this;
757
- var h = this.$createElement;
759
+ var _this5 = this;
758
760
  var _this$$props4 = this.$props,
759
761
  enterButton = _this$$props4.enterButton,
760
762
  innerClass = _this$$props4.innerClass;
761
- var renderEnterButton = this.$scopedSlots.renderEnterButton;
763
+ var renderEnterButton = this.$slots.renderEnterButton;
762
764
  if (enterButton) {
763
765
  var getEnterButtonMarkup = function getEnterButtonMarkup() {
764
766
  if (renderEnterButton) {
765
- return renderEnterButton(_this4.enterButtonOnClick);
767
+ return renderEnterButton(_this5.enterButtonOnClick);
766
768
  }
767
- return h(Button.Button, {
769
+ return vue.createVNode(Button.Button, {
768
770
  "class": "enter-btn " + getClassName(innerClass, 'enter-button'),
769
- "attrs": {
770
- "primary": true
771
- },
772
- "on": {
773
- "click": _this4.enterButtonOnClick
771
+ "primary": true,
772
+ "onClick": _this5.enterButtonOnClick
773
+ }, {
774
+ "default": function _default() {
775
+ return [vue.createTextVNode("Search")];
774
776
  }
775
- }, ["Search"]);
777
+ });
776
778
  };
777
- return h("div", {
779
+ return vue.createVNode("div", {
778
780
  "class": "enter-button-wrapper"
779
781
  }, [getEnterButtonMarkup()]);
780
782
  }
781
783
  return null;
782
784
  },
783
785
  renderIcons: function renderIcons() {
784
- var h = this.$createElement;
786
+ var _this6 = this;
787
+ var _slot3, _slot4, _slot5;
785
788
  var _this$$props5 = this.$props,
786
789
  iconPosition = _this$$props5.iconPosition,
787
790
  showClear = _this$$props5.showClear,
@@ -789,42 +792,48 @@ var SearchBox = {
789
792
  getMicInstance = _this$$props5.getMicInstance,
790
793
  showVoiceSearch = _this$$props5.showVoiceSearch,
791
794
  showIcon = _this$$props5.showIcon;
792
- var renderMic = this.$scopedSlots.renderMic || this.$props.renderMic;
795
+ var renderMic = this.$slots.renderMic || this.$props.renderMic;
793
796
  var currentValue = this.$data.currentValue;
794
- return h("div", [h(CancelSvg.IconGroup, {
795
- "attrs": {
796
- "groupPosition": "right",
797
- "positionType": "absolute"
798
- }
799
- }, [currentValue && showClear && h(CancelSvg.IconWrapper, {
800
- "on": {
801
- "click": this.clearValue
802
- },
803
- "attrs": {
804
- "showIcon": showIcon,
805
- "isClearIcon": true
806
- }
807
- }, [this.renderCancelIcon()]), showVoiceSearch && h(DataSearch.Mic, {
808
- "attrs": {
809
- "getInstance": getMicInstance,
810
- "render": renderMic,
811
- "handleResult": this.handleVoiceResults,
812
- "className": getClassName(innerClass, 'mic') || null
813
- }
814
- }), iconPosition === 'right' && showIcon && h(CancelSvg.IconWrapper, {
815
- "on": {
816
- "click": this.handleSearchIconClick
817
- }
818
- }, [this.renderIcon()])]), h(CancelSvg.IconGroup, {
819
- "attrs": {
820
- "groupPosition": "left",
821
- "positionType": "absolute"
797
+ return vue.createVNode("div", null, [vue.createVNode(CancelSvg.IconGroup, {
798
+ "groupPosition": "right",
799
+ "positionType": "absolute"
800
+ }, {
801
+ "default": function _default() {
802
+ return [currentValue && showClear && vue.createVNode(CancelSvg.IconWrapper, {
803
+ "onClick": _this6.clearValue,
804
+ "showIcon": showIcon,
805
+ "isClearIcon": true
806
+ }, _isSlot(_slot3 = _this6.renderCancelIcon()) ? _slot3 : {
807
+ "default": function _default() {
808
+ return [_slot3];
809
+ }
810
+ }), showVoiceSearch && vue.createVNode(DataSearch.Mic, {
811
+ "getInstance": getMicInstance,
812
+ "render": renderMic,
813
+ "handleResult": _this6.handleVoiceResults,
814
+ "className": getClassName(innerClass, 'mic') || null
815
+ }, null), iconPosition === 'right' && showIcon && vue.createVNode(CancelSvg.IconWrapper, {
816
+ "onClick": _this6.handleSearchIconClick
817
+ }, _isSlot(_slot4 = _this6.renderIcon()) ? _slot4 : {
818
+ "default": function _default() {
819
+ return [_slot4];
820
+ }
821
+ })];
822
822
  }
823
- }, [iconPosition === 'left' && showIcon && h(CancelSvg.IconWrapper, {
824
- "on": {
825
- "click": this.handleSearchIconClick
823
+ }), vue.createVNode(CancelSvg.IconGroup, {
824
+ "groupPosition": "left",
825
+ "positionType": "absolute"
826
+ }, {
827
+ "default": function _default() {
828
+ return [iconPosition === 'left' && showIcon && vue.createVNode(CancelSvg.IconWrapper, {
829
+ "onClick": _this6.handleSearchIconClick
830
+ }, _isSlot(_slot5 = _this6.renderIcon()) ? _slot5 : {
831
+ "default": function _default() {
832
+ return [_slot5];
833
+ }
834
+ })];
826
835
  }
827
- }, [this.renderIcon()])])]);
836
+ })]);
828
837
  },
829
838
  focusSearchBox: function focusSearchBox(event) {
830
839
  var _this$$refs, _this$$refs$this$$pro;
@@ -837,7 +846,7 @@ var SearchBox = {
837
846
  (_this$$refs = this.$refs) == null ? void 0 : (_this$$refs$this$$pro = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs$this$$pro.focus(); // eslint-disable-line
838
847
  },
839
848
  listenForFocusShortcuts: function listenForFocusShortcuts() {
840
- var _this5 = this;
849
+ var _this7 = this;
841
850
  var _this$$props$focusSho = this.$props.focusShortcuts,
842
851
  focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
843
852
  if (index.isEmpty(focusShortcuts)) {
@@ -852,7 +861,7 @@ var SearchBox = {
852
861
  function (event, handler) {
853
862
  // Prevent the default refresh event under WINDOWS system
854
863
  event.preventDefault();
855
- _this5.focusSearchBox(event);
864
+ _this7.focusSearchBox(event);
856
865
  });
857
866
 
858
867
  // if one of modifier keys are used, they are handled below
@@ -862,7 +871,7 @@ var SearchBox = {
862
871
  for (var index$1 = 0; index$1 < modifierKeys.length; index$1 += 1) {
863
872
  var element = modifierKeys[index$1];
864
873
  if (hotkeys[element]) {
865
- _this5.focusSearchBox(event);
874
+ _this7.focusSearchBox(event);
866
875
  break;
867
876
  }
868
877
  }
@@ -875,37 +884,33 @@ var SearchBox = {
875
884
  this.triggerDefaultQuery(value);
876
885
  },
877
886
  renderAutoFill: function renderAutoFill(suggestion) {
878
- var _this6 = this;
879
- var h = this.$createElement;
887
+ var _this8 = this;
880
888
  var handleAutoFillClick = function handleAutoFillClick(e) {
881
889
  e.stopPropagation();
882
- _this6.onAutofillClick(suggestion);
890
+ _this8.onAutofillClick(suggestion);
883
891
  };
884
892
  /* 👇 avoid showing autofill for category suggestions👇 */
885
- return suggestion._category ? null : h(AutoFillSvg, {
886
- "on": {
887
- "click": handleAutoFillClick
888
- }
889
- });
893
+ return suggestion._category ? null : vue.createVNode(AutoFillSvg, {
894
+ "onClick": handleAutoFillClick
895
+ }, null);
890
896
  },
891
897
  renderTag: function renderTag(item) {
892
- var _this7 = this;
893
- var h = this.$createElement;
898
+ var _this9 = this;
894
899
  var innerClass = this.$props.innerClass;
895
- return h(DataSearch.TagItem, {
900
+ return vue.createVNode(DataSearch.TagItem, {
896
901
  "class": getClassName(innerClass, 'selected-tag') || ''
897
- }, [h("span", [item]), h("span", {
898
- "attrs": {
899
- "role": "img",
900
- "aria-label": "delete-tag"
901
- },
902
- "class": "close-icon",
903
- "on": {
904
- "click": function click() {
905
- return _this7.clearTag(item);
906
- }
902
+ }, {
903
+ "default": function _default() {
904
+ return [vue.createVNode("span", null, [item]), vue.createVNode("span", {
905
+ "role": "img",
906
+ "aria-label": "delete-tag",
907
+ "class": "close-icon",
908
+ "onClick": function onClick() {
909
+ return _this9.clearTag(item);
910
+ }
911
+ }, [vue.createVNode(CancelSvg.CancelSvg, null, null)])];
907
912
  }
908
- }, [h(CancelSvg.CancelSvg)])]);
913
+ });
909
914
  },
910
915
  clearAllTags: function clearAllTags() {
911
916
  this.selectedTags = [];
@@ -924,211 +929,218 @@ var SearchBox = {
924
929
  }
925
930
  },
926
931
  renderTags: function renderTags() {
927
- var _this8 = this;
928
- var h = this.$createElement;
932
+ var _this10 = this;
929
933
  if (!Array.isArray(this.selectedTags)) {
930
934
  return null;
931
935
  }
932
936
  var tagsList = [].concat(this.selectedTags);
933
937
  var shouldRenderClearAllTag = tagsList.length > 1;
934
- var renderSelectedTags = this.$scopedSlots.renderSelectedTags || this.$props.renderSelectedTags;
938
+ var renderSelectedTags = this.$slots.renderSelectedTags || this.$props.renderSelectedTags;
935
939
  return renderSelectedTags ? renderSelectedTags({
936
940
  values: this.selectedTags,
937
941
  handleClear: this.clearTag,
938
942
  handleClearAll: this.clearAllTags
939
- }) : h(DataSearch.TagsContainer, [tagsList.map(function (item) {
940
- return _this8.renderTag(item);
941
- }), shouldRenderClearAllTag && h(DataSearch.TagItem, {
942
- "class": getClassName(this.$props.innerClass, 'selected-tag') || ''
943
- }, [h("span", ["Clear All"]), h("span", {
944
- "attrs": {
945
- "role": "img",
946
- "aria-label": "delete-tag"
947
- },
948
- "class": "close-icon",
949
- "on": {
950
- "click": this.clearAllTags
943
+ }) : vue.createVNode(DataSearch.TagsContainer, null, {
944
+ "default": function _default() {
945
+ return [tagsList.map(function (item) {
946
+ return _this10.renderTag(item);
947
+ }), shouldRenderClearAllTag && vue.createVNode(DataSearch.TagItem, {
948
+ "class": getClassName(_this10.$props.innerClass, 'selected-tag') || ''
949
+ }, {
950
+ "default": function _default() {
951
+ return [vue.createVNode("span", null, [vue.createTextVNode("Clear All")]), vue.createVNode("span", {
952
+ "role": "img",
953
+ "aria-label": "delete-tag",
954
+ "class": "close-icon",
955
+ "onClick": _this10.clearAllTags
956
+ }, [vue.createVNode(CancelSvg.CancelSvg, null, null)])];
957
+ }
958
+ })];
951
959
  }
952
- }, [h(CancelSvg.CancelSvg)])])]);
960
+ });
953
961
  }
954
962
  },
955
963
  render: function render() {
956
- var _this9 = this;
957
- var h = arguments[0];
964
+ var _this11 = this;
958
965
  var _this$$props6 = this.$props,
959
966
  theme = _this$$props6.theme,
960
967
  expandSuggestionsContainer = _this$$props6.expandSuggestionsContainer;
961
- var _this$$scopedSlots = this.$scopedSlots,
962
- recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
963
- popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
968
+ var _this$$slots = this.$slots,
969
+ recentSearchesIcon = _this$$slots.recentSearchesIcon,
970
+ popularSearchesIcon = _this$$slots.popularSearchesIcon;
964
971
  var hasSuggestions = Array.isArray(this.normalizedSuggestions) && this.normalizedSuggestions.length;
965
- var renderItem = this.$scopedSlots.renderItem || this.$props.renderItem;
966
- return h(Container.Container, {
972
+ var renderItem = this.$slots.renderItem || this.$props.renderItem;
973
+ return vue.createVNode(Container.Container, {
967
974
  "class": this.$props.className
968
- }, [this.$props.title && h(Title.Title, {
969
- "class": getClassName(this.$props.innerClass, 'title') || ''
970
- }, [this.$props.title]), this.$props.autosuggest ? h(CancelSvg.Downshift, {
971
- "attrs": {
972
- "id": this.$props.componentId + "-downshift",
973
- "handleChange": this.onSuggestionSelected,
974
- "handleMouseup": this.handleStateChange,
975
- "isOpen": this.$data.isOpen
976
- },
977
- "scopedSlots": {
978
- "default": function _default(_ref5) {
979
- var getInputEvents = _ref5.getInputEvents,
980
- getInputProps = _ref5.getInputProps,
981
- getItemProps = _ref5.getItemProps,
982
- getItemEvents = _ref5.getItemEvents,
983
- isOpen = _ref5.isOpen,
984
- highlightedIndex = _ref5.highlightedIndex,
985
- setHighlightedIndex = _ref5.setHighlightedIndex;
986
- var renderSuggestionsDropdown = function renderSuggestionsDropdown() {
987
- var getIcon = function getIcon(iconType) {
988
- switch (iconType) {
989
- case helper.suggestionTypes.Recent:
990
- return recentSearchesIcon;
991
- case helper.suggestionTypes.Popular:
992
- return popularSearchesIcon;
993
- default:
994
- return null;
995
- }
996
- };
997
- return h("div", [_this9.hasCustomRenderer && _this9.getComponent({
998
- isOpen: isOpen,
999
- getItemProps: getItemProps,
1000
- getItemEvents: getItemEvents,
1001
- highlightedIndex: highlightedIndex
1002
- }), _this9.renderErrorComponent(), !_this9.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1003
- "class": Input.suggestions(_this9.themePreset, theme) + " " + getClassName(_this9.$props.innerClass, 'list')
1004
- }, [_this9.normalizedSuggestions.map(function (item, index) {
1005
- return renderItem ? h("li", {
1006
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
975
+ }, {
976
+ "default": function _default() {
977
+ return [_this11.$props.title && vue.createVNode(Title.Title, {
978
+ "class": getClassName(_this11.$props.innerClass, 'title') || ''
979
+ }, {
980
+ "default": function _default() {
981
+ return [_this11.$props.title];
982
+ }
983
+ }), _this11.$props.autosuggest ? vue.createVNode(CancelSvg.Downshift, {
984
+ "id": _this11.$props.componentId + "-downshift",
985
+ "handleChange": _this11.onSuggestionSelected,
986
+ "handleMouseup": _this11.handleStateChange,
987
+ "isOpen": _this11.$data.isOpen
988
+ }, {
989
+ "default": function _default(_ref5) {
990
+ var getInputEvents = _ref5.getInputEvents,
991
+ getInputProps = _ref5.getInputProps,
992
+ getItemProps = _ref5.getItemProps,
993
+ getItemEvents = _ref5.getItemEvents,
994
+ isOpen = _ref5.isOpen,
995
+ highlightedIndex = _ref5.highlightedIndex,
996
+ setHighlightedIndex = _ref5.setHighlightedIndex;
997
+ var renderSuggestionsDropdown = function renderSuggestionsDropdown() {
998
+ var getIcon = function getIcon(iconType) {
999
+ switch (iconType) {
1000
+ case helper.suggestionTypes.Recent:
1001
+ return recentSearchesIcon;
1002
+ case helper.suggestionTypes.Popular:
1003
+ return popularSearchesIcon;
1004
+ default:
1005
+ return null;
1006
+ }
1007
+ };
1008
+ return vue.createVNode("div", null, [_this11.hasCustomRenderer && _this11.getComponent({
1009
+ isOpen: isOpen,
1010
+ getItemProps: getItemProps,
1011
+ getItemEvents: getItemEvents,
1012
+ highlightedIndex: highlightedIndex
1013
+ }), _this11.renderErrorComponent(), !_this11.hasCustomRenderer && isOpen && hasSuggestions ? vue.createVNode("ul", {
1014
+ "class": Input.suggestions(_this11.themePreset, theme) + " " + getClassName(_this11.$props.innerClass, 'list')
1015
+ }, [_this11.normalizedSuggestions.map(function (item, index) {
1016
+ return renderItem ? vue.createVNode("li", vue.mergeProps(getItemProps({
1007
1017
  item: item
1008
- })),
1009
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1018
+ }), getItemEvents({
1010
1019
  item: item
1011
- })),
1012
- "key": index + 1 + "-" + item.value,
1013
- "style": {
1014
- backgroundColor: _this9.getBackgroundColor(highlightedIndex, index),
1015
- justifyContent: 'flex-start',
1016
- alignItems: 'center'
1017
- }
1018
- }, [renderItem(item)]) : h("li", {
1019
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1020
+ }), {
1021
+ "key": index + 1 + "-" + item.value,
1022
+ "style": {
1023
+ backgroundColor: _this11.getBackgroundColor(highlightedIndex, index),
1024
+ justifyContent: 'flex-start',
1025
+ alignItems: 'center'
1026
+ }
1027
+ }), [renderItem(item)]) : vue.createVNode("li", vue.mergeProps(getItemProps({
1020
1028
  item: item
1021
- })),
1022
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1029
+ }), _transformOn(getItemEvents({
1023
1030
  item: item
1024
- })),
1025
- "key": index + 1 + "-" + item.value,
1026
- "style": {
1027
- backgroundColor: _this9.getBackgroundColor(highlightedIndex, index),
1028
- justifyContent: 'flex-start',
1029
- alignItems: 'center'
1030
- }
1031
- }, [h("div", {
1032
- "style": {
1033
- padding: '0 10px 0 0',
1034
- display: 'flex'
1035
- }
1036
- }, [h(DataSearch.CustomSvg, {
1037
- "attrs": {
1038
- "className": getClassName(_this9.$props.innerClass, item._suggestion_type + "-search-icon") || null,
1031
+ })), {
1032
+ "key": index + 1 + "-" + item.value,
1033
+ "style": {
1034
+ backgroundColor: _this11.getBackgroundColor(highlightedIndex, index),
1035
+ justifyContent: 'flex-start',
1036
+ alignItems: 'center'
1037
+ }
1038
+ }), [vue.createVNode("div", {
1039
+ "style": {
1040
+ padding: '0 10px 0 0',
1041
+ display: 'flex'
1042
+ }
1043
+ }, [vue.createVNode(DataSearch.CustomSvg, {
1044
+ "className": getClassName(_this11.$props.innerClass, item._suggestion_type + "-search-icon") || null,
1039
1045
  "icon": getIcon(item._suggestion_type),
1040
1046
  "type": item._suggestion_type + "-search-icon"
1041
- }
1042
- })]), h(DataSearch.SuggestionItem, {
1043
- "attrs": {
1044
- "currentValue": _this9.currentValue,
1047
+ }, null)]), vue.createVNode(DataSearch.SuggestionItem, {
1048
+ "currentValue": _this11.currentValue,
1045
1049
  "suggestion": item
1046
- }
1047
- }), _this9.renderAutoFill(item)]);
1048
- })]) : _this9.renderNoSuggestions(_this9.normalizedSuggestions)]);
1049
- };
1050
- return h("div", {
1051
- "class": Input.suggestionsContainer
1052
- }, [h(DataSearch.InputGroup, [_this9.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1053
- "attrs": {
1054
- "id": _this9.$props.componentId + "-input",
1055
- "showIcon": _this9.$props.showIcon,
1056
- "showClear": _this9.$props.showClear,
1057
- "iconPosition": _this9.$props.iconPosition,
1058
- "placeholder": _this9.$props.placeholder,
1059
- "autoFocus": _this9.$props.autoFocus,
1060
- "themePreset": _this9.themePreset,
1061
- "autocomplete": "off"
1062
- },
1063
- "ref": _this9.$props.innerRef,
1064
- "class": getClassName(_this9.$props.innerClass, 'input'),
1065
- "on": _rollupPluginBabelHelpers._extends({}, getInputEvents({
1066
- onInput: _this9.onInputChange,
1067
- onBlur: function onBlur(e) {
1068
- _this9.$emit('blur', e, _this9.triggerQuery);
1069
- },
1070
- onFocus: _this9.handleFocus,
1071
- onKeyPress: function onKeyPress(e) {
1072
- _this9.$emit('keyPress', e, _this9.triggerQuery);
1073
- _this9.$emit('key-press', e, _this9.triggerQuery);
1074
- },
1075
- onKeyDown: function onKeyDown(e) {
1076
- return _this9.handleKeyDown(e, highlightedIndex);
1077
- },
1078
- onKeyUp: function onKeyUp(e) {
1079
- _this9.$emit('keyUp', e, _this9.triggerQuery);
1080
- _this9.$emit('key-up', e, _this9.triggerQuery);
1081
- },
1082
- onClick: function onClick() {
1083
- setHighlightedIndex(null);
1050
+ }, null), _this11.renderAutoFill(item)]);
1051
+ })]) : _this11.renderNoSuggestions(_this11.normalizedSuggestions)]);
1052
+ };
1053
+ return vue.createVNode("div", {
1054
+ "class": Input.suggestionsContainer
1055
+ }, [vue.createVNode(DataSearch.InputGroup, null, {
1056
+ "default": function _default() {
1057
+ return [_this11.renderInputAddonBefore(), vue.createVNode(CancelSvg.InputWrapper, null, {
1058
+ "default": function _default() {
1059
+ return [vue.createVNode(Input.Input, vue.mergeProps(_transformOn(getInputEvents({
1060
+ onInput: _this11.onInputChange,
1061
+ onBlur: function onBlur(e) {
1062
+ _this11.$emit('blur', e, _this11.triggerQuery);
1063
+ },
1064
+ onFocus: _this11.handleFocus,
1065
+ onKeyPress: function onKeyPress(e) {
1066
+ _this11.$emit('keyPress', e, _this11.triggerQuery);
1067
+ _this11.$emit('key-press', e, _this11.triggerQuery);
1068
+ },
1069
+ onKeyDown: function onKeyDown(e) {
1070
+ return _this11.handleKeyDown(e, highlightedIndex);
1071
+ },
1072
+ onKeyUp: function onKeyUp(e) {
1073
+ _this11.$emit('keyUp', e, _this11.triggerQuery);
1074
+ _this11.$emit('key-up', e, _this11.triggerQuery);
1075
+ },
1076
+ onClick: function onClick() {
1077
+ setHighlightedIndex(null);
1078
+ }
1079
+ })), {
1080
+ "id": _this11.$props.componentId + "-input",
1081
+ "showIcon": _this11.$props.showIcon,
1082
+ "showClear": _this11.$props.showClear,
1083
+ "iconPosition": _this11.$props.iconPosition,
1084
+ "ref": _this11.$props.innerRef,
1085
+ "class": getClassName(_this11.$props.innerClass, 'input'),
1086
+ "placeholder": _this11.$props.placeholder,
1087
+ "autoFocus": _this11.$props.autoFocus
1088
+ }, getInputProps({
1089
+ value: _this11.$data.currentValue === null ? '' : _this11.$data.currentValue
1090
+ }), {
1091
+ "themePreset": _this11.themePreset,
1092
+ "autocomplete": "off"
1093
+ }), null), _this11.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()];
1094
+ }
1095
+ }), _this11.renderInputAddonAfter(), _this11.renderEnterButtonElement()];
1084
1096
  }
1085
- })),
1086
- "domProps": _rollupPluginBabelHelpers._extends({}, getInputProps({
1087
- value: _this9.$data.currentValue === null ? '' : _this9.$data.currentValue
1088
- }))
1089
- }), _this9.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()]), _this9.renderInputAddonAfter(), _this9.renderEnterButtonElement()]), expandSuggestionsContainer && renderSuggestionsDropdown(), _this9.renderTags()]);
1090
- }
1097
+ }), expandSuggestionsContainer && renderSuggestionsDropdown(), _this11.renderTags()]);
1098
+ }
1099
+ }) : vue.createVNode("div", {
1100
+ "class": Input.suggestionsContainer
1101
+ }, [vue.createVNode(DataSearch.InputGroup, null, {
1102
+ "default": function _default() {
1103
+ return [_this11.renderInputAddonBefore(), vue.createVNode(CancelSvg.InputWrapper, null, {
1104
+ "default": function _default() {
1105
+ return [vue.createVNode(Input.Input, vue.mergeProps(_transformOn({
1106
+ blur: function blur(e) {
1107
+ _this11.$emit('blur', e, _this11.triggerQuery);
1108
+ },
1109
+ keypress: function keypress(e) {
1110
+ _this11.$emit('keyPress', e, _this11.triggerQuery);
1111
+ _this11.$emit('key-press', e, _this11.triggerQuery);
1112
+ },
1113
+ input: _this11.onInputChange,
1114
+ focus: function focus(e) {
1115
+ _this11.$emit('focus', e, _this11.triggerQuery);
1116
+ },
1117
+ keydown: _this11.handleKeyDown,
1118
+ keyup: function keyup(e) {
1119
+ _this11.$emit('keyUp', e, _this11.triggerQuery);
1120
+ _this11.$emit('key-up', e, _this11.triggerQuery);
1121
+ }
1122
+ }), {
1123
+ "class": getClassName(_this11.$props.innerClass, 'input') || '',
1124
+ "placeholder": _this11.$props.placeholder,
1125
+ "autofocus": _this11.$props.autoFocus,
1126
+ "value": _this11.$data.currentValue ? _this11.$data.currentValue : '',
1127
+ "iconPosition": _this11.$props.iconPosition,
1128
+ "showIcon": _this11.$props.showIcon,
1129
+ "showClear": _this11.$props.showClear,
1130
+ "ref": _this11.$props.innerRef,
1131
+ "themePreset": _this11.themePreset
1132
+ }), null), _this11.renderIcons()];
1133
+ }
1134
+ }), _this11.renderInputAddonAfter(), _this11.renderEnterButtonElement()];
1135
+ }
1136
+ })])];
1091
1137
  }
1092
- }) : h("div", {
1093
- "class": Input.suggestionsContainer
1094
- }, [h(DataSearch.InputGroup, [this.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1095
- "class": getClassName(this.$props.innerClass, 'input') || '',
1096
- "attrs": {
1097
- "placeholder": this.$props.placeholder,
1098
- "iconPosition": this.$props.iconPosition,
1099
- "showIcon": this.$props.showIcon,
1100
- "showClear": this.$props.showClear,
1101
- "themePreset": this.themePreset
1102
- },
1103
- "on": _rollupPluginBabelHelpers._extends({}, {
1104
- blur: function blur(e) {
1105
- _this9.$emit('blur', e, _this9.triggerQuery);
1106
- },
1107
- keypress: function keypress(e) {
1108
- _this9.$emit('keyPress', e, _this9.triggerQuery);
1109
- _this9.$emit('key-press', e, _this9.triggerQuery);
1110
- },
1111
- input: this.onInputChange,
1112
- focus: function focus(e) {
1113
- _this9.$emit('focus', e, _this9.triggerQuery);
1114
- },
1115
- keydown: this.handleKeyDown,
1116
- keyup: function keyup(e) {
1117
- _this9.$emit('keyUp', e, _this9.triggerQuery);
1118
- _this9.$emit('key-up', e, _this9.triggerQuery);
1119
- }
1120
- }),
1121
- "domProps": _rollupPluginBabelHelpers._extends({}, {
1122
- autofocus: this.$props.autoFocus,
1123
- value: this.$data.currentValue ? this.$data.currentValue : ''
1124
- }),
1125
- "ref": this.$props.innerRef
1126
- }), this.renderIcons()]), this.renderInputAddonAfter(), this.renderEnterButtonElement()])])]);
1138
+ });
1127
1139
  },
1128
1140
  destroyed: function destroyed() {
1129
1141
  document.removeEventListener('keydown', this.onKeyDown);
1130
1142
  }
1131
- };
1143
+ });
1132
1144
  SearchBox.defaultQuery = function (value, props) {
1133
1145
  var finalQuery = null;
1134
1146
  var fields = normalizeDataField(props.dataField, props.fieldWeights);
@@ -1451,9 +1463,8 @@ var ReactiveComponent = {
1451
1463
  }
1452
1464
  },
1453
1465
  render: function render() {
1454
- var h = arguments[0];
1455
1466
  try {
1456
- var dom = this.$scopedSlots["default"];
1467
+ var dom = this.$slots["default"];
1457
1468
  var error = this.error,
1458
1469
  isLoading = this.isLoading,
1459
1470
  selectedValue = this.selectedValue;
@@ -1464,7 +1475,7 @@ var ReactiveComponent = {
1464
1475
  value: selectedValue,
1465
1476
  setQuery: this.setQuery
1466
1477
  });
1467
- return h("div", [dom(propsToBePassed)]);
1478
+ return vue.createVNode("div", null, [dom(propsToBePassed)]);
1468
1479
  } catch (e) {
1469
1480
  return null;
1470
1481
  }
@@ -1547,7 +1558,7 @@ var ConnectedComponent = ComponentWrapper.ComponentWrapper(index.connect(mapStat
1547
1558
  });
1548
1559
  var RcConnected = PreferencesConsumer.PreferencesConsumer({
1549
1560
  name: 'RcConnected',
1550
- render: function render(h) {
1561
+ render: function render() {
1551
1562
  var component = ConnectedComponent;
1552
1563
  switch (this.$attrs.componentType) {
1553
1564
  case constants.componentTypes.reactiveList:
@@ -1593,10 +1604,10 @@ var RcConnected = PreferencesConsumer.PreferencesConsumer({
1593
1604
  component = RangeInput.RangeConnected;
1594
1605
  break;
1595
1606
  }
1596
- return h(component, {
1607
+ return vue.h(component, {
1597
1608
  attrs: this.$attrs,
1598
- on: this.$listeners,
1599
- scopedSlots: this.$scopedSlots,
1609
+ on: this.$attrs,
1610
+ scopedSlots: this.$slots,
1600
1611
  slots: this.$slots
1601
1612
  });
1602
1613
  }