@daisforge/ui 1.22.0 → 1.23.0

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 (485) hide show
  1. package/chunks/AiAgentPopup-CLGSjg5L.cjs +11 -0
  2. package/chunks/AiAgentPopup-CtMhai1X.mjs +797 -0
  3. package/chunks/AnalyticalWidget-Bvcm1qpU.cjs +43 -0
  4. package/chunks/AnalyticalWidget-CRfihris.mjs +352 -0
  5. package/chunks/ApprovalCenter-D7K7J-QB.cjs +1 -0
  6. package/chunks/{ApprovalCenter-DLKZP2AO.mjs → ApprovalCenter-dJpI91uN.mjs} +10 -10
  7. package/chunks/BlockTitle-CcYYHiOo.cjs +1 -0
  8. package/chunks/{BlockTitle-DsXxImR6.mjs → BlockTitle-DCmM-9AN.mjs} +2 -2
  9. package/chunks/{Container-DbZwlfIM.mjs → Container-C7PzvUwd.mjs} +1 -1
  10. package/chunks/{Container-DHnX1sHY.cjs → Container-bVqI3en9.cjs} +1 -1
  11. package/chunks/{EmptyState-DH1xawxg.cjs → EmptyState-D-bmtvmy.cjs} +1 -1
  12. package/chunks/{EmptyState-CUCseg9M.mjs → EmptyState-ZsOlvU4d.mjs} +1 -1
  13. package/chunks/{FiltersActions-BJ5gD6Nx.mjs → FiltersActions-CS27WxA6.mjs} +15 -15
  14. package/chunks/FiltersActions-Cie245Po.cjs +1 -0
  15. package/chunks/{FormSegmentGroup-BYQ6yMK1.cjs → FormSegmentGroup-CNIqOYfm.cjs} +1 -1
  16. package/chunks/{FormSegmentGroup-C9qYxYT9.mjs → FormSegmentGroup-DwTRM58f.mjs} +1 -1
  17. package/chunks/{GridDND-DK6SAO8q.cjs → GridDND-Bwmr7gla.cjs} +1 -1
  18. package/chunks/{GridDND-CqvpXgCY.mjs → GridDND-DC5VoxEY.mjs} +83 -83
  19. package/chunks/{LeftPanel-C5SsoRJS.mjs → LeftPanel-C10BLKIn.mjs} +1 -1
  20. package/chunks/{LeftPanel-AyuV7bGS.cjs → LeftPanel-upGFk7jM.cjs} +1 -1
  21. package/chunks/{ListOfFilters-CfV2bs_4.mjs → ListOfFilters-CEWrWotU.mjs} +3 -3
  22. package/chunks/{ListOfFilters-mqTsQbq_.cjs → ListOfFilters-DNi-z1cn.cjs} +1 -1
  23. package/chunks/MassActions-DJiKcC6r.cjs +1 -0
  24. package/chunks/{MassActions-C6LY-g9r.mjs → MassActions-NLCRjIHw.mjs} +46 -46
  25. package/chunks/PageTitle-Bg4PNEXS.cjs +9 -0
  26. package/chunks/{PageTitle-DkfAiZM4.mjs → PageTitle-CXtNgH-b.mjs} +7 -7
  27. package/chunks/{SplitView-BqS1Jbo4.mjs → SplitView-BzamJzNc.mjs} +17 -17
  28. package/chunks/{SplitView-DNmd4sJe.cjs → SplitView-DeJ3V-kq.cjs} +1 -1
  29. package/chunks/Stories-CNlL0Bcb.cjs +1 -0
  30. package/chunks/{Stories-BnHxMCEZ.mjs → Stories-UUV0GNEV.mjs} +33 -33
  31. package/chunks/{Table-vv1HTrxe.cjs → Table-CZludfzU.cjs} +6 -6
  32. package/chunks/{Table-tUWuA3Ri.mjs → Table-FrYs56BB.mjs} +1597 -1586
  33. package/chunks/{TableCanvas-BX5aciu7.mjs → TableCanvas-CasYPFSm.mjs} +5872 -5633
  34. package/chunks/TableCanvas-DFne0YHS.cjs +30 -0
  35. package/chunks/TableGlide-BKSjSgBn.mjs +9131 -0
  36. package/chunks/TableGlide-C2_HrWEA.cjs +1 -0
  37. package/chunks/{styles-CJ5y9FKW.mjs → styles-CJPkBVWK.mjs} +6 -6
  38. package/chunks/{styles-kUWPuNSD.cjs → styles-CpC_FuBg.cjs} +1 -1
  39. package/chunks/{utils-u1KJ37g3.mjs → utils-Hu77fGGe.mjs} +102 -102
  40. package/chunks/{utils-ChDQGRjv.cjs → utils-OQNruMpn.cjs} +5 -5
  41. package/components/AiAgentPopover/index.cjs +1 -1
  42. package/components/AiAgentPopover/index.mjs +1 -1
  43. package/components/AiAgentPopup/AiAgentInput.d.ts +3 -0
  44. package/components/AiAgentPopup/AiAgentLeftPanel.d.ts +6 -0
  45. package/components/AiAgentPopup/AiAgentPopup.constants.d.ts +32 -0
  46. package/components/AiAgentPopup/AiAgentPopup.d.ts +3 -0
  47. package/components/AiAgentPopup/AiAgentPopup.styled.d.ts +33 -0
  48. package/components/AiAgentPopup/AiAgentPopup.types.d.ts +83 -0
  49. package/components/AiAgentPopup/AiAgentPopup.utils.d.ts +12 -0
  50. package/components/AiAgentPopup/AiAgentSurface.d.ts +6 -0
  51. package/components/AiAgentPopup/hooks/useDrag.d.ts +18 -0
  52. package/components/AiAgentPopup/hooks/useIsDarkTheme.d.ts +1 -0
  53. package/components/AiAgentPopup/hooks/usePopupPosition.d.ts +20 -0
  54. package/components/AiAgentPopup/hooks/usePopupResize.d.ts +40 -0
  55. package/components/AiAgentPopup/hooks/useStateStorage.d.ts +6 -0
  56. package/components/AiAgentPopup/index.cjs +1 -0
  57. package/components/AiAgentPopup/index.d.ts +3 -0
  58. package/components/AiAgentPopup/index.mjs +5 -0
  59. package/components/AnalyticalWidget/AnalyticalWidget.d.ts +8 -24
  60. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.d.ts +8 -24
  61. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
  62. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +1 -1
  63. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
  64. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +2 -2
  65. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
  66. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +2 -2
  67. package/components/AnalyticalWidget/index.cjs +1 -1
  68. package/components/AnalyticalWidget/index.mjs +1 -1
  69. package/components/ApprovalCenter/components/index.cjs +1 -1
  70. package/components/ApprovalCenter/components/index.mjs +1 -1
  71. package/components/ApprovalCenter/index.cjs +1 -1
  72. package/components/ApprovalCenter/index.mjs +1 -1
  73. package/components/Autocomplete/Autocomplete.d.ts +128 -128
  74. package/components/AutocompleteSearch/index.cjs +1 -1
  75. package/components/AutocompleteSearch/index.mjs +2 -2
  76. package/components/BlockGradientScroll/index.cjs +1 -1
  77. package/components/BlockGradientScroll/index.mjs +1 -1
  78. package/components/BlockTitle/index.cjs +1 -1
  79. package/components/BlockTitle/index.mjs +1 -1
  80. package/components/BlockTitle/utils/index.cjs +1 -1
  81. package/components/BlockTitle/utils/index.mjs +1 -1
  82. package/components/Collapse/index.cjs +1 -1
  83. package/components/Collapse/index.mjs +1 -1
  84. package/components/Combobox/index.cjs +1 -1
  85. package/components/Combobox/index.mjs +1 -1
  86. package/components/EmptyState/components/index.cjs +1 -1
  87. package/components/EmptyState/components/index.mjs +1 -1
  88. package/components/EmptyState/index.cjs +1 -1
  89. package/components/EmptyState/index.mjs +1 -1
  90. package/components/GridDND/index.cjs +1 -1
  91. package/components/GridDND/index.mjs +1 -1
  92. package/components/GridDND/utils/index.cjs +1 -1
  93. package/components/GridDND/utils/index.mjs +1 -1
  94. package/components/IconButton/index.cjs +1 -1
  95. package/components/IconButton/index.mjs +1 -1
  96. package/components/LeftPanel/components/index.cjs +1 -1
  97. package/components/LeftPanel/components/index.mjs +1 -1
  98. package/components/LeftPanel/hooks/index.cjs +1 -1
  99. package/components/LeftPanel/hooks/index.mjs +1 -1
  100. package/components/LeftPanel/index.cjs +1 -1
  101. package/components/LeftPanel/index.mjs +1 -1
  102. package/components/LeftPanel/utils/index.cjs +1 -1
  103. package/components/LeftPanel/utils/index.mjs +1 -1
  104. package/components/ListOfFilters/index.cjs +1 -1
  105. package/components/ListOfFilters/index.mjs +1 -1
  106. package/components/MassActions/hooks/index.cjs +1 -1
  107. package/components/MassActions/hooks/index.mjs +1 -1
  108. package/components/MassActions/index.cjs +1 -1
  109. package/components/MassActions/index.mjs +1 -1
  110. package/components/ModalDF/index.cjs +1 -1
  111. package/components/ModalDF/index.mjs +1 -1
  112. package/components/Notification/index.cjs +1 -1
  113. package/components/Notification/index.mjs +6 -6
  114. package/components/PageTitle/index.cjs +1 -1
  115. package/components/PageTitle/index.mjs +1 -1
  116. package/components/PageTitle/utils/index.cjs +1 -1
  117. package/components/PageTitle/utils/index.mjs +1 -1
  118. package/components/PopoverDF/index.cjs +1 -1
  119. package/components/PopoverDF/index.mjs +9 -9
  120. package/components/PopoverDF/styled.d.ts +1 -23
  121. package/components/PopupDF/index.cjs +1 -1
  122. package/components/PopupDF/index.mjs +118 -143
  123. package/components/SplitView/index.cjs +1 -1
  124. package/components/SplitView/index.mjs +1 -1
  125. package/components/SplitView/utils/index.cjs +1 -1
  126. package/components/SplitView/utils/index.mjs +1 -1
  127. package/components/Stories/components/StoriesBanner/index.cjs +1 -1
  128. package/components/Stories/components/StoriesBanner/index.mjs +1 -1
  129. package/components/Stories/components/StoriesContent/index.cjs +1 -1
  130. package/components/Stories/components/StoriesContent/index.mjs +1 -1
  131. package/components/Stories/components/StoriesPreview/index.cjs +1 -1
  132. package/components/Stories/components/StoriesPreview/index.mjs +1 -1
  133. package/components/Stories/components/StoriesProgress/index.cjs +1 -1
  134. package/components/Stories/components/StoriesProgress/index.mjs +1 -1
  135. package/components/Stories/components/StoriesViewer/index.cjs +1 -1
  136. package/components/Stories/components/StoriesViewer/index.mjs +1 -1
  137. package/components/Stories/index.cjs +1 -1
  138. package/components/Stories/index.mjs +1 -1
  139. package/components/Table/components/TableDropdown/index.cjs +1 -1
  140. package/components/Table/components/TableDropdown/index.mjs +1 -1
  141. package/components/Table/feature-collapse-table/index.cjs +1 -1
  142. package/components/Table/feature-collapse-table/index.mjs +1 -1
  143. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  144. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  145. package/components/Table/feature-column-control/index.cjs +1 -1
  146. package/components/Table/feature-column-control/index.mjs +1 -1
  147. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  148. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  149. package/components/Table/feature-context-menu/index.cjs +1 -1
  150. package/components/Table/feature-context-menu/index.mjs +1 -1
  151. package/components/Table/feature-edit/index.cjs +1 -1
  152. package/components/Table/feature-edit/index.mjs +1 -1
  153. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  154. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  155. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  156. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  157. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  158. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  159. package/components/Table/feature-filtering/index.cjs +1 -1
  160. package/components/Table/feature-filtering/index.mjs +1 -1
  161. package/components/Table/feature-filtering/popover.d.ts +1 -23
  162. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  163. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  164. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  165. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  166. package/components/Table/feature-key-text/index.cjs +1 -1
  167. package/components/Table/feature-key-text/index.mjs +1 -1
  168. package/components/Table/feature-pagination/index.cjs +1 -1
  169. package/components/Table/feature-pagination/index.mjs +1 -1
  170. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  171. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  172. package/components/Table/feature-row-detail/index.cjs +1 -1
  173. package/components/Table/feature-row-detail/index.mjs +1 -1
  174. package/components/Table/feature-row-instruments/index.cjs +1 -1
  175. package/components/Table/feature-row-instruments/index.mjs +1 -1
  176. package/components/Table/feature-row-size/index.cjs +1 -1
  177. package/components/Table/feature-row-size/index.mjs +1 -1
  178. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  179. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  180. package/components/Table/feature-searching/index.cjs +1 -1
  181. package/components/Table/feature-searching/index.mjs +1 -1
  182. package/components/Table/feature-searching/styled.d.ts +128 -128
  183. package/components/Table/feature-select-row/index.cjs +1 -1
  184. package/components/Table/feature-select-row/index.mjs +1 -1
  185. package/components/Table/feature-sorting/index.cjs +1 -1
  186. package/components/Table/feature-sorting/index.mjs +1 -1
  187. package/components/Table/feature-table-settings/index.cjs +1 -1
  188. package/components/Table/feature-table-settings/index.mjs +1 -1
  189. package/components/Table/feature-tree/index.cjs +1 -1
  190. package/components/Table/feature-tree/index.mjs +1 -1
  191. package/components/Table/index.cjs +1 -1
  192. package/components/Table/index.mjs +1 -1
  193. package/components/Table/renders/formatCell/index.cjs +1 -1
  194. package/components/Table/renders/formatCell/index.mjs +1 -1
  195. package/components/Table/styles/index.cjs +1 -1
  196. package/components/Table/styles/index.mjs +1 -1
  197. package/components/Table/table-hooks/index.cjs +1 -1
  198. package/components/Table/table-hooks/index.mjs +1 -1
  199. package/components/Table/types/index.cjs +1 -1
  200. package/components/Table/types/index.mjs +1 -1
  201. package/components/Table/types/utils.type.d.ts +1 -1
  202. package/components/Table/utils/index.cjs +1 -1
  203. package/components/Table/utils/index.mjs +1 -1
  204. package/components/Table/widgets/control-block/index.cjs +1 -1
  205. package/components/Table/widgets/control-block/index.mjs +1 -1
  206. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  207. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  208. package/components/Table/widgets/index.cjs +1 -1
  209. package/components/Table/widgets/index.mjs +1 -1
  210. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  211. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  212. package/components/TableCanvas/TableGlideInstance/TableGlideInstance.d.ts +1 -1
  213. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  214. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  215. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  216. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  217. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  218. package/components/TableCanvas/TableGlideInstance/index.mjs +6 -6
  219. package/components/TableCanvas/TableGlideInstance/type.d.ts +3 -0
  220. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  221. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +2 -2
  222. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  223. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  224. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  225. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  226. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  227. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  228. package/components/TableCanvas/contexts.d.ts +8 -2
  229. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  230. package/components/TableCanvas/feature-cell-transfer/index.mjs +13 -13
  231. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  232. package/components/TableCanvas/feature-collapse-table/index.mjs +2 -2
  233. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  234. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +2 -2
  235. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  236. package/components/TableCanvas/feature-column-control/index.mjs +4 -4
  237. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  238. package/components/TableCanvas/feature-columns-grouping/index.mjs +3 -3
  239. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  240. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  241. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  242. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  243. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  244. package/components/TableCanvas/feature-edit/index.mjs +6 -6
  245. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  246. package/components/TableCanvas/feature-filtering/combobox/index.mjs +4 -4
  247. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  248. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  249. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  250. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  251. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  252. package/components/TableCanvas/feature-filtering/index.mjs +3 -3
  253. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  254. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  255. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  256. package/components/TableCanvas/feature-infinity-scroll/index.mjs +4 -4
  257. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  258. package/components/TableCanvas/feature-key-text/index.mjs +6 -6
  259. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  260. package/components/TableCanvas/feature-notifications/index.mjs +2 -2
  261. package/components/TableCanvas/feature-pagination/TablePagination.d.ts +2 -0
  262. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  263. package/components/TableCanvas/feature-pagination/index.mjs +3 -3
  264. package/components/TableCanvas/feature-popover-table/components/styled.d.ts +1 -23
  265. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  266. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  267. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  268. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  269. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  270. package/components/TableCanvas/feature-popover-table/index.mjs +3 -3
  271. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  272. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  273. package/components/TableCanvas/feature-right-sidebar/compatibility.d.ts +8 -0
  274. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  275. package/components/TableCanvas/feature-right-sidebar/index.d.ts +2 -3
  276. package/components/TableCanvas/feature-right-sidebar/index.mjs +3 -3
  277. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  278. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  279. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  280. package/components/TableCanvas/feature-row-instruments/index.mjs +7 -7
  281. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  282. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  283. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  284. package/components/TableCanvas/feature-row-size/index.mjs +4 -4
  285. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  286. package/components/TableCanvas/feature-rows-grouping/index.mjs +10 -10
  287. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  288. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  289. package/components/TableCanvas/feature-searching/styled.d.ts +128 -128
  290. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  291. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  292. package/components/TableCanvas/feature-sidebar/constants.d.ts +7 -0
  293. package/components/TableCanvas/feature-sidebar/getCustomSidebarTabs.d.ts +4 -0
  294. package/components/TableCanvas/feature-sidebar/index.cjs +1 -0
  295. package/components/TableCanvas/feature-sidebar/index.d.ts +1 -0
  296. package/components/TableCanvas/feature-sidebar/index.mjs +4 -0
  297. package/components/TableCanvas/feature-sidebar/ui/BottomSheet.d.ts +6 -0
  298. package/components/TableCanvas/feature-sidebar/ui/BottomSheet.styled.d.ts +6 -0
  299. package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/SidebarContentLayout.d.ts +1 -0
  300. package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/SidebarTabs.d.ts +2 -1
  301. package/components/TableCanvas/feature-sidebar/ui/TableSidebar.d.ts +16 -0
  302. package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/styled.d.ts +5 -2
  303. package/components/TableCanvas/feature-sidebar/useSidebarTabsState.d.ts +14 -0
  304. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  305. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  306. package/components/TableCanvas/feature-sticky/index.cjs +1 -0
  307. package/components/TableCanvas/feature-sticky/index.d.ts +3 -0
  308. package/components/TableCanvas/feature-sticky/index.mjs +5 -0
  309. package/components/TableCanvas/feature-sticky/types.d.ts +2 -0
  310. package/components/TableCanvas/feature-sticky/useStickyColumnIndexes.d.ts +8 -0
  311. package/components/TableCanvas/feature-sticky/useStickyRowIndexes.d.ts +3 -0
  312. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  313. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  314. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  315. package/components/TableCanvas/feature-tooltip/index.mjs +2 -2
  316. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  317. package/components/TableCanvas/feature-tooltip/utils/index.mjs +4 -4
  318. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  319. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  320. package/components/TableCanvas/index.cjs +1 -1
  321. package/components/TableCanvas/index.d.ts +2 -1
  322. package/components/TableCanvas/index.mjs +43 -41
  323. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  324. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  325. package/components/TableCanvas/styles/classNames.d.ts +1 -0
  326. package/components/TableCanvas/styles/getReservedTableHeight.d.ts +18 -0
  327. package/components/TableCanvas/styles/index.cjs +1 -1
  328. package/components/TableCanvas/styles/index.mjs +10 -10
  329. package/components/TableCanvas/styles/styles.constants.d.ts +1 -1
  330. package/components/TableCanvas/styles/styles.d.ts +2 -5
  331. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  332. package/components/TableCanvas/table-hooks/index.mjs +4 -4
  333. package/components/TableCanvas/table-hooks/useInlineStyle.d.ts +2 -1
  334. package/components/TableCanvas/table-hooks/useLeftSidebarValues.d.ts +7 -0
  335. package/components/TableCanvas/table-hooks/useSidebarOpenState.d.ts +11 -0
  336. package/components/TableCanvas/table-hooks/useSidebarValues.d.ts +1 -0
  337. package/components/TableCanvas/types/index.cjs +1 -1
  338. package/components/TableCanvas/types/index.mjs +2 -2
  339. package/components/TableCanvas/types/table-config.type.d.ts +19 -1
  340. package/components/TableCanvas/utils/index.cjs +1 -1
  341. package/components/TableCanvas/utils/index.mjs +2 -2
  342. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  343. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  344. package/components/TableCanvas/widgets/control-block/control-block.constants.d.ts +6 -0
  345. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  346. package/components/TableCanvas/widgets/control-block/index.mjs +5 -5
  347. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  348. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  349. package/components/TableCanvas/widgets/control-block/types.d.ts +1 -0
  350. package/components/TableCanvas/widgets/index.cjs +1 -1
  351. package/components/TableCanvas/widgets/index.mjs +5 -5
  352. package/components/TableCanvas/widgets/mass-actions/MassActions.d.ts +2 -1
  353. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  354. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  355. package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsCanvasWidth.d.ts +1 -0
  356. package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsCompression.d.ts +1 -1
  357. package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsSidebar.d.ts +4 -1
  358. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  359. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  360. package/components/TableCanvas/widgets/table-or-card-UI.d.ts +6 -3
  361. package/components/TableContract/index.cjs +1 -1
  362. package/components/TableContract/index.mjs +2 -2
  363. package/components/TableGlide/TableGlide.d.ts +1 -1
  364. package/components/TableGlide/constants.d.ts +3 -3
  365. package/components/TableGlide/content-tokens.generated.d.ts +612 -0
  366. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  367. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  368. package/components/TableGlide/hooks/selection/useBaseHighlightRegions.d.ts +2 -1
  369. package/components/TableGlide/hooks/selection/useColoringLayers.d.ts +2 -3
  370. package/components/TableGlide/hooks/selection/useColumnRowHighlightRegions.d.ts +1 -4
  371. package/components/TableGlide/hooks/selection/useSelectionGeometry.d.ts +3 -1
  372. package/components/TableGlide/hooks/useErrorCellRanges.d.ts +1 -2
  373. package/components/TableGlide/index.cjs +1 -1
  374. package/components/TableGlide/index.mjs +31 -31
  375. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  376. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +4 -4
  377. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  378. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  379. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  380. package/components/TableGlide/lib/canvas/cells/index.mjs +13 -13
  381. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  382. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +4 -4
  383. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  384. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  385. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  386. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  387. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  388. package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
  389. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  390. package/components/TableGlide/lib/canvas/index.mjs +34 -34
  391. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  392. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  393. package/components/TableGlide/lib/canvas/primitives/CanvasLink.d.ts +2 -2
  394. package/components/TableGlide/lib/canvas/primitives/CanvasText.d.ts +3 -1
  395. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  396. package/components/TableGlide/lib/canvas/primitives/index.mjs +5 -5
  397. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  398. package/components/TableGlide/lib/canvas/utils/index.mjs +2 -2
  399. package/components/TableGlide/theming/activeTheme.type.d.ts +3 -1
  400. package/components/TableGlide/theming/cell-fill-override.d.ts +31 -0
  401. package/components/TableGlide/theming/custom-colors.d.ts +46 -11
  402. package/components/TableGlide/theming/fill-states.d.ts +19 -0
  403. package/components/TableGlide/theming/glide-colors.d.ts +14 -14
  404. package/components/TableGlide/theming/index.cjs +1 -1
  405. package/components/TableGlide/theming/index.mjs +1 -1
  406. package/components/TableGlide/theming/size-tokens.d.ts +1 -1
  407. package/components/TableGlide/theming/table-colors.generated.d.ts +529 -0
  408. package/components/TableGlide/tokens.d.ts +1 -104
  409. package/components/TableGlide/types.d.ts +3 -5
  410. package/components/TableTabs/index.cjs +1 -1
  411. package/components/TableTabs/index.mjs +1 -1
  412. package/components/Tooltip/index.cjs +1 -1
  413. package/components/Tooltip/index.mjs +1 -1
  414. package/components/TourWidget/index.cjs +3 -3
  415. package/components/TourWidget/index.mjs +14 -14
  416. package/components/Typography/index.cjs +1 -1
  417. package/components/Typography/index.mjs +1 -1
  418. package/components/Widget/index.cjs +1 -1
  419. package/components/Widget/index.mjs +2 -2
  420. package/formComponents/FormCombobox/index.cjs +1 -1
  421. package/formComponents/FormCombobox/index.mjs +1 -1
  422. package/formComponents/FormRadioGroupBox/index.cjs +1 -1
  423. package/formComponents/FormRadioGroupBox/index.mjs +1 -1
  424. package/formComponents/FormSegments/index.cjs +1 -1
  425. package/formComponents/FormSegments/index.mjs +1 -1
  426. package/formComponents/FormSwitch/index.cjs +1 -1
  427. package/formComponents/FormSwitch/index.mjs +1 -1
  428. package/index.cjs +1 -1
  429. package/index.d.ts +3 -1
  430. package/index.mjs +1864 -1859
  431. package/layouts/Container/index.cjs +1 -1
  432. package/layouts/Container/index.mjs +1 -1
  433. package/layouts/Container/lib/utils/index.cjs +1 -1
  434. package/layouts/Container/lib/utils/index.mjs +1 -1
  435. package/layouts/ErrorPage/index.cjs +1 -1
  436. package/layouts/ErrorPage/index.mjs +1 -1
  437. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  438. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  439. package/layouts/FiltersActions/index.cjs +1 -1
  440. package/layouts/FiltersActions/index.mjs +1 -1
  441. package/layouts/Layout/index.cjs +1 -1
  442. package/layouts/Layout/index.mjs +1 -1
  443. package/layouts/PageLayout/index.cjs +1 -1
  444. package/layouts/PageLayout/index.mjs +1 -1
  445. package/mcp-data/component-index.json +1158 -206
  446. package/mixins/index.cjs +4 -4
  447. package/mixins/index.mjs +61 -54
  448. package/package.json +6 -6
  449. package/shared/utils/resizable/index.cjs +1 -0
  450. package/shared/utils/resizable/index.d.ts +2 -0
  451. package/shared/utils/resizable/index.mjs +39 -0
  452. package/shared/utils/resizable/resizableConfig.d.ts +16 -0
  453. package/styles/index.cjs +1 -1
  454. package/styles/index.mjs +1 -1
  455. package/types/index.d.ts +1 -0
  456. package/types/utility.d.ts +1 -0
  457. package/utils/breakpoint/index.cjs +1 -1
  458. package/utils/breakpoint/index.mjs +2 -2
  459. package/utils/clickStream/index.cjs +1 -1
  460. package/utils/clickStream/index.mjs +1 -1
  461. package/utils/eventBus/index.cjs +1 -1
  462. package/utils/eventBus/index.mjs +1 -1
  463. package/utils/getActiveTheme.d.ts +1 -1
  464. package/utils/hooks/index.cjs +1 -1
  465. package/utils/hooks/index.mjs +1 -1
  466. package/utils/index.cjs +1 -1
  467. package/utils/index.mjs +8 -8
  468. package/utils/react/index.cjs +1 -1
  469. package/utils/react/index.mjs +1 -1
  470. package/utils/styles/index.cjs +1 -1
  471. package/utils/styles/index.mjs +1 -1
  472. package/chunks/AnalyticalWidget-BtyWKJuu.mjs +0 -537
  473. package/chunks/AnalyticalWidget-YytE3Rlw.cjs +0 -43
  474. package/chunks/ApprovalCenter-DdsLEipZ.cjs +0 -1
  475. package/chunks/BlockTitle-DC1McGof.cjs +0 -1
  476. package/chunks/FiltersActions-Bg5wvHFG.cjs +0 -1
  477. package/chunks/MassActions-BTrj9l-R.cjs +0 -1
  478. package/chunks/PageTitle-CrBeieoq.cjs +0 -9
  479. package/chunks/Stories-UYVANawW.cjs +0 -1
  480. package/chunks/TableCanvas-qnwh4c5g.cjs +0 -30
  481. package/chunks/TableGlide-BLbbkn4C.mjs +0 -8154
  482. package/chunks/TableGlide-CZ2mkokV.cjs +0 -1
  483. package/components/TableCanvas/feature-right-sidebar/constants.d.ts +0 -1
  484. package/components/TableCanvas/feature-right-sidebar/ui/TableSidebar.d.ts +0 -16
  485. /package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/TableSidebar.classnames.d.ts +0 -0
@@ -0,0 +1,43 @@
1
+ "use strict";const H=require("@salutejs/sdds-finai/beta"),N=require("../components/IconButton/index.cjs"),x=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),s=require("./utils-OQNruMpn.cjs"),S=require("react"),g=require("@salutejs/sdds-themes/tokens/sdds_finai"),a=require("styled-components"),W=require("@salutejs/plasma-icons"),j=require("../components/Collapse/index.cjs"),f=require("./AiAgentPopup-CLGSjg5L.cjs"),R={l:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"12px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"12px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"12px",borderRadius:"16px"}},m:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"}},s:{xl:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},lg:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},md:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"}}},I={l:{topSlot:!0,middleSlot:!0},m:{topSlot:!0,middleSlot:!1},s:{topSlot:!0,middleSlot:!1}},d={root:"analytical-widget",header:"analytical-widget__header",popoverInfo:"analytical-widget__popover-info",topSlot:"analytical-widget__top-slot",middleSlot:"analytical-widget__middle-slot",contentSlot:"analytical-widget__content",headerActions:"analytical-widget__header-actions",selfSpacedTopSlot:"analytical-widget__self-spaced-top-slot",hasRightSlot:"analytical-widget--has-right-slot"},$=a.div.withConfig({displayName:"AnalyticalWidgetIconButtonDotsstyled__StyledAbsoluteDots"})(["position:absolute;top:","px;right:","px;."," ~ &,&:has(~ .","),&:has(~ * .","){top:","px;}"],({$offset:t})=>t,({$offset:t})=>t,d.hasRightSlot,d.hasRightSlot,d.hasRightSlot,({$offset:t})=>t+4),_=S.forwardRef(({dropdownProps:t,iconSize:i,iconOrientation:r="vertical",view:h="default",size:n="m",absolute:c=!1,absoluteOffset:l=12,style:y,...o},m)=>{const p=r==="vertical"?W.IconDotsVerticalOutline:W.IconDotsHorizontalOutline,u=e.jsx(H.EmbeddedButton,{ref:m,view:h,size:n,style:y,...o,children:e.jsx(p,{size:i??"s"})}),C=t?e.jsx(x.Dropdown,{...t,children:u}):u;return c?e.jsx($,{$offset:l,children:C}):C});_.displayName="AnalyticalWidgetIconButtonDots";const B=a(x.Chip).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChip"})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]),k=a(x.ChipGroup).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChipGroup"})(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);padding-top:8px;"]),A=({chips:t,commonView:i="default",commonSize:r="xs",opened:h=!1,...n})=>{const c=s.useDebouncedValue(h,300,!1),l=S.useRef(t);t.length>0&&(l.current=t);const y=t.length>0?t:l.current;return e.jsx("div",{className:d.selfSpacedTopSlot,children:e.jsx(j.Collapse,{isOpen:c,unMountOnClose:!0,children:e.jsx(k,{view:i,size:r,isCommonChipStyles:!1,...n,children:y.map(({key:o,view:m,...p},u)=>S.createElement(B,{size:"xs",appearance:"transparent",...p,key:o??`${p==null?void 0:p.name}-${u}`}))})})})},D=()=>a.css(g.bodyMBold),b=()=>a.css(g.bodyM),q=a.header.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledHeader"})(["display:flex;justify-content:space-between;align-items:center;padding-right:24px;& .popover-wrapper:has(.","){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"],d.popoverInfo),L=a.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLeftSlot"})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;margin-right:16px;"]),G=a.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleContainer"})(["margin:0;display:flex;align-items:center;flex-shrink:1;min-width:0;"]);a.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitle"})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';",";color:",";"],()=>D(),()=>g.textPrimary);const z=a(f.TypographyWithAutoTooltip).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),M=a(f.TypographyWithAutoTooltip).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),O=a.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledAfterTitle"})(["flex-shrink:0;margin:0;margin-right:4px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';"," color:",";text-transform:uppercase;"],()=>b(),()=>g.textTertiary),E=a.div.attrs({className:d.headerActions}).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledHeaderActions"})(["display:inline-flex;align-items:center;flex-shrink:0;opacity:0;transition:opacity 0.3s ease;"]);a.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitle"})([""," flex-shrink:1;margin:0;min-width:0;color:",";"],()=>b(),()=>g.textSecondary);a(f.Typography).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"})(["color:",";"],()=>g.textSecondary);const F=a(x.Link).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleLink"})(["display:flex;min-width:0;flex-shrink:1;"]);a(f.TypographyWithAutoTooltip).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"})(["flex-shrink:1;margin:0;min-width:0;"]);const V=a.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledRightSlot"})(["align-self:start;flex-shrink:0;"]),v=({title:t,titleTooltipProps:i})=>typeof t!="string"?e.jsx(e.Fragment,{children:t}):e.jsx(z,{tooltipText:t,tooltipProps:{placement:"top",...i},variant:"BodyM",bold:!0,style:{color:g.textPrimary,wordBreak:"normal"},lines:1,children:t}),T=({title:t,titleTooltipProps:i,badge:r,badgeStyles:h,subtitle:n,subtitleTooltipProps:c,infoTooltipText:l,infoTooltipProps:y,rightSlot:o,className:m,titleLinkProps:p})=>e.jsxs(q,{className:s.mergeClasses(d.header,m),children:[e.jsxs(L,{children:[e.jsxs(G,{children:[t&&p?e.jsx(F,{underline:"none",...p,children:e.jsx(v,{title:t,titleTooltipProps:i})}):e.jsx(v,{title:t,titleTooltipProps:i}),r&&e.jsx(O,{style:h,children:r}),l&&e.jsx(E,{children:e.jsx(x.Tooltip,{trigger:"hover",placement:"top",text:l,target:e.jsx(W.IconInfoCircleOutline,{size:"xs",style:{cursor:"pointer",color:g.textSecondary}}),className:s.mergeClasses(d.popoverInfo),...y})})]}),n&&(typeof n=="string"?e.jsx(M,{variant:"BodyXS",tooltipText:n,style:{color:g.textSecondary,wordBreak:"normal"},tooltipProps:{placement:"top",...c},lines:1,children:n}):n)]}),o&&e.jsx(V,{children:o})]}),Y=t=>{const i=R[t];return{xl:`
2
+ --analytical-widget-padding: ${i.xl.padding};
3
+ --analytical-widget-br: ${i.xl.borderRadius};
4
+ --analytical-widget-min-height: ${i.xl.minHeight};
5
+ --analytical-widget-min-width: ${i.xl.minWidth||"unset"};
6
+ --analytical-widget-max-width: ${i.xl.maxWidth||"unset"};
7
+
8
+ width: ${i.xl.width};
9
+ min-height: var(--analytical-widget-min-height);
10
+ height: 100%;
11
+ min-width: var(--analytical-widget-min-width);
12
+ max-width: var(--analytical-widget-max-width);
13
+ padding: var(--analytical-widget-padding);
14
+ border-radius: var(--analytical-widget-br);
15
+ `,lg:`
16
+ --analytical-widget-padding: ${i.lg.padding};
17
+ --analytical-widget-br: ${i.lg.borderRadius};
18
+ --analytical-widget-min-height: ${i.lg.minHeight};
19
+ --analytical-widget-min-width: ${i.lg.minWidth||"unset"};
20
+ --analytical-widget-max-width: ${i.lg.maxWidth||"unset"};
21
+
22
+ width: ${i.lg.width};
23
+ min-height: var(--analytical-widget-min-height);
24
+ height: 100%;
25
+ min-width: var(--analytical-widget-min-width);
26
+ max-width: var(--analytical-widget-max-width);
27
+ padding: var(--analytical-widget-padding);
28
+ border-radius: var(--analytical-widget-br);
29
+ `,md:`
30
+ --analytical-widget-padding: ${i.md.padding};
31
+ --analytical-widget-br: ${i.md.borderRadius};
32
+ --analytical-widget-min-height: ${i.md.minHeight};
33
+ --analytical-widget-min-width: ${i.md.minWidth||"unset"};
34
+ --analytical-widget-max-width: ${i.md.maxWidth||"unset"};
35
+
36
+ width: ${i.md.width};
37
+ min-height: var(--analytical-widget-min-height);
38
+ height: 100%;
39
+ min-width: var(--analytical-widget-min-width);
40
+ max-width: var(--analytical-widget-max-width);
41
+ padding: var(--analytical-widget-padding);
42
+ border-radius: var(--analytical-widget-br);
43
+ `}},X=a.article.withConfig({displayName:"AnalyticalWidgetstyled__StyledWidget"})(["--analytical-widget-bg:",";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.","{opacity:1;}}"," ",""],g.surfaceSolidCard,d.headerActions,({$size:t})=>{const i=Y(t);return a.css([""," "," "," "],s.media.exact(0,1439)(i.md),s.media.exact(1440,1919)(i.lg),s.media.exact(1920,1e5)(i.xl))},({$css:t})=>t),J=a(x.BodyM).withConfig({displayName:"AnalyticalWidgetstyled__StyledTopSlot"})(["overflow:hidden;margin-top:8px;&:empty{margin-top:0;}&:has(.","){margin-top:0;}"],d.selfSpacedTopSlot),K=a.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledMiddleSlot"})(["overflow:hidden;padding-top:8px;"]),Q=a.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledContent"})(["position:relative;flex:1;min-height:30px;margin-top:8px;overflow-y:",";"],({scrollable:t})=>t?"auto":"visible"),w=({size:t="l",scrollable:i=!0,headerSlot:r,topSlot:h,middleSlot:n,contentSlot:c,classes:l,$css:y})=>{const o=I[t],m=S.isValidElement(r)&&!!r.props.rightSlot;return e.jsxs(X,{$size:t,$css:y,className:s.mergeClasses(d.root,m?d.hasRightSlot:void 0,l==null?void 0:l.root),children:[e.jsx("div",{style:{minHeight:"32px"},children:r}),o.topSlot&&h||o.middleSlot&&n?e.jsxs("div",{children:[o.topSlot&&h&&e.jsx(J,{className:s.mergeClasses(d.topSlot,l==null?void 0:l.topSlot),children:h}),o.middleSlot&&n&&e.jsx(K,{className:s.mergeClasses(d.middleSlot,l==null?void 0:l.middleSlot),children:n})]}):null,e.jsx(Q,{scrollable:i,className:s.mergeClasses(d.contentSlot,l==null?void 0:l.contentSlot),children:c})]})};w.Header=T;w.FilterIconButton=N.IconButtonFilter;w.DotsIconButton=_;w.Chips=A;exports.AnalyticalWidget=w;exports.AnalyticalWidgetChipsGroup=A;exports.AnalyticalWidgetHeader=T;exports.AnalyticalWidgetIconButtonDots=_;exports.analyticalWidgetClassNames=d;
@@ -0,0 +1,352 @@
1
+ import { EmbeddedButton as H } from "@salutejs/sdds-finai/beta";
2
+ import { IconButtonFilter as T } from "../components/IconButton/index.mjs";
3
+ import { Dropdown as N, ChipGroup as R, Chip as $, Link as I, Tooltip as k, BodyM as B } from "@salutejs/sdds-finai";
4
+ import { jsx as e, Fragment as D, jsxs as c } from "react/jsx-runtime";
5
+ import { u as L, m, b as u } from "./utils-Hu77fGGe.mjs";
6
+ import { forwardRef as z, useRef as G, createElement as M, isValidElement as O } from "react";
7
+ import { textTertiary as E, bodyM as F, textPrimary as C, textSecondary as w, bodyMBold as V, surfaceSolidCard as j } from "@salutejs/sdds-themes/tokens/sdds_finai";
8
+ import l, { css as S } from "styled-components";
9
+ import { IconDotsVerticalOutline as Y, IconDotsHorizontalOutline as X, IconInfoCircleOutline as q } from "@salutejs/plasma-icons";
10
+ import { Collapse as J } from "../components/Collapse/index.mjs";
11
+ import { T as W, a as K } from "./AiAgentPopup-CtMhai1X.mjs";
12
+ const Q = {
13
+ l: {
14
+ xl: {
15
+ minWidth: "448px",
16
+ maxWidth: "unset",
17
+ // 608
18
+ width: "100%",
19
+ minHeight: "512px",
20
+ padding: "12px",
21
+ borderRadius: "16px"
22
+ },
23
+ lg: {
24
+ minWidth: "448px",
25
+ maxWidth: "unset",
26
+ // 608
27
+ width: "100%",
28
+ minHeight: "512px",
29
+ // 432px
30
+ padding: "12px",
31
+ borderRadius: "16px"
32
+ },
33
+ md: {
34
+ minWidth: "448px",
35
+ maxWidth: "unset",
36
+ // 608
37
+ width: "100%",
38
+ minHeight: "512px",
39
+ // 344px
40
+ padding: "12px",
41
+ borderRadius: "16px"
42
+ }
43
+ },
44
+ m: {
45
+ xl: {
46
+ minWidth: "448px",
47
+ maxWidth: "unset",
48
+ // 608
49
+ width: "100%",
50
+ minHeight: "248px",
51
+ padding: "12px",
52
+ borderRadius: "16px"
53
+ },
54
+ lg: {
55
+ minWidth: "448px",
56
+ maxWidth: "unset",
57
+ // 608
58
+ width: "100%",
59
+ minHeight: "248px",
60
+ // 208px
61
+ padding: "12px",
62
+ borderRadius: "16px"
63
+ },
64
+ md: {
65
+ minWidth: "448px",
66
+ maxWidth: "unset",
67
+ // 608
68
+ width: "100%",
69
+ minHeight: "248px",
70
+ // 172px
71
+ padding: "12px",
72
+ borderRadius: "16px"
73
+ }
74
+ },
75
+ s: {
76
+ xl: {
77
+ minWidth: "216px",
78
+ maxWidth: "unset",
79
+ // 296px
80
+ width: "100%",
81
+ minHeight: "248px",
82
+ padding: "12px",
83
+ borderRadius: "16px"
84
+ },
85
+ lg: {
86
+ minWidth: "216px",
87
+ maxWidth: "unset",
88
+ // 296px
89
+ width: "100%",
90
+ minHeight: "248px",
91
+ // 208px
92
+ padding: "12px",
93
+ borderRadius: "16px"
94
+ },
95
+ md: {
96
+ minWidth: "216px",
97
+ maxWidth: "unset",
98
+ // 296px
99
+ width: "100%",
100
+ minHeight: "248px",
101
+ // 172px
102
+ padding: "12px",
103
+ borderRadius: "16px"
104
+ }
105
+ }
106
+ }, U = {
107
+ l: {
108
+ topSlot: !0,
109
+ // Filters + chips
110
+ middleSlot: !0
111
+ // Tabs
112
+ },
113
+ m: {
114
+ topSlot: !0,
115
+ // Filters + chips
116
+ middleSlot: !1
117
+ // Tabs
118
+ },
119
+ s: {
120
+ topSlot: !0,
121
+ // Filters + chips
122
+ middleSlot: !1
123
+ // Tabs
124
+ }
125
+ }, d = {
126
+ root: "analytical-widget",
127
+ header: "analytical-widget__header",
128
+ popoverInfo: "analytical-widget__popover-info",
129
+ topSlot: "analytical-widget__top-slot",
130
+ middleSlot: "analytical-widget__middle-slot",
131
+ contentSlot: "analytical-widget__content",
132
+ headerActions: "analytical-widget__header-actions",
133
+ selfSpacedTopSlot: "analytical-widget__self-spaced-top-slot",
134
+ // Маркер на корне виджета: rightSlot шапки заполнен. По нему абсолютная
135
+ // dots-кнопка (сиблинг) поднимает top с 12 до 16 через CSS.
136
+ hasRightSlot: "analytical-widget--has-right-slot"
137
+ }, Z = l.div.withConfig({
138
+ displayName: "AnalyticalWidgetIconButtonDotsstyled__StyledAbsoluteDots"
139
+ })(["position:absolute;top:", "px;right:", "px;.", " ~ &,&:has(~ .", "),&:has(~ * .", "){top:", "px;}"], ({
140
+ $offset: t
141
+ }) => t, ({
142
+ $offset: t
143
+ }) => t, d.hasRightSlot, d.hasRightSlot, d.hasRightSlot, ({
144
+ $offset: t
145
+ }) => t + 4), b = z(({
146
+ dropdownProps: t,
147
+ iconSize: i,
148
+ iconOrientation: r = "vertical",
149
+ view: p = "default",
150
+ size: n = "m",
151
+ absolute: s = !1,
152
+ absoluteOffset: a = 12,
153
+ style: g,
154
+ ...o
155
+ }, y) => {
156
+ const x = /* @__PURE__ */ e(H, { ref: y, view: p, size: n, style: g, ...o, children: /* @__PURE__ */ e(r === "vertical" ? Y : X, { size: i ?? "s" }) }), _ = t ? /* @__PURE__ */ e(N, { ...t, children: x }) : x;
157
+ return s ? /* @__PURE__ */ e(Z, { $offset: a, children: _ }) : _;
158
+ });
159
+ b.displayName = "AnalyticalWidgetIconButtonDots";
160
+ const P = l($).withConfig({
161
+ displayName: "AnalyticalWidgetChipsGroupstyled__StyledChip"
162
+ })(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]), tt = l(R).withConfig({
163
+ displayName: "AnalyticalWidgetChipsGroupstyled__StyledChipGroup"
164
+ })(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);padding-top:8px;"]), it = ({
165
+ chips: t,
166
+ commonView: i = "default",
167
+ commonSize: r = "xs",
168
+ opened: p = !1,
169
+ ...n
170
+ }) => {
171
+ const s = L(p, 300, !1), a = G(t);
172
+ t.length > 0 && (a.current = t);
173
+ const g = t.length > 0 ? t : a.current;
174
+ return /* @__PURE__ */ e("div", { className: d.selfSpacedTopSlot, children: /* @__PURE__ */ e(J, { isOpen: s, unMountOnClose: !0, children: /* @__PURE__ */ e(tt, { view: i, size: r, isCommonChipStyles: !1, ...n, children: g.map(({
175
+ key: o,
176
+ view: y,
177
+ ...h
178
+ }, x) => /* @__PURE__ */ M(P, { size: "xs", appearance: "transparent", ...h, key: o ?? `${h == null ? void 0 : h.name}-${x}` })) }) }) });
179
+ }, et = () => S(V), A = () => S(F), at = l.header.withConfig({
180
+ displayName: "AnalyticalWidgetHeaderstyled__StyledHeader"
181
+ })(["display:flex;justify-content:space-between;align-items:center;padding-right:24px;& .popover-wrapper:has(.", "){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"], d.popoverInfo), lt = l.div.withConfig({
182
+ displayName: "AnalyticalWidgetHeaderstyled__StyledLeftSlot"
183
+ })(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;margin-right:16px;"]), dt = l.div.withConfig({
184
+ displayName: "AnalyticalWidgetHeaderstyled__StyledTitleContainer"
185
+ })(["margin:0;display:flex;align-items:center;flex-shrink:1;min-width:0;"]);
186
+ l.p.withConfig({
187
+ displayName: "AnalyticalWidgetHeaderstyled__StyledTitle"
188
+ })(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () => et(), () => C);
189
+ const nt = l(W).withConfig({
190
+ displayName: "AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"
191
+ })(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), ot = l(W).withConfig({
192
+ displayName: "AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"
193
+ })(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), rt = l.p.withConfig({
194
+ displayName: "AnalyticalWidgetHeaderstyled__StyledAfterTitle"
195
+ })(["flex-shrink:0;margin:0;margin-right:4px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", " color:", ";text-transform:uppercase;"], () => A(), () => E), pt = l.div.attrs({
196
+ className: d.headerActions
197
+ }).withConfig({
198
+ displayName: "AnalyticalWidgetHeaderstyled__StyledHeaderActions"
199
+ })(["display:inline-flex;align-items:center;flex-shrink:0;opacity:0;transition:opacity 0.3s ease;"]);
200
+ l.p.withConfig({
201
+ displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitle"
202
+ })(["", " flex-shrink:1;margin:0;min-width:0;color:", ";"], () => A(), () => w);
203
+ l(K).withConfig({
204
+ displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"
205
+ })(["color:", ";"], () => w);
206
+ const ht = l(I).withConfig({
207
+ displayName: "AnalyticalWidgetHeaderstyled__StyledTitleLink"
208
+ })(["display:flex;min-width:0;flex-shrink:1;"]);
209
+ l(W).withConfig({
210
+ displayName: "AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"
211
+ })(["flex-shrink:1;margin:0;min-width:0;"]);
212
+ const st = l.div.withConfig({
213
+ displayName: "AnalyticalWidgetHeaderstyled__StyledRightSlot"
214
+ })(["align-self:start;flex-shrink:0;"]), v = ({
215
+ title: t,
216
+ titleTooltipProps: i
217
+ }) => typeof t != "string" ? /* @__PURE__ */ e(D, { children: t }) : /* @__PURE__ */ e(nt, { tooltipText: t, tooltipProps: {
218
+ placement: "top",
219
+ ...i
220
+ }, variant: "BodyM", bold: !0, style: {
221
+ color: C,
222
+ wordBreak: "normal"
223
+ }, lines: 1, children: t }), gt = ({
224
+ title: t,
225
+ titleTooltipProps: i,
226
+ badge: r,
227
+ badgeStyles: p,
228
+ subtitle: n,
229
+ subtitleTooltipProps: s,
230
+ infoTooltipText: a,
231
+ infoTooltipProps: g,
232
+ rightSlot: o,
233
+ className: y,
234
+ titleLinkProps: h
235
+ }) => /* @__PURE__ */ c(at, { className: m(d.header, y), children: [
236
+ /* @__PURE__ */ c(lt, { children: [
237
+ /* @__PURE__ */ c(dt, { children: [
238
+ t && h ? /* @__PURE__ */ e(ht, { underline: "none", ...h, children: /* @__PURE__ */ e(v, { title: t, titleTooltipProps: i }) }) : /* @__PURE__ */ e(v, { title: t, titleTooltipProps: i }),
239
+ r && /* @__PURE__ */ e(rt, { style: p, children: r }),
240
+ a && /* @__PURE__ */ e(pt, { children: /* @__PURE__ */ e(k, { trigger: "hover", placement: "top", text: a, target: /* @__PURE__ */ e(q, { size: "xs", style: {
241
+ cursor: "pointer",
242
+ color: w
243
+ } }), className: m(d.popoverInfo), ...g }) })
244
+ ] }),
245
+ n && (typeof n == "string" ? /* @__PURE__ */ e(ot, { variant: "BodyXS", tooltipText: n, style: {
246
+ color: w,
247
+ wordBreak: "normal"
248
+ }, tooltipProps: {
249
+ placement: "top",
250
+ ...s
251
+ }, lines: 1, children: n }) : n)
252
+ ] }),
253
+ o && /* @__PURE__ */ e(st, { children: o })
254
+ ] }), yt = (t) => {
255
+ const i = Q[t];
256
+ return {
257
+ xl: `
258
+ --analytical-widget-padding: ${i.xl.padding};
259
+ --analytical-widget-br: ${i.xl.borderRadius};
260
+ --analytical-widget-min-height: ${i.xl.minHeight};
261
+ --analytical-widget-min-width: ${i.xl.minWidth || "unset"};
262
+ --analytical-widget-max-width: ${i.xl.maxWidth || "unset"};
263
+
264
+ width: ${i.xl.width};
265
+ min-height: var(--analytical-widget-min-height);
266
+ height: 100%;
267
+ min-width: var(--analytical-widget-min-width);
268
+ max-width: var(--analytical-widget-max-width);
269
+ padding: var(--analytical-widget-padding);
270
+ border-radius: var(--analytical-widget-br);
271
+ `,
272
+ lg: `
273
+ --analytical-widget-padding: ${i.lg.padding};
274
+ --analytical-widget-br: ${i.lg.borderRadius};
275
+ --analytical-widget-min-height: ${i.lg.minHeight};
276
+ --analytical-widget-min-width: ${i.lg.minWidth || "unset"};
277
+ --analytical-widget-max-width: ${i.lg.maxWidth || "unset"};
278
+
279
+ width: ${i.lg.width};
280
+ min-height: var(--analytical-widget-min-height);
281
+ height: 100%;
282
+ min-width: var(--analytical-widget-min-width);
283
+ max-width: var(--analytical-widget-max-width);
284
+ padding: var(--analytical-widget-padding);
285
+ border-radius: var(--analytical-widget-br);
286
+ `,
287
+ md: `
288
+ --analytical-widget-padding: ${i.md.padding};
289
+ --analytical-widget-br: ${i.md.borderRadius};
290
+ --analytical-widget-min-height: ${i.md.minHeight};
291
+ --analytical-widget-min-width: ${i.md.minWidth || "unset"};
292
+ --analytical-widget-max-width: ${i.md.maxWidth || "unset"};
293
+
294
+ width: ${i.md.width};
295
+ min-height: var(--analytical-widget-min-height);
296
+ height: 100%;
297
+ min-width: var(--analytical-widget-min-width);
298
+ max-width: var(--analytical-widget-max-width);
299
+ padding: var(--analytical-widget-padding);
300
+ border-radius: var(--analytical-widget-br);
301
+ `
302
+ };
303
+ }, mt = l.article.withConfig({
304
+ displayName: "AnalyticalWidgetstyled__StyledWidget"
305
+ })(["--analytical-widget-bg:", ";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.", "{opacity:1;}}", " ", ""], j, d.headerActions, ({
306
+ $size: t
307
+ }) => {
308
+ const i = yt(t);
309
+ return S(["", " ", " ", " "], u.exact(0, 1439)(i.md), u.exact(1440, 1919)(i.lg), u.exact(1920, 1e5)(i.xl));
310
+ }, ({
311
+ $css: t
312
+ }) => t), ct = l(B).withConfig({
313
+ displayName: "AnalyticalWidgetstyled__StyledTopSlot"
314
+ })(["overflow:hidden;margin-top:8px;&:empty{margin-top:0;}&:has(.", "){margin-top:0;}"], d.selfSpacedTopSlot), xt = l.div.withConfig({
315
+ displayName: "AnalyticalWidgetstyled__StyledMiddleSlot"
316
+ })(["overflow:hidden;padding-top:8px;"]), wt = l.div.withConfig({
317
+ displayName: "AnalyticalWidgetstyled__StyledContent"
318
+ })(["position:relative;flex:1;min-height:30px;margin-top:8px;overflow-y:", ";"], ({
319
+ scrollable: t
320
+ }) => t ? "auto" : "visible"), f = ({
321
+ size: t = "l",
322
+ scrollable: i = !0,
323
+ headerSlot: r,
324
+ topSlot: p,
325
+ middleSlot: n,
326
+ contentSlot: s,
327
+ classes: a,
328
+ $css: g
329
+ }) => {
330
+ const o = U[t], y = O(r) && !!r.props.rightSlot;
331
+ return /* @__PURE__ */ c(mt, { $size: t, $css: g, className: m(d.root, y ? d.hasRightSlot : void 0, a == null ? void 0 : a.root), children: [
332
+ /* @__PURE__ */ e("div", { style: {
333
+ minHeight: "32px"
334
+ }, children: r }),
335
+ o.topSlot && p || o.middleSlot && n ? /* @__PURE__ */ c("div", { children: [
336
+ o.topSlot && p && /* @__PURE__ */ e(ct, { className: m(d.topSlot, a == null ? void 0 : a.topSlot), children: p }),
337
+ o.middleSlot && n && /* @__PURE__ */ e(xt, { className: m(d.middleSlot, a == null ? void 0 : a.middleSlot), children: n })
338
+ ] }) : null,
339
+ /* @__PURE__ */ e(wt, { scrollable: i, className: m(d.contentSlot, a == null ? void 0 : a.contentSlot), children: s })
340
+ ] });
341
+ };
342
+ f.Header = gt;
343
+ f.FilterIconButton = T;
344
+ f.DotsIconButton = b;
345
+ f.Chips = it;
346
+ export {
347
+ f as A,
348
+ d as a,
349
+ b,
350
+ it as c,
351
+ gt as d
352
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),W=require("react"),r=require("@salutejs/sdds-themes/tokens/sdds_finai"),x=require("@salutejs/plasma-icons"),l=require("styled-components"),h=require("./AiAgentPopup-CLGSjg5L.cjs"),P=require("./EmptyState-D-bmtvmy.cjs"),R={DEFAULT:e.jsx(x.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(x.IconFocusOutline,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(x.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(x.IconCloseCircleFill,{size:"xs",color:r.textNegative})},_={DEFAULT:e.jsx(x.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(x.IconInProgressFill,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(x.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(x.IconCloseCircleFill,{size:"xs",color:r.textNegative})},q={DEFAULT:"inactive",WAIT:"active",SUCCESSFUL:"completed",FAILURE:"completed"},Y={DEFAULT:"default",WAIT:"warning",SUCCESSFUL:"positive",FAILURE:"negative"},O={LIFE_CYCLE:"Жизненный цикл",HISTORY:"История изменений"},I=l.div.withConfig({displayName:"styled__ApprovalCenterContainer"})(["min-width:360px;min-height:600px;width:100%;height:100%;border-radius:16px;display:flex;flex-direction:column;flex:1;padding:12px 4px 12px 16px;background:",";",""],()=>r.surfaceSolidCard,({$css:s})=>s),V=l.div.withConfig({displayName:"styled__ApprovalCenterContentWrapper"})(["margin-top:20px;min-height:0;flex-direction:column;display:flex;flex:1;"]),X=l.div.withConfig({displayName:"styled__PreviewContainer"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;"]),M=l.div.withConfig({displayName:"styled__LifeCycleContainer"})(["overflow-y:auto;min-height:0;flex:1;display:flex;flex-direction:column;padding-right:12px;"]),K=l.div.withConfig({displayName:"styled__LifeCycleAccordionTitle"})(["display:flex;align-items:center;gap:4px;"]),D=l.div.withConfig({displayName:"styled__LifeCycleStageContent"})(["> *:not(:first-child){margin-top:8px;}> .comment:not(:first-child){margin-top:2px;}"]),$=l.div.withConfig({displayName:"styled__LifeCycleAssignees"})(["display:flex;flex-direction:column;gap:8px;"]),B=l.div.withConfig({displayName:"styled__LifeCycleButtonsWrapper"})(["display:flex;gap:4px;"]),G=l.div.withConfig({displayName:"styled__LifeCycleStageButtonsWrapper"})(["display:flex;gap:16px;"]),E=l(o.Button).withConfig({displayName:"styled__LifeCycleStyledButton"})(["margin-top:8px;"]),J=l.div.withConfig({displayName:"styled__HistoryContainer"})(["display:flex;flex-direction:column;flex:1;min-height:0;gap:12px;overflow-y:auto;padding-right:12px;"]),Q=l.div.withConfig({displayName:"styled__HistoryDay"})(["display:flex;flex-direction:column;gap:12px;"]),Z=l.div.withConfig({displayName:"styled__HistoryDate"})(["top:0px;position:sticky;display:flex;justify-content:center;width:100%;"]),ee=l.div.withConfig({displayName:"styled__HistoryActions"})(["display:flex;flex-direction:column;gap:12px;"]);l(o.Badge).withConfig({displayName:"styled__HistoryStyledBadge"})(["flex-shrink:0;white-space:nowrap;"]);const T=s=>{const{historyByDay:p}=s;return e.jsx(J,{children:p.map(c=>e.jsxs(Q,{children:[e.jsx(Z,{children:e.jsx(o.Badge,{size:"m",text:c.date,view:"light",customColor:r.textSecondary,customBackgroundColor:r.surfaceSolidCard})}),e.jsx(ee,{children:c.actions.map(i=>e.jsx(o.Cell,{size:"s",title:i.title,subtitle:i.time,contentLeft:R[i.status]}))})]},c.date))})};function d(s){return s!=null}function g(s){return Array.isArray(s)&&s.length>0}function te(s){const p=new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long"}),c=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit",hour12:!1}),i=new Date,t=new Map;for(const a of s){const n=new Date(a.actionDate),u=n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?"Сегодня":p.format(n),v=c.format(n),m={status:a.status,title:a.actionTitle,time:v};let y=t.get(u);y===void 0&&(y=[],t.set(u,y)),y.push(m)}return Array.from(t,([a,n])=>({date:a,actions:n}))}const w=s=>{const{lifeCycle:p}=s,c=p.map(i=>({title:i.title,status:q[i.status],completedItemView:Y[i.status],content:d(i.stages)?e.jsxs(e.Fragment,{children:[e.jsx(o.Accordion,{size:"s",view:"clear",defaultActiveEventKey:i.stages.reduce((t,a,n)=>(a.open&&t.push(n),t),[]),children:i.stages.map((t,a)=>e.jsx(o.AccordionItem,{contentLeft:d(t.tooltip)?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:_[t.status],trigger:"hover",placement:"top-start",text:t.tooltip.text})}):_[t.status],title:e.jsxs(K,{children:[e.jsx(h.Typography,{variant:"TextS",children:t.title}),d(t.mark)&&(t.mark.tooltip?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:t.mark.icon,trigger:"hover",placement:"top-start",text:t.mark.tooltip.text})}):t.mark.icon)]}),eventKey:a,children:e.jsxs(D,{children:[g(t.assignee)&&e.jsx($,{children:t.assignee.map(n=>e.jsx(h.Typography,{variant:"TextXS",bold:!0,color:r.textPrimary,children:n},n))}),d(t.comment)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textPrimary,children:t.comment}),g(t.buttons)&&e.jsx(G,{children:t.buttons.map(n=>e.jsx(o.LinkButton,{contentLeft:n.contentLeft,text:n.text,size:"xxs",onClick:n.onClick},n.text))}),d(t.actionTitle)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textSecondary,children:t.actionTitle})]})},t.title))}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]}):e.jsxs(D,{children:[e.jsx(h.Typography,{variant:"BodyXS",color:r.textSecondary,children:i.actionTitle}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]})}));return e.jsx(M,{children:e.jsx(o.Steps,{style:{paddingTop:"1px",height:"auto"},items:c,orientation:"vertical",size:"m"})})},L=s=>{const{preview:p}=s,{button:c,loading:i}=p??{},t=d(c);return e.jsx(X,{children:i?e.jsx(o.Spinner,{size:"l",view:"default"}):e.jsx(P.EmptyState,{size:"m",variant:"no-content",buttons:t?[{props:{text:c.text,children:c.text,view:"accent",onClick:c.onClick},type:"link"}]:void 0})})},ie=s=>{const{className:p,$css:c,preview:i,tabs:t,lifeCycle:a,history:n}=s,[f,u]=W.useState(t.active),v=t.available.length>1,m=t.available[0],y=m==="LIFE_CYCLE",N=m==="HISTORY",b=f==="LIFE_CYCLE",z=f==="HISTORY",S=d(a),H=d(n),A=d(i),j=H?te(n):null,F=d(j);if(v){const k=e.jsxs(V,{children:[S&&b&&e.jsx(w,{lifeCycle:a}),F&&z&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{className:p,$css:c,children:A?e.jsx(L,{preview:i}):e.jsxs(e.Fragment,{children:[e.jsx(o.Tabs,{view:"divider",size:"s",orientation:"horizontal",children:t.available.map(C=>e.jsx(o.TabItem,{view:"divider",size:"s",selected:C===f,onClick:()=>u(C),children:O[C]},C))}),k]})})}const U=e.jsxs(e.Fragment,{children:[S&&y&&e.jsx(w,{lifeCycle:a}),F&&N&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{children:A?e.jsx(L,{preview:i}):U})};exports.ApprovalCenter=ie;exports.History=T;exports.LifeCycle=w;exports.Preview=L;
@@ -1,11 +1,11 @@
1
1
  import { Button as q, Badge as k, Cell as G, Accordion as J, AccordionItem as Q, LinkButton as Z, ViewContainer as _, Tooltip as F, Steps as tt, Spinner as et, Tabs as it, TabItem as ot } from "@salutejs/sdds-finai";
2
2
  import { jsx as t, jsxs as d, Fragment as w } from "react/jsx-runtime";
3
3
  import { useState as nt } from "react";
4
- import { textNegative as W, surfacePositive as R, textWarning as P, surfaceTransparentSecondary as Y, surfaceSolidCard as O, textSecondary as T, textPrimary as I } from "@salutejs/sdds-themes/tokens/sdds_finai";
4
+ import { textNegative as W, surfacePositive as R, textWarning as P, surfaceTransparentSecondary as Y, surfaceSolidCard as O, textSecondary as L, textPrimary as I } from "@salutejs/sdds-themes/tokens/sdds_finai";
5
5
  import { IconCloseCircleFill as j, IconDoneCircleFill as u, IconFocusOutline as st, IconInProgressFill as rt } from "@salutejs/plasma-icons";
6
6
  import s from "styled-components";
7
- import { T as f } from "./AnalyticalWidget-BtyWKJuu.mjs";
8
- import { E as lt } from "./EmptyState-CUCseg9M.mjs";
7
+ import { a as f } from "./AiAgentPopup-CtMhai1X.mjs";
8
+ import { E as lt } from "./EmptyState-ZsOlvU4d.mjs";
9
9
  const at = {
10
10
  DEFAULT: /* @__PURE__ */ t(u, { size: "xs", color: Y }),
11
11
  WAIT: /* @__PURE__ */ t(st, { size: "xs", color: P }),
@@ -68,7 +68,7 @@ const z = (n) => {
68
68
  historyByDay: c
69
69
  } = n;
70
70
  return /* @__PURE__ */ t(ut, { children: c.map((r) => /* @__PURE__ */ d(vt, { children: [
71
- /* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(k, { size: "m", text: r.date, view: "light", customColor: T, customBackgroundColor: O }) }),
71
+ /* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(k, { size: "m", text: r.date, view: "light", customColor: L, customBackgroundColor: O }) }),
72
72
  /* @__PURE__ */ t(wt, { children: r.actions.map((i) => /* @__PURE__ */ t(G, { size: "s", title: i.title, subtitle: i.time, contentLeft: at[i.status] })) })
73
73
  ] }, r.date)) });
74
74
  };
@@ -78,7 +78,7 @@ function a(n) {
78
78
  function C(n) {
79
79
  return Array.isArray(n) && n.length > 0;
80
80
  }
81
- function Tt(n) {
81
+ function Lt(n) {
82
82
  const c = new Intl.DateTimeFormat("ru-RU", {
83
83
  day: "numeric",
84
84
  month: "long"
@@ -116,11 +116,11 @@ const H = (n) => {
116
116
  C(e.assignee) && /* @__PURE__ */ t(xt, { children: e.assignee.map((o) => /* @__PURE__ */ t(f, { variant: "TextXS", bold: !0, color: I, children: o }, o)) }),
117
117
  a(e.comment) && /* @__PURE__ */ t(f, { variant: "TextXS", color: I, children: e.comment }),
118
118
  C(e.buttons) && /* @__PURE__ */ t(Ct, { children: e.buttons.map((o) => /* @__PURE__ */ t(Z, { contentLeft: o.contentLeft, text: o.text, size: "xxs", onClick: o.onClick }, o.text)) }),
119
- a(e.actionTitle) && /* @__PURE__ */ t(f, { variant: "TextXS", color: T, children: e.actionTitle })
119
+ a(e.actionTitle) && /* @__PURE__ */ t(f, { variant: "TextXS", color: L, children: e.actionTitle })
120
120
  ] }) }, e.title)) }),
121
121
  C(i.buttons) && /* @__PURE__ */ t(E, { children: i.buttons.map((e) => /* @__PURE__ */ t(N, { text: e.text, contentLeft: e.contentLeft, view: "secondary", size: "xs" })) })
122
122
  ] }) : /* @__PURE__ */ d(D, { children: [
123
- /* @__PURE__ */ t(f, { variant: "BodyXS", color: T, children: i.actionTitle }),
123
+ /* @__PURE__ */ t(f, { variant: "BodyXS", color: L, children: i.actionTitle }),
124
124
  C(i.buttons) && /* @__PURE__ */ t(E, { children: i.buttons.map((e) => /* @__PURE__ */ t(N, { text: e.text, contentLeft: e.contentLeft, view: "secondary", size: "xs" })) })
125
125
  ] })
126
126
  }));
@@ -152,10 +152,10 @@ const H = (n) => {
152
152
  tabs: e,
153
153
  lifeCycle: l,
154
154
  history: o
155
- } = n, [y, m] = nt(e.active), v = e.available.length > 1, h = e.available[0], p = h === "LIFE_CYCLE", X = h === "HISTORY", M = y === "LIFE_CYCLE", V = y === "HISTORY", L = a(l), K = a(o), S = a(i), g = K ? Tt(o) : null, A = a(g);
155
+ } = n, [y, m] = nt(e.active), v = e.available.length > 1, h = e.available[0], p = h === "LIFE_CYCLE", X = h === "HISTORY", M = y === "LIFE_CYCLE", V = y === "HISTORY", T = a(l), K = a(o), S = a(i), g = K ? Lt(o) : null, A = a(g);
156
156
  if (v) {
157
157
  const $ = /* @__PURE__ */ d(yt, { children: [
158
- L && M && /* @__PURE__ */ t(H, { lifeCycle: l }),
158
+ T && M && /* @__PURE__ */ t(H, { lifeCycle: l }),
159
159
  A && V && /* @__PURE__ */ t(z, { historyByDay: g })
160
160
  ] });
161
161
  return /* @__PURE__ */ t(B, { className: c, $css: r, children: S ? /* @__PURE__ */ t(U, { preview: i }) : /* @__PURE__ */ d(w, { children: [
@@ -164,7 +164,7 @@ const H = (n) => {
164
164
  ] }) });
165
165
  }
166
166
  return /* @__PURE__ */ t(B, { children: S ? /* @__PURE__ */ t(U, { preview: i }) : /* @__PURE__ */ d(w, { children: [
167
- L && p && /* @__PURE__ */ t(H, { lifeCycle: l }),
167
+ T && p && /* @__PURE__ */ t(H, { lifeCycle: l }),
168
168
  A && X && /* @__PURE__ */ t(z, { historyByDay: g })
169
169
  ] }) });
170
170
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),S=require("../components/Box/index.cjs"),b=require("@salutejs/sdds-finai"),x=require("./AiAgentPopup-CLGSjg5L.cjs"),C=require("@salutejs/plasma-icons"),N=require("./utils-OQNruMpn.cjs"),c=require("@salutejs/sdds-themes/tokens/sdds_finai"),o=require("styled-components"),i={backButton:"block-title__back-button",container:"block-title__container",contentLeft:"block-title__content-left",description:"block-title__description",topBlock:"block-title__top-block",rightBlock:"block-title__right-block",title:"block-title__title",titleBlock:"block-title__title-block"},z=o.div.withConfig({displayName:"styled__BlockTitleContainer"})(["display:flex;justify-content:space-between;width:100%;gap:",";"],()=>c.spacing12x),j=o.div.withConfig({displayName:"styled__BlockTitleBlock"})(["display:flex;align-items:center;gap:",";margin-bottom:",";"],()=>c.spacing2x,()=>c.spacing2x),w=o.div.withConfig({displayName:"styled__BlockTitleCustomBlock"})(["width:100%;margin-bottom:",";"],()=>c.spacing2x),v=o(x.Typography).withConfig({displayName:"styled__BlockTitleDescription"})(["color:",";padding-left:",";"],()=>c.textSecondary,({$hasLeftSlot:t})=>t?"28px":"0"),L=o.div.withConfig({displayName:"styled__BlockTitleLeftBlock"})(["display:flex;min-height:100%;flex-direction:column;justify-content:end;"]),I=o.div.withConfig({displayName:"styled__BlockTitleRightBlock"})(["display:flex;min-height:100%;align-items:end;"]),q=o.div.withConfig({displayName:"styled__BlockTitleContentLeft"})(["display:flex;align-items:flex-start;gap:",";flex:1;min-width:0;"],()=>c.spacing8x),A=o.div.withConfig({displayName:"styled__BlockTitleBackButtonContainer"})(["margin-top:3px;"]),h={titleBadgeSize:"m",titleIconSize:"s"},D=t=>t==="H4"||t==="H5"?{titleBadgeSize:"s",titleIconSize:"xs"}:h,m=(t,l)=>({...l?D(t):h,buttonSize:l?"xs":"s",actionIconSize:l?"xs":"s"}),_=t=>t?"xxs":"xs",s=(t,l)=>typeof t=="function"?t(l):t,E=({title:t,titleSize:l="H2",titleTooltipProps:d,titleLeftSlot:r,titleRightSlot:k,description:B,topSlot:T,rightSlot:f,disableMediaAdaptive:u=!1,containerProps:n,onBackButtonClick:p})=>{const{down:y}=N.useBreakpoint(),g=!u&&y("xl"),a=m(l,g);return e.jsxs(S.Box,{...n,className:`${i.container} ${(n==null?void 0:n.className)??""}`,children:[e.jsx(w,{className:i.topBlock,children:s(T,a)}),e.jsxs(z,{children:[e.jsxs(q,{className:i.contentLeft,children:[p&&e.jsx(A,{className:i.backButton,children:e.jsx(b.IconButton,{size:_(g),view:"secondary",pin:"circle-circle",onClick:p,children:e.jsx(C.IconChevronLeft,{size:"xs",color:"inherit"})})}),e.jsxs(L,{children:[e.jsxs(j,{className:i.titleBlock,children:[s(r,a),e.jsx(x.TypographyWithAutoTooltip,{tooltipText:typeof t=="string"?t:void 0,variant:l,className:i.title,lines:2,tooltipProps:d,children:t}),s(k,a)]}),B&&e.jsx(v,{variant:"BodyS",className:i.description,$hasLeftSlot:!!r,children:B})]})]}),e.jsx(I,{className:i.rightBlock,children:s(f,a)})]})]})};exports.BlockTitle=E;exports.blockTitleClassNames=i;exports.getBlockTitleBackButtonSize=_;exports.getBlockTitleSlotSizes=m;exports.renderBlockTitleSlot=s;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
2
  import { Box as x } from "../components/Box/index.mjs";
3
3
  import { IconButton as b } from "@salutejs/sdds-finai";
4
- import { T as S, a as u } from "./AnalyticalWidget-BtyWKJuu.mjs";
4
+ import { a as S, T as u } from "./AiAgentPopup-CtMhai1X.mjs";
5
5
  import { IconChevronLeft as C } from "@salutejs/plasma-icons";
6
- import { d as N } from "./utils-u1KJ37g3.mjs";
6
+ import { e as N } from "./utils-Hu77fGGe.mjs";
7
7
  import { spacing2x as d, spacing12x as w, spacing8x as z, textSecondary as v } from "@salutejs/sdds-themes/tokens/sdds_finai";
8
8
  import o from "styled-components";
9
9
  const e = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as D } from "react/jsx-runtime";
2
- import { b as n, r as T } from "./utils-u1KJ37g3.mjs";
2
+ import { b as n, w as T } from "./utils-Hu77fGGe.mjs";
3
3
  import A from "react";
4
4
  import { Box as x } from "../components/Box/index.mjs";
5
5
  import { borderRadiusM as h } from "@salutejs/sdds-themes/tokens/sdds_finai";
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),i=require("./utils-ChDQGRjv.cjs"),T=require("react"),u=require("../components/Box/index.cjs"),x=require("@salutejs/sdds-themes/tokens/sdds_finai"),t=require("styled-components"),a={wrapper:"container__wrapper",left:"container__wrapper_left",middle:"container__wrapper_middle",right:"container__wrapper_right"},m={MIN_COL_WIDTH:"360px",GAP:"24px",FIXED_WIDTH:"360px",MIN_FIXED_WIDTH:"240px"},f=e=>{switch(e){case"30/70":return t.css(["grid-template-columns:minmax(var(--container-min-col-width),30%) minmax(0,1fr);"]);case"20/80":return t.css(["grid-template-columns:minmax(var(--container-min-col-width),20%) minmax(0,1fr);"]);case"70/30":return t.css(["grid-template-columns:minmax(0,1fr) minmax(var(--container-min-col-width),30%);"]);case"80/20":return t.css(["grid-template-columns:minmax(0,1fr) minmax(var(--container-min-col-width),20%);"]);case"1/1":return t.css(["grid-template-columns:minmax(0,1fr) minmax(0,1fr);",""],i.media.down("xl")`
1
+ "use strict";const n=require("react/jsx-runtime"),i=require("./utils-OQNruMpn.cjs"),T=require("react"),u=require("../components/Box/index.cjs"),x=require("@salutejs/sdds-themes/tokens/sdds_finai"),t=require("styled-components"),a={wrapper:"container__wrapper",left:"container__wrapper_left",middle:"container__wrapper_middle",right:"container__wrapper_right"},m={MIN_COL_WIDTH:"360px",GAP:"24px",FIXED_WIDTH:"360px",MIN_FIXED_WIDTH:"240px"},f=e=>{switch(e){case"30/70":return t.css(["grid-template-columns:minmax(var(--container-min-col-width),30%) minmax(0,1fr);"]);case"20/80":return t.css(["grid-template-columns:minmax(var(--container-min-col-width),20%) minmax(0,1fr);"]);case"70/30":return t.css(["grid-template-columns:minmax(0,1fr) minmax(var(--container-min-col-width),30%);"]);case"80/20":return t.css(["grid-template-columns:minmax(0,1fr) minmax(var(--container-min-col-width),20%);"]);case"1/1":return t.css(["grid-template-columns:minmax(0,1fr) minmax(0,1fr);",""],i.media.down("xl")`
2
2
  grid-template-columns: minmax(0, 1fr)
3
3
  `);case"1/1/1":return t.css(["grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);",""],i.media.down("xl")`
4
4
  grid-template-columns: minmax(0, 1fr)