@appbaseio/reactivesearch-vue 1.16.0-alpha.3 → 1.16.0-alpha.30

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 (101) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +7438 -6512
  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/Button-d2f1aeda.js +68 -0
  6. package/dist/cjs/{DownShift-b09da079.js → CancelSvg-82021d23.js} +60 -16
  7. package/dist/cjs/Card-4b915733.js +30 -0
  8. package/dist/cjs/{ComponentWrapper-5a0a8849.js → ComponentWrapper-ab813390.js} +40 -21
  9. package/dist/cjs/{Container-f84e72fc.js → Container-8a08d663.js} +3 -11
  10. package/dist/cjs/DataSearch.js +341 -391
  11. package/dist/cjs/{DropDown-c66be1a8.js → DropDown-0359da33.js} +76 -96
  12. package/dist/cjs/DynamicRangeSlider.js +47 -24
  13. package/dist/cjs/Flex-699639d2.js +52 -0
  14. package/dist/cjs/FormControlList-73497794.js +47 -0
  15. package/dist/cjs/Input-c6f181d5.js +79 -0
  16. package/dist/cjs/ListItem-933c27e4.js +46 -0
  17. package/dist/cjs/MultiDropdownList.js +69 -45
  18. package/dist/cjs/MultiList.js +36 -21
  19. package/dist/cjs/MultiRange.js +20 -14
  20. package/dist/cjs/{Pagination-91df3b77.js → Pagination-1b2320a7.js} +4 -3
  21. package/dist/cjs/RangeInput.js +25 -45
  22. package/dist/cjs/RangeSlider.js +31 -28
  23. package/dist/cjs/ReactiveBase.js +55 -34
  24. package/dist/cjs/ReactiveComponent.js +80 -36
  25. package/dist/cjs/ReactiveGoogleMap.js +320 -234
  26. package/dist/cjs/ReactiveList.js +149 -202
  27. package/dist/cjs/ResultCard.js +8 -6
  28. package/dist/cjs/ResultList.js +8 -6
  29. package/dist/cjs/SelectedFilters.js +25 -12
  30. package/dist/cjs/SingleDropdownList.js +69 -45
  31. package/dist/cjs/SingleList.js +44 -26
  32. package/dist/cjs/SingleRange.js +17 -11
  33. package/dist/cjs/StateProvider.js +11 -7
  34. package/dist/cjs/{Title-e9beb554.js → Title-39765ee6.js} +3 -11
  35. package/dist/cjs/ToggleButton.js +35 -16
  36. package/dist/cjs/{_rollupPluginBabelHelpers-280a574c.js → _rollupPluginBabelHelpers-4abdbfff.js} +11 -1
  37. package/dist/cjs/{index-e0583d76.js → index-2a8358cd.js} +77 -9
  38. package/dist/cjs/index.js +23 -19
  39. package/dist/cjs/initReactivesearch.js +80 -38
  40. package/dist/cjs/install.js +20 -18
  41. package/dist/cjs/ssr-c333c82c.js +39 -0
  42. package/dist/cjs/{utils-d1ea9f95.js → utils-23afb20b.js} +2 -2
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/{vueTypes-c21f265b.js → vueTypes-6de9d2a9.js} +9 -4
  45. package/dist/es/Button-799185e2.js +59 -0
  46. package/dist/es/{DownShift-d8f2500f.js → CancelSvg-4d9e0857.js} +56 -17
  47. package/dist/es/Card-04b3c33e.js +23 -0
  48. package/dist/es/{ComponentWrapper-d0b21b95.js → ComponentWrapper-459505fd.js} +40 -21
  49. package/dist/es/Container-4383c6f0.js +10 -0
  50. package/dist/es/DataSearch.js +339 -389
  51. package/dist/es/{DropDown-5dbd69c2.js → DropDown-168b60f6.js} +75 -95
  52. package/dist/es/DynamicRangeSlider.js +47 -24
  53. package/dist/es/Flex-aac91505.js +47 -0
  54. package/dist/es/FormControlList-fe389a2e.js +40 -0
  55. package/dist/es/Input-d8519224.js +71 -0
  56. package/dist/es/ListItem-bdb6d53d.js +39 -0
  57. package/dist/es/MultiDropdownList.js +69 -45
  58. package/dist/es/MultiList.js +36 -21
  59. package/dist/es/MultiRange.js +20 -14
  60. package/dist/es/{Pagination-800af44f.js → Pagination-b3e4054a.js} +4 -3
  61. package/dist/es/RangeInput.js +25 -45
  62. package/dist/es/RangeSlider.js +31 -28
  63. package/dist/es/ReactiveBase.js +55 -34
  64. package/dist/es/ReactiveComponent.js +80 -36
  65. package/dist/es/ReactiveGoogleMap.js +320 -234
  66. package/dist/es/ReactiveList.js +149 -202
  67. package/dist/es/ResultCard.js +8 -6
  68. package/dist/es/ResultList.js +8 -6
  69. package/dist/es/SelectedFilters.js +25 -12
  70. package/dist/es/SingleDropdownList.js +69 -45
  71. package/dist/es/SingleList.js +44 -26
  72. package/dist/es/SingleRange.js +17 -11
  73. package/dist/es/StateProvider.js +11 -7
  74. package/dist/es/Title-579f8d6c.js +10 -0
  75. package/dist/es/ToggleButton.js +35 -16
  76. package/dist/es/{_rollupPluginBabelHelpers-c9fbe19f.js → _rollupPluginBabelHelpers-ecf6c03c.js} +11 -1
  77. package/dist/es/{index-1fe91a0a.js → index-4755c9a0.js} +74 -10
  78. package/dist/es/index.js +23 -19
  79. package/dist/es/initReactivesearch.js +80 -38
  80. package/dist/es/install.js +20 -18
  81. package/dist/es/ssr-e3196de1.js +33 -0
  82. package/dist/es/{utils-ce3d86fd.js → utils-3a32e13f.js} +2 -2
  83. package/dist/es/version.js +1 -1
  84. package/dist/es/{vueTypes-98d938a9.js → vueTypes-9326e0be.js} +9 -4
  85. package/package.json +86 -78
  86. package/dist/cjs/Button-78d8bc26.js +0 -146
  87. package/dist/cjs/Card-b4af314f.js +0 -58
  88. package/dist/cjs/Flex-737c55be.js +0 -160
  89. package/dist/cjs/FormControlList-08dfb28e.js +0 -105
  90. package/dist/cjs/Input-643d02a7.js +0 -178
  91. package/dist/cjs/ListItem-0c58c5d2.js +0 -84
  92. package/dist/cjs/ssr-b7a729f9.js +0 -47
  93. package/dist/es/Button-6c71c66e.js +0 -137
  94. package/dist/es/Card-ecf70ba1.js +0 -51
  95. package/dist/es/Container-f5efec9e.js +0 -18
  96. package/dist/es/Flex-40a74d8a.js +0 -155
  97. package/dist/es/FormControlList-b96aebef.js +0 -98
  98. package/dist/es/Input-dfd9dd40.js +0 -170
  99. package/dist/es/ListItem-da73bc7d.js +0 -77
  100. package/dist/es/Title-22c2f3bf.js +0 -18
  101. package/dist/es/ssr-2f57791d.js +0 -41
@@ -6,95 +6,39 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var configureStore = require('@appbaseio/reactivecore');
8
8
  var configureStore__default = _interopDefault(configureStore);
9
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-280a574c.js');
9
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
10
10
  var VueTypes = _interopDefault(require('vue-types'));
11
11
  var constants = require('@appbaseio/reactivecore/lib/utils/constants');
12
+ var helper = require('@appbaseio/reactivecore/lib/utils/helper');
12
13
  require('emotion');
13
14
  var styled = require('@appbaseio/vue-emotion');
14
15
  var styled__default = _interopDefault(styled);
15
16
  require('polished');
16
- var vueTypes = require('./vueTypes-c21f265b.js');
17
+ var vueTypes = require('./vueTypes-6de9d2a9.js');
17
18
  require('@appbaseio/reactivecore/lib/utils/transform');
18
19
  require('redux');
19
- var index = require('./index-e0583d76.js');
20
- var ComponentWrapper = require('./ComponentWrapper-5a0a8849.js');
21
- var Title = require('./Title-e9beb554.js');
22
- var Flex = require('./Flex-737c55be.js');
23
- var helper = require('@appbaseio/reactivecore/lib/utils/helper');
24
- var Input = require('./Input-643d02a7.js');
20
+ var index = require('./index-2a8358cd.js');
21
+ var ComponentWrapper = require('./ComponentWrapper-ab813390.js');
22
+ var Title = require('./Title-39765ee6.js');
23
+ var Flex = require('./Flex-699639d2.js');
24
+ var hotkeys = _interopDefault(require('hotkeys-js'));
25
+ var CancelSvg = require('./CancelSvg-82021d23.js');
26
+ var Input = require('./Input-c6f181d5.js');
25
27
  require('compute-scroll-into-view');
26
- var DownShift = require('./DownShift-b09da079.js');
27
- var Container = require('./Container-f84e72fc.js');
28
+ var Container = require('./Container-8a08d663.js');
28
29
  var Highlight = _interopDefault(require('vue-highlight-words'));
29
30
 
30
- function _templateObject4() {
31
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tposition: absolute;\n\ttop: ", ";\n\tcursor: pointer;\n\t", ";\n\t", ";\n\t", ";\n\tsvg.search-icon {\n\t\tfill: ", ";\n\t}\n\tsvg.cancel-icon {\n\t\tfill: ", ";\n\t}\n"]);
32
-
33
- _templateObject4 = function _templateObject4() {
34
- return data;
35
- };
36
-
37
- return data;
38
- }
39
-
40
- function _templateObject3() {
41
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tpadding-right: 29px;\n\tright: 0;\n"]);
42
-
43
- _templateObject3 = function _templateObject3() {
44
- return data;
45
- };
46
-
47
- return data;
48
- }
49
-
50
- function _templateObject2() {
51
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tpadding-right: 12px;\n\tright: 0;\n"]);
52
-
53
- _templateObject2 = function _templateObject2() {
54
- return data;
55
- };
56
-
57
- return data;
58
- }
59
-
60
- function _templateObject() {
61
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tpadding-left: 12px;\n\tleft: 0;\n"]);
62
-
63
- _templateObject = function _templateObject() {
64
- return data;
65
- };
66
-
67
- return data;
68
- }
69
- var left = styled.css(_templateObject());
70
- var right = styled.css(_templateObject2());
71
- var clear = styled.css(_templateObject3());
72
- var InputIcon = styled__default('div')(_templateObject4(), function (_ref) {
73
- var isClearIcon = _ref.isClearIcon;
74
- return isClearIcon ? '12px' : '13px';
75
- }, function (_ref2) {
76
- var iconPosition = _ref2.iconPosition;
77
-
78
- if (iconPosition === 'left') {
79
- return left;
80
- } else if (iconPosition === 'right') {
81
- return right;
82
- }
31
+ var _templateObject;
32
+ var InputGroup = styled__default('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n display: flex;\n align-items: stretch;\n width: 100%;\n"])));
33
+ InputGroup.defaultProps = {
34
+ className: 'input-group'
35
+ };
83
36
 
84
- return null;
85
- }, function (_ref3) {
86
- var clearIcon = _ref3.clearIcon;
87
- return clearIcon && clear;
88
- }, function (_ref4) {
89
- var showIcon = _ref4.showIcon;
90
- return !showIcon && 'padding-right:10px';
91
- }, function (_ref5) {
92
- var theme = _ref5.theme;
93
- return theme.colors.primaryColor;
94
- }, function (_ref6) {
95
- var theme = _ref6.theme;
96
- return theme.colors.borderColor;
97
- });
37
+ var _templateObject$1;
38
+ var InputAddon = styled__default('span')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._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"])));
39
+ InputAddon.defaultProps = {
40
+ className: 'input-addon'
41
+ };
98
42
 
99
43
  var getClassName = configureStore.helper.getClassName;
100
44
  var SuggestionWrapper = {
@@ -116,22 +60,14 @@ var SuggestionWrapper = {
116
60
  }
117
61
  };
118
62
 
119
- function _templateObject$1() {
120
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]);
121
-
122
- _templateObject$1 = function _templateObject() {
123
- return data;
124
- };
125
-
126
- return data;
127
- }
63
+ var _templateObject$2;
128
64
  var highlightStyle = {
129
65
  fontWeight: 600,
130
66
  padding: 0,
131
67
  backgroundColor: 'transparent',
132
68
  color: 'inherit'
133
69
  };
134
- var PredictiveSuggestion = styled__default('span')(_templateObject$1());
70
+ var PredictiveSuggestion = styled__default('span')(_templateObject$2 || (_templateObject$2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"])));
135
71
  var SuggestionItem = {
136
72
  name: 'SuggestionItem',
137
73
  props: {
@@ -246,75 +182,9 @@ var SearchSvg = {
246
182
  }
247
183
  };
248
184
 
249
- var CancelSvg = {
250
- functional: true,
251
- render: function render(h) {
252
- return h("svg", {
253
- "attrs": {
254
- "alt": "Clear",
255
- "height": "10",
256
- "width": "8",
257
- "xmlns": "http://www.w3.org/2000/svg",
258
- "viewBox": "0 0 212.982 212.982"
259
- },
260
- "class": "cancel-icon"
261
- }, [h("title", ["Clear"]), h("path", {
262
- "attrs": {
263
- "d": 'M131.804,106.491l75.936-75.936c6.99-6.99,6.99-18.323,0-25.312c-6.99-6.99-18.322-6.99-25.312,0l-75.937,75.937L30.554,5.242c-6.99-6.99-18.322-6.99-25.312,0c-6.989,6.99-6.989,18.323,0,25.312l75.937,75.936L5.242,182.427c-6.989,6.99-6.989,18.323,0,25.312c6.99,6.99,18.322,6.99,25.312,0l75.937-75.937l75.937,75.937c6.989,6.99,18.322,6.99,25.312,0c6.99-6.99,6.99-18.322,0-25.312L131.804,106.491z'
264
- }
265
- })]);
266
- }
267
- };
268
-
269
- function _templateObject2$1() {
270
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\theight: 40px;\n\tposition: absolute;\n\ttop: 8px;\n\tcursor: pointer;\n\tright: 15px;\n\t", "\n\t", "\n width: 11px;\n"]);
185
+ var _templateObject$3;
271
186
 
272
- _templateObject2$1 = function _templateObject2() {
273
- return data;
274
- };
275
-
276
- return data;
277
- }
278
-
279
- function _templateObject$2() {
280
- var data = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tright: 35px;\n"]);
281
-
282
- _templateObject$2 = function _templateObject() {
283
- return data;
284
- };
285
-
286
- return data;
287
- }
288
- var right$1 = styled.css(_templateObject$2());
289
- var MicIcon = styled__default('div')(_templateObject2$1(), function (_ref) {
290
- var iconPosition = _ref.iconPosition,
291
- showClear = _ref.showClear;
292
- if (showClear && iconPosition !== 'left') return 'right: 51px;';
293
-
294
- if (iconPosition === 'right' || showClear) {
295
- return right$1;
296
- }
297
-
298
- return null;
299
- }, function (_ref2) {
300
- var showIcon = _ref2.showIcon,
301
- showClear = _ref2.showClear;
302
- if (!showIcon && showClear) return 'right: 32px;';
303
- if (!showIcon && !showClear) return 'right: 15px;';
304
- return null;
305
- });
306
-
307
- function _templateObject$3() {
308
- var data = _rollupPluginBabelHelpers._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"]);
309
-
310
- _templateObject$3 = function _templateObject() {
311
- return data;
312
- };
313
-
314
- return data;
315
- }
316
-
317
- styled.injectGlobal(_templateObject$3());
187
+ styled.injectGlobal(_templateObject$3 || (_templateObject$3 = _rollupPluginBabelHelpers._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"])));
318
188
  var MicSvg = {
319
189
  name: 'MicSvg',
320
190
  props: ['className'],
@@ -328,6 +198,9 @@ var MicSvg = {
328
198
  "width": 28,
329
199
  "height": 28,
330
200
  "className": this.$props.className
201
+ },
202
+ "style": {
203
+ transform: 'scale(1.5)'
331
204
  }
332
205
  }, [h("g", {
333
206
  "attrs": {
@@ -356,23 +229,18 @@ var MicSvg = {
356
229
  }
357
230
  };
358
231
 
359
- function _templateObject$4() {
360
- var data = _rollupPluginBabelHelpers._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"]);
232
+ var _templateObject$4;
361
233
 
362
- _templateObject$4 = function _templateObject() {
363
- return data;
364
- };
365
-
366
- return data;
367
- }
368
-
369
- styled.injectGlobal(_templateObject$4());
234
+ styled.injectGlobal(_templateObject$4 || (_templateObject$4 = _rollupPluginBabelHelpers._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"])));
370
235
  var MuteSvg = {
371
236
  name: 'MuteSvg',
372
237
  props: ['className'],
373
238
  render: function render() {
374
239
  var h = arguments[0];
375
240
  return h("svg", {
241
+ "style": {
242
+ transform: 'scale(1.5)'
243
+ },
376
244
  "attrs": {
377
245
  "viewBox": "0 0 480 480",
378
246
  "xmlns": "http://www.w3.org/2000/svg",
@@ -419,17 +287,9 @@ var MuteSvg = {
419
287
  }
420
288
  };
421
289
 
422
- function _templateObject$5() {
423
- var data = _rollupPluginBabelHelpers._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"]);
290
+ var _templateObject$5;
424
291
 
425
- _templateObject$5 = function _templateObject() {
426
- return data;
427
- };
428
-
429
- return data;
430
- }
431
-
432
- styled.injectGlobal(_templateObject$5());
292
+ styled.injectGlobal(_templateObject$5 || (_templateObject$5 = _rollupPluginBabelHelpers._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"])));
433
293
  var ListenSvg = {
434
294
  name: 'ListenSvg',
435
295
  props: ['className'],
@@ -444,6 +304,9 @@ var ListenSvg = {
444
304
  "width": 28,
445
305
  "height": 29,
446
306
  "className": this.$props.className
307
+ },
308
+ "style": {
309
+ transform: 'scale(1.5)'
447
310
  }
448
311
  }, [h("defs", [h("path", {
449
312
  "attrs": {
@@ -747,16 +610,16 @@ var Mic = {
747
610
  name: 'Mic',
748
611
  props: {
749
612
  children: vueTypes.types.title,
750
- lang: vueTypes.types.string.def('en-US'),
751
- iconPosition: vueTypes.types.string.def('left'),
613
+ lang: VueTypes.string.def('en-US'),
614
+ iconPosition: VueTypes.string.def('left'),
752
615
  handleResult: vueTypes.types.func,
753
616
  onNoMatch: vueTypes.types.func,
754
617
  onError: vueTypes.types.func,
755
618
  getInstance: vueTypes.types.func,
756
619
  render: vueTypes.types.func,
757
620
  className: vueTypes.types.string,
758
- applyClearStyle: vueTypes.types.bool,
759
- showIcon: vueTypes.types.bool
621
+ applyClearStyle: VueTypes.bool,
622
+ showIcon: VueTypes.bool
760
623
  },
761
624
  methods: {
762
625
  getComponent: function getComponent() {
@@ -927,22 +790,12 @@ var Mic = {
927
790
  },
928
791
  render: function render() {
929
792
  var h = arguments[0];
930
- var _this$$props2 = this.$props,
931
- iconPosition = _this$$props2.iconPosition,
932
- applyClearStyle = _this$$props2.applyClearStyle,
933
- showIcon = _this$$props2.showIcon;
934
793
 
935
794
  if (this.hasCustomRenderer) {
936
795
  return this.getComponent();
937
796
  }
938
797
 
939
- return h(MicIcon, {
940
- "attrs": {
941
- "showIcon": showIcon,
942
- "showClear": applyClearStyle,
943
- "iconPosition": iconPosition
944
- }
945
- }, [this.Icon]);
798
+ return h(CancelSvg.IconWrapper, [this.Icon]);
946
799
  }
947
800
  };
948
801
 
@@ -1034,7 +887,8 @@ var debounce = configureStore.helper.debounce,
1034
887
  withClickIds = configureStore.helper.withClickIds,
1035
888
  getResultStats = configureStore.helper.getResultStats,
1036
889
  handleOnSuggestions = configureStore.helper.handleOnSuggestions,
1037
- getTopSuggestions = configureStore.helper.getTopSuggestions;
890
+ getTopSuggestions = configureStore.helper.getTopSuggestions,
891
+ normalizeDataField = configureStore.helper.normalizeDataField;
1038
892
  var DataSearch = {
1039
893
  name: 'DataSearch',
1040
894
  data: function data() {
@@ -1054,14 +908,13 @@ var DataSearch = {
1054
908
  }
1055
909
  },
1056
910
  created: function created() {
1057
- var _this = this;
1058
-
1059
911
  var _this$$props = this.$props,
1060
912
  enableQuerySuggestions = _this$$props.enableQuerySuggestions,
1061
913
  renderQuerySuggestions = _this$$props.renderQuerySuggestions,
1062
914
  enableRecentSearches = _this$$props.enableRecentSearches,
1063
915
  distinctField = _this$$props.distinctField,
1064
- distinctFieldConfig = _this$$props.distinctFieldConfig; // TODO: Remove in 2.0
916
+ distinctFieldConfig = _this$$props.distinctFieldConfig,
917
+ index$1 = _this$$props.index; // TODO: Remove in 2.0
1065
918
 
1066
919
  if (enableQuerySuggestions) {
1067
920
  console.warn('Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead.');
@@ -1072,14 +925,18 @@ var DataSearch = {
1072
925
  console.warn('Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead.');
1073
926
  }
1074
927
 
1075
- if (this.config.enableAppbase && this.aggregationField && this.aggregationField !== '') {
928
+ if (this.enableAppbase && this.aggregationField && this.aggregationField !== '') {
1076
929
  console.warn('Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead.');
1077
930
  }
1078
931
 
1079
- if (!this.config.enableAppbase && (distinctField || distinctFieldConfig)) {
932
+ if (!this.enableAppbase && (distinctField || distinctFieldConfig)) {
1080
933
  console.warn('Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
1081
934
  }
1082
935
 
936
+ if (!this.enableAppbase && index$1) {
937
+ console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
938
+ }
939
+
1083
940
  this.loadPopularSuggestions(this.$props.componentId);
1084
941
  this.currentValue = this.selectedValue || '';
1085
942
 
@@ -1087,13 +944,7 @@ var DataSearch = {
1087
944
  this.getRecentSearches();
1088
945
  }
1089
946
 
1090
- this.handleTextChange = debounce(function (value) {
1091
- if (_this.$props.autosuggest) {
1092
- _this.updateDefaultQueryHandler(value, _this.$props);
1093
- } else {
1094
- _this.updateQueryHandler(_this.$props.componentId, value, _this.$props);
1095
- }
1096
- }, this.$props.debounce); // Set custom and default queries in store
947
+ this.handleTextChange = debounce(this.handleText, this.$props.debounce); // Set custom and default queries in store
1097
948
 
1098
949
  index.updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
1099
950
  index.updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
@@ -1132,12 +983,12 @@ var DataSearch = {
1132
983
  }
1133
984
 
1134
985
  var customDefaultPopularSuggestions = (this.defaultPopularSuggestions || []).map(function (suggestion) {
1135
- return _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, suggestion), {}, {
986
+ return _rollupPluginBabelHelpers._extends({}, suggestion, {
1136
987
  _popular_suggestion: true
1137
988
  });
1138
989
  });
1139
990
  var customNormalizedRecentSearches = (this.normalizedRecentSearches || []).map(function (search) {
1140
- return _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, search), {}, {
991
+ return _rollupPluginBabelHelpers._extends({}, search, {
1141
992
  _recent_search: true
1142
993
  });
1143
994
  });
@@ -1154,7 +1005,7 @@ var DataSearch = {
1154
1005
  },
1155
1006
  props: {
1156
1007
  options: vueTypes.types.options,
1157
- autoFocus: vueTypes.types.bool,
1008
+ autoFocus: VueTypes.bool,
1158
1009
  autosuggest: VueTypes.bool.def(true),
1159
1010
  beforeValueChange: vueTypes.types.func,
1160
1011
  className: VueTypes.string.def(''),
@@ -1163,29 +1014,35 @@ var DataSearch = {
1163
1014
  customHighlight: vueTypes.types.func,
1164
1015
  customQuery: vueTypes.types.func,
1165
1016
  defaultQuery: vueTypes.types.func,
1166
- dataField: VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string)]),
1017
+ dataField: VueTypes.oneOfType([VueTypes.string, VueTypes.shape({
1018
+ field: VueTypes.string,
1019
+ weight: VueTypes.number
1020
+ }), VueTypes.arrayOf(VueTypes.string), VueTypes.arrayOf({
1021
+ field: VueTypes.string,
1022
+ weight: VueTypes.number
1023
+ })]),
1167
1024
  aggregationField: vueTypes.types.string,
1168
1025
  aggregationSize: VueTypes.number,
1169
- size: VueTypes.number.def(10),
1026
+ size: VueTypes.number,
1170
1027
  debounce: VueTypes.number.def(0),
1171
1028
  defaultValue: vueTypes.types.string,
1172
- excludeFields: vueTypes.types.excludeFields.def([]),
1029
+ excludeFields: vueTypes.types.excludeFields,
1173
1030
  value: vueTypes.types.value,
1174
1031
  defaultSuggestions: vueTypes.types.suggestions,
1175
- enableSynonyms: vueTypes.types.bool.def(true),
1032
+ enableSynonyms: VueTypes.bool.def(true),
1176
1033
  enableQuerySuggestions: VueTypes.bool.def(false),
1177
1034
  enablePopularSuggestions: VueTypes.bool.def(false),
1178
1035
  enableRecentSearches: VueTypes.bool.def(false),
1179
1036
  fieldWeights: vueTypes.types.fieldWeights,
1180
1037
  filterLabel: vueTypes.types.string,
1181
1038
  fuzziness: vueTypes.types.fuzziness,
1182
- highlight: vueTypes.types.bool,
1039
+ highlight: VueTypes.bool,
1183
1040
  highlightField: vueTypes.types.stringOrArray,
1184
1041
  icon: vueTypes.types.children,
1185
1042
  iconPosition: VueTypes.oneOf(['left', 'right']).def('left'),
1186
- includeFields: vueTypes.types.includeFields.def(['*']),
1043
+ includeFields: vueTypes.types.includeFields,
1187
1044
  innerClass: vueTypes.types.style,
1188
- innerRef: vueTypes.types.string,
1045
+ innerRef: VueTypes.string.def('searchInputField'),
1189
1046
  render: vueTypes.types.func,
1190
1047
  renderQuerySuggestions: vueTypes.types.func,
1191
1048
  renderPopularSuggestions: vueTypes.types.func,
@@ -1208,11 +1065,17 @@ var DataSearch = {
1208
1065
  recentSearchesIcon: VueTypes.any,
1209
1066
  popularSearchesIcon: VueTypes.any,
1210
1067
  // mic props
1211
- showVoiceSearch: vueTypes.types.bool.def(false),
1068
+ showVoiceSearch: VueTypes.bool.def(false),
1212
1069
  getMicInstance: vueTypes.types.func,
1213
1070
  renderMic: vueTypes.types.func,
1214
1071
  distinctField: vueTypes.types.string,
1215
- distinctFieldConfig: vueTypes.types.props
1072
+ distinctFieldConfig: vueTypes.types.props,
1073
+ //
1074
+ focusShortcuts: VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string, VueTypes.number])).def(['/']),
1075
+ addonBefore: VueTypes.any,
1076
+ addonAfter: VueTypes.any,
1077
+ expandSuggestionsContainer: VueTypes.bool.def(true),
1078
+ index: VueTypes.string
1216
1079
  },
1217
1080
  beforeMount: function beforeMount() {
1218
1081
  if (this.$props.highlight) {
@@ -1221,7 +1084,7 @@ var DataSearch = {
1221
1084
  }
1222
1085
 
1223
1086
  var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1224
- this.queryOptions = _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, queryOptions), this.getBasicQueryOptions());
1087
+ this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1225
1088
  this.setQueryOptions(this.$props.componentId, this.queryOptions);
1226
1089
  } else {
1227
1090
  this.queryOptions = this.getBasicQueryOptions();
@@ -1236,6 +1099,9 @@ var DataSearch = {
1236
1099
  this.setValue(this.$props.defaultValue, true);
1237
1100
  }
1238
1101
  },
1102
+ mounted: function mounted() {
1103
+ this.listenForFocusShortcuts();
1104
+ },
1239
1105
  watch: {
1240
1106
  highlight: function highlight() {
1241
1107
  this.updateQueryOptions();
@@ -1286,14 +1152,24 @@ var DataSearch = {
1286
1152
  if (oldVal !== newVal && this.$data.currentValue !== newVal) {
1287
1153
  if (!newVal && this.$data.currentValue) {
1288
1154
  // selected value is cleared, call onValueSelected
1289
- this.onValueSelectedHandler("", configureStore.causes.CLEAR_VALUE);
1155
+ this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
1290
1156
  }
1291
1157
 
1292
1158
  this.setValue(newVal || '', true, this.$props);
1293
1159
  }
1160
+ },
1161
+ focusShortcuts: function focusShortcuts() {
1162
+ this.listenForFocusShortcuts();
1294
1163
  }
1295
1164
  },
1296
1165
  methods: {
1166
+ handleText: function handleText(value) {
1167
+ if (this.$props.autosuggest) {
1168
+ this.updateDefaultQueryHandler(value, this.$props);
1169
+ } else {
1170
+ this.updateQueryHandler(this.$props.componentId, value, this.$props);
1171
+ }
1172
+ },
1297
1173
  validateDataField: function validateDataField() {
1298
1174
  var propName = 'dataField';
1299
1175
  var componentName = DataSearch.name;
@@ -1301,13 +1177,13 @@ var DataSearch = {
1301
1177
  var requiredError = propName + " supplied to " + componentName + " is required. Validation failed.";
1302
1178
  var propValue = props[propName];
1303
1179
 
1304
- if (this.config && !this.config.enableAppbase) {
1180
+ if (!this.enableAppbase) {
1305
1181
  if (!propValue) {
1306
1182
  console.error(requiredError);
1307
1183
  return;
1308
1184
  }
1309
1185
 
1310
- if (typeof propValue !== 'string' && !Array.isArray(propValue)) {
1186
+ if (typeof propValue !== 'string' && typeof propValue !== 'object' && !Array.isArray(propValue)) {
1311
1187
  console.error("Invalid " + propName + " supplied to " + componentName + ". Validation failed.");
1312
1188
  return;
1313
1189
  }
@@ -1323,7 +1199,7 @@ var DataSearch = {
1323
1199
  }
1324
1200
 
1325
1201
  var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1326
- this.queryOptions = _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, queryOptions), this.getBasicQueryOptions());
1202
+ this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1327
1203
  this.setQueryOptions(this.$props.componentId, this.queryOptions);
1328
1204
  },
1329
1205
  getComponent: function getComponent(downshiftProps, isQuerySuggestionsRender) {
@@ -1391,7 +1267,7 @@ var DataSearch = {
1391
1267
  }
1392
1268
  },
1393
1269
  setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen) {
1394
- var _this2 = this;
1270
+ var _this = this;
1395
1271
 
1396
1272
  if (isDefaultValue === void 0) {
1397
1273
  isDefaultValue = false;
@@ -1407,51 +1283,51 @@ var DataSearch = {
1407
1283
 
1408
1284
  var performUpdate = function performUpdate() {
1409
1285
  // Refresh recent searches when value becomes empty
1410
- if (!value && _this2.currentValue && _this2.enableRecentSearches) {
1411
- _this2.getRecentSearches();
1286
+ if (!value && _this.currentValue && _this.enableRecentSearches) {
1287
+ _this.getRecentSearches();
1412
1288
  }
1413
1289
 
1414
- _this2.currentValue = value;
1290
+ _this.currentValue = value;
1415
1291
 
1416
1292
  if (isDefaultValue) {
1417
- if (_this2.$props.autosuggest) {
1293
+ if (_this.$props.autosuggest) {
1418
1294
  if (toggleIsOpen) {
1419
- _this2.isOpen = false;
1295
+ _this.isOpen = false;
1420
1296
  }
1421
1297
 
1422
- _this2.updateDefaultQueryHandler(value, _this2.$props);
1298
+ _this.updateDefaultQueryHandler(value, _this.$props);
1423
1299
  } // in case of strict selection only SUGGESTION_SELECT should be able
1424
1300
  // to set the query otherwise the value should reset
1425
1301
 
1426
1302
 
1427
1303
  if (props.strictSelection) {
1428
1304
  if (cause === configureStore.causes.SUGGESTION_SELECT || value === '') {
1429
- _this2.updateQueryHandler(props.componentId, value, props);
1305
+ _this.updateQueryHandler(props.componentId, value, props);
1430
1306
  } else {
1431
- _this2.setValue('', true);
1307
+ _this.setValue('', true);
1432
1308
  }
1433
1309
  } else {
1434
- _this2.updateQueryHandler(props.componentId, value, props);
1310
+ _this.updateQueryHandler(props.componentId, value, props);
1435
1311
  }
1436
1312
  } else {
1437
1313
  // debounce for handling text while typing
1438
- _this2.handleTextChange(value);
1314
+ _this.handleTextChange(value);
1439
1315
  }
1440
1316
 
1441
- _this2.$emit('valueChange', value);
1317
+ _this.$emit('valueChange', value);
1442
1318
 
1443
- _this2.$emit('value-change', value); // Set the already fetched suggestions if query is same as used last to fetch the hits
1319
+ _this.$emit('value-change', value); // Set the already fetched suggestions if query is same as used last to fetch the hits
1444
1320
 
1445
1321
 
1446
- if (value === _this2.lastUsedQuery) {
1447
- _this2.suggestions = _this2.onSuggestions(_this2.suggestions); // invoke on suggestions
1322
+ if (value === _this.lastUsedQuery) {
1323
+ _this.suggestions = _this.onSuggestions(_this.suggestions); // invoke on suggestions
1448
1324
 
1449
- _this2.$emit('suggestions', _this2.suggestions);
1325
+ _this.$emit('suggestions', _this.suggestions);
1450
1326
  } else if (!value) {
1451
1327
  // reset suggestions
1452
- _this2.suggestions = []; // invoke on suggestions
1328
+ _this.suggestions = []; // invoke on suggestions
1453
1329
 
1454
- _this2.$emit('suggestions', _this2.suggestions);
1330
+ _this.$emit('suggestions', _this.suggestions);
1455
1331
  }
1456
1332
  };
1457
1333
 
@@ -1473,7 +1349,7 @@ var DataSearch = {
1473
1349
  index.updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
1474
1350
  }
1475
1351
 
1476
- this.setQueryOptions(this.internalComponent, _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, this.queryOptions), defaultQueryOptions));
1352
+ this.setQueryOptions(this.internalComponent, _rollupPluginBabelHelpers._extends({}, this.queryOptions, defaultQueryOptions), false);
1477
1353
  this.updateQuery({
1478
1354
  componentId: this.internalComponent,
1479
1355
  query: query,
@@ -1500,7 +1376,7 @@ var DataSearch = {
1500
1376
 
1501
1377
  customQueryOptions = getOptionsFromQuery(customQueryTobeSet);
1502
1378
  index.updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
1503
- this.setQueryOptions(componentId, _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, this.queryOptions), customQueryOptions));
1379
+ this.setQueryOptions(componentId, _rollupPluginBabelHelpers._extends({}, this.queryOptions, customQueryOptions), false);
1504
1380
  }
1505
1381
 
1506
1382
  if (!this.isPending) {
@@ -1518,10 +1394,7 @@ var DataSearch = {
1518
1394
  // need to review
1519
1395
  handleFocus: function handleFocus(event) {
1520
1396
  this.isOpen = true;
1521
-
1522
- if (this.$props.onFocus) {
1523
- this.$emit('focus', event);
1524
- }
1397
+ this.$emit('focus', event);
1525
1398
  },
1526
1399
  handleVoiceResults: function handleVoiceResults(_ref) {
1527
1400
  var results = _ref.results;
@@ -1529,18 +1402,18 @@ var DataSearch = {
1529
1402
  if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
1530
1403
  this.isPending = false;
1531
1404
  this.setValue(results[0][0].transcript.trim(), true);
1532
-
1533
- if (this.$props.autosuggest) {
1534
- this.isOpen = true;
1535
- }
1536
1405
  }
1537
1406
  },
1538
- triggerQuery: function triggerQuery() {
1407
+ triggerQuery: function triggerQuery(_temp) {
1408
+ var _ref2 = _temp === void 0 ? false : _temp,
1409
+ _ref2$isOpen = _ref2.isOpen,
1410
+ isOpen = _ref2$isOpen === void 0 ? false : _ref2$isOpen;
1411
+
1539
1412
  var value = this.$props.value;
1540
1413
 
1541
1414
  if (value !== undefined) {
1542
1415
  this.isPending = false;
1543
- this.setValue(this.$props.value, true);
1416
+ this.setValue(this.$props.value, !isOpen);
1544
1417
  }
1545
1418
  },
1546
1419
  triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
@@ -1562,7 +1435,7 @@ var DataSearch = {
1562
1435
  clearValue: function clearValue() {
1563
1436
  this.isPending = false;
1564
1437
  this.setValue('', true);
1565
- this.onValueSelectedHandler("", configureStore.causes.CLEAR_VALUE);
1438
+ this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
1566
1439
  },
1567
1440
  handleKeyDown: function handleKeyDown(event, highlightedIndex) {
1568
1441
  var value = this.$props.value;
@@ -1578,11 +1451,8 @@ var DataSearch = {
1578
1451
  } // Need to review
1579
1452
 
1580
1453
 
1581
- if (this.$props.onKeyDown) {
1582
- // TODO: Remove camelCase events in 2.0
1583
- this.$emit('keyDown', event, this.triggerQuery);
1584
- this.$emit('key-down', event, this.triggerQuery);
1585
- }
1454
+ this.$emit('keyDown', event, this.triggerQuery);
1455
+ this.$emit('key-down', event, this.triggerQuery);
1586
1456
  },
1587
1457
  onInputChange: function onInputChange(e) {
1588
1458
  var inputValue = e.target.value;
@@ -1608,6 +1478,7 @@ var DataSearch = {
1608
1478
  if (value === undefined) {
1609
1479
  this.setValue(suggestion.value, true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1610
1480
  } else {
1481
+ this.isPending = false;
1611
1482
  this.$emit('change', suggestion.value, this.triggerQuery);
1612
1483
  }
1613
1484
 
@@ -1668,7 +1539,7 @@ var DataSearch = {
1668
1539
  var h = this.$createElement;
1669
1540
 
1670
1541
  if (this.$props.showClear) {
1671
- return this.$props.clearIcon || h(CancelSvg);
1542
+ return this.$props.clearIcon || h(CancelSvg.CancelSvg);
1672
1543
  }
1673
1544
 
1674
1545
  return null;
@@ -1706,6 +1577,26 @@ var DataSearch = {
1706
1577
 
1707
1578
  return null;
1708
1579
  },
1580
+ renderInputAddonBefore: function renderInputAddonBefore() {
1581
+ var h = this.$createElement;
1582
+ var addonBefore = this.$scopedSlots.addonBefore;
1583
+
1584
+ if (addonBefore) {
1585
+ return h(InputAddon, [addonBefore()]);
1586
+ }
1587
+
1588
+ return null;
1589
+ },
1590
+ renderInputAddonAfter: function renderInputAddonAfter() {
1591
+ var h = this.$createElement;
1592
+ var addonAfter = this.$scopedSlots.addonAfter;
1593
+
1594
+ if (addonAfter) {
1595
+ return h(InputAddon, [addonAfter()]);
1596
+ }
1597
+
1598
+ return null;
1599
+ },
1709
1600
  renderIcons: function renderIcons() {
1710
1601
  var h = this.$createElement;
1711
1602
  var _this$$props3 = this.$props,
@@ -1717,13 +1608,16 @@ var DataSearch = {
1717
1608
  showIcon = _this$$props3.showIcon;
1718
1609
  var renderMic = this.$scopedSlots.renderMic || this.$props.renderMic;
1719
1610
  var currentValue = this.$data.currentValue;
1720
- return h("div", [currentValue && showClear && h(InputIcon, {
1611
+ return h("div", [h(CancelSvg.IconGroup, {
1612
+ "attrs": {
1613
+ "groupPosition": "right",
1614
+ "positionType": "absolute"
1615
+ }
1616
+ }, [currentValue && showClear && h(CancelSvg.IconWrapper, {
1721
1617
  "on": {
1722
1618
  "click": this.clearValue
1723
1619
  },
1724
1620
  "attrs": {
1725
- "iconPosition": "right",
1726
- "clearIcon": iconPosition === 'right',
1727
1621
  "showIcon": showIcon,
1728
1622
  "isClearIcon": true
1729
1623
  }
@@ -1731,21 +1625,73 @@ var DataSearch = {
1731
1625
  "attrs": {
1732
1626
  "getInstance": getMicInstance,
1733
1627
  "render": renderMic,
1734
- "iconPosition": iconPosition,
1735
1628
  "handleResult": this.handleVoiceResults,
1736
- "className": getClassName$1(innerClass, 'mic') || null,
1737
- "applyClearStyle": !!currentValue && showClear,
1738
- "showIcon": showIcon
1629
+ "className": getClassName$1(innerClass, 'mic') || null
1739
1630
  }
1740
- }), h(InputIcon, {
1631
+ }), iconPosition === 'right' && showIcon && h(CancelSvg.IconWrapper, {
1741
1632
  "on": {
1742
1633
  "click": this.handleSearchIconClick
1743
- },
1634
+ }
1635
+ }, [this.renderIcon()])]), h(CancelSvg.IconGroup, {
1744
1636
  "attrs": {
1745
- "showIcon": showIcon,
1746
- "iconPosition": iconPosition
1637
+ "groupPosition": "left",
1638
+ "positionType": "absolute"
1639
+ }
1640
+ }, [iconPosition === 'left' && showIcon && h(CancelSvg.IconWrapper, {
1641
+ "on": {
1642
+ "click": this.handleSearchIconClick
1643
+ }
1644
+ }, [this.renderIcon()])])]);
1645
+ },
1646
+ focusSearchBox: function focusSearchBox(event) {
1647
+ var _this$$refs, _this$$refs$this$$pro;
1648
+
1649
+ var elt = event.target || event.srcElement;
1650
+ var tagName = elt.tagName;
1651
+
1652
+ if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
1653
+ // already in an input
1654
+ return;
1655
+ }
1656
+
1657
+ (_this$$refs = this.$refs) == null ? void 0 : (_this$$refs$this$$pro = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs$this$$pro.focus(); // eslint-disable-line
1658
+ },
1659
+ listenForFocusShortcuts: function listenForFocusShortcuts() {
1660
+ var _this2 = this;
1661
+
1662
+ var _this$$props$focusSho = this.$props.focusShortcuts,
1663
+ focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
1664
+
1665
+ if (index.isEmpty(focusShortcuts)) {
1666
+ return;
1667
+ }
1668
+
1669
+ var shortcutsString = index.parseFocusShortcuts(focusShortcuts).join(','); // handler for alphabets and other key combinations
1670
+
1671
+ hotkeys(shortcutsString, // eslint-disable-next-line no-unused-vars
1672
+
1673
+ /* eslint-disable no-shadow */
1674
+ function (event, handler) {
1675
+ // Prevent the default refresh event under WINDOWS system
1676
+ event.preventDefault();
1677
+
1678
+ _this2.focusSearchBox(event);
1679
+ }); // if one of modifier keys are used, they are handled below
1680
+
1681
+ hotkeys('*', function (event) {
1682
+ var modifierKeys = index.extractModifierKeysFromFocusShortcuts(focusShortcuts);
1683
+ if (modifierKeys.length === 0) return;
1684
+
1685
+ for (var index$1 = 0; index$1 < modifierKeys.length; index$1 += 1) {
1686
+ var element = modifierKeys[index$1];
1687
+
1688
+ if (hotkeys[element]) {
1689
+ _this2.focusSearchBox(event);
1690
+
1691
+ break;
1692
+ }
1747
1693
  }
1748
- }, [this.renderIcon()])]);
1694
+ });
1749
1695
  }
1750
1696
  },
1751
1697
  render: function render() {
@@ -1754,7 +1700,8 @@ var DataSearch = {
1754
1700
  var h = arguments[0];
1755
1701
  var _this$$props4 = this.$props,
1756
1702
  theme = _this$$props4.theme,
1757
- size = _this$$props4.size;
1703
+ size = _this$$props4.size,
1704
+ expandSuggestionsContainer = _this$$props4.expandSuggestionsContainer;
1758
1705
  var _this$$scopedSlots = this.$scopedSlots,
1759
1706
  recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
1760
1707
  popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
@@ -1763,7 +1710,7 @@ var DataSearch = {
1763
1710
  "class": this.$props.className
1764
1711
  }, [this.$props.title && h(Title.Title, {
1765
1712
  "class": getClassName$1(this.$props.innerClass, 'title') || ''
1766
- }, [this.$props.title]), this.$props.defaultSuggestions || this.$props.autosuggest ? h(DownShift.Downshift, {
1713
+ }, [this.$props.title]), this.$props.defaultSuggestions || this.$props.autosuggest ? h(CancelSvg.Downshift, {
1767
1714
  "attrs": {
1768
1715
  "id": this.$props.componentId + "-downshift",
1769
1716
  "handleChange": this.onSuggestionSelected,
@@ -1771,25 +1718,125 @@ var DataSearch = {
1771
1718
  "isOpen": this.$data.isOpen
1772
1719
  },
1773
1720
  "scopedSlots": {
1774
- "default": function _default(_ref2) {
1775
- var getInputEvents = _ref2.getInputEvents,
1776
- getInputProps = _ref2.getInputProps,
1777
- getItemProps = _ref2.getItemProps,
1778
- getItemEvents = _ref2.getItemEvents,
1779
- isOpen = _ref2.isOpen,
1780
- highlightedIndex = _ref2.highlightedIndex,
1781
- setHighlightedIndex = _ref2.setHighlightedIndex;
1721
+ "default": function _default(_ref3) {
1722
+ var getInputEvents = _ref3.getInputEvents,
1723
+ getInputProps = _ref3.getInputProps,
1724
+ getItemProps = _ref3.getItemProps,
1725
+ getItemEvents = _ref3.getItemEvents,
1726
+ isOpen = _ref3.isOpen,
1727
+ highlightedIndex = _ref3.highlightedIndex,
1728
+ setHighlightedIndex = _ref3.setHighlightedIndex;
1729
+
1730
+ var renderSuggestionsContainer = function renderSuggestionsContainer() {
1731
+ return h("div", [_this3.hasCustomRenderer && _this3.getComponent({
1732
+ isOpen: isOpen,
1733
+ getItemProps: getItemProps,
1734
+ getItemEvents: getItemEvents,
1735
+ highlightedIndex: highlightedIndex
1736
+ }), _this3.renderErrorComponent(), !_this3.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1737
+ "class": Input.suggestions(_this3.themePreset, theme) + " " + getClassName$1(_this3.$props.innerClass, 'list')
1738
+ }, [_this3.suggestionsList.slice(0, size || 10).map(function (item, index) {
1739
+ return h("li", {
1740
+ "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1741
+ item: item
1742
+ })),
1743
+ "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1744
+ item: item
1745
+ })),
1746
+ "key": index + 1 + "-" + item.value,
1747
+ "style": {
1748
+ backgroundColor: _this3.getBackgroundColor(highlightedIndex, index)
1749
+ }
1750
+ }, [h(SuggestionItem, {
1751
+ "attrs": {
1752
+ "currentValue": _this3.currentValue,
1753
+ "suggestion": item
1754
+ }
1755
+ })]);
1756
+ }), _this3.defaultSearchSuggestions.map(function (sugg, index) {
1757
+ return h("li", {
1758
+ "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1759
+ item: sugg
1760
+ })),
1761
+ "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1762
+ item: sugg
1763
+ })),
1764
+ "key": _this3.suggestionsList.length + index + 1 + "-" + sugg.value,
1765
+ "style": {
1766
+ backgroundColor: _this3.getBackgroundColor(highlightedIndex, _this3.suggestionsList.length + index),
1767
+ justifyContent: 'flex-start'
1768
+ }
1769
+ }, [h("div", {
1770
+ "style": {
1771
+ padding: '0 10px 0 0'
1772
+ }
1773
+ }, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
1774
+ "attrs": {
1775
+ "className": getClassName$1(_this3.$props.innerClass, 'recent-search-icon') || null,
1776
+ "icon": recentSearchesIcon,
1777
+ "type": "recent-search-icon"
1778
+ }
1779
+ }), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
1780
+ "attrs": {
1781
+ "className": getClassName$1(_this3.$props.innerClass, 'popular-search-icon') || null,
1782
+ "icon": popularSearchesIcon,
1783
+ "type": "popular-search-icon"
1784
+ }
1785
+ })]), h(SuggestionItem, {
1786
+ "attrs": {
1787
+ "currentValue": _this3.currentValue,
1788
+ "suggestion": sugg
1789
+ }
1790
+ })]);
1791
+ }), index.hasQuerySuggestionsRenderer(_this3) ? _this3.getComponent({
1792
+ isOpen: isOpen,
1793
+ getItemProps: getItemProps,
1794
+ getItemEvents: getItemEvents,
1795
+ highlightedIndex: highlightedIndex
1796
+ }, true) : _this3.topSuggestions.map(function (sugg, index) {
1797
+ return h("li", {
1798
+ "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1799
+ item: sugg
1800
+ })),
1801
+ "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1802
+ item: sugg
1803
+ })),
1804
+ "key": _this3.suggestionsList.length + index + 1 + "-" + sugg.value,
1805
+ "style": {
1806
+ backgroundColor: _this3.getBackgroundColor(highlightedIndex, _this3.suggestionsList.length + index),
1807
+ justifyContent: 'flex-start'
1808
+ }
1809
+ }, [h("div", {
1810
+ "style": {
1811
+ padding: '0 10px 0 0'
1812
+ }
1813
+ }, [h(CustomSvg, {
1814
+ "attrs": {
1815
+ "className": getClassName$1(_this3.$props.innerClass, 'popular-search-icon') || null,
1816
+ "icon": popularSearchesIcon,
1817
+ "type": "popular-search-icon"
1818
+ }
1819
+ })]), h(SuggestionItem, {
1820
+ "attrs": {
1821
+ "currentValue": _this3.currentValue,
1822
+ "suggestion": sugg
1823
+ }
1824
+ })]);
1825
+ })]) : _this3.renderNoSuggestions(_this3.suggestionsList)]);
1826
+ };
1827
+
1782
1828
  return h("div", {
1783
1829
  "class": Input.suggestionsContainer
1784
- }, [h(Input.Input, {
1830
+ }, [h(InputGroup, [_this3.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1785
1831
  "attrs": {
1786
1832
  "id": _this3.$props.componentId + "-input",
1787
1833
  "showIcon": _this3.$props.showIcon,
1788
1834
  "showClear": _this3.$props.showClear,
1789
1835
  "iconPosition": _this3.$props.iconPosition,
1790
1836
  "placeholder": _this3.$props.placeholder,
1837
+ "autoFocus": _this3.$props.autoFocus,
1791
1838
  "themePreset": _this3.themePreset,
1792
- "autocomplete": 'off'
1839
+ "autocomplete": "off"
1793
1840
  },
1794
1841
  "ref": _this3.$props.innerRef,
1795
1842
  "class": getClassName$1(_this3.$props.innerClass, 'input'),
@@ -1819,113 +1866,18 @@ var DataSearch = {
1819
1866
  "domProps": _rollupPluginBabelHelpers._extends({}, getInputProps({
1820
1867
  value: _this3.$data.currentValue === null ? '' : _this3.$data.currentValue
1821
1868
  }))
1822
- }), _this3.renderIcons(), _this3.hasCustomRenderer && _this3.getComponent({
1823
- isOpen: isOpen,
1824
- getItemProps: getItemProps,
1825
- getItemEvents: getItemEvents,
1826
- highlightedIndex: highlightedIndex
1827
- }), _this3.renderErrorComponent(), !_this3.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1828
- "class": Input.suggestions(_this3.themePreset, theme) + " " + getClassName$1(_this3.$props.innerClass, 'list')
1829
- }, [_this3.suggestionsList.slice(0, size).map(function (item, index) {
1830
- return h("li", {
1831
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1832
- item: item
1833
- })),
1834
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1835
- item: item
1836
- })),
1837
- "key": index + 1 + "-" + item.value,
1838
- "style": {
1839
- backgroundColor: _this3.getBackgroundColor(highlightedIndex, index)
1840
- }
1841
- }, [h(SuggestionItem, {
1842
- "attrs": {
1843
- "currentValue": _this3.currentValue,
1844
- "suggestion": item
1845
- }
1846
- })]);
1847
- }), _this3.defaultSearchSuggestions.map(function (sugg, index) {
1848
- return h("li", {
1849
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1850
- item: sugg
1851
- })),
1852
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1853
- item: sugg
1854
- })),
1855
- "key": _this3.suggestionsList.length + index + 1 + "-" + sugg.value,
1856
- "style": {
1857
- backgroundColor: _this3.getBackgroundColor(highlightedIndex, _this3.suggestionsList.length + index),
1858
- justifyContent: 'flex-start'
1859
- }
1860
- }, [h("div", {
1861
- "style": {
1862
- padding: '0 10px 0 0'
1863
- }
1864
- }, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
1865
- "attrs": {
1866
- "className": getClassName$1(_this3.$props.innerClass, 'recent-search-icon') || null,
1867
- "icon": recentSearchesIcon,
1868
- "type": "recent-search-icon"
1869
- }
1870
- }), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
1871
- "attrs": {
1872
- "className": getClassName$1(_this3.$props.innerClass, 'popular-search-icon') || null,
1873
- "icon": popularSearchesIcon,
1874
- "type": "popular-search-icon"
1875
- }
1876
- })]), h(SuggestionItem, {
1877
- "attrs": {
1878
- "currentValue": _this3.currentValue,
1879
- "suggestion": sugg
1880
- }
1881
- })]);
1882
- }), index.hasQuerySuggestionsRenderer(_this3) ? _this3.getComponent({
1883
- isOpen: isOpen,
1884
- getItemProps: getItemProps,
1885
- getItemEvents: getItemEvents,
1886
- highlightedIndex: highlightedIndex
1887
- }, true) : _this3.topSuggestions.map(function (sugg, index) {
1888
- return h("li", {
1889
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1890
- item: sugg
1891
- })),
1892
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1893
- item: sugg
1894
- })),
1895
- "key": _this3.suggestionsList.length + index + 1 + "-" + sugg.value,
1896
- "style": {
1897
- backgroundColor: _this3.getBackgroundColor(highlightedIndex, _this3.suggestionsList.length + index),
1898
- justifyContent: 'flex-start'
1899
- }
1900
- }, [h("div", {
1901
- "style": {
1902
- padding: '0 10px 0 0'
1903
- }
1904
- }, [h(CustomSvg, {
1905
- "attrs": {
1906
- "className": getClassName$1(_this3.$props.innerClass, 'popular-search-icon') || null,
1907
- "icon": popularSearchesIcon,
1908
- "type": "popular-search-icon"
1909
- }
1910
- })]), h(SuggestionItem, {
1911
- "attrs": {
1912
- "currentValue": _this3.currentValue,
1913
- "suggestion": sugg
1914
- }
1915
- })]);
1916
- })]) : _this3.renderNoSuggestions(_this3.suggestionsList), ' ']);
1869
+ }), _this3.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this3.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer()]);
1917
1870
  }
1918
1871
  }
1919
1872
  }) : h("div", {
1920
1873
  "class": Input.suggestionsContainer
1921
- }, [h(Input.Input, {
1874
+ }, [h(InputGroup, [this.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1922
1875
  "class": getClassName$1(this.$props.innerClass, 'input') || '',
1923
1876
  "attrs": {
1924
1877
  "placeholder": this.$props.placeholder,
1925
1878
  "iconPosition": this.$props.iconPosition,
1926
1879
  "showIcon": this.$props.showIcon,
1927
1880
  "showClear": this.$props.showClear,
1928
- "innerRef": this.$props.innerRef,
1929
1881
  "themePreset": this.themePreset
1930
1882
  },
1931
1883
  "on": _rollupPluginBabelHelpers._extends({}, {
@@ -1955,22 +1907,20 @@ var DataSearch = {
1955
1907
  "domProps": _rollupPluginBabelHelpers._extends({}, {
1956
1908
  autofocus: this.$props.autoFocus,
1957
1909
  value: this.$data.currentValue ? this.$data.currentValue : ''
1958
- })
1959
- }), this.renderIcons()])]);
1910
+ }),
1911
+ "ref": this.$props.innerRef
1912
+ }), this.renderIcons()]), this.renderInputAddonAfter()])])]);
1913
+ },
1914
+ destroyed: function destroyed() {
1915
+ document.removeEventListener('keydown', this.onKeyDown);
1960
1916
  }
1961
1917
  };
1962
1918
 
1963
1919
  DataSearch.defaultQuery = function (value, props) {
1964
1920
  var finalQuery = null;
1965
- var fields = [];
1966
1921
 
1967
1922
  if (value) {
1968
- if (Array.isArray(props.dataField)) {
1969
- fields = props.dataField;
1970
- } else if (props.dataField) {
1971
- fields = [props.dataField];
1972
- }
1973
-
1923
+ var fields = normalizeDataField(props.dataField, props.fieldWeights);
1974
1924
  finalQuery = {
1975
1925
  bool: {
1976
1926
  should: DataSearch.shouldQuery(value, fields, props),
@@ -2000,10 +1950,10 @@ DataSearch.defaultQuery = function (value, props) {
2000
1950
  DataSearch.shouldQuery = function (value, dataFields, props) {
2001
1951
  var finalQuery = [];
2002
1952
  var phrasePrefixFields = [];
2003
- var fields = (dataFields || []).map(function (field, index) {
2004
- var queryField = "" + field + (Array.isArray(props.fieldWeights) && props.fieldWeights[index] ? "^" + props.fieldWeights[index] : '');
1953
+ var fields = dataFields.map(function (dataField) {
1954
+ var queryField = "" + dataField.field + (dataField.weight ? "^" + dataField.weight : '');
2005
1955
 
2006
- if (!(field.endsWith('.keyword') || field.endsWith('.autosuggest') || field.endsWith('.search'))) {
1956
+ if (!(dataField.field.endsWith('.keyword') || dataField.field.endsWith('.autosuggest') || dataField.field.endsWith('.search'))) {
2007
1957
  phrasePrefixFields.push(queryField);
2008
1958
  }
2009
1959
 
@@ -2123,7 +2073,7 @@ var mapStateToProps = function mapStateToProps(state, props) {
2123
2073
  themePreset: state.config.themePreset,
2124
2074
  error: state.error[props.componentId],
2125
2075
  analytics: state.analytics,
2126
- config: state.config,
2076
+ enableAppbase: state.config.enableAppbase,
2127
2077
  headers: state.appbaseRef.headers,
2128
2078
  promotedResults: state.promotedResults[props.componentId] || [],
2129
2079
  customData: state.customData[props.componentId],