@redneckz/wildless-cms-uni-blocks 0.14.50 → 0.14.52

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.
Files changed (140) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +23 -27
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  5. package/bundle/components/Bonus/BonusContent.d.ts +7 -3
  6. package/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
  7. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  8. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  9. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  10. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  11. package/bundle/model/EmptyOptionType.d.ts +1 -3
  12. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  13. package/dist/components/Bonus/Bonus.js +1 -1
  14. package/dist/components/Bonus/Bonus.js.map +1 -1
  15. package/dist/components/Bonus/BonusContent.d.ts +7 -3
  16. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  17. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  18. package/dist/components/Calculator/CalculatorContent.d.ts +14 -5
  19. package/dist/components/LinkDocs/LinkDocs.js +3 -0
  20. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  21. package/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  22. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  23. package/dist/components/TariffsTable/TariffsTableCell.js +1 -8
  24. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  25. package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  26. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  27. package/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
  28. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  29. package/dist/model/EmptyOptionType.d.ts +1 -3
  30. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  31. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  32. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  33. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  34. package/lib/common.css +1 -1
  35. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  36. package/lib/components/Bonus/Bonus.js +1 -1
  37. package/lib/components/Bonus/Bonus.js.map +1 -1
  38. package/lib/components/Bonus/BonusContent.d.ts +7 -3
  39. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  40. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  41. package/lib/components/Calculator/CalculatorContent.d.ts +14 -5
  42. package/lib/components/LinkDocs/LinkDocs.js +3 -0
  43. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  44. package/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  45. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  46. package/lib/components/TariffsTable/TariffsTableCell.js +2 -9
  47. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  48. package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  49. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -1
  50. package/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
  51. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  52. package/lib/model/EmptyOptionType.d.ts +1 -3
  53. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  54. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  55. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  56. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  57. package/mobile/bundle/bundle.umd.js +23 -27
  58. package/mobile/bundle/bundle.umd.min.js +1 -1
  59. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  60. package/mobile/bundle/components/Bonus/BonusContent.d.ts +7 -3
  61. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
  62. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  63. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  64. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  65. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  66. package/mobile/bundle/model/EmptyOptionType.d.ts +1 -3
  67. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  68. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  69. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  70. package/mobile/dist/components/Bonus/BonusContent.d.ts +7 -3
  71. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  72. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  73. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -5
  74. package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -0
  75. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  76. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  77. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  78. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -8
  79. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  80. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  81. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  82. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
  83. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  84. package/mobile/dist/model/EmptyOptionType.d.ts +1 -3
  85. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  86. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  87. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  88. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  89. package/mobile/lib/common.css +1 -1
  90. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  91. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  92. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  93. package/mobile/lib/components/Bonus/BonusContent.d.ts +7 -3
  94. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  95. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  96. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -5
  97. package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -0
  98. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  99. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  100. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  101. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -9
  102. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  103. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  104. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  105. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
  106. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  107. package/mobile/lib/model/EmptyOptionType.d.ts +1 -3
  108. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  109. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  110. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  111. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  112. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
  113. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  114. package/mobile/src/components/Bonus/BonusContent.ts +8 -3
  115. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
  116. package/mobile/src/components/Calculator/CalculatorContent.ts +16 -5
  117. package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -0
  118. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +10 -5
  119. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
  120. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
  121. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +8 -3
  122. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
  123. package/mobile/src/model/EmptyOptionType.ts +1 -3
  124. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  125. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  126. package/package.json +1 -1
  127. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
  128. package/src/components/Bonus/Bonus.tsx +1 -1
  129. package/src/components/Bonus/BonusContent.ts +8 -3
  130. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
  131. package/src/components/Calculator/CalculatorContent.ts +16 -5
  132. package/src/components/LinkDocs/LinkDocs.tsx +3 -0
  133. package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
  134. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
  135. package/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
  136. package/src/components/TariffsTable/TariffsTableContent.ts +8 -3
  137. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
  138. package/src/model/EmptyOptionType.ts +1 -3
  139. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  140. package/src/ui-kit/Button/renderButtonsSection.ts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AG,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC,EAC9E,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,KACN,IAAI,IANH,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAO/B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,cAAc,GAAG,CAAC,IAAyB,EAAE,OAAO,GAAG,WAAW,EAAE,EAAE;IAC1E,MAAM,kBAAkB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAEvE,OAAO,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE,CACzC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACb,KAAC,GAAG,IACF,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,cAAc,CAAC,EAClD,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,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 null
35
+ * @default { "benefitType": "" }
31
36
  */
32
- export type DescriptionDef = EmptyOption | TextBenefitDef | ListBenefitDef;
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 w-full p-xl sm:p-m border border-gray"
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 null
35
+ * @default { "bonusType": "" }
31
36
  */
32
- export type BonusItemContentDef = EmptyOption | BonusImageDef | BonusCountDef;
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 null
36
+ * @default {"rateType": ""}
32
37
  */
33
- export type RateParamsDef = EmptyOption | ULRateDef | IPRateDef;
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 null
169
+ * @default { "calcType": "" }
159
170
  */
160
171
  export type CalculatorBlockDef =
161
- | EmptyOption
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 null
56
+ * @default {"docType": ""}
52
57
  */
53
- export type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
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 null
41
+ * @default { "dataType": "" }
37
42
  */
38
- export type OfficesAtmsBlockDef = EmptyOption | OfficesDef | AtmsDef;
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 { renderCellInner } from './TariffsTableRenderCell';
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
- renderCellInner({
35
- rowIdx,
36
- cellIdx,
37
- setTableInner,
38
- tableInner,
39
- openTableInnerIdx,
40
- setOpenTableInnerIdx,
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 null
99
+ * @default { "tableCellType": "" }
95
100
  */
96
101
  export type CellDef =
97
- | EmptyOption
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 const renderCellInner =
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
- }: TariffTableCellInnerProps) =>
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
- <div key={String(i)}>
51
- {renderCell({
52
- cell,
53
- cellProps: {
54
- rowIdx,
55
- cellIdx,
56
- fieldIdx: i,
57
- displayTable,
58
- isVisible,
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) {
@@ -1,4 +1,2 @@
1
- /**
2
- * @title Не выбрано
3
- */
1
+ /** @title Не выбрано * */
4
2
  export type EmptyOption = null;
@@ -55,8 +55,8 @@ export const BaseTile = JSX<BaseTileProps>(
55
55
  {title ? <div className="relative">{title}</div> : null}
56
56
  <div
57
57
  className={style(
58
- 'grow relative flex flex-col @xl:flex-row gap-3xl',
59
- leftImage ? 'self-start' : '',
58
+ 'grow relative flex flex-col @xl:flex-row gap-3xl w-full',
59
+ leftImage ? 'self-start @xl:w-auto' : '',
60
60
  )}
61
61
  >
62
62
  {renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' })}
@@ -39,7 +39,7 @@ const renderButton =
39
39
  return text || icon?.icon ? (
40
40
  <Button
41
41
  key={index ? String(index) : ''}
42
- className={style('basis-full lg:basis-auto', buttonClassName)}
42
+ className={style('basis-full @lg:basis-auto', buttonClassName)}
43
43
  appendLeft={renderButtonIcon({ ...icon, iconVersion })}
44
44
  appendRight={renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion })}
45
45
  version={version}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.50",
3
+ "version": "0.14.52",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -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 null
35
+ * @default { "benefitType": "" }
31
36
  */
32
- export type DescriptionDef = EmptyOption | TextBenefitDef | ListBenefitDef;
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 w-full p-xl sm:p-m border border-gray"
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 null
35
+ * @default { "bonusType": "" }
31
36
  */
32
- export type BonusItemContentDef = EmptyOption | BonusImageDef | BonusCountDef;
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 null
36
+ * @default {"rateType": ""}
32
37
  */
33
- export type RateParamsDef = EmptyOption | ULRateDef | IPRateDef;
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 null
169
+ * @default { "calcType": "" }
159
170
  */
160
171
  export type CalculatorBlockDef =
161
- | EmptyOption
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 null
56
+ * @default {"docType": ""}
52
57
  */
53
- export type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
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 null
41
+ * @default { "dataType": "" }
37
42
  */
38
- export type OfficesAtmsBlockDef = EmptyOption | OfficesDef | AtmsDef;
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 { renderCellInner } from './TariffsTableRenderCell';
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
- renderCellInner({
35
- rowIdx,
36
- cellIdx,
37
- setTableInner,
38
- tableInner,
39
- openTableInnerIdx,
40
- setOpenTableInnerIdx,
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 null
99
+ * @default { "tableCellType": "" }
95
100
  */
96
101
  export type CellDef =
97
- | EmptyOption
102
+ | EmptyCellType
98
103
  | ImageCellDef
99
104
  | ButtonsCellDef
100
105
  | LabelDescriptionCellDef