@appbaseio/reactivesearch-vue 1.16.0-alpha.4 → 1.16.0-alpha.42

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 +8110 -7499
  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-7302fe1a.js} +40 -21
  9. package/dist/cjs/{Container-f84e72fc.js → Container-8a08d663.js} +3 -11
  10. package/dist/cjs/DataSearch.js +354 -398
  11. package/dist/cjs/{DropDown-c66be1a8.js → DropDown-c46d8b0c.js} +80 -95
  12. package/dist/cjs/DynamicRangeSlider.js +107 -42
  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 +101 -65
  18. package/dist/cjs/MultiList.js +79 -47
  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 +29 -45
  22. package/dist/cjs/RangeSlider.js +31 -28
  23. package/dist/cjs/ReactiveBase.js +55 -34
  24. package/dist/cjs/ReactiveComponent.js +69 -62
  25. package/dist/cjs/ReactiveGoogleMap.js +326 -235
  26. package/dist/cjs/ReactiveList.js +188 -241
  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 +87 -57
  31. package/dist/cjs/SingleList.js +60 -37
  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-d44a0a21.js} +87 -13
  38. package/dist/cjs/index.js +23 -19
  39. package/dist/cjs/initReactivesearch.js +190 -103
  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-bbb717bc.js} +40 -21
  49. package/dist/es/Container-4383c6f0.js +10 -0
  50. package/dist/es/DataSearch.js +352 -396
  51. package/dist/es/{DropDown-5dbd69c2.js → DropDown-4edaa621.js} +79 -94
  52. package/dist/es/DynamicRangeSlider.js +107 -42
  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 +101 -65
  58. package/dist/es/MultiList.js +79 -47
  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 +29 -45
  62. package/dist/es/RangeSlider.js +31 -28
  63. package/dist/es/ReactiveBase.js +55 -34
  64. package/dist/es/ReactiveComponent.js +69 -62
  65. package/dist/es/ReactiveGoogleMap.js +326 -235
  66. package/dist/es/ReactiveList.js +188 -241
  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 +87 -57
  71. package/dist/es/SingleList.js +60 -37
  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-5daa8276.js} +84 -14
  78. package/dist/es/index.js +23 -19
  79. package/dist/es/initReactivesearch.js +191 -104
  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 +7 -5
  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-d44a0a21.js');
21
+ var ComponentWrapper = require('./ComponentWrapper-7302fe1a.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"]);
361
-
362
- _templateObject$4 = function _templateObject() {
363
- return data;
364
- };
365
-
366
- return data;
367
- }
232
+ var _templateObject$4;
368
233
 
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
 
@@ -1028,13 +881,15 @@ var updateQuery = configureStore.Actions.updateQuery,
1028
881
  var debounce = configureStore.helper.debounce,
1029
882
  checkValueChange = configureStore.helper.checkValueChange,
1030
883
  getClassName$1 = configureStore.helper.getClassName,
1031
- getOptionsFromQuery = configureStore.helper.getOptionsFromQuery,
884
+ extractQueryFromCustomQuery = configureStore.helper.extractQueryFromCustomQuery,
885
+ getOptionsForCustomQuery = configureStore.helper.getOptionsForCustomQuery,
1032
886
  isEqual = configureStore.helper.isEqual,
1033
887
  getCompositeAggsQuery = configureStore.helper.getCompositeAggsQuery,
1034
888
  withClickIds = configureStore.helper.withClickIds,
1035
889
  getResultStats = configureStore.helper.getResultStats,
1036
890
  handleOnSuggestions = configureStore.helper.handleOnSuggestions,
1037
- getTopSuggestions = configureStore.helper.getTopSuggestions;
891
+ getTopSuggestions = configureStore.helper.getTopSuggestions,
892
+ normalizeDataField = configureStore.helper.normalizeDataField;
1038
893
  var DataSearch = {
1039
894
  name: 'DataSearch',
1040
895
  data: function data() {
@@ -1054,14 +909,13 @@ var DataSearch = {
1054
909
  }
1055
910
  },
1056
911
  created: function created() {
1057
- var _this = this;
1058
-
1059
912
  var _this$$props = this.$props,
1060
913
  enableQuerySuggestions = _this$$props.enableQuerySuggestions,
1061
914
  renderQuerySuggestions = _this$$props.renderQuerySuggestions,
1062
915
  enableRecentSearches = _this$$props.enableRecentSearches,
1063
916
  distinctField = _this$$props.distinctField,
1064
- distinctFieldConfig = _this$$props.distinctFieldConfig; // TODO: Remove in 2.0
917
+ distinctFieldConfig = _this$$props.distinctFieldConfig,
918
+ index$1 = _this$$props.index; // TODO: Remove in 2.0
1065
919
 
1066
920
  if (enableQuerySuggestions) {
1067
921
  console.warn('Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead.');
@@ -1072,14 +926,18 @@ var DataSearch = {
1072
926
  console.warn('Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead.');
1073
927
  }
1074
928
 
1075
- if (this.config.enableAppbase && this.aggregationField && this.aggregationField !== '') {
929
+ if (this.enableAppbase && this.aggregationField && this.aggregationField !== '') {
1076
930
  console.warn('Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead.');
1077
931
  }
1078
932
 
1079
- if (!this.config.enableAppbase && (distinctField || distinctFieldConfig)) {
933
+ if (!this.enableAppbase && (distinctField || distinctFieldConfig)) {
1080
934
  console.warn('Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
1081
935
  }
1082
936
 
937
+ if (!this.enableAppbase && index$1) {
938
+ console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
939
+ }
940
+
1083
941
  this.loadPopularSuggestions(this.$props.componentId);
1084
942
  this.currentValue = this.selectedValue || '';
1085
943
 
@@ -1087,13 +945,7 @@ var DataSearch = {
1087
945
  this.getRecentSearches();
1088
946
  }
1089
947
 
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
948
+ this.handleTextChange = debounce(this.handleText, this.$props.debounce); // Set custom and default queries in store
1097
949
 
1098
950
  index.updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
1099
951
  index.updateDefaultQuery(this.componentId, this.setDefaultQuery, this.$props, this.currentValue);
@@ -1132,12 +984,12 @@ var DataSearch = {
1132
984
  }
1133
985
 
1134
986
  var customDefaultPopularSuggestions = (this.defaultPopularSuggestions || []).map(function (suggestion) {
1135
- return _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, suggestion), {}, {
987
+ return _rollupPluginBabelHelpers._extends({}, suggestion, {
1136
988
  _popular_suggestion: true
1137
989
  });
1138
990
  });
1139
991
  var customNormalizedRecentSearches = (this.normalizedRecentSearches || []).map(function (search) {
1140
- return _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, search), {}, {
992
+ return _rollupPluginBabelHelpers._extends({}, search, {
1141
993
  _recent_search: true
1142
994
  });
1143
995
  });
@@ -1154,7 +1006,7 @@ var DataSearch = {
1154
1006
  },
1155
1007
  props: {
1156
1008
  options: vueTypes.types.options,
1157
- autoFocus: vueTypes.types.bool,
1009
+ autoFocus: VueTypes.bool,
1158
1010
  autosuggest: VueTypes.bool.def(true),
1159
1011
  beforeValueChange: vueTypes.types.func,
1160
1012
  className: VueTypes.string.def(''),
@@ -1163,29 +1015,35 @@ var DataSearch = {
1163
1015
  customHighlight: vueTypes.types.func,
1164
1016
  customQuery: vueTypes.types.func,
1165
1017
  defaultQuery: vueTypes.types.func,
1166
- dataField: VueTypes.oneOfType([VueTypes.string, VueTypes.arrayOf(VueTypes.string)]),
1018
+ dataField: VueTypes.oneOfType([VueTypes.string, VueTypes.shape({
1019
+ field: VueTypes.string,
1020
+ weight: VueTypes.number
1021
+ }), VueTypes.arrayOf(VueTypes.string), VueTypes.arrayOf({
1022
+ field: VueTypes.string,
1023
+ weight: VueTypes.number
1024
+ })]),
1167
1025
  aggregationField: vueTypes.types.string,
1168
1026
  aggregationSize: VueTypes.number,
1169
- size: VueTypes.number.def(10),
1027
+ size: VueTypes.number,
1170
1028
  debounce: VueTypes.number.def(0),
1171
1029
  defaultValue: vueTypes.types.string,
1172
- excludeFields: vueTypes.types.excludeFields.def([]),
1030
+ excludeFields: vueTypes.types.excludeFields,
1173
1031
  value: vueTypes.types.value,
1174
1032
  defaultSuggestions: vueTypes.types.suggestions,
1175
- enableSynonyms: vueTypes.types.bool.def(true),
1033
+ enableSynonyms: VueTypes.bool.def(true),
1176
1034
  enableQuerySuggestions: VueTypes.bool.def(false),
1177
1035
  enablePopularSuggestions: VueTypes.bool.def(false),
1178
1036
  enableRecentSearches: VueTypes.bool.def(false),
1179
1037
  fieldWeights: vueTypes.types.fieldWeights,
1180
1038
  filterLabel: vueTypes.types.string,
1181
1039
  fuzziness: vueTypes.types.fuzziness,
1182
- highlight: vueTypes.types.bool,
1040
+ highlight: VueTypes.bool,
1183
1041
  highlightField: vueTypes.types.stringOrArray,
1184
1042
  icon: vueTypes.types.children,
1185
1043
  iconPosition: VueTypes.oneOf(['left', 'right']).def('left'),
1186
- includeFields: vueTypes.types.includeFields.def(['*']),
1044
+ includeFields: vueTypes.types.includeFields,
1187
1045
  innerClass: vueTypes.types.style,
1188
- innerRef: vueTypes.types.string,
1046
+ innerRef: VueTypes.string.def('searchInputField'),
1189
1047
  render: vueTypes.types.func,
1190
1048
  renderQuerySuggestions: vueTypes.types.func,
1191
1049
  renderPopularSuggestions: vueTypes.types.func,
@@ -1208,11 +1066,17 @@ var DataSearch = {
1208
1066
  recentSearchesIcon: VueTypes.any,
1209
1067
  popularSearchesIcon: VueTypes.any,
1210
1068
  // mic props
1211
- showVoiceSearch: vueTypes.types.bool.def(false),
1069
+ showVoiceSearch: VueTypes.bool.def(false),
1212
1070
  getMicInstance: vueTypes.types.func,
1213
1071
  renderMic: vueTypes.types.func,
1214
1072
  distinctField: vueTypes.types.string,
1215
- distinctFieldConfig: vueTypes.types.props
1073
+ distinctFieldConfig: vueTypes.types.props,
1074
+ //
1075
+ focusShortcuts: VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string, VueTypes.number])).def(['/']),
1076
+ addonBefore: VueTypes.any,
1077
+ addonAfter: VueTypes.any,
1078
+ expandSuggestionsContainer: VueTypes.bool.def(true),
1079
+ index: VueTypes.string
1216
1080
  },
1217
1081
  beforeMount: function beforeMount() {
1218
1082
  if (this.$props.highlight) {
@@ -1221,7 +1085,7 @@ var DataSearch = {
1221
1085
  }
1222
1086
 
1223
1087
  var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1224
- this.queryOptions = _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, queryOptions), this.getBasicQueryOptions());
1088
+ this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1225
1089
  this.setQueryOptions(this.$props.componentId, this.queryOptions);
1226
1090
  } else {
1227
1091
  this.queryOptions = this.getBasicQueryOptions();
@@ -1236,6 +1100,9 @@ var DataSearch = {
1236
1100
  this.setValue(this.$props.defaultValue, true);
1237
1101
  }
1238
1102
  },
1103
+ mounted: function mounted() {
1104
+ this.listenForFocusShortcuts();
1105
+ },
1239
1106
  watch: {
1240
1107
  highlight: function highlight() {
1241
1108
  this.updateQueryOptions();
@@ -1286,14 +1153,24 @@ var DataSearch = {
1286
1153
  if (oldVal !== newVal && this.$data.currentValue !== newVal) {
1287
1154
  if (!newVal && this.$data.currentValue) {
1288
1155
  // selected value is cleared, call onValueSelected
1289
- this.onValueSelectedHandler("", configureStore.causes.CLEAR_VALUE);
1156
+ this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
1290
1157
  }
1291
1158
 
1292
1159
  this.setValue(newVal || '', true, this.$props);
1293
1160
  }
1161
+ },
1162
+ focusShortcuts: function focusShortcuts() {
1163
+ this.listenForFocusShortcuts();
1294
1164
  }
1295
1165
  },
1296
1166
  methods: {
1167
+ handleText: function handleText(value) {
1168
+ if (this.$props.autosuggest) {
1169
+ this.updateDefaultQueryHandler(value, this.$props);
1170
+ } else {
1171
+ this.updateQueryHandler(this.$props.componentId, value, this.$props);
1172
+ }
1173
+ },
1297
1174
  validateDataField: function validateDataField() {
1298
1175
  var propName = 'dataField';
1299
1176
  var componentName = DataSearch.name;
@@ -1301,13 +1178,13 @@ var DataSearch = {
1301
1178
  var requiredError = propName + " supplied to " + componentName + " is required. Validation failed.";
1302
1179
  var propValue = props[propName];
1303
1180
 
1304
- if (this.config && !this.config.enableAppbase) {
1181
+ if (!this.enableAppbase) {
1305
1182
  if (!propValue) {
1306
1183
  console.error(requiredError);
1307
1184
  return;
1308
1185
  }
1309
1186
 
1310
- if (typeof propValue !== 'string' && !Array.isArray(propValue)) {
1187
+ if (typeof propValue !== 'string' && typeof propValue !== 'object' && !Array.isArray(propValue)) {
1311
1188
  console.error("Invalid " + propName + " supplied to " + componentName + ". Validation failed.");
1312
1189
  return;
1313
1190
  }
@@ -1323,7 +1200,7 @@ var DataSearch = {
1323
1200
  }
1324
1201
 
1325
1202
  var queryOptions = DataSearch.highlightQuery(this.$props) || {};
1326
- this.queryOptions = _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, queryOptions), this.getBasicQueryOptions());
1203
+ this.queryOptions = _rollupPluginBabelHelpers._extends({}, queryOptions, this.getBasicQueryOptions());
1327
1204
  this.setQueryOptions(this.$props.componentId, this.queryOptions);
1328
1205
  },
1329
1206
  getComponent: function getComponent(downshiftProps, isQuerySuggestionsRender) {
@@ -1391,7 +1268,7 @@ var DataSearch = {
1391
1268
  }
1392
1269
  },
1393
1270
  setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen) {
1394
- var _this2 = this;
1271
+ var _this = this;
1395
1272
 
1396
1273
  if (isDefaultValue === void 0) {
1397
1274
  isDefaultValue = false;
@@ -1407,51 +1284,51 @@ var DataSearch = {
1407
1284
 
1408
1285
  var performUpdate = function performUpdate() {
1409
1286
  // Refresh recent searches when value becomes empty
1410
- if (!value && _this2.currentValue && _this2.enableRecentSearches) {
1411
- _this2.getRecentSearches();
1287
+ if (!value && _this.currentValue && _this.enableRecentSearches) {
1288
+ _this.getRecentSearches();
1412
1289
  }
1413
1290
 
1414
- _this2.currentValue = value;
1291
+ _this.currentValue = value;
1415
1292
 
1416
1293
  if (isDefaultValue) {
1417
- if (_this2.$props.autosuggest) {
1294
+ if (_this.$props.autosuggest) {
1418
1295
  if (toggleIsOpen) {
1419
- _this2.isOpen = false;
1296
+ _this.isOpen = false;
1420
1297
  }
1421
1298
 
1422
- _this2.updateDefaultQueryHandler(value, _this2.$props);
1299
+ _this.updateDefaultQueryHandler(value, _this.$props);
1423
1300
  } // in case of strict selection only SUGGESTION_SELECT should be able
1424
1301
  // to set the query otherwise the value should reset
1425
1302
 
1426
1303
 
1427
1304
  if (props.strictSelection) {
1428
1305
  if (cause === configureStore.causes.SUGGESTION_SELECT || value === '') {
1429
- _this2.updateQueryHandler(props.componentId, value, props);
1306
+ _this.updateQueryHandler(props.componentId, value, props);
1430
1307
  } else {
1431
- _this2.setValue('', true);
1308
+ _this.setValue('', true);
1432
1309
  }
1433
1310
  } else {
1434
- _this2.updateQueryHandler(props.componentId, value, props);
1311
+ _this.updateQueryHandler(props.componentId, value, props);
1435
1312
  }
1436
1313
  } else {
1437
1314
  // debounce for handling text while typing
1438
- _this2.handleTextChange(value);
1315
+ _this.handleTextChange(value);
1439
1316
  }
1440
1317
 
1441
- _this2.$emit('valueChange', value);
1318
+ _this.$emit('valueChange', value);
1442
1319
 
1443
- _this2.$emit('value-change', value); // Set the already fetched suggestions if query is same as used last to fetch the hits
1320
+ _this.$emit('value-change', value); // Set the already fetched suggestions if query is same as used last to fetch the hits
1444
1321
 
1445
1322
 
1446
- if (value === _this2.lastUsedQuery) {
1447
- _this2.suggestions = _this2.onSuggestions(_this2.suggestions); // invoke on suggestions
1323
+ if (value === _this.lastUsedQuery) {
1324
+ _this.suggestions = _this.onSuggestions(_this.suggestions); // invoke on suggestions
1448
1325
 
1449
- _this2.$emit('suggestions', _this2.suggestions);
1326
+ _this.$emit('suggestions', _this.suggestions);
1450
1327
  } else if (!value) {
1451
1328
  // reset suggestions
1452
- _this2.suggestions = []; // invoke on suggestions
1329
+ _this.suggestions = []; // invoke on suggestions
1453
1330
 
1454
- _this2.$emit('suggestions', _this2.suggestions);
1331
+ _this.$emit('suggestions', _this.suggestions);
1455
1332
  }
1456
1333
  };
1457
1334
 
@@ -1463,17 +1340,18 @@ var DataSearch = {
1463
1340
 
1464
1341
  if (this.defaultQuery) {
1465
1342
  var defaultQueryToBeSet = this.defaultQuery(value, props) || {};
1343
+ var defaultQueryObj = extractQueryFromCustomQuery(defaultQueryToBeSet);
1466
1344
 
1467
- if (defaultQueryToBeSet.query) {
1468
- query = defaultQueryToBeSet.query;
1345
+ if (defaultQueryObj) {
1346
+ query = defaultQueryObj;
1469
1347
  }
1470
1348
 
1471
- defaultQueryOptions = getOptionsFromQuery(defaultQueryToBeSet); // Update calculated default query in store
1349
+ defaultQueryOptions = getOptionsForCustomQuery(defaultQueryToBeSet); // Update calculated default query in store
1472
1350
 
1473
1351
  index.updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
1474
1352
  }
1475
1353
 
1476
- this.setQueryOptions(this.internalComponent, _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, this.queryOptions), defaultQueryOptions));
1354
+ this.setQueryOptions(this.internalComponent, _rollupPluginBabelHelpers._extends({}, this.queryOptions, defaultQueryOptions), false);
1477
1355
  this.updateQuery({
1478
1356
  componentId: this.internalComponent,
1479
1357
  query: query,
@@ -1492,15 +1370,15 @@ var DataSearch = {
1492
1370
 
1493
1371
  if (customQuery) {
1494
1372
  var customQueryTobeSet = customQuery(value, props);
1495
- var queryTobeSet = customQueryTobeSet.query;
1373
+ var queryTobeSet = extractQueryFromCustomQuery(customQueryTobeSet);
1496
1374
 
1497
1375
  if (queryTobeSet) {
1498
1376
  query = queryTobeSet;
1499
1377
  }
1500
1378
 
1501
- customQueryOptions = getOptionsFromQuery(customQueryTobeSet);
1379
+ customQueryOptions = getOptionsForCustomQuery(customQueryTobeSet);
1502
1380
  index.updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
1503
- this.setQueryOptions(componentId, _rollupPluginBabelHelpers._extends(_rollupPluginBabelHelpers._extends({}, this.queryOptions), customQueryOptions));
1381
+ this.setQueryOptions(componentId, _rollupPluginBabelHelpers._extends({}, this.queryOptions, customQueryOptions), false);
1504
1382
  }
1505
1383
 
1506
1384
  if (!this.isPending) {
@@ -1518,10 +1396,7 @@ var DataSearch = {
1518
1396
  // need to review
1519
1397
  handleFocus: function handleFocus(event) {
1520
1398
  this.isOpen = true;
1521
-
1522
- if (this.$props.onFocus) {
1523
- this.$emit('focus', event);
1524
- }
1399
+ this.$emit('focus', event);
1525
1400
  },
1526
1401
  handleVoiceResults: function handleVoiceResults(_ref) {
1527
1402
  var results = _ref.results;
@@ -1529,18 +1404,18 @@ var DataSearch = {
1529
1404
  if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
1530
1405
  this.isPending = false;
1531
1406
  this.setValue(results[0][0].transcript.trim(), true);
1532
-
1533
- if (this.$props.autosuggest) {
1534
- this.isOpen = true;
1535
- }
1536
1407
  }
1537
1408
  },
1538
- triggerQuery: function triggerQuery() {
1409
+ triggerQuery: function triggerQuery(_temp) {
1410
+ var _ref2 = _temp === void 0 ? false : _temp,
1411
+ _ref2$isOpen = _ref2.isOpen,
1412
+ isOpen = _ref2$isOpen === void 0 ? false : _ref2$isOpen;
1413
+
1539
1414
  var value = this.$props.value;
1540
1415
 
1541
1416
  if (value !== undefined) {
1542
1417
  this.isPending = false;
1543
- this.setValue(this.$props.value, true);
1418
+ this.setValue(this.$props.value, !isOpen);
1544
1419
  }
1545
1420
  },
1546
1421
  triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
@@ -1562,7 +1437,7 @@ var DataSearch = {
1562
1437
  clearValue: function clearValue() {
1563
1438
  this.isPending = false;
1564
1439
  this.setValue('', true);
1565
- this.onValueSelectedHandler("", configureStore.causes.CLEAR_VALUE);
1440
+ this.onValueSelectedHandler('', configureStore.causes.CLEAR_VALUE);
1566
1441
  },
1567
1442
  handleKeyDown: function handleKeyDown(event, highlightedIndex) {
1568
1443
  var value = this.$props.value;
@@ -1578,11 +1453,8 @@ var DataSearch = {
1578
1453
  } // Need to review
1579
1454
 
1580
1455
 
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
- }
1456
+ this.$emit('keyDown', event, this.triggerQuery);
1457
+ this.$emit('key-down', event, this.triggerQuery);
1586
1458
  },
1587
1459
  onInputChange: function onInputChange(e) {
1588
1460
  var inputValue = e.target.value;
@@ -1608,6 +1480,7 @@ var DataSearch = {
1608
1480
  if (value === undefined) {
1609
1481
  this.setValue(suggestion.value, true, this.$props, configureStore.causes.SUGGESTION_SELECT);
1610
1482
  } else {
1483
+ this.isPending = false;
1611
1484
  this.$emit('change', suggestion.value, this.triggerQuery);
1612
1485
  }
1613
1486
 
@@ -1668,7 +1541,7 @@ var DataSearch = {
1668
1541
  var h = this.$createElement;
1669
1542
 
1670
1543
  if (this.$props.showClear) {
1671
- return this.$props.clearIcon || h(CancelSvg);
1544
+ return this.$props.clearIcon || h(CancelSvg.CancelSvg);
1672
1545
  }
1673
1546
 
1674
1547
  return null;
@@ -1706,6 +1579,26 @@ var DataSearch = {
1706
1579
 
1707
1580
  return null;
1708
1581
  },
1582
+ renderInputAddonBefore: function renderInputAddonBefore() {
1583
+ var h = this.$createElement;
1584
+ var addonBefore = this.$scopedSlots.addonBefore;
1585
+
1586
+ if (addonBefore) {
1587
+ return h(InputAddon, [addonBefore()]);
1588
+ }
1589
+
1590
+ return null;
1591
+ },
1592
+ renderInputAddonAfter: function renderInputAddonAfter() {
1593
+ var h = this.$createElement;
1594
+ var addonAfter = this.$scopedSlots.addonAfter;
1595
+
1596
+ if (addonAfter) {
1597
+ return h(InputAddon, [addonAfter()]);
1598
+ }
1599
+
1600
+ return null;
1601
+ },
1709
1602
  renderIcons: function renderIcons() {
1710
1603
  var h = this.$createElement;
1711
1604
  var _this$$props3 = this.$props,
@@ -1717,13 +1610,16 @@ var DataSearch = {
1717
1610
  showIcon = _this$$props3.showIcon;
1718
1611
  var renderMic = this.$scopedSlots.renderMic || this.$props.renderMic;
1719
1612
  var currentValue = this.$data.currentValue;
1720
- return h("div", [currentValue && showClear && h(InputIcon, {
1613
+ return h("div", [h(CancelSvg.IconGroup, {
1614
+ "attrs": {
1615
+ "groupPosition": "right",
1616
+ "positionType": "absolute"
1617
+ }
1618
+ }, [currentValue && showClear && h(CancelSvg.IconWrapper, {
1721
1619
  "on": {
1722
1620
  "click": this.clearValue
1723
1621
  },
1724
1622
  "attrs": {
1725
- "iconPosition": "right",
1726
- "clearIcon": iconPosition === 'right',
1727
1623
  "showIcon": showIcon,
1728
1624
  "isClearIcon": true
1729
1625
  }
@@ -1731,21 +1627,73 @@ var DataSearch = {
1731
1627
  "attrs": {
1732
1628
  "getInstance": getMicInstance,
1733
1629
  "render": renderMic,
1734
- "iconPosition": iconPosition,
1735
1630
  "handleResult": this.handleVoiceResults,
1736
- "className": getClassName$1(innerClass, 'mic') || null,
1737
- "applyClearStyle": !!currentValue && showClear,
1738
- "showIcon": showIcon
1631
+ "className": getClassName$1(innerClass, 'mic') || null
1739
1632
  }
1740
- }), h(InputIcon, {
1633
+ }), iconPosition === 'right' && showIcon && h(CancelSvg.IconWrapper, {
1741
1634
  "on": {
1742
1635
  "click": this.handleSearchIconClick
1743
- },
1636
+ }
1637
+ }, [this.renderIcon()])]), h(CancelSvg.IconGroup, {
1744
1638
  "attrs": {
1745
- "showIcon": showIcon,
1746
- "iconPosition": iconPosition
1639
+ "groupPosition": "left",
1640
+ "positionType": "absolute"
1641
+ }
1642
+ }, [iconPosition === 'left' && showIcon && h(CancelSvg.IconWrapper, {
1643
+ "on": {
1644
+ "click": this.handleSearchIconClick
1747
1645
  }
1748
- }, [this.renderIcon()])]);
1646
+ }, [this.renderIcon()])])]);
1647
+ },
1648
+ focusSearchBox: function focusSearchBox(event) {
1649
+ var _this$$refs, _this$$refs$this$$pro;
1650
+
1651
+ var elt = event.target || event.srcElement;
1652
+ var tagName = elt.tagName;
1653
+
1654
+ if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
1655
+ // already in an input
1656
+ return;
1657
+ }
1658
+
1659
+ (_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
1660
+ },
1661
+ listenForFocusShortcuts: function listenForFocusShortcuts() {
1662
+ var _this2 = this;
1663
+
1664
+ var _this$$props$focusSho = this.$props.focusShortcuts,
1665
+ focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
1666
+
1667
+ if (index.isEmpty(focusShortcuts)) {
1668
+ return;
1669
+ }
1670
+
1671
+ var shortcutsString = index.parseFocusShortcuts(focusShortcuts).join(','); // handler for alphabets and other key combinations
1672
+
1673
+ hotkeys(shortcutsString, // eslint-disable-next-line no-unused-vars
1674
+
1675
+ /* eslint-disable no-shadow */
1676
+ function (event, handler) {
1677
+ // Prevent the default refresh event under WINDOWS system
1678
+ event.preventDefault();
1679
+
1680
+ _this2.focusSearchBox(event);
1681
+ }); // if one of modifier keys are used, they are handled below
1682
+
1683
+ hotkeys('*', function (event) {
1684
+ var modifierKeys = index.extractModifierKeysFromFocusShortcuts(focusShortcuts);
1685
+ if (modifierKeys.length === 0) return;
1686
+
1687
+ for (var index$1 = 0; index$1 < modifierKeys.length; index$1 += 1) {
1688
+ var element = modifierKeys[index$1];
1689
+
1690
+ if (hotkeys[element]) {
1691
+ _this2.focusSearchBox(event);
1692
+
1693
+ break;
1694
+ }
1695
+ }
1696
+ });
1749
1697
  }
1750
1698
  },
1751
1699
  render: function render() {
@@ -1754,7 +1702,8 @@ var DataSearch = {
1754
1702
  var h = arguments[0];
1755
1703
  var _this$$props4 = this.$props,
1756
1704
  theme = _this$$props4.theme,
1757
- size = _this$$props4.size;
1705
+ size = _this$$props4.size,
1706
+ expandSuggestionsContainer = _this$$props4.expandSuggestionsContainer;
1758
1707
  var _this$$scopedSlots = this.$scopedSlots,
1759
1708
  recentSearchesIcon = _this$$scopedSlots.recentSearchesIcon,
1760
1709
  popularSearchesIcon = _this$$scopedSlots.popularSearchesIcon;
@@ -1763,7 +1712,7 @@ var DataSearch = {
1763
1712
  "class": this.$props.className
1764
1713
  }, [this.$props.title && h(Title.Title, {
1765
1714
  "class": getClassName$1(this.$props.innerClass, 'title') || ''
1766
- }, [this.$props.title]), this.$props.defaultSuggestions || this.$props.autosuggest ? h(DownShift.Downshift, {
1715
+ }, [this.$props.title]), this.$props.defaultSuggestions || this.$props.autosuggest ? h(CancelSvg.Downshift, {
1767
1716
  "attrs": {
1768
1717
  "id": this.$props.componentId + "-downshift",
1769
1718
  "handleChange": this.onSuggestionSelected,
@@ -1771,25 +1720,125 @@ var DataSearch = {
1771
1720
  "isOpen": this.$data.isOpen
1772
1721
  },
1773
1722
  "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;
1723
+ "default": function _default(_ref3) {
1724
+ var getInputEvents = _ref3.getInputEvents,
1725
+ getInputProps = _ref3.getInputProps,
1726
+ getItemProps = _ref3.getItemProps,
1727
+ getItemEvents = _ref3.getItemEvents,
1728
+ isOpen = _ref3.isOpen,
1729
+ highlightedIndex = _ref3.highlightedIndex,
1730
+ setHighlightedIndex = _ref3.setHighlightedIndex;
1731
+
1732
+ var renderSuggestionsContainer = function renderSuggestionsContainer() {
1733
+ return h("div", [_this3.hasCustomRenderer && _this3.getComponent({
1734
+ isOpen: isOpen,
1735
+ getItemProps: getItemProps,
1736
+ getItemEvents: getItemEvents,
1737
+ highlightedIndex: highlightedIndex
1738
+ }), _this3.renderErrorComponent(), !_this3.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1739
+ "class": Input.suggestions(_this3.themePreset, theme) + " " + getClassName$1(_this3.$props.innerClass, 'list')
1740
+ }, [_this3.suggestionsList.slice(0, size || 10).map(function (item, index) {
1741
+ return h("li", {
1742
+ "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1743
+ item: item
1744
+ })),
1745
+ "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1746
+ item: item
1747
+ })),
1748
+ "key": index + 1 + "-" + item.value,
1749
+ "style": {
1750
+ backgroundColor: _this3.getBackgroundColor(highlightedIndex, index)
1751
+ }
1752
+ }, [h(SuggestionItem, {
1753
+ "attrs": {
1754
+ "currentValue": _this3.currentValue,
1755
+ "suggestion": item
1756
+ }
1757
+ })]);
1758
+ }), _this3.defaultSearchSuggestions.map(function (sugg, index) {
1759
+ return h("li", {
1760
+ "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1761
+ item: sugg
1762
+ })),
1763
+ "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1764
+ item: sugg
1765
+ })),
1766
+ "key": _this3.suggestionsList.length + index + 1 + "-" + sugg.value,
1767
+ "style": {
1768
+ backgroundColor: _this3.getBackgroundColor(highlightedIndex, _this3.suggestionsList.length + index),
1769
+ justifyContent: 'flex-start'
1770
+ }
1771
+ }, [h("div", {
1772
+ "style": {
1773
+ padding: '0 10px 0 0'
1774
+ }
1775
+ }, [sugg.source && sugg.source._recent_search && h(CustomSvg, {
1776
+ "attrs": {
1777
+ "className": getClassName$1(_this3.$props.innerClass, 'recent-search-icon') || null,
1778
+ "icon": recentSearchesIcon,
1779
+ "type": "recent-search-icon"
1780
+ }
1781
+ }), sugg.source && sugg.source._popular_suggestion && h(CustomSvg, {
1782
+ "attrs": {
1783
+ "className": getClassName$1(_this3.$props.innerClass, 'popular-search-icon') || null,
1784
+ "icon": popularSearchesIcon,
1785
+ "type": "popular-search-icon"
1786
+ }
1787
+ })]), h(SuggestionItem, {
1788
+ "attrs": {
1789
+ "currentValue": _this3.currentValue,
1790
+ "suggestion": sugg
1791
+ }
1792
+ })]);
1793
+ }), index.hasQuerySuggestionsRenderer(_this3) ? _this3.getComponent({
1794
+ isOpen: isOpen,
1795
+ getItemProps: getItemProps,
1796
+ getItemEvents: getItemEvents,
1797
+ highlightedIndex: highlightedIndex
1798
+ }, true) : _this3.topSuggestions.map(function (sugg, index) {
1799
+ return h("li", {
1800
+ "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
1801
+ item: sugg
1802
+ })),
1803
+ "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
1804
+ item: sugg
1805
+ })),
1806
+ "key": _this3.suggestionsList.length + index + 1 + "-" + sugg.value,
1807
+ "style": {
1808
+ backgroundColor: _this3.getBackgroundColor(highlightedIndex, _this3.suggestionsList.length + index),
1809
+ justifyContent: 'flex-start'
1810
+ }
1811
+ }, [h("div", {
1812
+ "style": {
1813
+ padding: '0 10px 0 0'
1814
+ }
1815
+ }, [h(CustomSvg, {
1816
+ "attrs": {
1817
+ "className": getClassName$1(_this3.$props.innerClass, 'popular-search-icon') || null,
1818
+ "icon": popularSearchesIcon,
1819
+ "type": "popular-search-icon"
1820
+ }
1821
+ })]), h(SuggestionItem, {
1822
+ "attrs": {
1823
+ "currentValue": _this3.currentValue,
1824
+ "suggestion": sugg
1825
+ }
1826
+ })]);
1827
+ })]) : _this3.renderNoSuggestions(_this3.suggestionsList)]);
1828
+ };
1829
+
1782
1830
  return h("div", {
1783
1831
  "class": Input.suggestionsContainer
1784
- }, [h(Input.Input, {
1832
+ }, [h(InputGroup, [_this3.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1785
1833
  "attrs": {
1786
1834
  "id": _this3.$props.componentId + "-input",
1787
1835
  "showIcon": _this3.$props.showIcon,
1788
1836
  "showClear": _this3.$props.showClear,
1789
1837
  "iconPosition": _this3.$props.iconPosition,
1790
1838
  "placeholder": _this3.$props.placeholder,
1839
+ "autoFocus": _this3.$props.autoFocus,
1791
1840
  "themePreset": _this3.themePreset,
1792
- "autocomplete": 'off'
1841
+ "autocomplete": "off"
1793
1842
  },
1794
1843
  "ref": _this3.$props.innerRef,
1795
1844
  "class": getClassName$1(_this3.$props.innerClass, 'input'),
@@ -1819,113 +1868,18 @@ var DataSearch = {
1819
1868
  "domProps": _rollupPluginBabelHelpers._extends({}, getInputProps({
1820
1869
  value: _this3.$data.currentValue === null ? '' : _this3.$data.currentValue
1821
1870
  }))
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), ' ']);
1871
+ }), _this3.renderIcons(), !expandSuggestionsContainer && renderSuggestionsContainer()]), ' ', _this3.renderInputAddonAfter()]), expandSuggestionsContainer && renderSuggestionsContainer()]);
1917
1872
  }
1918
1873
  }
1919
1874
  }) : h("div", {
1920
1875
  "class": Input.suggestionsContainer
1921
- }, [h(Input.Input, {
1876
+ }, [h(InputGroup, [this.renderInputAddonBefore(), h(CancelSvg.InputWrapper, [h(Input.Input, {
1922
1877
  "class": getClassName$1(this.$props.innerClass, 'input') || '',
1923
1878
  "attrs": {
1924
1879
  "placeholder": this.$props.placeholder,
1925
1880
  "iconPosition": this.$props.iconPosition,
1926
1881
  "showIcon": this.$props.showIcon,
1927
1882
  "showClear": this.$props.showClear,
1928
- "innerRef": this.$props.innerRef,
1929
1883
  "themePreset": this.themePreset
1930
1884
  },
1931
1885
  "on": _rollupPluginBabelHelpers._extends({}, {
@@ -1955,22 +1909,20 @@ var DataSearch = {
1955
1909
  "domProps": _rollupPluginBabelHelpers._extends({}, {
1956
1910
  autofocus: this.$props.autoFocus,
1957
1911
  value: this.$data.currentValue ? this.$data.currentValue : ''
1958
- })
1959
- }), this.renderIcons()])]);
1912
+ }),
1913
+ "ref": this.$props.innerRef
1914
+ }), this.renderIcons()]), this.renderInputAddonAfter()])])]);
1915
+ },
1916
+ destroyed: function destroyed() {
1917
+ document.removeEventListener('keydown', this.onKeyDown);
1960
1918
  }
1961
1919
  };
1962
1920
 
1963
1921
  DataSearch.defaultQuery = function (value, props) {
1964
1922
  var finalQuery = null;
1965
- var fields = [];
1966
1923
 
1967
1924
  if (value) {
1968
- if (Array.isArray(props.dataField)) {
1969
- fields = props.dataField;
1970
- } else if (props.dataField) {
1971
- fields = [props.dataField];
1972
- }
1973
-
1925
+ var fields = normalizeDataField(props.dataField, props.fieldWeights);
1974
1926
  finalQuery = {
1975
1927
  bool: {
1976
1928
  should: DataSearch.shouldQuery(value, fields, props),
@@ -2000,10 +1952,10 @@ DataSearch.defaultQuery = function (value, props) {
2000
1952
  DataSearch.shouldQuery = function (value, dataFields, props) {
2001
1953
  var finalQuery = [];
2002
1954
  var phrasePrefixFields = [];
2003
- var fields = (dataFields || []).map(function (field, index) {
2004
- var queryField = "" + field + (Array.isArray(props.fieldWeights) && props.fieldWeights[index] ? "^" + props.fieldWeights[index] : '');
1955
+ var fields = dataFields.map(function (dataField) {
1956
+ var queryField = "" + dataField.field + (dataField.weight ? "^" + dataField.weight : '');
2005
1957
 
2006
- if (!(field.endsWith('.keyword') || field.endsWith('.autosuggest') || field.endsWith('.search'))) {
1958
+ if (!(dataField.field.endsWith('.keyword') || dataField.field.endsWith('.autosuggest') || dataField.field.endsWith('.search'))) {
2007
1959
  phrasePrefixFields.push(queryField);
2008
1960
  }
2009
1961
 
@@ -2113,6 +2065,10 @@ DataSearch.highlightQuery = function (props) {
2113
2065
  };
2114
2066
  };
2115
2067
 
2068
+ DataSearch.hasInternalComponent = function () {
2069
+ return true;
2070
+ };
2071
+
2116
2072
  var mapStateToProps = function mapStateToProps(state, props) {
2117
2073
  return {
2118
2074
  selectedValue: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value || null,
@@ -2123,7 +2079,7 @@ var mapStateToProps = function mapStateToProps(state, props) {
2123
2079
  themePreset: state.config.themePreset,
2124
2080
  error: state.error[props.componentId],
2125
2081
  analytics: state.analytics,
2126
- config: state.config,
2082
+ enableAppbase: state.config.enableAppbase,
2127
2083
  headers: state.appbaseRef.headers,
2128
2084
  promotedResults: state.promotedResults[props.componentId] || [],
2129
2085
  customData: state.customData[props.componentId],
@@ -2150,7 +2106,7 @@ var mapDispatchToProps = {
2150
2106
  };
2151
2107
  var DSConnected = ComponentWrapper.ComponentWrapper(index.connect(mapStateToProps, mapDispatchToProps)(DataSearch), {
2152
2108
  componentType: constants.componentTypes.dataSearch,
2153
- internalComponent: true
2109
+ internalComponent: DataSearch.hasInternalComponent()
2154
2110
  });
2155
2111
 
2156
2112
  DataSearch.install = function (Vue) {