@appbaseio/reactivesearch-vue 1.16.0-alpha.55 → 1.16.0-alpha.58

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 (87) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +7662 -5299
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +21 -5
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{Button-10e5cf51.js → Button-446f819e.js} +1 -1
  6. package/dist/cjs/{CancelSvg-82021d23.js → CancelSvg-9f258f4f.js} +1 -1
  7. package/dist/cjs/{Card-4b915733.js → Card-642547a8.js} +2 -2
  8. package/dist/cjs/{ComponentWrapper-7302fe1a.js → ComponentWrapper-ca5f0cbd.js} +2 -2
  9. package/dist/cjs/{Container-8a08d663.js → Container-daf30918.js} +1 -1
  10. package/dist/cjs/{DataSearch-7fd1b95d.js → DataSearch-f63fcf44.js} +221 -80
  11. package/dist/cjs/DataSearch.js +9 -9
  12. package/dist/cjs/{DropDown-16a2a728.js → DropDown-c3f83a46.js} +4 -4
  13. package/dist/cjs/DynamicRangeSlider.js +5 -5
  14. package/dist/cjs/{Flex-699639d2.js → Flex-aa517a13.js} +1 -1
  15. package/dist/cjs/{FormControlList-73497794.js → FormControlList-c195a592.js} +1 -1
  16. package/dist/cjs/{Input-64087a69.js → Input-e6603a7e.js} +1 -1
  17. package/dist/cjs/{ListItem-933c27e4.js → ListItem-8c9e0d68.js} +2 -2
  18. package/dist/cjs/MultiDropdownList.js +10 -10
  19. package/dist/cjs/MultiList.js +8 -8
  20. package/dist/cjs/MultiRange.js +6 -6
  21. package/dist/cjs/{Pagination-e0654529.js → Pagination-c01d1547.js} +1 -1
  22. package/dist/cjs/RangeInput.js +8 -8
  23. package/dist/cjs/RangeSlider.js +6 -6
  24. package/dist/cjs/ReactiveBase.js +2 -2
  25. package/dist/cjs/ReactiveComponent.js +3 -3
  26. package/dist/cjs/ReactiveGoogleMap.js +24 -24
  27. package/dist/cjs/ReactiveList.js +9 -9
  28. package/dist/cjs/ResultCard.js +3 -3
  29. package/dist/cjs/ResultList.js +3 -3
  30. package/dist/cjs/SelectedFilters.js +44 -27
  31. package/dist/cjs/SingleDropdownList.js +10 -10
  32. package/dist/cjs/SingleList.js +8 -8
  33. package/dist/cjs/SingleRange.js +6 -6
  34. package/dist/cjs/StateProvider.js +2 -2
  35. package/dist/cjs/{Title-39765ee6.js → Title-1de7d0f4.js} +1 -1
  36. package/dist/cjs/ToggleButton.js +6 -6
  37. package/dist/cjs/{_rollupPluginBabelHelpers-4abdbfff.js → _rollupPluginBabelHelpers-c705cbe6.js} +2 -4
  38. package/dist/cjs/{index-d44a0a21.js → index-c288153a.js} +1 -1
  39. package/dist/cjs/index.js +18 -23
  40. package/dist/cjs/initReactivesearch.js +1 -1
  41. package/dist/cjs/{install-ac3374ec.js → install-b494733c.js} +225 -65
  42. package/dist/cjs/install.js +18 -18
  43. package/dist/cjs/{ssr-c333c82c.js → ssr-3027b848.js} +1 -1
  44. package/dist/cjs/{utils-23afb20b.js → utils-d6a52588.js} +1 -1
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/es/{Button-8b211174.js → Button-d8bc15ea.js} +1 -1
  47. package/dist/es/{CancelSvg-4d9e0857.js → CancelSvg-4cfae5fd.js} +1 -1
  48. package/dist/es/{Card-04b3c33e.js → Card-450683f1.js} +2 -2
  49. package/dist/es/{ComponentWrapper-bbb717bc.js → ComponentWrapper-6ad0997b.js} +2 -2
  50. package/dist/es/{Container-4383c6f0.js → Container-ba826e96.js} +1 -1
  51. package/dist/es/{DataSearch-a5aaa29e.js → DataSearch-1dba393f.js} +221 -82
  52. package/dist/es/DataSearch.js +9 -9
  53. package/dist/es/{DropDown-7639f223.js → DropDown-2ddad7ae.js} +4 -4
  54. package/dist/es/DynamicRangeSlider.js +5 -5
  55. package/dist/es/{Flex-aac91505.js → Flex-1f0795c3.js} +1 -1
  56. package/dist/es/{FormControlList-fe389a2e.js → FormControlList-c22d64f6.js} +1 -1
  57. package/dist/es/{Input-d1bb4868.js → Input-7a2a9fac.js} +1 -1
  58. package/dist/es/{ListItem-bdb6d53d.js → ListItem-cad14c5e.js} +2 -2
  59. package/dist/es/MultiDropdownList.js +10 -10
  60. package/dist/es/MultiList.js +8 -8
  61. package/dist/es/MultiRange.js +6 -6
  62. package/dist/es/{Pagination-3c50d4ba.js → Pagination-491c44ee.js} +1 -1
  63. package/dist/es/RangeInput.js +8 -8
  64. package/dist/es/RangeSlider.js +6 -6
  65. package/dist/es/ReactiveBase.js +2 -2
  66. package/dist/es/ReactiveComponent.js +3 -3
  67. package/dist/es/ReactiveGoogleMap.js +23 -24
  68. package/dist/es/ReactiveList.js +9 -9
  69. package/dist/es/ResultCard.js +3 -3
  70. package/dist/es/ResultList.js +3 -3
  71. package/dist/es/SelectedFilters.js +44 -27
  72. package/dist/es/SingleDropdownList.js +10 -10
  73. package/dist/es/SingleList.js +8 -8
  74. package/dist/es/SingleRange.js +6 -6
  75. package/dist/es/StateProvider.js +2 -2
  76. package/dist/es/{Title-579f8d6c.js → Title-3342664a.js} +1 -1
  77. package/dist/es/ToggleButton.js +6 -6
  78. package/dist/es/{_rollupPluginBabelHelpers-ecf6c03c.js → _rollupPluginBabelHelpers-76660dab.js} +2 -4
  79. package/dist/es/{index-5daa8276.js → index-3d98f51b.js} +1 -1
  80. package/dist/es/index.js +19 -24
  81. package/dist/es/initReactivesearch.js +1 -1
  82. package/dist/es/{install-cdccc63e.js → install-cde230d4.js} +226 -66
  83. package/dist/es/install.js +18 -18
  84. package/dist/es/{ssr-e3196de1.js → ssr-b2c0b401.js} +1 -1
  85. package/dist/es/{utils-3a32e13f.js → utils-9e68acee.js} +1 -1
  86. package/dist/es/version.js +1 -1
  87. package/package.json +4 -4
@@ -4,24 +4,24 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
4
4
 
5
5
  var configureStore = require('@appbaseio/reactivecore');
6
6
  var configureStore__default = _interopDefault(configureStore);
7
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
7
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
8
8
  var VueTypes = _interopDefault(require('vue-types'));
9
9
  var constants = require('@appbaseio/reactivecore/lib/utils/constants');
10
10
  var helper = require('@appbaseio/reactivecore/lib/utils/helper');
11
11
  var styled = require('@appbaseio/vue-emotion');
12
12
  var styled__default = _interopDefault(styled);
13
- var Button = require('./Button-10e5cf51.js');
13
+ var Button = require('./Button-446f819e.js');
14
14
  var vueTypes = require('./vueTypes-6de9d2a9.js');
15
15
  var ReactiveList = require('./ReactiveList.js');
16
- var index = require('./index-d44a0a21.js');
17
- var ComponentWrapper = require('./ComponentWrapper-7302fe1a.js');
18
- var Title = require('./Title-39765ee6.js');
16
+ var index = require('./index-c288153a.js');
17
+ var ComponentWrapper = require('./ComponentWrapper-ca5f0cbd.js');
18
+ var Title = require('./Title-1de7d0f4.js');
19
19
  var ReactiveBase = require('./ReactiveBase.js');
20
20
  var hotkeys = _interopDefault(require('hotkeys-js'));
21
- var DataSearch = require('./DataSearch-7fd1b95d.js');
22
- var CancelSvg = require('./CancelSvg-82021d23.js');
23
- var Input = require('./Input-64087a69.js');
24
- var Container = require('./Container-8a08d663.js');
21
+ var DataSearch = require('./DataSearch-f63fcf44.js');
22
+ var CancelSvg = require('./CancelSvg-9f258f4f.js');
23
+ var Input = require('./Input-e6603a7e.js');
24
+ var Container = require('./Container-daf30918.js');
25
25
  var SingleList = require('./SingleList.js');
26
26
  var MultiList = require('./MultiList.js');
27
27
  var SingleDropdownList = require('./SingleDropdownList.js');
@@ -80,10 +80,12 @@ var _debounce = configureStore.helper.debounce,
80
80
  normalizeDataField = configureStore.helper.normalizeDataField;
81
81
  var SearchBox = {
82
82
  name: 'SearchBox',
83
+ isTagsMode: false,
83
84
  data: function data() {
84
85
  var props = this.$props;
85
86
  this.__state = {
86
87
  currentValue: '',
88
+ selectedTags: [],
87
89
  isOpen: false,
88
90
  normalizedSuggestions: []
89
91
  };
@@ -99,7 +101,16 @@ var SearchBox = {
99
101
  var _this$$props = this.$props,
100
102
  distinctField = _this$$props.distinctField,
101
103
  distinctFieldConfig = _this$$props.distinctFieldConfig,
102
- index = _this$$props.index;
104
+ index = _this$$props.index,
105
+ mode = _this$$props.mode;
106
+
107
+ if (mode === constants.SEARCH_COMPONENTS_MODES.TAG) {
108
+ this.$options.isTagsMode = true;
109
+ }
110
+
111
+ if (this.$options.isTagsMode) {
112
+ console.warn('Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`');
113
+ }
103
114
 
104
115
  if (this.enableAppbase && this.aggregationField && this.aggregationField !== '') {
105
116
  console.warn('Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead.');
@@ -114,8 +125,12 @@ var SearchBox = {
114
125
  }
115
126
 
116
127
  this.currentValue = this.selectedValue || this.value || this.defaultValue || '';
117
- this.handleTextChange = _debounce(this.handleText, this.$props.debounce);
118
- this.setValue(this.currentValue, true, this.$props, undefined, false, this.selectedCategory); // Set custom and default queries in store
128
+
129
+ if (this.$options.isTagsMode) {
130
+ this.currentValue = '';
131
+ }
132
+
133
+ this.handleTextChange = _debounce(this.handleText, this.$props.debounce); // Set custom and default queries in store
119
134
 
120
135
  this.triggerCustomQuery(this.currentValue, this.selectedCategory);
121
136
  this.triggerDefaultQuery(this.currentValue);
@@ -151,7 +166,7 @@ var SearchBox = {
151
166
  debounce: VueTypes.number.def(0),
152
167
  defaultValue: vueTypes.types.string,
153
168
  excludeFields: vueTypes.types.excludeFields,
154
- value: vueTypes.types.value,
169
+ value: VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string), vueTypes.types.value]),
155
170
  defaultSuggestions: vueTypes.types.suggestions,
156
171
  enableSynonyms: VueTypes.bool.def(true),
157
172
  enableQuerySuggestions: VueTypes.bool.def(false),
@@ -204,7 +219,18 @@ var SearchBox = {
204
219
  onData: vueTypes.types.func,
205
220
  renderItem: vueTypes.types.func,
206
221
  enterButton: VueTypes.bool.def(false),
207
- renderEnterButton: VueTypes.any
222
+ renderEnterButton: VueTypes.any,
223
+ mode: VueTypes.oneOf(['select', 'tag']).def('select'),
224
+ renderSelectedTags: VueTypes.any
225
+ },
226
+ beforeMount: function beforeMount() {
227
+ if (this.selectedValue) {
228
+ this.setValue(this.selectedValue, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
229
+ } else if (this.$props.value) {
230
+ this.setValue(this.$props.value, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
231
+ } else if (this.$props.defaultValue) {
232
+ this.setValue(this.$props.defaultValue, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined);
233
+ }
208
234
  },
209
235
  mounted: function mounted() {
210
236
  this.listenForFocusShortcuts();
@@ -254,15 +280,25 @@ var SearchBox = {
254
280
  this.normalizedSuggestions = suggestionsList;
255
281
  },
256
282
  selectedValue: function selectedValue(newVal, oldVal) {
257
- if (oldVal !== newVal && this.$data.currentValue !== newVal) {
283
+ if (!isEqual(newVal, oldVal) && (this.$options.isTagsMode ? !isEqual(this.$data.selectedTags, newVal) : this.$data.currentValue !== newVal)) {
258
284
  if (!newVal && this.$data.currentValue) {
259
285
  // selected value is cleared, call onValueSelected
260
286
  this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
287
+ } // if (this.$props.value === undefined) {
288
+
289
+
290
+ if (this.$options.isTagsMode) {
291
+ // handling reset of tags through SelectedFilters or URL
292
+ this.selectedTags = [];
261
293
  }
262
294
 
263
- if (this.$props.value === undefined) {
264
- this.setValue(newVal || '', true, this.$props);
295
+ var cause = !newVal ? configureStore.causes.CLEAR_VALUE : undefined;
296
+
297
+ if (this.$options.isTagsMode) {
298
+ cause = configureStore.causes.SUGGESTION_SELECT;
265
299
  }
300
+
301
+ this.setValue(newVal || '', true, this.$props, cause); // }
266
302
  }
267
303
  },
268
304
  focusShortcuts: function focusShortcuts() {
@@ -403,7 +439,40 @@ var SearchBox = {
403
439
  }
404
440
 
405
441
  var performUpdate = function performUpdate() {
406
- _this.currentValue = value;
442
+ if (_this.$options.isTagsMode && isEqual(value, _this.selectedTags)) {
443
+ return;
444
+ }
445
+
446
+ if (_this.$options.isTagsMode && cause === configureStore.causes.SUGGESTION_SELECT) {
447
+ if (Array.isArray(_this.selectedTags) && _this.selectedTags.length) {
448
+ // check if value already present in selectedTags
449
+ if (typeof value === 'string' && _this.selectedTags.includes(value)) {
450
+ _this.isOpen = false;
451
+ return;
452
+ }
453
+
454
+ _this.selectedTags = [].concat(_this.selectedTags);
455
+
456
+ if (typeof value === 'string' && !!value) {
457
+ _this.selectedTags.push(value);
458
+ } else if (Array.isArray(value) && !isEqual(_this.selectedTags, value)) {
459
+ var mergedArray = Array.from(new Set([].concat(_this.selectedTags, value)));
460
+ _this.selectedTags = mergedArray;
461
+ }
462
+ } else if (value) {
463
+ _this.selectedTags = typeof value !== 'string' ? value : [].concat(value);
464
+ }
465
+
466
+ _this.currentValue = '';
467
+ } else {
468
+ _this.currentValue = value;
469
+ }
470
+
471
+ var queryHandlerValue = value;
472
+
473
+ if (_this.$options.isTagsMode && cause === configureStore.causes.SUGGESTION_SELECT) {
474
+ queryHandlerValue = Array.isArray(_this.selectedTags) && _this.selectedTags.length ? _this.selectedTags : undefined;
475
+ }
407
476
 
408
477
  if (isDefaultValue) {
409
478
  if (_this.$props.autosuggest) {
@@ -411,19 +480,19 @@ var SearchBox = {
411
480
  _this.isOpen = false;
412
481
  }
413
482
 
414
- _this.triggerDefaultQuery(value);
483
+ if (typeof _this.currentValue === 'string') _this.triggerDefaultQuery(_this.currentValue);
415
484
  } // in case of strict selection only SUGGESTION_SELECT should be able
416
485
  // to set the query otherwise the value should reset
417
486
 
418
487
 
419
488
  if (props.strictSelection) {
420
- if (cause === configureStore.causes.SUGGESTION_SELECT || value === '') {
421
- _this.triggerCustomQuery(value, categoryValue);
489
+ if (cause === configureStore.causes.SUGGESTION_SELECT || (_this.$options.isTagsMode ? _this.selectedTags.length === 0 : value === '')) {
490
+ _this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
422
491
  } else {
423
492
  _this.setValue('', true);
424
493
  }
425
- } else if (props.value === undefined) {
426
- _this.triggerCustomQuery(value, categoryValue);
494
+ } else if (props.value === undefined || cause === configureStore.causes.SUGGESTION_SELECT || cause === configureStore.causes.CLEAR_VALUE) {
495
+ _this.triggerCustomQuery(queryHandlerValue, _this.$options.isTagsMode ? undefined : categoryValue);
427
496
  }
428
497
  } else {
429
498
  // debounce for handling text while typing
@@ -474,6 +543,11 @@ var SearchBox = {
474
543
  showFilter = _this$$props2.showFilter,
475
544
  URLParams = _this$$props2.URLParams;
476
545
  var value = typeof paramValue !== 'string' ? this.$data.currentValue : paramValue;
546
+
547
+ if (this.$options.isTagsMode) {
548
+ value = paramValue;
549
+ }
550
+
477
551
  var defaultQueryTobeSet = SearchBox.defaultQuery("" + value + (categoryValue ? " in " + categoryValue : ''), this.$props);
478
552
  var query = defaultQueryTobeSet;
479
553
 
@@ -567,7 +641,8 @@ var SearchBox = {
567
641
  if (this.$props.autosuggest === false) {
568
642
  this.enterButtonOnClick();
569
643
  } else if (highlightedIndex === null) {
570
- this.setValue(event.target.value, true);
644
+ this.setValue(event.target.value, true, this.$props, this.$options.isTagsMode ? configureStore.causes.SUGGESTION_SELECT : undefined // to handle tags
645
+ );
571
646
  this.onValueSelectedHandler(event.target.value, configureStore.causes.ENTER_PRESS);
572
647
  }
573
648
  } // Need to review
@@ -612,13 +687,29 @@ var SearchBox = {
612
687
  if (value === undefined) {
613
688
  this.setValue(suggestion.value, true, this.$props, configureStore.causes.SUGGESTION_SELECT, false, suggestion._category);
614
689
  } else {
615
- this.$emit('change', suggestion.value, function (_ref4) {
690
+ var emitValue = suggestion.value;
691
+
692
+ if (this.$options.isTagsMode) {
693
+ emitValue = Array.isArray(this.selectedTags) ? [].concat(this.selectedTags) : [];
694
+
695
+ if (this.selectedTags.includes(suggestion.value)) {
696
+ // avoid duplicates in tags array
697
+ this.isOpen = false;
698
+ return;
699
+ }
700
+
701
+ emitValue.push(suggestion.value);
702
+ }
703
+
704
+ this.setValue(emitValue, true, this.$props, configureStore.causes.SUGGESTION_SELECT, false, suggestion._category);
705
+ this.$emit('change', emitValue, function (_ref4) {
616
706
  var isOpen = _ref4.isOpen;
617
- return _this3.triggerQuery({
707
+ return _this3.triggerQuery(_rollupPluginBabelHelpers._extends({
618
708
  isOpen: isOpen,
619
- value: suggestion.value,
709
+ value: emitValue
710
+ }, !_this3.$options.isTagsMode && {
620
711
  categoryValue: suggestion._category
621
- });
712
+ }));
622
713
  });
623
714
  }
624
715
 
@@ -901,10 +992,79 @@ var SearchBox = {
901
992
  "click": handleAutoFillClick
902
993
  }
903
994
  });
995
+ },
996
+ renderTag: function renderTag(item) {
997
+ var _this7 = this;
998
+
999
+ var h = this.$createElement;
1000
+ var innerClass = this.$props.innerClass;
1001
+ return h(DataSearch.TagItem, {
1002
+ "class": getClassName(innerClass, 'selected-tag') || ''
1003
+ }, [h("span", [item]), h("span", {
1004
+ "attrs": {
1005
+ "role": "img",
1006
+ "aria-label": "delete-tag"
1007
+ },
1008
+ "class": "close-icon",
1009
+ "on": {
1010
+ "click": function click() {
1011
+ return _this7.clearTag(item);
1012
+ }
1013
+ }
1014
+ }, [h(CancelSvg.CancelSvg)])]);
1015
+ },
1016
+ clearAllTags: function clearAllTags() {
1017
+ this.selectedTags = [];
1018
+ this.setValue('', true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1019
+
1020
+ if (this.$props.value !== undefined) {
1021
+ this.$emit('change', this.selectedTags, this.triggerQuery);
1022
+ }
1023
+ },
1024
+ clearTag: function clearTag(tagValue) {
1025
+ this.selectedTags = [].concat(this.selectedTags.filter(function (tag) {
1026
+ return tag !== tagValue;
1027
+ }));
1028
+ this.setValue('', true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1029
+
1030
+ if (this.$props.value !== undefined) {
1031
+ this.$emit('change', this.selectedTags, this.triggerQuery);
1032
+ }
1033
+ },
1034
+ renderTags: function renderTags() {
1035
+ var _this8 = this;
1036
+
1037
+ var h = this.$createElement;
1038
+
1039
+ if (!Array.isArray(this.selectedTags)) {
1040
+ return null;
1041
+ }
1042
+
1043
+ var tagsList = [].concat(this.selectedTags);
1044
+ var shouldRenderClearAllTag = tagsList.length > 1;
1045
+ var renderSelectedTags = this.$scopedSlots.renderSelectedTags || this.$props.renderSelectedTags;
1046
+ return renderSelectedTags ? renderSelectedTags({
1047
+ values: this.selectedTags,
1048
+ handleClear: this.clearTag,
1049
+ handleClearAll: this.clearAllTags
1050
+ }) : h(DataSearch.TagsContainer, [tagsList.map(function (item) {
1051
+ return _this8.renderTag(item);
1052
+ }), shouldRenderClearAllTag && h(DataSearch.TagItem, {
1053
+ "class": getClassName(this.$props.innerClass, 'selected-tag') || ''
1054
+ }, [h("span", ["Clear All"]), h("span", {
1055
+ "attrs": {
1056
+ "role": "img",
1057
+ "aria-label": "delete-tag"
1058
+ },
1059
+ "class": "close-icon",
1060
+ "on": {
1061
+ "click": this.clearAllTags
1062
+ }
1063
+ }, [h(CancelSvg.CancelSvg)])])]);
904
1064
  }
905
1065
  },
906
1066
  render: function render() {
907
- var _this7 = this;
1067
+ var _this9 = this;
908
1068
 
909
1069
  var h = arguments[0];
910
1070
  var _this$$props6 = this.$props,
@@ -950,14 +1110,14 @@ var SearchBox = {
950
1110
  }
951
1111
  };
952
1112
 
953
- return h("div", [_this7.hasCustomRenderer && _this7.getComponent({
1113
+ return h("div", [_this9.hasCustomRenderer && _this9.getComponent({
954
1114
  isOpen: isOpen,
955
1115
  getItemProps: getItemProps,
956
1116
  getItemEvents: getItemEvents,
957
1117
  highlightedIndex: highlightedIndex
958
- }), _this7.renderErrorComponent(), !_this7.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
959
- "class": Input.suggestions(_this7.themePreset, theme) + " " + getClassName(_this7.$props.innerClass, 'list')
960
- }, [_this7.normalizedSuggestions.map(function (item, index) {
1118
+ }), _this9.renderErrorComponent(), !_this9.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1119
+ "class": Input.suggestions(_this9.themePreset, theme) + " " + getClassName(_this9.$props.innerClass, 'list')
1120
+ }, [_this9.normalizedSuggestions.map(function (item, index) {
961
1121
  return renderItem ? h("li", {
962
1122
  "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
963
1123
  item: item
@@ -967,7 +1127,7 @@ var SearchBox = {
967
1127
  })),
968
1128
  "key": index + 1 + "-" + item.value,
969
1129
  "style": {
970
- backgroundColor: _this7.getBackgroundColor(highlightedIndex, index),
1130
+ backgroundColor: _this9.getBackgroundColor(highlightedIndex, index),
971
1131
  justifyContent: 'flex-start',
972
1132
  alignItems: 'center'
973
1133
  }
@@ -980,7 +1140,7 @@ var SearchBox = {
980
1140
  })),
981
1141
  "key": index + 1 + "-" + item.value,
982
1142
  "style": {
983
- backgroundColor: _this7.getBackgroundColor(highlightedIndex, index),
1143
+ backgroundColor: _this9.getBackgroundColor(highlightedIndex, index),
984
1144
  justifyContent: 'flex-start',
985
1145
  alignItems: 'center'
986
1146
  }
@@ -991,61 +1151,61 @@ var SearchBox = {
991
1151
  }
992
1152
  }, [h(DataSearch.CustomSvg, {
993
1153
  "attrs": {
994
- "className": getClassName(_this7.$props.innerClass, item._suggestion_type + "-search-icon") || null,
1154
+ "className": getClassName(_this9.$props.innerClass, item._suggestion_type + "-search-icon") || null,
995
1155
  "icon": getIcon(item._suggestion_type),
996
1156
  "type": item._suggestion_type + "-search-icon"
997
1157
  }
998
1158
  })]), h(DataSearch.SuggestionItem, {
999
1159
  "attrs": {
1000
- "currentValue": _this7.currentValue,
1160
+ "currentValue": _this9.currentValue,
1001
1161
  "suggestion": item
1002
1162
  }
1003
- }), _this7.renderAutoFill(item)]);
1004
- })]) : _this7.renderNoSuggestions(_this7.normalizedSuggestions)]);
1163
+ }), _this9.renderAutoFill(item)]);
1164
+ })]) : _this9.renderNoSuggestions(_this9.normalizedSuggestions)]);
1005
1165
  };
1006
1166
 
1007
1167
  return h("div", {
1008
1168
  "class": Input.suggestionsContainer
1009
- }, [h(DataSearch.InputGroup, [_this7.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1169
+ }, [h(DataSearch.InputGroup, [_this9.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1010
1170
  "attrs": {
1011
- "id": _this7.$props.componentId + "-input",
1012
- "showIcon": _this7.$props.showIcon,
1013
- "showClear": _this7.$props.showClear,
1014
- "iconPosition": _this7.$props.iconPosition,
1015
- "placeholder": _this7.$props.placeholder,
1016
- "autoFocus": _this7.$props.autoFocus,
1017
- "themePreset": _this7.themePreset,
1171
+ "id": _this9.$props.componentId + "-input",
1172
+ "showIcon": _this9.$props.showIcon,
1173
+ "showClear": _this9.$props.showClear,
1174
+ "iconPosition": _this9.$props.iconPosition,
1175
+ "placeholder": _this9.$props.placeholder,
1176
+ "autoFocus": _this9.$props.autoFocus,
1177
+ "themePreset": _this9.themePreset,
1018
1178
  "autocomplete": "off"
1019
1179
  },
1020
- "ref": _this7.$props.innerRef,
1021
- "class": getClassName(_this7.$props.innerClass, 'input'),
1180
+ "ref": _this9.$props.innerRef,
1181
+ "class": getClassName(_this9.$props.innerClass, 'input'),
1022
1182
  "on": _rollupPluginBabelHelpers._extends({}, getInputEvents({
1023
- onInput: _this7.onInputChange,
1183
+ onInput: _this9.onInputChange,
1024
1184
  onBlur: function onBlur(e) {
1025
- _this7.$emit('blur', e, _this7.triggerQuery);
1185
+ _this9.$emit('blur', e, _this9.triggerQuery);
1026
1186
  },
1027
- onFocus: _this7.handleFocus,
1187
+ onFocus: _this9.handleFocus,
1028
1188
  onKeyPress: function onKeyPress(e) {
1029
- _this7.$emit('keyPress', e, _this7.triggerQuery);
1189
+ _this9.$emit('keyPress', e, _this9.triggerQuery);
1030
1190
 
1031
- _this7.$emit('key-press', e, _this7.triggerQuery);
1191
+ _this9.$emit('key-press', e, _this9.triggerQuery);
1032
1192
  },
1033
1193
  onKeyDown: function onKeyDown(e) {
1034
- return _this7.handleKeyDown(e, highlightedIndex);
1194
+ return _this9.handleKeyDown(e, highlightedIndex);
1035
1195
  },
1036
1196
  onKeyUp: function onKeyUp(e) {
1037
- _this7.$emit('keyUp', e, _this7.triggerQuery);
1197
+ _this9.$emit('keyUp', e, _this9.triggerQuery);
1038
1198
 
1039
- _this7.$emit('key-up', e, _this7.triggerQuery);
1199
+ _this9.$emit('key-up', e, _this9.triggerQuery);
1040
1200
  },
1041
1201
  onClick: function onClick() {
1042
1202
  setHighlightedIndex(null);
1043
1203
  }
1044
1204
  })),
1045
1205
  "domProps": _rollupPluginBabelHelpers._extends({}, getInputProps({
1046
- value: _this7.$data.currentValue === null ? '' : _this7.$data.currentValue
1206
+ value: _this9.$data.currentValue === null ? '' : _this9.$data.currentValue
1047
1207
  }))
1048
- }), _this7.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()]), _this7.renderInputAddonAfter(), _this7.renderEnterButtonElement()]), expandSuggestionsContainer && renderSuggestionsDropdown()]);
1208
+ }), _this9.renderIcons(), !expandSuggestionsContainer && renderSuggestionsDropdown()]), _this9.renderInputAddonAfter(), _this9.renderEnterButtonElement()]), expandSuggestionsContainer && renderSuggestionsDropdown(), _this9.renderTags()]);
1049
1209
  }
1050
1210
  }
1051
1211
  }) : h("div", {
@@ -1061,22 +1221,22 @@ var SearchBox = {
1061
1221
  },
1062
1222
  "on": _rollupPluginBabelHelpers._extends({}, {
1063
1223
  blur: function blur(e) {
1064
- _this7.$emit('blur', e, _this7.triggerQuery);
1224
+ _this9.$emit('blur', e, _this9.triggerQuery);
1065
1225
  },
1066
1226
  keypress: function keypress(e) {
1067
- _this7.$emit('keyPress', e, _this7.triggerQuery);
1227
+ _this9.$emit('keyPress', e, _this9.triggerQuery);
1068
1228
 
1069
- _this7.$emit('key-press', e, _this7.triggerQuery);
1229
+ _this9.$emit('key-press', e, _this9.triggerQuery);
1070
1230
  },
1071
1231
  input: this.onInputChange,
1072
1232
  focus: function focus(e) {
1073
- _this7.$emit('focus', e, _this7.triggerQuery);
1233
+ _this9.$emit('focus', e, _this9.triggerQuery);
1074
1234
  },
1075
1235
  keydown: this.handleKeyDown,
1076
1236
  keyup: function keyup(e) {
1077
- _this7.$emit('keyUp', e, _this7.triggerQuery);
1237
+ _this9.$emit('keyUp', e, _this9.triggerQuery);
1078
1238
 
1079
- _this7.$emit('key-up', e, _this7.triggerQuery);
1239
+ _this9.$emit('key-up', e, _this9.triggerQuery);
1080
1240
  }
1081
1241
  }),
1082
1242
  "domProps": _rollupPluginBabelHelpers._extends({}, {
@@ -3,44 +3,44 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('@appbaseio/reactivecore');
6
- require('./_rollupPluginBabelHelpers-4abdbfff.js');
6
+ require('./_rollupPluginBabelHelpers-c705cbe6.js');
7
7
  require('vue-types');
8
8
  require('@appbaseio/reactivecore/lib/utils/constants');
9
9
  require('@appbaseio/reactivecore/lib/utils/helper');
10
10
  require('emotion');
11
11
  require('@appbaseio/vue-emotion');
12
12
  require('polished');
13
- require('./Button-10e5cf51.js');
13
+ require('./Button-446f819e.js');
14
14
  require('./vueTypes-6de9d2a9.js');
15
- require('./Pagination-e0654529.js');
15
+ require('./Pagination-c01d1547.js');
16
16
  require('./ReactiveList.js');
17
17
  require('@appbaseio/reactivecore/lib/utils/transform');
18
18
  require('redux');
19
- require('./index-d44a0a21.js');
20
- require('./ComponentWrapper-7302fe1a.js');
19
+ require('./index-c288153a.js');
20
+ require('./ComponentWrapper-ca5f0cbd.js');
21
21
  require('@vue/babel-helper-vue-jsx-merge-props');
22
- require('./Title-39765ee6.js');
23
- require('./ListItem-933c27e4.js');
24
- require('./Card-4b915733.js');
25
- require('./Flex-699639d2.js');
22
+ require('./Title-1de7d0f4.js');
23
+ require('./ListItem-8c9e0d68.js');
24
+ require('./Card-642547a8.js');
25
+ require('./Flex-aa517a13.js');
26
26
  require('@appbaseio/reactivecore/lib/actions/analytics');
27
27
  require('appbase-js');
28
28
  require('url-search-params-polyfill');
29
29
  require('./ReactiveBase.js');
30
30
  require('hotkeys-js');
31
- require('./DataSearch-7fd1b95d.js');
32
- require('./CancelSvg-82021d23.js');
33
- require('./Input-64087a69.js');
31
+ require('./DataSearch-f63fcf44.js');
32
+ require('./CancelSvg-9f258f4f.js');
33
+ require('./Input-e6603a7e.js');
34
34
  require('compute-scroll-into-view');
35
- require('./Container-8a08d663.js');
35
+ require('./Container-daf30918.js');
36
36
  require('vue-highlight-words');
37
- var install = require('./install-ac3374ec.js');
37
+ var install = require('./install-b494733c.js');
38
38
  require('@appbaseio/reactivecore/lib/utils/suggestions');
39
- require('./FormControlList-73497794.js');
40
- require('./utils-23afb20b.js');
39
+ require('./FormControlList-c195a592.js');
40
+ require('./utils-d6a52588.js');
41
41
  require('./SingleList.js');
42
42
  require('./MultiList.js');
43
- require('./DropDown-16a2a728.js');
43
+ require('./DropDown-c3f83a46.js');
44
44
  require('./SingleDropdownList.js');
45
45
  require('./MultiDropdownList.js');
46
46
  require('./ToggleButton.js');
@@ -51,7 +51,7 @@ require('./MultiRange.js');
51
51
  require('./ResultCard.js');
52
52
  require('./ResultList.js');
53
53
  require('vue-no-ssr');
54
- require('./ssr-c333c82c.js');
54
+ require('./ssr-3027b848.js');
55
55
  require('./RangeSlider.js');
56
56
  require('./DynamicRangeSlider.js');
57
57
  require('./StateProvider.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
4
 
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
6
6
  var styled = require('@appbaseio/vue-emotion');
7
7
  var styled__default = _interopDefault(styled);
8
8
  var NoSSR = _interopDefault(require('vue-no-ssr'));
@@ -4,7 +4,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
4
4
 
5
5
  var configureStore = require('@appbaseio/reactivecore');
6
6
  var configureStore__default = _interopDefault(configureStore);
7
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
7
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
8
8
 
9
9
  var getAggsOrder = configureStore.helper.getAggsOrder;
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.16.0-alpha.55";
5
+ var version = "1.16.0-alpha.58";
6
6
 
7
7
  exports.default = version;
@@ -1,4 +1,4 @@
1
- import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
1
+ import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-76660dab.js';
2
2
  import { css } from 'emotion';
3
3
  import styled from '@appbaseio/vue-emotion';
4
4
  import { darken, rgba, lighten } from 'polished';
@@ -1,4 +1,4 @@
1
- import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
1
+ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-76660dab.js';
2
2
  import styled, { css } from '@appbaseio/vue-emotion';
3
3
  import computeScrollIntoView from 'compute-scroll-into-view';
4
4
 
@@ -1,8 +1,8 @@
1
- import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
1
+ import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-76660dab.js';
2
2
  import { css } from 'emotion';
3
3
  import styled from '@appbaseio/vue-emotion';
4
4
  import { lighten } from 'polished';
5
- import './Title-579f8d6c.js';
5
+ import './Title-3342664a.js';
6
6
 
7
7
  var _templateObject, _templateObject2, _templateObject3;
8
8
  var container = css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"])));
@@ -1,9 +1,9 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
- import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
2
+ import { a as _extends } from './_rollupPluginBabelHelpers-76660dab.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import { getInternalComponentID } from '@appbaseio/reactivecore/lib/utils/transform';
6
- import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-5daa8276.js';
6
+ import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-3d98f51b.js';
7
7
 
8
8
  var addComponent = Actions.addComponent,
9
9
  removeComponent = Actions.removeComponent,
@@ -1,4 +1,4 @@
1
- import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ecf6c03c.js';
1
+ import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-76660dab.js';
2
2
  import styled from '@appbaseio/vue-emotion';
3
3
 
4
4
  var _templateObject;