@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.
Files changed (155) hide show
  1. package/bin/migration-scripts/0.6.32.js +1 -1
  2. package/bundle/bundle.umd.js +11 -12
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Header/isHrefActive.d.ts +4 -2
  5. package/bundle/services/sitemap/SitemapData.d.ts +2 -2
  6. package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  7. package/bundle/ui-kit/SVG.d.ts +4 -2
  8. package/dist/api/LeadServiceAPI.js +1 -1
  9. package/dist/api/LeadServiceAPI.js.map +1 -1
  10. package/dist/components/Carousel/Carousel.js +0 -3
  11. package/dist/components/Carousel/Carousel.js.map +1 -1
  12. package/dist/components/Header/DropdownMenu.js +1 -1
  13. package/dist/components/Header/DropdownMenu.js.map +1 -1
  14. package/dist/components/Header/isHrefActive.d.ts +4 -2
  15. package/dist/components/Header/isHrefActive.js +2 -3
  16. package/dist/components/Header/isHrefActive.js.map +1 -1
  17. package/dist/components/RollupItem/getIconName.js +1 -1
  18. package/dist/components/RollupItem/getIconName.js.map +1 -1
  19. package/dist/components/RollupItem/getIconName.mobile.js +1 -1
  20. package/dist/components/RollupItem/getIconName.mobile.js.map +1 -1
  21. package/dist/services/sitemap/SitemapData.d.ts +2 -2
  22. package/dist/ui-kit/LinkButton/renderArrows.js +5 -1
  23. package/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  24. package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  25. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  26. package/dist/ui-kit/SVG.d.ts +4 -2
  27. package/dist/ui-kit/SVG.js.map +1 -1
  28. package/dist/utils/getBorderStyle.js +1 -1
  29. package/dist/utils/getBorderStyle.js.map +1 -1
  30. package/lib/api/LeadServiceAPI.js +1 -1
  31. package/lib/api/LeadServiceAPI.js.map +1 -1
  32. package/lib/common.css +1 -1
  33. package/lib/components/Carousel/Carousel.js +0 -3
  34. package/lib/components/Carousel/Carousel.js.map +1 -1
  35. package/lib/components/Header/DropdownMenu.js +1 -1
  36. package/lib/components/Header/DropdownMenu.js.map +1 -1
  37. package/lib/components/Header/isHrefActive.d.ts +4 -2
  38. package/lib/components/Header/isHrefActive.js +2 -3
  39. package/lib/components/Header/isHrefActive.js.map +1 -1
  40. package/lib/components/RollupItem/getIconName.js +1 -1
  41. package/lib/components/RollupItem/getIconName.js.map +1 -1
  42. package/lib/components/RollupItem/getIconName.mobile.js +1 -1
  43. package/lib/components/RollupItem/getIconName.mobile.js.map +1 -1
  44. package/lib/services/sitemap/SitemapData.d.ts +2 -2
  45. package/lib/ui-kit/LinkButton/renderArrows.js +5 -1
  46. package/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  47. package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  48. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  49. package/lib/ui-kit/SVG.d.ts +4 -2
  50. package/lib/ui-kit/SVG.js.map +1 -1
  51. package/lib/utils/getBorderStyle.js +1 -1
  52. package/lib/utils/getBorderStyle.js.map +1 -1
  53. package/mobile/bundle/bundle.umd.js +10 -11
  54. package/mobile/bundle/bundle.umd.min.js +1 -1
  55. package/mobile/bundle/components/Header/isHrefActive.d.ts +4 -2
  56. package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
  57. package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  58. package/mobile/bundle/ui-kit/SVG.d.ts +4 -2
  59. package/mobile/dist/api/LeadServiceAPI.js +1 -1
  60. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  61. package/mobile/dist/components/Carousel/Carousel.js +0 -3
  62. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  63. package/mobile/dist/components/Header/DropdownMenu.js +1 -1
  64. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  65. package/mobile/dist/components/Header/isHrefActive.d.ts +4 -2
  66. package/mobile/dist/components/Header/isHrefActive.js +2 -3
  67. package/mobile/dist/components/Header/isHrefActive.js.map +1 -1
  68. package/mobile/dist/components/RollupItem/getIconName.js +1 -1
  69. package/mobile/dist/components/RollupItem/getIconName.js.map +1 -1
  70. package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
  71. package/mobile/dist/ui-kit/LinkButton/renderArrows.js +5 -1
  72. package/mobile/dist/ui-kit/LinkButton/renderArrows.js.map +1 -1
  73. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  74. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  75. package/mobile/dist/ui-kit/SVG.d.ts +4 -2
  76. package/mobile/dist/ui-kit/SVG.js.map +1 -1
  77. package/mobile/dist/utils/getBorderStyle.js +1 -1
  78. package/mobile/dist/utils/getBorderStyle.js.map +1 -1
  79. package/mobile/lib/api/LeadServiceAPI.js +1 -1
  80. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  81. package/mobile/lib/common.css +1 -1
  82. package/mobile/lib/components/Carousel/Carousel.js +0 -3
  83. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  84. package/mobile/lib/components/Header/DropdownMenu.js +1 -1
  85. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  86. package/mobile/lib/components/Header/isHrefActive.d.ts +4 -2
  87. package/mobile/lib/components/Header/isHrefActive.js +2 -3
  88. package/mobile/lib/components/Header/isHrefActive.js.map +1 -1
  89. package/mobile/lib/components/RollupItem/getIconName.js +1 -1
  90. package/mobile/lib/components/RollupItem/getIconName.js.map +1 -1
  91. package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
  92. package/mobile/lib/ui-kit/LinkButton/renderArrows.js +5 -1
  93. package/mobile/lib/ui-kit/LinkButton/renderArrows.js.map +1 -1
  94. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +2 -4
  95. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  96. package/mobile/lib/ui-kit/SVG.d.ts +4 -2
  97. package/mobile/lib/ui-kit/SVG.js.map +1 -1
  98. package/mobile/lib/utils/getBorderStyle.js +1 -1
  99. package/mobile/lib/utils/getBorderStyle.js.map +1 -1
  100. package/mobile/src/api/LeadServiceAPI.ts +1 -1
  101. package/mobile/src/components/Carousel/Carousel.tsx +0 -3
  102. package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
  103. package/mobile/src/components/Header/isHrefActive.ts +7 -4
  104. package/mobile/src/components/RollupItem/getIconName.tsx +1 -1
  105. package/mobile/src/services/sitemap/SitemapData.ts +2 -2
  106. package/mobile/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
  107. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
  108. package/mobile/src/ui-kit/SVG.tsx +5 -2
  109. package/mobile/src/utils/getBorderStyle.ts +1 -1
  110. package/package.json +1 -1
  111. package/src/api/LeadServiceAPI.ts +1 -1
  112. package/src/components/Carousel/Carousel.tsx +0 -3
  113. package/src/components/Header/DropdownMenu.tsx +1 -1
  114. package/src/components/Header/isHrefActive.ts +7 -4
  115. package/src/components/RollupItem/getIconName.mobile.tsx +1 -1
  116. package/src/components/RollupItem/getIconName.tsx +1 -1
  117. package/src/services/sitemap/SitemapData.ts +2 -2
  118. package/src/ui-kit/LinkButton/renderArrows.tsx +9 -4
  119. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +3 -3
  120. package/src/ui-kit/SVG.tsx +5 -2
  121. package/src/utils/getBorderStyle.ts +1 -1
  122. package/bin/migration-scripts/0.11.0.js +0 -29
  123. package/bin/migration-scripts/0.12.9.js +0 -30
  124. package/bin/migration-scripts/0.13.5.js +0 -36
  125. package/bin/migration-scripts/0.13.6.js +0 -33
  126. package/bin/migration-scripts/0.14.26.js +0 -55
  127. package/bin/migration-scripts/0.14.28.js +0 -28
  128. package/bin/migration-scripts/0.14.29.js +0 -75
  129. package/bin/migration-scripts/0.14.30.js +0 -54
  130. package/bin/migration-scripts/0.14.44.js +0 -103
  131. package/bin/migration-scripts/0.5.14.js +0 -33
  132. package/bin/migration-scripts/0.6.43.js +0 -32
  133. package/bin/migration-scripts/0.7.8.js +0 -32
  134. package/bin/migration-scripts/0.8.10.js +0 -31
  135. package/bin/migration-scripts/0.8.29.js +0 -42
  136. package/bin/migration-scripts/0.8.8.js +0 -124
  137. package/bin/migration-scripts/0.9.1.js +0 -71
  138. package/bin/migration-scripts/0.9.10.js +0 -30
  139. package/bin/migration-scripts/0.9.9.js +0 -111
  140. package/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  141. package/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  142. package/dist/components/SafeDepositRental/renderClusterer.js +0 -35
  143. package/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
  144. package/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  145. package/lib/components/SafeDepositRental/renderClusterer.js +0 -32
  146. package/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
  147. package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  148. package/mobile/dist/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  149. package/mobile/dist/components/SafeDepositRental/renderClusterer.js +0 -35
  150. package/mobile/dist/components/SafeDepositRental/renderClusterer.js.map +0 -1
  151. package/mobile/lib/components/SafeDepositRental/renderClusterer.d.ts +0 -2
  152. package/mobile/lib/components/SafeDepositRental/renderClusterer.js +0 -32
  153. package/mobile/lib/components/SafeDepositRental/renderClusterer.js.map +0 -1
  154. package/mobile/src/components/SafeDepositRental/renderClusterer.ts +0 -51
  155. 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,2 +0,0 @@
1
- import type ymaps from 'yandex-maps';
2
- export declare function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]): void;
@@ -1,2 +0,0 @@
1
- import type ymaps from 'yandex-maps';
2
- export declare function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]): void;
@@ -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,2 +0,0 @@
1
- import type ymaps from 'yandex-maps';
2
- export declare function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]): void;
@@ -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,2 +0,0 @@
1
- import type ymaps from 'yandex-maps';
2
- export declare function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]): void;
@@ -1,2 +0,0 @@
1
- import type ymaps from 'yandex-maps';
2
- export declare function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]): void;
@@ -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,2 +0,0 @@
1
- import type ymaps from 'yandex-maps';
2
- export declare function renderClusterer(yandexMaps: typeof ymaps, map: ymaps.Map, points: number[][]): void;
@@ -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
- }