@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
@@ -689,16 +689,6 @@
689
689
  };
690
690
  }
691
691
 
692
- /*
693
- * This is a dummy function to check if the function name has been altered by minification.
694
- * If the function has been minified and NODE_ENV !== 'production', warn the user.
695
- */
696
-
697
- function isCrushed() {}
698
- if ( typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
699
- warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
700
- }
701
-
702
692
  var redux = /*#__PURE__*/Object.freeze({
703
693
  __proto__: null,
704
694
  __DO_NOT_USE__ActionTypes: ActionTypes,
@@ -14219,8 +14209,8 @@
14219
14209
  triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
14220
14210
  var docId = documentId;
14221
14211
  if (!docId) {
14222
- var _this$getData2 = this.getData(),
14223
- data = _this$getData2.data;
14212
+ var _this$getData = this.getData(),
14213
+ data = _this$getData.data;
14224
14214
  var hitData = data.find(function (hit) {
14225
14215
  return hit._click_id === searchPosition;
14226
14216
  });
@@ -16510,12 +16500,12 @@
16510
16500
  try {
16511
16501
  var component = item[0],
16512
16502
  value = item[1];
16513
- var _ref2 = _this.selectedValues[component] || {
16503
+ var _ref = _this.selectedValues[component] || {
16514
16504
  label: component
16515
16505
  },
16516
- label = _ref2.label,
16517
- showFilter = _ref2.showFilter,
16518
- URLParams = _ref2.URLParams;
16506
+ label = _ref.label,
16507
+ showFilter = _ref.showFilter,
16508
+ URLParams = _ref.URLParams;
16519
16509
  _this.setValue(component, JSON.parse(value), label, showFilter, URLParams, undefined, undefined, undefined, 'URL');
16520
16510
  } catch (e) {
16521
16511
  // Do not set value if JSON parsing fails.
@@ -18884,14 +18874,14 @@
18884
18874
  if (status === STATUS.active) {
18885
18875
  this.status = STATUS.inactive;
18886
18876
  }
18887
- var _this$$props2 = this.$props,
18888
- handleResult = _this$$props2.handleResult,
18889
- onNoMatch = _this$$props2.onNoMatch,
18890
- onError = _this$$props2.onError,
18891
- lang = _this$$props2.lang,
18892
- getInstance = _this$$props2.getInstance;
18893
- var _window2 = window,
18894
- SpeechRecognition = _window2.SpeechRecognition;
18877
+ var _this$$props = this.$props,
18878
+ handleResult = _this$$props.handleResult,
18879
+ onNoMatch = _this$$props.onNoMatch,
18880
+ onError = _this$$props.onError,
18881
+ lang = _this$$props.lang,
18882
+ getInstance = _this$$props.getInstance;
18883
+ var _window = window,
18884
+ SpeechRecognition = _window.SpeechRecognition;
18895
18885
  if (this.instance && this.status !== STATUS.denied) {
18896
18886
  this.status = STATUS.inactive;
18897
18887
  this.instance.stop();
@@ -19736,12 +19726,12 @@
19736
19726
  renderInputAddonBefore: function renderInputAddonBefore() {
19737
19727
  var addonBefore = this.$slots.addonBefore;
19738
19728
  if (addonBefore) {
19739
- var _slot2;
19729
+ var _slot;
19740
19730
  return vue.createVNode(InputAddon, {
19741
19731
  "class": "addon-before"
19742
- }, _isSlot$5(_slot2 = addonBefore()) ? _slot2 : {
19732
+ }, _isSlot$5(_slot = addonBefore()) ? _slot : {
19743
19733
  "default": function _default() {
19744
- return [_slot2];
19734
+ return [_slot];
19745
19735
  }
19746
19736
  });
19747
19737
  }
@@ -19750,12 +19740,12 @@
19750
19740
  renderInputAddonAfter: function renderInputAddonAfter() {
19751
19741
  var addonAfter = this.$slots.addonAfter;
19752
19742
  if (addonAfter) {
19753
- var _slot4;
19743
+ var _slot2;
19754
19744
  return vue.createVNode(InputAddon, {
19755
19745
  "class": "addon-after"
19756
- }, _isSlot$5(_slot4 = addonAfter()) ? _slot4 : {
19746
+ }, _isSlot$5(_slot2 = addonAfter()) ? _slot2 : {
19757
19747
  "default": function _default() {
19758
- return [_slot4];
19748
+ return [_slot2];
19759
19749
  }
19760
19750
  });
19761
19751
  }
@@ -19797,7 +19787,7 @@
19797
19787
  },
19798
19788
  renderIcons: function renderIcons() {
19799
19789
  var _this6 = this;
19800
- var _slot5, _slot6, _slot7;
19790
+ var _slot3, _slot4, _slot5;
19801
19791
  var _this$$props3 = this.$props,
19802
19792
  iconPosition = _this$$props3.iconPosition,
19803
19793
  showClear = _this$$props3.showClear,
@@ -19816,9 +19806,9 @@
19816
19806
  "onClick": _this6.clearValue,
19817
19807
  "showIcon": showIcon,
19818
19808
  "isClearIcon": true
19819
- }, _isSlot$5(_slot5 = _this6.renderCancelIcon()) ? _slot5 : {
19809
+ }, _isSlot$5(_slot3 = _this6.renderCancelIcon()) ? _slot3 : {
19820
19810
  "default": function _default() {
19821
- return [_slot5];
19811
+ return [_slot3];
19822
19812
  }
19823
19813
  }), showVoiceSearch && vue.createVNode(Mic, {
19824
19814
  "getInstance": getMicInstance,
@@ -19827,9 +19817,9 @@
19827
19817
  "className": getClassName$3(innerClass, 'mic') || null
19828
19818
  }, null), iconPosition === 'right' && showIcon && vue.createVNode(IconWrapper, {
19829
19819
  "onClick": _this6.handleSearchIconClick
19830
- }, _isSlot$5(_slot6 = _this6.renderIcon()) ? _slot6 : {
19820
+ }, _isSlot$5(_slot4 = _this6.renderIcon()) ? _slot4 : {
19831
19821
  "default": function _default() {
19832
- return [_slot6];
19822
+ return [_slot4];
19833
19823
  }
19834
19824
  })];
19835
19825
  }
@@ -19840,9 +19830,9 @@
19840
19830
  "default": function _default() {
19841
19831
  return [iconPosition === 'left' && showIcon && vue.createVNode(IconWrapper, {
19842
19832
  "onClick": _this6.handleSearchIconClick
19843
- }, _isSlot$5(_slot7 = _this6.renderIcon()) ? _slot7 : {
19833
+ }, _isSlot$5(_slot5 = _this6.renderIcon()) ? _slot5 : {
19844
19834
  "default": function _default() {
19845
- return [_slot7];
19835
+ return [_slot5];
19846
19836
  }
19847
19837
  })];
19848
19838
  }
@@ -20946,16 +20936,16 @@
20946
20936
  });
20947
20937
  }
20948
20938
  if (selectAllLabel && selectAllLabel in currentValue) {
20949
- var _currentValue2 = currentValue,
20950
- del = _currentValue2[selectAllLabel],
20951
- obj = _objectWithoutPropertiesLoose(_currentValue2, [selectAllLabel].map(_toPropertyKey$1));
20939
+ var _currentValue = currentValue,
20940
+ del = _currentValue[selectAllLabel],
20941
+ obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey$1));
20952
20942
  currentValue = _extends({}, obj);
20953
20943
  }
20954
20944
  } else {
20955
20945
  if (currentValue[value]) {
20956
- var _currentValue4 = currentValue,
20957
- _del = _currentValue4[value],
20958
- rest = _objectWithoutPropertiesLoose(_currentValue4, [value].map(_toPropertyKey$1));
20946
+ var _currentValue2 = currentValue,
20947
+ _del = _currentValue2[value],
20948
+ rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey$1));
20959
20949
  currentValue = _extends({}, rest);
20960
20950
  } else if (Array.isArray(value)) {
20961
20951
  value.forEach(function (val) {
@@ -20965,9 +20955,9 @@
20965
20955
  currentValue[value] = true;
20966
20956
  }
20967
20957
  if (selectAllLabel && selectAllLabel in currentValue) {
20968
- var _currentValue6 = currentValue,
20969
- _del2 = _currentValue6[selectAllLabel],
20970
- _obj = _objectWithoutPropertiesLoose(_currentValue6, [selectAllLabel].map(_toPropertyKey$1));
20958
+ var _currentValue3 = currentValue,
20959
+ _del2 = _currentValue3[selectAllLabel],
20960
+ _obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey$1));
20971
20961
  currentValue = _extends({}, _obj);
20972
20962
  }
20973
20963
  finalValues = Object.keys(currentValue);
@@ -22104,24 +22094,24 @@
22104
22094
  });
22105
22095
  }
22106
22096
  if (selectAllLabel && selectAllLabel in currentValue) {
22107
- var _currentValue2 = currentValue,
22108
- del = _currentValue2[selectAllLabel],
22109
- obj = _objectWithoutPropertiesLoose(_currentValue2, [selectAllLabel].map(_toPropertyKey$1));
22097
+ var _currentValue = currentValue,
22098
+ del = _currentValue[selectAllLabel],
22099
+ obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey$1));
22110
22100
  currentValue = _extends({}, obj);
22111
22101
  }
22112
22102
  } else {
22113
22103
  if (currentValue[value]) {
22114
- var _currentValue4 = currentValue,
22115
- _del = _currentValue4[value],
22116
- rest = _objectWithoutPropertiesLoose(_currentValue4, [value].map(_toPropertyKey$1));
22104
+ var _currentValue2 = currentValue,
22105
+ _del = _currentValue2[value],
22106
+ rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey$1));
22117
22107
  currentValue = _extends({}, rest);
22118
22108
  } else {
22119
22109
  currentValue[value] = true;
22120
22110
  }
22121
22111
  if (selectAllLabel && selectAllLabel in currentValue) {
22122
- var _currentValue6 = currentValue,
22123
- _del2 = _currentValue6[selectAllLabel],
22124
- _obj = _objectWithoutPropertiesLoose(_currentValue6, [selectAllLabel].map(_toPropertyKey$1));
22112
+ var _currentValue3 = currentValue,
22113
+ _del2 = _currentValue3[selectAllLabel],
22114
+ _obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey$1));
22125
22115
  currentValue = _extends({}, _obj);
22126
22116
  }
22127
22117
  finalValues = Object.keys(currentValue);
@@ -22604,15 +22594,7 @@
22604
22594
  /**
22605
22595
  * Caution: Please do not change this file without having a discussion with the Team.
22606
22596
  * Any change may break the umd build, we're directly replacing the line no: 14
22607
- * `
22608
- var s = document.createElement("script");
22609
- s.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js");
22610
- s.onload = function(){
22611
- var VueSlider = global['vue-slider-component'];
22612
- components['vue-slider-component'] = VueSlider;
22613
- }
22614
- document.head.appendChild(s);
22615
- ` in rollup umd build process with some script.
22597
+ * `components['vue-slider-component'] = require('vue-slider-component');` in rollup umd build process with some script.
22616
22598
  */
22617
22599
  // eslint-disable-next-line
22618
22600
  var getComponents = function getComponents() {
@@ -22621,17 +22603,13 @@
22621
22603
  };
22622
22604
  try {
22623
22605
  if (typeof window !== 'undefined') {
22624
- // in older versions of nuxt, it's process.BROWSER_BUILD
22625
- // eslint-disable-next-line
22626
-
22627
- var s = document.createElement("script");
22628
- s.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js");
22629
- s.onload = function(){
22630
- var VueSlider = global$1['vue-slider-component'];
22631
- components['vue-slider-component'] = VueSlider;
22632
- };
22633
- document.head.appendChild(s);
22634
-
22606
+ var s = document.createElement("script");
22607
+ s.setAttribute("src", "https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js");
22608
+ s.onload = function () {
22609
+ var VueSlider = global$1['vue-slider-component'];
22610
+ components['vue-slider-component'] = VueSlider;
22611
+ };
22612
+ document.head.appendChild(s);
22635
22613
  }
22636
22614
  } catch (e) {
22637
22615
  console.error('Unable to load vue-slider', e);
@@ -22751,9 +22729,9 @@
22751
22729
  var start = _ref.start,
22752
22730
  end = _ref.end;
22753
22731
  if (this.$props.defaultValue) {
22754
- var _this$$props$defaultV2 = this.$props.defaultValue(start, end),
22755
- defaultStart = _this$$props$defaultV2.start,
22756
- defaultEnd = _this$$props$defaultV2.end;
22732
+ var _this$$props$defaultV = this.$props.defaultValue(start, end),
22733
+ defaultStart = _this$$props$defaultV.start,
22734
+ defaultEnd = _this$$props$defaultV.end;
22757
22735
  this.handleChange([defaultStart, defaultEnd]);
22758
22736
  } else if (this.isControlled()) {
22759
22737
  this.handleChange(DynamicRangeSlider.parseValue(this.$props.value), 'change');
@@ -23317,9 +23295,9 @@
23317
23295
  currentValue = currentValue.filter(function (value) {
23318
23296
  return value.label !== item;
23319
23297
  });
23320
- var _selectedValues2 = selectedValues,
23321
- del = _selectedValues2[item],
23322
- selected = _objectWithoutPropertiesLoose(_selectedValues2, [item].map(_toPropertyKey$1));
23298
+ var _selectedValues = selectedValues,
23299
+ del = _selectedValues[item],
23300
+ selected = _objectWithoutPropertiesLoose(_selectedValues, [item].map(_toPropertyKey$1));
23323
23301
  selectedValues = selected;
23324
23302
  } else {
23325
23303
  var _extends2;
@@ -26801,13 +26779,13 @@
26801
26779
  var map = this.getMap();
26802
26780
  if (map instanceof google.maps.Map && this.getProjection()) {
26803
26781
  google.maps.event.trigger(this, MarkerClustererEvents.CLUSTERING_BEGIN, this);
26804
- var _this$algorithm$calcu2 = this.algorithm.calculate({
26782
+ var _this$algorithm$calcu = this.algorithm.calculate({
26805
26783
  markers: this.markers,
26806
26784
  map: map,
26807
26785
  mapCanvasProjection: this.getProjection()
26808
26786
  }),
26809
- clusters = _this$algorithm$calcu2.clusters,
26810
- changed = _this$algorithm$calcu2.changed;
26787
+ clusters = _this$algorithm$calcu.clusters,
26788
+ changed = _this$algorithm$calcu.changed;
26811
26789
  // allow algorithms to return flag on whether the clusters/markers have changed
26812
26790
  if (changed || changed == undefined) {
26813
26791
  // reset visibility of markers and clusters
@@ -28165,9 +28143,9 @@
28165
28143
  var options = getQueryOptions$5(this.$props);
28166
28144
  options.from = 0;
28167
28145
  this.$defaultQuery = newVal(null, this.$props);
28168
- var _ref2 = this.$defaultQuery || {},
28169
- sort = _ref2.sort,
28170
- query = _ref2.query;
28146
+ var _ref = this.$defaultQuery || {},
28147
+ sort = _ref.sort,
28148
+ query = _ref.query;
28171
28149
  if (sort) {
28172
28150
  options.sort = this.$defaultQuery.sort;
28173
28151
  }
@@ -28550,8 +28528,8 @@
28550
28528
  geo_bounding_box: (_geo_bounding_box = {}, _geo_bounding_box[this.dataField] = boundingBoxCoordinates, _geo_bounding_box)
28551
28529
  };
28552
28530
  if (this.$defaultQuery) {
28553
- var _ref4 = this.$defaultQuery || {},
28554
- query = _ref4.query;
28531
+ var _ref2 = this.$defaultQuery || {},
28532
+ query = _ref2.query;
28555
28533
  if (query) {
28556
28534
  // adds defaultQuery's query to geo-query
28557
28535
  // to generate a map query
@@ -28594,8 +28572,8 @@
28594
28572
  triggerClickAnalytics: function triggerClickAnalytics(searchPosition, documentId) {
28595
28573
  var docId = documentId;
28596
28574
  if (!docId) {
28597
- var _this$getData3 = this.getData(),
28598
- data = _this$getData3.data;
28575
+ var _this$getData2 = this.getData(),
28576
+ data = _this$getData2.data;
28599
28577
  var hitData = data.find(function (hit) {
28600
28578
  return hit._click_id === searchPosition;
28601
28579
  });
@@ -28686,10 +28664,10 @@
28686
28664
  var options = getQueryOptions$5(this.$props);
28687
28665
  options.from = this.$data.from;
28688
28666
  if (this.$props.sortBy) {
28689
- var _ref5;
28690
- options.sort = [(_ref5 = {}, _ref5[this.$props.dataField] = {
28667
+ var _ref3;
28668
+ options.sort = [(_ref3 = {}, _ref3[this.$props.dataField] = {
28691
28669
  order: this.$props.sortBy
28692
- }, _ref5)];
28670
+ }, _ref3)];
28693
28671
  }
28694
28672
  this.$defaultQuery = null;
28695
28673
  if (this.$props.defaultQuery) {
@@ -30440,9 +30418,9 @@
30440
30418
  contentRenderFn(parentPush);
30441
30419
  teleportContent = "<!--teleport anchor-->";
30442
30420
  } else {
30443
- var _createBuffer2 = createBuffer(),
30444
- getBuffer = _createBuffer2.getBuffer,
30445
- push = _createBuffer2.push;
30421
+ var _createBuffer = createBuffer(),
30422
+ getBuffer = _createBuffer.getBuffer,
30423
+ push = _createBuffer.push;
30446
30424
  contentRenderFn(push);
30447
30425
  push("<!--teleport anchor-->");
30448
30426
  teleportContent = getBuffer();
@@ -30513,9 +30491,9 @@
30513
30491
  }
30514
30492
  function renderComponentSubTree(instance, slotScopeId) {
30515
30493
  var comp = instance.type;
30516
- var _createBuffer = createBuffer(),
30517
- getBuffer = _createBuffer.getBuffer,
30518
- push = _createBuffer.push;
30494
+ var _createBuffer2 = createBuffer(),
30495
+ getBuffer = _createBuffer2.getBuffer,
30496
+ push = _createBuffer2.push;
30519
30497
  if (isFunction$1(comp)) {
30520
30498
  var root = renderComponentRoot(instance);
30521
30499
  // #5817 scope ID attrs not falling through if functional component doesn't
@@ -30885,6 +30863,7 @@
30885
30863
  Object.defineProperty(exports, "__esModule", {
30886
30864
  value: true
30887
30865
  });
30866
+ exports.getServerResults = undefined;
30888
30867
  var _extends = Object.assign || function (target) {
30889
30868
  for (var i = 1; i < arguments.length; i++) {
30890
30869
  var source = arguments[i];
@@ -31164,7 +31143,7 @@
31164
31143
  } else {
31165
31144
  return null;
31166
31145
  }
31167
- });
31146
+ })["catch"](Promise.reject);
31168
31147
  }
31169
31148
  return null;
31170
31149
  } catch (error) {
@@ -31172,18 +31151,19 @@
31172
31151
  }
31173
31152
  };
31174
31153
  };
31175
- exports["default"] = getServerResults;
31154
+ exports.getServerResults = getServerResults;
31176
31155
  });
31177
- var getServerResults = unwrapExports(server);
31156
+ unwrapExports(server);
31157
+ var server_1 = server.getServerResults;
31178
31158
 
31179
31159
  function getServerState(App, queryString) {
31180
31160
  var renderFunction = renderToString;
31181
- return getServerResults()(function (props) {
31161
+ return server_1()(function (props) {
31182
31162
  return vue.createSSRApp(App, props);
31183
31163
  }, queryString, renderFunction);
31184
31164
  }
31185
31165
 
31186
- var version = "3.0.0-alpha.5";
31166
+ var version = "3.0.0-alpha.7";
31187
31167
 
31188
31168
  var components = [RLConnected, ResultCard, ResultList, ReactiveBase, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
31189
31169
  function install$1 (Vue) {