@appbaseio/reactivesearch-vue 1.34.0-alpha.1 → 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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +6957 -9320
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +7 -13
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-626c5e8e.js +58 -0
- package/dist/cjs/{CancelSvg-220a7cc3.js → CancelSvg-062a42f0.js} +32 -40
- package/dist/cjs/Card-c381ded3.js +26 -0
- package/dist/cjs/{ComponentWrapper-9318cece.js → ComponentWrapper-db45cc6d.js} +18 -9
- package/dist/cjs/Container-29f049b2.js +12 -0
- package/dist/cjs/{DataSearch-8ea2651a.js → DataSearch-7c71ec9f.js} +749 -881
- package/dist/cjs/DataSearch.js +12 -11
- package/dist/cjs/{DropDown-8984b544.js → DropDown-3b899b20.js} +78 -79
- package/dist/cjs/DynamicRangeSlider.js +51 -37
- package/dist/cjs/Flex-d5675ea6.js +48 -0
- package/dist/cjs/FormControlList-cf1ff2ca.js +42 -0
- package/dist/cjs/Input-4d278ca0.js +74 -0
- package/dist/cjs/ListItem-c067bc07.js +41 -0
- package/dist/cjs/MultiDropdownList.js +71 -62
- package/dist/cjs/MultiList.js +85 -88
- package/dist/cjs/MultiRange.js +54 -41
- package/dist/cjs/{Pagination-07f4dbad.js → Pagination-a468f960.js} +56 -53
- package/dist/cjs/{PreferencesConsumer-5d67b486.js → PreferencesConsumer-034c55e3.js} +6 -5
- package/dist/cjs/RangeInput.js +115 -107
- package/dist/cjs/RangeSlider.js +50 -36
- package/dist/cjs/ReactiveBase.js +67 -49
- package/dist/cjs/{ReactiveComponent-0a354ed7.js → ReactiveComponent-f0f486ca.js} +326 -315
- package/dist/cjs/ReactiveComponent.js +21 -20
- package/dist/cjs/ReactiveGoogleMap.js +283 -307
- package/dist/cjs/ReactiveList.js +99 -116
- package/dist/cjs/ResultCard.js +26 -19
- package/dist/cjs/ResultList.js +31 -27
- package/dist/cjs/SelectedFilters.js +49 -34
- package/dist/cjs/SingleDropdownList.js +70 -61
- package/dist/cjs/SingleList.js +86 -90
- package/dist/cjs/SingleRange.js +48 -39
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/Title-8802a218.js +12 -0
- package/dist/cjs/ToggleButton.js +39 -32
- package/dist/cjs/{index-30126fd0.js → index-dc25b706.js} +6 -6
- package/dist/cjs/index.js +22 -21
- package/dist/cjs/install.js +21 -20
- package/dist/cjs/ssr-eb901d09.js +35 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-7cfc2f98.js → vueTypes-621a8143.js} +1 -1
- package/dist/es/Button-ebafa3d6.js +52 -0
- package/dist/es/{CancelSvg-e40552a5.js → CancelSvg-14ebc9a1.js} +30 -37
- package/dist/es/{Card-19ad6d90.js → Card-1951569e.js} +5 -6
- package/dist/es/{ComponentWrapper-240450cc.js → ComponentWrapper-bf443c0b.js} +17 -8
- package/dist/es/Container-d00219f7.js +1 -1
- package/dist/es/{DataSearch-dcaa106b.js → DataSearch-4f9a4e46.js} +742 -873
- package/dist/es/DataSearch.js +10 -9
- package/dist/es/{DropDown-28ddce07.js → DropDown-35e232b7.js} +78 -78
- package/dist/es/DynamicRangeSlider.js +48 -34
- package/dist/es/Flex-a08e22d7.js +46 -0
- package/dist/es/FormControlList-fa5cf78b.js +38 -0
- package/dist/es/Input-3b8408a6.js +69 -0
- package/dist/es/{ListItem-07888a65.js → ListItem-47a6345a.js} +6 -7
- package/dist/es/MultiDropdownList.js +69 -60
- package/dist/es/MultiList.js +84 -87
- package/dist/es/MultiRange.js +52 -39
- package/dist/es/{Pagination-28e56c5c.js → Pagination-145b4ff2.js} +56 -53
- package/dist/es/{PreferencesConsumer-bc097ebb.js → PreferencesConsumer-7ea7313a.js} +5 -4
- package/dist/es/RangeInput.js +112 -103
- package/dist/es/RangeSlider.js +47 -33
- package/dist/es/ReactiveBase.js +66 -47
- package/dist/es/{ReactiveComponent-9352370c.js → ReactiveComponent-e2fb9eb4.js} +322 -310
- package/dist/es/ReactiveComponent.js +18 -17
- package/dist/es/ReactiveGoogleMap.js +279 -302
- package/dist/es/ReactiveList.js +97 -113
- package/dist/es/ResultCard.js +25 -18
- package/dist/es/ResultList.js +30 -26
- package/dist/es/SelectedFilters.js +47 -32
- package/dist/es/SingleDropdownList.js +68 -59
- package/dist/es/SingleList.js +84 -88
- package/dist/es/SingleRange.js +46 -37
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/Title-863dfa42.js +1 -1
- package/dist/es/ToggleButton.js +37 -30
- package/dist/es/{index-0444a498.js → index-285a43a6.js} +6 -6
- package/dist/es/index.js +19 -18
- package/dist/es/install.js +18 -17
- package/dist/es/ssr-03607d84.js +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-8986b709.js → vueTypes-e4af6fe2.js} +1 -1
- package/package.json +87 -87
- package/dist/cjs/Button-841fd06d.js +0 -62
- package/dist/cjs/Card-240f283d.js +0 -30
- package/dist/cjs/Container-e699ea95.js +0 -15
- package/dist/cjs/Flex-ddd7cb6b.js +0 -50
- package/dist/cjs/FormControlList-bbb5cd24.js +0 -45
- package/dist/cjs/Input-ead4cd84.js +0 -77
- package/dist/cjs/ListItem-5088bd6a.js +0 -45
- package/dist/cjs/Title-16042ea0.js +0 -15
- package/dist/cjs/ssr-f2fc1bf6.js +0 -36
- package/dist/es/Button-153cd885.js +0 -53
- package/dist/es/Flex-7c177a10.js +0 -45
- package/dist/es/FormControlList-99797d0a.js +0 -38
- 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
|
|
6
|
+
import { styled } from '@appbaseio/vue-emotion';
|
|
7
|
+
import { css } from 'emotion';
|
|
7
8
|
import 'polished';
|
|
8
|
-
import './Button-
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
10
|
-
import { P as Pagination } from './Pagination-
|
|
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-
|
|
14
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
15
|
-
import { P as PreferencesConsumer } from './PreferencesConsumer-
|
|
16
|
-
import
|
|
17
|
-
import { C as Checkbox } from './FormControlList-
|
|
18
|
-
import
|
|
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.$
|
|
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
|
|
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
|
-
"
|
|
656
|
-
|
|
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
|
-
"
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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
|
-
|
|
680
|
-
|
|
681
|
-
"
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
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
|
|
769
|
-
|
|
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.$
|
|
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.$
|
|
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
|
-
|
|
1101
|
-
return h("div", [h("div", {
|
|
1088
|
+
return createVNode("div", null, [createVNode("div", {
|
|
1102
1089
|
"ref": "flyaway"
|
|
1103
|
-
}, [this.$
|
|
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
|
|
1122
|
+
var _this = this;
|
|
1136
1123
|
var renderPopover = this.renderPopover,
|
|
1137
1124
|
events = this.events;
|
|
1138
|
-
return
|
|
1139
|
-
"ref": this.id + "-Info-Window"
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
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
|
|
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
|
|
1310
|
+
return createVNode(InfoWindowWrapper, {
|
|
1320
1311
|
"key": markerId + "-InfoWindow",
|
|
1321
|
-
"
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
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
|
|
1364
|
+
var _this = this;
|
|
1377
1365
|
var renderPopover = this.renderPopover,
|
|
1378
1366
|
events = this.events;
|
|
1379
|
-
return
|
|
1380
|
-
"
|
|
1381
|
-
"
|
|
1382
|
-
|
|
1383
|
-
|
|
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
|
-
|
|
1625
|
-
return h("div", {
|
|
1613
|
+
return createVNode("div", {
|
|
1626
1614
|
"style": {
|
|
1627
1615
|
opacity: this.opacity
|
|
1628
1616
|
},
|
|
1629
|
-
"
|
|
1630
|
-
|
|
1631
|
-
|
|
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
|
|
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 =
|
|
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
|
|
1718
|
+
return createVNode(InfoWindowWrapper$1, {
|
|
1735
1719
|
"key": item._id + "-InfoWindow",
|
|
1736
|
-
"
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
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
|
|
1762
|
+
return createVNode(MarkerWithLabel, mergeProps({
|
|
1782
1763
|
"key": marker._id,
|
|
1783
|
-
"
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
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
|
|
1786
|
+
return createVNode(MarkerWithLabel, mergeProps({
|
|
1806
1787
|
"key": marker._id,
|
|
1807
|
-
"
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
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
|
|
1807
|
+
return createVNode(Marker, mergeProps({
|
|
1831
1808
|
"key": marker._id,
|
|
1832
|
-
"
|
|
1833
|
-
|
|
1834
|
-
|
|
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
|
-
"
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1813
|
+
"onMouseover": this.increaseMarkerZIndex,
|
|
1814
|
+
"onMouseout": this.removeMarkerZIndex
|
|
1815
|
+
}, customMarkerProps, {
|
|
1816
|
+
"position": getPosition(marker),
|
|
1817
|
+
"options": {
|
|
1818
|
+
metaData: marker
|
|
1846
1819
|
},
|
|
1847
|
-
"
|
|
1848
|
-
},
|
|
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
|
|
1924
|
-
"
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
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
|
-
},
|
|
1937
|
-
"
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
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
|
-
"
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
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
|
|
1974
|
-
return
|
|
1975
|
-
"
|
|
1976
|
-
|
|
1977
|
-
|
|
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
|
|
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
|
|
2022
|
+
return createVNode("div", {
|
|
2042
2023
|
"style": style
|
|
2043
|
-
}, [
|
|
2024
|
+
}, [createVNode(Map, mergeProps({
|
|
2044
2025
|
"ref": "mapRef",
|
|
2045
|
-
"
|
|
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
|
-
"
|
|
2057
|
-
"
|
|
2058
|
-
|
|
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
|
-
"
|
|
2082
|
-
|
|
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
|
-
|
|
2116
|
-
|
|
2117
|
-
"
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
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.$
|
|
2148
|
-
on: this.$
|
|
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(
|
|
2134
|
+
Vue.use(VueGoogleMaps, {
|
|
2158
2135
|
load: {
|
|
2159
2136
|
key: options.key,
|
|
2160
2137
|
libraries: 'places'
|