@redneckz/wildless-cms-uni-blocks 0.14.50 → 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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +21 -25
- 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/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- 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/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/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- 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/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/mobile/bundle/bundle.umd.js +21 -25
- 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/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- 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/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/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- 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/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/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- 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/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/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- 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/LinkDocs/LinkDocs.tsx +3 -0
- package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- 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/model/EmptyOptionType.ts +1 -3
|
@@ -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';
|
|
@@ -22,11 +21,16 @@ export declare type BonusCountDef = {
|
|
|
22
21
|
/** @title Наименование */
|
|
23
22
|
bonusName?: string;
|
|
24
23
|
};
|
|
24
|
+
/** @title Не выбрано * */
|
|
25
|
+
export declare type EmptyBonusItemContent = {
|
|
26
|
+
/** @default "" */
|
|
27
|
+
bonusType: '';
|
|
28
|
+
};
|
|
25
29
|
/**
|
|
26
30
|
* @title Вид контента
|
|
27
|
-
* @default
|
|
31
|
+
* @default { "bonusType": "" }
|
|
28
32
|
*/
|
|
29
|
-
export declare type BonusItemContentDef =
|
|
33
|
+
export declare type BonusItemContentDef = EmptyBonusItemContent | BonusImageDef | BonusCountDef;
|
|
30
34
|
/**
|
|
31
35
|
* @title Плитка
|
|
32
36
|
*/
|
|
@@ -21,7 +21,7 @@ export const BusinessDepositCalculatorForm = JSX(({ className = '', rateParams,
|
|
|
21
21
|
isPartialWithdrawal: false,
|
|
22
22
|
isMonthlyInterestPayment: false,
|
|
23
23
|
});
|
|
24
|
-
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
|
|
24
|
+
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.rateType && rateParams.sourceBookDir);
|
|
25
25
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
26
26
|
return (_jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [_jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
|
|
27
27
|
title: 'Сумма, ₽',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessDepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BusinessDepositCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAA4B,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACL,kCAAkC,GAGnC,MAAM,sCAAsC,CAAC;AAM9C,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAC9C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACxF,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;QAC3C,UAAU,EAAE,oBAAoB;QAChC,SAAS,EAAE,qBAAqB;QAChC,aAAa,EAAE,KAAK;QACpB,mBAAmB,EAAE,KAAK;QAC1B,wBAAwB,EAAE,KAAK;KAChC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,kCAAkC,CACzD,eAAe,EACf,UAAU,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"BusinessDepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BusinessDepositCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAA4B,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACL,kCAAkC,GAGnC,MAAM,sCAAsC,CAAC;AAM9C,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAC9C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACxF,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;QAC3C,UAAU,EAAE,oBAAoB;QAChC,SAAS,EAAE,qBAAqB;QA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ptyOptionType';
|
|
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';
|
|
@@ -22,11 +21,16 @@ export declare type ULRateDef = RateParams & {
|
|
|
22
21
|
export declare type IPRateDef = RateParams & {
|
|
23
22
|
rateType: 'IP';
|
|
24
23
|
};
|
|
24
|
+
/** @title Не выбрано * */
|
|
25
|
+
export declare type EmptyRateParams = {
|
|
26
|
+
/** @default "" */
|
|
27
|
+
rateType: '';
|
|
28
|
+
};
|
|
25
29
|
/**
|
|
26
30
|
* @title Назначение ставки
|
|
27
|
-
* @default
|
|
31
|
+
* @default {"rateType": ""}
|
|
28
32
|
*/
|
|
29
|
-
export declare type RateParamsDef =
|
|
33
|
+
export declare type RateParamsDef = EmptyRateParams | ULRateDef | IPRateDef;
|
|
30
34
|
export declare type CommonCalculatorProps = Footnote & ButtonsSectionContent & {
|
|
31
35
|
/** @title Адрес справочника */
|
|
32
36
|
sourceBookDir?: string;
|
|
@@ -128,11 +132,16 @@ export declare type BonusCalculatorParamsDef = TitleProps & CommonCalculatorProp
|
|
|
128
132
|
export declare type RefinancingCalculatorParamsDef = TitleProps & RefinancingCalculatorProps & {
|
|
129
133
|
calcType: 'RefinancingCalculatorForm';
|
|
130
134
|
};
|
|
135
|
+
/** @title Не выбрано * */
|
|
136
|
+
export declare type EmptyCalculatorBlock = {
|
|
137
|
+
/** @default "" */
|
|
138
|
+
calcType: '';
|
|
139
|
+
};
|
|
131
140
|
/**
|
|
132
141
|
* @title Настройки калькулятора
|
|
133
|
-
* @default
|
|
142
|
+
* @default { "calcType": "" }
|
|
134
143
|
*/
|
|
135
|
-
export declare type CalculatorBlockDef =
|
|
144
|
+
export declare type CalculatorBlockDef = EmptyCalculatorBlock | CreditCalculatorParamsDef | DepositCalculatorParamsDef | BusinessDepositCalculatorParamsDef | BonusCalculatorParamsDef | RefinancingCalculatorParamsDef;
|
|
136
145
|
/**
|
|
137
146
|
* @title Кнопка навигации
|
|
138
147
|
*/
|
|
@@ -18,6 +18,9 @@ export const LinkDocs = JSX(({ className = '', title, description, align = 'text
|
|
|
18
18
|
return (_jsxs(BlockWrapper, { className: style('space-y-lg', className), defaultPadding: "p-6xl", ...rest, children: [_jsx(Headline, { title: title, description: description, align: align, headlineVersion: "M", as: "h2", isEmbedded: true }), documents?.length ? (_jsx("div", { className: style('grid gap-xl', columnsMode === 'double' ? '@md:grid-cols-2' : 'grid-cols-1', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map(renderLinkDocItem(router, icon)) })) : null] }));
|
|
19
19
|
});
|
|
20
20
|
const renderLinkDocItem = (router, icon) => (docBlockDef, i) => {
|
|
21
|
+
if (docBlockDef?.docType === '') {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
21
24
|
const href = docBlockDef?.docType === 'Attachment'
|
|
22
25
|
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
23
26
|
: docBlockDef?.href;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAe,MAAM,uBAAuB,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,aAAa,E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
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,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"}
|
|
@@ -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 Преимущество
|
|
@@ -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 Блок офисов и банкоматов
|
|
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
4
4
|
import { type CellDef } from './TariffsTableContent';
|
|
5
|
-
import {
|
|
5
|
+
import { RenderCellInner } from './TariffsTableRenderCell';
|
|
6
6
|
|
|
7
7
|
export interface TariffTableContentProps {
|
|
8
8
|
openTableInnerIdx?: number;
|
|
@@ -30,16 +30,19 @@ export const TariffsTableCell = JSX<TariffsTableCellProps>(
|
|
|
30
30
|
return (
|
|
31
31
|
<div className="w-80 flex-grow flex flex-col gap-m @4xl:gap-lg" role="cell">
|
|
32
32
|
{cells?.length
|
|
33
|
-
? cells.map(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
? cells.map((_, i) => (
|
|
34
|
+
<RenderCellInner
|
|
35
|
+
key={String(i)}
|
|
36
|
+
cell={_}
|
|
37
|
+
fieldIdx={i}
|
|
38
|
+
rowIdx={rowIdx}
|
|
39
|
+
cellIdx={cellIdx}
|
|
40
|
+
setTableInner={setTableInner}
|
|
41
|
+
tableInner={tableInner}
|
|
42
|
+
openTableInnerIdx={openTableInnerIdx}
|
|
43
|
+
setOpenTableInnerIdx={setOpenTableInnerIdx}
|
|
44
|
+
/>
|
|
45
|
+
))
|
|
43
46
|
: null}
|
|
44
47
|
</div>
|
|
45
48
|
);
|
|
@@ -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';
|
|
@@ -89,12 +88,18 @@ export type InnerTableBlockDef = TariffsTableInnerContent & {
|
|
|
89
88
|
tableCellType: 'Table';
|
|
90
89
|
};
|
|
91
90
|
|
|
91
|
+
/** @title Не выбрано * */
|
|
92
|
+
export type EmptyCellType = {
|
|
93
|
+
/** @default "" */
|
|
94
|
+
tableCellType: '';
|
|
95
|
+
};
|
|
96
|
+
|
|
92
97
|
/**
|
|
93
98
|
* @title Содержимое ячейки
|
|
94
|
-
* @default
|
|
99
|
+
* @default { "tableCellType": "" }
|
|
95
100
|
*/
|
|
96
101
|
export type CellDef =
|
|
97
|
-
|
|
|
102
|
+
| EmptyCellType
|
|
98
103
|
| ImageCellDef
|
|
99
104
|
| ButtonsCellDef
|
|
100
105
|
| LabelDescriptionCellDef
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
1
2
|
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
3
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
3
4
|
import { EmbeddableCellData } from './EmbeddableCellData';
|
|
@@ -22,16 +23,22 @@ interface CellProps {
|
|
|
22
23
|
displayTable: (props: TariffsTableInnerContent) => void;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
export
|
|
26
|
+
export interface RenderCellInnerProps extends TariffTableCellInnerProps {
|
|
27
|
+
cell: CellDef;
|
|
28
|
+
fieldIdx: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const RenderCellInner = JSX<RenderCellInnerProps>(
|
|
26
32
|
({
|
|
33
|
+
cell,
|
|
34
|
+
fieldIdx,
|
|
27
35
|
rowIdx,
|
|
28
36
|
cellIdx,
|
|
29
37
|
setTableInner,
|
|
30
38
|
tableInner,
|
|
31
39
|
openTableInnerIdx,
|
|
32
40
|
setOpenTableInnerIdx,
|
|
33
|
-
}
|
|
34
|
-
(cell: CellDef, i: number) => {
|
|
41
|
+
}) => {
|
|
35
42
|
const [isVisible, setVisibility] = useState(true);
|
|
36
43
|
|
|
37
44
|
useEffect(() => {
|
|
@@ -46,21 +53,18 @@ export const renderCellInner =
|
|
|
46
53
|
setTableInner(props);
|
|
47
54
|
};
|
|
48
55
|
|
|
49
|
-
return (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</div>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
56
|
+
return renderCell({
|
|
57
|
+
cell,
|
|
58
|
+
cellProps: {
|
|
59
|
+
rowIdx,
|
|
60
|
+
cellIdx,
|
|
61
|
+
fieldIdx,
|
|
62
|
+
displayTable,
|
|
63
|
+
isVisible,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
);
|
|
64
68
|
|
|
65
69
|
const renderCell = ({ cell, cellProps }: RenderCellProps) => {
|
|
66
70
|
if (!cell) {
|