@appbaseio/reactivesearch-vue 3.0.0-alpha.5 → 3.0.0-alpha.7

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 (37) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +85 -105
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +1 -1
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/DynamicRangeSlider.js +4 -4
  6. package/dist/cjs/MultiDropdownList.js +9 -9
  7. package/dist/cjs/MultiList.js +9 -9
  8. package/dist/cjs/MultiRange.js +3 -3
  9. package/dist/cjs/RangeInput.js +1 -1
  10. package/dist/cjs/RangeSlider.js +1 -1
  11. package/dist/cjs/ReactiveBase.js +4 -4
  12. package/dist/cjs/{ReactiveComponent-5db1cdbe.js → ReactiveComponent-8180c806.js} +21 -21
  13. package/dist/cjs/ReactiveComponent.js +2 -2
  14. package/dist/cjs/ReactiveGoogleMap.js +10 -10
  15. package/dist/cjs/ReactiveList.js +2 -2
  16. package/dist/cjs/index.js +2 -2
  17. package/dist/cjs/initReactivesearch.js +2 -4
  18. package/dist/cjs/install.js +2 -2
  19. package/dist/cjs/{ssr-c58b64c4.js → ssr-8dd13d43.js} +22 -3
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/es/DynamicRangeSlider.js +4 -4
  22. package/dist/es/MultiDropdownList.js +9 -9
  23. package/dist/es/MultiList.js +9 -9
  24. package/dist/es/MultiRange.js +3 -3
  25. package/dist/es/RangeInput.js +1 -1
  26. package/dist/es/RangeSlider.js +1 -1
  27. package/dist/es/ReactiveBase.js +4 -4
  28. package/dist/es/{ReactiveComponent-8a84aab3.js → ReactiveComponent-f78ff2cd.js} +21 -21
  29. package/dist/es/ReactiveComponent.js +2 -2
  30. package/dist/es/ReactiveGoogleMap.js +10 -10
  31. package/dist/es/ReactiveList.js +2 -2
  32. package/dist/es/index.js +2 -2
  33. package/dist/es/initReactivesearch.js +1 -1
  34. package/dist/es/install.js +2 -2
  35. package/dist/es/{ssr-e5eb1f1e.js → ssr-c630ccb9.js} +3 -3
  36. package/dist/es/version.js +1 -1
  37. package/package.json +2 -2
@@ -512,14 +512,14 @@ var Mic = {
512
512
  if (status === STATUS.active) {
513
513
  this.status = STATUS.inactive;
514
514
  }
515
- var _this$$props2 = this.$props,
516
- handleResult = _this$$props2.handleResult,
517
- onNoMatch = _this$$props2.onNoMatch,
518
- onError = _this$$props2.onError,
519
- lang = _this$$props2.lang,
520
- getInstance = _this$$props2.getInstance;
521
- var _window2 = window,
522
- SpeechRecognition = _window2.SpeechRecognition;
515
+ var _this$$props = this.$props,
516
+ handleResult = _this$$props.handleResult,
517
+ onNoMatch = _this$$props.onNoMatch,
518
+ onError = _this$$props.onError,
519
+ lang = _this$$props.lang,
520
+ getInstance = _this$$props.getInstance;
521
+ var _window = window,
522
+ SpeechRecognition = _window.SpeechRecognition;
523
523
  if (this.instance && this.status !== STATUS.denied) {
524
524
  this.status = STATUS.inactive;
525
525
  this.instance.stop();
@@ -1364,12 +1364,12 @@ var SearchBox = defineComponent({
1364
1364
  renderInputAddonBefore: function renderInputAddonBefore() {
1365
1365
  var addonBefore = this.$slots.addonBefore;
1366
1366
  if (addonBefore) {
1367
- var _slot2;
1367
+ var _slot;
1368
1368
  return createVNode(InputAddon, {
1369
1369
  "class": "addon-before"
1370
- }, _isSlot(_slot2 = addonBefore()) ? _slot2 : {
1370
+ }, _isSlot(_slot = addonBefore()) ? _slot : {
1371
1371
  "default": function _default() {
1372
- return [_slot2];
1372
+ return [_slot];
1373
1373
  }
1374
1374
  });
1375
1375
  }
@@ -1378,12 +1378,12 @@ var SearchBox = defineComponent({
1378
1378
  renderInputAddonAfter: function renderInputAddonAfter() {
1379
1379
  var addonAfter = this.$slots.addonAfter;
1380
1380
  if (addonAfter) {
1381
- var _slot4;
1381
+ var _slot2;
1382
1382
  return createVNode(InputAddon, {
1383
1383
  "class": "addon-after"
1384
- }, _isSlot(_slot4 = addonAfter()) ? _slot4 : {
1384
+ }, _isSlot(_slot2 = addonAfter()) ? _slot2 : {
1385
1385
  "default": function _default() {
1386
- return [_slot4];
1386
+ return [_slot2];
1387
1387
  }
1388
1388
  });
1389
1389
  }
@@ -1425,7 +1425,7 @@ var SearchBox = defineComponent({
1425
1425
  },
1426
1426
  renderIcons: function renderIcons() {
1427
1427
  var _this6 = this;
1428
- var _slot5, _slot6, _slot7;
1428
+ var _slot3, _slot4, _slot5;
1429
1429
  var _this$$props3 = this.$props,
1430
1430
  iconPosition = _this$$props3.iconPosition,
1431
1431
  showClear = _this$$props3.showClear,
@@ -1444,9 +1444,9 @@ var SearchBox = defineComponent({
1444
1444
  "onClick": _this6.clearValue,
1445
1445
  "showIcon": showIcon,
1446
1446
  "isClearIcon": true
1447
- }, _isSlot(_slot5 = _this6.renderCancelIcon()) ? _slot5 : {
1447
+ }, _isSlot(_slot3 = _this6.renderCancelIcon()) ? _slot3 : {
1448
1448
  "default": function _default() {
1449
- return [_slot5];
1449
+ return [_slot3];
1450
1450
  }
1451
1451
  }), showVoiceSearch && createVNode(Mic, {
1452
1452
  "getInstance": getMicInstance,
@@ -1455,9 +1455,9 @@ var SearchBox = defineComponent({
1455
1455
  "className": getClassName$1(innerClass, 'mic') || null
1456
1456
  }, null), iconPosition === 'right' && showIcon && createVNode(IconWrapper, {
1457
1457
  "onClick": _this6.handleSearchIconClick
1458
- }, _isSlot(_slot6 = _this6.renderIcon()) ? _slot6 : {
1458
+ }, _isSlot(_slot4 = _this6.renderIcon()) ? _slot4 : {
1459
1459
  "default": function _default() {
1460
- return [_slot6];
1460
+ return [_slot4];
1461
1461
  }
1462
1462
  })];
1463
1463
  }
@@ -1468,9 +1468,9 @@ var SearchBox = defineComponent({
1468
1468
  "default": function _default() {
1469
1469
  return [iconPosition === 'left' && showIcon && createVNode(IconWrapper, {
1470
1470
  "onClick": _this6.handleSearchIconClick
1471
- }, _isSlot(_slot7 = _this6.renderIcon()) ? _slot7 : {
1471
+ }, _isSlot(_slot5 = _this6.renderIcon()) ? _slot5 : {
1472
1472
  "default": function _default() {
1473
- return [_slot7];
1473
+ return [_slot5];
1474
1474
  }
1475
1475
  })];
1476
1476
  }
@@ -22,7 +22,7 @@ import './ListItem-1cb1b4de.js';
22
22
  import './Card-54b9e7a0.js';
23
23
  import './Flex-a08e22d7.js';
24
24
  import 'hotkeys-js';
25
- export { R as default } from './ReactiveComponent-8a84aab3.js';
25
+ export { R as default } from './ReactiveComponent-f78ff2cd.js';
26
26
  import './DropDown-7174661a.js';
27
27
  import './Input-f7499ef8.js';
28
28
  import 'compute-scroll-into-view';
@@ -36,7 +36,7 @@ import './MultiList.js';
36
36
  import './SingleDropdownList.js';
37
37
  import './MultiDropdownList.js';
38
38
  import './ToggleButton.js';
39
- import './ssr-e5eb1f1e.js';
39
+ import './ssr-c630ccb9.js';
40
40
  import './DynamicRangeSlider.js';
41
41
  import './SingleRange.js';
42
42
  import './MultiRange.js';
@@ -179,9 +179,9 @@ var ReactiveMap = {
179
179
  var options = getQueryOptions(this.$props);
180
180
  options.from = 0;
181
181
  this.$defaultQuery = newVal(null, this.$props);
182
- var _ref2 = this.$defaultQuery || {},
183
- sort = _ref2.sort,
184
- query = _ref2.query;
182
+ var _ref = this.$defaultQuery || {},
183
+ sort = _ref.sort,
184
+ query = _ref.query;
185
185
  if (sort) {
186
186
  options.sort = this.$defaultQuery.sort;
187
187
  }
@@ -564,8 +564,8 @@ var ReactiveMap = {
564
564
  geo_bounding_box: (_geo_bounding_box = {}, _geo_bounding_box[this.dataField] = boundingBoxCoordinates, _geo_bounding_box)
565
565
  };
566
566
  if (this.$defaultQuery) {
567
- var _ref4 = this.$defaultQuery || {},
568
- query = _ref4.query;
567
+ var _ref2 = this.$defaultQuery || {},
568
+ query = _ref2.query;
569
569
  if (query) {
570
570
  // adds defaultQuery's query to geo-query
571
571
  // to generate a map query
@@ -608,8 +608,8 @@ var ReactiveMap = {
608
608
  triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
609
609
  var docId = documentId;
610
610
  if (!docId) {
611
- var _this$getData3 = this.getData(),
612
- data = _this$getData3.data;
611
+ var _this$getData2 = this.getData(),
612
+ data = _this$getData2.data;
613
613
  var hitData = data.find(function (hit) {
614
614
  return hit._click_id === searchPosition;
615
615
  });
@@ -700,10 +700,10 @@ var ReactiveMap = {
700
700
  var options = getQueryOptions(this.$props);
701
701
  options.from = this.$data.from;
702
702
  if (this.$props.sortBy) {
703
- var _ref5;
704
- options.sort = [(_ref5 = {}, _ref5[this.$props.dataField] = {
703
+ var _ref3;
704
+ options.sort = [(_ref3 = {}, _ref3[this.$props.dataField] = {
705
705
  order: this.$props.sortBy
706
- }, _ref5)];
706
+ }, _ref3)];
707
707
  }
708
708
  this.$defaultQuery = null;
709
709
  if (this.$props.defaultQuery) {
@@ -766,8 +766,8 @@ var ReactiveList = {
766
766
  triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
767
767
  var docId = documentId;
768
768
  if (!docId) {
769
- var _this$getData2 = this.getData(),
770
- data = _this$getData2.data;
769
+ var _this$getData = this.getData(),
770
+ data = _this$getData.data;
771
771
  var hitData = data.find(function (hit) {
772
772
  return hit._click_id === searchPosition;
773
773
  });
package/dist/es/index.js CHANGED
@@ -28,7 +28,7 @@ import '@appbaseio/analytics';
28
28
  import 'url-search-params-polyfill';
29
29
  export { default as ReactiveBase } from './ReactiveBase.js';
30
30
  import 'hotkeys-js';
31
- export { R as ReactiveComponent, S as SearchBox } from './ReactiveComponent-8a84aab3.js';
31
+ export { R as ReactiveComponent, S as SearchBox } from './ReactiveComponent-f78ff2cd.js';
32
32
  import './DropDown-7174661a.js';
33
33
  import './Input-f7499ef8.js';
34
34
  import 'compute-scroll-into-view';
@@ -42,7 +42,7 @@ export { default as MultiList } from './MultiList.js';
42
42
  export { default as SingleDropdownList } from './SingleDropdownList.js';
43
43
  export { default as MultiDropdownList } from './MultiDropdownList.js';
44
44
  export { default as ToggleButton } from './ToggleButton.js';
45
- import './ssr-e5eb1f1e.js';
45
+ import './ssr-c630ccb9.js';
46
46
  export { default as DynamicRangeSlider } from './DynamicRangeSlider.js';
47
47
  export { default as SingleRange } from './SingleRange.js';
48
48
  export { default as MultiRange } from './MultiRange.js';
@@ -1,6 +1,6 @@
1
1
  import { createSSRApp } from 'vue';
2
2
  import { renderToString } from 'vue/server-renderer';
3
- import getServerResults from '@appbaseio/reactivecore/lib/utils/server';
3
+ import { getServerResults } from '@appbaseio/reactivecore/lib/utils/server';
4
4
 
5
5
  function getServerState(App, queryString) {
6
6
  var renderFunction = renderToString;
@@ -28,7 +28,7 @@ import '@appbaseio/analytics';
28
28
  import 'url-search-params-polyfill';
29
29
  import ReactiveBase from './ReactiveBase.js';
30
30
  import 'hotkeys-js';
31
- import { S as SearchBox, R as ReactiveComponent } from './ReactiveComponent-8a84aab3.js';
31
+ import { S as SearchBox, R as ReactiveComponent } from './ReactiveComponent-f78ff2cd.js';
32
32
  import './DropDown-7174661a.js';
33
33
  import './Input-f7499ef8.js';
34
34
  import 'compute-scroll-into-view';
@@ -42,7 +42,7 @@ import MultiList from './MultiList.js';
42
42
  import SingleDropdownList from './SingleDropdownList.js';
43
43
  import MultiDropdownList from './MultiDropdownList.js';
44
44
  import ToggleButton from './ToggleButton.js';
45
- import './ssr-e5eb1f1e.js';
45
+ import './ssr-c630ccb9.js';
46
46
  import DynamicRangeSlider from './DynamicRangeSlider.js';
47
47
  import SingleRange from './SingleRange.js';
48
48
  import MultiRange from './MultiRange.js';
@@ -49,9 +49,9 @@ var getComponents = function getComponents() {
49
49
  };
50
50
  try {
51
51
  if (typeof window !== 'undefined') {
52
- // in older versions of nuxt, it's process.BROWSER_BUILD
53
- // eslint-disable-next-line
54
- components['vue-slider-component'] = require('vue-slider-component');
52
+ components['vue-slider-component'] = function () {
53
+ return import('vue-slider-component');
54
+ };
55
55
  }
56
56
  } catch (e) {
57
57
  console.error('Unable to load vue-slider', e);
@@ -1,3 +1,3 @@
1
- var version = "3.0.0-alpha.5";
1
+ var version = "3.0.0-alpha.7";
2
2
 
3
3
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "3.0.0-alpha.5",
3
+ "version": "3.0.0-alpha.7",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",
@@ -35,7 +35,7 @@
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
37
  "@appbaseio/analytics": "^1.1.1",
38
- "@appbaseio/reactivecore": "10.0.0-alpha.2",
38
+ "@appbaseio/reactivecore": "10.0.0-alpha.3",
39
39
  "@appbaseio/vue-emotion": "0.6.0-alpha.6",
40
40
  "@emotion/css": "^11.10.5",
41
41
  "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",