@redneckz/wildless-cms-uni-blocks 0.14.99 → 0.14.101
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/bin/migration-scripts/0.6.32.js +1 -1
- package/bundle/bundle.umd.js +11 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/isHrefActive.d.ts +4 -2
- package/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/bundle/ui-kit/SVG.d.ts +4 -2
- package/dist/api/LeadServiceAPI.js +1 -1
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +0 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +1 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/isHrefActive.d.ts +4 -2
- package/dist/components/Header/isHrefActive.js +2 -3
- package/dist/components/Header/isHrefActive.js.map +1 -1
- package/dist/components/RollupItem/getIconName.js +1 -1
- package/dist/components/RollupItem/getIconName.js.map +1 -1
- package/dist/components/RollupItem/getIconName.mobile.js +1 -1
- package/dist/components/RollupItem/getIconName.mobile.js.map +1 -1
- package/dist/services/sitemap/SitemapData.d.ts +2 -2
- package/dist/ui-kit/LinkButton/renderArrows.js +5 -1
- package/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/dist/ui-kit/SVG.d.ts +4 -2
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/utils/getBorderStyle.js +1 -1
- package/dist/utils/getBorderStyle.js.map +1 -1
- package/lib/api/LeadServiceAPI.js +1 -1
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Carousel/Carousel.js +0 -3
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +1 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/isHrefActive.d.ts +4 -2
- package/lib/components/Header/isHrefActive.js +2 -3
- package/lib/components/Header/isHrefActive.js.map +1 -1
- package/lib/components/RollupItem/getIconName.js +1 -1
- package/lib/components/RollupItem/getIconName.js.map +1 -1
- package/lib/components/RollupItem/getIconName.mobile.js +1 -1
- package/lib/components/RollupItem/getIconName.mobile.js.map +1 -1
- package/lib/services/sitemap/SitemapData.d.ts +2 -2
- package/lib/ui-kit/LinkButton/renderArrows.js +5 -1
- package/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/lib/ui-kit/SVG.d.ts +4 -2
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/utils/getBorderStyle.js +1 -1
- package/lib/utils/getBorderStyle.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -11
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/bundle/ui-kit/SVG.d.ts +4 -2
- package/mobile/dist/api/LeadServiceAPI.js +1 -1
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +0 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/dist/components/Header/isHrefActive.js +2 -3
- package/mobile/dist/components/Header/isHrefActive.js.map +1 -1
- package/mobile/dist/components/RollupItem/getIconName.js +1 -1
- package/mobile/dist/components/RollupItem/getIconName.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/dist/ui-kit/LinkButton/renderArrows.js +5 -1
- package/mobile/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.d.ts +4 -2
- package/mobile/dist/ui-kit/SVG.js.map +1 -1
- package/mobile/dist/utils/getBorderStyle.js +1 -1
- package/mobile/dist/utils/getBorderStyle.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +1 -1
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +0 -3
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/isHrefActive.d.ts +4 -2
- package/mobile/lib/components/Header/isHrefActive.js +2 -3
- package/mobile/lib/components/Header/isHrefActive.js.map +1 -1
- package/mobile/lib/components/RollupItem/getIconName.js +1 -1
- package/mobile/lib/components/RollupItem/getIconName.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
- package/mobile/lib/ui-kit/LinkButton/renderArrows.js +5 -1
- package/mobile/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.d.ts +4 -2
- package/mobile/lib/ui-kit/SVG.js.map +1 -1
- package/mobile/lib/utils/getBorderStyle.js +1 -1
- package/mobile/lib/utils/getBorderStyle.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +0 -3
- package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
- package/mobile/src/components/Header/isHrefActive.ts +7 -4
- package/mobile/src/components/RollupItem/getIconName.tsx +1 -1
- package/mobile/src/services/sitemap/SitemapData.ts +2 -2
- package/mobile/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
- package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
- package/mobile/src/ui-kit/SVG.tsx +5 -2
- package/mobile/src/utils/getBorderStyle.ts +1 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +1 -1
- package/src/components/Carousel/Carousel.tsx +0 -3
- package/src/components/Header/DropdownMenu.tsx +1 -1
- package/src/components/Header/isHrefActive.ts +7 -4
- package/src/components/RollupItem/getIconName.mobile.tsx +1 -1
- package/src/components/RollupItem/getIconName.tsx +1 -1
- package/src/services/sitemap/SitemapData.ts +2 -2
- package/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
- package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
- package/src/ui-kit/SVG.tsx +5 -2
- package/src/utils/getBorderStyle.ts +1 -1
- package/bin/migration-scripts/0.11.0.js +0 -29
- package/bin/migration-scripts/0.12.9.js +0 -30
- package/bin/migration-scripts/0.13.5.js +0 -36
- package/bin/migration-scripts/0.13.6.js +0 -33
- package/bin/migration-scripts/0.14.26.js +0 -55
- package/bin/migration-scripts/0.14.28.js +0 -28
- package/bin/migration-scripts/0.14.29.js +0 -75
- package/bin/migration-scripts/0.14.30.js +0 -54
- package/bin/migration-scripts/0.14.44.js +0 -103
- package/bin/migration-scripts/0.5.14.js +0 -33
- package/bin/migration-scripts/0.6.43.js +0 -32
- package/bin/migration-scripts/0.7.8.js +0 -32
- package/bin/migration-scripts/0.8.10.js +0 -31
- package/bin/migration-scripts/0.8.29.js +0 -42
- package/bin/migration-scripts/0.8.8.js +0 -124
- package/bin/migration-scripts/0.9.1.js +0 -71
- package/bin/migration-scripts/0.9.10.js +0 -30
- package/bin/migration-scripts/0.9.9.js +0 -111
- package/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/dist/components/SafeDepositRental/renderClusterer.js +0 -35
- package/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/lib/components/SafeDepositRental/renderClusterer.js +0 -32
- package/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/renderClusterer.js +0 -35
- package/mobile/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/renderClusterer.js +0 -32
- package/mobile/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
- package/mobile/src/components/SafeDepositRental/renderClusterer.ts +0 -51
- package/src/components/SafeDepositRental/renderClusterer.ts +0 -51
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { deleteEmptyProps, renameProp } from '../utils.js';
|
|
2
|
-
|
|
3
|
-
export const description = 'v0.9.9';
|
|
4
|
-
|
|
5
|
-
const COL_SPAN = 'col-span-12';
|
|
6
|
-
|
|
7
|
-
export default (unitPath, content) => {
|
|
8
|
-
if (!content?.blocks) {
|
|
9
|
-
return content;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
for (const block of content.blocks) {
|
|
13
|
-
adjustCarouselBlock(block);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return { ...content };
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const adjustCarouselBlock = (block) => {
|
|
20
|
-
if (block.blocks) {
|
|
21
|
-
for (const childBlock of block.blocks) {
|
|
22
|
-
adjustCarouselBlock(childBlock);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (block.type === 'Recommendation') {
|
|
27
|
-
adjustCarousel(block, 'CarouselRecommendationCard');
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const adjustCarousel = (block, type) => {
|
|
32
|
-
if (block.blocks) {
|
|
33
|
-
for (const childBlock of block.blocks) {
|
|
34
|
-
adjustCarousel(childBlock);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const recommendations = block?.content?.recommendations;
|
|
39
|
-
const headlineTitle = block?.content?.title;
|
|
40
|
-
const anchor = block?.anchor;
|
|
41
|
-
block.blocks = [];
|
|
42
|
-
if (headlineTitle) {
|
|
43
|
-
block.blocks.push(getHeadlineBlock(headlineTitle));
|
|
44
|
-
}
|
|
45
|
-
if (recommendations && recommendations?.length > 0) {
|
|
46
|
-
block.blocks.push(getCarousel(recommendations, type));
|
|
47
|
-
}
|
|
48
|
-
if (anchor) {
|
|
49
|
-
block.anchor = anchor;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
getVerticalLayout(block);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const getVerticalLayout = (block) => {
|
|
56
|
-
block.content = {
|
|
57
|
-
isTheme: false,
|
|
58
|
-
version: 'secondary',
|
|
59
|
-
isPadding: true,
|
|
60
|
-
isInnerPadding: true,
|
|
61
|
-
align: 'stretch',
|
|
62
|
-
gap: 'L',
|
|
63
|
-
};
|
|
64
|
-
block.style = [COL_SPAN];
|
|
65
|
-
block.type = 'VerticalLayout';
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const getCarousel = (recommendation, cardType) => {
|
|
69
|
-
return {
|
|
70
|
-
content: {
|
|
71
|
-
isTheme: true,
|
|
72
|
-
visibleItemCount: 0,
|
|
73
|
-
isBlur: false,
|
|
74
|
-
arrowsPadded: true,
|
|
75
|
-
isCycle: false,
|
|
76
|
-
isPadding: false,
|
|
77
|
-
version: '',
|
|
78
|
-
},
|
|
79
|
-
style: [COL_SPAN],
|
|
80
|
-
type: 'Carousel',
|
|
81
|
-
blocks: recommendation.map((_) => {
|
|
82
|
-
renameProp(_, 'image', 'icon');
|
|
83
|
-
if (!_.button?.text) {
|
|
84
|
-
Reflect.deleteProperty(_, 'button');
|
|
85
|
-
}
|
|
86
|
-
if (_?.recommendations) {
|
|
87
|
-
Reflect.deleteProperty(_, 'recommendations');
|
|
88
|
-
}
|
|
89
|
-
deleteEmptyProps(_);
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
content: _,
|
|
93
|
-
style: [COL_SPAN],
|
|
94
|
-
type: cardType,
|
|
95
|
-
};
|
|
96
|
-
}),
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const getHeadlineBlock = (title) => ({
|
|
101
|
-
content: {
|
|
102
|
-
isTheme: true,
|
|
103
|
-
title: title,
|
|
104
|
-
align: 'text-center',
|
|
105
|
-
bgColorHeadline: 'transparent',
|
|
106
|
-
headlineVersion: 'M',
|
|
107
|
-
isPadding: false,
|
|
108
|
-
},
|
|
109
|
-
style: [COL_SPAN],
|
|
110
|
-
type: 'Headline',
|
|
111
|
-
});
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderClusterer = void 0;
|
|
3
|
-
function renderClusterer(yandexMaps, map, points) {
|
|
4
|
-
map.geoObjects.removeAll();
|
|
5
|
-
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>');
|
|
6
|
-
const clusterer = new yandexMaps.Clusterer({
|
|
7
|
-
clusterIcons: [
|
|
8
|
-
{
|
|
9
|
-
href: 'icons/MapMarkerClusterIcon.svg',
|
|
10
|
-
size: [78, 84],
|
|
11
|
-
offset: [-35, -50],
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
clusterIconContentLayout,
|
|
15
|
-
clusterHideIconOnBalloonOpen: false,
|
|
16
|
-
geoObjectHideIconOnBalloonOpen: false,
|
|
17
|
-
});
|
|
18
|
-
const geoObjects = points.map((point) => new yandexMaps.Placemark(point, {}, {
|
|
19
|
-
iconLayout: 'default#image',
|
|
20
|
-
iconImageHref: 'icons/MapMarkerSingleIcon.svg',
|
|
21
|
-
iconImageSize: [78, 84],
|
|
22
|
-
iconImageOffset: [-35, -50],
|
|
23
|
-
}));
|
|
24
|
-
clusterer.add(geoObjects);
|
|
25
|
-
map.geoObjects.add(clusterer);
|
|
26
|
-
// TODO: Fix
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points)).then(() => {
|
|
29
|
-
if (map.getZoom() > 10) {
|
|
30
|
-
map.setZoom(10);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
exports.renderClusterer = renderClusterer;
|
|
35
|
-
//# sourceMappingURL=renderClusterer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderClusterer.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/renderClusterer.ts"],"names":[],"mappings":";;AAKA,SAAgB,eAAe,CAAC,UAAwB,EAAE,GAAc,EAAE,MAAkB;IAC1F,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;IAE3B,MAAM,wBAAwB,GAAG,UAAU,CAAC,qBAAqB,CAAC,WAAW,CAC3E,uEAAuE,CACxE,CAAC;IAEF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC;QACzC,YAAY,EAAE;YACZ;gBACE,IAAI,EAAE,gCAAgC;gBACtC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;gBACd,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;aACnB;SACF;QACD,wBAAwB;QACxB,4BAA4B,EAAE,KAAK;QACnC,8BAA8B,EAAE,KAAK;KACX,CAAC,CAAC;IAE9B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAC3B,CAAC,KAAK,EAAE,EAAE,CACR,IAAI,UAAU,CAAC,SAAS,CACtB,KAAK,EACL,EAAE,EACF;QACE,UAAU,EAAE,eAAe;QAC3B,aAAa,EAAE,+BAA+B;QAC9C,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;KAC5B,CACF,CACJ,CAAC;IAEF,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAE1B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,SAAgB,CAAC,CAAC;IAErC,YAAY;IACZ,aAAa;IACb,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACjE,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE;YACtB,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AA7CD,0CA6CC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export function renderClusterer(yandexMaps, map, points) {
|
|
2
|
-
map.geoObjects.removeAll();
|
|
3
|
-
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>');
|
|
4
|
-
const clusterer = new yandexMaps.Clusterer({
|
|
5
|
-
clusterIcons: [
|
|
6
|
-
{
|
|
7
|
-
href: 'icons/MapMarkerClusterIcon.svg',
|
|
8
|
-
size: [78, 84],
|
|
9
|
-
offset: [-35, -50],
|
|
10
|
-
},
|
|
11
|
-
],
|
|
12
|
-
clusterIconContentLayout,
|
|
13
|
-
clusterHideIconOnBalloonOpen: false,
|
|
14
|
-
geoObjectHideIconOnBalloonOpen: false,
|
|
15
|
-
});
|
|
16
|
-
const geoObjects = points.map((point) => new yandexMaps.Placemark(point, {}, {
|
|
17
|
-
iconLayout: 'default#image',
|
|
18
|
-
iconImageHref: 'icons/MapMarkerSingleIcon.svg',
|
|
19
|
-
iconImageSize: [78, 84],
|
|
20
|
-
iconImageOffset: [-35, -50],
|
|
21
|
-
}));
|
|
22
|
-
clusterer.add(geoObjects);
|
|
23
|
-
map.geoObjects.add(clusterer);
|
|
24
|
-
// TODO: Fix
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points)).then(() => {
|
|
27
|
-
if (map.getZoom() > 10) {
|
|
28
|
-
map.setZoom(10);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=renderClusterer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderClusterer.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/renderClusterer.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,UAAwB,EAAE,GAAc,EAAE,MAAkB;IAC1F,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;IAE3B,MAAM,wBAAwB,GAAG,UAAU,CAAC,qBAAqB,CAAC,WAAW,CAC3E,uEAAuE,CACxE,CAAC;IAEF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC;QACzC,YAAY,EAAE;YACZ;gBACE,IAAI,EAAE,gCAAgC;gBACtC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;gBACd,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;aACnB;SACF;QACD,wBAAwB;QACxB,4BAA4B,EAAE,KAAK;QACnC,8BAA8B,EAAE,KAAK;KACX,CAAC,CAAC;IAE9B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAC3B,CAAC,KAAK,EAAE,EAAE,CACR,IAAI,UAAU,CAAC,SAAS,CACtB,KAAK,EACL,EAAE,EACF;QACE,UAAU,EAAE,eAAe;QAC3B,aAAa,EAAE,+BAA+B;QAC9C,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;KAC5B,CACF,CACJ,CAAC;IAEF,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAE1B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,SAAgB,CAAC,CAAC;IAErC,YAAY;IACZ,aAAa;IACb,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACjE,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE;YACtB,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderClusterer = void 0;
|
|
3
|
-
function renderClusterer(yandexMaps, map, points) {
|
|
4
|
-
map.geoObjects.removeAll();
|
|
5
|
-
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>');
|
|
6
|
-
const clusterer = new yandexMaps.Clusterer({
|
|
7
|
-
clusterIcons: [
|
|
8
|
-
{
|
|
9
|
-
href: 'icons/MapMarkerClusterIcon.svg',
|
|
10
|
-
size: [78, 84],
|
|
11
|
-
offset: [-35, -50],
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
clusterIconContentLayout,
|
|
15
|
-
clusterHideIconOnBalloonOpen: false,
|
|
16
|
-
geoObjectHideIconOnBalloonOpen: false,
|
|
17
|
-
});
|
|
18
|
-
const geoObjects = points.map((point) => new yandexMaps.Placemark(point, {}, {
|
|
19
|
-
iconLayout: 'default#image',
|
|
20
|
-
iconImageHref: 'icons/MapMarkerSingleIcon.svg',
|
|
21
|
-
iconImageSize: [78, 84],
|
|
22
|
-
iconImageOffset: [-35, -50],
|
|
23
|
-
}));
|
|
24
|
-
clusterer.add(geoObjects);
|
|
25
|
-
map.geoObjects.add(clusterer);
|
|
26
|
-
// TODO: Fix
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points)).then(() => {
|
|
29
|
-
if (map.getZoom() > 10) {
|
|
30
|
-
map.setZoom(10);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
exports.renderClusterer = renderClusterer;
|
|
35
|
-
//# sourceMappingURL=renderClusterer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderClusterer.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/renderClusterer.ts"],"names":[],"mappings":";;AAKA,SAAgB,eAAe,CAAC,UAAwB,EAAE,GAAc,EAAE,MAAkB;IAC1F,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;IAE3B,MAAM,wBAAwB,GAAG,UAAU,CAAC,qBAAqB,CAAC,WAAW,CAC3E,uEAAuE,CACxE,CAAC;IAEF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC;QACzC,YAAY,EAAE;YACZ;gBACE,IAAI,EAAE,gCAAgC;gBACtC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;gBACd,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;aACnB;SACF;QACD,wBAAwB;QACxB,4BAA4B,EAAE,KAAK;QACnC,8BAA8B,EAAE,KAAK;KACX,CAAC,CAAC;IAE9B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAC3B,CAAC,KAAK,EAAE,EAAE,CACR,IAAI,UAAU,CAAC,SAAS,CACtB,KAAK,EACL,EAAE,EACF;QACE,UAAU,EAAE,eAAe;QAC3B,aAAa,EAAE,+BAA+B;QAC9C,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;KAC5B,CACF,CACJ,CAAC;IAEF,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAE1B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,SAAgB,CAAC,CAAC;IAErC,YAAY;IACZ,aAAa;IACb,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACjE,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE;YACtB,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AA7CD,0CA6CC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export function renderClusterer(yandexMaps, map, points) {
|
|
2
|
-
map.geoObjects.removeAll();
|
|
3
|
-
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>');
|
|
4
|
-
const clusterer = new yandexMaps.Clusterer({
|
|
5
|
-
clusterIcons: [
|
|
6
|
-
{
|
|
7
|
-
href: 'icons/MapMarkerClusterIcon.svg',
|
|
8
|
-
size: [78, 84],
|
|
9
|
-
offset: [-35, -50],
|
|
10
|
-
},
|
|
11
|
-
],
|
|
12
|
-
clusterIconContentLayout,
|
|
13
|
-
clusterHideIconOnBalloonOpen: false,
|
|
14
|
-
geoObjectHideIconOnBalloonOpen: false,
|
|
15
|
-
});
|
|
16
|
-
const geoObjects = points.map((point) => new yandexMaps.Placemark(point, {}, {
|
|
17
|
-
iconLayout: 'default#image',
|
|
18
|
-
iconImageHref: 'icons/MapMarkerSingleIcon.svg',
|
|
19
|
-
iconImageSize: [78, 84],
|
|
20
|
-
iconImageOffset: [-35, -50],
|
|
21
|
-
}));
|
|
22
|
-
clusterer.add(geoObjects);
|
|
23
|
-
map.geoObjects.add(clusterer);
|
|
24
|
-
// TODO: Fix
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points)).then(() => {
|
|
27
|
-
if (map.getZoom() > 10) {
|
|
28
|
-
map.setZoom(10);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=renderClusterer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderClusterer.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/renderClusterer.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,UAAwB,EAAE,GAAc,EAAE,MAAkB;IAC1F,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;IAE3B,MAAM,wBAAwB,GAAG,UAAU,CAAC,qBAAqB,CAAC,WAAW,CAC3E,uEAAuE,CACxE,CAAC;IAEF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC;QACzC,YAAY,EAAE;YACZ;gBACE,IAAI,EAAE,gCAAgC;gBACtC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;gBACd,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;aACnB;SACF;QACD,wBAAwB;QACxB,4BAA4B,EAAE,KAAK;QACnC,8BAA8B,EAAE,KAAK;KACX,CAAC,CAAC;IAE9B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAC3B,CAAC,KAAK,EAAE,EAAE,CACR,IAAI,UAAU,CAAC,SAAS,CACtB,KAAK,EACL,EAAE,EACF;QACE,UAAU,EAAE,eAAe;QAC3B,aAAa,EAAE,+BAA+B;QAC9C,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;KAC5B,CACF,CACJ,CAAC;IAEF,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAE1B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,SAAgB,CAAC,CAAC;IAErC,YAAY;IACZ,aAAa;IACb,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QACjE,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE;YACtB,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// TODO: Fix
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
4
|
-
import type ymaps from 'yandex-maps';
|
|
5
|
-
|
|
6
|
-
export function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]) {
|
|
7
|
-
map.geoObjects.removeAll();
|
|
8
|
-
|
|
9
|
-
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass(
|
|
10
|
-
'<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>',
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
const clusterer = new yandexMaps.Clusterer({
|
|
14
|
-
clusterIcons: [
|
|
15
|
-
{
|
|
16
|
-
href: 'icons/MapMarkerClusterIcon.svg',
|
|
17
|
-
size: [78, 84],
|
|
18
|
-
offset: [-35, -50],
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
clusterIconContentLayout,
|
|
22
|
-
clusterHideIconOnBalloonOpen: false,
|
|
23
|
-
geoObjectHideIconOnBalloonOpen: false,
|
|
24
|
-
} as ymaps.IClustererOptions);
|
|
25
|
-
|
|
26
|
-
const geoObjects = points.map(
|
|
27
|
-
(point) =>
|
|
28
|
-
new yandexMaps.Placemark(
|
|
29
|
-
point,
|
|
30
|
-
{},
|
|
31
|
-
{
|
|
32
|
-
iconLayout: 'default#image',
|
|
33
|
-
iconImageHref: 'icons/MapMarkerSingleIcon.svg',
|
|
34
|
-
iconImageSize: [78, 84],
|
|
35
|
-
iconImageOffset: [-35, -50],
|
|
36
|
-
},
|
|
37
|
-
),
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
clusterer.add(geoObjects);
|
|
41
|
-
|
|
42
|
-
map.geoObjects.add(clusterer as any);
|
|
43
|
-
|
|
44
|
-
// TODO: Fix
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points)).then(() => {
|
|
47
|
-
if (map.getZoom() > 10) {
|
|
48
|
-
map.setZoom(10);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// TODO: Fix
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
4
|
-
import type ymaps from 'yandex-maps';
|
|
5
|
-
|
|
6
|
-
export function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]) {
|
|
7
|
-
map.geoObjects.removeAll();
|
|
8
|
-
|
|
9
|
-
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass(
|
|
10
|
-
'<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>',
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
const clusterer = new yandexMaps.Clusterer({
|
|
14
|
-
clusterIcons: [
|
|
15
|
-
{
|
|
16
|
-
href: 'icons/MapMarkerClusterIcon.svg',
|
|
17
|
-
size: [78, 84],
|
|
18
|
-
offset: [-35, -50],
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
clusterIconContentLayout,
|
|
22
|
-
clusterHideIconOnBalloonOpen: false,
|
|
23
|
-
geoObjectHideIconOnBalloonOpen: false,
|
|
24
|
-
} as ymaps.IClustererOptions);
|
|
25
|
-
|
|
26
|
-
const geoObjects = points.map(
|
|
27
|
-
(point) =>
|
|
28
|
-
new yandexMaps.Placemark(
|
|
29
|
-
point,
|
|
30
|
-
{},
|
|
31
|
-
{
|
|
32
|
-
iconLayout: 'default#image',
|
|
33
|
-
iconImageHref: 'icons/MapMarkerSingleIcon.svg',
|
|
34
|
-
iconImageSize: [78, 84],
|
|
35
|
-
iconImageOffset: [-35, -50],
|
|
36
|
-
},
|
|
37
|
-
),
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
clusterer.add(geoObjects);
|
|
41
|
-
|
|
42
|
-
map.geoObjects.add(clusterer as any);
|
|
43
|
-
|
|
44
|
-
// TODO: Fix
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points)).then(() => {
|
|
47
|
-
if (map.getZoom() > 10) {
|
|
48
|
-
map.setZoom(10);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|