@redneckz/wildless-cms-uni-blocks 0.14.307 → 0.14.309
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.14.309.js +36 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +4 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BankAccountFiltration/BankAccountFiltrationContent.d.ts +0 -4
- package/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/dist/components/BankAccountFiltration/BankAccountFiltrationContent.d.ts +0 -4
- package/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/lib/components/BankAccountFiltration/BankAccountFiltrationContent.d.ts +0 -4
- package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BankAccountFiltration/BankAccountFiltrationContent.d.ts +0 -4
- package/mobile/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/mobile/dist/components/BankAccountFiltration/BankAccountFiltrationContent.d.ts +0 -4
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/lib/components/BankAccountFiltration/BankAccountFiltrationContent.d.ts +0 -4
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/src/components/BankAccountFiltration/BankAccountFiltration.example.json +0 -20
- package/mobile/src/components/BankAccountFiltration/BankAccountFiltrationContent.ts +0 -4
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
- package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +4 -2
- package/package.json +1 -1
- package/src/components/BankAccountFiltration/BankAccountFiltration.example.json +0 -20
- package/src/components/BankAccountFiltration/BankAccountFiltration.fixture.mobile.tsx +0 -20
- package/src/components/BankAccountFiltration/BankAccountFiltration.fixture.tsx +0 -20
- package/src/components/BankAccountFiltration/BankAccountFiltrationContent.ts +0 -4
- package/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
- package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +4 -2
|
@@ -6,10 +6,6 @@ export declare type BankAccountFiltrationSchema = {
|
|
|
6
6
|
extraOptions?: StringArray;
|
|
7
7
|
/** @title Внешние переводы */
|
|
8
8
|
externalTransfers?: StringArray;
|
|
9
|
-
/** @title Внесение наличных */
|
|
10
|
-
depositingCash?: StringArray;
|
|
11
|
-
/** @title Снятие наличных */
|
|
12
|
-
withdrawalCash?: StringArray;
|
|
13
9
|
};
|
|
14
10
|
/**
|
|
15
11
|
* @title Подборщик тарифов
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type ymaps from 'yandex-maps';
|
|
3
|
-
export declare const renderUserGeolocation: (map:
|
|
3
|
+
export declare const renderUserGeolocation: (map: {
|
|
4
|
+
current: ymaps.Map;
|
|
5
|
+
}, yandexMaps: typeof ymaps, className: string) => JSX.Element;
|
|
@@ -6,10 +6,6 @@ export declare type BankAccountFiltrationSchema = {
|
|
|
6
6
|
extraOptions?: StringArray;
|
|
7
7
|
/** @title Внешние переводы */
|
|
8
8
|
externalTransfers?: StringArray;
|
|
9
|
-
/** @title Внесение наличных */
|
|
10
|
-
depositingCash?: StringArray;
|
|
11
|
-
/** @title Снятие наличных */
|
|
12
|
-
withdrawalCash?: StringArray;
|
|
13
9
|
};
|
|
14
10
|
/**
|
|
15
11
|
* @title Подборщик тарифов
|
|
@@ -40,12 +40,12 @@ exports.YandexMap = (0, uni_jsx_1.JSX)(({ points, className = '', zoom = 5 }) =>
|
|
|
40
40
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}, [yandexMaps,
|
|
43
|
+
}, [yandexMaps, points, zoom]);
|
|
44
44
|
if (!yandexMaps) {
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
const zIndex = 'z-10';
|
|
48
|
-
return ((0, jsx_runtime_1.jsxs)("div", { id: "map", className: (0, style_1.style)('relative', 'w-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [(0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map }), (0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map, direction: "out" })] }), (0, renderUserGeolocation_1.renderUserGeolocation)(map
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)("div", { id: "map", className: (0, style_1.style)('relative', 'w-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [(0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map }), (0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map, direction: "out" })] }), (0, renderUserGeolocation_1.renderUserGeolocation)(map, yandexMaps, (0, style_1.style)('right-2 top-80', zIndex))] }));
|
|
49
49
|
});
|
|
50
50
|
const getCenterPoint = (points) => [
|
|
51
51
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";;;AAAA,6DAA6D;AAC7D,cAAc;AACd,+CAAwC;AACxC,uDAAgE;AAGhE,6CAA0C;AAC1C,uDAAoD;AACpD,mEAAgE;AAChE,mDAAgD;AAChD,6CAA0C;AAQ1C,MAAM,qBAAqB,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAErD,oHAAoH;AACpH,sDAAsD;AACtD,0DAA0D;AAC1D,6EAA6E;AAChE,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE;IACpF,MAAM,GAAG,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEnC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE;YACjB,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE;gBACrB,kEAAkE;gBAClE,IAAI,GAAG,CAAC,OAAO,EAAE;oBACf,OAAO;iBACR;gBAED,GAAG,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE;oBACtC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CA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,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,MAAuB,EAAE,EAAE,CAAC;IAClD,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5C,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,MAAuB,EAAE,KAAa,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAElG,MAAM,qBAAqB,GAAG,CAAC,GAAa,EAAE,EAAE,CAC9C,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type ymaps from 'yandex-maps';
|
|
3
|
-
export declare const renderUserGeolocation: (map:
|
|
3
|
+
export declare const renderUserGeolocation: (map: {
|
|
4
|
+
current: ymaps.Map;
|
|
5
|
+
}, yandexMaps: typeof ymaps, className: string) => JSX.Element;
|
|
@@ -21,7 +21,7 @@ const renderUserGeolocation = (map, yandexMaps, className) => {
|
|
|
21
21
|
mapStateAutoApply: true,
|
|
22
22
|
})
|
|
23
23
|
.then(function (result) {
|
|
24
|
-
map.geoObjects.add(result.geoObjects);
|
|
24
|
+
map.current.geoObjects.add(result.geoObjects);
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
return ((0, jsx_runtime_1.jsx)("div", { className: `select-none cursor-pointer py-m w-12 bg-white ${Object.values(styles).join(' ')} ${className}`, onClick: setUserGeoLocation, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "UserGeoLocationIcon", width: "20", height: "16" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderUserGeolocation.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderUserGeolocation.tsx"],"names":[],"mappings":";;;AAEA,uCAAoC;AAEpC,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,wCAAwC;IAC/C,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,2CAA2C;IACrD,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAEK,MAAM,qBAAqB,GAAG,CACnC,
|
|
1
|
+
{"version":3,"file":"renderUserGeolocation.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderUserGeolocation.tsx"],"names":[],"mappings":";;;AAEA,uCAAoC;AAEpC,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,wCAAwC;IAC/C,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,2CAA2C;IACrD,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAEK,MAAM,qBAAqB,GAAG,CACnC,GAEC,EACD,UAAwB,EACxB,SAAiB,EACjB,EAAE;IACF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,6DAA6D;QAC7D,aAAa;QACb,UAAU,CAAC,WAAW;aACnB,GAAG,CAAC;YACH,QAAQ,EAAE,QAAQ;YAClB,kBAAkB,EAAE,IAAI;YACxB,iBAAiB,EAAE,IAAI;SACxB,CAAC;aACD,IAAI,CAAC,UAAU,MAAM;YACpB,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACL,gCACE,SAAS,EAAE,iDAAiD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CACpF,GAAG,CACJ,IAAI,SAAS,EAAE,EAChB,OAAO,EAAE,kBAAkB,YAE3B,uBAAC,WAAI,IAAC,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACtD,CACP,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,qBAAqB,yBA+BhC"}
|
|
@@ -6,10 +6,6 @@ export declare type BankAccountFiltrationSchema = {
|
|
|
6
6
|
extraOptions?: StringArray;
|
|
7
7
|
/** @title Внешние переводы */
|
|
8
8
|
externalTransfers?: StringArray;
|
|
9
|
-
/** @title Внесение наличных */
|
|
10
|
-
depositingCash?: StringArray;
|
|
11
|
-
/** @title Снятие наличных */
|
|
12
|
-
withdrawalCash?: StringArray;
|
|
13
9
|
};
|
|
14
10
|
/**
|
|
15
11
|
* @title Подборщик тарифов
|
|
@@ -38,12 +38,12 @@ export const YandexMap = JSX(({ points, className = '', zoom = 5 }) => {
|
|
|
38
38
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
}, [yandexMaps,
|
|
41
|
+
}, [yandexMaps, points, zoom]);
|
|
42
42
|
if (!yandexMaps) {
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
45
|
const zIndex = 'z-10';
|
|
46
|
-
return (_jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [_jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [_jsx(ZoomButton, { yandexMaps: map }), _jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map
|
|
46
|
+
return (_jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [_jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [_jsx(ZoomButton, { yandexMaps: map }), _jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))] }));
|
|
47
47
|
});
|
|
48
48
|
const getCenterPoint = (points) => [
|
|
49
49
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,qBAAqB,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAErD,oHAAoH;AACpH,sDAAsD;AACtD,0DAA0D;AAC1D,6EAA6E;AAC7E,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE;IACpF,MAAM,GAAG,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE;YACjB,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE;gBACrB,kEAAkE;gBAClE,IAAI,GAAG,CAAC,OAAO,EAAE;oBACf,OAAO;iBACR;gBAED,GAAG,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE;oBACtC,M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M,CACP,aAED,KAAC,UAAU,IAAC,UAAU,EAAE,GAAG,GAAI,EAC/B,KAAC,UAAU,IAAC,UAAU,EAAE,GAAG,EAAE,SAAS,EAAC,KAAK,GAAG,IAC3C,EACL,qBAAqB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,IACpE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,MAAuB,EAAE,EAAE,CAAC;IAClD,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5C,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,MAAuB,EAAE,KAAa,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAElG,MAAM,qBAAqB,GAAG,CAAC,GAAa,EAAE,EAAE,CAC9C,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type ymaps from 'yandex-maps';
|
|
3
|
-
export declare const renderUserGeolocation: (map:
|
|
3
|
+
export declare const renderUserGeolocation: (map: {
|
|
4
|
+
current: ymaps.Map;
|
|
5
|
+
}, yandexMaps: typeof ymaps, className: string) => JSX.Element;
|
|
@@ -19,7 +19,7 @@ export const renderUserGeolocation = (map, yandexMaps, className) => {
|
|
|
19
19
|
mapStateAutoApply: true,
|
|
20
20
|
})
|
|
21
21
|
.then(function (result) {
|
|
22
|
-
map.geoObjects.add(result.geoObjects);
|
|
22
|
+
map.current.geoObjects.add(result.geoObjects);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
return (_jsx("div", { className: `select-none cursor-pointer py-m w-12 bg-white ${Object.values(styles).join(' ')} ${className}`, onClick: setUserGeoLocation, children: _jsx(Icon, { name: "UserGeoLocationIcon", width: "20", height: "16" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderUserGeolocation.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderUserGeolocation.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,wCAAwC;IAC/C,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,2CAA2C;IACrD,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,
|
|
1
|
+
{"version":3,"file":"renderUserGeolocation.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderUserGeolocation.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,wCAAwC;IAC/C,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,2CAA2C;IACrD,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,GAEC,EACD,UAAwB,EACxB,SAAiB,EACjB,EAAE;IACF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,6DAA6D;QAC7D,aAAa;QACb,UAAU,CAAC,WAAW;aACnB,GAAG,CAAC;YACH,QAAQ,EAAE,QAAQ;YAClB,kBAAkB,EAAE,IAAI;YACxB,iBAAiB,EAAE,IAAI;SACxB,CAAC;aACD,IAAI,CAAC,UAAU,MAAM;YACpB,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACL,cACE,SAAS,EAAE,iDAAiD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CACpF,GAAG,CACJ,IAAI,SAAS,EAAE,EAChB,OAAO,EAAE,kBAAkB,YAE3B,KAAC,IAAI,IAAC,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACtD,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -21,26 +21,6 @@
|
|
|
21
21
|
"enum": ["often", "rarely"],
|
|
22
22
|
"enumNames": ["Часто", "Редко"]
|
|
23
23
|
}
|
|
24
|
-
},
|
|
25
|
-
"depositingCash": {
|
|
26
|
-
"title": "Внесение наличных в месяц",
|
|
27
|
-
"type": "array",
|
|
28
|
-
"single": true,
|
|
29
|
-
"items": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"enum": ["often", "rarely"],
|
|
32
|
-
"enumNames": ["Часто", "Редко"]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"withdrawalCash": {
|
|
36
|
-
"title": "Снятие наличных в месяц",
|
|
37
|
-
"type": "array",
|
|
38
|
-
"single": true,
|
|
39
|
-
"items": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"enum": ["often", "rarely"],
|
|
42
|
-
"enumNames": ["Часто", "Редко"]
|
|
43
|
-
}
|
|
44
24
|
}
|
|
45
25
|
},
|
|
46
26
|
"consumerField": {
|
|
@@ -7,10 +7,6 @@ export type BankAccountFiltrationSchema = {
|
|
|
7
7
|
extraOptions?: StringArray;
|
|
8
8
|
/** @title Внешние переводы */
|
|
9
9
|
externalTransfers?: StringArray;
|
|
10
|
-
/** @title Внесение наличных */
|
|
11
|
-
depositingCash?: StringArray;
|
|
12
|
-
/** @title Снятие наличных */
|
|
13
|
-
withdrawalCash?: StringArray;
|
|
14
10
|
};
|
|
15
11
|
|
|
16
12
|
/**
|
|
@@ -51,7 +51,7 @@ export const YandexMap = JSX<YandexMapProps>(({ points, className = '', zoom = 5
|
|
|
51
51
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
}, [yandexMaps,
|
|
54
|
+
}, [yandexMaps, points, zoom]);
|
|
55
55
|
|
|
56
56
|
if (!yandexMaps) {
|
|
57
57
|
return null;
|
|
@@ -70,7 +70,7 @@ export const YandexMap = JSX<YandexMapProps>(({ points, className = '', zoom = 5
|
|
|
70
70
|
<ZoomButton yandexMaps={map} />
|
|
71
71
|
<ZoomButton yandexMaps={map} direction="out" />
|
|
72
72
|
</div>
|
|
73
|
-
{renderUserGeolocation(map
|
|
73
|
+
{renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))}
|
|
74
74
|
</div>
|
|
75
75
|
);
|
|
76
76
|
});
|
|
@@ -12,7 +12,9 @@ const styles = {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export const renderUserGeolocation = (
|
|
15
|
-
map:
|
|
15
|
+
map: {
|
|
16
|
+
current: ymaps.Map;
|
|
17
|
+
},
|
|
16
18
|
yandexMaps: typeof ymaps,
|
|
17
19
|
className: string,
|
|
18
20
|
) => {
|
|
@@ -26,7 +28,7 @@ export const renderUserGeolocation = (
|
|
|
26
28
|
mapStateAutoApply: true,
|
|
27
29
|
})
|
|
28
30
|
.then(function (result) {
|
|
29
|
-
map.geoObjects.add(result.geoObjects);
|
|
31
|
+
map.current.geoObjects.add(result.geoObjects);
|
|
30
32
|
});
|
|
31
33
|
};
|
|
32
34
|
|
package/package.json
CHANGED
|
@@ -21,26 +21,6 @@
|
|
|
21
21
|
"enum": ["often", "rarely"],
|
|
22
22
|
"enumNames": ["Часто", "Редко"]
|
|
23
23
|
}
|
|
24
|
-
},
|
|
25
|
-
"depositingCash": {
|
|
26
|
-
"title": "Внесение наличных в месяц",
|
|
27
|
-
"type": "array",
|
|
28
|
-
"single": true,
|
|
29
|
-
"items": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"enum": ["often", "rarely"],
|
|
32
|
-
"enumNames": ["Часто", "Редко"]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"withdrawalCash": {
|
|
36
|
-
"title": "Снятие наличных в месяц",
|
|
37
|
-
"type": "array",
|
|
38
|
-
"single": true,
|
|
39
|
-
"items": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"enum": ["often", "rarely"],
|
|
42
|
-
"enumNames": ["Часто", "Редко"]
|
|
43
|
-
}
|
|
44
24
|
}
|
|
45
25
|
},
|
|
46
26
|
"consumerField": {
|
|
@@ -29,26 +29,6 @@ const filtrationSchema: BankAccountFiltrationContent['filtrationSchema'] = {
|
|
|
29
29
|
enumNames: ['Часто', 'Редко'],
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
|
-
depositingCash: {
|
|
33
|
-
title: 'Внесение наличных в месяц',
|
|
34
|
-
type: 'array',
|
|
35
|
-
single: true,
|
|
36
|
-
items: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
enum: ['often', 'rarely'],
|
|
39
|
-
enumNames: ['Часто', 'Редко'],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
withdrawalCash: {
|
|
43
|
-
title: 'Снятие наличных в месяц',
|
|
44
|
-
type: 'array',
|
|
45
|
-
single: true,
|
|
46
|
-
items: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
enum: ['often', 'rarely'],
|
|
49
|
-
enumNames: ['Часто', 'Редко'],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
32
|
};
|
|
53
33
|
|
|
54
34
|
const TARRIFF_FARMERS_RKO_EXTERNAL_OF = {
|
|
@@ -29,26 +29,6 @@ const filtrationSchema: BankAccountFiltrationContent['filtrationSchema'] = {
|
|
|
29
29
|
enumNames: ['Часто', 'Редко'],
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
|
-
depositingCash: {
|
|
33
|
-
title: 'Внесение наличных в месяц',
|
|
34
|
-
type: 'array',
|
|
35
|
-
single: true,
|
|
36
|
-
items: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
enum: ['often', 'rarely'],
|
|
39
|
-
enumNames: ['Часто', 'Редко'],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
withdrawalCash: {
|
|
43
|
-
title: 'Снятие наличных в месяц',
|
|
44
|
-
type: 'array',
|
|
45
|
-
single: true,
|
|
46
|
-
items: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
enum: ['often', 'rarely'],
|
|
49
|
-
enumNames: ['Часто', 'Редко'],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
32
|
};
|
|
53
33
|
|
|
54
34
|
const TARRIFF_FARMERS_RKO_EXTERNAL_OF = {
|
|
@@ -7,10 +7,6 @@ export type BankAccountFiltrationSchema = {
|
|
|
7
7
|
extraOptions?: StringArray;
|
|
8
8
|
/** @title Внешние переводы */
|
|
9
9
|
externalTransfers?: StringArray;
|
|
10
|
-
/** @title Внесение наличных */
|
|
11
|
-
depositingCash?: StringArray;
|
|
12
|
-
/** @title Снятие наличных */
|
|
13
|
-
withdrawalCash?: StringArray;
|
|
14
10
|
};
|
|
15
11
|
|
|
16
12
|
/**
|
|
@@ -51,7 +51,7 @@ export const YandexMap = JSX<YandexMapProps>(({ points, className = '', zoom = 5
|
|
|
51
51
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
}, [yandexMaps,
|
|
54
|
+
}, [yandexMaps, points, zoom]);
|
|
55
55
|
|
|
56
56
|
if (!yandexMaps) {
|
|
57
57
|
return null;
|
|
@@ -70,7 +70,7 @@ export const YandexMap = JSX<YandexMapProps>(({ points, className = '', zoom = 5
|
|
|
70
70
|
<ZoomButton yandexMaps={map} />
|
|
71
71
|
<ZoomButton yandexMaps={map} direction="out" />
|
|
72
72
|
</div>
|
|
73
|
-
{renderUserGeolocation(map
|
|
73
|
+
{renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))}
|
|
74
74
|
</div>
|
|
75
75
|
);
|
|
76
76
|
});
|
|
@@ -12,7 +12,9 @@ const styles = {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export const renderUserGeolocation = (
|
|
15
|
-
map:
|
|
15
|
+
map: {
|
|
16
|
+
current: ymaps.Map;
|
|
17
|
+
},
|
|
16
18
|
yandexMaps: typeof ymaps,
|
|
17
19
|
className: string,
|
|
18
20
|
) => {
|
|
@@ -26,7 +28,7 @@ export const renderUserGeolocation = (
|
|
|
26
28
|
mapStateAutoApply: true,
|
|
27
29
|
})
|
|
28
30
|
.then(function (result) {
|
|
29
|
-
map.geoObjects.add(result.geoObjects);
|
|
31
|
+
map.current.geoObjects.add(result.geoObjects);
|
|
30
32
|
});
|
|
31
33
|
};
|
|
32
34
|
|