@appbaseio/reactivesearch-vue 1.24.3 → 1.27.0

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 (63) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +679 -314
  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-62e82255.js → CancelSvg-4aa35935.js} +58 -14
  6. package/dist/cjs/{ComponentWrapper-32481890.js → ComponentWrapper-10bad289.js} +1 -1
  7. package/dist/cjs/DataSearch.js +33 -84
  8. package/dist/cjs/{DropDown-6815b9b6.js → DropDown-7aa3d0d2.js} +65 -23
  9. package/dist/cjs/DynamicRangeSlider.js +48 -12
  10. package/dist/cjs/MultiDropdownList.js +18 -10
  11. package/dist/cjs/MultiList.js +21 -15
  12. package/dist/cjs/MultiRange.js +4 -4
  13. package/dist/cjs/RangeInput.js +9 -5
  14. package/dist/cjs/RangeSlider.js +19 -22
  15. package/dist/cjs/ReactiveBase.js +6 -4
  16. package/dist/cjs/ReactiveComponent.js +3 -3
  17. package/dist/cjs/ReactiveList.js +61 -44
  18. package/dist/cjs/ResultCard.js +1 -1
  19. package/dist/cjs/ResultList.js +1 -1
  20. package/dist/cjs/SelectedFilters.js +8 -6
  21. package/dist/cjs/SingleDropdownList.js +17 -9
  22. package/dist/cjs/SingleList.js +9 -8
  23. package/dist/cjs/SingleRange.js +4 -4
  24. package/dist/cjs/StateProvider.js +7 -3
  25. package/dist/cjs/ToggleButton.js +5 -5
  26. package/dist/cjs/{index-89c39a9e.js → index-4509aa45.js} +10 -4
  27. package/dist/cjs/index.js +9 -6
  28. package/dist/cjs/initReactivesearch.js +19 -0
  29. package/dist/cjs/install.js +7 -6
  30. package/dist/cjs/ssr-0ee35a09.js +39 -0
  31. package/dist/cjs/version.js +1 -1
  32. package/dist/cjs/{vueTypes-4c19b4c8.js → vueTypes-57d01f18.js} +3 -3
  33. package/dist/es/{DownShift-3558d402.js → CancelSvg-c2c03a35.js} +55 -16
  34. package/dist/es/{ComponentWrapper-4f85a67e.js → ComponentWrapper-0f3431d1.js} +1 -1
  35. package/dist/es/DataSearch.js +23 -74
  36. package/dist/es/{DropDown-035c804f.js → DropDown-60a426a2.js} +64 -22
  37. package/dist/es/DynamicRangeSlider.js +48 -12
  38. package/dist/es/MultiDropdownList.js +18 -10
  39. package/dist/es/MultiList.js +21 -15
  40. package/dist/es/MultiRange.js +4 -4
  41. package/dist/es/RangeInput.js +9 -5
  42. package/dist/es/RangeSlider.js +19 -22
  43. package/dist/es/ReactiveBase.js +6 -4
  44. package/dist/es/ReactiveComponent.js +3 -3
  45. package/dist/es/ReactiveList.js +61 -44
  46. package/dist/es/ResultCard.js +1 -1
  47. package/dist/es/ResultList.js +1 -1
  48. package/dist/es/SelectedFilters.js +8 -6
  49. package/dist/es/SingleDropdownList.js +17 -9
  50. package/dist/es/SingleList.js +9 -8
  51. package/dist/es/SingleRange.js +4 -4
  52. package/dist/es/StateProvider.js +7 -3
  53. package/dist/es/ToggleButton.js +5 -5
  54. package/dist/es/{index-cb1950b6.js → index-78920565.js} +10 -4
  55. package/dist/es/index.js +9 -6
  56. package/dist/es/initReactivesearch.js +19 -0
  57. package/dist/es/install.js +7 -6
  58. package/dist/es/ssr-a41dfea9.js +33 -0
  59. package/dist/es/version.js +1 -1
  60. package/dist/es/{vueTypes-fb61bb7b.js → vueTypes-687b2304.js} +3 -3
  61. package/package.json +4 -4
  62. package/dist/cjs/ssr-08e95ede.js +0 -39
  63. package/dist/es/ssr-5d255b08.js +0 -33
@@ -11,12 +11,12 @@ require('emotion');
11
11
  require('@appbaseio/vue-emotion');
12
12
  require('polished');
13
13
  require('./Button-11307285.js');
14
- require('./vueTypes-4c19b4c8.js');
14
+ require('./vueTypes-57d01f18.js');
15
15
  var ReactiveList = require('./ReactiveList.js');
16
16
  require('@appbaseio/reactivecore/lib/utils/transform');
17
17
  require('redux');
18
- require('./index-89c39a9e.js');
19
- require('./ComponentWrapper-32481890.js');
18
+ require('./index-4509aa45.js');
19
+ require('./ComponentWrapper-10bad289.js');
20
20
  require('@vue/babel-helper-vue-jsx-merge-props');
21
21
  require('./Title-584a8cc8.js');
22
22
  require('./ListItem-b40adb04.js');
@@ -28,16 +28,17 @@ require('url-search-params-polyfill');
28
28
  var ReactiveBase = require('./ReactiveBase.js');
29
29
  require('hotkeys-js');
30
30
  var DataSearch = require('./DataSearch.js');
31
+ require('./CancelSvg-4aa35935.js');
31
32
  require('./Input-3cc3fa59.js');
32
33
  require('compute-scroll-into-view');
33
- require('./DownShift-62e82255.js');
34
34
  require('./Container-526efa6a.js');
35
35
  require('vue-highlight-words');
36
+ require('@appbaseio/reactivecore/lib/utils/suggestions');
36
37
  require('./FormControlList-808dbcef.js');
37
38
  require('./utils-1219e1fe.js');
38
39
  var SingleList = require('./SingleList.js');
39
40
  var MultiList = require('./MultiList.js');
40
- require('./DropDown-6815b9b6.js');
41
+ require('./DropDown-7aa3d0d2.js');
41
42
  var SingleDropdownList = require('./SingleDropdownList.js');
42
43
  var MultiDropdownList = require('./MultiDropdownList.js');
43
44
  var ToggleButton = require('./ToggleButton.js');
@@ -48,7 +49,7 @@ var MultiRange = require('./MultiRange.js');
48
49
  var ResultCard = require('./ResultCard.js');
49
50
  var ResultList = require('./ResultList.js');
50
51
  require('vue-no-ssr');
51
- require('./ssr-08e95ede.js');
52
+ require('./ssr-0ee35a09.js');
52
53
  var RangeSlider = require('./RangeSlider.js');
53
54
  var DynamicRangeSlider = require('./DynamicRangeSlider.js');
54
55
  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-f127c8b7.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.24.3";
5
+ var version = "1.27.0";
6
6
 
7
7
  exports.default = version;
@@ -99,19 +99,19 @@ var types = {
99
99
  unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
100
100
  value: VueTypes.string.def(undefined),
101
101
  analyticsConfig: VueTypes.shape({
102
- searchStateHeader: VueTypes.bool,
103
102
  emptyQuery: VueTypes.bool,
104
103
  suggestionAnalytics: VueTypes.bool,
105
104
  userId: VueTypes.string,
106
105
  customEvents: VueTypes.object
107
106
  }),
108
107
  appbaseConfig: VueTypes.shape({
109
- enableQueryRules: VueTypes.bool,
110
108
  recordAnalytics: VueTypes.bool,
111
- searchStateHeader: VueTypes.bool,
112
109
  emptyQuery: VueTypes.bool,
113
110
  suggestionAnalytics: VueTypes.bool,
111
+ enableQueryRules: VueTypes.bool,
112
+ enableSearchRelevancy: VueTypes.bool,
114
113
  userId: VueTypes.string,
114
+ useCache: VueTypes.bool,
115
115
  customEvents: VueTypes.object,
116
116
  enableTelemetry: VueTypes.bool.def(true)
117
117
  }).def({}),
@@ -1,6 +1,33 @@
1
- import { a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
1
+ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-0f24d612.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-0f24d612.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-cb1950b6.js';
6
+ import { c as connect, b as getCamelCase, d as getValidPropsKeys } from './index-78920565.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-fb61bb7b.js';
9
+ import { t as types } from './vueTypes-687b2304.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-cb1950b6.js';
13
- import { C as ComponentWrapper } from './ComponentWrapper-4f85a67e.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-78920565.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-0f3431d1.js';
14
14
  import { T as Title } from './Title-3522ff56.js';
15
15
  import { F as Flex } from './Flex-8770345d.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-c2c03a35.js';
17
18
  import { n as noSuggestions, s as suggestionsContainer, I as Input, a as suggestions } from './Input-08bb1bcf.js';
18
19
  import 'compute-scroll-into-view';
19
- import { D as Downshift } from './DownShift-3558d402.js';
20
20
  import { C as Container } from './Container-18b03fde.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'],
@@ -653,8 +602,8 @@ var Mic = {
653
602
  name: 'Mic',
654
603
  props: {
655
604
  children: types.title,
656
- lang: types.string.def('en-US'),
657
- iconPosition: types.string.def('left'),
605
+ lang: VueTypes.string.def('en-US'),
606
+ iconPosition: VueTypes.string.def('left'),
658
607
  handleResult: types.func,
659
608
  onNoMatch: types.func,
660
609
  onError: types.func,
@@ -1066,10 +1015,10 @@ var DataSearch = {
1066
1015
  })]),
1067
1016
  aggregationField: types.string,
1068
1017
  aggregationSize: VueTypes.number,
1069
- size: VueTypes.number.def(10),
1018
+ size: VueTypes.number,
1070
1019
  debounce: VueTypes.number.def(0),
1071
1020
  defaultValue: types.string,
1072
- excludeFields: types.excludeFields.def([]),
1021
+ excludeFields: types.excludeFields,
1073
1022
  value: types.value,
1074
1023
  defaultSuggestions: types.suggestions,
1075
1024
  enableSynonyms: VueTypes.bool.def(true),
@@ -1083,9 +1032,9 @@ var DataSearch = {
1083
1032
  highlightField: types.stringOrArray,
1084
1033
  icon: types.children,
1085
1034
  iconPosition: VueTypes.oneOf(['left', 'right']).def('left'),
1086
- includeFields: types.includeFields.def(['*']),
1035
+ includeFields: types.includeFields,
1087
1036
  innerClass: types.style,
1088
- innerRef: types.string.def('searchInputField'),
1037
+ innerRef: VueTypes.string.def('searchInputField'),
1089
1038
  render: types.func,
1090
1039
  renderQuerySuggestions: types.func,
1091
1040
  renderPopularSuggestions: types.func,
@@ -1117,7 +1066,7 @@ var DataSearch = {
1117
1066
  focusShortcuts: VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string, VueTypes.number])).def(['/']),
1118
1067
  addonBefore: VueTypes.any,
1119
1068
  addonAfter: VueTypes.any,
1120
- expandSuggestionsContainer: types.bool.def(true),
1069
+ expandSuggestionsContainer: VueTypes.bool.def(true),
1121
1070
  index: VueTypes.string
1122
1071
  },
1123
1072
  beforeMount: function beforeMount() {
@@ -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) {
@@ -1778,7 +1727,7 @@ var DataSearch = {
1778
1727
  highlightedIndex: highlightedIndex
1779
1728
  }), _this3.renderErrorComponent(), !_this3.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1780
1729
  "class": suggestions(_this3.themePreset, theme) + " " + getClassName$1(_this3.$props.innerClass, 'list')
1781
- }, [_this3.suggestionsList.slice(0, size).map(function (item, index) {
1730
+ }, [_this3.suggestionsList.slice(0, size || 10).map(function (item, index) {
1782
1731
  return h("li", {
1783
1732
  "domProps": _extends({}, getItemProps({
1784
1733
  item: item
@@ -3,10 +3,12 @@ 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-fb61bb7b.js';
7
- import { a as isFunction } from './index-cb1950b6.js';
6
+ import { t as types } from './vueTypes-687b2304.js';
7
+ import { a as isFunction } from './index-78920565.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-c2c03a35.js';
8
10
  import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-08bb1bcf.js';
9
- import { D as Downshift } from './DownShift-3558d402.js';
11
+ import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
10
12
 
11
13
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
12
14
  var small = css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"])));
@@ -68,7 +70,9 @@ var Dropdown = {
68
70
  single: VueTypes.bool,
69
71
  small: VueTypes.bool.def(false),
70
72
  themePreset: types.themePreset,
71
- showSearch: VueTypes.bool
73
+ showSearch: VueTypes.bool,
74
+ showClear: VueTypes.bool,
75
+ searchPlaceholder: VueTypes.string.def('Type here to search...')
72
76
  },
73
77
  render: function render() {
74
78
  var _this = this;
@@ -96,7 +100,7 @@ var Dropdown = {
96
100
  var filteredItemsToRender = itemsToRender.filter(function (item) {
97
101
  if (String(item[labelField]).length) {
98
102
  if (_this.$props.showSearch && _this.$data.searchTerm) {
99
- return String(item[labelField]).toLowerCase().includes(_this.$data.searchTerm.toLowerCase());
103
+ return replaceDiacritics(String(item[labelField])).toLowerCase().includes(replaceDiacritics(_this.$data.searchTerm.toLowerCase()));
100
104
  }
101
105
 
102
106
  return true;
@@ -117,7 +121,8 @@ var Dropdown = {
117
121
  isOpen = _ref.isOpen,
118
122
  highlightedIndex = _ref.highlightedIndex,
119
123
  getButtonProps = _ref.getButtonProps,
120
- getItemEvents = _ref.getItemEvents;
124
+ getItemEvents = _ref.getItemEvents,
125
+ getInputEvents = _ref.getInputEvents;
121
126
  return h("div", {
122
127
  "class": suggestionsContainer
123
128
  }, [h(Select, {
@@ -142,25 +147,16 @@ var Dropdown = {
142
147
  getItemEvents: getItemEvents
143
148
  }) : isOpen && itemsToRender.length ? h("ul", {
144
149
  "class": suggestions(themePreset, _this.theme) + " " + (_this.$props.small ? 'small' : '') + " " + getClassName(_this.$props.innerClass, 'list')
145
- }, [_this.$props.showSearch ? h(Input, {
146
- "attrs": {
147
- "id": _this.$props.componentId + "-input",
148
- "showIcon": false,
149
- "placeholder": "Type here to search...",
150
- "value": _this.$data.searchTerm,
151
- "themePreset": themePreset
152
- },
153
- "style": {
154
- border: 0,
155
- borderBottom: '1px solid #ddd'
156
- },
157
- "class": getClassName(_this.$props.innerClass, 'input'),
158
- "on": {
159
- "change": _this.handleInputChange
150
+ }, [_this.$props.showSearch ? _this.renderSearchbox({
151
+ on: {
152
+ input: getInputEvents({
153
+ onInput: _this.handleInputChange
154
+ }).input
160
155
  }
161
156
  }) : null, !hasCustomRenderer && filteredItemsToRender.length === 0 ? _this.renderNoResult() : filteredItemsToRender.map(function (item, index) {
162
157
  var selected = _this.$props.multi // MultiDropdownList
163
- && (selectedItem && !!selectedItem[item[keyField]] || Array.isArray(selectedItem) && selectedItem.find(function (value) {
158
+ && (selectedItem && !!selectedItem[item[keyField]] // MultiDropdownRange
159
+ || Array.isArray(selectedItem) && selectedItem.find(function (value) {
164
160
  return value[labelField] === item[labelField];
165
161
  }));
166
162
  if (!_this.$props.multi) selected = item.key === selectedItem;
@@ -210,6 +206,7 @@ var Dropdown = {
210
206
 
211
207
  if (!this.$props.multi) {
212
208
  this.isOpen = false;
209
+ this.searchTerm = '';
213
210
  }
214
211
  },
215
212
  handleStateChange: function handleStateChange(_ref2) {
@@ -233,6 +230,9 @@ var Dropdown = {
233
230
  var value = e.target.value;
234
231
  this.searchTerm = value;
235
232
  },
233
+ clearSearchTerm: function clearSearchTerm() {
234
+ this.searchTerm = '';
235
+ },
236
236
  renderToString: function renderToString(value) {
237
237
  var _this2 = this;
238
238
 
@@ -273,6 +273,48 @@ var Dropdown = {
273
273
  return h("p", {
274
274
  "class": getClassName(this.$props.innerClass, 'noResults') || null
275
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;
276
318
  }
277
319
  }
278
320
  };