@appbaseio/reactivesearch-vue 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +176 -125
  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/{CancelSvg-62d42af4.js → CancelSvg-4aa35935.js} +1 -14
  6. package/dist/cjs/DataSearch.js +4 -4
  7. package/dist/cjs/{DropDown-5847d6e4.js → DropDown-cf9bfffc.js} +2 -2
  8. package/dist/cjs/DynamicRangeSlider.js +9 -6
  9. package/dist/cjs/MultiDropdownList.js +5 -5
  10. package/dist/cjs/MultiList.js +3 -3
  11. package/dist/cjs/MultiRange.js +2 -2
  12. package/dist/cjs/RangeInput.js +3 -3
  13. package/dist/cjs/RangeSlider.js +17 -20
  14. package/dist/cjs/ReactiveBase.js +1 -1
  15. package/dist/cjs/ReactiveComponent.js +1 -1
  16. package/dist/cjs/ReactiveList.js +1 -1
  17. package/dist/cjs/ResultCard.js +1 -1
  18. package/dist/cjs/ResultList.js +1 -1
  19. package/dist/cjs/SelectedFilters.js +7 -5
  20. package/dist/cjs/SingleDropdownList.js +5 -5
  21. package/dist/cjs/SingleList.js +3 -3
  22. package/dist/cjs/SingleRange.js +2 -2
  23. package/dist/cjs/StateProvider.js +6 -2
  24. package/dist/cjs/ToggleButton.js +2 -2
  25. package/dist/cjs/index.js +4 -4
  26. package/dist/cjs/install.js +4 -4
  27. package/dist/cjs/ssr-0ee35a09.js +39 -0
  28. package/dist/cjs/version.js +1 -1
  29. package/dist/cjs/{vueTypes-4c19b4c8.js → vueTypes-57d01f18.js} +3 -3
  30. package/dist/es/{CancelSvg-e0cace2d.js → CancelSvg-c2c03a35.js} +1 -14
  31. package/dist/es/DataSearch.js +4 -4
  32. package/dist/es/{DropDown-1ee01031.js → DropDown-c8da0a2c.js} +2 -2
  33. package/dist/es/DynamicRangeSlider.js +9 -6
  34. package/dist/es/MultiDropdownList.js +5 -5
  35. package/dist/es/MultiList.js +3 -3
  36. package/dist/es/MultiRange.js +2 -2
  37. package/dist/es/RangeInput.js +3 -3
  38. package/dist/es/RangeSlider.js +17 -20
  39. package/dist/es/ReactiveBase.js +1 -1
  40. package/dist/es/ReactiveComponent.js +1 -1
  41. package/dist/es/ReactiveList.js +1 -1
  42. package/dist/es/ResultCard.js +1 -1
  43. package/dist/es/ResultList.js +1 -1
  44. package/dist/es/SelectedFilters.js +7 -5
  45. package/dist/es/SingleDropdownList.js +5 -5
  46. package/dist/es/SingleList.js +3 -3
  47. package/dist/es/SingleRange.js +2 -2
  48. package/dist/es/StateProvider.js +6 -2
  49. package/dist/es/ToggleButton.js +2 -2
  50. package/dist/es/index.js +4 -4
  51. package/dist/es/install.js +4 -4
  52. package/dist/es/ssr-a41dfea9.js +33 -0
  53. package/dist/es/version.js +1 -1
  54. package/dist/es/{vueTypes-fb61bb7b.js → vueTypes-687b2304.js} +3 -3
  55. package/package.json +3 -3
  56. package/dist/cjs/ssr-08e95ede.js +0 -39
  57. package/dist/es/ssr-5d255b08.js +0 -33
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f127c8b7.js');
6
+ var styled = require('@appbaseio/vue-emotion');
7
+ var styled__default = _interopDefault(styled);
8
+ var NoSSR = _interopDefault(require('vue-no-ssr'));
9
+
10
+ var _templateObject;
11
+ var Slider = styled__default('div')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"])));
12
+
13
+ /**
14
+ * Caution: Please do not change this file without having a discussion with the Team.
15
+ * Any change may break the umd build, we're directly replacing the line no: 14
16
+ * `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script.
17
+ */
18
+ // eslint-disable-next-line
19
+
20
+ var getComponents = function getComponents() {
21
+ var components = {
22
+ NoSSR: NoSSR
23
+ };
24
+
25
+ if (process.browser) {
26
+ try {
27
+ // in older versions of nuxt, it's process.BROWSER_BUILD
28
+ // eslint-disable-next-line
29
+ components['vue-slider-component'] = require('vue-slider-component');
30
+ } catch (e) {
31
+ console.error('Unable to load vue-slider', e);
32
+ }
33
+ }
34
+
35
+ return components;
36
+ };
37
+
38
+ exports.Slider = Slider;
39
+ exports.getComponents = getComponents;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "1.25.0";
5
+ var version = "1.26.0";
6
6
 
7
7
  exports.default = version;
@@ -99,19 +99,19 @@ var types = {
99
99
  unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
100
100
  value: VueTypes.string.def(undefined),
101
101
  analyticsConfig: VueTypes.shape({
102
- searchStateHeader: VueTypes.bool,
103
102
  emptyQuery: VueTypes.bool,
104
103
  suggestionAnalytics: VueTypes.bool,
105
104
  userId: VueTypes.string,
106
105
  customEvents: VueTypes.object
107
106
  }),
108
107
  appbaseConfig: VueTypes.shape({
109
- enableQueryRules: VueTypes.bool,
110
108
  recordAnalytics: VueTypes.bool,
111
- searchStateHeader: VueTypes.bool,
112
109
  emptyQuery: VueTypes.bool,
113
110
  suggestionAnalytics: VueTypes.bool,
111
+ enableQueryRules: VueTypes.bool,
112
+ enableSearchRelevancy: VueTypes.bool,
114
113
  userId: VueTypes.string,
114
+ useCache: VueTypes.bool,
115
115
  customEvents: VueTypes.object,
116
116
  enableTelemetry: VueTypes.bool.def(true)
117
117
  }).def({}),
@@ -63,8 +63,7 @@ var Downshift = {
63
63
  internal_isOpen: false,
64
64
  internal_inputValue: '',
65
65
  internal_selectedItem: null,
66
- internal_highlightedIndex: null,
67
- internal_eventsCalled: {}
66
+ internal_highlightedIndex: null
68
67
  };
69
68
  },
70
69
  computed: {
@@ -249,23 +248,11 @@ var Downshift = {
249
248
  }
250
249
 
251
250
  var vm = this;
252
- setTimeout(function () {
253
- vm.internal_eventsCalled[index] = false;
254
- }, 0);
255
251
  return {
256
252
  mouseenter: function mouseenter() {
257
253
  vm.setHighlightedIndex(newIndex);
258
254
  },
259
- // for browsers not supporting click event (e.g. firefox android)
260
- mousedown: function mousedown(event) {
261
- if (vm.internal_eventsCalled[index]) return;
262
- vm.internal_eventsCalled[index] = true;
263
- event.stopPropagation();
264
- vm.selectItemAtIndex(newIndex);
265
- },
266
255
  click: function click(event) {
267
- if (vm.internal_eventsCalled[index]) return;
268
- vm.internal_eventsCalled[index] = true;
269
256
  event.stopPropagation();
270
257
  vm.selectItemAtIndex(newIndex);
271
258
  }
@@ -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-fb61bb7b.js';
9
+ import { t as types } from './vueTypes-687b2304.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-cb1950b6.js';
@@ -14,7 +14,7 @@ import { C as ComponentWrapper } from './ComponentWrapper-4f85a67e.js';
14
14
  import { T as Title } from './Title-3522ff56.js';
15
15
  import { F as Flex } from './Flex-8770345d.js';
16
16
  import hotkeys from 'hotkeys-js';
17
- import { I as IconWrapper, C as CancelSvg, a as IconGroup, D as Downshift, b as InputWrapper } from './CancelSvg-e0cace2d.js';
17
+ import { I as IconWrapper, C as CancelSvg, a as IconGroup, D as Downshift, b as InputWrapper } from './CancelSvg-c2c03a35.js';
18
18
  import { n as noSuggestions, s as suggestionsContainer, I as Input, a as suggestions } from './Input-08bb1bcf.js';
19
19
  import 'compute-scroll-into-view';
20
20
  import { C as Container } from './Container-18b03fde.js';
@@ -1341,7 +1341,7 @@ var DataSearch = {
1341
1341
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
1342
1342
  }
1343
1343
 
1344
- this.setQueryOptions(this.internalComponent, _extends({}, this.queryOptions, defaultQueryOptions));
1344
+ this.setQueryOptions(this.internalComponent, _extends({}, this.queryOptions, defaultQueryOptions), false);
1345
1345
  this.updateQuery({
1346
1346
  componentId: this.internalComponent,
1347
1347
  query: query,
@@ -1368,7 +1368,7 @@ var DataSearch = {
1368
1368
 
1369
1369
  customQueryOptions = getOptionsFromQuery(customQueryTobeSet);
1370
1370
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
1371
- this.setQueryOptions(componentId, _extends({}, this.queryOptions, customQueryOptions));
1371
+ this.setQueryOptions(componentId, _extends({}, this.queryOptions, customQueryOptions), false);
1372
1372
  }
1373
1373
 
1374
1374
  if (!this.isPending) {
@@ -3,9 +3,9 @@ import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPlugin
3
3
  import VueTypes from 'vue-types';
4
4
  import { css } from 'emotion';
5
5
  import styled from '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-fb61bb7b.js';
6
+ import { t as types } from './vueTypes-687b2304.js';
7
7
  import { a as isFunction } from './index-cb1950b6.js';
8
- import { D as Downshift, b as InputWrapper, a as IconGroup, I as IconWrapper, C as CancelSvg } from './CancelSvg-e0cace2d.js';
8
+ import { D as Downshift, b as InputWrapper, a as IconGroup, I as IconWrapper, C as CancelSvg } from './CancelSvg-c2c03a35.js';
9
9
  import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-08bb1bcf.js';
10
10
  import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
11
11
 
@@ -3,13 +3,13 @@ import { a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-fb61bb7b.js';
6
+ import { t as types } from './vueTypes-687b2304.js';
7
7
  import 'redux';
8
8
  import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
9
9
  import { T as Title } from './Title-3522ff56.js';
10
10
  import { C as Container } from './Container-18b03fde.js';
11
11
  import NoSSR from 'vue-no-ssr';
12
- import { g as getComponents, S as Slider } from './ssr-5d255b08.js';
12
+ import { g as getComponents, S as Slider } from './ssr-a41dfea9.js';
13
13
 
14
14
  var addComponent = Actions.addComponent,
15
15
  removeComponent = Actions.removeComponent,
@@ -176,8 +176,9 @@ var DynamicRangeSlider = {
176
176
  aggs: aggs
177
177
  });
178
178
  },
179
- handleSlider: function handleSlider(values) {
180
- this.handleChange(values.currentValue);
179
+ handleSlider: function handleSlider() {
180
+ var sliderValues = this.$refs.slider.getValue();
181
+ this.handleChange(sliderValues);
181
182
  },
182
183
  handleChange: function handleChange(currentValue) {
183
184
  var _this2 = this;
@@ -229,7 +230,7 @@ var DynamicRangeSlider = {
229
230
  currentEnd = value[1]; // check if the slider is at its initial position
230
231
 
231
232
  var isInitialValue = currentStart === start && currentEnd === end;
232
- this.setQueryOptions(this.$props.componentId, customQueryOptions);
233
+ this.setQueryOptions(this.$props.componentId, customQueryOptions, false);
233
234
  this.updateQuery({
234
235
  componentId: this.$props.componentId,
235
236
  query: query,
@@ -310,13 +311,15 @@ var DynamicRangeSlider = {
310
311
  }, [this.$props.title]), h(NoSSR, [h(Slider, {
311
312
  "class": getClassName(this.$props.innerClass, 'slider')
312
313
  }, [h("vue-slider-component", {
314
+ "ref": "slider",
313
315
  "attrs": {
314
316
  "value": [Math.max(start, this.currentValue[0]), Math.min(end, this.currentValue[1])],
315
317
  "min": Math.min(start, this.currentValue[0]),
316
318
  "max": Math.max(end, this.currentValue[1]),
317
319
  "dotSize": 20,
318
320
  "height": 4,
319
- "enable-cross": false
321
+ "enable-cross": false,
322
+ "tooltip": "always"
320
323
  },
321
324
  "on": {
322
325
  "drag-end": this.handleSlider
@@ -6,19 +6,19 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { l as loadMoreContainer, B as Button } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-fb61bb7b.js';
9
+ import { t as types } from './vueTypes-687b2304.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
12
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
13
13
  import { C as ComponentWrapper } from './ComponentWrapper-4f85a67e.js';
14
14
  import { T as Title } from './Title-3522ff56.js';
15
- import './CancelSvg-e0cace2d.js';
15
+ import './CancelSvg-c2c03a35.js';
16
16
  import './Input-08bb1bcf.js';
17
17
  import 'compute-scroll-into-view';
18
18
  import { C as Container } from './Container-18b03fde.js';
19
19
  import '@appbaseio/reactivecore/lib/utils/suggestions';
20
20
  import { g as getAggsQuery } from './utils-64a2e5f0.js';
21
- import { D as Dropdown } from './DropDown-1ee01031.js';
21
+ import { D as Dropdown } from './DropDown-c8da0a2c.js';
22
22
 
23
23
  var updateQuery = Actions.updateQuery,
24
24
  setQueryOptions = Actions.setQueryOptions,
@@ -369,7 +369,7 @@ var MultiDropdownList = {
369
369
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
370
370
  }
371
371
 
372
- this.setQueryOptions(this.internalComponent, defaultQueryOptions);
372
+ this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
373
373
  this.updateQuery({
374
374
  componentId: this.internalComponent,
375
375
  query: query,
@@ -390,7 +390,7 @@ var MultiDropdownList = {
390
390
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
391
391
  }
392
392
 
393
- this.setQueryOptions(props.componentId, customQueryOptions);
393
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
394
394
  this.updateQuery({
395
395
  componentId: props.componentId,
396
396
  query: query,
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-fb61bb7b.js';
8
+ import { t as types } from './vueTypes-687b2304.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, n as isEvent, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
@@ -349,7 +349,7 @@ var MultiList = {
349
349
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
350
350
  }
351
351
 
352
- this.setQueryOptions(this.internalComponent, defaultQueryOptions);
352
+ this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
353
353
  this.updateQuery({
354
354
  componentId: this.internalComponent,
355
355
  query: query,
@@ -370,7 +370,7 @@ var MultiList = {
370
370
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
371
371
  }
372
372
 
373
- this.setQueryOptions(props.componentId, customQueryOptions);
373
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
374
374
  this.updateQuery({
375
375
  componentId: props.componentId,
376
376
  query: query,
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-fb61bb7b.js';
8
+ import { t as types } from './vueTypes-687b2304.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { o as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -141,7 +141,7 @@ var MultiRange = {
141
141
  updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
142
142
  }
143
143
 
144
- this.setQueryOptions(props.componentId, customQueryOptions);
144
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
145
145
  this.updateQuery({
146
146
  componentId: props.componentId,
147
147
  query: query,
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import { css } from 'emotion';
6
6
  import styled from '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-fb61bb7b.js';
8
+ import { t as types } from './vueTypes-687b2304.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { c as connect } from './index-cb1950b6.js';
@@ -15,7 +15,7 @@ import { F as Flex } from './Flex-8770345d.js';
15
15
  import { I as Input } from './Input-08bb1bcf.js';
16
16
  import { C as Container } from './Container-18b03fde.js';
17
17
  import 'vue-no-ssr';
18
- import './ssr-5d255b08.js';
18
+ import './ssr-a41dfea9.js';
19
19
  import { RangeConnected as RangeConnected$1 } from './RangeSlider.js';
20
20
 
21
21
  var _templateObject, _templateObject2;
@@ -138,7 +138,7 @@ var RangeInput = {
138
138
  }
139
139
  },
140
140
  handleOnChange: function handleOnChange(value) {
141
- this.handleChange(value, 'change');
141
+ this.handleChange(value || this.$props.range, 'change');
142
142
  },
143
143
  handleValueChange: function handleValueChange(value) {
144
144
  this.handleChange(value, 'value-change');
@@ -3,7 +3,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-fb61bb7b.js';
6
+ import { t as types } from './vueTypes-687b2304.js';
7
7
  import '@appbaseio/reactivecore/lib/utils/transform';
8
8
  import 'redux';
9
9
  import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -11,7 +11,7 @@ import { C as ComponentWrapper } from './ComponentWrapper-4f85a67e.js';
11
11
  import { T as Title } from './Title-3522ff56.js';
12
12
  import { C as Container } from './Container-18b03fde.js';
13
13
  import NoSSR from 'vue-no-ssr';
14
- import { g as getComponents, S as Slider } from './ssr-5d255b08.js';
14
+ import { g as getComponents, S as Slider } from './ssr-a41dfea9.js';
15
15
 
16
16
  var updateQuery = Actions.updateQuery,
17
17
  setQueryOptions = Actions.setQueryOptions,
@@ -73,32 +73,28 @@ var RangeSlider = {
73
73
  });
74
74
  }
75
75
  },
76
- handleSlider: function handleSlider(values) {
77
- var _this = this;
78
-
79
- clearTimeout(this.handleSliderChange._tId);
80
- this.handleSliderChange._tId = setTimeout(function () {
81
- _this.handleSliderChange(values);
82
- }, 100);
76
+ handleSlider: function handleSlider() {
77
+ var sliderValues = this.$refs.slider.getValue();
78
+ this.handleSliderChange(sliderValues);
83
79
  },
84
80
  handleChange: function handleChange(currentValue, props) {
85
- var _this2 = this;
81
+ var _this = this;
86
82
 
87
83
  if (props === void 0) {
88
84
  props = this.$props;
89
85
  }
90
86
 
91
87
  var performUpdate = function performUpdate() {
92
- _this2.currentValue = currentValue;
88
+ _this.currentValue = currentValue;
93
89
 
94
- _this2.updateQueryHandler([currentValue[0], currentValue[1]], props);
90
+ _this.updateQueryHandler([currentValue[0], currentValue[1]], props);
95
91
 
96
- _this2.$emit('valueChange', {
92
+ _this.$emit('valueChange', {
97
93
  start: currentValue[0],
98
94
  end: currentValue[1]
99
95
  });
100
96
 
101
- _this2.$emit('value-change', {
97
+ _this.$emit('value-change', {
102
98
  start: currentValue[0],
103
99
  end: currentValue[1]
104
100
  });
@@ -130,7 +126,7 @@ var RangeSlider = {
130
126
  currentEnd = value[1]; // check if the slider is at its initial position
131
127
 
132
128
  var isInitialValue = currentStart === start && currentEnd === end;
133
- this.setQueryOptions(props.componentId, customQueryOptions);
129
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
134
130
  this.updateQuery({
135
131
  componentId: props.componentId,
136
132
  query: query,
@@ -209,12 +205,13 @@ var RangeSlider = {
209
205
  "max": this.$props.range.end,
210
206
  "dotSize": 20,
211
207
  "height": 4,
212
- "enable-cross": false
208
+ "enable-cross": false,
209
+ "tooltip": "always"
210
+ },
211
+ "on": {
212
+ "drag-end": this.handleSlider
213
213
  },
214
- "props": _extends({}, this.$props.sliderOptions),
215
- "on": _extends({}, {
216
- input: this.handleSlider
217
- })
214
+ "props": _extends({}, this.$props.sliderOptions)
218
215
  }), this.$props.rangeLabels && h("div", {
219
216
  "class": "label-container"
220
217
  }, [h("label", {
@@ -4,7 +4,7 @@ import VueTypes from 'vue-types';
4
4
  import '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import { isEqual as isEqual$1 } from '@appbaseio/reactivecore/lib/utils/helper';
6
6
  import styled from '@appbaseio/vue-emotion';
7
- import { t as types } from './vueTypes-fb61bb7b.js';
7
+ import { t as types } from './vueTypes-687b2304.js';
8
8
  import 'redux';
9
9
  import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-cb1950b6.js';
10
10
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
@@ -2,7 +2,7 @@ import { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
- import { t as types } from './vueTypes-fb61bb7b.js';
5
+ import { t as types } from './vueTypes-687b2304.js';
6
6
  import '@appbaseio/reactivecore/lib/utils/transform';
7
7
  import 'redux';
8
8
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -7,7 +7,7 @@ import { css } from 'emotion';
7
7
  import styled from '@appbaseio/vue-emotion';
8
8
  import 'polished';
9
9
  import { p as pagination, B as Button } from './Button-91561391.js';
10
- import { t as types } from './vueTypes-fb61bb7b.js';
10
+ import { t as types } from './vueTypes-687b2304.js';
11
11
  import '@appbaseio/reactivecore/lib/utils/transform';
12
12
  import 'redux';
13
13
  import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-cb1950b6.js';
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
3
3
  import 'emotion';
4
4
  import '@appbaseio/vue-emotion';
5
5
  import 'polished';
6
- import { t as types } from './vueTypes-fb61bb7b.js';
6
+ import { t as types } from './vueTypes-687b2304.js';
7
7
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
8
8
  import { T as Title } from './Title-3522ff56.js';
9
9
  import { I as Image, C as Card } from './Card-6446f1b7.js';
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
3
3
  import 'emotion';
4
4
  import '@appbaseio/vue-emotion';
5
5
  import 'polished';
6
- import { t as types } from './vueTypes-fb61bb7b.js';
6
+ import { t as types } from './vueTypes-687b2304.js';
7
7
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
8
8
  import { T as Title } from './Title-3522ff56.js';
9
9
  import { I as Image, L as ListItem } from './ListItem-8e8fb535.js';
@@ -6,7 +6,7 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { f as filters, B as Button } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-fb61bb7b.js';
9
+ import { t as types } from './vueTypes-687b2304.js';
10
10
  import 'redux';
11
11
  import { c as connect } from './index-cb1950b6.js';
12
12
  import { T as Title } from './Title-3522ff56.js';
@@ -25,7 +25,8 @@ var SelectedFilters = {
25
25
  innerClass: types.style,
26
26
  showClearAll: VueTypes.bool.def(true),
27
27
  title: types.title,
28
- resetToDefault: VueTypes.bool.def(false)
28
+ resetToDefault: VueTypes.bool.def(false),
29
+ resetToValues: VueTypes.object
29
30
  },
30
31
  inject: {
31
32
  theme: {
@@ -78,15 +79,16 @@ var SelectedFilters = {
78
79
  this.$emit('clear', component, value);
79
80
  },
80
81
  clearValues: function clearValues() {
81
- var resetToDefault = this.resetToDefault;
82
+ var resetToDefault = this.resetToDefault,
83
+ resetToValues = this.resetToValues;
82
84
 
83
85
  if (resetToDefault) {
84
86
  this.resetValuesToDefault();
85
87
  } else {
86
- this.clearValuesAction();
88
+ this.clearValuesAction(resetToValues);
87
89
  }
88
90
 
89
- this.$emit('clear', null);
91
+ this.$emit('clear', resetToValues);
90
92
  },
91
93
  renderValue: function renderValue(value, isArray) {
92
94
  var _this2 = this;
@@ -6,19 +6,19 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { l as loadMoreContainer, B as Button } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-fb61bb7b.js';
9
+ import { t as types } from './vueTypes-687b2304.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
12
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
13
13
  import { C as ComponentWrapper } from './ComponentWrapper-4f85a67e.js';
14
14
  import { T as Title } from './Title-3522ff56.js';
15
- import './CancelSvg-e0cace2d.js';
15
+ import './CancelSvg-c2c03a35.js';
16
16
  import './Input-08bb1bcf.js';
17
17
  import 'compute-scroll-into-view';
18
18
  import { C as Container } from './Container-18b03fde.js';
19
19
  import '@appbaseio/reactivecore/lib/utils/suggestions';
20
20
  import { g as getAggsQuery } from './utils-64a2e5f0.js';
21
- import { D as Dropdown } from './DropDown-1ee01031.js';
21
+ import { D as Dropdown } from './DropDown-c8da0a2c.js';
22
22
 
23
23
  var updateQuery = Actions.updateQuery,
24
24
  setQueryOptions = Actions.setQueryOptions,
@@ -294,7 +294,7 @@ var SingleDropdownList = {
294
294
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
295
295
  }
296
296
 
297
- this.setQueryOptions(this.internalComponent, defaultQueryOptions);
297
+ this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
298
298
  this.updateQuery({
299
299
  componentId: this.internalComponent,
300
300
  query: query,
@@ -315,7 +315,7 @@ var SingleDropdownList = {
315
315
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
316
316
  }
317
317
 
318
- this.setQueryOptions(props.componentId, customQueryOptions);
318
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
319
319
  this.updateQuery({
320
320
  componentId: props.componentId,
321
321
  query: query,
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-fb61bb7b.js';
8
+ import { t as types } from './vueTypes-687b2304.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, n as isEvent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
@@ -277,7 +277,7 @@ var SingleList = {
277
277
  updateDefaultQuery(props.componentId, this.setDefaultQuery, props, value);
278
278
  }
279
279
 
280
- this.setQueryOptions(this.internalComponent, defaultQueryOptions);
280
+ this.setQueryOptions(this.internalComponent, defaultQueryOptions, false);
281
281
  this.updateQuery({
282
282
  componentId: this.internalComponent,
283
283
  query: query,
@@ -298,7 +298,7 @@ var SingleList = {
298
298
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
299
299
  }
300
300
 
301
- this.setQueryOptions(props.componentId, customQueryOptions);
301
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
302
302
  this.updateQuery({
303
303
  componentId: props.componentId,
304
304
  query: query,
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-fb61bb7b.js';
8
+ import { t as types } from './vueTypes-687b2304.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -160,7 +160,7 @@ var SingleRange = {
160
160
  updateCustomQuery(this.componentId, this.setCustomQuery, this.$props, this.currentValue);
161
161
  }
162
162
 
163
- this.setQueryOptions(props.componentId, customQueryOptions);
163
+ this.setQueryOptions(props.componentId, customQueryOptions, false);
164
164
  this.updateQuery({
165
165
  componentId: props.componentId,
166
166
  query: query,
@@ -9,6 +9,10 @@ var getSearchState = helper.getSearchState;
9
9
  var defaultKeys = ['hits', 'value', 'aggregations', 'error'];
10
10
 
11
11
  var filterProps = function filterProps(props) {
12
+ if (props === void 0) {
13
+ props = {};
14
+ }
15
+
12
16
  return _extends({}, props, {
13
17
  props: props.componentProps
14
18
  });
@@ -28,7 +32,7 @@ var filterByComponentIds = function filterByComponentIds(state, props) {
28
32
  return _ref = {}, _ref[componentIds] = state[componentIds], _ref;
29
33
  }
30
34
 
31
- if (componentIds instanceof Array) {
35
+ if (Array.isArray(componentIds)) {
32
36
  var filteredState = {};
33
37
  componentIds.forEach(function (componentId) {
34
38
  filteredState[componentId] = state[componentId];
@@ -67,7 +71,7 @@ var StateProvider = {
67
71
  };
68
72
  return this.__state;
69
73
  },
70
- mounted: function mounted() {
74
+ created: function created() {
71
75
  this.searchState = filterByKeys(getSearchState(filterProps(this.searchStateProps)), this.includeKeys);
72
76
  },
73
77
  computed: {
@@ -6,7 +6,7 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { B as Button, t as toggleButtons } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-fb61bb7b.js';
9
+ import { t as types } from './vueTypes-687b2304.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
12
  import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -186,7 +186,7 @@ var ToggleButton = {
186
186
  var _ref = customQuery(value, props) || {};
187
187
 
188
188
  query = _ref.query;
189
- this.setQueryOptions(props.componentId, getOptionsFromQuery(customQuery(value, props)));
189
+ this.setQueryOptions(props.componentId, getOptionsFromQuery(customQuery(value, props)), false);
190
190
  updateCustomQuery(props.componentId, this.setCustomQuery, props, value);
191
191
  }
192
192