@appbaseio/reactivesearch-vue 1.34.0-alpha.2 → 1.34.1

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 (104) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +11024 -8760
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +12 -11
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/Button-841fd06d.js +62 -0
  6. package/dist/cjs/{CancelSvg-062a42f0.js → CancelSvg-220a7cc3.js} +40 -32
  7. package/dist/cjs/Card-240f283d.js +30 -0
  8. package/dist/cjs/{ComponentWrapper-db45cc6d.js → ComponentWrapper-94c50228.js} +7 -7
  9. package/dist/cjs/Container-e699ea95.js +15 -0
  10. package/dist/cjs/DataSearch.js +1312 -20
  11. package/dist/cjs/{DropDown-3b899b20.js → DropDown-7a52c661.js} +79 -78
  12. package/dist/cjs/DynamicRangeSlider.js +46 -56
  13. package/dist/cjs/Flex-ddd7cb6b.js +50 -0
  14. package/dist/cjs/FormControlList-bbb5cd24.js +45 -0
  15. package/dist/cjs/Input-ead4cd84.js +77 -0
  16. package/dist/cjs/ListItem-5088bd6a.js +45 -0
  17. package/dist/cjs/MultiDropdownList.js +68 -74
  18. package/dist/cjs/MultiList.js +94 -89
  19. package/dist/cjs/MultiRange.js +44 -54
  20. package/dist/cjs/{Pagination-a468f960.js → Pagination-e56a5b79.js} +53 -56
  21. package/dist/cjs/{PreferencesConsumer-034c55e3.js → PreferencesConsumer-5e6e84a2.js} +5 -6
  22. package/dist/cjs/RangeInput.js +107 -115
  23. package/dist/cjs/RangeSlider.js +39 -50
  24. package/dist/cjs/ReactiveBase.js +55 -69
  25. package/dist/cjs/ReactiveComponent.js +316 -46
  26. package/dist/cjs/{ReactiveComponent-f0f486ca.js → ReactiveComponentPrivate-244c6055.js} +321 -618
  27. package/dist/cjs/ReactiveComponentPrivate.js +55 -0
  28. package/dist/cjs/ReactiveGoogleMap.js +439 -384
  29. package/dist/cjs/ReactiveList.js +128 -100
  30. package/dist/cjs/ResultCard.js +19 -26
  31. package/dist/cjs/ResultList.js +27 -31
  32. package/dist/cjs/SelectedFilters.js +34 -49
  33. package/dist/cjs/SingleDropdownList.js +66 -73
  34. package/dist/cjs/SingleList.js +96 -90
  35. package/dist/cjs/SingleRange.js +42 -48
  36. package/dist/cjs/StateProvider.js +2 -2
  37. package/dist/cjs/Tags-4ec43831.js +883 -0
  38. package/dist/cjs/Title-16042ea0.js +15 -0
  39. package/dist/cjs/ToggleButton.js +34 -39
  40. package/dist/cjs/{index-dc25b706.js → index-de136c17.js} +8 -6
  41. package/dist/cjs/index.js +27 -25
  42. package/dist/cjs/initReactivesearch.js +0 -3
  43. package/dist/cjs/install.js +23 -22
  44. package/dist/cjs/ssr-f2fc1bf6.js +36 -0
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/cjs/{vueTypes-621a8143.js → vueTypes-b7007f5f.js} +3 -2
  47. package/dist/es/Button-153cd885.js +53 -0
  48. package/dist/es/{CancelSvg-14ebc9a1.js → CancelSvg-e40552a5.js} +37 -30
  49. package/dist/es/{Card-1951569e.js → Card-19ad6d90.js} +6 -5
  50. package/dist/es/{ComponentWrapper-bf443c0b.js → ComponentWrapper-edaeaceb.js} +6 -6
  51. package/dist/es/Container-d00219f7.js +1 -1
  52. package/dist/es/DataSearch.js +1312 -18
  53. package/dist/es/{DropDown-35e232b7.js → DropDown-2c0dd714.js} +78 -78
  54. package/dist/es/DynamicRangeSlider.js +43 -53
  55. package/dist/es/Flex-7c177a10.js +45 -0
  56. package/dist/es/FormControlList-99797d0a.js +38 -0
  57. package/dist/es/Input-c09c0b56.js +69 -0
  58. package/dist/es/{ListItem-47a6345a.js → ListItem-07888a65.js} +7 -6
  59. package/dist/es/MultiDropdownList.js +66 -72
  60. package/dist/es/MultiList.js +93 -88
  61. package/dist/es/MultiRange.js +42 -52
  62. package/dist/es/{Pagination-145b4ff2.js → Pagination-edeb7dbe.js} +53 -56
  63. package/dist/es/{PreferencesConsumer-7ea7313a.js → PreferencesConsumer-86a676c8.js} +4 -5
  64. package/dist/es/RangeInput.js +103 -112
  65. package/dist/es/RangeSlider.js +36 -47
  66. package/dist/es/ReactiveBase.js +53 -68
  67. package/dist/es/ReactiveComponent.js +316 -45
  68. package/dist/es/{ReactiveComponent-e2fb9eb4.js → ReactiveComponentPrivate-6f16e1b7.js} +316 -614
  69. package/dist/es/ReactiveComponentPrivate.js +47 -0
  70. package/dist/es/ReactiveGoogleMap.js +434 -380
  71. package/dist/es/ReactiveList.js +125 -98
  72. package/dist/es/ResultCard.js +18 -25
  73. package/dist/es/ResultList.js +26 -30
  74. package/dist/es/SelectedFilters.js +32 -47
  75. package/dist/es/SingleDropdownList.js +64 -71
  76. package/dist/es/SingleList.js +94 -88
  77. package/dist/es/SingleRange.js +40 -46
  78. package/dist/es/StateProvider.js +2 -2
  79. package/dist/es/Tags-1c2d6c4d.js +869 -0
  80. package/dist/es/Title-863dfa42.js +1 -1
  81. package/dist/es/ToggleButton.js +32 -37
  82. package/dist/es/{index-285a43a6.js → index-5509c0bc.js} +8 -6
  83. package/dist/es/index.js +20 -19
  84. package/dist/es/initReactivesearch.js +0 -3
  85. package/dist/es/install.js +20 -19
  86. package/dist/es/ssr-03607d84.js +1 -1
  87. package/dist/es/version.js +1 -1
  88. package/dist/es/{vueTypes-e4af6fe2.js → vueTypes-66ebc93e.js} +3 -2
  89. package/package.json +87 -87
  90. package/dist/cjs/Button-626c5e8e.js +0 -58
  91. package/dist/cjs/Card-c381ded3.js +0 -26
  92. package/dist/cjs/Container-29f049b2.js +0 -12
  93. package/dist/cjs/DataSearch-7c71ec9f.js +0 -2043
  94. package/dist/cjs/Flex-d5675ea6.js +0 -48
  95. package/dist/cjs/FormControlList-cf1ff2ca.js +0 -42
  96. package/dist/cjs/Input-4d278ca0.js +0 -74
  97. package/dist/cjs/ListItem-c067bc07.js +0 -41
  98. package/dist/cjs/Title-8802a218.js +0 -12
  99. package/dist/cjs/ssr-eb901d09.js +0 -35
  100. package/dist/es/Button-ebafa3d6.js +0 -52
  101. package/dist/es/DataSearch-4f9a4e46.js +0 -2028
  102. package/dist/es/Flex-a08e22d7.js +0 -46
  103. package/dist/es/FormControlList-fa5cf78b.js +0 -38
  104. package/dist/es/Input-3b8408a6.js +0 -69
@@ -1,5 +1,5 @@
1
1
  import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
2
- import { styled } from '@appbaseio/vue-emotion';
2
+ import styled from '@appbaseio/vue-emotion';
3
3
 
4
4
  var _templateObject;
5
5
  var Title = styled('h2')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ", ";\n"])), function (_ref) {
@@ -1,18 +1,17 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
3
3
  import './_rollupPluginBabelHelpers-ded08042.js';
4
- import { createVNode } from 'vue';
5
4
  import VueTypes from 'vue-types';
6
- import '@appbaseio/vue-emotion';
7
5
  import 'emotion';
6
+ import '@appbaseio/vue-emotion';
8
7
  import 'polished';
9
- import { B as Button, t as toggleButtons } from './Button-ebafa3d6.js';
10
- import { t as types } from './vueTypes-e4af6fe2.js';
8
+ import { B as Button, t as toggleButtons } from './Button-153cd885.js';
9
+ import { t as types } from './vueTypes-66ebc93e.js';
11
10
  import '@appbaseio/reactivecore/lib/utils/transform';
12
11
  import 'redux';
13
- import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-285a43a6.js';
14
- import { C as ComponentWrapper } from './ComponentWrapper-bf443c0b.js';
15
- import { P as PreferencesConsumer } from './PreferencesConsumer-7ea7313a.js';
12
+ import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-5509c0bc.js';
13
+ import { C as ComponentWrapper } from './ComponentWrapper-edaeaceb.js';
14
+ import { P as PreferencesConsumer } from './PreferencesConsumer-86a676c8.js';
16
15
  import { T as Title } from './Title-863dfa42.js';
17
16
  import { C as Container } from './Container-d00219f7.js';
18
17
 
@@ -204,7 +203,8 @@ var ToggleButton = {
204
203
  },
205
204
  renderButton: function renderButton(item) {
206
205
  var _this2 = this;
207
- var renderItem = this.$slots.renderItem || this.renderItem;
206
+ var h = this.$createElement;
207
+ var renderItem = this.$scopedSlots.renderItem || this.renderItem;
208
208
  var isSelected = this.$data.currentValue.some(function (value) {
209
209
  return value.value === item.value;
210
210
  });
@@ -214,44 +214,37 @@ var ToggleButton = {
214
214
  handleClick: function handleClick() {
215
215
  return _this2.handleClick(item);
216
216
  }
217
- }) : createVNode(Button, {
217
+ }) : h(Button, {
218
218
  "class": getClassName(this.$props.innerClass, 'button') + " " + (isSelected ? 'active' : ''),
219
- "onClick": function onClick() {
220
- return _this2.handleClick(item);
219
+ "on": {
220
+ "click": function click() {
221
+ return _this2.handleClick(item);
222
+ },
223
+ "keypress": function keypress(e) {
224
+ return handleA11yAction(e, function () {
225
+ return _this2.handleClick(item);
226
+ });
227
+ }
221
228
  },
222
229
  "key": item.value,
223
- "primary": isSelected,
224
- "large": true,
225
- "tabIndex": isSelected ? '-1' : '0',
226
- "onKeypress": function onKeypress(e) {
227
- return handleA11yAction(e, function () {
228
- return _this2.handleClick(item);
229
- });
230
- }
231
- }, {
232
- "default": function _default() {
233
- return [item.label];
230
+ "attrs": {
231
+ "primary": isSelected,
232
+ "large": true,
233
+ "tabIndex": isSelected ? '-1' : '0'
234
234
  }
235
- });
235
+ }, [item.label]);
236
236
  }
237
237
  },
238
238
  render: function render() {
239
239
  var _this3 = this;
240
- return createVNode(Container, {
240
+ var h = arguments[0];
241
+ return h(Container, {
241
242
  "class": toggleButtons
242
- }, {
243
- "default": function _default() {
244
- return [_this3.$props.title && createVNode(Title, {
245
- "class": getClassName(_this3.$props.innerClass, 'title')
246
- }, {
247
- "default": function _default() {
248
- return [_this3.$props.title];
249
- }
250
- }), _this3.$props.data.map(function (item) {
251
- return _this3.renderButton(item);
252
- })];
253
- }
254
- });
243
+ }, [this.$props.title && h(Title, {
244
+ "class": getClassName(this.$props.innerClass, 'title')
245
+ }, [this.$props.title]), this.$props.data.map(function (item) {
246
+ return _this3.renderButton(item);
247
+ })]);
255
248
  }
256
249
  };
257
250
  ToggleButton.parseValue = function (value, props) {
@@ -310,6 +303,8 @@ var mapDispatchtoProps = {
310
303
  var TBConnected = PreferencesConsumer(ComponentWrapper(connect(mapStateToProps, mapDispatchtoProps)(ToggleButton), {
311
304
  componentType: componentTypes.toggleButton
312
305
  }));
306
+ TBConnected.parseValue = ToggleButton.parseValue;
307
+ TBConnected.defaultQuery = ToggleButton.defaultQuery;
313
308
  TBConnected.name = ToggleButton.name;
314
309
  TBConnected.install = function (Vue) {
315
310
  Vue.component(TBConnected.name, TBConnected);
@@ -88,11 +88,11 @@ var connector = function connector(_mapState, mapDispatch) {
88
88
  };
89
89
  this._unsubscribe = observeStore(this.$$store, getMappedState, function (newState) {
90
90
  Object.keys(newState).forEach(function (key) {
91
- _this[key] = newState[key];
91
+ _this.$set(_this, key, newState[key]);
92
92
  });
93
93
  });
94
94
  },
95
- beforeUnmount: function beforeUnmount() {
95
+ beforeDestroy: function beforeDestroy() {
96
96
  this._unsubscribe();
97
97
  }
98
98
  };
@@ -166,7 +166,7 @@ var getComponent = function getComponent(data, _ref) {
166
166
  if (_ref === void 0) {
167
167
  _ref = {};
168
168
  }
169
- var _ref2 = _ref.$slots || _ref.$props,
169
+ var _ref2 = _ref.$scopedSlots || _ref.$props,
170
170
  render = _ref2.render;
171
171
  if (render) return render(data);
172
172
  return null;
@@ -179,7 +179,7 @@ var hasCustomRenderer = function hasCustomRenderer(_ref) {
179
179
  if (_ref === void 0) {
180
180
  _ref = {};
181
181
  }
182
- var _ref3 = _ref.$slots || _ref.$props,
182
+ var _ref3 = _ref.$scopedSlots || _ref.$props,
183
183
  render = _ref3.render;
184
184
  return Boolean(render);
185
185
  };
@@ -228,7 +228,7 @@ var getQuerySuggestionsComponent = function getQuerySuggestionsComponent(data, _
228
228
  if (_ref === void 0) {
229
229
  _ref = {};
230
230
  }
231
- var _ref4 = _ref.$slots || _ref.$props,
231
+ var _ref4 = _ref.$scopedSlots || _ref.$props,
232
232
  renderQuerySuggestions = _ref4.renderQuerySuggestions,
233
233
  renderPopularSuggestions = _ref4.renderPopularSuggestions;
234
234
  var render = renderPopularSuggestions || renderQuerySuggestions;
@@ -243,7 +243,7 @@ var hasQuerySuggestionsRenderer = function hasQuerySuggestionsRenderer(_ref) {
243
243
  if (_ref === void 0) {
244
244
  _ref = {};
245
245
  }
246
- var _ref5 = _ref.$slots || _ref.$props,
246
+ var _ref5 = _ref.$scopedSlots || _ref.$props,
247
247
  renderQuerySuggestions = _ref5.renderQuerySuggestions,
248
248
  renderPopularSuggestions = _ref5.renderPopularSuggestions;
249
249
  return Boolean(renderPopularSuggestions) || Boolean(renderQuerySuggestions);
@@ -257,12 +257,14 @@ var getCamelCase = function getCamelCase(str) {
257
257
  if (str === void 0) {
258
258
  str = '';
259
259
  }
260
+ var propsWhichRequirePascalCase = ['u-r-l-params'];
260
261
  var arr = str.split('-');
261
262
  var capital = arr.map(function (item, index) {
262
263
  return index ? item.charAt(0).toUpperCase() + item.slice(1).toLowerCase() : item;
263
264
  });
264
265
  // ^-- change here.
265
266
  var capitalString = capital.join('');
267
+ if (propsWhichRequirePascalCase.includes(str)) capitalString = capitalString[0].toUpperCase() + capitalString.substring(1);
266
268
  return capitalString || '';
267
269
  };
268
270
  var isEmpty = function isEmpty(val) {
package/dist/es/index.js CHANGED
@@ -1,48 +1,49 @@
1
1
  import '@appbaseio/reactivecore';
2
2
  export { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
3
3
  import './_rollupPluginBabelHelpers-ded08042.js';
4
- import 'vue';
5
4
  import 'vue-types';
6
5
  import '@appbaseio/reactivecore/lib/utils/helper';
7
- import '@appbaseio/vue-emotion';
8
6
  import 'emotion';
7
+ import '@appbaseio/vue-emotion';
9
8
  import 'polished';
10
- import './Button-ebafa3d6.js';
11
- import './vueTypes-e4af6fe2.js';
12
- import './Pagination-145b4ff2.js';
9
+ import './Button-153cd885.js';
10
+ import './vueTypes-66ebc93e.js';
11
+ import './Pagination-edeb7dbe.js';
13
12
  export { default as ReactiveList } from './ReactiveList.js';
14
13
  import '@appbaseio/reactivecore/lib/utils/transform';
15
14
  import 'redux';
16
- import './index-285a43a6.js';
17
- import './ComponentWrapper-bf443c0b.js';
18
- import './PreferencesConsumer-7ea7313a.js';
15
+ import './index-5509c0bc.js';
16
+ import './ComponentWrapper-edaeaceb.js';
17
+ import './PreferencesConsumer-86a676c8.js';
18
+ import '@vue/babel-helper-vue-jsx-merge-props';
19
19
  import './Title-863dfa42.js';
20
- import './ListItem-47a6345a.js';
21
- import './Card-1951569e.js';
22
- import './Flex-a08e22d7.js';
20
+ import './ListItem-07888a65.js';
21
+ import './Card-19ad6d90.js';
22
+ import './Flex-7c177a10.js';
23
23
  import '@appbaseio/reactivecore/lib/actions/analytics';
24
24
  import 'appbase-js';
25
25
  import '@appbaseio/analytics';
26
26
  import 'url-search-params-polyfill';
27
27
  export { default as ReactiveBase } from './ReactiveBase.js';
28
28
  import 'hotkeys-js';
29
- export { a as DataSearch } from './DataSearch-4f9a4e46.js';
30
- import './CancelSvg-14ebc9a1.js';
31
- import './Input-3b8408a6.js';
29
+ import './Tags-1c2d6c4d.js';
30
+ import './CancelSvg-e40552a5.js';
31
+ import './Input-c09c0b56.js';
32
32
  import 'compute-scroll-into-view';
33
33
  import './Container-d00219f7.js';
34
34
  import 'vue-highlight-words';
35
- import '@vue/babel-helper-vue-transform-on';
36
- export { R as ReactiveComponent, S as SearchBox } from './ReactiveComponent-e2fb9eb4.js';
35
+ export { default as DataSearch } from './DataSearch.js';
36
+ export { R as ReactiveComponentPrivate, S as SearchBox } from './ReactiveComponentPrivate-6f16e1b7.js';
37
37
  import '@appbaseio/reactivecore/lib/utils/suggestions';
38
- import './FormControlList-fa5cf78b.js';
38
+ import './FormControlList-99797d0a.js';
39
39
  import './utils-9e5a16a1.js';
40
40
  export { default as SingleList } from './SingleList.js';
41
41
  export { default as MultiList } from './MultiList.js';
42
- import './DropDown-35e232b7.js';
42
+ import './DropDown-2c0dd714.js';
43
43
  export { default as SingleDropdownList } from './SingleDropdownList.js';
44
44
  export { default as MultiDropdownList } from './MultiDropdownList.js';
45
45
  export { default as ToggleButton } from './ToggleButton.js';
46
+ export { default as ReactiveComponent } from './ReactiveComponent.js';
46
47
  import 'vue-no-ssr';
47
48
  import './ssr-03607d84.js';
48
49
  export { default as DynamicRangeSlider } from './DynamicRangeSlider.js';
@@ -54,7 +55,7 @@ export { default as SelectedFilters } from './SelectedFilters.js';
54
55
  export { default as ResultCard } from './ResultCard.js';
55
56
  export { default as ResultList } from './ResultList.js';
56
57
  export { default as StateProvider } from './StateProvider.js';
57
- import 'vue-google-maps-community-fork';
58
+ import 'gmap-vue';
58
59
  import 'ngeohash';
59
60
  export { default as ReactiveGoogleMap } from './ReactiveGoogleMap.js';
60
61
  import '@appbaseio/reactivecore/lib/reducers/valueReducer';
@@ -376,7 +376,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
376
376
  var rawData = {};
377
377
  var customData = {};
378
378
  var settingsResponse = {};
379
- var timestamp = {};
380
379
  var allPromises = orderOfQueries.map(function (component) {
381
380
  return new Promise(function (responseResolve, responseReject) {
382
381
  handleTransformResponse(res[component], component).then(function (response) {
@@ -403,7 +402,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
403
402
  var _extends6;
404
403
  aggregations = _extends({}, aggregations, (_extends6 = {}, _extends6[component] = response.aggregations, _extends6));
405
404
  }
406
- timestamp[component] = res._timestamp;
407
405
  var hitsObj = response.hits ? response.hits : response[component].hits;
408
406
  hits = _extends({}, hits, (_extends7 = {}, _extends7[component] = {
409
407
  hits: hitsObj.hits,
@@ -420,7 +418,6 @@ function initReactivesearch(componentCollection, searchState, settings) {
420
418
  Promise.all(allPromises).then(function () {
421
419
  state = _extends({}, state, {
422
420
  hits: hits,
423
- timestamp: timestamp,
424
421
  aggregations: aggregations,
425
422
  compositeAggregations: compositeAggregations,
426
423
  promotedResults: promotedResults,
@@ -1,48 +1,49 @@
1
1
  import '@appbaseio/reactivecore';
2
2
  import '@appbaseio/reactivecore/lib/utils/constants';
3
3
  import './_rollupPluginBabelHelpers-ded08042.js';
4
- import 'vue';
5
4
  import 'vue-types';
6
5
  import '@appbaseio/reactivecore/lib/utils/helper';
7
- import '@appbaseio/vue-emotion';
8
6
  import 'emotion';
7
+ import '@appbaseio/vue-emotion';
9
8
  import 'polished';
10
- import './Button-ebafa3d6.js';
11
- import './vueTypes-e4af6fe2.js';
12
- import './Pagination-145b4ff2.js';
9
+ import './Button-153cd885.js';
10
+ import './vueTypes-66ebc93e.js';
11
+ import './Pagination-edeb7dbe.js';
13
12
  import ReactiveList from './ReactiveList.js';
14
13
  import '@appbaseio/reactivecore/lib/utils/transform';
15
14
  import 'redux';
16
- import './index-285a43a6.js';
17
- import './ComponentWrapper-bf443c0b.js';
18
- import './PreferencesConsumer-7ea7313a.js';
15
+ import './index-5509c0bc.js';
16
+ import './ComponentWrapper-edaeaceb.js';
17
+ import './PreferencesConsumer-86a676c8.js';
18
+ import '@vue/babel-helper-vue-jsx-merge-props';
19
19
  import './Title-863dfa42.js';
20
- import './ListItem-47a6345a.js';
21
- import './Card-1951569e.js';
22
- import './Flex-a08e22d7.js';
20
+ import './ListItem-07888a65.js';
21
+ import './Card-19ad6d90.js';
22
+ import './Flex-7c177a10.js';
23
23
  import '@appbaseio/reactivecore/lib/actions/analytics';
24
24
  import 'appbase-js';
25
25
  import '@appbaseio/analytics';
26
26
  import 'url-search-params-polyfill';
27
27
  import ReactiveBase from './ReactiveBase.js';
28
28
  import 'hotkeys-js';
29
- import { a as DataSearch } from './DataSearch-4f9a4e46.js';
30
- import './CancelSvg-14ebc9a1.js';
31
- import './Input-3b8408a6.js';
29
+ import './Tags-1c2d6c4d.js';
30
+ import './CancelSvg-e40552a5.js';
31
+ import './Input-c09c0b56.js';
32
32
  import 'compute-scroll-into-view';
33
33
  import './Container-d00219f7.js';
34
34
  import 'vue-highlight-words';
35
- import '@vue/babel-helper-vue-transform-on';
36
- import { S as SearchBox, R as ReactiveComponent } from './ReactiveComponent-e2fb9eb4.js';
35
+ import DataSearch from './DataSearch.js';
36
+ import { S as SearchBox, R as ReactiveComponentPrivate } from './ReactiveComponentPrivate-6f16e1b7.js';
37
37
  import '@appbaseio/reactivecore/lib/utils/suggestions';
38
- import './FormControlList-fa5cf78b.js';
38
+ import './FormControlList-99797d0a.js';
39
39
  import './utils-9e5a16a1.js';
40
40
  import SingleList from './SingleList.js';
41
41
  import MultiList from './MultiList.js';
42
- import './DropDown-35e232b7.js';
42
+ import './DropDown-2c0dd714.js';
43
43
  import SingleDropdownList from './SingleDropdownList.js';
44
44
  import MultiDropdownList from './MultiDropdownList.js';
45
45
  import ToggleButton from './ToggleButton.js';
46
+ import ReactiveComponent from './ReactiveComponent.js';
46
47
  import 'vue-no-ssr';
47
48
  import './ssr-03607d84.js';
48
49
  import DynamicRangeSlider from './DynamicRangeSlider.js';
@@ -55,7 +56,7 @@ import ResultCard from './ResultCard.js';
55
56
  import ResultList from './ResultList.js';
56
57
  import StateProvider from './StateProvider.js';
57
58
 
58
- var components = [ReactiveList, ResultCard, ResultList, ReactiveBase, DataSearch, SearchBox, SingleList, MultiList, SingleRange, MultiRange, RangeSlider, DynamicRangeSlider, ReactiveComponent, SelectedFilters, ToggleButton, SingleDropdownList, MultiDropdownList, StateProvider, RangeInput];
59
+ var components = [ReactiveList, ResultCard, ResultList, ReactiveBase, DataSearch, SearchBox, SingleList, MultiList, SingleRange, MultiRange, RangeSlider, DynamicRangeSlider, ReactiveComponent, ReactiveComponentPrivate, SelectedFilters, ToggleButton, SingleDropdownList, MultiDropdownList, StateProvider, RangeInput];
59
60
  function install (Vue) {
60
61
  components.map(function (component) {
61
62
  Vue.use(component);
@@ -1,5 +1,5 @@
1
1
  import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
2
- import { styled } from '@appbaseio/vue-emotion';
2
+ import styled from '@appbaseio/vue-emotion';
3
3
  import NoSSR from 'vue-no-ssr';
4
4
 
5
5
  var _templateObject;
@@ -1,3 +1,3 @@
1
- var version = "1.34.0-alpha.2";
1
+ var version = "1.34.1";
2
2
 
3
3
  export default version;
@@ -95,7 +95,7 @@ var types = {
95
95
  params: VueTypes.object.isRequired,
96
96
  props: VueTypes.object,
97
97
  rangeLabelsAlign: VueTypes.oneOf(['left', 'right']),
98
- title: VueTypes.oneOfType([VueTypes.string, VueTypes.nullable]),
98
+ title: VueTypes.oneOfType([VueTypes.string, VueTypes.any]),
99
99
  tooltipTrigger: VueTypes.oneOf(['always', 'none', 'hover']),
100
100
  location: VueTypes.custom(validateLocation),
101
101
  unit: VueTypes.oneOf(['mi', 'miles', 'yd', 'yards', 'ft', 'feet', 'in', 'inch', 'km', 'kilometers', 'm', 'meters', 'cm', 'centimeters', 'mm', 'millimeters', 'NM', 'nmi', 'nauticalmiles']),
@@ -115,7 +115,8 @@ var types = {
115
115
  userId: VueTypes.string,
116
116
  useCache: VueTypes.bool,
117
117
  customEvents: VueTypes.object,
118
- enableTelemetry: VueTypes.bool.def(true)
118
+ enableTelemetry: VueTypes.bool.def(true),
119
+ queryParams: VueTypes.object
119
120
  }).def({}),
120
121
  mongodb: VueTypes.shape({
121
122
  db: VueTypes.string,
package/package.json CHANGED
@@ -1,89 +1,89 @@
1
1
  {
2
- "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.34.0-alpha.2",
4
- "private": false,
5
- "main": "dist/cjs/index.js",
6
- "jsnext:main": "dist/es/index.js",
7
- "module": "dist/es/index.js",
8
- "description": "A Vue UI components library for building search experiences",
9
- "keywords": [
10
- "appbase",
11
- "elasticsearch",
12
- "search"
13
- ],
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/appbaseio/reactivesearch.git"
17
- },
18
- "author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
19
- "license": "Apache-2.0",
20
- "scripts": {
21
- "watch": "nps watch",
22
- "serve": "vue-cli-service serve",
23
- "build": "vue-cli-service build",
24
- "start": "nps",
25
- "pretest": "nps build",
26
- "test": "nps test",
27
- "precommit": "lint-staged",
28
- "prepare": "npm start validate",
29
- "version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
30
- "postpublish": ""
31
- },
32
- "files": [
33
- "dist"
34
- ],
35
- "sideEffects": false,
36
- "dependencies": {
37
- "@appbaseio/analytics": "^1.1.1",
38
- "@appbaseio/reactivecore": "9.14.35",
39
- "@appbaseio/vue-emotion": "0.6.0-alpha.3",
40
- "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
41
- "appbase-js": "^5.2.0",
42
- "compute-scroll-into-view": "^1.0.11",
43
- "emotion": "9.2.12",
44
- "hotkeys-js": "^3.8.7",
45
- "ngeohash": "^0.6.3",
46
- "polished": "^2.2.0",
47
- "redux": "^4.0.0",
48
- "url-search-params-polyfill": "^7.0.0",
49
- "vue-google-maps-community-fork": "^0.1.7",
50
- "vue-highlight-words": "^1.2.0",
51
- "vue-no-ssr": "^1.1.0",
52
- "vue-slider-component": "next",
53
- "vue-types": "^5.0.2"
54
- },
55
- "peerDependencies": {
56
- "vue": "^3.1.0"
57
- },
58
- "devDependencies": {
59
- "@babel/plugin-external-helpers": "^7.2.0",
60
- "@babel/plugin-proposal-class-properties": "^7.5.5",
61
- "@babel/plugin-proposal-json-strings": "^7.2.0",
62
- "@babel/plugin-syntax-dynamic-import": "^7.2.0",
63
- "@babel/plugin-syntax-import-meta": "^7.2.0",
64
- "@babel/plugin-syntax-jsx": "^7.2.0",
65
- "@babel/preset-env": "^7.5.5",
66
- "@babel/preset-stage-2": "^7.0.0",
67
- "@vue/babel-plugin-jsx": "^1.1.1",
68
- "@vue/compiler-sfc": "^3.0.11",
69
- "eslint": "^4.12.0",
70
- "eslint-config-airbnb-base": "^13.1.0",
71
- "eslint-config-prettier": "^3.1.0",
72
- "eslint-plugin-vue": "^4.7.1",
73
- "nps": "^5.9.3",
74
- "nps-utils": "^1.7.0",
75
- "postcss": "^8.3.0",
76
- "rollup": "^1.20.3",
77
- "rollup-plugin-babel": "^4.3.3",
78
- "rollup-plugin-commonjs": "^10.1.0",
79
- "rollup-plugin-json": "^4.0.0",
80
- "rollup-plugin-node-builtins": "^2.1.2",
81
- "rollup-plugin-node-globals": "^1.4.0",
82
- "rollup-plugin-node-resolve": "^5.2.0",
83
- "rollup-plugin-postcss": "^4.0.0",
84
- "rollup-plugin-replace": "^2.2.0",
85
- "rollup-plugin-terser": "^5.1.1",
86
- "rollup-plugin-vue": "^6.0.0",
87
- "vue-eslint-parser": "^3.2.2"
88
- }
2
+ "name": "@appbaseio/reactivesearch-vue",
3
+ "version": "1.34.1",
4
+ "private": false,
5
+ "main": "dist/cjs/index.js",
6
+ "jsnext:main": "dist/es/index.js",
7
+ "module": "dist/es/index.js",
8
+ "description": "A Vue UI components library for building search experiences",
9
+ "keywords": [
10
+ "appbase",
11
+ "elasticsearch",
12
+ "search"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/appbaseio/reactivesearch.git"
17
+ },
18
+ "author": "Kuldeep Saxena <kuldepsaxena155@gmail.com>",
19
+ "license": "Apache-2.0",
20
+ "scripts": {
21
+ "watch": "nps watch",
22
+ "serve": "vue-cli-service serve",
23
+ "build": "vue-cli-service build",
24
+ "start": "nps",
25
+ "pretest": "nps build",
26
+ "test": "nps test",
27
+ "precommit": "lint-staged",
28
+ "prepare": "npm start validate",
29
+ "version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
30
+ "postpublish": "yarn run version-upgrade"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "sideEffects": false,
36
+ "dependencies": {
37
+ "@appbaseio/analytics": "^1.1.1",
38
+ "@appbaseio/reactivecore": "9.15.1",
39
+ "@appbaseio/vue-emotion": "0.4.4",
40
+ "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
41
+ "appbase-js": "^5.3.4",
42
+ "compute-scroll-into-view": "^1.0.11",
43
+ "emotion": "9.2.12",
44
+ "gmap-vue": "^3.5.4",
45
+ "hotkeys-js": "^3.8.7",
46
+ "ngeohash": "^0.6.3",
47
+ "polished": "^2.2.0",
48
+ "redux": "^4.0.0",
49
+ "url-search-params-polyfill": "^7.0.0",
50
+ "vue-highlight-words": "^1.2.0",
51
+ "vue-no-ssr": "^1.1.0",
52
+ "vue-slider-component": "^3.2.15",
53
+ "vue-types": "^1.7.0"
54
+ },
55
+ "peerDependencies": {
56
+ "vue": "^2.6.10"
57
+ },
58
+ "devDependencies": {
59
+ "@babel/plugin-external-helpers": "^7.2.0",
60
+ "@babel/plugin-proposal-class-properties": "^7.5.5",
61
+ "@babel/plugin-proposal-json-strings": "^7.2.0",
62
+ "@babel/plugin-syntax-dynamic-import": "^7.2.0",
63
+ "@babel/plugin-syntax-import-meta": "^7.2.0",
64
+ "@babel/plugin-syntax-jsx": "^7.2.0",
65
+ "@babel/preset-env": "^7.5.5",
66
+ "@babel/preset-stage-2": "^7.0.0",
67
+ "@vue/babel-preset-jsx": "^1.1.0",
68
+ "@vue/compiler-sfc": "^3.0.11",
69
+ "eslint": "^4.12.0",
70
+ "eslint-config-airbnb-base": "^13.1.0",
71
+ "eslint-config-prettier": "^3.1.0",
72
+ "eslint-plugin-vue": "^4.7.1",
73
+ "nps": "^5.9.3",
74
+ "nps-utils": "^1.7.0",
75
+ "postcss": "^8.3.0",
76
+ "rollup": "^1.20.3",
77
+ "rollup-plugin-babel": "^4.3.3",
78
+ "rollup-plugin-commonjs": "^10.1.0",
79
+ "rollup-plugin-json": "^4.0.0",
80
+ "rollup-plugin-node-builtins": "^2.1.2",
81
+ "rollup-plugin-node-globals": "^1.4.0",
82
+ "rollup-plugin-node-resolve": "^5.2.0",
83
+ "rollup-plugin-postcss": "^4.0.0",
84
+ "rollup-plugin-replace": "^2.2.0",
85
+ "rollup-plugin-terser": "^5.1.1",
86
+ "rollup-plugin-vue": "^6.0.0",
87
+ "vue-eslint-parser": "^3.2.2"
88
+ }
89
89
  }
@@ -1,58 +0,0 @@
1
- 'use strict';
2
-
3
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
4
- var vueEmotion = require('@appbaseio/vue-emotion');
5
- var emotion = require('emotion');
6
- var polished = require('polished');
7
-
8
- var _templateObject, _templateObject2;
9
- var filters = function filters(_ref) {
10
- var borderColor = _ref.colors.borderColor;
11
- return "\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid " + (borderColor || '#fff') + ";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n";
12
- };
13
- var pagination = emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\tbutton {\n\t\tmargin: 0 3px;\n\t}\n"])));
14
- var toggleButtons = "\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 3px 3px;\n\t}\n";
15
- var primary = function primary(_ref2) {
16
- var theme = _ref2.theme;
17
- return "\n\tbackground-color: " + theme.colors.primaryColor + ";\n\tcolor: " + theme.colors.primaryTextColor + ";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: " + polished.darken(0.1, theme.colors.primaryColor) + ";\n\t}\n";
18
- };
19
- var large = function large() {
20
- return "\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n";
21
- };
22
- var disabled = function disabled(_ref3) {
23
- var theme = _ref3.theme;
24
- return "\n\tbackground-color: " + (theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fafafa') + ";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: " + (theme.colors.backgroundColor ? polished.lighten(0.2, theme.colors.backgroundColor) : '#fafafa') + ";\n\t}\n";
25
- };
26
- var Button = vueEmotion.styled('button')(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ", ";\n\t\tbox-shadow: ", ";\n\t}\n\n\t", ";\n\t", ";\n\t", ";\n\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])), function (_ref4) {
27
- var theme = _ref4.theme;
28
- return theme.colors ? theme.colors.backgroundColor : '#eee';
29
- }, function (_ref5) {
30
- var theme = _ref5.theme;
31
- return theme.colors ? theme.colors.textColor : '';
32
- }, function (_ref6) {
33
- var theme = _ref6.theme;
34
- return theme.colors && theme.colors.backgroundColor ? polished.darken(0.1, theme.colors.backgroundColor) : '#ccc';
35
- }, function (_ref7) {
36
- var theme = _ref7.theme;
37
- return theme.colors && theme.colors.primaryColor ? polished.rgba(theme.colors.primaryColor, 0.6) : 'unset';
38
- }, function (_ref8) {
39
- var theme = _ref8.theme;
40
- return theme.colors && theme.colors.primaryColor ? "0 0 0 2px " + polished.rgba(theme.colors.primaryColor, 0.3) : '';
41
- }, function (props) {
42
- return props.primary ? primary : null;
43
- }, function (props) {
44
- return props.disabled ? disabled : null;
45
- }, function (props) {
46
- return props.large && large;
47
- });
48
- var loadMoreContainer = emotion.css({
49
- margin: '5px 0',
50
- display: 'flex',
51
- justifyContent: 'center'
52
- });
53
-
54
- exports.Button = Button;
55
- exports.filters = filters;
56
- exports.loadMoreContainer = loadMoreContainer;
57
- exports.pagination = pagination;
58
- exports.toggleButtons = toggleButtons;