@appbaseio/reactivesearch-vue 1.16.0-alpha.27 → 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 (63) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +358 -243
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{DownShift-d41f2442.js → CancelSvg-82021d23.js} +58 -14
  6. package/dist/cjs/DataSearch.js +31 -82
  7. package/dist/cjs/{DropDown-3c343026.js → DropDown-0359da33.js} +56 -21
  8. package/dist/cjs/DynamicRangeSlider.js +9 -6
  9. package/dist/cjs/MultiDropdownList.js +13 -7
  10. package/dist/cjs/MultiList.js +4 -4
  11. package/dist/cjs/MultiRange.js +2 -2
  12. package/dist/cjs/{Pagination-0b9ec0fc.js → Pagination-1b2320a7.js} +1 -1
  13. package/dist/cjs/RangeInput.js +3 -3
  14. package/dist/cjs/RangeSlider.js +17 -20
  15. package/dist/cjs/ReactiveBase.js +5 -3
  16. package/dist/cjs/ReactiveComponent.js +1 -1
  17. package/dist/cjs/ReactiveGoogleMap.js +2 -2
  18. package/dist/cjs/ReactiveList.js +6 -10
  19. package/dist/cjs/ResultCard.js +1 -1
  20. package/dist/cjs/ResultList.js +1 -1
  21. package/dist/cjs/SelectedFilters.js +7 -5
  22. package/dist/cjs/SingleDropdownList.js +13 -7
  23. package/dist/cjs/SingleList.js +5 -5
  24. package/dist/cjs/SingleRange.js +2 -2
  25. package/dist/cjs/StateProvider.js +6 -2
  26. package/dist/cjs/ToggleButton.js +2 -2
  27. package/dist/cjs/index.js +7 -5
  28. package/dist/cjs/initReactivesearch.js +19 -0
  29. package/dist/cjs/install.js +5 -5
  30. package/dist/cjs/ssr-c333c82c.js +39 -0
  31. package/dist/cjs/version.js +1 -1
  32. package/dist/cjs/{vueTypes-829a5f2c.js → vueTypes-6de9d2a9.js} +3 -3
  33. package/dist/es/{DownShift-e7ccf2a7.js → CancelSvg-4d9e0857.js} +55 -16
  34. package/dist/es/DataSearch.js +21 -72
  35. package/dist/es/{DropDown-c5ab660f.js → DropDown-168b60f6.js} +55 -20
  36. package/dist/es/DynamicRangeSlider.js +9 -6
  37. package/dist/es/MultiDropdownList.js +13 -7
  38. package/dist/es/MultiList.js +4 -4
  39. package/dist/es/MultiRange.js +2 -2
  40. package/dist/es/{Pagination-e8216949.js → Pagination-b3e4054a.js} +1 -1
  41. package/dist/es/RangeInput.js +3 -3
  42. package/dist/es/RangeSlider.js +17 -20
  43. package/dist/es/ReactiveBase.js +5 -3
  44. package/dist/es/ReactiveComponent.js +1 -1
  45. package/dist/es/ReactiveGoogleMap.js +2 -2
  46. package/dist/es/ReactiveList.js +6 -10
  47. package/dist/es/ResultCard.js +1 -1
  48. package/dist/es/ResultList.js +1 -1
  49. package/dist/es/SelectedFilters.js +7 -5
  50. package/dist/es/SingleDropdownList.js +13 -7
  51. package/dist/es/SingleList.js +5 -5
  52. package/dist/es/SingleRange.js +2 -2
  53. package/dist/es/StateProvider.js +6 -2
  54. package/dist/es/ToggleButton.js +2 -2
  55. package/dist/es/index.js +7 -5
  56. package/dist/es/initReactivesearch.js +19 -0
  57. package/dist/es/install.js +5 -5
  58. package/dist/es/ssr-e3196de1.js +33 -0
  59. package/dist/es/version.js +1 -1
  60. package/dist/es/{vueTypes-98819a12.js → vueTypes-9326e0be.js} +3 -3
  61. package/package.json +4 -4
  62. package/dist/cjs/ssr-f312af20.js +0 -39
  63. package/dist/es/ssr-a3306f57.js +0 -33
@@ -12,6 +12,8 @@ var Appbase = _interopDefault(require('appbase-js'));
12
12
  var valueReducer = _interopDefault(require('@appbaseio/reactivecore/lib/reducers/valueReducer'));
13
13
  var queryReducer = _interopDefault(require('@appbaseio/reactivecore/lib/reducers/queryReducer'));
14
14
  var queryOptionsReducer = _interopDefault(require('@appbaseio/reactivecore/lib/reducers/queryOptionsReducer'));
15
+ var compositeAggsReducer = _interopDefault(require('@appbaseio/reactivecore/lib/reducers/compositeAggsReducer'));
16
+ var constants$1 = require('@appbaseio/reactivecore/lib/constants');
15
17
  var dependencyTreeReducer = _interopDefault(require('@appbaseio/reactivecore/lib/reducers/dependencyTreeReducer'));
16
18
  var fetchGraphQL = _interopDefault(require('@appbaseio/reactivecore/lib/utils/graphQL'));
17
19
  var utils = require('@appbaseio/reactivecore/lib/actions/utils');
@@ -108,6 +110,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
108
110
  var orderOfQueries = [];
109
111
  var hits = {};
110
112
  var aggregations = {};
113
+ var compositeAggregations = {};
111
114
  var state = {};
112
115
  var customQueries = {};
113
116
  var defaultQueries = {};
@@ -342,6 +345,11 @@ function initReactivesearch(componentCollection, searchState, settings) {
342
345
  var _extends4;
343
346
 
344
347
  aggregations = _rollupPluginBabelHelpers._extends({}, aggregations, (_extends4 = {}, _extends4[component] = response.aggregations, _extends4));
348
+ compositeAggregations = compositeAggsReducer(compositeAggregations, {
349
+ type: constants$1.UPDATE_COMPOSITE_AGGS,
350
+ aggregations: response.aggregations,
351
+ append: false
352
+ });
345
353
  }
346
354
 
347
355
  hits = _rollupPluginBabelHelpers._extends({}, hits, (_extends5 = {}, _extends5[component] = {
@@ -368,6 +376,8 @@ function initReactivesearch(componentCollection, searchState, settings) {
368
376
  var promotedResults = {};
369
377
  var rawData = {};
370
378
  var customData = {};
379
+ var settingsResponse = {};
380
+ var timestamp = {};
371
381
  var allPromises = orderOfQueries.map(function (component) {
372
382
  return new Promise(function (responseResolve, responseReject) {
373
383
  handleTransformResponse(res[component], component).then(function (response) {
@@ -386,6 +396,11 @@ function initReactivesearch(componentCollection, searchState, settings) {
386
396
 
387
397
  if (response.customData) {
388
398
  customData[component] = response.customData;
399
+ } // Update settings
400
+
401
+
402
+ if (response.settings) {
403
+ settingsResponse[component] = response.settings;
389
404
  }
390
405
 
391
406
  if (response.aggregations) {
@@ -394,6 +409,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
394
409
  aggregations = _rollupPluginBabelHelpers._extends({}, aggregations, (_extends6 = {}, _extends6[component] = response.aggregations, _extends6));
395
410
  }
396
411
 
412
+ timestamp[component] = res._timestamp;
397
413
  hits = _rollupPluginBabelHelpers._extends({}, hits, (_extends7 = {}, _extends7[component] = {
398
414
  hits: response.hits.hits,
399
415
  total: typeof response.hits.total === 'object' ? response.hits.total.value : response.hits.total,
@@ -409,8 +425,11 @@ function initReactivesearch(componentCollection, searchState, settings) {
409
425
  Promise.all(allPromises).then(function () {
410
426
  state = _rollupPluginBabelHelpers._extends({}, state, {
411
427
  hits: hits,
428
+ timestamp: timestamp,
412
429
  aggregations: aggregations,
430
+ compositeAggregations: compositeAggregations,
413
431
  promotedResults: promotedResults,
432
+ settings: settingsResponse,
414
433
  customData: customData,
415
434
  rawData: rawData
416
435
  });
@@ -11,8 +11,8 @@ require('emotion');
11
11
  require('@appbaseio/vue-emotion');
12
12
  require('polished');
13
13
  require('./Button-d2f1aeda.js');
14
- require('./vueTypes-829a5f2c.js');
15
- require('./Pagination-0b9ec0fc.js');
14
+ require('./vueTypes-6de9d2a9.js');
15
+ require('./Pagination-1b2320a7.js');
16
16
  var ReactiveList = require('./ReactiveList.js');
17
17
  require('@appbaseio/reactivecore/lib/utils/transform');
18
18
  require('redux');
@@ -29,9 +29,9 @@ require('url-search-params-polyfill');
29
29
  var ReactiveBase = require('./ReactiveBase.js');
30
30
  require('hotkeys-js');
31
31
  var DataSearch = require('./DataSearch.js');
32
+ require('./CancelSvg-82021d23.js');
32
33
  require('./Input-c6f181d5.js');
33
34
  require('compute-scroll-into-view');
34
- require('./DownShift-d41f2442.js');
35
35
  require('./Container-8a08d663.js');
36
36
  require('vue-highlight-words');
37
37
  require('@appbaseio/reactivecore/lib/utils/suggestions');
@@ -39,7 +39,7 @@ require('./FormControlList-73497794.js');
39
39
  require('./utils-23afb20b.js');
40
40
  var SingleList = require('./SingleList.js');
41
41
  var MultiList = require('./MultiList.js');
42
- require('./DropDown-3c343026.js');
42
+ require('./DropDown-0359da33.js');
43
43
  var SingleDropdownList = require('./SingleDropdownList.js');
44
44
  var MultiDropdownList = require('./MultiDropdownList.js');
45
45
  var ToggleButton = require('./ToggleButton.js');
@@ -50,7 +50,7 @@ var MultiRange = require('./MultiRange.js');
50
50
  var ResultCard = require('./ResultCard.js');
51
51
  var ResultList = require('./ResultList.js');
52
52
  require('vue-no-ssr');
53
- require('./ssr-f312af20.js');
53
+ require('./ssr-c333c82c.js');
54
54
  var RangeSlider = require('./RangeSlider.js');
55
55
  var DynamicRangeSlider = require('./DynamicRangeSlider.js');
56
56
  var StateProvider = require('./StateProvider.js');
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-4abdbfff.js');
6
+ var styled = require('@appbaseio/vue-emotion');
7
+ var styled__default = _interopDefault(styled);
8
+ var NoSSR = _interopDefault(require('vue-no-ssr'));
9
+
10
+ var _templateObject;
11
+ var Slider = styled__default('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"])));
12
+
13
+ /**
14
+ * Caution: Please do not change this file without having a discussion with the Team.
15
+ * Any change may break the umd build, we're directly replacing the line no: 14
16
+ * `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script.
17
+ */
18
+ // eslint-disable-next-line
19
+
20
+ var getComponents = function getComponents() {
21
+ var components = {
22
+ NoSSR: NoSSR
23
+ };
24
+
25
+ if (process.browser) {
26
+ try {
27
+ // in older versions of nuxt, it's process.BROWSER_BUILD
28
+ // eslint-disable-next-line
29
+ components['vue-slider-component'] = require('vue-slider-component');
30
+ } catch (e) {
31
+ console.error('Unable to load vue-slider', e);
32
+ }
33
+ }
34
+
35
+ return components;
36
+ };
37
+
38
+ exports.Slider = Slider;
39
+ exports.getComponents = getComponents;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.16.0-alpha.27";
5
+ var version = "1.16.0-alpha.30";
6
6
 
7
7
  exports.default = version;
@@ -110,19 +110,19 @@ var types = {
110
110
  unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
111
111
  value: VueTypes.string.def(undefined),
112
112
  analyticsConfig: VueTypes.shape({
113
- searchStateHeader: VueTypes.bool,
114
113
  emptyQuery: VueTypes.bool,
115
114
  suggestionAnalytics: VueTypes.bool,
116
115
  userId: VueTypes.string,
117
116
  customEvents: VueTypes.object
118
117
  }),
119
118
  appbaseConfig: VueTypes.shape({
120
- enableQueryRules: VueTypes.bool,
121
119
  recordAnalytics: VueTypes.bool,
122
- searchStateHeader: VueTypes.bool,
123
120
  emptyQuery: VueTypes.bool,
124
121
  suggestionAnalytics: VueTypes.bool,
122
+ enableQueryRules: VueTypes.bool,
123
+ enableSearchRelevancy: VueTypes.bool,
125
124
  userId: VueTypes.string,
125
+ useCache: VueTypes.bool,
126
126
  customEvents: VueTypes.object,
127
127
  enableTelemetry: VueTypes.bool.def(true)
128
128
  }).def({}),
@@ -1,6 +1,33 @@
1
- import { a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
1
+ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-ecf6c03c.js';
2
+ import styled, { css } from '@appbaseio/vue-emotion';
2
3
  import computeScrollIntoView from 'compute-scroll-into-view';
3
4
 
5
+ var _templateObject;
6
+ var InputWrapper = styled('span')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
7
+
8
+ var _templateObject$1, _templateObject2, _templateObject3, _templateObject4;
9
+ var IconGroup = styled('div')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t", ";\n\n\t", ";\n"])), function (_ref) {
10
+ var positionType = _ref.positionType;
11
+
12
+ if (positionType === 'absolute') {
13
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"])));
14
+ }
15
+
16
+ return null;
17
+ }, function (_ref2) {
18
+ var groupPosition = _ref2.groupPosition;
19
+ return groupPosition === 'right' ? css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])));
20
+ });
21
+
22
+ var _templateObject$2;
23
+ var IconWrapper = styled('div')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: ", ";\n\t\ttransform:scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ", ";\n\t}\n"])), function (_ref) {
24
+ var theme = _ref.theme;
25
+ return theme.colors.primaryColor;
26
+ }, function (_ref2) {
27
+ var theme = _ref2.theme;
28
+ return theme.colors.borderColor || '#000';
29
+ });
30
+
4
31
  /**
5
32
  * Scroll node into view if necessary
6
33
  * @param {HTMLElement} node the element that should scroll into view
@@ -36,8 +63,7 @@ var Downshift = {
36
63
  internal_isOpen: false,
37
64
  internal_inputValue: '',
38
65
  internal_selectedItem: null,
39
- internal_highlightedIndex: null,
40
- internal_eventsCalled: {}
66
+ internal_highlightedIndex: null
41
67
  };
42
68
  },
43
69
  computed: {
@@ -222,23 +248,11 @@ var Downshift = {
222
248
  }
223
249
 
224
250
  var vm = this;
225
- setTimeout(function () {
226
- vm.internal_eventsCalled[index] = false;
227
- }, 0);
228
251
  return {
229
252
  mouseenter: function mouseenter() {
230
253
  vm.setHighlightedIndex(newIndex);
231
254
  },
232
- // for browsers not supporting click event (e.g. firefox android)
233
- mousedown: function mousedown(event) {
234
- if (vm.internal_eventsCalled[index]) return;
235
- vm.internal_eventsCalled[index] = true;
236
- event.stopPropagation();
237
- vm.selectItemAtIndex(newIndex);
238
- },
239
255
  click: function click(event) {
240
- if (vm.internal_eventsCalled[index]) return;
241
- vm.internal_eventsCalled[index] = true;
242
256
  event.stopPropagation();
243
257
  vm.selectItemAtIndex(newIndex);
244
258
  }
@@ -398,4 +412,29 @@ var Downshift = {
398
412
  }
399
413
  };
400
414
 
401
- export { Downshift as D };
415
+ var CancelSvg = {
416
+ functional: true,
417
+ render: function render(h) {
418
+ return h("svg", {
419
+ "attrs": {
420
+ "alt": "Clear",
421
+ "xmlns": "http://www.w3.org/2000/svg",
422
+ "height": "20px",
423
+ "viewBox": "0 0 24 24",
424
+ "width": "20px"
425
+ },
426
+ "class": "cancel-icon"
427
+ }, [h("title", ["Clear"]), h("path", {
428
+ "attrs": {
429
+ "d": "M0 0h24v24H0V0z",
430
+ "fill": "none"
431
+ }
432
+ }), h("path", {
433
+ "attrs": {
434
+ "d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
435
+ }
436
+ })]);
437
+ }
438
+ };
439
+
440
+ export { CancelSvg as C, Downshift as D, IconWrapper as I, IconGroup as a, InputWrapper as b };
@@ -6,7 +6,7 @@ import { getQueryOptions } from '@appbaseio/reactivecore/lib/utils/helper';
6
6
  import 'emotion';
7
7
  import styled, { css, cx, injectGlobal } from '@appbaseio/vue-emotion';
8
8
  import 'polished';
9
- import { t as types } from './vueTypes-98819a12.js';
9
+ import { t as types } from './vueTypes-9326e0be.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
12
  import { g as getComponent, h as hasCustomRenderer, f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, j as getQuerySuggestionsComponent, a as isFunction, k as isEmpty, p as parseFocusShortcuts, l as extractModifierKeysFromFocusShortcuts, m as hasQuerySuggestionsRenderer, c as connect } from './index-4755c9a0.js';
@@ -14,9 +14,9 @@ import { C as ComponentWrapper } from './ComponentWrapper-459505fd.js';
14
14
  import { T as Title } from './Title-579f8d6c.js';
15
15
  import { F as Flex } from './Flex-aac91505.js';
16
16
  import hotkeys from 'hotkeys-js';
17
+ import { I as IconWrapper, C as CancelSvg, a as IconGroup, D as Downshift, b as InputWrapper } from './CancelSvg-4d9e0857.js';
17
18
  import { n as noSuggestions, s as suggestionsContainer, I as Input, a as suggestions } from './Input-d8519224.js';
18
19
  import 'compute-scroll-into-view';
19
- import { D as Downshift } from './DownShift-e7ccf2a7.js';
20
20
  import { C as Container } from './Container-4383c6f0.js';
21
21
  import Highlight from 'vue-highlight-words';
22
22
 
@@ -27,37 +27,11 @@ InputGroup.defaultProps = {
27
27
  };
28
28
 
29
29
  var _templateObject$1;
30
- var InputWrapper = styled('span')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"])));
31
-
32
- var _templateObject$2;
33
- var InputAddon = styled('span')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
30
+ var InputAddon = styled('span')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
34
31
  InputAddon.defaultProps = {
35
32
  className: 'input-addon'
36
33
  };
37
34
 
38
- var _templateObject$3, _templateObject2, _templateObject3, _templateObject4;
39
- var IconGroup = styled('div')(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t", ";\n\n\t", ";\n"])), function (_ref) {
40
- var positionType = _ref.positionType;
41
-
42
- if (positionType === 'absolute') {
43
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"])));
44
- }
45
-
46
- return null;
47
- }, function (_ref2) {
48
- var groupPosition = _ref2.groupPosition;
49
- return groupPosition === 'right' ? css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "]))) : css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])));
50
- });
51
-
52
- var _templateObject$4;
53
- var IconWrapper = styled('div')(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: ", ";\n\t\ttransform:scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ", ";\n\t}\n"])), function (_ref) {
54
- var theme = _ref.theme;
55
- return theme.colors.primaryColor;
56
- }, function (_ref2) {
57
- var theme = _ref2.theme;
58
- return theme.colors.borderColor || '#000';
59
- });
60
-
61
35
  var getClassName = helper.getClassName;
62
36
  var SuggestionWrapper = {
63
37
  name: 'SuggestionWrapper',
@@ -78,14 +52,14 @@ var SuggestionWrapper = {
78
52
  }
79
53
  };
80
54
 
81
- var _templateObject$5;
55
+ var _templateObject$2;
82
56
  var highlightStyle = {
83
57
  fontWeight: 600,
84
58
  padding: 0,
85
59
  backgroundColor: 'transparent',
86
60
  color: 'inherit'
87
61
  };
88
- var PredictiveSuggestion = styled('span')(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"])));
62
+ var PredictiveSuggestion = styled('span')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"])));
89
63
  var SuggestionItem = {
90
64
  name: 'SuggestionItem',
91
65
  props: {
@@ -200,34 +174,9 @@ var SearchSvg = {
200
174
  }
201
175
  };
202
176
 
203
- var CancelSvg = {
204
- functional: true,
205
- render: function render(h) {
206
- return h("svg", {
207
- "attrs": {
208
- "alt": "Clear",
209
- "xmlns": "http://www.w3.org/2000/svg",
210
- "height": "20px",
211
- "viewBox": "0 0 24 24",
212
- "width": "20px"
213
- },
214
- "class": "cancel-icon"
215
- }, [h("title", ["Clear"]), h("path", {
216
- "attrs": {
217
- "d": "M0 0h24v24H0V0z",
218
- "fill": "none"
219
- }
220
- }), h("path", {
221
- "attrs": {
222
- "d": "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
223
- }
224
- })]);
225
- }
226
- };
177
+ var _templateObject$3;
227
178
 
228
- var _templateObject$6;
229
-
230
- injectGlobal(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));
179
+ injectGlobal(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));
231
180
  var MicSvg = {
232
181
  name: 'MicSvg',
233
182
  props: ['className'],
@@ -272,9 +221,9 @@ var MicSvg = {
272
221
  }
273
222
  };
274
223
 
275
- var _templateObject$7;
224
+ var _templateObject$4;
276
225
 
277
- injectGlobal(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));
226
+ injectGlobal(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));
278
227
  var MuteSvg = {
279
228
  name: 'MuteSvg',
280
229
  props: ['className'],
@@ -330,9 +279,9 @@ var MuteSvg = {
330
279
  }
331
280
  };
332
281
 
333
- var _templateObject$8;
282
+ var _templateObject$5;
334
283
 
335
- injectGlobal(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));
284
+ injectGlobal(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));
336
285
  var ListenSvg = {
337
286
  name: 'ListenSvg',
338
287
  props: ['className'],
@@ -653,8 +602,8 @@ var Mic = {
653
602
  name: 'Mic',
654
603
  props: {
655
604
  children: types.title,
656
- lang: types.string.def('en-US'),
657
- iconPosition: types.string.def('left'),
605
+ lang: VueTypes.string.def('en-US'),
606
+ iconPosition: VueTypes.string.def('left'),
658
607
  handleResult: types.func,
659
608
  onNoMatch: types.func,
660
609
  onError: types.func,
@@ -1066,10 +1015,10 @@ var DataSearch = {
1066
1015
  })]),
1067
1016
  aggregationField: types.string,
1068
1017
  aggregationSize: VueTypes.number,
1069
- size: VueTypes.number.def(10),
1018
+ size: VueTypes.number,
1070
1019
  debounce: VueTypes.number.def(0),
1071
1020
  defaultValue: types.string,
1072
- excludeFields: types.excludeFields.def([]),
1021
+ excludeFields: types.excludeFields,
1073
1022
  value: types.value,
1074
1023
  defaultSuggestions: types.suggestions,
1075
1024
  enableSynonyms: VueTypes.bool.def(true),
@@ -1083,9 +1032,9 @@ var DataSearch = {
1083
1032
  highlightField: types.stringOrArray,
1084
1033
  icon: types.children,
1085
1034
  iconPosition: VueTypes.oneOf(['left', 'right']).def('left'),
1086
- includeFields: types.includeFields.def(['*']),
1035
+ includeFields: types.includeFields,
1087
1036
  innerClass: types.style,
1088
- innerRef: types.string.def('searchInputField'),
1037
+ innerRef: VueTypes.string.def('searchInputField'),
1089
1038
  render: types.func,
1090
1039
  renderQuerySuggestions: types.func,
1091
1040
  renderPopularSuggestions: types.func,
@@ -1117,7 +1066,7 @@ var DataSearch = {
1117
1066
  focusShortcuts: VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string, VueTypes.number])).def(['/']),
1118
1067
  addonBefore: VueTypes.any,
1119
1068
  addonAfter: VueTypes.any,
1120
- expandSuggestionsContainer: types.bool.def(true),
1069
+ expandSuggestionsContainer: VueTypes.bool.def(true),
1121
1070
  index: VueTypes.string
1122
1071
  },
1123
1072
  beforeMount: function beforeMount() {
@@ -1392,7 +1341,7 @@ var DataSearch = {
1392
1341
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
1393
1342
  }
1394
1343
 
1395
- this.setQueryOptions(this.internalComponent, _extends({}, this.queryOptions, defaultQueryOptions));
1344
+ this.setQueryOptions(this.internalComponent, _extends({}, this.queryOptions, defaultQueryOptions), false);
1396
1345
  this.updateQuery({
1397
1346
  componentId: this.internalComponent,
1398
1347
  query: query,
@@ -1419,7 +1368,7 @@ var DataSearch = {
1419
1368
 
1420
1369
  customQueryOptions = getOptionsFromQuery(customQueryTobeSet);
1421
1370
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
1422
- this.setQueryOptions(componentId, _extends({}, this.queryOptions, customQueryOptions));
1371
+ this.setQueryOptions(componentId, _extends({}, this.queryOptions, customQueryOptions), false);
1423
1372
  }
1424
1373
 
1425
1374
  if (!this.isPending) {
@@ -1778,7 +1727,7 @@ var DataSearch = {
1778
1727
  highlightedIndex: highlightedIndex
1779
1728
  }), _this3.renderErrorComponent(), !_this3.hasCustomRenderer && isOpen && hasSuggestions ? h("ul", {
1780
1729
  "class": suggestions(_this3.themePreset, theme) + " " + getClassName$1(_this3.$props.innerClass, 'list')
1781
- }, [_this3.suggestionsList.slice(0, size).map(function (item, index) {
1730
+ }, [_this3.suggestionsList.slice(0, size || 10).map(function (item, index) {
1782
1731
  return h("li", {
1783
1732
  "domProps": _extends({}, getItemProps({
1784
1733
  item: item
@@ -3,10 +3,10 @@ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPlugin
3
3
  import VueTypes from 'vue-types';
4
4
  import { css } from 'emotion';
5
5
  import styled from '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-98819a12.js';
6
+ import { t as types } from './vueTypes-9326e0be.js';
7
7
  import { a as isFunction } from './index-4755c9a0.js';
8
+ import { D as Downshift, b as InputWrapper, a as IconGroup, I as IconWrapper, C as CancelSvg } from './CancelSvg-4d9e0857.js';
8
9
  import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-d8519224.js';
9
- import { D as Downshift } from './DownShift-e7ccf2a7.js';
10
10
  import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
11
11
 
12
12
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
@@ -69,7 +69,9 @@ var Dropdown = {
69
69
  single: VueTypes.bool,
70
70
  small: VueTypes.bool.def(false),
71
71
  themePreset: types.themePreset,
72
- showSearch: VueTypes.bool
72
+ showSearch: VueTypes.bool,
73
+ showClear: VueTypes.bool,
74
+ searchPlaceholder: VueTypes.string.def('Type here to search...')
73
75
  },
74
76
  render: function render() {
75
77
  var _this = this;
@@ -143,23 +145,7 @@ var Dropdown = {
143
145
  getItemEvents: getItemEvents
144
146
  }) : isOpen && itemsToRender.length ? h("ul", {
145
147
  "class": suggestions(themePreset, _this.theme) + " " + (_this.$props.small ? 'small' : '') + " " + getClassName(_this.$props.innerClass, 'list')
146
- }, [_this.$props.showSearch ? h(Input, {
147
- "attrs": {
148
- "id": _this.$props.componentId + "-input",
149
- "showIcon": false,
150
- "placeholder": "Type here to search...",
151
- "value": _this.$data.searchTerm,
152
- "themePreset": themePreset
153
- },
154
- "style": {
155
- border: 0,
156
- borderBottom: '1px solid #ddd'
157
- },
158
- "class": getClassName(_this.$props.innerClass, 'input'),
159
- "on": {
160
- "change": _this.handleInputChange
161
- }
162
- }) : null, !hasCustomRenderer && filteredItemsToRender.length === 0 ? _this.renderNoResult() : filteredItemsToRender.map(function (item, index) {
148
+ }, [_this.$props.showSearch ? _this.renderSearchbox() : null, !hasCustomRenderer && filteredItemsToRender.length === 0 ? _this.renderNoResult() : filteredItemsToRender.map(function (item, index) {
163
149
  var selected = _this.$props.multi // MultiDropdownList
164
150
  && (selectedItem && !!selectedItem[item[keyField]] // MultiDropdownRange
165
151
  || Array.isArray(selectedItem) && selectedItem.find(function (value) {
@@ -212,6 +198,7 @@ var Dropdown = {
212
198
 
213
199
  if (!this.$props.multi) {
214
200
  this.isOpen = false;
201
+ this.searchTerm = '';
215
202
  }
216
203
  },
217
204
  handleStateChange: function handleStateChange(_ref2) {
@@ -235,6 +222,9 @@ var Dropdown = {
235
222
  var value = e.target.value;
236
223
  this.searchTerm = value;
237
224
  },
225
+ clearSearchTerm: function clearSearchTerm() {
226
+ this.searchTerm = '';
227
+ },
238
228
  renderToString: function renderToString(value) {
239
229
  var _this2 = this;
240
230
 
@@ -275,6 +265,51 @@ var Dropdown = {
275
265
  return h("p", {
276
266
  "class": getClassName(this.$props.innerClass, 'noResults') || null
277
267
  }, [isFunction(renderNoResults) ? renderNoResults() : renderNoResults]);
268
+ },
269
+ renderSearchbox: function renderSearchbox() {
270
+ var h = this.$createElement;
271
+ var _this$$props2 = this.$props,
272
+ componentId = _this$$props2.componentId,
273
+ searchPlaceholder = _this$$props2.searchPlaceholder,
274
+ showClear = _this$$props2.showClear,
275
+ themePreset = _this$$props2.themePreset,
276
+ innerClass = _this$$props2.innerClass;
277
+ var InputComponent = h(Input, {
278
+ "attrs": {
279
+ "id": componentId + "-input",
280
+ "showIcon": false,
281
+ "showClear": showClear,
282
+ "placeholder": searchPlaceholder,
283
+ "value": this.$data.searchTerm,
284
+ "themePreset": themePreset
285
+ },
286
+ "style": {
287
+ border: 0,
288
+ borderBottom: '1px solid #ddd'
289
+ },
290
+ "class": getClassName(innerClass, 'input'),
291
+ "on": {
292
+ "change": this.handleInputChange
293
+ }
294
+ });
295
+
296
+ if (showClear) {
297
+ return h(InputWrapper, [InputComponent, this.searchTerm && h(IconGroup, {
298
+ "attrs": {
299
+ "groupPosition": "right",
300
+ "positionType": "absolute"
301
+ }
302
+ }, [h(IconWrapper, {
303
+ "on": {
304
+ "click": this.clearSearchTerm
305
+ },
306
+ "attrs": {
307
+ "isClearIcon": true
308
+ }
309
+ }, [h(CancelSvg)])])]);
310
+ }
311
+
312
+ return InputComponent;
278
313
  }
279
314
  }
280
315
  };