@redneckz/wildless-cms-uni-blocks 0.14.49 → 0.14.51
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.31.js +66 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +47 -58
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/bundle/components/Bonus/BonusContent.d.ts +7 -3
- package/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/bundle/model/EmptyOptionType.d.ts +1 -3
- package/bundle/model/JSXBlock.d.ts +2 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +7 -3
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +14 -5
- package/dist/components/LinkDocs/LinkDocs.js +3 -0
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/dist/components/ProductBlock/ProductBlock.js +1 -13
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -8
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/dist/model/EmptyOptionType.d.ts +1 -3
- package/dist/model/JSXBlock.d.ts +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +16 -5
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +7 -3
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +14 -5
- package/lib/components/LinkDocs/LinkDocs.js +3 -0
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +2 -0
- package/lib/components/ProductBlock/ProductBlock.js +2 -14
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -9
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/lib/model/EmptyOptionType.d.ts +1 -3
- package/lib/model/JSXBlock.d.ts +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +16 -5
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +47 -58
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/bundle/model/EmptyOptionType.d.ts +1 -3
- package/mobile/bundle/model/JSXBlock.d.ts +2 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -13
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -8
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/dist/model/EmptyOptionType.d.ts +1 -3
- package/mobile/dist/model/JSXBlock.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +16 -5
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -14
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -9
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/lib/model/EmptyOptionType.d.ts +1 -3
- package/mobile/lib/model/JSXBlock.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +16 -5
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/src/common.css +4 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/Bonus/BonusContent.ts +8 -3
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/CalculatorContent.ts +16 -5
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -0
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +13 -32
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +8 -3
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
- package/mobile/src/model/EmptyOptionType.ts +1 -3
- package/mobile/src/model/JSXBlock.ts +2 -2
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
- package/package.json +1 -1
- package/src/common.css +4 -0
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/Bonus/BonusContent.ts +8 -3
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
- package/src/components/Calculator/CalculatorContent.ts +16 -5
- package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +5 -5
- package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +5 -5
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +15 -15
- package/src/components/LinkDocs/LinkDocs.tsx +3 -0
- package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.mobile.tsx +8 -8
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +8 -8
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +41 -0
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +40 -0
- package/src/components/ProductBlock/ProductBlock.tsx +13 -32
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +9 -9
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +11 -11
- package/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
- package/src/components/TariffsTable/TariffsTableContent.ts +8 -3
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +3 -3
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +9 -10
- package/src/model/EmptyOptionType.ts +1 -3
- package/src/model/JSXBlock.ts +2 -2
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
- package/bundle/components/ProductTile/ProductTile.d.ts +0 -5
- package/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/bundle/components/Tile/Tile.d.ts +0 -5
- package/bundle/components/Tile/TileContent.d.ts +0 -6
- package/dist/components/ProductTile/ProductTile.d.ts +0 -5
- package/dist/components/ProductTile/ProductTile.js +0 -9
- package/dist/components/ProductTile/ProductTile.js.map +0 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/dist/components/ProductTile/ProductTileContent.js +0 -2
- package/dist/components/ProductTile/ProductTileContent.js.map +0 -1
- package/dist/components/Tile/Tile.d.ts +0 -5
- package/dist/components/Tile/Tile.js +0 -8
- package/dist/components/Tile/Tile.js.map +0 -1
- package/dist/components/Tile/TileContent.d.ts +0 -6
- package/dist/components/Tile/TileContent.js +0 -2
- package/dist/components/Tile/TileContent.js.map +0 -1
- package/lib/components/ProductTile/ProductTile.d.ts +0 -5
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +0 -17
- package/lib/components/ProductTile/ProductTile.fixture.mobile.d.ts +0 -16
- package/lib/components/ProductTile/ProductTile.js +0 -7
- package/lib/components/ProductTile/ProductTile.js.map +0 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/lib/components/ProductTile/ProductTileContent.js +0 -2
- package/lib/components/ProductTile/ProductTileContent.js.map +0 -1
- package/lib/components/Tile/Tile.d.ts +0 -5
- package/lib/components/Tile/Tile.fixture.d.ts +0 -15
- package/lib/components/Tile/Tile.fixture.mobile.d.ts +0 -9
- package/lib/components/Tile/Tile.js +0 -6
- package/lib/components/Tile/Tile.js.map +0 -1
- package/lib/components/Tile/TileContent.d.ts +0 -6
- package/lib/components/Tile/TileContent.js +0 -2
- package/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/bundle/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/bundle/components/Tile/Tile.d.ts +0 -5
- package/mobile/bundle/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/dist/components/ProductTile/ProductTile.js +0 -9
- package/mobile/dist/components/ProductTile/ProductTile.js.map +0 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/dist/components/ProductTile/ProductTileContent.js +0 -2
- package/mobile/dist/components/ProductTile/ProductTileContent.js.map +0 -1
- package/mobile/dist/components/Tile/Tile.d.ts +0 -5
- package/mobile/dist/components/Tile/Tile.js +0 -8
- package/mobile/dist/components/Tile/Tile.js.map +0 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/components/Tile/TileContent.js +0 -2
- package/mobile/dist/components/Tile/TileContent.js.map +0 -1
- package/mobile/lib/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/lib/components/ProductTile/ProductTile.js +0 -7
- package/mobile/lib/components/ProductTile/ProductTile.js.map +0 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/lib/components/ProductTile/ProductTileContent.js +0 -2
- package/mobile/lib/components/ProductTile/ProductTileContent.js.map +0 -1
- package/mobile/lib/components/Tile/Tile.d.ts +0 -5
- package/mobile/lib/components/Tile/Tile.js +0 -6
- package/mobile/lib/components/Tile/Tile.js.map +0 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +0 -6
- package/mobile/lib/components/Tile/TileContent.js +0 -2
- package/mobile/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/src/components/ProductTile/ProductTile.example.json +0 -44
- package/mobile/src/components/ProductTile/ProductTile.tsx +0 -40
- package/mobile/src/components/ProductTile/ProductTile.ui.json +0 -17
- package/mobile/src/components/ProductTile/ProductTileContent.ts +0 -10
- package/mobile/src/components/Tile/Tile.example.json +0 -28
- package/mobile/src/components/Tile/Tile.tsx +0 -23
- package/mobile/src/components/Tile/Tile.ui.json +0 -17
- package/mobile/src/components/Tile/TileContent.ts +0 -7
- package/src/components/ProductTile/ProductTile.example.json +0 -44
- package/src/components/ProductTile/ProductTile.fixture.mobile.tsx +0 -217
- package/src/components/ProductTile/ProductTile.fixture.tsx +0 -227
- package/src/components/ProductTile/ProductTile.tsx +0 -40
- package/src/components/ProductTile/ProductTile.ui.json +0 -17
- package/src/components/ProductTile/ProductTileContent.ts +0 -10
- package/src/components/Tile/Tile.example.json +0 -28
- package/src/components/Tile/Tile.fixture.mobile.tsx +0 -48
- package/src/components/Tile/Tile.fixture.tsx +0 -146
- package/src/components/Tile/Tile.tsx +0 -23
- package/src/components/Tile/Tile.ui.json +0 -17
- package/src/components/Tile/TileContent.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.js","source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AE,CAAC;IAExF,OAAO,CACL,cAAqB,IAAI,EAAC,UAAU,YAClC,KAAC,WAAW,IACV,IAAI,EAAE,WAAW,EAAE,IAAI,EACvB,MAAM,EAAE,WAAW,EAAE,MAAM,EAC3B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,GACzF,IARM,MAAM,CAAC,CAAC,CAAC,CASb,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Attachment } from '../../model/Attachment';
|
|
2
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
3
2
|
import { type AlignProps, type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
3
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
5
4
|
import { type LinkProps, type Target } from '../../model/LinkProps';
|
|
@@ -28,23 +27,28 @@ export interface AttachmentDoc {
|
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
29
|
* @title Ссылка на документ
|
|
31
|
-
* @default {"docType": "Link"}
|
|
32
30
|
*/
|
|
33
31
|
export declare type LinkDocDef = LinkDoc & {
|
|
32
|
+
/** @default "Link" */
|
|
34
33
|
docType: 'Link';
|
|
35
34
|
};
|
|
36
35
|
/**
|
|
37
36
|
* @title Файл
|
|
38
|
-
* @default {"docType": "Attachment"}
|
|
39
37
|
*/
|
|
40
38
|
export declare type AttachmentDocDef = AttachmentDoc & {
|
|
39
|
+
/** @default "Attachment" */
|
|
41
40
|
docType: 'Attachment';
|
|
42
41
|
};
|
|
42
|
+
/** @title Не выбрано * */
|
|
43
|
+
export declare type EmptyDocType = {
|
|
44
|
+
/** @default "" */
|
|
45
|
+
docType: '';
|
|
46
|
+
};
|
|
43
47
|
/**
|
|
44
48
|
* @title Документ
|
|
45
|
-
* @default
|
|
49
|
+
* @default {"docType": ""}
|
|
46
50
|
*/
|
|
47
|
-
export declare type DocBlockDef =
|
|
51
|
+
export declare type DocBlockDef = EmptyDocType | LinkDocDef | AttachmentDocDef;
|
|
48
52
|
/**
|
|
49
53
|
* @title Список документов
|
|
50
54
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
2
|
import { type Picture } from '../../model/Picture';
|
|
4
3
|
/**
|
|
@@ -27,11 +26,16 @@ export declare type AtmsDef = {
|
|
|
27
26
|
/** @title Список */
|
|
28
27
|
list?: ItemList[];
|
|
29
28
|
};
|
|
29
|
+
/** @title Не выбрано * */
|
|
30
|
+
export declare type EmptyOfficesAtmsBlock = {
|
|
31
|
+
/** @default "" */
|
|
32
|
+
dataType: '';
|
|
33
|
+
};
|
|
30
34
|
/**
|
|
31
35
|
* @title Данные
|
|
32
|
-
* @default
|
|
36
|
+
* @default { "dataType": "" }
|
|
33
37
|
*/
|
|
34
|
-
export declare type OfficesAtmsBlockDef =
|
|
38
|
+
export declare type OfficesAtmsBlockDef = EmptyOfficesAtmsBlock | OfficesDef | AtmsDef;
|
|
35
39
|
/**
|
|
36
40
|
* @title Блок офисов и банкоматов
|
|
37
41
|
*/
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
import { useRouter } from '../../hooks/useRouter.js';
|
|
5
3
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile.js';
|
|
6
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
7
5
|
import { getBorderStyle } from '../../utils/getBorderStyle.js';
|
|
8
6
|
import { style } from '../../utils/style.js';
|
|
9
|
-
|
|
10
|
-
export const ProductBlock = JSX(({ className, padding, backwardButton, showBorder, ...rest }) => {
|
|
11
|
-
const router = useRouter();
|
|
12
|
-
const handleClick = useCallback((ev) => {
|
|
13
|
-
ev?.preventDefault();
|
|
14
|
-
router.back();
|
|
15
|
-
}, []);
|
|
16
|
-
return (_jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', getBorderStyle(showBorder), className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
|
|
17
|
-
? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
|
|
18
|
-
: null, _jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
|
|
19
|
-
});
|
|
7
|
+
export const ProductBlock = JSX(({ className, padding, showBorder, ...rest }) => (_jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', getBorderStyle(showBorder), className), padding: "p-0", ...rest, children: _jsx(BaseProductTile, { defaultPadding: "p-6xl", padding: padding, className: "grow h-full", ...rest }) })));
|
|
20
8
|
//# sourceMappingURL=ProductBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC/C,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CACd,kDAAkD,EAClD,cAAc,CAAC,UAAU,CAAC,EAC1B,SAAS,CACV,EACD,OAAO,EAAC,KAAK,KACT,IAAI,YAER,KAAC,eAAe,IAAC,cAAc,EAAC,OAAO,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,aAAa,KAAK,IAAI,GAAI,GACjF,CAChB,CACF,CAAC"}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
3
|
+
import { RenderCellInner } from './TariffsTableRenderCell.js';
|
|
4
4
|
export const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
5
5
|
return (_jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
|
|
6
|
-
? cells.map(
|
|
7
|
-
rowIdx,
|
|
8
|
-
cellIdx,
|
|
9
|
-
setTableInner,
|
|
10
|
-
tableInner,
|
|
11
|
-
openTableInnerIdx,
|
|
12
|
-
setOpenTableInnerIdx,
|
|
13
|
-
}))
|
|
6
|
+
? cells.map((_, i) => (_jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
|
|
14
7
|
: null }));
|
|
15
8
|
});
|
|
16
9
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAe3D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EACC,KAAK,EACL,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,GACrB,EAAE,EAAE;IACH,OAAO,CACL,cAAK,SAAS,EAAC,gDAAgD,EAAC,IAAI,EAAC,MAAM,YACxE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAe3D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EACC,KAAK,EACL,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,GACrB,EAAE,EAAE;IACH,OAAO,CACL,cAAK,SAAS,EAAC,gDAAgD,EAAC,IAAI,EAAC,MAAM,YACxE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,KAAC,eAAe,IAEd,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,EACX,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,IARrC,MAAM,CAAC,CAAC,CAAC,CASd,CACH,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import { type DescriptionProps, type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type UniBlockContent, type UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import { type IconProps } from '../../model/Picture';
|
|
@@ -77,11 +76,16 @@ export declare type InnerTableBlockDef = TariffsTableInnerContent & {
|
|
|
77
76
|
/** @default Table */
|
|
78
77
|
tableCellType: 'Table';
|
|
79
78
|
};
|
|
79
|
+
/** @title Не выбрано * */
|
|
80
|
+
export declare type EmptyCellType = {
|
|
81
|
+
/** @default "" */
|
|
82
|
+
tableCellType: '';
|
|
83
|
+
};
|
|
80
84
|
/**
|
|
81
85
|
* @title Содержимое ячейки
|
|
82
|
-
* @default
|
|
86
|
+
* @default { "tableCellType": "" }
|
|
83
87
|
*/
|
|
84
|
-
export declare type CellDef =
|
|
88
|
+
export declare type CellDef = EmptyCellType | ImageCellDef | ButtonsCellDef | LabelDescriptionCellDef | ListBlockDef | InnerTableBlockDef;
|
|
85
89
|
/**
|
|
86
90
|
* @title Колонка
|
|
87
91
|
*/
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type TariffTableContentProps } from './TariffsTableCell';
|
|
3
2
|
import { type CellDef } from './TariffsTableContent';
|
|
4
3
|
interface TariffTableCellInnerProps extends TariffTableContentProps {
|
|
5
4
|
cellIdx: number;
|
|
6
5
|
rowIdx: number;
|
|
7
6
|
}
|
|
8
|
-
export
|
|
7
|
+
export interface RenderCellInnerProps extends TariffTableCellInnerProps {
|
|
8
|
+
cell: CellDef;
|
|
9
|
+
fieldIdx: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const RenderCellInner: import("@redneckz/uni-jsx").UNIComponent<RenderCellInnerProps, any, any>;
|
|
9
12
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
3
|
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
4
|
import { EmbeddableCellData } from './EmbeddableCellData.js';
|
|
4
|
-
export const
|
|
5
|
+
export const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
5
6
|
const [isVisible, setVisibility] = useState(true);
|
|
6
7
|
useEffect(() => {
|
|
7
8
|
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
@@ -13,17 +14,17 @@ export const renderCellInner = ({ rowIdx, cellIdx, setTableInner, tableInner, op
|
|
|
13
14
|
setOpenTableInnerIdx(cellIdx);
|
|
14
15
|
setTableInner(props);
|
|
15
16
|
};
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
17
|
+
return renderCell({
|
|
18
|
+
cell,
|
|
19
|
+
cellProps: {
|
|
20
|
+
rowIdx,
|
|
21
|
+
cellIdx,
|
|
22
|
+
fieldIdx,
|
|
23
|
+
displayTable,
|
|
24
|
+
isVisible,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
});
|
|
27
28
|
const renderCell = ({ cell, cellProps }) => {
|
|
28
29
|
if (!cell) {
|
|
29
30
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRenderCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRenderCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"TariffsTableRenderCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRenderCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AA2B1D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,CAAC,EACC,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,GACrB,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,KAAK,iBAAiB,IAAI,CAAC,UAAU,EAAE;YAChD,aAAa,CAAC,IAAI,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEpC,MAAM,YAAY,GAAG,CAAC,KAA+B,EAAE,EAAE;QACvD,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAC9B,aAAa,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;QAChB,IAAI;QACJ,SAAS,EAAE;YACT,MAAM;YACN,OAAO;YACP,QAAQ;YACR,YAAY;YACZ,SAAS;SACV;KACF,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAmB,EAAE,EAAE;IAC1D,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,kBAAkB,CAAC,EAAE;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO,KAAC,mBAAmB,OAAK,SAAS,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC"}
|
|
@@ -8,9 +8,9 @@ import { type VNode } from './VNode';
|
|
|
8
8
|
/**
|
|
9
9
|
* @title Внутренний отступ
|
|
10
10
|
* @default ""
|
|
11
|
-
* @enumNames ["По умолчанию", "Большой", "Средний", "Маленький", "Оч. маленький", "Нулевой"]
|
|
11
|
+
* @enumNames ["По умолчанию", "Оч. Большой", "Большой", "Средний", "Маленький", "Оч. маленький", "Нулевой"]
|
|
12
12
|
*/
|
|
13
|
-
export declare type UniBlockPadding = '' | 'p-3xl' | 'p-xl' | 'p-m' | 'p-xs' | 'p-0';
|
|
13
|
+
export declare type UniBlockPadding = '' | 'p-6xl' | 'p-3xl' | 'p-xl' | 'p-m' | 'p-xs' | 'p-0';
|
|
14
14
|
export interface UniBlockContent {
|
|
15
15
|
version?: BlockVersion;
|
|
16
16
|
/**
|
|
@@ -2,6 +2,7 @@ import { type UniBlockProps } from '../../model/JSXBlock';
|
|
|
2
2
|
import { type VNode } from '../../model/VNode';
|
|
3
3
|
import { type BaseProductTileContent } from './BaseProductTileContent';
|
|
4
4
|
interface BaseProductTileProps extends UniBlockProps, BaseProductTileContent {
|
|
5
|
+
backwardButton?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const BaseProductTile: import("@redneckz/uni-jsx").UNIComponent<BaseProductTileProps, any, any>;
|
|
7
8
|
export declare const leftOrRightImage: (img: VNode, directionRight: boolean) => {
|
|
@@ -9,11 +9,11 @@ import { List } from '../List/List.js';
|
|
|
9
9
|
import { PriceList } from '../PriceList/PriceList.js';
|
|
10
10
|
import { RichText } from '../RichText/RichText.js';
|
|
11
11
|
import { Tags } from '../Tags/Tags.js';
|
|
12
|
-
export const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [], listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
|
|
12
|
+
export const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [], listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, }) => {
|
|
13
13
|
const img = image?.src ? _jsx(Img, { image: image }) : null;
|
|
14
14
|
const headline = renderHeadline({ title, description, headlineVersion, align });
|
|
15
15
|
const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
|
|
16
|
-
return (_jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: _jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (_jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? _jsx(RichText, { __html: __html }) : null, items?.length ? (_jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, priceList?.length ? _jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
16
|
+
return (_jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, children: _jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (_jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? _jsx(RichText, { __html: __html }) : null, items?.length ? (_jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, priceList?.length ? _jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
17
17
|
});
|
|
18
18
|
export const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
19
19
|
const renderTags = (tags) => (tags?.length ? _jsx(Tags, { tags: tags }) : null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAI9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAI9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAQpC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,KAAK,EACL,WAAW,EACX,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,WAAW,EACnB,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,EAAE,EACd,YAAY,EACZ,IAAI,GAAG,EAAE,EACT,OAAO,EACP,KAAK,EACL,YAAY,EAAE,EACZ,UAAU,GAAG,QAAQ,EACrB,cAAc,GAAG,IAAI,EACrB,oBAAoB,EACpB,gBAAgB,GAAG,KAAK,GACzB,GAAG,EAAE,EACN,cAAc,EACd,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CA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,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACR,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,SAAS,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9D,UAAU,CAAC,IAAI,CAAC,IACb,GACG,CACZ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAU,EAAE,cAAuB,EAAE,EAAE,CACtE,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AASpF,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAkB,EAAE,EAAE,CACxF,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CACrB,KAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,IAAI,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -10,6 +10,7 @@ interface BaseTileProps extends UniBlockProps {
|
|
|
10
10
|
buttons?: VNode;
|
|
11
11
|
isImageAlwaysOnRight?: boolean;
|
|
12
12
|
isImageSecondary?: boolean;
|
|
13
|
+
backwardButton?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare const BaseTile: import("@redneckz/uni-jsx").UNIComponent<BaseTileProps, any, any>;
|
|
15
16
|
export {};
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { renderBackwardButton } from '../../components/ProductBlock/renderBackwardButton.js';
|
|
5
|
+
import { useRouter } from '../../hooks/useRouter.js';
|
|
3
6
|
import { style } from '../../utils/style.js';
|
|
4
7
|
const imageAlignmentMap = {
|
|
5
8
|
start: '@xl:self-start',
|
|
6
9
|
center: '@xl:self-center',
|
|
7
10
|
end: '@xl:self-end',
|
|
8
11
|
};
|
|
9
|
-
export const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
export const BaseTile = JSX(({ className, version = 'primary', defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, backwardButton, children, }) => {
|
|
13
|
+
const router = useRouter();
|
|
14
|
+
const handleClick = useCallback((ev) => {
|
|
15
|
+
ev?.preventDefault();
|
|
16
|
+
router.back();
|
|
17
|
+
}, []);
|
|
18
|
+
return (_jsxs("div", { className: getStyle(padding, defaultPadding, className), children: [backwardButton ? renderBackwardButton(version, handleClick) : null, title ? _jsx("div", { className: "relative", children: title }) : null, _jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl', leftImage ? 'self-start' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), _jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [_jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
|
|
19
|
+
className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
|
|
20
|
+
imageAlign,
|
|
21
|
+
}), renderButtons(buttons)] })] })] }));
|
|
22
|
+
});
|
|
23
|
+
const getStyle = (padding = '', defaultPadding = '', className = '') => style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className);
|
|
13
24
|
const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
|
|
14
|
-
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? '
|
|
25
|
+
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'col-start-2 self-center' : '';
|
|
15
26
|
const renderButtons = (buttons) => buttons ? _jsx("div", { className: "self-end", children: buttons }) : null;
|
|
16
27
|
const renderImageContainer = (image, { className, imageAlign }) => image ? (_jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
17
28
|
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @xl:block' : '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseTile/BaseTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseTile/BaseTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIlD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAe1C,MAAM,iBAAiB,GAA0B;IAC/C,KAAK,EAAE,gBAAgB;IACv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CAAC,gBAAyB,EAAE,EAAE,CACxD,gBAAgB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC"}
|
package/mobile/src/common.css
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import { type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
4
3
|
import { type IconProps } from '../../model/Picture';
|
|
@@ -25,11 +24,17 @@ export type ListBenefitDef = ListContent & {
|
|
|
25
24
|
benefitType?: 'list';
|
|
26
25
|
};
|
|
27
26
|
|
|
27
|
+
/** @title Не выбрано * */
|
|
28
|
+
export type EmptyDescription = {
|
|
29
|
+
/** @default "" */
|
|
30
|
+
benefitType: '';
|
|
31
|
+
};
|
|
32
|
+
|
|
28
33
|
/**
|
|
29
34
|
* @title Вид контента
|
|
30
|
-
* @default
|
|
35
|
+
* @default { "benefitType": "" }
|
|
31
36
|
*/
|
|
32
|
-
export type DescriptionDef =
|
|
37
|
+
export type DescriptionDef = EmptyDescription | TextBenefitDef | ListBenefitDef;
|
|
33
38
|
|
|
34
39
|
/**
|
|
35
40
|
* @title Преимущество
|
|
@@ -29,7 +29,6 @@ import { OfficesAtmsMap } from './OfficesAtmsMap/OfficesAtmsMap';
|
|
|
29
29
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
30
30
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
31
31
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
32
|
-
import { ProductTile } from './ProductTile/ProductTile';
|
|
33
32
|
import { RepresentativeOfficeInfo } from './RepresentativeOfficeInfo/RepresentativeOfficeInfo';
|
|
34
33
|
import { RichTextBlock } from './RichTextBlock/RichTextBlock';
|
|
35
34
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
@@ -39,7 +38,6 @@ import { StickyBottomMenu } from './StickyBottomMenu/StickyBottomMenu';
|
|
|
39
38
|
import { Tabs } from './Tabs/Tabs';
|
|
40
39
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
41
40
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
42
|
-
import { Tile } from './Tile/Tile';
|
|
43
41
|
import { VerticalLayout } from './VerticalLayout/VerticalLayout';
|
|
44
42
|
|
|
45
43
|
export const Blocks: BlocksRegistry = {
|
|
@@ -73,7 +71,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
73
71
|
Placeholder,
|
|
74
72
|
ProductBlock,
|
|
75
73
|
ProductGallery,
|
|
76
|
-
ProductTile,
|
|
77
74
|
RepresentativeOfficeInfo,
|
|
78
75
|
RichTextBlock,
|
|
79
76
|
RollupItem,
|
|
@@ -83,6 +80,5 @@ export const Blocks: BlocksRegistry = {
|
|
|
83
80
|
Tabs,
|
|
84
81
|
TariffsTable,
|
|
85
82
|
TextBlock,
|
|
86
|
-
Tile,
|
|
87
83
|
VerticalLayout,
|
|
88
84
|
};
|
|
@@ -27,7 +27,7 @@ export const Bonus = JSX<BonusProps>(
|
|
|
27
27
|
? bonusItems.map((_, i) => (
|
|
28
28
|
<div
|
|
29
29
|
key={String(i)}
|
|
30
|
-
className="w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow
|
|
30
|
+
className="w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow p-xl sm:p-m border border-gray"
|
|
31
31
|
>
|
|
32
32
|
<div className="grow">
|
|
33
33
|
<Headline
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import { type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
4
3
|
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
@@ -25,11 +24,17 @@ export type BonusCountDef = {
|
|
|
25
24
|
bonusName?: string;
|
|
26
25
|
};
|
|
27
26
|
|
|
27
|
+
/** @title Не выбрано * */
|
|
28
|
+
export type EmptyBonusItemContent = {
|
|
29
|
+
/** @default "" */
|
|
30
|
+
bonusType: '';
|
|
31
|
+
};
|
|
32
|
+
|
|
28
33
|
/**
|
|
29
34
|
* @title Вид контента
|
|
30
|
-
* @default
|
|
35
|
+
* @default { "bonusType": "" }
|
|
31
36
|
*/
|
|
32
|
-
export type BonusItemContentDef =
|
|
37
|
+
export type BonusItemContentDef = EmptyBonusItemContent | BonusImageDef | BonusCountDef;
|
|
33
38
|
|
|
34
39
|
/**
|
|
35
40
|
* @title Плитка
|
|
@@ -34,7 +34,7 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
|
|
|
34
34
|
|
|
35
35
|
const calculatorParams = useBusinessDepositCalculatorParams(
|
|
36
36
|
userInputParams,
|
|
37
|
-
rateParams?.sourceBookDir,
|
|
37
|
+
rateParams?.rateType && rateParams.sourceBookDir,
|
|
38
38
|
);
|
|
39
39
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
40
40
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Align } from '../../model/Align';
|
|
2
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
3
2
|
import { type Footnote } from '../../model/Footnote';
|
|
4
3
|
import { type HeadlineCommonProps, type TitleProps } from '../../model/HeadlineType';
|
|
5
4
|
import { type IconProps } from '../../model/Picture';
|
|
@@ -26,11 +25,17 @@ export type IPRateDef = RateParams & {
|
|
|
26
25
|
rateType: 'IP';
|
|
27
26
|
};
|
|
28
27
|
|
|
28
|
+
/** @title Не выбрано * */
|
|
29
|
+
export type EmptyRateParams = {
|
|
30
|
+
/** @default "" */
|
|
31
|
+
rateType: '';
|
|
32
|
+
};
|
|
33
|
+
|
|
29
34
|
/**
|
|
30
35
|
* @title Назначение ставки
|
|
31
|
-
* @default
|
|
36
|
+
* @default {"rateType": ""}
|
|
32
37
|
*/
|
|
33
|
-
export type RateParamsDef =
|
|
38
|
+
export type RateParamsDef = EmptyRateParams | ULRateDef | IPRateDef;
|
|
34
39
|
|
|
35
40
|
export type CommonCalculatorProps = Footnote &
|
|
36
41
|
ButtonsSectionContent & {
|
|
@@ -153,12 +158,18 @@ export type RefinancingCalculatorParamsDef = TitleProps &
|
|
|
153
158
|
calcType: 'RefinancingCalculatorForm';
|
|
154
159
|
};
|
|
155
160
|
|
|
161
|
+
/** @title Не выбрано * */
|
|
162
|
+
export type EmptyCalculatorBlock = {
|
|
163
|
+
/** @default "" */
|
|
164
|
+
calcType: '';
|
|
165
|
+
};
|
|
166
|
+
|
|
156
167
|
/**
|
|
157
168
|
* @title Настройки калькулятора
|
|
158
|
-
* @default
|
|
169
|
+
* @default { "calcType": "" }
|
|
159
170
|
*/
|
|
160
171
|
export type CalculatorBlockDef =
|
|
161
|
-
|
|
|
172
|
+
| EmptyCalculatorBlock
|
|
162
173
|
| CreditCalculatorParamsDef
|
|
163
174
|
| DepositCalculatorParamsDef
|
|
164
175
|
| BusinessDepositCalculatorParamsDef
|
|
@@ -61,6 +61,9 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
61
61
|
|
|
62
62
|
const renderLinkDocItem =
|
|
63
63
|
(router: Router, icon: Picture) => (docBlockDef: DocBlockDef, i: number) => {
|
|
64
|
+
if (docBlockDef?.docType === '') {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
64
67
|
const href =
|
|
65
68
|
docBlockDef?.docType === 'Attachment'
|
|
66
69
|
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Attachment } from '../../model/Attachment';
|
|
2
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
3
2
|
import { type AlignProps, type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
3
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
5
4
|
import { type LinkProps, type Target } from '../../model/LinkProps';
|
|
@@ -32,25 +31,31 @@ export interface AttachmentDoc {
|
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
33
|
* @title Ссылка на документ
|
|
35
|
-
* @default {"docType": "Link"}
|
|
36
34
|
*/
|
|
37
35
|
export type LinkDocDef = LinkDoc & {
|
|
36
|
+
/** @default "Link" */
|
|
38
37
|
docType: 'Link';
|
|
39
38
|
};
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
41
|
* @title Файл
|
|
43
|
-
* @default {"docType": "Attachment"}
|
|
44
42
|
*/
|
|
45
43
|
export type AttachmentDocDef = AttachmentDoc & {
|
|
44
|
+
/** @default "Attachment" */
|
|
46
45
|
docType: 'Attachment';
|
|
47
46
|
};
|
|
48
47
|
|
|
48
|
+
/** @title Не выбрано * */
|
|
49
|
+
export type EmptyDocType = {
|
|
50
|
+
/** @default "" */
|
|
51
|
+
docType: '';
|
|
52
|
+
};
|
|
53
|
+
|
|
49
54
|
/**
|
|
50
55
|
* @title Документ
|
|
51
|
-
* @default
|
|
56
|
+
* @default {"docType": ""}
|
|
52
57
|
*/
|
|
53
|
-
export type DocBlockDef =
|
|
58
|
+
export type DocBlockDef = EmptyDocType | LinkDocDef | AttachmentDocDef;
|
|
54
59
|
|
|
55
60
|
/**
|
|
56
61
|
* @title Список документов
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type EmptyOption } from '../../model/EmptyOptionType';
|
|
2
1
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
2
|
import { type Picture } from '../../model/Picture';
|
|
4
3
|
|
|
@@ -31,11 +30,17 @@ export type AtmsDef = {
|
|
|
31
30
|
list?: ItemList[];
|
|
32
31
|
};
|
|
33
32
|
|
|
33
|
+
/** @title Не выбрано * */
|
|
34
|
+
export type EmptyOfficesAtmsBlock = {
|
|
35
|
+
/** @default "" */
|
|
36
|
+
dataType: '';
|
|
37
|
+
};
|
|
38
|
+
|
|
34
39
|
/**
|
|
35
40
|
* @title Данные
|
|
36
|
-
* @default
|
|
41
|
+
* @default { "dataType": "" }
|
|
37
42
|
*/
|
|
38
|
-
export type OfficesAtmsBlockDef =
|
|
43
|
+
export type OfficesAtmsBlockDef = EmptyOfficesAtmsBlock | OfficesDef | AtmsDef;
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
46
|
* @title Блок офисов и банкоматов
|