@redneckz/wildless-cms-uni-blocks 0.14.260 → 0.14.262
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/bundle/bundle.umd.js +6 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/OfficesAtmsMap/renderWorkSchedule.js +5 -3
- package/dist/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderWorkSchedule.js +5 -3
- package/lib/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.js +5 -3
- package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.js +5 -3
- package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
- package/mobile/src/components/AdTile/AdTile.example.json +6 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +2 -0
- package/mobile/src/components/BankAccountFiltration/BankAccountFiltration.example.json +2 -0
- package/mobile/src/components/CardTransfer/CardTransfer.example.json +2 -0
- package/mobile/src/components/Carousel/Carousel.example.json +11 -7
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.example.json +6 -2
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +13 -10
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +18 -14
- package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +57 -54
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +40 -36
- package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +2 -0
- package/mobile/src/components/Depository/Depository.example.json +6 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +2 -0
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +2 -0
- package/mobile/src/components/Header/Header.example.json +2 -0
- package/mobile/src/components/Headline/Headline.example.json +2 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.example.json +1 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +2 -0
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +2 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.example.json +6 -1
- package/mobile/src/components/OfficesAtmsMap/renderWorkSchedule.tsx +12 -5
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -0
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +3 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +14 -10
- package/mobile/src/components/RollupItem/RollupItem.example.json +2 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.example.json +6 -1
- package/mobile/src/components/Tabs/Tabs.example.json +2 -0
- package/mobile/src/components/TabsLayout/TabsLayout.example.json +2 -0
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +2 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -2
- package/mobile/src/components/Video/Video.example.json +2 -0
- package/package.json +1 -1
- package/src/components/AdTile/AdTile.example.json +6 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +2 -0
- package/src/components/BankAccountFiltration/BankAccountFiltration.example.json +2 -0
- package/src/components/CardTransfer/CardTransfer.example.json +2 -0
- package/src/components/Carousel/Carousel.example.json +11 -7
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.example.json +6 -2
- package/src/components/CarouselCard/CarouselCard.example.json +13 -10
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +18 -14
- package/src/components/CarouselLinks/CarouselLinks.example.json +57 -54
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +40 -36
- package/src/components/ComparisonTable/ComparisonTable.example.json +2 -0
- package/src/components/Depository/Depository.example.json +6 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +2 -0
- package/src/components/GracePeriod/GracePeriod.example.json +2 -0
- package/src/components/Header/Header.example.json +2 -0
- package/src/components/Headline/Headline.example.json +2 -0
- package/src/components/HorizontalLayout/HorizontalLayout.example.json +1 -0
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +2 -0
- package/src/components/LinkDocs/LinkDocs.example.json +2 -0
- package/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.example.json +6 -1
- package/src/components/OfficesAtmsMap/renderWorkSchedule.tsx +12 -5
- package/src/components/ProductBlock/ProductBlock.example.json +1 -0
- package/src/components/ProductGallery/ProductGallery.example.json +3 -2
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +14 -10
- package/src/components/RollupItem/RollupItem.example.json +2 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.example.json +6 -1
- package/src/components/Tabs/Tabs.example.json +2 -0
- package/src/components/TabsLayout/TabsLayout.example.json +2 -0
- package/src/components/TariffsTable/TariffsTable.example.json +2 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -2
- package/src/components/Video/Video.example.json +2 -0
|
@@ -5,19 +5,21 @@ const getWorkScheduleWeek_1 = require("./getWorkScheduleWeek");
|
|
|
5
5
|
const renderWorkSchedule = (workSchedule) => {
|
|
6
6
|
const workScheduleWeek = (0, getWorkScheduleWeek_1.getWorkScheduleWeek)(workSchedule);
|
|
7
7
|
const timeOfWork = workSchedule ? (0, getScheduleDescription_1.getDateDescription)(workScheduleWeek) : '';
|
|
8
|
+
const businessTimeOfWork = workSchedule ? workSchedule.businessScheduleDescription : '';
|
|
8
9
|
if (!workSchedule) {
|
|
9
10
|
return null;
|
|
10
11
|
}
|
|
11
12
|
if (!workSchedule.businessScheduleVisibleTag) {
|
|
12
13
|
return renderMatchingTimeOfWork(timeOfWork);
|
|
13
14
|
}
|
|
14
|
-
if (workSchedule.businessScheduleVisibleTag &&
|
|
15
|
+
if (workSchedule.businessScheduleVisibleTag &&
|
|
16
|
+
workSchedule.businessScheduleDescription === null) {
|
|
15
17
|
return renderIndividualTimeOfWork(timeOfWork);
|
|
16
18
|
}
|
|
17
|
-
return renderDefaultTimeOfWork(timeOfWork);
|
|
19
|
+
return renderDefaultTimeOfWork(timeOfWork, businessTimeOfWork);
|
|
18
20
|
};
|
|
19
21
|
exports.renderWorkSchedule = renderWorkSchedule;
|
|
20
22
|
const renderIndividualTimeOfWork = (timeOfWork) => `<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p>`;
|
|
21
|
-
const renderDefaultTimeOfWork = (timeOfWork) => `<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${timeOfWork}</p>`;
|
|
22
23
|
const renderMatchingTimeOfWork = (timeOfWork) => `<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${timeOfWork}</p>`;
|
|
24
|
+
const renderDefaultTimeOfWork = (timeOfWork, businessTimeOfWork) => `<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${businessTimeOfWork}</p>`;
|
|
23
25
|
//# sourceMappingURL=renderWorkSchedule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWorkSchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderWorkSchedule.tsx"],"names":[],"mappings":";;AAAA,qEAA8D;AAC9D,+DAA4D;AAGrD,MAAM,kBAAkB,GAAG,CAAC,YAA2B,EAAE,EAAE;IAChE,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,IAAA,2CAAkB,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"renderWorkSchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderWorkSchedule.tsx"],"names":[],"mappings":";;AAAA,qEAA8D;AAC9D,+DAA4D;AAGrD,MAAM,kBAAkB,GAAG,CAAC,YAA2B,EAAE,EAAE;IAChE,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,IAAA,2CAAkB,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,MAAM,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,CAAC;IAExF,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,YAAY,CAAC,0BAA0B,EAAE;QAC5C,OAAO,wBAAwB,CAAC,UAAU,CAAC,CAAC;KAC7C;IAED,IACE,YAAY,CAAC,0BAA0B;QACvC,YAAY,CAAC,2BAA2B,KAAK,IAAI,EACjD;QACA,OAAO,0BAA0B,CAAC,UAAU,CAAC,CAAC;KAC/C;IAED,OAAO,uBAAuB,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;AACjE,CAAC,CAAC;AArBW,QAAA,kBAAkB,sBAqB7B;AAEF,MAAM,0BAA0B,GAAG,CAAC,UAAyB,EAAE,EAAE,CAC/D,6CAA6C,UAAU,MAAM,CAAC;AAEhE,MAAM,wBAAwB,GAAG,CAAC,UAAyB,EAAE,EAAE,CAC7D,qDAAqD,UAAU,MAAM,CAAC;AAExE,MAAM,uBAAuB,GAAG,CAC9B,UAAyB,EACzB,kBAAsC,EACtC,EAAE,CACF,6CAA6C,UAAU,iDAAiD,kBAAkB,MAAM,CAAC"}
|
|
@@ -3,18 +3,20 @@ import { getWorkScheduleWeek } from './getWorkScheduleWeek.js';
|
|
|
3
3
|
export const renderWorkSchedule = (workSchedule) => {
|
|
4
4
|
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
5
5
|
const timeOfWork = workSchedule ? getDateDescription(workScheduleWeek) : '';
|
|
6
|
+
const businessTimeOfWork = workSchedule ? workSchedule.businessScheduleDescription : '';
|
|
6
7
|
if (!workSchedule) {
|
|
7
8
|
return null;
|
|
8
9
|
}
|
|
9
10
|
if (!workSchedule.businessScheduleVisibleTag) {
|
|
10
11
|
return renderMatchingTimeOfWork(timeOfWork);
|
|
11
12
|
}
|
|
12
|
-
if (workSchedule.businessScheduleVisibleTag &&
|
|
13
|
+
if (workSchedule.businessScheduleVisibleTag &&
|
|
14
|
+
workSchedule.businessScheduleDescription === null) {
|
|
13
15
|
return renderIndividualTimeOfWork(timeOfWork);
|
|
14
16
|
}
|
|
15
|
-
return renderDefaultTimeOfWork(timeOfWork);
|
|
17
|
+
return renderDefaultTimeOfWork(timeOfWork, businessTimeOfWork);
|
|
16
18
|
};
|
|
17
19
|
const renderIndividualTimeOfWork = (timeOfWork) => `<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p>`;
|
|
18
|
-
const renderDefaultTimeOfWork = (timeOfWork) => `<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${timeOfWork}</p>`;
|
|
19
20
|
const renderMatchingTimeOfWork = (timeOfWork) => `<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${timeOfWork}</p>`;
|
|
21
|
+
const renderDefaultTimeOfWork = (timeOfWork, businessTimeOfWork) => `<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${businessTimeOfWork}</p>`;
|
|
20
22
|
//# sourceMappingURL=renderWorkSchedule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWorkSchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderWorkSchedule.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,YAA2B,EAAE,EAAE;IAChE,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"renderWorkSchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderWorkSchedule.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,YAA2B,EAAE,EAAE;IAChE,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,MAAM,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,CAAC;IAExF,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,YAAY,CAAC,0BAA0B,EAAE;QAC5C,OAAO,wBAAwB,CAAC,UAAU,CAAC,CAAC;KAC7C;IAED,IACE,YAAY,CAAC,0BAA0B;QACvC,YAAY,CAAC,2BAA2B,KAAK,IAAI,EACjD;QACA,OAAO,0BAA0B,CAAC,UAAU,CAAC,CAAC;KAC/C;IAED,OAAO,uBAAuB,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,UAAyB,EAAE,EAAE,CAC/D,6CAA6C,UAAU,MAAM,CAAC;AAEhE,MAAM,wBAAwB,GAAG,CAAC,UAAyB,EAAE,EAAE,CAC7D,qDAAqD,UAAU,MAAM,CAAC;AAExE,MAAM,uBAAuB,GAAG,CAC9B,UAAyB,EACzB,kBAAsC,EACtC,EAAE,CACF,6CAA6C,UAAU,iDAAiD,kBAAkB,MAAM,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"content": {
|
|
3
|
+
"version": "primary",
|
|
4
|
+
"padding": "",
|
|
5
|
+
"isBlur": false,
|
|
6
|
+
"arrowsPadded": true,
|
|
7
|
+
"isCycle": false,
|
|
8
|
+
"isPadding": true,
|
|
9
|
+
"isGap": true,
|
|
10
|
+
"isAlignCenter": false,
|
|
11
|
+
"cardSize": "normal"
|
|
12
|
+
}
|
|
9
13
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"description": "Описание",
|
|
4
|
-
"button": {
|
|
5
|
-
"href": "",
|
|
6
|
-
"text": "Подробнее",
|
|
7
|
-
"target": "_self",
|
|
2
|
+
"content": {
|
|
8
3
|
"version": "primary",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
"padding": "",
|
|
5
|
+
"title": "Заголовок",
|
|
6
|
+
"description": "Описание",
|
|
7
|
+
"button": {
|
|
8
|
+
"href": "",
|
|
9
|
+
"text": "Подробнее",
|
|
10
|
+
"target": "_self",
|
|
11
|
+
"version": "primary",
|
|
12
|
+
"icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
|
|
13
|
+
"iconRight": { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"description": "Описание карточки",
|
|
4
|
-
"image": {
|
|
5
|
-
"format": "webp",
|
|
6
|
-
"size": {
|
|
7
|
-
"width": 230,
|
|
8
|
-
"height": 230
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"button": {
|
|
12
|
-
"text": "Подробнее",
|
|
13
|
-
"target": "_self",
|
|
2
|
+
"content": {
|
|
14
3
|
"version": "primary",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
4
|
+
"padding": "",
|
|
5
|
+
"title": "Заголовок карточки 1",
|
|
6
|
+
"description": "Описание карточки",
|
|
7
|
+
"image": {
|
|
8
|
+
"format": "webp",
|
|
9
|
+
"size": {
|
|
10
|
+
"width": 230,
|
|
11
|
+
"height": 230
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"button": {
|
|
15
|
+
"text": "Подробнее",
|
|
16
|
+
"target": "_self",
|
|
17
|
+
"version": "primary",
|
|
18
|
+
"icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
|
|
19
|
+
"iconRight": { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
20
|
+
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -1,56 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
2
|
+
"content": {
|
|
3
|
+
"version": "primary",
|
|
4
|
+
"padding": "",
|
|
5
|
+
"title": "Заголовок",
|
|
6
|
+
"description": "Описание 1",
|
|
7
|
+
"additionalDescription": "Описание 2",
|
|
8
|
+
"links": [
|
|
9
|
+
{
|
|
10
|
+
"text": "Текст",
|
|
11
|
+
"href": "#"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"text": "Текст",
|
|
15
|
+
"href": "#"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"text": "Текст",
|
|
19
|
+
"href": "#"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"text": "Текст",
|
|
23
|
+
"href": "#"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"text": "Текст",
|
|
27
|
+
"href": "#"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"text": "Текст",
|
|
31
|
+
"href": "#"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"text": "Текст",
|
|
35
|
+
"href": "#"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"text": "Текст",
|
|
39
|
+
"href": "#"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"text": "Текст",
|
|
43
|
+
"href": "#"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"text": "Текст",
|
|
47
|
+
"href": "#"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"text": "Текст",
|
|
51
|
+
"href": "#"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"text": "Текст",
|
|
55
|
+
"href": "#"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
56
59
|
}
|
|
@@ -1,40 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"format": "webp",
|
|
11
|
-
"size": {
|
|
12
|
-
"width": 267,
|
|
13
|
-
"height": 73
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"isHighlighting": false,
|
|
17
|
-
"cardCells": [
|
|
18
|
-
{
|
|
19
|
-
"title": "Ячейка 1-1",
|
|
20
|
-
"description": "Описание 1-1"
|
|
2
|
+
"content": {
|
|
3
|
+
"version": "primary",
|
|
4
|
+
"padding": "",
|
|
5
|
+
"title": "Заголовок карточки",
|
|
6
|
+
"button": {
|
|
7
|
+
"text": "Кнопка",
|
|
8
|
+
"target": "_self",
|
|
9
|
+
"version": "secondary"
|
|
21
10
|
},
|
|
22
|
-
{
|
|
23
|
-
"
|
|
24
|
-
"
|
|
11
|
+
"icon": {
|
|
12
|
+
"icon": "",
|
|
13
|
+
"format": "webp",
|
|
14
|
+
"size": {
|
|
15
|
+
"width": 267,
|
|
16
|
+
"height": 73
|
|
17
|
+
}
|
|
25
18
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
"isHighlighting": false,
|
|
20
|
+
"cardCells": [
|
|
21
|
+
{
|
|
22
|
+
"title": "Ячейка 1-1",
|
|
23
|
+
"description": "Описание 1-1"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"title": "Ячейка 1-2",
|
|
27
|
+
"description": "Описание 1-2"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"buttons": [
|
|
31
|
+
{
|
|
32
|
+
"icon": {
|
|
33
|
+
"iconVersion": "color",
|
|
34
|
+
"icon": "DocIconMonoColor"
|
|
35
|
+
},
|
|
36
|
+
"version": "link",
|
|
37
|
+
"text": "Скачать файл"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"align": "text-center"
|
|
43
|
+
}
|
|
40
44
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"content": {
|
|
3
|
+
"version": "primary",
|
|
4
|
+
"padding": "",
|
|
3
5
|
"items": ["Пункт 1", "Пункт 2", "Пункт 3"],
|
|
4
6
|
"image": {
|
|
5
7
|
"format": "webp",
|
|
@@ -29,7 +31,6 @@
|
|
|
29
31
|
],
|
|
30
32
|
"title": "Мобильное приложение",
|
|
31
33
|
"description": "Загрузить для IOS и Android",
|
|
32
|
-
"version": "primary",
|
|
33
34
|
"headingType": "h4",
|
|
34
35
|
"additionalDescription": "Наведите камеру телефона на QR-код и скачайте приложение"
|
|
35
36
|
}
|
|
@@ -5,6 +5,7 @@ import { type WorkSchedule } from './OfficesAtmsMapProps';
|
|
|
5
5
|
export const renderWorkSchedule = (workSchedule?: WorkSchedule) => {
|
|
6
6
|
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
7
7
|
const timeOfWork = workSchedule ? getDateDescription(workScheduleWeek) : '';
|
|
8
|
+
const businessTimeOfWork = workSchedule ? workSchedule.businessScheduleDescription : '';
|
|
8
9
|
|
|
9
10
|
if (!workSchedule) {
|
|
10
11
|
return null;
|
|
@@ -14,18 +15,24 @@ export const renderWorkSchedule = (workSchedule?: WorkSchedule) => {
|
|
|
14
15
|
return renderMatchingTimeOfWork(timeOfWork);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
if (
|
|
18
|
+
if (
|
|
19
|
+
workSchedule.businessScheduleVisibleTag &&
|
|
20
|
+
workSchedule.businessScheduleDescription === null
|
|
21
|
+
) {
|
|
18
22
|
return renderIndividualTimeOfWork(timeOfWork);
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
return renderDefaultTimeOfWork(timeOfWork);
|
|
25
|
+
return renderDefaultTimeOfWork(timeOfWork, businessTimeOfWork);
|
|
22
26
|
};
|
|
23
27
|
|
|
24
28
|
const renderIndividualTimeOfWork = (timeOfWork: string[] | '') =>
|
|
25
29
|
`<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p>`;
|
|
26
30
|
|
|
27
|
-
const renderDefaultTimeOfWork = (timeOfWork: string[] | '') =>
|
|
28
|
-
`<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${timeOfWork}</p>`;
|
|
29
|
-
|
|
30
31
|
const renderMatchingTimeOfWork = (timeOfWork: string[] | '') =>
|
|
31
32
|
`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${timeOfWork}</p>`;
|
|
33
|
+
|
|
34
|
+
const renderDefaultTimeOfWork = (
|
|
35
|
+
timeOfWork: string[] | '',
|
|
36
|
+
businessTimeOfWork: string | undefined,
|
|
37
|
+
) =>
|
|
38
|
+
`<p><b>Режим обслуживания физ.лиц:<br/></b>${timeOfWork}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${businessTimeOfWork}</p>`;
|
package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
2
|
+
"content": {
|
|
3
|
+
"version": "primary",
|
|
4
|
+
"padding": "",
|
|
5
|
+
"title": "Заголовок",
|
|
6
|
+
"description": "Описание",
|
|
7
|
+
"__html": "<p>Описание</p>",
|
|
8
|
+
"richVersion": "",
|
|
9
|
+
"icon": { "format": "webp", "size": { "width": 70, "height": 48 } },
|
|
10
|
+
"button": {
|
|
11
|
+
"text": "Информация о регионе",
|
|
12
|
+
"version": "link",
|
|
13
|
+
"icon": { "format": "webp", "size": { "width": 16, "height": 16 } },
|
|
14
|
+
"iconRight": { "format": "webp", "size": { "width": 16, "height": 16 } }
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
}
|