@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
@@ -473,8 +473,12 @@
473
473
 
474
474
  const useDialogManager = () => useEmitterWithActions(defaultEventBus.emitter, 'dialog');
475
475
 
476
- const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
476
+ const FORWARD_SLASH = '/';
477
+ const adjustBase = (href = FORWARD_SLASH, basePath = FORWARD_SLASH) => [href, basePath].some((_) => _ === FORWARD_SLASH)
478
+ ? href
479
+ : href.replace(basePath, '') || FORWARD_SLASH;
477
480
 
481
+ const RESERVED_PREFIX = ['/api'];
478
482
  function useLink() {
479
483
  const router = useRouter();
480
484
  const { closeAll } = useDialogManager();
@@ -497,7 +501,7 @@
497
501
  };
498
502
  }
499
503
  const isClientRouting = (href, target, basePath) => isLocalURL(href, target) &&
500
- !env.SUB_PORTALS?.split(',')?.some(hasPrefix(href)) &&
504
+ ![...RESERVED_PREFIX, ...(env.SUB_PORTALS?.split(',') ?? [])].some(hasPrefix(href)) &&
501
505
  hasPrefix(href)(basePath || '/');
502
506
 
503
507
  const getAspectsAttributes = (data) => {
@@ -1275,7 +1279,7 @@
1275
1279
 
1276
1280
  const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
1277
1281
 
1278
- const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
1282
+ const renderLabel$1 = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
1279
1283
 
1280
1284
  const Input = JSX(
1281
1285
  // eslint-disable-next-line max-lines-per-function
@@ -1293,7 +1297,7 @@
1293
1297
  const paddingStyle = children ? 'pr-3xl' : '';
1294
1298
  const validStyle = getValidStyle(valid);
1295
1299
  const ariaLabel = label ?? name ?? id;
1296
- 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] }));
1300
+ 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] }));
1297
1301
  });
1298
1302
  const defaultStyle$1 = 'w-full border rounded-md text-primary-text outline-none p-m';
1299
1303
 
@@ -1390,7 +1394,7 @@
1390
1394
  onClose: handleClose,
1391
1395
  iconVersion,
1392
1396
  });
1393
- 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$1(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] })] }));
1397
+ 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$1(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] })] }));
1394
1398
  });
1395
1399
  const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-0 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
1396
1400
  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');
@@ -1885,7 +1889,7 @@
1885
1889
  value,
1886
1890
  });
1887
1891
  const spaceAbove = useElementSpace(ref, 370);
1888
- return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel(label), jsxs("div", { className: "relative", children: [renderDatePickerForm({
1892
+ return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel$1(label), jsxs("div", { className: "relative", children: [renderDatePickerForm({
1889
1893
  handleChangeVisibleCalendar,
1890
1894
  value,
1891
1895
  valid,
@@ -5327,7 +5331,7 @@
5327
5331
  };
5328
5332
  };
5329
5333
 
5330
- 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] })] })));
5334
+ 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] })] })));
5331
5335
 
5332
5336
  const fieldsNamesToContactKeysMap = {
5333
5337
  email: 'EMAIL',
@@ -10586,6 +10590,37 @@
10586
10590
  ? Number(paramsId)
10587
10591
  : tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
10588
10592
 
10593
+ const FIRST_CELL_STYLES = 'w-80 flex-shrink-0 sticky left-0 bg-white';
10594
+ 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] }));
10595
+
10596
+ const carouselContainerClassesMap = {
10597
+ comparison: 'flex gap-m duration-1000',
10598
+ tariff: 'flex gap-5xl flex-grow duration-1000',
10599
+ };
10600
+ const TableCarouselContainer = JSX(({ children, version = 'comparison' }) => (jsx("div", { className: "flex flex-1", children: jsx("div", { className: carouselContainerClassesMap[version], children: children }) })));
10601
+
10602
+ const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(DefaultFoldButton, { className: className, label: isOpen ? 'Скрыть' : 'Показать', isUnfolded: isOpen, version: "secondary", short: true, onClick: onClick })));
10603
+
10604
+ 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, {
10605
+ buttonClassName: 'basis-0',
10606
+ }), image?.src ? jsx(Img, { image: image }) : null] }, String(i)));
10607
+ const renderLabel = (label) => label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null;
10608
+ const renderDescription$1 = (description) => description ? (jsx("div", { className: "text-l font-light", children: jsx(Text, { color: "text-secondary-text", children: description }) })) : null;
10609
+ 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;
10610
+
10611
+ const TariffsTableCell = JSX(({ cells, tableInner, onSetTable }) => {
10612
+ return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-lg", role: "cell", children: cells?.length
10613
+ ? cells.map((_, i) => {
10614
+ if (_?.tableSource?.tableData) {
10615
+ return (jsx(TableInnerButton, { className: "w-fit", isOpen: Boolean(tableInner), onClick: () => {
10616
+ onSetTable(tableInner ? undefined : { tableSource: _.tableSource });
10617
+ } }, String(i)));
10618
+ }
10619
+ return renderCell(_, i);
10620
+ })
10621
+ : null }));
10622
+ });
10623
+
10589
10624
  const useCarouselControls = (props, initialIndex = 0) => {
10590
10625
  const { itemCount, visibleItemCount } = props;
10591
10626
  const [activeIndex, setActiveIndex] = useState(initialIndex);
@@ -10608,75 +10643,6 @@
10608
10643
  ];
10609
10644
  };
10610
10645
 
10611
- const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
10612
- const firstCellStyle = 'w-80 flex-shrink-0';
10613
- const COLS_LENGTH_FOR_SCROLL = 2;
10614
- const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
10615
-
10616
- const carouselContainerClassesMap = {
10617
- comparison: 'flex gap-m duration-1000',
10618
- tariff: 'flex gap-5xl flex-grow duration-1000',
10619
- };
10620
- 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 }) })));
10621
-
10622
- const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(DefaultFoldButton, { className: className, label: isOpen ? 'Скрыть' : 'Показать', isUnfolded: isOpen, version: "secondary", short: true, onClick: onClick })));
10623
-
10624
- const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
10625
- buttonClassName: 'basis-0',
10626
- });
10627
- 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] }));
10628
- const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
10629
- 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" }) }));
10630
- const renderInnerTableCellData = ({ isVisible, displayTable, tableSource, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { className: "w-fit", isOpen: isOpen, onClick: () => {
10631
- displayTable({ tableSource, pdfUrl });
10632
- } })) : null;
10633
- const EmbeddableCellData = {
10634
- Buttons: renderButtonsCellData,
10635
- Img: renderImgCellData,
10636
- RichText: renderRichTextCellData,
10637
- LabelDescription: renderLabelDescriptionCellData,
10638
- Table: renderInnerTableCellData,
10639
- };
10640
-
10641
- const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
10642
- const [isVisible, setVisibility] = useState(true);
10643
- useEffect(() => {
10644
- if (cellIdx !== openTableInnerIdx || !tableInner) {
10645
- setVisibility(true);
10646
- }
10647
- }, [tableInner, openTableInnerIdx]);
10648
- const displayTable = (props) => {
10649
- setVisibility(false);
10650
- setOpenTableInnerIdx(cellIdx);
10651
- setTableInner(props);
10652
- };
10653
- return renderCell({
10654
- cell,
10655
- cellProps: {
10656
- rowIdx,
10657
- cellIdx,
10658
- fieldIdx,
10659
- displayTable,
10660
- isVisible,
10661
- },
10662
- });
10663
- });
10664
- const renderCell = ({ cell, cellProps }) => {
10665
- if (!cell) {
10666
- return null;
10667
- }
10668
- const { tableCellType: type, ...rest } = cell;
10669
- if (!type || !(type in EmbeddableCellData)) {
10670
- return null;
10671
- }
10672
- const EmbeddableCellInner = EmbeddableCellData[type];
10673
- return jsx(EmbeddableCellInner, { ...cellProps, ...rest });
10674
- };
10675
-
10676
- 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
10677
- ? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
10678
- : null })));
10679
-
10680
10646
  /** @deprecated */
10681
10647
  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;
10682
10648
 
@@ -10689,7 +10655,7 @@
10689
10655
  }
10690
10656
  const [headerColumn, ...columns] = rowData;
10691
10657
  const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
10692
- 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: {
10658
+ 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: {
10693
10659
  transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
10694
10660
  }, 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)));
10695
10661
  };
@@ -10709,12 +10675,10 @@
10709
10675
  })] }));
10710
10676
  });
10711
10677
 
10712
- const InnerTableBody = JSX(({ activeTabIndex, items }) => {
10713
- return (jsx("div", { children: items.map((_, tableIdx) => {
10714
- const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
10715
- 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));
10716
- }) }));
10717
- });
10678
+ const InnerTableBody = JSX(({ activeTabIndex, items }) => (jsx("div", { children: items.map((_, tableIdx) => {
10679
+ const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
10680
+ 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));
10681
+ }) })));
10718
10682
 
10719
10683
  const linkButtonVersion = 'secondary';
10720
10684
 
@@ -10724,50 +10688,38 @@
10724
10688
  }), 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] })));
10725
10689
 
10726
10690
  const EMPTY_DATA$1 = 'Данных нет';
10727
- const InnerTable = UniBlock(({ tableSource, pdfUrl, onClick }) => {
10691
+ const InnerTable = UniBlock(({ tableSource }) => {
10728
10692
  const tableData = tableSource?.tableData;
10729
10693
  const [activeTabIndex, setActiveTabIndex] = useState(0);
10730
10694
  const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
10731
10695
  const items = tableData?.[activeTabIndex]?.items ?? [];
10732
10696
  const currencies = tableData?.map((item) => item.currency ?? '');
10733
- 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 })] }));
10697
+ 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 }) }));
10734
10698
  });
10735
10699
 
10736
- 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] })));
10700
+ const DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
10701
+ 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] })));
10737
10702
 
10738
- const TariffsTableRow = JSX(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
10703
+ const TariffsTableRow = JSX(({ row: { header, data = [] }, ...rest }) => {
10739
10704
  const [tableInner, setTableInner] = useState(undefined);
10740
- const handleSetTableInner = useCallback((_) => setTableInner(_), []);
10741
- const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
10742
- const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
10743
- const onHideContentClick = () => setTableInner(undefined);
10744
- 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] }));
10705
+ const handleSetTableInner = useCallback((_) => {
10706
+ setTableInner(_);
10707
+ }, []);
10708
+ 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] }));
10745
10709
  });
10746
10710
 
10747
- const TariffsTableWrapper = JSX(({ children, controls }) => {
10748
- const { isScrollAvailable } = controls;
10749
- 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({
10750
- ...controls,
10751
- btnClass: ['top-28', 'top-11'],
10752
- className: 'right-7',
10753
- })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
10754
- });
10711
+ const TariffsTableWrapper = JSX(({ children }) => (jsx("div", { role: "table", className: "overflow-x-auto w-auto grid relative gap-y-xs", children: children })));
10755
10712
 
10756
- const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
10713
+ const TariffsTable = UniBlock(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
10757
10714
  const colData = columns?.map(({ data }) => data) || [];
10758
10715
  const rowData = rowHeaders?.map((header, i) => ({
10759
10716
  header,
10760
10717
  data: colData.map((col) => col?.[i] || []),
10761
10718
  }));
10762
- const itemCount = colData.length;
10763
- const [activeIndex, controls] = useCarouselControls({
10764
- itemCount: itemCount,
10765
- visibleItemCount: COLS_LENGTH_FOR_SCROLL,
10766
- });
10767
- const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
10719
+ const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, ...rest }, String(i))));
10768
10720
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
10769
10721
  const [isUnfolded, { toggle }] = useBool(false);
10770
- 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 })) })] }));
10722
+ 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 })) })] }));
10771
10723
  });
10772
10724
 
10773
10725
  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] })] })));
@@ -10986,7 +10938,7 @@
10986
10938
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10987
10939
  });
10988
10940
 
10989
- const packageVersion = "0.14.852";
10941
+ const packageVersion = "0.14.854";
10990
10942
 
10991
10943
  exports.Blocks = Blocks;
10992
10944
  exports.ContentPage = ContentPage;