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

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 (98) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +6840 -9315
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +7 -13
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/Button-626c5e8e.js +58 -0
  6. package/dist/cjs/{CancelSvg-220a7cc3.js → CancelSvg-062a42f0.js} +32 -40
  7. package/dist/cjs/Card-c381ded3.js +26 -0
  8. package/dist/cjs/{ComponentWrapper-b6d4660c.js → ComponentWrapper-db45cc6d.js} +5 -5
  9. package/dist/cjs/Container-29f049b2.js +12 -0
  10. package/dist/cjs/{DataSearch-1c5c2202.js → DataSearch-7c71ec9f.js} +712 -850
  11. package/dist/cjs/DataSearch.js +12 -11
  12. package/dist/cjs/{DropDown-8984b544.js → DropDown-3b899b20.js} +78 -79
  13. package/dist/cjs/DynamicRangeSlider.js +51 -37
  14. package/dist/cjs/Flex-d5675ea6.js +48 -0
  15. package/dist/cjs/FormControlList-cf1ff2ca.js +42 -0
  16. package/dist/cjs/Input-4d278ca0.js +74 -0
  17. package/dist/cjs/ListItem-c067bc07.js +41 -0
  18. package/dist/cjs/MultiDropdownList.js +71 -62
  19. package/dist/cjs/MultiList.js +85 -88
  20. package/dist/cjs/MultiRange.js +54 -41
  21. package/dist/cjs/{Pagination-07f4dbad.js → Pagination-a468f960.js} +56 -53
  22. package/dist/cjs/{PreferencesConsumer-5d67b486.js → PreferencesConsumer-034c55e3.js} +6 -5
  23. package/dist/cjs/RangeInput.js +115 -107
  24. package/dist/cjs/RangeSlider.js +50 -36
  25. package/dist/cjs/ReactiveBase.js +66 -48
  26. package/dist/cjs/{ReactiveComponent-4e75c939.js → ReactiveComponent-f0f486ca.js} +325 -311
  27. package/dist/cjs/ReactiveComponent.js +21 -20
  28. package/dist/cjs/ReactiveGoogleMap.js +283 -307
  29. package/dist/cjs/ReactiveList.js +99 -116
  30. package/dist/cjs/ResultCard.js +26 -19
  31. package/dist/cjs/ResultList.js +31 -27
  32. package/dist/cjs/SelectedFilters.js +49 -34
  33. package/dist/cjs/SingleDropdownList.js +70 -61
  34. package/dist/cjs/SingleList.js +86 -90
  35. package/dist/cjs/SingleRange.js +48 -39
  36. package/dist/cjs/StateProvider.js +2 -2
  37. package/dist/cjs/Title-8802a218.js +12 -0
  38. package/dist/cjs/ToggleButton.js +39 -32
  39. package/dist/cjs/{index-30126fd0.js → index-dc25b706.js} +6 -6
  40. package/dist/cjs/index.js +22 -21
  41. package/dist/cjs/install.js +21 -20
  42. package/dist/cjs/ssr-eb901d09.js +35 -0
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/{vueTypes-7cfc2f98.js → vueTypes-621a8143.js} +1 -1
  45. package/dist/es/Button-ebafa3d6.js +52 -0
  46. package/dist/es/{CancelSvg-e40552a5.js → CancelSvg-14ebc9a1.js} +30 -37
  47. package/dist/es/{Card-19ad6d90.js → Card-1951569e.js} +5 -6
  48. package/dist/es/{ComponentWrapper-8042aa35.js → ComponentWrapper-bf443c0b.js} +4 -4
  49. package/dist/es/Container-d00219f7.js +1 -1
  50. package/dist/es/{DataSearch-5bb904c5.js → DataSearch-4f9a4e46.js} +705 -842
  51. package/dist/es/DataSearch.js +10 -9
  52. package/dist/es/{DropDown-28ddce07.js → DropDown-35e232b7.js} +78 -78
  53. package/dist/es/DynamicRangeSlider.js +48 -34
  54. package/dist/es/Flex-a08e22d7.js +46 -0
  55. package/dist/es/FormControlList-fa5cf78b.js +38 -0
  56. package/dist/es/Input-3b8408a6.js +69 -0
  57. package/dist/es/{ListItem-07888a65.js → ListItem-47a6345a.js} +6 -7
  58. package/dist/es/MultiDropdownList.js +69 -60
  59. package/dist/es/MultiList.js +84 -87
  60. package/dist/es/MultiRange.js +52 -39
  61. package/dist/es/{Pagination-28e56c5c.js → Pagination-145b4ff2.js} +56 -53
  62. package/dist/es/{PreferencesConsumer-bc097ebb.js → PreferencesConsumer-7ea7313a.js} +5 -4
  63. package/dist/es/RangeInput.js +112 -103
  64. package/dist/es/RangeSlider.js +47 -33
  65. package/dist/es/ReactiveBase.js +65 -46
  66. package/dist/es/{ReactiveComponent-09c183c8.js → ReactiveComponent-e2fb9eb4.js} +321 -306
  67. package/dist/es/ReactiveComponent.js +18 -17
  68. package/dist/es/ReactiveGoogleMap.js +279 -302
  69. package/dist/es/ReactiveList.js +97 -113
  70. package/dist/es/ResultCard.js +25 -18
  71. package/dist/es/ResultList.js +30 -26
  72. package/dist/es/SelectedFilters.js +47 -32
  73. package/dist/es/SingleDropdownList.js +68 -59
  74. package/dist/es/SingleList.js +84 -88
  75. package/dist/es/SingleRange.js +46 -37
  76. package/dist/es/StateProvider.js +2 -2
  77. package/dist/es/Title-863dfa42.js +1 -1
  78. package/dist/es/ToggleButton.js +37 -30
  79. package/dist/es/{index-0444a498.js → index-285a43a6.js} +6 -6
  80. package/dist/es/index.js +19 -18
  81. package/dist/es/install.js +18 -17
  82. package/dist/es/ssr-03607d84.js +1 -1
  83. package/dist/es/version.js +1 -1
  84. package/dist/es/{vueTypes-8986b709.js → vueTypes-e4af6fe2.js} +1 -1
  85. package/package.json +8 -8
  86. package/dist/cjs/Button-841fd06d.js +0 -62
  87. package/dist/cjs/Card-240f283d.js +0 -30
  88. package/dist/cjs/Container-e699ea95.js +0 -15
  89. package/dist/cjs/Flex-ddd7cb6b.js +0 -50
  90. package/dist/cjs/FormControlList-bbb5cd24.js +0 -45
  91. package/dist/cjs/Input-ead4cd84.js +0 -77
  92. package/dist/cjs/ListItem-5088bd6a.js +0 -45
  93. package/dist/cjs/Title-16042ea0.js +0 -15
  94. package/dist/cjs/ssr-f2fc1bf6.js +0 -36
  95. package/dist/es/Button-153cd885.js +0 -53
  96. package/dist/es/Flex-7c177a10.js +0 -45
  97. package/dist/es/FormControlList-99797d0a.js +0 -38
  98. package/dist/es/Input-c09c0b56.js +0 -69
@@ -1,21 +1,22 @@
1
1
  import { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
3
3
  import { a as _extends, b as _objectWithoutPropertiesLoose, c as _toPropertyKey, d as _inheritsLoose, _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
4
+ import { createVNode, mergeProps } from 'vue';
4
5
  import VueTypes from 'vue-types';
5
- import 'emotion';
6
- import styled, { css } from '@appbaseio/vue-emotion';
6
+ import { styled } from '@appbaseio/vue-emotion';
7
+ import { css } from 'emotion';
7
8
  import 'polished';
8
- import './Button-153cd885.js';
9
- import { t as types } from './vueTypes-8986b709.js';
10
- import { P as Pagination } from './Pagination-28e56c5c.js';
9
+ import './Button-ebafa3d6.js';
10
+ import { t as types } from './vueTypes-e4af6fe2.js';
11
+ import { P as Pagination } from './Pagination-145b4ff2.js';
11
12
  import '@appbaseio/reactivecore/lib/utils/transform';
12
13
  import 'redux';
13
- import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-0444a498.js';
14
- import { C as ComponentWrapper } from './ComponentWrapper-8042aa35.js';
15
- import { P as PreferencesConsumer } from './PreferencesConsumer-bc097ebb.js';
16
- import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
17
- import { C as Checkbox } from './FormControlList-99797d0a.js';
18
- import GmapVue, { components } from 'gmap-vue';
14
+ import { h as hasCustomRenderer, i as isQueryIdentical, g as getComponent, a as isFunction, c as connect } from './index-285a43a6.js';
15
+ import { C as ComponentWrapper } from './ComponentWrapper-bf443c0b.js';
16
+ import { P as PreferencesConsumer } from './PreferencesConsumer-7ea7313a.js';
17
+ import _transformOn from '@vue/babel-helper-vue-transform-on';
18
+ import { C as Checkbox } from './FormControlList-fa5cf78b.js';
19
+ import VueGoogleMaps, { InfoWindow, MapElementMixin, Marker, GMapCluster, Map } from 'vue-google-maps-community-fork';
19
20
  import geohash from 'ngeohash';
20
21
 
21
22
  var setStreaming = Actions.setStreaming,
@@ -631,16 +632,15 @@ var ReactiveMap = {
631
632
  this.$emit('search-as-move', this.searchAsMove);
632
633
  },
633
634
  renderErrorComponent: function renderErrorComponent() {
634
- var renderError = this.$scopedSlots.renderError || this.$props.renderError;
635
+ var renderError = this.$slots.renderError || this.$props.renderError;
635
636
  if (renderError && this.error && !this.isLoading) {
636
637
  return isFunction(renderError) ? renderError(this.error) : renderError;
637
638
  }
638
639
  return null;
639
640
  },
640
641
  renderSearchAsMove: function renderSearchAsMove() {
641
- var h = this.$createElement;
642
642
  if (this.showSearchAsMove) {
643
- return h("div", {
643
+ return createVNode("div", {
644
644
  "style": {
645
645
  position: 'absolute',
646
646
  bottom: '30px',
@@ -652,40 +652,29 @@ var ReactiveMap = {
652
652
  borderRadius: 2,
653
653
  zIndex: 10000
654
654
  },
655
- "attrs": {
656
- "className": getClassName(this.innerClass, 'checkboxContainer') || null
657
- }
658
- }, [h(Checkbox, {
659
- "attrs": {
660
- "type": "checkbox",
661
- "id": this.$props.componentId + "-searchasmove",
662
- "checked": this.searchAsMove,
663
- "show": true
664
- },
655
+ "className": getClassName(this.innerClass, 'checkboxContainer') || null
656
+ }, [createVNode(Checkbox, {
657
+ "type": "checkbox",
665
658
  "class": getClassName(this.$props.innerClass, 'checkbox'),
666
- "on": {
667
- "click": this.toggleSearchAsMove
668
- }
669
- }), h("label", {
670
- "attrs": {
671
- "className": getClassName(this.innerClass, 'label') || null,
672
- "for": this.$props.componentId + "-searchasmove"
673
- }
659
+ "id": this.$props.componentId + "-searchasmove",
660
+ "onClick": this.toggleSearchAsMove,
661
+ "checked": this.searchAsMove,
662
+ "show": true
663
+ }, null), createVNode("label", {
664
+ "className": getClassName(this.innerClass, 'label') || null,
665
+ "for": this.$props.componentId + "-searchasmove"
674
666
  }, [this.searchAsMoveLabel])]);
675
667
  }
676
668
  return null;
677
669
  },
678
670
  renderPagination: function renderPagination() {
679
- var h = this.$createElement;
680
- return h(Pagination, {
681
- "attrs": {
682
- "pages": this.pages,
683
- "totalPages": this.totalPages,
684
- "currentPage": this.currentPageState,
685
- "setPage": this.setPage,
686
- "innerClass": this.innerClass
687
- }
688
- });
671
+ return createVNode(Pagination, {
672
+ "pages": this.pages,
673
+ "totalPages": this.totalPages,
674
+ "currentPage": this.currentPageState,
675
+ "setPage": this.setPage,
676
+ "innerClass": this.innerClass
677
+ }, null);
689
678
  }
690
679
  },
691
680
  created: function created() {
@@ -765,9 +754,8 @@ var ReactiveMap = {
765
754
  this.setQueryOptions(this.componentId, options, !(this.$defaultQuery && this.$defaultQuery.query));
766
755
  },
767
756
  render: function render() {
768
- var h = arguments[0];
769
- var loader = this.$scopedSlots.loader || this.$props.loader;
770
- return h("div", {
757
+ var loader = this.$slots.loader || this.$props.loader;
758
+ return createVNode("div", {
771
759
  "style": _extends({}, style, this.$props.style),
772
760
  "class": this.$props.className
773
761
  }, [this.renderErrorComponent(), this.isLoading && loader, this.hasCustomRender ? this.getComponent() : null, this.renderMap(this.getMapParams()), this.pagination ? this.renderPagination() : null]);
@@ -839,7 +827,7 @@ var infoWindowMappedProps = {
839
827
  */
840
828
  function bindEvents(vueInst, googleMapsInst, events) {
841
829
  events.forEach(function (eventName) {
842
- if (vueInst.$gmapOptions.autoBindAllEvents || vueInst.$listeners[eventName]) {
830
+ if (vueInst.$gmapOptions.autoBindAllEvents || vueInst.$attrs[eventName]) {
843
831
  googleMapsInst.addListener(eventName, function (ev) {
844
832
  vueInst.$emit(eventName, ev);
845
833
  });
@@ -962,7 +950,7 @@ function bindProps(vueInst, googleMapsInst, props) {
962
950
  googleMapsInst[setMethodName](vueInst[attribute]);
963
951
  }, vueInst[attribute] !== undefined);
964
952
  }
965
- if (twoWay && (vueInst.$gmapOptions.autoBindAllEvents || vueInst.$listeners[eventName])) {
953
+ if (twoWay && (vueInst.$gmapOptions.autoBindAllEvents || vueInst.$attrs[eventName])) {
966
954
  googleMapsInst.addListener(eventName, function () {
967
955
  vueInst.$emit(eventName, googleMapsInst[getMethodName]());
968
956
  });
@@ -1097,10 +1085,9 @@ var InfoWindowClusterManager = {
1097
1085
  }
1098
1086
  },
1099
1087
  render: function render() {
1100
- var h = arguments[0];
1101
- return h("div", [h("div", {
1088
+ return createVNode("div", null, [createVNode("div", {
1102
1089
  "ref": "flyaway"
1103
- }, [this.$scopedSlots["default"]()])]);
1090
+ }, [this.$slots["default"]()])]);
1104
1091
  }
1105
1092
  };
1106
1093
 
@@ -1132,14 +1119,19 @@ var InfoWindowWrapper = {
1132
1119
  }
1133
1120
  },
1134
1121
  render: function render() {
1135
- var h = arguments[0];
1122
+ var _this = this;
1136
1123
  var renderPopover = this.renderPopover,
1137
1124
  events = this.events;
1138
- return h(InfoWindowClusterManager, {
1139
- "ref": this.id + "-Info-Window",
1140
- "props": _extends({}, this.infoWindowProps),
1141
- "on": _extends({}, events)
1142
- }, [h("div", [renderPopover(this.handleClose)])]);
1125
+ return createVNode(InfoWindowClusterManager, mergeProps({
1126
+ "ref": this.id + "-Info-Window"
1127
+ }, {
1128
+ props: this.infoWindowProps,
1129
+ on: events
1130
+ }), {
1131
+ "default": function _default() {
1132
+ return [createVNode("div", null, [renderPopover(_this.handleClose)])];
1133
+ }
1134
+ });
1143
1135
  }
1144
1136
  };
1145
1137
 
@@ -1309,37 +1301,34 @@ var ClusterMarkers = {
1309
1301
  },
1310
1302
  render: function render() {
1311
1303
  var _this2 = this;
1312
- var h = arguments[0];
1313
1304
  if (!this.renderPopover) {
1314
1305
  return null;
1315
1306
  }
1316
- return h("div", [Object.keys(this.openMarkers).map(function (markerId) {
1307
+ return createVNode("div", null, [Object.keys(this.openMarkers).map(function (markerId) {
1317
1308
  var marker = _this2.openMarkers[markerId];
1318
1309
  var item = marker.metaData;
1319
- return h(InfoWindowWrapper, {
1310
+ return createVNode(InfoWindowWrapper, {
1320
1311
  "key": markerId + "-InfoWindow",
1321
- "attrs": {
1322
- "id": markerId,
1323
- "renderPopover": function renderPopover(_handleClose) {
1324
- return _this2.renderPopover({
1325
- item: item,
1326
- handleClose: function handleClose() {
1327
- _handleClose();
1328
- _this2.closeMarker(item);
1329
- }
1330
- });
1331
- },
1332
- "marker": marker,
1333
- "infoWindowProps": {
1334
- zIndex: 500
1335
- },
1336
- "events": {
1337
- closeclick: function closeclick() {
1338
- return _this2.closeMarker(marker);
1312
+ "id": markerId,
1313
+ "renderPopover": function renderPopover(_handleClose) {
1314
+ return _this2.renderPopover({
1315
+ item: item,
1316
+ handleClose: function handleClose() {
1317
+ _handleClose();
1318
+ _this2.closeMarker(item);
1339
1319
  }
1320
+ });
1321
+ },
1322
+ "marker": marker,
1323
+ "infoWindowProps": {
1324
+ zIndex: 500
1325
+ },
1326
+ "events": {
1327
+ closeclick: function closeclick() {
1328
+ return _this2.closeMarker(marker);
1340
1329
  }
1341
1330
  }
1342
- });
1331
+ }, null);
1343
1332
  })]);
1344
1333
  }
1345
1334
  };
@@ -1350,7 +1339,6 @@ var ClusterManager = connect(function () {
1350
1339
  return null;
1351
1340
  }, mapDispatchToProps$1)(ClusterMarkers);
1352
1341
 
1353
- var InfoWindow = components.InfoWindow;
1354
1342
  var InfoWindowWrapper$1 = {
1355
1343
  name: 'InfoWindowWrapper',
1356
1344
  props: {
@@ -1373,19 +1361,20 @@ var InfoWindowWrapper$1 = {
1373
1361
  }
1374
1362
  },
1375
1363
  render: function render() {
1376
- var h = arguments[0];
1364
+ var _this = this;
1377
1365
  var renderPopover = this.renderPopover,
1378
1366
  events = this.events;
1379
- return h(InfoWindow, {
1380
- "ref": this.id + "-Info-Window",
1381
- "props": _extends({}, this.infoWindowProps),
1382
- "on": _extends({}, events)
1383
- }, [h("div", [renderPopover(this.handleClose)])]);
1367
+ return createVNode(InfoWindow, mergeProps({
1368
+ "closeclick": "true",
1369
+ "ref": this.id + "-Info-Window"
1370
+ }, this.infoWindowProps, _transformOn(events)), {
1371
+ "default": function _default() {
1372
+ return [createVNode("div", null, [renderPopover(_this.handleClose)])];
1373
+ }
1374
+ });
1384
1375
  }
1385
1376
  };
1386
1377
 
1387
- var MapElementMixin = components.MapElementMixin;
1388
-
1389
1378
  // Note: This file has been taken from https://github.com/eregnier/vue2-gmap-custom-marker/blob/master/gmap-custom-marker.vue
1390
1379
  var MarkerWithLabel = {
1391
1380
  name: 'MarkerWithLabel',
@@ -1621,26 +1610,22 @@ var MarkerWithLabel = {
1621
1610
  }
1622
1611
  },
1623
1612
  render: function render() {
1624
- var h = arguments[0];
1625
- return h("div", {
1613
+ return createVNode("div", {
1626
1614
  "style": {
1627
1615
  opacity: this.opacity
1628
1616
  },
1629
- "on": {
1630
- "mouseover": this.handleMouseOver,
1631
- "mouseout": this.handleMouseOut,
1632
- "click": this.handleClick
1633
- }
1617
+ "onmouseover": this.handleMouseOver,
1618
+ "onmouseout": this.handleMouseOut,
1619
+ "onclick": this.handleClick
1634
1620
  }, [this.renderMarker()]);
1635
1621
  }
1636
1622
  };
1637
1623
 
1638
- var _templateObject, _templateObject2, _templateObject3;
1624
+ var _templateObject, _templateObject2;
1639
1625
  var MapPin = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"])));
1640
1626
  var MapPinArrow = styled('div')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"])));
1641
- var mapPinWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"])));
1627
+ var mapPinWrapper = "\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n";
1642
1628
 
1643
- var Marker = components.Marker;
1644
1629
  var recordResultClick$2 = Actions.recordResultClick;
1645
1630
  var GoogleMapMarker = {
1646
1631
  name: 'GoogleMapMarker',
@@ -1718,7 +1703,6 @@ var GoogleMapMarker = {
1718
1703
  },
1719
1704
  renderPopoverClick: function renderPopoverClick(item) {
1720
1705
  var _this = this;
1721
- var h = this.$createElement;
1722
1706
  var additionalProps = {};
1723
1707
  var _this$$props3 = this.$props,
1724
1708
  getPosition = _this$$props3.getPosition,
@@ -1731,38 +1715,35 @@ var GoogleMapMarker = {
1731
1715
  }
1732
1716
  };
1733
1717
  if (item._id in openMarkers) {
1734
- return h(InfoWindowWrapper$1, {
1718
+ return createVNode(InfoWindowWrapper$1, {
1735
1719
  "key": item._id + "-InfoWindow",
1736
- "attrs": {
1737
- "id": item._id,
1738
- "renderPopover": function renderPopover(_handleClose) {
1739
- return _renderPopover({
1740
- item: item,
1741
- handleClose: function handleClose() {
1742
- _handleClose();
1743
- _this.closeMarker();
1744
- }
1745
- });
1746
- },
1747
- "infoWindowProps": {
1748
- zIndex: 500,
1749
- position: additionalProps.position,
1750
- options: additionalProps.defaultOptions
1751
- },
1752
- "events": {
1753
- closeclick: function closeclick() {
1754
- return _this.closeMarker();
1720
+ "id": item._id,
1721
+ "renderPopover": function renderPopover(_handleClose) {
1722
+ return _renderPopover({
1723
+ item: item,
1724
+ handleClose: function handleClose() {
1725
+ _handleClose();
1726
+ _this.closeMarker();
1755
1727
  }
1728
+ });
1729
+ },
1730
+ "infoWindowProps": {
1731
+ zIndex: 500,
1732
+ position: additionalProps.position,
1733
+ options: additionalProps.defaultOptions
1734
+ },
1735
+ "events": {
1736
+ closeclick: function closeclick() {
1737
+ return _this.closeMarker();
1756
1738
  }
1757
1739
  }
1758
- });
1740
+ }, null);
1759
1741
  }
1760
1742
  return null;
1761
1743
  }
1762
1744
  },
1763
1745
  render: function render() {
1764
1746
  var _this2 = this;
1765
- var h = arguments[0];
1766
1747
  var _this$$props4 = this.$props,
1767
1748
  getPosition = _this$$props4.getPosition,
1768
1749
  renderItem = _this$$props4.renderItem,
@@ -1778,74 +1759,70 @@ var GoogleMapMarker = {
1778
1759
  marker.setIcon = this.setIcon;
1779
1760
  var data = renderItem(marker);
1780
1761
  if ('label' in data) {
1781
- return h(MarkerWithLabel, {
1762
+ return createVNode(MarkerWithLabel, mergeProps({
1782
1763
  "key": marker._id,
1783
- "attrs": {
1784
- "metaData": marker,
1785
- "marker": getPosition(marker),
1786
- "labelAnchor": new window.google.maps.Point(0, 30),
1787
- "handleMouseOver": this.increaseMarkerZIndex,
1788
- "handleMouseOut": this.removeMarkerZIndex,
1789
- "handleClick": this.openMarker,
1790
- "zIndex": markerProps.zIndex,
1791
- "renderMarker": function renderMarker() {
1792
- return h("div", {
1793
- "attrs": {
1794
- "css": mapPinWrapper
1795
- }
1796
- }, [h(MapPin, [data.label]), h(MapPinArrow), renderPopover ? _this2.renderPopoverClick(marker, true) : null]);
1797
- }
1798
- },
1799
- "props": _extends({}, customMarkerProps)
1800
- });
1764
+ "metaData": marker,
1765
+ "marker": getPosition(marker),
1766
+ "labelAnchor": new window.google.maps.Point(0, 30),
1767
+ "handleMouseOver": this.increaseMarkerZIndex,
1768
+ "handleMouseOut": this.removeMarkerZIndex,
1769
+ "handleClick": this.openMarker,
1770
+ "zIndex": markerProps.zIndex
1771
+ }, customMarkerProps, {
1772
+ "renderMarker": function renderMarker() {
1773
+ return createVNode("div", {
1774
+ "css": mapPinWrapper
1775
+ }, [createVNode(MapPin, null, {
1776
+ "default": function _default() {
1777
+ return [data.label];
1778
+ }
1779
+ }), createVNode(MapPinArrow, null, null), renderPopover ? _this2.renderPopoverClick(marker, true) : null]);
1780
+ }
1781
+ }), null);
1801
1782
  }
1802
1783
  if ('icon' in data) {
1803
1784
  markerProps.icon = data.icon;
1804
1785
  } else {
1805
- return h(MarkerWithLabel, {
1786
+ return createVNode(MarkerWithLabel, mergeProps({
1806
1787
  "key": marker._id,
1807
- "attrs": {
1808
- "metaData": marker,
1809
- "marker": getPosition(marker),
1810
- "handleClick": this.openMarker,
1811
- "handleMouseOver": this.increaseMarkerZIndex,
1812
- "handleMouseOut": this.removeMarkerZIndex,
1813
- "zIndex": markerProps.zIndex,
1814
- "renderMarker": function renderMarker() {
1815
- return h("div", {
1816
- "attrs": {
1817
- "css": mapPinWrapper
1818
- }
1819
- }, [typeof data.custom === 'function' ? data.custom(marker) : data.custom, renderPopover ? _this2.renderPopoverClick(marker, true) : null]);
1820
- }
1821
- },
1822
- "props": _extends({}, customMarkerProps)
1823
- });
1788
+ "metaData": marker,
1789
+ "marker": getPosition(marker),
1790
+ "handleClick": this.openMarker,
1791
+ "handleMouseOver": this.increaseMarkerZIndex,
1792
+ "handleMouseOut": this.removeMarkerZIndex,
1793
+ "zIndex": markerProps.zIndex
1794
+ }, customMarkerProps, {
1795
+ "renderMarker": function renderMarker() {
1796
+ return createVNode("div", {
1797
+ "css": mapPinWrapper
1798
+ }, [typeof data.custom === 'function' ? data.custom(marker) : data.custom, renderPopover ? _this2.renderPopoverClick(marker, true) : null]);
1799
+ }
1800
+ }), null);
1824
1801
  }
1825
1802
  } else if (defaultPin) {
1826
1803
  markerProps.icon = {
1827
1804
  url: defaultPin
1828
1805
  };
1829
1806
  }
1830
- return h(Marker, {
1807
+ return createVNode(Marker, mergeProps({
1831
1808
  "key": marker._id,
1832
- "attrs": {
1833
- "zIndex": markerProps.zIndex,
1834
- "position": getPosition(marker),
1835
- "options": {
1836
- metaData: marker
1837
- },
1838
- "icon": this.markerIcon || markerProps.icon
1809
+ "zIndex": markerProps.zIndex,
1810
+ "onClick": function onClick() {
1811
+ return _this2.openMarker();
1839
1812
  },
1840
- "on": {
1841
- "click": function click() {
1842
- return _this2.openMarker();
1843
- },
1844
- "mouseover": this.increaseMarkerZIndex,
1845
- "mouseout": this.removeMarkerZIndex
1813
+ "onMouseover": this.increaseMarkerZIndex,
1814
+ "onMouseout": this.removeMarkerZIndex
1815
+ }, customMarkerProps, {
1816
+ "position": getPosition(marker),
1817
+ "options": {
1818
+ metaData: marker
1846
1819
  },
1847
- "props": _extends({}, customMarkerProps)
1848
- }, [renderPopover ? this.renderPopoverClick(marker) : null]);
1820
+ "icon": this.markerIcon || markerProps.icon
1821
+ }), {
1822
+ "default": function _default() {
1823
+ return [renderPopover ? _this2.renderPopoverClick(marker) : null];
1824
+ }
1825
+ });
1849
1826
  }
1850
1827
  };
1851
1828
  var mapDispatchToProps$2 = {
@@ -1855,7 +1832,6 @@ var GoogleMapMarker$1 = connect(function () {
1855
1832
  return null;
1856
1833
  }, mapDispatchToProps$2)(GoogleMapMarker);
1857
1834
 
1858
- var Cluster = components.Cluster;
1859
1835
  var GoogleMapMarkers = {
1860
1836
  name: 'GoogleMapMarkers',
1861
1837
  props: {
@@ -1902,7 +1878,6 @@ var GoogleMapMarkers = {
1902
1878
  },
1903
1879
  render: function render() {
1904
1880
  var _this = this;
1905
- var h = arguments[0];
1906
1881
  var resultsToRender = this.$props.resultsToRender;
1907
1882
  var openMarkers = this.openMarkers;
1908
1883
  var markerProps = {
@@ -1920,70 +1895,64 @@ var GoogleMapMarkers = {
1920
1895
  highlightMarkerOnHover: this.highlightMarkerOnHover
1921
1896
  };
1922
1897
  if (this.showMarkerClusters) {
1923
- return h("div", [h(Cluster, {
1924
- "props": _extends({}, this.clusterProps),
1925
- "on": {
1926
- "click": function click(cluster) {
1927
- var markers = cluster.markers.map(function (i) {
1928
- return i.metaData;
1929
- });
1930
- _this.clickedCluster = cluster;
1931
- _this.clusterMarkers = markers;
1932
- _this.$emit('open-cluster-popover', _this.clusterMarkers);
1933
- }
1898
+ return createVNode("div", null, [createVNode(GMapCluster, mergeProps(this.clusterProps, {
1899
+ "onclick": function onclick(cluster) {
1900
+ var markers = cluster.markers.map(function (i) {
1901
+ return i.metaData;
1902
+ });
1903
+ _this.clickedCluster = cluster;
1904
+ _this.clusterMarkers = markers;
1905
+ _this.$emit('open-cluster-popover', _this.clusterMarkers);
1934
1906
  },
1935
1907
  "ref": "clusterRef"
1936
- }, [h(ClusterManager, {
1937
- "attrs": {
1938
- "getPosition": markerProps.getPosition,
1939
- "markers": resultsToRender,
1940
- "defaultPin": markerProps.defaultPin,
1941
- "renderItem": markerProps.renderItem,
1942
- "markerProps": markerProps.markerProps,
1943
- "handlePreserveCenter": markerProps.handlePreserveCenter,
1944
- "autoClosePopover": markerProps.autoClosePopover,
1945
- "renderPopover": markerProps.renderPopover,
1946
- "highlightMarkerOnHover": markerProps.highlightMarkerOnHover
1908
+ }), {
1909
+ "default": function _default() {
1910
+ return [createVNode(ClusterManager, mergeProps({
1911
+ "getPosition": markerProps.getPosition,
1912
+ "markers": resultsToRender,
1913
+ "defaultPin": markerProps.defaultPin,
1914
+ "renderItem": markerProps.renderItem,
1915
+ "markerProps": markerProps.markerProps,
1916
+ "handlePreserveCenter": markerProps.handlePreserveCenter,
1917
+ "autoClosePopover": markerProps.autoClosePopover,
1918
+ "renderPopover": markerProps.renderPopover,
1919
+ "highlightMarkerOnHover": markerProps.highlightMarkerOnHover
1920
+ }, {
1921
+ on: _this.$attrs
1922
+ }), null)];
1923
+ }
1924
+ }), this.clickedCluster && this.renderClusterPopover ? createVNode(InfoWindowWrapper$1, {
1925
+ "id": "cluster",
1926
+ "infoWindowProps": {
1927
+ zIndex: 500,
1928
+ position: this.getAdditionalProps().position,
1929
+ options: this.getAdditionalProps().defaultOptions
1947
1930
  },
1948
- "on": _extends({}, this.$listeners)
1949
- })]), this.clickedCluster && this.renderClusterPopover ? h(InfoWindowWrapper$1, {
1950
- "attrs": {
1951
- "id": "cluster",
1952
- "infoWindowProps": {
1953
- zIndex: 500,
1954
- position: this.getAdditionalProps().position,
1955
- options: this.getAdditionalProps().defaultOptions
1956
- },
1957
- "renderPopover": function renderPopover(_handleClose) {
1958
- return _this.renderClusterPopover({
1959
- markers: _this.clusterMarkers,
1960
- cluster: _this.clickedCluster,
1961
- handleClose: function handleClose() {
1962
- _handleClose();
1963
- _this.closeMarker();
1964
- }
1965
- });
1966
- },
1967
- "events": {
1968
- closeclick: this.closeMarker
1969
- }
1931
+ "renderPopover": function renderPopover(_handleClose) {
1932
+ return _this.renderClusterPopover({
1933
+ markers: _this.clusterMarkers,
1934
+ cluster: _this.clickedCluster,
1935
+ handleClose: function handleClose() {
1936
+ _handleClose();
1937
+ _this.closeMarker();
1938
+ }
1939
+ });
1940
+ },
1941
+ "events": {
1942
+ closeclick: this.closeMarker
1970
1943
  }
1971
- }) : null]);
1944
+ }, null) : null]);
1972
1945
  }
1973
- return h("div", [resultsToRender.map(function (marker, index) {
1974
- return h(GoogleMapMarker$1, {
1975
- "attrs": {
1976
- "index": index,
1977
- "marker": marker
1978
- },
1979
- "props": _extends({}, markerProps),
1980
- "on": _extends({}, _this.$listeners)
1981
- });
1946
+ return createVNode("div", null, [resultsToRender.map(function (marker, index) {
1947
+ return createVNode(GoogleMapMarker$1, mergeProps({
1948
+ "index": index,
1949
+ "marker": marker
1950
+ }, markerProps, _this.$attrs), null);
1982
1951
  })]);
1983
1952
  }
1984
1953
  };
1985
1954
 
1986
- var Map = components.MapLayer;
1955
+ var _templateObject$1;
1987
1956
  var ReactiveGoogleMap = {
1988
1957
  name: 'ReactiveGoogleMap',
1989
1958
  props: {
@@ -2018,6 +1987,19 @@ var ReactiveGoogleMap = {
2018
1987
  calculateMarkers: VueTypes.func,
2019
1988
  highlightMarkerOnHover: VueTypes.bool.def(true)
2020
1989
  },
1990
+ computed: {
1991
+ listeners: function listeners() {
1992
+ var onRE = /^on[^a-z]/;
1993
+ var listeners = {};
1994
+ var $attrs = this.$attrs;
1995
+ for (var property in $attrs) {
1996
+ if (onRE.test(property)) {
1997
+ listeners[property] = $attrs[property];
1998
+ }
1999
+ }
2000
+ return listeners;
2001
+ }
2002
+ },
2021
2003
  methods: {
2022
2004
  renderMap: function renderMap(_ref) {
2023
2005
  var _this = this;
@@ -2032,54 +2014,51 @@ var ReactiveGoogleMap = {
2032
2014
  getPosition = _ref.getPosition,
2033
2015
  autoClosePopover = _ref.autoClosePopover,
2034
2016
  defaultPin = _ref.defaultPin;
2035
- var h = this.$createElement;
2036
2017
  var style = {
2037
2018
  width: '100%',
2038
2019
  height: '100%',
2039
2020
  position: 'relative'
2040
2021
  };
2041
- return h("div", {
2022
+ return createVNode("div", {
2042
2023
  "style": style
2043
- }, [h(Map, {
2024
+ }, [createVNode(Map, mergeProps({
2044
2025
  "ref": "mapRef",
2045
- "attrs": {
2046
- "map-type-id": "terrain",
2047
- "options": {
2048
- zoomControl: true
2049
- },
2050
- "center": center,
2051
- "zoom": zoom
2052
- },
2026
+ "map-type-id": "terrain",
2053
2027
  "style": {
2054
2028
  height: '100%'
2055
2029
  },
2056
- "props": _extends({}, this.mapProps),
2057
- "on": {
2058
- "zoom_changed": handleZoomChange,
2059
- "dragend": handleOnDragEnd,
2060
- "idle": handleOnIdle
2061
- }
2062
- }, [this.showMarkers ? h(GoogleMapMarkers, {
2063
- "attrs": {
2064
- "resultsToRender": resultsToRender,
2065
- "getPosition": getPosition,
2066
- "markerProps": this.markerProps,
2067
- "clusterProps": this.clusterProps,
2068
- "handlePreserveCenter": handlePreserveCenter,
2069
- "highlightMarkerOnHover": this.highlightMarkerOnHover,
2070
- "renderItem": this.$scopedSlots.renderItem ? function () {
2071
- return {
2072
- custom: _this.$scopedSlots.renderItem
2073
- };
2074
- } : this.renderItem,
2075
- "defaultPin": defaultPin,
2076
- "autoClosePopover": autoClosePopover,
2077
- "renderPopover": this.$scopedSlots.renderPopover,
2078
- "renderClusterPopover": this.$scopedSlots.renderClusterPopover,
2079
- "showMarkerClusters": this.showMarkerClusters
2030
+ "class": css(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t"]))),
2031
+ "options": {
2032
+ zoomControl: true
2080
2033
  },
2081
- "on": _extends({}, this.$listeners)
2082
- }) : null]), renderSearchAsMove()]);
2034
+ "center": center,
2035
+ "zoom": zoom
2036
+ }, this.mapProps, {
2037
+ "onzoom_changed": handleZoomChange,
2038
+ "ondragend": handleOnDragEnd,
2039
+ "onidle": handleOnIdle
2040
+ }), {
2041
+ "default": function _default() {
2042
+ return [_this.showMarkers ? createVNode(GoogleMapMarkers, mergeProps({
2043
+ "resultsToRender": resultsToRender,
2044
+ "getPosition": getPosition,
2045
+ "markerProps": _this.markerProps,
2046
+ "clusterProps": _this.clusterProps,
2047
+ "handlePreserveCenter": handlePreserveCenter,
2048
+ "highlightMarkerOnHover": _this.highlightMarkerOnHover,
2049
+ "renderItem": _this.$slots.renderItem ? function () {
2050
+ return {
2051
+ custom: _this.$slots.renderItem
2052
+ };
2053
+ } : _this.renderItem,
2054
+ "defaultPin": defaultPin,
2055
+ "autoClosePopover": autoClosePopover,
2056
+ "renderPopover": _this.$slots.renderPopover,
2057
+ "renderClusterPopover": _this.$slots.renderClusterPopover,
2058
+ "showMarkerClusters": _this.showMarkerClusters
2059
+ }, _this.listeners), null) : null];
2060
+ }
2061
+ }), renderSearchAsMove()]);
2083
2062
  },
2084
2063
  getMapRef: function getMapRef() {
2085
2064
  return this.mapRef;
@@ -2091,6 +2070,7 @@ var ReactiveGoogleMap = {
2091
2070
  if (currentInstance && currentInstance.$options && currentInstance.$options.name === 'connect-ClusterMarkers') {
2092
2071
  clusterManagerInstance = currentInstance;
2093
2072
  currentInstance = null;
2073
+ // TODO: Check if $children works in vue 3
2094
2074
  } else if (currentInstance.$children) {
2095
2075
  var _currentInstance$$chi = currentInstance.$children;
2096
2076
  currentInstance = _currentInstance$$chi[0];
@@ -2112,41 +2092,38 @@ var ReactiveGoogleMap = {
2112
2092
  }
2113
2093
  },
2114
2094
  render: function render() {
2115
- var h = arguments[0];
2116
- return h(RMConnected, _mergeJSXProps([{
2117
- "attrs": {
2118
- "getMapRef": this.getMapRef,
2119
- "renderMap": this.renderMap,
2120
- "componentId": this.componentId,
2121
- "className": this.className,
2122
- "dataField": this.dataField,
2123
- "defaultZoom": this.defaultZoom,
2124
- "react": this.react,
2125
- "size": this.size,
2126
- "sortBy": this.sortBy,
2127
- "pagination": this.pagination,
2128
- "uRLParams": this.URLParams,
2129
- "defaultSearchAsMove": this.searchAsMove,
2130
- "showSearchAsMove": this.showSearchAsMove,
2131
- "searchAsMoveLabel": this.searchAsMoveLabel,
2132
- "showMarkers": this.showMarkers,
2133
- "markerProps": this.markerProps,
2134
- "autoClosePopover": this.autoClosePopover,
2135
- "defaultPin": this.defaultPin,
2136
- "defaultQuery": this.defaultQuery,
2137
- "autoCenter": this.autoCenter,
2138
- "defaultCenter": this.defaultCenter,
2139
- "defaultRadius": this.defaultRadius,
2140
- "unit": this.unit,
2141
- "pages": this.pages,
2142
- "center": this.center,
2143
- "loader": this.loader,
2144
- "calculateMarkers": this.calculateMarkers
2145
- }
2095
+ return createVNode(RMConnected, mergeProps({
2096
+ "getMapRef": this.getMapRef,
2097
+ "renderMap": this.renderMap,
2098
+ "componentId": this.componentId,
2099
+ "className": this.className,
2100
+ "dataField": this.dataField,
2101
+ "defaultZoom": this.defaultZoom,
2102
+ "react": this.react,
2103
+ "size": this.size,
2104
+ "sortBy": this.sortBy,
2105
+ "pagination": this.pagination,
2106
+ "URLParams": this.URLParams,
2107
+ "defaultSearchAsMove": this.searchAsMove,
2108
+ "showSearchAsMove": this.showSearchAsMove,
2109
+ "searchAsMoveLabel": this.searchAsMoveLabel,
2110
+ "showMarkers": this.showMarkers,
2111
+ "markerProps": this.markerProps,
2112
+ "autoClosePopover": this.autoClosePopover,
2113
+ "defaultPin": this.defaultPin,
2114
+ "defaultQuery": this.defaultQuery,
2115
+ "autoCenter": this.autoCenter,
2116
+ "defaultCenter": this.defaultCenter,
2117
+ "defaultRadius": this.defaultRadius,
2118
+ "unit": this.unit,
2119
+ "pages": this.pages,
2120
+ "center": this.center,
2121
+ "loader": this.loader,
2122
+ "calculateMarkers": this.calculateMarkers
2146
2123
  }, {
2147
- scopedSlots: this.$scopedSlots,
2148
- on: this.$listeners
2149
- }]));
2124
+ scopedSlots: this.$slots,
2125
+ on: this.$attrs
2126
+ }), null);
2150
2127
  }
2151
2128
  };
2152
2129
  ReactiveGoogleMap.install = function (Vue, options) {
@@ -2154,7 +2131,7 @@ ReactiveGoogleMap.install = function (Vue, options) {
2154
2131
  if (!options || !options.key) {
2155
2132
  console.error('ReactiveSearch: map key is required to use ReactiveGoogleMap component');
2156
2133
  }
2157
- Vue.use(GmapVue, {
2134
+ Vue.use(VueGoogleMaps, {
2158
2135
  load: {
2159
2136
  key: options.key,
2160
2137
  libraries: 'places'