@redneckz/wildless-cms-uni-blocks 0.14.853 → 0.14.855

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 (409) hide show
  1. package/bin/migration-scripts/0.14.850.js +70 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +61 -109
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  6. package/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
  7. package/bundle/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  8. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  9. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  10. package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  11. package/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  12. package/bundle/components/TariffsTable/renderCell.d.ts +2 -0
  13. package/bundle/components/TariffsTable/renderHeader.d.ts +2 -0
  14. package/bundle/model/onClick.d.ts +3 -0
  15. package/bundle/model/onClose.d.ts +3 -0
  16. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  17. package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  18. package/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  19. package/dist/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  20. package/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
  21. package/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  22. package/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  23. package/dist/components/TariffsTable/TariffsTable.js +4 -11
  24. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  25. package/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  26. package/dist/components/TariffsTable/TariffsTableCell.js +14 -4
  27. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  28. package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  29. package/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  30. package/dist/components/TariffsTable/TariffsTableRow.js +6 -10
  31. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  32. package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  33. package/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
  34. package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  35. package/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  36. package/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
  37. package/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  38. package/dist/components/TariffsTable/dataFixture.js +1 -14
  39. package/dist/components/TariffsTable/dataFixture.js.map +1 -1
  40. package/dist/components/TariffsTable/renderCell.d.ts +2 -0
  41. package/dist/components/TariffsTable/renderCell.js +15 -0
  42. package/dist/components/TariffsTable/renderCell.js.map +1 -0
  43. package/dist/components/TariffsTable/renderHeader.d.ts +2 -0
  44. package/dist/components/TariffsTable/renderHeader.js +10 -0
  45. package/dist/components/TariffsTable/renderHeader.js.map +1 -0
  46. package/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  47. package/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
  48. package/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  49. package/dist/hooks/useLink.js +2 -1
  50. package/dist/hooks/useLink.js.map +1 -1
  51. package/dist/model/onClick.d.ts +3 -0
  52. package/dist/model/onClick.js +2 -0
  53. package/dist/model/onClick.js.map +1 -0
  54. package/dist/model/onClose.d.ts +3 -0
  55. package/dist/model/onClose.js +2 -0
  56. package/dist/model/onClose.js.map +1 -0
  57. package/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  58. package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  59. package/dist/ui-kit/InnerTable/InnerTable.js +2 -3
  60. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  61. package/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
  62. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  63. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  64. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  65. package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  66. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  67. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  68. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  69. package/dist/utils/adjustBase.js +4 -1
  70. package/dist/utils/adjustBase.js.map +1 -1
  71. package/lib/common.css +1 -1
  72. package/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  73. package/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
  74. package/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  75. package/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  76. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +3 -1
  77. package/lib/components/TariffsTable/TariffsTable.js +4 -11
  78. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  79. package/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  80. package/lib/components/TariffsTable/TariffsTableCell.js +14 -4
  81. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  82. package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  83. package/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  84. package/lib/components/TariffsTable/TariffsTableRow.js +6 -10
  85. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  86. package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  87. package/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
  88. package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  89. package/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  90. package/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
  91. package/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  92. package/lib/components/TariffsTable/dataFixture.js +1 -14
  93. package/lib/components/TariffsTable/dataFixture.js.map +1 -1
  94. package/lib/components/TariffsTable/renderCell.d.ts +2 -0
  95. package/lib/components/TariffsTable/renderCell.js +12 -0
  96. package/lib/components/TariffsTable/renderCell.js.map +1 -0
  97. package/lib/components/TariffsTable/renderHeader.d.ts +2 -0
  98. package/lib/components/TariffsTable/renderHeader.js +7 -0
  99. package/lib/components/TariffsTable/renderHeader.js.map +1 -0
  100. package/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  101. package/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
  102. package/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  103. package/lib/hooks/useLink.js +2 -1
  104. package/lib/hooks/useLink.js.map +1 -1
  105. package/lib/model/onClick.d.ts +3 -0
  106. package/lib/model/onClick.js +2 -0
  107. package/lib/model/onClick.js.map +1 -0
  108. package/lib/model/onClose.d.ts +3 -0
  109. package/lib/model/onClose.js +2 -0
  110. package/lib/model/onClose.js.map +1 -0
  111. package/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  112. package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  113. package/lib/ui-kit/InnerTable/InnerTable.js +2 -3
  114. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  115. package/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
  116. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  117. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  118. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  119. package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  120. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  121. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  122. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  123. package/lib/utils/adjustBase.js +4 -1
  124. package/lib/utils/adjustBase.js.map +1 -1
  125. package/mobile/bundle/bundle.umd.js +51 -124
  126. package/mobile/bundle/bundle.umd.min.js +1 -1
  127. package/mobile/bundle/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  128. package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
  129. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  130. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  131. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  132. package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  133. package/mobile/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  134. package/mobile/bundle/components/TariffsTable/renderCell.d.ts +2 -0
  135. package/mobile/bundle/components/TariffsTable/renderHeader.d.ts +2 -0
  136. package/mobile/bundle/model/onClick.d.ts +3 -0
  137. package/mobile/bundle/model/onClose.d.ts +3 -0
  138. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  139. package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  140. package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  141. package/mobile/dist/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  142. package/mobile/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
  143. package/mobile/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  144. package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  145. package/mobile/dist/components/TariffsTable/TariffsTable.js +4 -11
  146. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  147. package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  148. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +14 -4
  149. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  150. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  151. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  152. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +6 -10
  153. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  154. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  155. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
  156. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  157. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  158. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
  159. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  160. package/mobile/dist/components/TariffsTable/dataFixture.js +1 -14
  161. package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
  162. package/mobile/dist/components/TariffsTable/renderCell.d.ts +2 -0
  163. package/mobile/dist/components/TariffsTable/renderCell.js +15 -0
  164. package/mobile/dist/components/TariffsTable/renderCell.js.map +1 -0
  165. package/mobile/dist/components/TariffsTable/renderHeader.d.ts +2 -0
  166. package/mobile/dist/components/TariffsTable/renderHeader.js +10 -0
  167. package/mobile/dist/components/TariffsTable/renderHeader.js.map +1 -0
  168. package/mobile/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  169. package/mobile/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
  170. package/mobile/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  171. package/mobile/dist/hooks/useLink.js +2 -1
  172. package/mobile/dist/hooks/useLink.js.map +1 -1
  173. package/mobile/dist/model/onClick.d.ts +3 -0
  174. package/mobile/dist/model/onClick.js +2 -0
  175. package/mobile/dist/model/onClick.js.map +1 -0
  176. package/mobile/dist/model/onClose.d.ts +3 -0
  177. package/mobile/dist/model/onClose.js +2 -0
  178. package/mobile/dist/model/onClose.js.map +1 -0
  179. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  180. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  181. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +2 -3
  182. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  183. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
  184. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  185. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  186. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  187. package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  188. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  189. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  190. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  191. package/mobile/dist/utils/adjustBase.js +4 -1
  192. package/mobile/dist/utils/adjustBase.js.map +1 -1
  193. package/mobile/lib/common.css +1 -1
  194. package/mobile/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  195. package/mobile/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
  196. package/mobile/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  197. package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  198. package/mobile/lib/components/TariffsTable/TariffsTable.js +4 -11
  199. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  200. package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  201. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -4
  202. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  203. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  204. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  205. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +6 -10
  206. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  207. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  208. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
  209. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  210. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  211. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
  212. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  213. package/mobile/lib/components/TariffsTable/dataFixture.js +1 -14
  214. package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
  215. package/mobile/lib/components/TariffsTable/renderCell.d.ts +2 -0
  216. package/mobile/lib/components/TariffsTable/renderCell.js +12 -0
  217. package/mobile/lib/components/TariffsTable/renderCell.js.map +1 -0
  218. package/mobile/lib/components/TariffsTable/renderHeader.d.ts +2 -0
  219. package/mobile/lib/components/TariffsTable/renderHeader.js +7 -0
  220. package/mobile/lib/components/TariffsTable/renderHeader.js.map +1 -0
  221. package/mobile/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  222. package/mobile/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
  223. package/mobile/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  224. package/mobile/lib/hooks/useLink.js +2 -1
  225. package/mobile/lib/hooks/useLink.js.map +1 -1
  226. package/mobile/lib/model/onClick.d.ts +3 -0
  227. package/mobile/lib/model/onClick.js +2 -0
  228. package/mobile/lib/model/onClick.js.map +1 -0
  229. package/mobile/lib/model/onClose.d.ts +3 -0
  230. package/mobile/lib/model/onClose.js +2 -0
  231. package/mobile/lib/model/onClose.js.map +1 -0
  232. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  233. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  234. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +2 -3
  235. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  236. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
  237. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  238. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  239. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  240. package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  241. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  242. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  243. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  244. package/mobile/lib/utils/adjustBase.js +4 -1
  245. package/mobile/lib/utils/adjustBase.js.map +1 -1
  246. package/mobile/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
  247. package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -34
  248. package/mobile/src/components/TariffsTable/TariffsTable.tsx +6 -13
  249. package/mobile/src/components/TariffsTable/TariffsTable.ui.json +0 -3
  250. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
  251. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +7 -84
  252. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
  253. package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
  254. package/mobile/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
  255. package/mobile/src/components/TariffsTable/dataFixture.tsx +9 -22
  256. package/mobile/src/components/TariffsTable/renderCell.tsx +42 -0
  257. package/mobile/src/components/TariffsTable/renderHeader.tsx +19 -0
  258. package/mobile/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
  259. package/mobile/src/hooks/useLink.ts +3 -1
  260. package/mobile/src/model/onClick.ts +3 -0
  261. package/mobile/src/model/onClose.ts +3 -0
  262. package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
  263. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
  264. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
  265. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
  266. package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
  267. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
  268. package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  269. package/mobile/src/utils/adjustBase.ts +6 -1
  270. package/package.json +1 -1
  271. package/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
  272. package/src/components/TariffsTable/TariffsTable.example.json +1 -34
  273. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +28 -2
  274. package/src/components/TariffsTable/TariffsTable.tsx +6 -13
  275. package/src/components/TariffsTable/TariffsTable.ui.json +0 -3
  276. package/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
  277. package/src/components/TariffsTable/TariffsTableContent.ts +7 -84
  278. package/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
  279. package/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
  280. package/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
  281. package/src/components/TariffsTable/dataFixture.tsx +9 -22
  282. package/src/components/TariffsTable/renderCell.tsx +42 -0
  283. package/src/components/TariffsTable/renderHeader.tsx +19 -0
  284. package/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
  285. package/src/hooks/useLink.ts +3 -1
  286. package/src/model/onClick.ts +3 -0
  287. package/src/model/onClose.ts +3 -0
  288. package/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
  289. package/src/ui-kit/InnerTable/InnerTable.fixture.mobile.tsx +1 -4
  290. package/src/ui-kit/InnerTable/InnerTable.fixture.tsx +1 -4
  291. package/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
  292. package/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
  293. package/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
  294. package/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
  295. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
  296. package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  297. package/src/utils/adjustBase.ts +6 -1
  298. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  299. package/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
  300. package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  301. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  302. package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  303. package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  304. package/bundle/components/TariffsTable/constants.d.ts +0 -4
  305. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  306. package/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
  307. package/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  308. package/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
  309. package/dist/components/TariffsTable/TableTileHeader.js +0 -8
  310. package/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
  311. package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  312. package/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
  313. package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  314. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  315. package/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
  316. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  317. package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  318. package/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
  319. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  320. package/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  321. package/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
  322. package/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  323. package/dist/components/TariffsTable/constants.d.ts +0 -4
  324. package/dist/components/TariffsTable/constants.js +0 -7
  325. package/dist/components/TariffsTable/constants.js.map +0 -1
  326. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  327. package/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
  328. package/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  329. package/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
  330. package/lib/components/TariffsTable/TableTileHeader.js +0 -6
  331. package/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
  332. package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  333. package/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
  334. package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  335. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  336. package/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
  337. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  338. package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  339. package/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
  340. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  341. package/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  342. package/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
  343. package/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  344. package/lib/components/TariffsTable/constants.d.ts +0 -4
  345. package/lib/components/TariffsTable/constants.js +0 -5
  346. package/lib/components/TariffsTable/constants.js.map +0 -1
  347. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  348. package/mobile/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
  349. package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  350. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  351. package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  352. package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  353. package/mobile/bundle/components/TariffsTable/constants.d.ts +0 -4
  354. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  355. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
  356. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  357. package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
  358. package/mobile/dist/components/TariffsTable/TableTileHeader.js +0 -8
  359. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
  360. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  361. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
  362. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  363. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  364. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
  365. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  366. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  367. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
  368. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  369. package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  370. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
  371. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  372. package/mobile/dist/components/TariffsTable/constants.d.ts +0 -4
  373. package/mobile/dist/components/TariffsTable/constants.js +0 -7
  374. package/mobile/dist/components/TariffsTable/constants.js.map +0 -1
  375. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  376. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
  377. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  378. package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
  379. package/mobile/lib/components/TariffsTable/TableTileHeader.js +0 -6
  380. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
  381. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  382. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
  383. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  384. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  385. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
  386. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  387. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  388. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
  389. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  390. package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  391. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
  392. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  393. package/mobile/lib/components/TariffsTable/constants.d.ts +0 -4
  394. package/mobile/lib/components/TariffsTable/constants.js +0 -5
  395. package/mobile/lib/components/TariffsTable/constants.js.map +0 -1
  396. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
  397. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +0 -15
  398. package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
  399. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
  400. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
  401. package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
  402. package/mobile/src/components/TariffsTable/constants.ts +0 -4
  403. package/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
  404. package/src/components/TariffsTable/TableTileHeader.tsx +0 -15
  405. package/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
  406. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
  407. package/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
  408. package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
  409. package/src/components/TariffsTable/constants.ts +0 -4
@@ -2,10 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Text } from '../../ui-kit/Text/Text.js';
4
4
  import { InnerTableBodyItem } from './InnerTableBodyItem.js';
5
- export const InnerTableBody = JSX(({ activeTabIndex, items }) => {
6
- return (_jsx("div", { children: items.map((_, tableIdx) => {
7
- const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
8
- return (_jsxs("div", { className: "w-full @container", children: [_jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: _jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), _jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: _jsx("div", { className: "relative", children: _jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
9
- }) }));
10
- });
5
+ export const InnerTableBody = JSX(({ activeTabIndex, items }) => (_jsx("div", { children: items.map((_, tableIdx) => {
6
+ const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
7
+ return (_jsxs("div", { className: "w-full @container", children: [_jsx("div", { className: "flex py-m px-m bg-white @4xl:bg-gray relative", children: _jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), _jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: _jsx("div", { className: "relative", children: _jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
8
+ }) })));
11
9
  //# sourceMappingURL=InnerTableBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTableBody.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableBody.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAsB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,wBACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;YACzB,MAAM,GAAG,GAAG,gBAAgB,cAAc,aAAa,QAAQ,EAAE,CAAC;YAElE,OAAO,CACL,eAAe,SAAS,EAAC,mBAAmB,aAC1C,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,WAAW,YACnC,CAAC,CAAC,KAAK,GACH,GACH,EACN,cAAK,SAAS,EAAC,4EAA4E,YACzF,cAAK,SAAS,EAAC,UAAU,YACvB,KAAC,kBAAkB,IAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,GAAI,GACpC,GACF,KAVE,GAAG,CAWP,CACP,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"InnerTableBody.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableBody.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAsB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACpF,wBACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;QACzB,MAAM,GAAG,GAAG,gBAAgB,cAAc,aAAa,QAAQ,EAAE,CAAC;QAElE,OAAO,CACL,eAAe,SAAS,EAAC,mBAAmB,aAC1C,cAAK,SAAS,EAAC,+CAA+C,YAC5D,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,WAAW,YACnC,CAAC,CAAC,KAAK,GACH,GACH,EACN,cAAK,SAAS,EAAC,4EAA4E,YACzF,cAAK,SAAS,EAAC,UAAU,YACvB,KAAC,kBAAkB,IAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,GAAI,GACpC,GACF,KAVE,GAAG,CAWP,CACP,CAAC;IACJ,CAAC,CAAC,GACE,CACP,CAAC,CAAC"}
@@ -1,8 +1,7 @@
1
- import { type TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
2
1
  import { type ComponentType } from '../../model/ComponentType';
3
- import type { OnClickProps } from '../../model/OnClickProps';
2
+ import { type OnClickProps } from '../../model/onClick';
4
3
  import { type TariffsTableInnerContent } from './InnerTableProps';
5
- export interface InnerTableButtonProps extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent, ComponentType, OnClickProps {
4
+ export interface InnerTableButtonProps extends TariffsTableInnerContent, ComponentType, OnClickProps {
6
5
  isOpen?: boolean;
7
6
  }
8
7
  export declare const TableInnerButton: import("@redneckz/uni-jsx").UNIComponent<InnerTableButtonProps, any, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAWlE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACvC,KAAC,iBAAiB,IAChB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EACrC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAC,WAAW,EACnB,KAAK,QACL,OAAO,EAAE,OAAO,GAChB,CACH,CACF,CAAC"}
1
+ {"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAUlE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACvC,KAAC,iBAAiB,IAChB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EACrC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAC,WAAW,EACnB,KAAK,QACL,OAAO,EAAE,OAAO,GAChB,CACH,CACF,CAAC"}
@@ -14,9 +14,7 @@ export declare type TableData = {
14
14
  export declare type TableFetchData = {
15
15
  tableData?: TableData[];
16
16
  };
17
- export interface TariffsTableInnerContent {
17
+ export declare type TariffsTableInnerContent = {
18
18
  /** @title Справочник */
19
19
  tableSource?: JSONRefObject;
20
- /** @title Ссылка PDF-файл */
21
- pdfUrl?: string;
22
- }
20
+ };
@@ -8,7 +8,7 @@ export const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
8
8
  }
9
9
  const [headerColumn, ...columns] = rowData;
10
10
  const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
11
- return (_jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (_jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: _jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, _jsx("div", { className: "flex flex-grow overflow-hidden", children: _jsx("div", { className: columnsStyle, style: {
11
+ return (_jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (_jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 min-w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: _jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, _jsx("div", { className: "flex flex-grow overflow-hidden", children: _jsx("div", { className: columnsStyle, style: {
12
12
  transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
13
13
  }, children: columns?.map((_, i) => (_jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? _jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"renderInnerTableRow.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/renderInnerTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,CAAC,MAAM,mBAAmB,GAC9B,CAAC,iBAAyB,EAAE,EAAE,CAAC,CAAC,OAAmB,EAAE,MAAc,EAAE,EAAE;IACrE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC;IAC3C,MAAM,YAAY,GAAG,KAAK,CACxB,gCAAgC,EAChC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAC5C,CAAC;IAEF,OAAO,CACL,eAA0B,SAAS,EAAC,uDAAuD,aACxF,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAC,uFAAuF,YACpG,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,YAAY,CAAC,IAAI,GACb,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,cAAK,SAAS,EAAC,gCAAgC,YAC7C,cACE,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE;wBACL,SAAS,EAAE,eAAe,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK;qBAC9E,YAEA,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,eAEE,SAAS,EAAC,wEAAwE,aAEjF,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,CAAC,CAAC,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,EACrD,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,KAJlD,MAAM,CAAC,EAAE,CAKV,CACP,CAAC,GACE,GACF,KAzBE,MAAM,CAAC,MAAM,CAAC,CA0BlB,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,QAAgB,EAAE,EAAE,CACtD,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACjB,cAAK,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,qBAAqB,EAAE,QAAQ,KAAK,CAAC,EAAE,CAAC,YACrE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,cAAqB,SAAS,EAAC,YAAY,YACzC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,IAHC,MAAM,CAAC,CAAC,CAAC,CAIb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"renderInnerTableRow.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/renderInnerTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,CAAC,MAAM,mBAAmB,GAC9B,CAAC,iBAAyB,EAAE,EAAE,CAAC,CAAC,OAAmB,EAAE,MAAc,EAAE,EAAE;IACrE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC;IAC3C,MAAM,YAAY,GAAG,KAAK,CACxB,gCAAgC,EAChC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAC5C,CAAC;IAEF,OAAO,CACL,eAA0B,SAAS,EAAC,uDAAuD,aACxF,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAC,gGAAgG,YAC7G,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,YAAY,CAAC,IAAI,GACb,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,cAAK,SAAS,EAAC,gCAAgC,YAC7C,cACE,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE;wBACL,SAAS,EAAE,eAAe,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK;qBAC9E,YAEA,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,eAEE,SAAS,EAAC,wEAAwE,aAEjF,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,CAAC,CAAC,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,EACrD,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,KAJlD,MAAM,CAAC,EAAE,CAKV,CACP,CAAC,GACE,GACF,KAzBE,MAAM,CAAC,MAAM,CAAC,CA0BlB,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,QAAgB,EAAE,EAAE,CACtD,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACjB,cAAK,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,qBAAqB,EAAE,QAAQ,KAAK,CAAC,EAAE,CAAC,YACrE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,cAAqB,SAAS,EAAC,YAAY,YACzC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,IAHC,MAAM,CAAC,CAAC,CAAC,CAIb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { OnCloseProps } from '../../model/OnCloseProps';
1
+ import { type OnCloseProps } from '../../model/onClose';
2
2
  export interface ResponseNotificationProps extends OnCloseProps {
3
3
  ok?: boolean;
4
4
  typeForm?: string;
@@ -1,2 +1,5 @@
1
- export const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
1
+ const FORWARD_SLASH = '/';
2
+ export const adjustBase = (href = FORWARD_SLASH, basePath = FORWARD_SLASH) => [href, basePath].some((_) => _ === FORWARD_SLASH)
3
+ ? href
4
+ : href.replace(basePath, '') || FORWARD_SLASH;
2
5
  //# sourceMappingURL=adjustBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"adjustBase.js","sourceRoot":"","sources":["../../src/utils/adjustBase.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAa,EAAE,QAAQ,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC"}
1
+ {"version":3,"file":"adjustBase.js","sourceRoot":"","sources":["../../src/utils/adjustBase.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAe,aAAa,EAAE,WAAmB,aAAa,EAAE,EAAE,CAC3F,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,aAAa,CAAC;IAC/C,CAAC,CAAC,IAAI;IACN,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC"}
@@ -481,8 +481,12 @@
481
481
 
482
482
  const useDialogManager = () => useEmitterWithActions(defaultEventBus.emitter, 'dialog');
483
483
 
484
- const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
484
+ const FORWARD_SLASH = '/';
485
+ const adjustBase = (href = FORWARD_SLASH, basePath = FORWARD_SLASH) => [href, basePath].some((_) => _ === FORWARD_SLASH)
486
+ ? href
487
+ : href.replace(basePath, '') || FORWARD_SLASH;
485
488
 
489
+ const RESERVED_PREFIX = ['/api'];
486
490
  function useLink() {
487
491
  const router = useRouter();
488
492
  const { closeAll } = useDialogManager();
@@ -505,7 +509,7 @@
505
509
  };
506
510
  }
507
511
  const isClientRouting = (href, target, basePath) => isLocalURL(href, target) &&
508
- !env.SUB_PORTALS?.split(',')?.some(hasPrefix(href)) &&
512
+ ![...RESERVED_PREFIX, ...(env.SUB_PORTALS?.split(',') ?? [])].some(hasPrefix(href)) &&
509
513
  hasPrefix(href)(basePath || '/');
510
514
 
511
515
  const getAspectsAttributes = (data) => {
@@ -1283,7 +1287,7 @@
1283
1287
 
1284
1288
  const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
1285
1289
 
1286
- const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
1290
+ const renderLabel$1 = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
1287
1291
 
1288
1292
  const Input = JSX(
1289
1293
  // eslint-disable-next-line max-lines-per-function
@@ -1301,7 +1305,7 @@
1301
1305
  const paddingStyle = children ? 'pr-3xl' : '';
1302
1306
  const validStyle = getValidStyle(valid);
1303
1307
  const ariaLabel = label ?? name ?? id;
1304
- return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key))] }), children] }));
1308
+ return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key))] }), children] }));
1305
1309
  });
1306
1310
  const defaultStyle$1 = 'w-full border rounded-md text-primary-text outline-none p-m';
1307
1311
 
@@ -1398,7 +1402,7 @@
1398
1402
  onClose: handleClose,
1399
1403
  iconVersion,
1400
1404
  });
1401
- return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : handleOpen, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$2(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", value: query, autoFocus: true, disabled: isDisabled, onChange: setQuery }) })) : null] })] }));
1405
+ return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel$1(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : handleOpen, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$2(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", value: query, autoFocus: true, disabled: isDisabled, onChange: setQuery }) })) : null] })] }));
1402
1406
  });
1403
1407
  const renderIcon$2 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-0 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
1404
1408
  const getStyle = (isBorder, valid, disabled) => style(isBorder ? 'border rounded-md ' : '', isBorder && !disabled ? 'hover:border-primary-hover' : '', disabled ? 'bg-main-divider' : 'cursor-pointer ', valid ? 'border-gray' : 'border-error');
@@ -1893,7 +1897,7 @@
1893
1897
  value,
1894
1898
  });
1895
1899
  const spaceAbove = useElementSpace(ref, 370);
1896
- return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel(label), jsxs("div", { className: "relative", children: [renderDatePickerForm({
1900
+ return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel$1(label), jsxs("div", { className: "relative", children: [renderDatePickerForm({
1897
1901
  handleChangeVisibleCalendar,
1898
1902
  value,
1899
1903
  valid,
@@ -5335,7 +5339,7 @@
5335
5339
  };
5336
5340
  };
5337
5341
 
5338
- const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [jsx(Text, { font: "font-medium", size: "text-s", children: title }), description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
5342
+ const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
5339
5343
 
5340
5344
  const fieldsNamesToContactKeysMap = {
5341
5345
  email: 'EMAIL',
@@ -10057,96 +10061,36 @@
10057
10061
  ? Number(paramsId)
10058
10062
  : tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
10059
10063
 
10060
- const useCarouselControls = (props, initialIndex = 0) => {
10061
- const { itemCount, visibleItemCount } = props;
10062
- const [activeIndex, setActiveIndex] = useState(initialIndex);
10063
- const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
10064
- const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
10065
- const canInc = visibleItemCount
10066
- ? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
10067
- : activeIndex < itemCount - 1;
10068
- const canDec = activeIndex > 0;
10069
- const isScrollAvailable = canDec || canInc;
10070
- return [
10071
- activeIndex,
10072
- {
10073
- inc,
10074
- dec,
10075
- canInc,
10076
- canDec,
10077
- isScrollAvailable,
10078
- },
10079
- ];
10080
- };
10081
-
10082
- const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
10083
- const firstCellStyle = 'w-80 flex-shrink-0';
10084
- const COLS_LENGTH_FOR_SCROLL = 2;
10085
- const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
10064
+ const FIRST_CELL_STYLES = 'w-80 flex-shrink-0 sticky left-0 bg-white';
10065
+ const renderHeader = ({ title, icon }) => (jsxs("div", { className: style('flex gap-m items-center', FIRST_CELL_STYLES), role: "cell", children: [icon ? (jsx(Img, { className: "hidden lg:block max-w-6 shrink-0", image: icon, width: "24", height: "24" })) : null, title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null] }));
10086
10066
 
10087
10067
  const carouselContainerClassesMap = {
10088
10068
  comparison: 'flex gap-m duration-1000',
10089
10069
  tariff: 'flex gap-5xl flex-grow duration-1000',
10090
10070
  };
10091
- const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
10071
+ const TableCarouselContainer = JSX(({ children, version = 'comparison' }) => (jsx("div", { className: "flex flex-1", children: jsx("div", { className: carouselContainerClassesMap[version], children: children }) })));
10092
10072
 
10093
10073
  const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(DefaultFoldButton, { className: className, label: isOpen ? 'Скрыть' : 'Показать', isUnfolded: isOpen, version: "secondary", short: true, onClick: onClick })));
10094
10074
 
10095
- const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
10096
- buttonClassName: 'basis-0',
10097
- });
10098
- const renderLabelDescriptionCellData = ({ label, description }) => (jsxs("div", { className: "space-y-2xs", children: [label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null, description ? (jsx("div", { className: "lg:text-l font-light text-xs", children: jsx(Text, { color: "text-secondary-text", children: description }) })) : null] }));
10099
- const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
10100
- const renderRichTextCellData = ({ __html, isDotted = true }) => (jsx("div", { className: "flex flex-col justify-between items-start text-h6", children: jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-m" }) }));
10101
- const renderInnerTableCellData = ({ isVisible, displayTable, tableSource, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { className: "w-fit", isOpen: isOpen, onClick: () => {
10102
- displayTable({ tableSource, pdfUrl });
10103
- } })) : null;
10104
- const EmbeddableCellData = {
10105
- Buttons: renderButtonsCellData,
10106
- Img: renderImgCellData,
10107
- RichText: renderRichTextCellData,
10108
- LabelDescription: renderLabelDescriptionCellData,
10109
- Table: renderInnerTableCellData,
10110
- };
10111
-
10112
- const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
10113
- const [isVisible, setVisibility] = useState(true);
10114
- useEffect(() => {
10115
- if (cellIdx !== openTableInnerIdx || !tableInner) {
10116
- setVisibility(true);
10117
- }
10118
- }, [tableInner, openTableInnerIdx]);
10119
- const displayTable = (props) => {
10120
- setVisibility(false);
10121
- setOpenTableInnerIdx(cellIdx);
10122
- setTableInner(props);
10123
- };
10124
- return renderCell({
10125
- cell,
10126
- cellProps: {
10127
- rowIdx,
10128
- cellIdx,
10129
- fieldIdx,
10130
- displayTable,
10131
- isVisible,
10132
- },
10133
- });
10075
+ const renderCell = ({ label, description, __html, isDotted, buttons, image }, i) => (jsxs("div", { className: "grid gap-xs", children: [renderLabel(label), renderDescription$1(description), renderRich({ __html, isDotted }), renderButtonsSection(buttons, {
10076
+ buttonClassName: 'basis-0',
10077
+ }), image?.src ? jsx(Img, { image: image }) : null] }, String(i)));
10078
+ const renderLabel = (label) => label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null;
10079
+ const renderDescription$1 = (description) => description ? (jsx("div", { className: "text-l font-light", children: jsx(Text, { color: "text-secondary-text", children: description }) })) : null;
10080
+ const renderRich = ({ __html, isDotted }) => __html ? (jsx("div", { className: "flex flex-col justify-between items-start text-h6", children: jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-m" }) })) : null;
10081
+
10082
+ const TariffsTableCell = JSX(({ cells, tableInner, onSetTable }) => {
10083
+ return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-lg", role: "cell", children: cells?.length
10084
+ ? cells.map((_, i) => {
10085
+ if (_?.tableSource?.tableData) {
10086
+ return (jsx(TableInnerButton, { className: "w-fit", isOpen: Boolean(tableInner), onClick: () => {
10087
+ onSetTable(tableInner ? undefined : { tableSource: _.tableSource });
10088
+ } }, String(i)));
10089
+ }
10090
+ return renderCell(_, i);
10091
+ })
10092
+ : null }));
10134
10093
  });
10135
- const renderCell = ({ cell, cellProps }) => {
10136
- if (!cell) {
10137
- return null;
10138
- }
10139
- const { tableCellType: type, ...rest } = cell;
10140
- if (!type || !(type in EmbeddableCellData)) {
10141
- return null;
10142
- }
10143
- const EmbeddableCellInner = EmbeddableCellData[type];
10144
- return jsx(EmbeddableCellInner, { ...cellProps, ...rest });
10145
- };
10146
-
10147
- const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
10148
- ? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
10149
- : null })));
10150
10094
 
10151
10095
  const sum = (list = []) => list.reduce((a, b) => a + b, 0);
10152
10096
 
@@ -10159,7 +10103,7 @@
10159
10103
  }
10160
10104
  const [headerColumn, ...columns] = rowData;
10161
10105
  const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
10162
- return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
10106
+ return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 min-w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
10163
10107
  transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
10164
10108
  }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
10165
10109
  };
@@ -10167,12 +10111,10 @@
10167
10111
 
10168
10112
  const InnerTableBodyItem = JSX(({ rows }) => (jsx(SwipeListContainer, { visibleItemCount: 0, snapAlign: "snap-start", children: jsx("div", { children: rows?.map(renderInnerTableRow(0)) }) })));
10169
10113
 
10170
- const InnerTableBody = JSX(({ activeTabIndex, items }) => {
10171
- return (jsx("div", { children: items.map((_, tableIdx) => {
10172
- const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
10173
- return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
10174
- }) }));
10175
- });
10114
+ const InnerTableBody = JSX(({ activeTabIndex, items }) => (jsx("div", { children: items.map((_, tableIdx) => {
10115
+ const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
10116
+ return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
10117
+ }) })));
10176
10118
 
10177
10119
  const linkButtonVersion = 'link';
10178
10120
 
@@ -10182,53 +10124,38 @@
10182
10124
  }), onClick: () => setActiveTabIndex(idx), children: jsx(Text, { size: "text-xl", font: "font-light", color: TableColor(idx === activeTabIndex), children: currency || idx + 1 }) }, currency))) })) : null, linkToPDF ? (jsx(LinkButton, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
10183
10125
 
10184
10126
  const EMPTY_DATA$1 = 'Данных нет';
10185
- const InnerTable = UniBlock(({ tableSource, pdfUrl, onClick }) => {
10127
+ const InnerTable = UniBlock(({ tableSource }) => {
10186
10128
  const tableData = tableSource?.tableData;
10187
10129
  const [activeTabIndex, setActiveTabIndex] = useState(0);
10188
10130
  const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
10189
10131
  const items = tableData?.[activeTabIndex]?.items ?? [];
10190
10132
  const currencies = tableData?.map((item) => item.currency ?? '');
10191
- return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { className: "mt-xl", onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg space-y-m text-center", children: [jsx(Text, { size: "text-h6", children: EMPTY_DATA$1 }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
10133
+ return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items })] })) : (jsx("div", { className: "space-y-m text-center", children: jsx(Text, { size: "text-h6", children: EMPTY_DATA$1 }) }));
10192
10134
  });
10193
10135
 
10194
- const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: style(dividerStyle, 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
10136
+ const DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
10137
+ const TariffsTableRowContainer = JSX(({ children, tableInner, onClick }) => (jsxs("div", { className: style('self-start flex flex-col gap-xl', DIVIDER_STYLE), role: "row", children: [jsx("div", { className: style('flex flex-col lg:flex-row gap-x-5xl gap-y-xs'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onClick }) })) : null] })));
10195
10138
 
10196
- const TariffsTableRow = JSX(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
10139
+ const TariffsTableRow = JSX(({ row: { header, data = [] }, ...rest }) => {
10197
10140
  const [tableInner, setTableInner] = useState(undefined);
10198
- const handleSetTableInner = useCallback((_) => setTableInner(_), []);
10199
- const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
10200
- const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
10201
- const onHideContentClick = () => setTableInner(undefined);
10202
- return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
10141
+ const handleSetTableInner = useCallback((_) => {
10142
+ setTableInner(_);
10143
+ }, []);
10144
+ return (jsxs(TariffsTableRowContainer, { tableInner: tableInner, ...rest, children: [renderHeader(header), data?.length ? (jsx(TableCarouselContainer, { version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, onSetTable: handleSetTableInner, tableInner: tableInner, ...rest }, String(i)))) })) : null] }));
10203
10145
  });
10204
10146
 
10205
- /** @deprecated */
10206
- const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
10207
-
10208
- const TariffsTableWrapper = JSX(({ children, controls }) => {
10209
- const { isScrollAvailable } = controls;
10210
- return (jsxs("div", { role: "table", className: "overflow-x-auto w-auto grid md:block", children: [jsxs("div", { className: "relative space-y-xs", children: [children, renderArrows({
10211
- ...controls,
10212
- btnClass: ['top-28', 'top-11'],
10213
- className: 'right-7',
10214
- })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
10215
- });
10147
+ const TariffsTableWrapper = JSX(({ children }) => (jsx("div", { role: "table", className: "overflow-x-auto w-auto grid relative gap-y-xs", children: children })));
10216
10148
 
10217
- const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
10149
+ const TariffsTable = UniBlock(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
10218
10150
  const colData = columns?.map(({ data }) => data) || [];
10219
10151
  const rowData = rowHeaders?.map((header, i) => ({
10220
10152
  header,
10221
10153
  data: colData.map((col) => col?.[i] || []),
10222
10154
  }));
10223
- const itemCount = colData.length;
10224
- const [activeIndex, controls] = useCarouselControls({
10225
- itemCount: itemCount,
10226
- visibleItemCount: COLS_LENGTH_FOR_SCROLL,
10227
- });
10228
- const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
10155
+ const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, ...rest }, String(i))));
10229
10156
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
10230
10157
  const [isUnfolded, { toggle }] = useBool(false);
10231
- return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
10158
+ return (jsxs(BlockWrapper, { className: style('relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { children: rows })) })] }));
10232
10159
  });
10233
10160
 
10234
10161
  const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
@@ -10397,7 +10324,7 @@
10397
10324
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10398
10325
  });
10399
10326
 
10400
- const packageVersion = "0.14.852";
10327
+ const packageVersion = "0.14.854";
10401
10328
 
10402
10329
  exports.Blocks = Blocks;
10403
10330
  exports.ContentPage = ContentPage;