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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +378 -233
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{DownShift-d41f2442.js → CancelSvg-82021d23.js} +58 -14
  6. package/dist/cjs/{ComponentWrapper-ab813390.js → ComponentWrapper-7302fe1a.js} +1 -1
  7. package/dist/cjs/DataSearch.js +25 -76
  8. package/dist/cjs/{DropDown-3c343026.js → DropDown-c46d8b0c.js} +61 -21
  9. package/dist/cjs/DynamicRangeSlider.js +45 -9
  10. package/dist/cjs/MultiDropdownList.js +17 -10
  11. package/dist/cjs/MultiList.js +18 -13
  12. package/dist/cjs/MultiRange.js +4 -4
  13. package/dist/cjs/{Pagination-0b9ec0fc.js → Pagination-1b2320a7.js} +1 -1
  14. package/dist/cjs/RangeInput.js +9 -5
  15. package/dist/cjs/RangeSlider.js +19 -22
  16. package/dist/cjs/ReactiveBase.js +2 -2
  17. package/dist/cjs/ReactiveComponent.js +3 -3
  18. package/dist/cjs/ReactiveGoogleMap.js +4 -4
  19. package/dist/cjs/ReactiveList.js +4 -4
  20. package/dist/cjs/ResultCard.js +1 -1
  21. package/dist/cjs/ResultList.js +1 -1
  22. package/dist/cjs/SelectedFilters.js +8 -6
  23. package/dist/cjs/SingleDropdownList.js +13 -8
  24. package/dist/cjs/SingleList.js +5 -5
  25. package/dist/cjs/SingleRange.js +4 -4
  26. package/dist/cjs/StateProvider.js +7 -3
  27. package/dist/cjs/ToggleButton.js +4 -4
  28. package/dist/cjs/{index-2a8358cd.js → index-d44a0a21.js} +10 -4
  29. package/dist/cjs/index.js +7 -7
  30. package/dist/cjs/install.js +7 -7
  31. package/dist/cjs/ssr-c333c82c.js +39 -0
  32. package/dist/cjs/version.js +1 -1
  33. package/dist/cjs/{vueTypes-829a5f2c.js → vueTypes-6de9d2a9.js} +3 -3
  34. package/dist/es/{DownShift-e7ccf2a7.js → CancelSvg-4d9e0857.js} +55 -16
  35. package/dist/es/{ComponentWrapper-459505fd.js → ComponentWrapper-bbb717bc.js} +1 -1
  36. package/dist/es/DataSearch.js +15 -66
  37. package/dist/es/{DropDown-c5ab660f.js → DropDown-4edaa621.js} +60 -20
  38. package/dist/es/DynamicRangeSlider.js +45 -9
  39. package/dist/es/MultiDropdownList.js +17 -10
  40. package/dist/es/MultiList.js +18 -13
  41. package/dist/es/MultiRange.js +4 -4
  42. package/dist/es/{Pagination-e8216949.js → Pagination-b3e4054a.js} +1 -1
  43. package/dist/es/RangeInput.js +9 -5
  44. package/dist/es/RangeSlider.js +19 -22
  45. package/dist/es/ReactiveBase.js +2 -2
  46. package/dist/es/ReactiveComponent.js +3 -3
  47. package/dist/es/ReactiveGoogleMap.js +4 -4
  48. package/dist/es/ReactiveList.js +4 -4
  49. package/dist/es/ResultCard.js +1 -1
  50. package/dist/es/ResultList.js +1 -1
  51. package/dist/es/SelectedFilters.js +8 -6
  52. package/dist/es/SingleDropdownList.js +13 -8
  53. package/dist/es/SingleList.js +5 -5
  54. package/dist/es/SingleRange.js +4 -4
  55. package/dist/es/StateProvider.js +7 -3
  56. package/dist/es/ToggleButton.js +4 -4
  57. package/dist/es/{index-4755c9a0.js → index-5daa8276.js} +10 -4
  58. package/dist/es/index.js +7 -7
  59. package/dist/es/install.js +7 -7
  60. package/dist/es/ssr-e3196de1.js +33 -0
  61. package/dist/es/version.js +1 -1
  62. package/dist/es/{vueTypes-98819a12.js → vueTypes-9326e0be.js} +3 -3
  63. package/package.json +4 -4
  64. package/dist/cjs/ssr-f312af20.js +0 -39
  65. package/dist/es/ssr-a3306f57.js +0 -33
@@ -160,10 +160,16 @@ var isFunction = function isFunction(element) {
160
160
  }; // parses current array (i.e. this.$props.value) for `onChange` callback for multi-* components
161
161
 
162
162
  function parseValueArray(objectValues, currentValue) {
163
- var keys = Object.keys(objectValues);
164
- var selectedValues = keys.map(function (key) {
165
- return objectValues[key] ? key : null;
166
- });
163
+ var selectedValues;
164
+
165
+ if (Array.isArray(objectValues)) {
166
+ selectedValues = [].concat(objectValues);
167
+ } else {
168
+ var keys = Object.keys(objectValues);
169
+ selectedValues = keys.map(function (key) {
170
+ return objectValues[key] ? key : null;
171
+ });
172
+ }
167
173
 
168
174
  if (selectedValues.includes(currentValue)) {
169
175
  return selectedValues.filter(function (item) {
package/dist/cjs/index.js CHANGED
@@ -11,13 +11,13 @@ require('emotion');
11
11
  require('@appbaseio/vue-emotion');
12
12
  require('polished');
13
13
  require('./Button-d2f1aeda.js');
14
- require('./vueTypes-829a5f2c.js');
15
- require('./Pagination-0b9ec0fc.js');
14
+ require('./vueTypes-6de9d2a9.js');
15
+ require('./Pagination-1b2320a7.js');
16
16
  var ReactiveList = require('./ReactiveList.js');
17
17
  require('@appbaseio/reactivecore/lib/utils/transform');
18
18
  require('redux');
19
- require('./index-2a8358cd.js');
20
- require('./ComponentWrapper-ab813390.js');
19
+ require('./index-d44a0a21.js');
20
+ require('./ComponentWrapper-7302fe1a.js');
21
21
  require('@vue/babel-helper-vue-jsx-merge-props');
22
22
  require('./Title-39765ee6.js');
23
23
  require('./ListItem-933c27e4.js');
@@ -29,9 +29,9 @@ require('url-search-params-polyfill');
29
29
  var ReactiveBase = require('./ReactiveBase.js');
30
30
  require('hotkeys-js');
31
31
  var DataSearch = require('./DataSearch.js');
32
+ require('./CancelSvg-82021d23.js');
32
33
  require('./Input-c6f181d5.js');
33
34
  require('compute-scroll-into-view');
34
- require('./DownShift-d41f2442.js');
35
35
  require('./Container-8a08d663.js');
36
36
  require('vue-highlight-words');
37
37
  require('@appbaseio/reactivecore/lib/utils/suggestions');
@@ -39,7 +39,7 @@ require('./FormControlList-73497794.js');
39
39
  require('./utils-23afb20b.js');
40
40
  var SingleList = require('./SingleList.js');
41
41
  var MultiList = require('./MultiList.js');
42
- require('./DropDown-3c343026.js');
42
+ require('./DropDown-c46d8b0c.js');
43
43
  var SingleDropdownList = require('./SingleDropdownList.js');
44
44
  var MultiDropdownList = require('./MultiDropdownList.js');
45
45
  var ToggleButton = require('./ToggleButton.js');
@@ -50,7 +50,7 @@ var MultiRange = require('./MultiRange.js');
50
50
  var ResultCard = require('./ResultCard.js');
51
51
  var ResultList = require('./ResultList.js');
52
52
  require('vue-no-ssr');
53
- require('./ssr-f312af20.js');
53
+ require('./ssr-c333c82c.js');
54
54
  var RangeSlider = require('./RangeSlider.js');
55
55
  var DynamicRangeSlider = require('./DynamicRangeSlider.js');
56
56
  var StateProvider = require('./StateProvider.js');
@@ -11,13 +11,13 @@ require('emotion');
11
11
  require('@appbaseio/vue-emotion');
12
12
  require('polished');
13
13
  require('./Button-d2f1aeda.js');
14
- require('./vueTypes-829a5f2c.js');
15
- require('./Pagination-0b9ec0fc.js');
14
+ require('./vueTypes-6de9d2a9.js');
15
+ require('./Pagination-1b2320a7.js');
16
16
  var ReactiveList = require('./ReactiveList.js');
17
17
  require('@appbaseio/reactivecore/lib/utils/transform');
18
18
  require('redux');
19
- require('./index-2a8358cd.js');
20
- require('./ComponentWrapper-ab813390.js');
19
+ require('./index-d44a0a21.js');
20
+ require('./ComponentWrapper-7302fe1a.js');
21
21
  require('@vue/babel-helper-vue-jsx-merge-props');
22
22
  require('./Title-39765ee6.js');
23
23
  require('./ListItem-933c27e4.js');
@@ -29,9 +29,9 @@ require('url-search-params-polyfill');
29
29
  var ReactiveBase = require('./ReactiveBase.js');
30
30
  require('hotkeys-js');
31
31
  var DataSearch = require('./DataSearch.js');
32
+ require('./CancelSvg-82021d23.js');
32
33
  require('./Input-c6f181d5.js');
33
34
  require('compute-scroll-into-view');
34
- require('./DownShift-d41f2442.js');
35
35
  require('./Container-8a08d663.js');
36
36
  require('vue-highlight-words');
37
37
  require('@appbaseio/reactivecore/lib/utils/suggestions');
@@ -39,7 +39,7 @@ require('./FormControlList-73497794.js');
39
39
  require('./utils-23afb20b.js');
40
40
  var SingleList = require('./SingleList.js');
41
41
  var MultiList = require('./MultiList.js');
42
- require('./DropDown-3c343026.js');
42
+ require('./DropDown-c46d8b0c.js');
43
43
  var SingleDropdownList = require('./SingleDropdownList.js');
44
44
  var MultiDropdownList = require('./MultiDropdownList.js');
45
45
  var ToggleButton = require('./ToggleButton.js');
@@ -50,7 +50,7 @@ var MultiRange = require('./MultiRange.js');
50
50
  var ResultCard = require('./ResultCard.js');
51
51
  var ResultList = require('./ResultList.js');
52
52
  require('vue-no-ssr');
53
- require('./ssr-f312af20.js');
53
+ require('./ssr-c333c82c.js');
54
54
  var RangeSlider = require('./RangeSlider.js');
55
55
  var DynamicRangeSlider = require('./DynamicRangeSlider.js');
56
56
  var StateProvider = require('./StateProvider.js');
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
6
+ var styled = require('@appbaseio/vue-emotion');
7
+ var styled__default = _interopDefault(styled);
8
+ var NoSSR = _interopDefault(require('vue-no-ssr'));
9
+
10
+ var _templateObject;
11
+ var Slider = styled__default('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"])));
12
+
13
+ /**
14
+ * Caution: Please do not change this file without having a discussion with the Team.
15
+ * Any change may break the umd build, we're directly replacing the line no: 14
16
+ * `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script.
17
+ */
18
+ // eslint-disable-next-line
19
+
20
+ var getComponents = function getComponents() {
21
+ var components = {
22
+ NoSSR: NoSSR
23
+ };
24
+
25
+ if (process.browser) {
26
+ try {
27
+ // in older versions of nuxt, it's process.BROWSER_BUILD
28
+ // eslint-disable-next-line
29
+ components['vue-slider-component'] = require('vue-slider-component');
30
+ } catch (e) {
31
+ console.error('Unable to load vue-slider', e);
32
+ }
33
+ }
34
+
35
+ return components;
36
+ };
37
+
38
+ exports.Slider = Slider;
39
+ exports.getComponents = getComponents;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.16.0-alpha.28";
5
+ var version = "1.16.0-alpha.31";
6
6
 
7
7
  exports.default = version;
@@ -110,19 +110,19 @@ var types = {
110
110
  unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
111
111
  value: VueTypes.string.def(undefined),
112
112
  analyticsConfig: VueTypes.shape({
113
- searchStateHeader: VueTypes.bool,
114
113
  emptyQuery: VueTypes.bool,
115
114
  suggestionAnalytics: VueTypes.bool,
116
115
  userId: VueTypes.string,
117
116
  customEvents: VueTypes.object
118
117
  }),
119
118
  appbaseConfig: VueTypes.shape({
120
- enableQueryRules: VueTypes.bool,
121
119
  recordAnalytics: VueTypes.bool,
122
- searchStateHeader: VueTypes.bool,
123
120
  emptyQuery: VueTypes.bool,
124
121
  suggestionAnalytics: VueTypes.bool,
122
+ enableQueryRules: VueTypes.bool,
123
+ enableSearchRelevancy: VueTypes.bool,
125
124
  userId: VueTypes.string,
125
+ useCache: VueTypes.bool,
126
126
  customEvents: VueTypes.object,
127
127
  enableTelemetry: VueTypes.bool.def(true)
128
128
  }).def({}),
@@ -1,6 +1,33 @@
1
- import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
1
+ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
2
+ import styled, { css } from '@appbaseio/vue-emotion';
2
3
  import computeScrollIntoView from 'compute-scroll-into-view';
3
4
 
5
+ var _templateObject;
6
+ var InputWrapper = styled('span')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
7
+
8
+ var _templateObject$1, _templateObject2, _templateObject3, _templateObject4;
9
+ var IconGroup = styled('div')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t", ";\n\n\t", ";\n"])), function (_ref) {
10
+ var positionType = _ref.positionType;
11
+
12
+ if (positionType === 'absolute') {
13
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"])));
14
+ }
15
+
16
+ return null;
17
+ }, function (_ref2) {
18
+ var groupPosition = _ref2.groupPosition;
19
+ return groupPosition === 'right' ? css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])));
20
+ });
21
+
22
+ var _templateObject$2;
23
+ var IconWrapper = styled('div')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: ", ";\n\t\ttransform:scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ", ";\n\t}\n"])), function (_ref) {
24
+ var theme = _ref.theme;
25
+ return theme.colors.primaryColor;
26
+ }, function (_ref2) {
27
+ var theme = _ref2.theme;
28
+ return theme.colors.borderColor || '#000';
29
+ });
30
+
4
31
  /**
5
32
  * Scroll node into view if necessary
6
33
  * @param {HTMLElement} node the element that should scroll into view
@@ -36,8 +63,7 @@ var Downshift = {
36
63
  internal_isOpen: false,
37
64
  internal_inputValue: '',
38
65
  internal_selectedItem: null,
39
- internal_highlightedIndex: null,
40
- internal_eventsCalled: {}
66
+ internal_highlightedIndex: null
41
67
  };
42
68
  },
43
69
  computed: {
@@ -222,23 +248,11 @@ var Downshift = {
222
248
  }
223
249
 
224
250
  var vm = this;
225
- setTimeout(function () {
226
- vm.internal_eventsCalled[index] = false;
227
- }, 0);
228
251
  return {
229
252
  mouseenter: function mouseenter() {
230
253
  vm.setHighlightedIndex(newIndex);
231
254
  },
232
- // for browsers not supporting click event (e.g. firefox android)
233
- mousedown: function mousedown(event) {
234
- if (vm.internal_eventsCalled[index]) return;
235
- vm.internal_eventsCalled[index] = true;
236
- event.stopPropagation();
237
- vm.selectItemAtIndex(newIndex);
238
- },
239
255
  click: function click(event) {
240
- if (vm.internal_eventsCalled[index]) return;
241
- vm.internal_eventsCalled[index] = true;
242
256
  event.stopPropagation();
243
257
  vm.selectItemAtIndex(newIndex);
244
258
  }
@@ -398,4 +412,29 @@ var Downshift = {
398
412
  }
399
413
  };
400
414
 
401
- export { Downshift as D };
415
+ var CancelSvg = {
416
+ functional: true,
417
+ render: function render(h) {
418
+ return h("svg", {
419
+ "attrs": {
420
+ "alt": "Clear",
421
+ "xmlns": "http://www.w3.org/2000/svg",
422
+ "height": "20px",
423
+ "viewBox": "0 0 24 24",
424
+ "width": "20px"
425
+ },
426
+ "class": "cancel-icon"
427
+ }, [h("title", ["Clear"]), h("path", {
428
+ "attrs": {
429
+ "d": "M0 0h24v24H0V0z",
430
+ "fill": "none"
431
+ }
432
+ }), h("path", {
433
+ "attrs": {
434
+ "d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
435
+ }
436
+ })]);
437
+ }
438
+ };
439
+
440
+ export { CancelSvg as C, Downshift as D, IconWrapper as I, IconGroup as a, InputWrapper as b };
@@ -3,7 +3,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import { getInternalComponentID } from '@appbaseio/reactivecore/lib/utils/transform';
6
- import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-4755c9a0.js';
6
+ import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-5daa8276.js';
7
7
 
8
8
  var addComponent = Actions.addComponent,
9
9
  removeComponent = Actions.removeComponent,
@@ -6,17 +6,17 @@ import { getQueryOptions } from '@appbaseio/reactivecore/lib/utils/helper';
6
6
  import 'emotion';
7
7
  import styled, { css, cx, injectGlobal } from '@appbaseio/vue-emotion';
8
8
  import 'polished';
9
- import { t as types } from './vueTypes-98819a12.js';
9
+ import { t as types } from './vueTypes-9326e0be.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
- import { g as getComponent, h as hasCustomRenderer, f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, j as getQuerySuggestionsComponent, a as isFunction, k as isEmpty, p as parseFocusShortcuts, l as extractModifierKeysFromFocusShortcuts, m as hasQuerySuggestionsRenderer, c as connect } from './index-4755c9a0.js';
13
- import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
12
+ import { g as getComponent, h as hasCustomRenderer, f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, j as getQuerySuggestionsComponent, a as isFunction, k as isEmpty, p as parseFocusShortcuts, l as extractModifierKeysFromFocusShortcuts, m as hasQuerySuggestionsRenderer, c as connect } from './index-5daa8276.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-bbb717bc.js';
14
14
  import { T as Title } from './Title-579f8d6c.js';
15
15
  import { F as Flex } from './Flex-aac91505.js';
16
16
  import hotkeys from 'hotkeys-js';
17
+ import { I as IconWrapper, C as CancelSvg, a as IconGroup, D as Downshift, b as InputWrapper } from './CancelSvg-4d9e0857.js';
17
18
  import { n as noSuggestions, s as suggestionsContainer, I as Input, a as suggestions } from './Input-d8519224.js';
18
19
  import 'compute-scroll-into-view';
19
- import { D as Downshift } from './DownShift-e7ccf2a7.js';
20
20
  import { C as Container } from './Container-4383c6f0.js';
21
21
  import Highlight from 'vue-highlight-words';
22
22
 
@@ -27,37 +27,11 @@ InputGroup.defaultProps = {
27
27
  };
28
28
 
29
29
  var _templateObject$1;
30
- var InputWrapper = styled('span')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
31
-
32
- var _templateObject$2;
33
- var InputAddon = styled('span')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
30
+ var InputAddon = styled('span')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
34
31
  InputAddon.defaultProps = {
35
32
  className: 'input-addon'
36
33
  };
37
34
 
38
- var _templateObject$3, _templateObject2, _templateObject3, _templateObject4;
39
- var IconGroup = styled('div')(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t", ";\n\n\t", ";\n"])), function (_ref) {
40
- var positionType = _ref.positionType;
41
-
42
- if (positionType === 'absolute') {
43
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"])));
44
- }
45
-
46
- return null;
47
- }, function (_ref2) {
48
- var groupPosition = _ref2.groupPosition;
49
- return groupPosition === 'right' ? css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])));
50
- });
51
-
52
- var _templateObject$4;
53
- var IconWrapper = styled('div')(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: ", ";\n\t\ttransform:scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ", ";\n\t}\n"])), function (_ref) {
54
- var theme = _ref.theme;
55
- return theme.colors.primaryColor;
56
- }, function (_ref2) {
57
- var theme = _ref2.theme;
58
- return theme.colors.borderColor || '#000';
59
- });
60
-
61
35
  var getClassName = helper.getClassName;
62
36
  var SuggestionWrapper = {
63
37
  name: 'SuggestionWrapper',
@@ -78,14 +52,14 @@ var SuggestionWrapper = {
78
52
  }
79
53
  };
80
54
 
81
- var _templateObject$5;
55
+ var _templateObject$2;
82
56
  var highlightStyle = {
83
57
  fontWeight: 600,
84
58
  padding: 0,
85
59
  backgroundColor: 'transparent',
86
60
  color: 'inherit'
87
61
  };
88
- var PredictiveSuggestion = styled('span')(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"])));
62
+ var PredictiveSuggestion = styled('span')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"])));
89
63
  var SuggestionItem = {
90
64
  name: 'SuggestionItem',
91
65
  props: {
@@ -200,34 +174,9 @@ var SearchSvg = {
200
174
  }
201
175
  };
202
176
 
203
- var CancelSvg = {
204
- functional: true,
205
- render: function render(h) {
206
- return h("svg", {
207
- "attrs": {
208
- "alt": "Clear",
209
- "xmlns": "http://www.w3.org/2000/svg",
210
- "height": "20px",
211
- "viewBox": "0 0 24 24",
212
- "width": "20px"
213
- },
214
- "class": "cancel-icon"
215
- }, [h("title", ["Clear"]), h("path", {
216
- "attrs": {
217
- "d": "M0 0h24v24H0V0z",
218
- "fill": "none"
219
- }
220
- }), h("path", {
221
- "attrs": {
222
- "d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
223
- }
224
- })]);
225
- }
226
- };
177
+ var _templateObject$3;
227
178
 
228
- var _templateObject$6;
229
-
230
- injectGlobal(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));
179
+ injectGlobal(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));
231
180
  var MicSvg = {
232
181
  name: 'MicSvg',
233
182
  props: ['className'],
@@ -272,9 +221,9 @@ var MicSvg = {
272
221
  }
273
222
  };
274
223
 
275
- var _templateObject$7;
224
+ var _templateObject$4;
276
225
 
277
- injectGlobal(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));
226
+ injectGlobal(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));
278
227
  var MuteSvg = {
279
228
  name: 'MuteSvg',
280
229
  props: ['className'],
@@ -330,9 +279,9 @@ var MuteSvg = {
330
279
  }
331
280
  };
332
281
 
333
- var _templateObject$8;
282
+ var _templateObject$5;
334
283
 
335
- injectGlobal(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));
284
+ injectGlobal(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));
336
285
  var ListenSvg = {
337
286
  name: 'ListenSvg',
338
287
  props: ['className'],
@@ -1392,7 +1341,7 @@ var DataSearch = {
1392
1341
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
1393
1342
  }
1394
1343
 
1395
- this.setQueryOptions(this.internalComponent, _extends({}, this.queryOptions, defaultQueryOptions));
1344
+ this.setQueryOptions(this.internalComponent, _extends({}, this.queryOptions, defaultQueryOptions), false);
1396
1345
  this.updateQuery({
1397
1346
  componentId: this.internalComponent,
1398
1347
  query: query,
@@ -1419,7 +1368,7 @@ var DataSearch = {
1419
1368
 
1420
1369
  customQueryOptions = getOptionsFromQuery(customQueryTobeSet);
1421
1370
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
1422
- this.setQueryOptions(componentId, _extends({}, this.queryOptions, customQueryOptions));
1371
+ this.setQueryOptions(componentId, _extends({}, this.queryOptions, customQueryOptions), false);
1423
1372
  }
1424
1373
 
1425
1374
  if (!this.isPending) {
@@ -3,10 +3,11 @@ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPlugin
3
3
  import VueTypes from 'vue-types';
4
4
  import { css } from 'emotion';
5
5
  import styled from '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-98819a12.js';
7
- import { a as isFunction } from './index-4755c9a0.js';
6
+ import { t as types } from './vueTypes-9326e0be.js';
7
+ import { a as isFunction } from './index-5daa8276.js';
8
+ import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
9
+ import { D as Downshift, b as InputWrapper, a as IconGroup, I as IconWrapper, C as CancelSvg } from './CancelSvg-4d9e0857.js';
8
10
  import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-d8519224.js';
9
- import { D as Downshift } from './DownShift-e7ccf2a7.js';
10
11
  import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
11
12
 
12
13
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
@@ -69,7 +70,9 @@ var Dropdown = {
69
70
  single: VueTypes.bool,
70
71
  small: VueTypes.bool.def(false),
71
72
  themePreset: types.themePreset,
72
- showSearch: VueTypes.bool
73
+ showSearch: VueTypes.bool,
74
+ showClear: VueTypes.bool,
75
+ searchPlaceholder: VueTypes.string.def('Type here to search...')
73
76
  },
74
77
  render: function render() {
75
78
  var _this = this;
@@ -118,7 +121,8 @@ var Dropdown = {
118
121
  isOpen = _ref.isOpen,
119
122
  highlightedIndex = _ref.highlightedIndex,
120
123
  getButtonProps = _ref.getButtonProps,
121
- getItemEvents = _ref.getItemEvents;
124
+ getItemEvents = _ref.getItemEvents,
125
+ getInputEvents = _ref.getInputEvents;
122
126
  return h("div", {
123
127
  "class": suggestionsContainer
124
128
  }, [h(Select, {
@@ -143,21 +147,11 @@ var Dropdown = {
143
147
  getItemEvents: getItemEvents
144
148
  }) : isOpen && itemsToRender.length ? h("ul", {
145
149
  "class": suggestions(themePreset, _this.theme) + " " + (_this.$props.small ? 'small' : '') + " " + getClassName(_this.$props.innerClass, 'list')
146
- }, [_this.$props.showSearch ? h(Input, {
147
- "attrs": {
148
- "id": _this.$props.componentId + "-input",
149
- "showIcon": false,
150
- "placeholder": "Type here to search...",
151
- "value": _this.$data.searchTerm,
152
- "themePreset": themePreset
153
- },
154
- "style": {
155
- border: 0,
156
- borderBottom: '1px solid #ddd'
157
- },
158
- "class": getClassName(_this.$props.innerClass, 'input'),
159
- "on": {
160
- "change": _this.handleInputChange
150
+ }, [_this.$props.showSearch ? _this.renderSearchbox({
151
+ on: {
152
+ input: getInputEvents({
153
+ onInput: _this.handleInputChange
154
+ }).input
161
155
  }
162
156
  }) : null, !hasCustomRenderer && filteredItemsToRender.length === 0 ? _this.renderNoResult() : filteredItemsToRender.map(function (item, index) {
163
157
  var selected = _this.$props.multi // MultiDropdownList
@@ -212,6 +206,7 @@ var Dropdown = {
212
206
 
213
207
  if (!this.$props.multi) {
214
208
  this.isOpen = false;
209
+ this.searchTerm = '';
215
210
  }
216
211
  },
217
212
  handleStateChange: function handleStateChange(_ref2) {
@@ -235,6 +230,9 @@ var Dropdown = {
235
230
  var value = e.target.value;
236
231
  this.searchTerm = value;
237
232
  },
233
+ clearSearchTerm: function clearSearchTerm() {
234
+ this.searchTerm = '';
235
+ },
238
236
  renderToString: function renderToString(value) {
239
237
  var _this2 = this;
240
238
 
@@ -275,6 +273,48 @@ var Dropdown = {
275
273
  return h("p", {
276
274
  "class": getClassName(this.$props.innerClass, 'noResults') || null
277
275
  }, [isFunction(renderNoResults) ? renderNoResults() : renderNoResults]);
276
+ },
277
+ renderSearchbox: function renderSearchbox(eventObject) {
278
+ var h = this.$createElement;
279
+ var _this$$props2 = this.$props,
280
+ componentId = _this$$props2.componentId,
281
+ searchPlaceholder = _this$$props2.searchPlaceholder,
282
+ showClear = _this$$props2.showClear,
283
+ themePreset = _this$$props2.themePreset,
284
+ innerClass = _this$$props2.innerClass;
285
+ var InputComponent = h(Input, _mergeJSXProps([{
286
+ "attrs": {
287
+ "id": componentId + "-input",
288
+ "showIcon": false,
289
+ "showClear": showClear,
290
+ "placeholder": searchPlaceholder,
291
+ "value": this.$data.searchTerm,
292
+ "themePreset": themePreset
293
+ },
294
+ "style": {
295
+ border: 0,
296
+ borderBottom: '1px solid #ddd'
297
+ },
298
+ "class": getClassName(innerClass, 'input')
299
+ }, eventObject]));
300
+
301
+ if (showClear) {
302
+ return h(InputWrapper, [InputComponent, this.searchTerm && h(IconGroup, {
303
+ "attrs": {
304
+ "groupPosition": "right",
305
+ "positionType": "absolute"
306
+ }
307
+ }, [h(IconWrapper, {
308
+ "on": {
309
+ "click": this.clearSearchTerm
310
+ },
311
+ "attrs": {
312
+ "isClearIcon": true
313
+ }
314
+ }, [h(CancelSvg)])])]);
315
+ }
316
+
317
+ return InputComponent;
278
318
  }
279
319
  }
280
320
  };