@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
|
*/
|
|
@@ -4,5 +4,9 @@ interface TariffTableCellInnerProps extends TariffTableContentProps {
|
|
|
4
4
|
cellIdx: number;
|
|
5
5
|
rowIdx: number;
|
|
6
6
|
}
|
|
7
|
-
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>;
|
|
8
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"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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"}
|
|
@@ -1662,7 +1662,7 @@
|
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
1664
|
const Bonus = JSX(({ className = '', title, description, bonusItems = [], align = AlignStyles, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M", align: align }), jsx("div", { className: "flex flex-wrap gap-3xl gap-x-m w-full", children: bonusItems.length > 0
|
|
1665
|
-
? bonusItems.map((_, i) => (jsxs("div", { className: "w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow
|
|
1665
|
+
? bonusItems.map((_, i) => (jsxs("div", { className: "w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow p-xl sm:p-m border border-gray", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
|
|
1666
1666
|
? renderBonusItemContent(_.bonusItemContent)
|
|
1667
1667
|
: null] })] }, String(i))))
|
|
1668
1668
|
: null })] }) })));
|
|
@@ -2206,7 +2206,7 @@
|
|
|
2206
2206
|
isPartialWithdrawal: false,
|
|
2207
2207
|
isMonthlyInterestPayment: false,
|
|
2208
2208
|
});
|
|
2209
|
-
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
|
|
2209
|
+
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.rateType && rateParams.sourceBookDir);
|
|
2210
2210
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
2211
2211
|
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({
|
|
2212
2212
|
title: 'Сумма, ₽',
|
|
@@ -3083,8 +3083,8 @@
|
|
|
3083
3083
|
const HeaderCell = JSX(({ icon, image, title, subtitle, isFillGradient }) => (jsxs("div", { className: "space-y-4", role: "columnheader", children: [icon ? (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })) : null, image?.src && (jsx("div", { children: jsx(Img, { image: image }) })), title ? (jsx(Heading, { headingType: "h4", className: headingStyle(isFillGradient), title: title })) : null, subtitle ? jsx("div", { className: subtitleStyle(isFillGradient), children: subtitle }) : null] })));
|
|
3084
3084
|
|
|
3085
3085
|
const cellWrapperStyle = `box-border flex flex-col`;
|
|
3086
|
-
const TableCell = JSX(({ cell, rowHeader, isFillGradient = false }) => (jsx("div", { className: cellWrapperStyle, role: "cell", children: jsx("div", { className: style('h-full', dividerStyle$1), children: cell.map(renderCellInner
|
|
3087
|
-
const renderCellInner
|
|
3086
|
+
const TableCell = JSX(({ cell, rowHeader, isFillGradient = false }) => (jsx("div", { className: cellWrapperStyle, role: "cell", children: jsx("div", { className: style('h-full', dividerStyle$1), children: cell.map(renderCellInner(isFillGradient, rowHeader)) }) })));
|
|
3087
|
+
const renderCellInner = (isFillGradient, rowHeader) => ({ label, description }, i) => (jsxs("div", { className: "flex justify-between text-s py-s", children: [jsx("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), jsxs("div", { className: "basis-1/2", children: [label ? (jsx("div", { className: style('text-right', isFillGradient ? 'text-white' : ''), children: label })) : null, description ? (jsx("div", { className: style('text-right', isFillGradient ? 'text-white/80' : 'text-secondary-text'), children: description })) : null] })] }, String(i)));
|
|
3088
3088
|
|
|
3089
3089
|
const TableColumn = JSX(({ header, columnData, visibleRowLength = 0, isFillGradient, showRow, onToggleColumn }) => {
|
|
3090
3090
|
const columnDataView = columnData?.slice(0, showRow ? columnData.length : visibleRowLength);
|
|
@@ -3664,6 +3664,9 @@
|
|
|
3664
3664
|
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] }));
|
|
3665
3665
|
});
|
|
3666
3666
|
const renderLinkDocItem = (router, icon) => (docBlockDef, i) => {
|
|
3667
|
+
if (docBlockDef?.docType === '') {
|
|
3668
|
+
return null;
|
|
3669
|
+
}
|
|
3667
3670
|
const href = docBlockDef?.docType === 'Attachment'
|
|
3668
3671
|
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
3669
3672
|
: docBlockDef?.href;
|
|
@@ -5050,7 +5053,7 @@
|
|
|
5050
5053
|
Table: renderInnerTableCellData,
|
|
5051
5054
|
};
|
|
5052
5055
|
|
|
5053
|
-
const
|
|
5056
|
+
const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
5054
5057
|
const [isVisible, setVisibility] = useState(true);
|
|
5055
5058
|
useEffect(() => {
|
|
5056
5059
|
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
@@ -5062,17 +5065,17 @@
|
|
|
5062
5065
|
setOpenTableInnerIdx(cellIdx);
|
|
5063
5066
|
setTableInner(props);
|
|
5064
5067
|
};
|
|
5065
|
-
return
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
};
|
|
5068
|
+
return renderCell({
|
|
5069
|
+
cell,
|
|
5070
|
+
cellProps: {
|
|
5071
|
+
rowIdx,
|
|
5072
|
+
cellIdx,
|
|
5073
|
+
fieldIdx,
|
|
5074
|
+
displayTable,
|
|
5075
|
+
isVisible,
|
|
5076
|
+
},
|
|
5077
|
+
});
|
|
5078
|
+
});
|
|
5076
5079
|
const renderCell = ({ cell, cellProps }) => {
|
|
5077
5080
|
if (!cell) {
|
|
5078
5081
|
return null;
|
|
@@ -5087,14 +5090,7 @@
|
|
|
5087
5090
|
|
|
5088
5091
|
const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
5089
5092
|
return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
|
|
5090
|
-
? cells.map(
|
|
5091
|
-
rowIdx,
|
|
5092
|
-
cellIdx,
|
|
5093
|
-
setTableInner,
|
|
5094
|
-
tableInner,
|
|
5095
|
-
openTableInnerIdx,
|
|
5096
|
-
setOpenTableInnerIdx,
|
|
5097
|
-
}))
|
|
5093
|
+
? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
|
|
5098
5094
|
: null }));
|
|
5099
5095
|
});
|
|
5100
5096
|
|
|
@@ -5431,7 +5427,7 @@
|
|
|
5431
5427
|
|
|
5432
5428
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5433
5429
|
|
|
5434
|
-
const packageVersion = "0.14.
|
|
5430
|
+
const packageVersion = "0.14.50";
|
|
5435
5431
|
|
|
5436
5432
|
exports.Blocks = Blocks;
|
|
5437
5433
|
exports.ContentPage = ContentPage;
|