@daisforge/ui 1.12.0 → 1.12.2

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 (471) hide show
  1. package/chunks/AnalyticalWidget-CBi-2MtJ.mjs +528 -0
  2. package/chunks/AnalyticalWidget-fBDe37Ur.cjs +43 -0
  3. package/chunks/ApprovalCenter-ClCoA3cr.mjs +176 -0
  4. package/chunks/ApprovalCenter-oACSjXxE.cjs +1 -0
  5. package/chunks/BlockTitle-CylSY2DM.cjs +1 -0
  6. package/chunks/BlockTitle-DTaIqiFF.mjs +85 -0
  7. package/chunks/Container-CV4sT-bB.mjs +117 -0
  8. package/chunks/Container-D8Bcg69e.cjs +17 -0
  9. package/chunks/EmptyState-BD6Ic-OX.cjs +1 -0
  10. package/chunks/EmptyState-Bct6Wrxv.mjs +459 -0
  11. package/chunks/FiltersActions-C3yWFtQT.mjs +429 -0
  12. package/chunks/FiltersActions-D1aQXh5d.cjs +1 -0
  13. package/chunks/FormDatePickers-BefllAQ_.cjs +1 -0
  14. package/chunks/FormDatePickers-_soI8Uaa.mjs +503 -0
  15. package/chunks/FormSegmentGroup-C8kROjlQ.mjs +168 -0
  16. package/chunks/FormSegmentGroup-DIaBZRWv.cjs +1 -0
  17. package/chunks/FormTextArea-BBYV56iU.mjs +107 -0
  18. package/chunks/FormTextArea-C7KG9PXC.cjs +1 -0
  19. package/chunks/GridDND-BP_H26We.cjs +1 -0
  20. package/chunks/GridDND-rVSi0xX1.mjs +852 -0
  21. package/chunks/LeftPanel-CgexykUg.cjs +1 -0
  22. package/chunks/LeftPanel-bKmeEOHx.mjs +162 -0
  23. package/chunks/ListOfFilters-DgInAZFi.cjs +1 -0
  24. package/chunks/ListOfFilters-IEPKSKxx.mjs +243 -0
  25. package/chunks/MassActions-BCgI08G9.cjs +1 -0
  26. package/chunks/MassActions-D4nb1_gx.mjs +966 -0
  27. package/chunks/PageTitle-B0tuR3fU.mjs +123 -0
  28. package/chunks/PageTitle-BC0PnHgQ.cjs +1 -0
  29. package/chunks/SplitView-C8de8YKV.mjs +236 -0
  30. package/chunks/SplitView-OUGciQ51.cjs +12 -0
  31. package/chunks/Stories--_pE4YtR.mjs +668 -0
  32. package/chunks/Stories-Dvh6rMeV.cjs +1 -0
  33. package/chunks/Table-Bj2se1hR.mjs +7757 -0
  34. package/chunks/Table-CnWVNNoW.cjs +31 -0
  35. package/chunks/TableCanvas-Y53zQ7M0.mjs +11857 -0
  36. package/chunks/TableCanvas-eYhmqTbp.cjs +30 -0
  37. package/chunks/{TableGlide-B61Yi-Hs.mjs → TableGlide-CuBMIM6Q.mjs} +1417 -1554
  38. package/chunks/TableGlide-CvMz7x7a.cjs +1 -0
  39. package/chunks/styles-Dd4uEa27.mjs +128 -0
  40. package/chunks/styles-kPI9R7DO.cjs +2 -0
  41. package/chunks/{utils-BNelzuI-.mjs → utils-C5SQhoON.mjs} +126 -151
  42. package/chunks/utils-DKi1rqLX.cjs +25 -0
  43. package/chunks/{vendor-D8Dozc4m.cjs → vendor-BauZZ2hr.mjs} +7 -33
  44. package/chunks/{vendor-BG4P-329.mjs → vendor-C47eH0xy.cjs} +2 -634
  45. package/components/AiAgentPopover/index.cjs +2 -2
  46. package/components/AiAgentPopover/index.mjs +248 -373
  47. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
  48. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
  49. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
  50. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
  51. package/components/AnalyticalWidget/index.cjs +1 -1
  52. package/components/AnalyticalWidget/index.mjs +1 -1
  53. package/components/ApprovalCenter/components/index.cjs +1 -1
  54. package/components/ApprovalCenter/components/index.mjs +1 -1
  55. package/components/ApprovalCenter/index.cjs +1 -1
  56. package/components/ApprovalCenter/index.mjs +1 -1
  57. package/components/Autocomplete/index.cjs +1 -1
  58. package/components/Autocomplete/index.mjs +22 -35
  59. package/components/AutocompleteSearch/index.cjs +1 -1
  60. package/components/AutocompleteSearch/index.mjs +33 -83
  61. package/components/BlockGradientScroll/index.cjs +1 -1
  62. package/components/BlockGradientScroll/index.mjs +41 -53
  63. package/components/BlockTitle/index.cjs +1 -1
  64. package/components/BlockTitle/index.mjs +1 -1
  65. package/components/BlockTitle/utils/index.cjs +1 -1
  66. package/components/BlockTitle/utils/index.mjs +1 -1
  67. package/components/Box/index.mjs +17 -7
  68. package/components/Collapse/index.cjs +1 -1
  69. package/components/Collapse/index.mjs +41 -62
  70. package/components/Combobox/index.cjs +1 -1
  71. package/components/Combobox/index.mjs +1 -1
  72. package/components/DatePicker/index.cjs +1 -1
  73. package/components/DatePicker/index.mjs +21 -59
  74. package/components/DrawerDF/index.cjs +1 -1
  75. package/components/DrawerDF/index.mjs +144 -391
  76. package/components/EmptyState/components/index.cjs +1 -1
  77. package/components/EmptyState/components/index.mjs +1 -1
  78. package/components/EmptyState/index.cjs +1 -1
  79. package/components/EmptyState/index.mjs +1 -1
  80. package/components/GridDND/index.cjs +1 -1
  81. package/components/GridDND/index.mjs +1 -1
  82. package/components/GridDND/utils/index.cjs +1 -1
  83. package/components/GridDND/utils/index.mjs +1 -1
  84. package/components/IconButton/index.cjs +1 -1
  85. package/components/IconButton/index.mjs +49 -112
  86. package/components/IconSvgSprite/index.cjs +1 -1
  87. package/components/IconSvgSprite/index.mjs +13 -49
  88. package/components/LeftPanel/components/index.cjs +1 -1
  89. package/components/LeftPanel/components/index.mjs +1 -1
  90. package/components/LeftPanel/hooks/index.cjs +1 -1
  91. package/components/LeftPanel/hooks/index.mjs +1 -1
  92. package/components/LeftPanel/index.cjs +1 -1
  93. package/components/LeftPanel/index.mjs +1 -1
  94. package/components/LeftPanel/utils/index.cjs +1 -1
  95. package/components/LeftPanel/utils/index.mjs +1 -1
  96. package/components/ListOfFilters/index.cjs +1 -1
  97. package/components/ListOfFilters/index.mjs +1 -1
  98. package/components/MassActions/hooks/index.cjs +1 -1
  99. package/components/MassActions/hooks/index.mjs +1 -1
  100. package/components/MassActions/index.cjs +1 -1
  101. package/components/MassActions/index.mjs +1 -1
  102. package/components/MassActionsStatic/index.cjs +2 -2
  103. package/components/MassActionsStatic/index.mjs +13 -34
  104. package/components/ModalDF/index.cjs +1 -1
  105. package/components/ModalDF/index.mjs +169 -381
  106. package/components/ModalDFConfirmation/index.cjs +1 -1
  107. package/components/ModalDFConfirmation/index.mjs +66 -114
  108. package/components/Notification/index.cjs +1 -1
  109. package/components/Notification/index.mjs +16 -22
  110. package/components/NumberFormat/index.cjs +1 -1
  111. package/components/NumberFormat/index.mjs +24 -37
  112. package/components/NumberFormatAmount/index.cjs +1 -1
  113. package/components/NumberFormatAmount/index.mjs +12 -27
  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 +125 -261
  120. package/components/PopupDF/index.cjs +1 -1
  121. package/components/PopupDF/index.mjs +141 -308
  122. package/components/SplitView/index.cjs +1 -1
  123. package/components/SplitView/index.mjs +1 -1
  124. package/components/SplitView/utils/index.cjs +1 -1
  125. package/components/SplitView/utils/index.mjs +1 -1
  126. package/components/Stories/components/StoriesBanner/index.cjs +1 -1
  127. package/components/Stories/components/StoriesBanner/index.mjs +1 -1
  128. package/components/Stories/components/StoriesContent/index.cjs +1 -1
  129. package/components/Stories/components/StoriesContent/index.mjs +1 -1
  130. package/components/Stories/components/StoriesPreview/index.cjs +1 -1
  131. package/components/Stories/components/StoriesPreview/index.mjs +1 -1
  132. package/components/Stories/components/StoriesProgress/index.cjs +1 -1
  133. package/components/Stories/components/StoriesProgress/index.mjs +1 -1
  134. package/components/Stories/components/StoriesViewer/index.cjs +1 -1
  135. package/components/Stories/components/StoriesViewer/index.mjs +1 -1
  136. package/components/Stories/index.cjs +1 -1
  137. package/components/Stories/index.mjs +1 -1
  138. package/components/Table/components/TableDropdown/index.cjs +1 -1
  139. package/components/Table/components/TableDropdown/index.mjs +1 -1
  140. package/components/Table/feature-collapse-table/index.cjs +1 -1
  141. package/components/Table/feature-collapse-table/index.mjs +1 -1
  142. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  143. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  144. package/components/Table/feature-column-control/index.cjs +1 -1
  145. package/components/Table/feature-column-control/index.mjs +1 -1
  146. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  147. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  148. package/components/Table/feature-context-menu/index.cjs +1 -1
  149. package/components/Table/feature-context-menu/index.mjs +1 -1
  150. package/components/Table/feature-edit/index.cjs +1 -1
  151. package/components/Table/feature-edit/index.mjs +1 -1
  152. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  153. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  154. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  155. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  156. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  157. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  158. package/components/Table/feature-filtering/index.cjs +1 -1
  159. package/components/Table/feature-filtering/index.mjs +1 -1
  160. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  161. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  162. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  163. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  164. package/components/Table/feature-key-text/index.cjs +1 -1
  165. package/components/Table/feature-key-text/index.mjs +1 -1
  166. package/components/Table/feature-pagination/index.cjs +1 -1
  167. package/components/Table/feature-pagination/index.mjs +1 -1
  168. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  169. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  170. package/components/Table/feature-row-detail/index.cjs +1 -1
  171. package/components/Table/feature-row-detail/index.mjs +1 -1
  172. package/components/Table/feature-row-instruments/index.cjs +1 -1
  173. package/components/Table/feature-row-instruments/index.mjs +1 -1
  174. package/components/Table/feature-row-size/index.cjs +1 -1
  175. package/components/Table/feature-row-size/index.mjs +1 -1
  176. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  177. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  178. package/components/Table/feature-searching/index.cjs +1 -1
  179. package/components/Table/feature-searching/index.mjs +1 -1
  180. package/components/Table/feature-select-row/index.cjs +1 -1
  181. package/components/Table/feature-select-row/index.mjs +1 -1
  182. package/components/Table/feature-sorting/index.cjs +1 -1
  183. package/components/Table/feature-sorting/index.mjs +1 -1
  184. package/components/Table/feature-table-settings/index.cjs +1 -1
  185. package/components/Table/feature-table-settings/index.mjs +1 -1
  186. package/components/Table/feature-tree/index.cjs +1 -1
  187. package/components/Table/feature-tree/index.mjs +1 -1
  188. package/components/Table/index.cjs +1 -1
  189. package/components/Table/index.mjs +1 -1
  190. package/components/Table/renders/formatCell/index.cjs +1 -1
  191. package/components/Table/renders/formatCell/index.mjs +1 -1
  192. package/components/Table/styles/index.cjs +1 -1
  193. package/components/Table/styles/index.mjs +1 -1
  194. package/components/Table/table-hooks/index.cjs +1 -1
  195. package/components/Table/table-hooks/index.mjs +1 -1
  196. package/components/Table/types/index.cjs +1 -1
  197. package/components/Table/types/index.mjs +1 -1
  198. package/components/Table/utils/index.cjs +1 -1
  199. package/components/Table/utils/index.mjs +1 -1
  200. package/components/Table/widgets/control-block/index.cjs +1 -1
  201. package/components/Table/widgets/control-block/index.mjs +1 -1
  202. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  203. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  204. package/components/Table/widgets/index.cjs +1 -1
  205. package/components/Table/widgets/index.mjs +1 -1
  206. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  207. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  208. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  209. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  210. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  211. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  212. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  213. package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
  214. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  215. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
  216. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  217. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  218. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  219. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  220. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  221. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  222. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  223. package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
  224. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  225. package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
  226. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  227. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
  228. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  229. package/components/TableCanvas/feature-column-control/index.mjs +1 -1
  230. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  231. package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
  232. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  233. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  234. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  235. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  236. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  237. package/components/TableCanvas/feature-edit/index.mjs +1 -1
  238. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  239. package/components/TableCanvas/feature-filtering/combobox/index.mjs +3 -3
  240. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  241. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  242. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  243. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  244. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  245. package/components/TableCanvas/feature-filtering/index.mjs +1 -1
  246. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  247. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  248. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  249. package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
  250. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  251. package/components/TableCanvas/feature-key-text/index.mjs +1 -1
  252. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  253. package/components/TableCanvas/feature-notifications/index.mjs +1 -1
  254. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  255. package/components/TableCanvas/feature-pagination/index.mjs +1 -1
  256. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  257. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  258. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  259. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  260. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  261. package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
  262. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  263. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  264. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  265. package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
  266. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  267. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  268. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  269. package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
  270. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  271. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  272. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  273. package/components/TableCanvas/feature-row-size/index.mjs +1 -1
  274. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  275. package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
  276. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  277. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  278. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  279. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  280. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  281. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  282. package/components/TableCanvas/feature-table-settings/TableSettingsWithTabs.d.ts +25 -2
  283. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  284. package/components/TableCanvas/feature-table-settings/index.d.ts +1 -1
  285. package/components/TableCanvas/feature-table-settings/index.mjs +3 -2
  286. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  287. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  288. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  289. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  290. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  291. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  292. package/components/TableCanvas/index.cjs +1 -1
  293. package/components/TableCanvas/index.mjs +2 -2
  294. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  295. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  296. package/components/TableCanvas/styles/index.cjs +1 -1
  297. package/components/TableCanvas/styles/index.mjs +1 -1
  298. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  299. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  300. package/components/TableCanvas/types/index.cjs +1 -1
  301. package/components/TableCanvas/types/index.mjs +1 -1
  302. package/components/TableCanvas/types/table-config.type.d.ts +4 -0
  303. package/components/TableCanvas/utils/index.cjs +1 -1
  304. package/components/TableCanvas/utils/index.mjs +2 -2
  305. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  306. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  307. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  308. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  309. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  310. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  311. package/components/TableCanvas/widgets/index.cjs +1 -1
  312. package/components/TableCanvas/widgets/index.mjs +1 -1
  313. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  314. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  315. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  316. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  317. package/components/TableContract/index.cjs +2 -2
  318. package/components/TableContract/index.mjs +540 -798
  319. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  320. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  321. package/components/TableGlide/index.cjs +1 -1
  322. package/components/TableGlide/index.mjs +1 -1
  323. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  324. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
  325. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  326. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  327. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  328. package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
  329. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  330. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
  331. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  332. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  333. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  334. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  335. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  336. package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
  337. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  338. package/components/TableGlide/lib/canvas/index.mjs +1 -1
  339. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  340. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  341. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  342. package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
  343. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  344. package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
  345. package/components/TableGlide/theming/index.cjs +1 -1
  346. package/components/TableGlide/theming/index.mjs +1 -1
  347. package/components/TableTabs/index.cjs +1 -1
  348. package/components/TableTabs/index.mjs +136 -305
  349. package/components/TextArea/index.cjs +1 -1
  350. package/components/TextArea/index.mjs +26 -40
  351. package/components/TextField/index.cjs +1 -1
  352. package/components/TextField/index.mjs +38 -82
  353. package/components/Tooltip/index.cjs +1 -1
  354. package/components/Tooltip/index.mjs +1 -1
  355. package/components/TourWidget/index.cjs +15 -15
  356. package/components/TourWidget/index.mjs +176 -371
  357. package/components/Typography/index.cjs +1 -1
  358. package/components/Typography/index.mjs +1 -1
  359. package/components/Widget/index.cjs +1 -1
  360. package/components/Widget/index.mjs +151 -363
  361. package/formComponents/FormAutocomplete/index.cjs +1 -1
  362. package/formComponents/FormAutocomplete/index.mjs +63 -68
  363. package/formComponents/FormCheckbox/index.cjs +1 -1
  364. package/formComponents/FormCheckbox/index.mjs +27 -55
  365. package/formComponents/FormCombobox/index.cjs +1 -1
  366. package/formComponents/FormCombobox/index.mjs +61 -75
  367. package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
  368. package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
  369. package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
  370. package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
  371. package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
  372. package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
  373. package/formComponents/FormDatePickers/index.cjs +1 -1
  374. package/formComponents/FormDatePickers/index.mjs +1 -1
  375. package/formComponents/FormMask/index.cjs +1 -1
  376. package/formComponents/FormMask/index.mjs +61 -66
  377. package/formComponents/FormNumberFormat/index.cjs +1 -1
  378. package/formComponents/FormNumberFormat/index.mjs +56 -68
  379. package/formComponents/FormRadioGroupBox/index.cjs +1 -1
  380. package/formComponents/FormRadioGroupBox/index.mjs +71 -144
  381. package/formComponents/FormSegments/index.cjs +1 -1
  382. package/formComponents/FormSegments/index.mjs +1 -1
  383. package/formComponents/FormSelect/index.cjs +1 -1
  384. package/formComponents/FormSelect/index.mjs +62 -76
  385. package/formComponents/FormSwitch/index.cjs +1 -1
  386. package/formComponents/FormSwitch/index.mjs +25 -53
  387. package/formComponents/FormTextArea/index.cjs +1 -1
  388. package/formComponents/FormTextArea/index.mjs +1 -1
  389. package/formComponents/FormTextArea/ui/index.cjs +1 -1
  390. package/formComponents/FormTextArea/ui/index.mjs +1 -1
  391. package/formComponents/FormTextField/index.cjs +1 -1
  392. package/formComponents/FormTextField/index.mjs +70 -101
  393. package/index.cjs +1 -1
  394. package/index.mjs +21 -21
  395. package/layouts/Container/index.cjs +1 -1
  396. package/layouts/Container/index.mjs +1 -1
  397. package/layouts/Container/lib/utils/index.cjs +1 -1
  398. package/layouts/Container/lib/utils/index.mjs +1 -1
  399. package/layouts/ErrorPage/index.cjs +1 -1
  400. package/layouts/ErrorPage/index.mjs +81 -146
  401. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  402. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  403. package/layouts/FiltersActions/index.cjs +1 -1
  404. package/layouts/FiltersActions/index.mjs +1 -1
  405. package/layouts/Layout/index.cjs +5 -5
  406. package/layouts/Layout/index.mjs +78 -115
  407. package/layouts/PageLayout/index.cjs +2 -2
  408. package/layouts/PageLayout/index.mjs +15 -32
  409. package/mixins/index.cjs +1 -1
  410. package/mixins/index.mjs +1 -1
  411. package/package.json +1 -1
  412. package/shared/ui/Search/index.cjs +1 -1
  413. package/shared/ui/Search/index.mjs +30 -52
  414. package/shared/utils/inputs/index.cjs +1 -1
  415. package/shared/utils/inputs/index.mjs +33 -48
  416. package/styles/index.cjs +1 -1
  417. package/styles/index.mjs +1 -1
  418. package/themes/index.cjs +1 -1
  419. package/themes/index.mjs +1 -1
  420. package/utils/breakpoint/index.cjs +1 -1
  421. package/utils/breakpoint/index.mjs +1 -1
  422. package/utils/clickStream/index.cjs +1 -1
  423. package/utils/clickStream/index.mjs +1 -1
  424. package/utils/eventBus/index.cjs +1 -1
  425. package/utils/eventBus/index.mjs +1 -1
  426. package/utils/hooks/index.cjs +1 -1
  427. package/utils/hooks/index.mjs +1 -1
  428. package/utils/index.cjs +1 -1
  429. package/utils/index.mjs +1 -1
  430. package/utils/styles/index.cjs +1 -1
  431. package/utils/styles/index.mjs +1 -1
  432. package/chunks/AnalyticalWidget-Ca_EuSTO.mjs +0 -868
  433. package/chunks/AnalyticalWidget-xgvWcsXx.cjs +0 -43
  434. package/chunks/ApprovalCenter-4aJlJfei.mjs +0 -531
  435. package/chunks/ApprovalCenter-Ij5NMkY-.cjs +0 -1
  436. package/chunks/BlockTitle-CgXVHok6.mjs +0 -180
  437. package/chunks/BlockTitle-SaP9H2PI.cjs +0 -1
  438. package/chunks/Container-ChuCs63G.cjs +0 -17
  439. package/chunks/Container-D8RdjkGo.mjs +0 -180
  440. package/chunks/EmptyState-BxUh2dhY.cjs +0 -1
  441. package/chunks/EmptyState-C0aHgxrn.mjs +0 -615
  442. package/chunks/FiltersActions-BekNxF-h.cjs +0 -1
  443. package/chunks/FiltersActions-CSucE-Ql.mjs +0 -637
  444. package/chunks/FormDatePickers-BCyW24Pr.cjs +0 -1
  445. package/chunks/FormDatePickers-DfdGdbwP.mjs +0 -538
  446. package/chunks/FormSegmentGroup-BKuHtPEn.cjs +0 -1
  447. package/chunks/FormSegmentGroup-DqFMVBr0.mjs +0 -268
  448. package/chunks/FormTextArea-CCrYx4pL.mjs +0 -159
  449. package/chunks/FormTextArea-sly1mY7h.cjs +0 -1
  450. package/chunks/GridDND-Bycwiynh.mjs +0 -1086
  451. package/chunks/GridDND-MsZt1fXJ.cjs +0 -1
  452. package/chunks/LeftPanel-C72uosX_.mjs +0 -303
  453. package/chunks/LeftPanel-Di-IqpZ_.cjs +0 -1
  454. package/chunks/ListOfFilters-B3bM1n4w.cjs +0 -1
  455. package/chunks/ListOfFilters-CPJGgMMc.mjs +0 -462
  456. package/chunks/MassActions-BbAXi3z9.cjs +0 -1
  457. package/chunks/MassActions-CZm8vqj8.mjs +0 -1352
  458. package/chunks/PageTitle-DEsijnDg.cjs +0 -1
  459. package/chunks/PageTitle-TusD1S2c.mjs +0 -282
  460. package/chunks/SplitView-BHdftJ9A.cjs +0 -12
  461. package/chunks/SplitView-Cd-xkxCe.mjs +0 -339
  462. package/chunks/Stories-CR_EUNO7.mjs +0 -1018
  463. package/chunks/Stories-CxsYx2OE.cjs +0 -1
  464. package/chunks/Table--05ONCr1.cjs +0 -31
  465. package/chunks/Table-l-P3NNUN.mjs +0 -11944
  466. package/chunks/TableCanvas-D-sndY82.cjs +0 -30
  467. package/chunks/TableCanvas-D4Bck7wv.mjs +0 -16900
  468. package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
  469. package/chunks/styles-D8FDGdVz.mjs +0 -240
  470. package/chunks/styles-OR0WE1xm.cjs +0 -2
  471. package/chunks/utils-C93a2mD7.cjs +0 -25
@@ -1,1352 +0,0 @@
1
- import { j as h } from "./vendor-BG4P-329.mjs";
2
- import { Divider as He, EmbedIconButton as Re, LinkButton as Fe, Button as ze, Dropdown as $e, Checkbox as Ke, IconButton as Ze, Tooltip as Qe } from "@salutejs/sdds-finai";
3
- import { IconDoubleDisclosureUp as et, IconDotsVerticalCenteredOutline as tt } from "@salutejs/plasma-icons";
4
- import { c as Le, d as Pe, i as st, p as nt } from "./utils-BNelzuI-.mjs";
5
- import { useMemo as Ge, useCallback as pe, useRef as b, useState as me, useEffect as ne, useLayoutEffect as it } from "react";
6
- import { T as Ue, A as ot } from "./Table-l-P3NNUN.mjs";
7
- import { s as qe } from "../constants/index.mjs";
8
- import { surfaceSolidCard as rt, outlineSolidPrimary as ct, shadowDownHardS as at, spacing10x as lt } from "@salutejs/sdds-themes/tokens/sdds_finai";
9
- import P, { css as ke } from "styled-components";
10
- import { Box as Oe } from "../components/Box/index.mjs";
11
- import { Collapse as ut } from "../components/Collapse/index.mjs";
12
- import { T as Ve } from "./AnalyticalWidget-Ca_EuSTO.mjs";
13
- const ge = 24, V = 4, Ae = 44, Xe = 40, Ce = 24, ie = {
14
- top: 12,
15
- right: 8,
16
- bottom: 12,
17
- left: 24
18
- }, Ee = {
19
- top: 0,
20
- right: 10,
21
- bottom: 0,
22
- left: 24
23
- }, ns = ie.left + ie.right, Se = 90, dt = 110, xe = 100, is = 300, ye = 550, mt = 350, pt = 50, ht = 100, ft = ({
24
- buttons: e,
25
- visibleButtonsCount: i
26
- }) => {
27
- const {
28
- visibleButtons: o,
29
- buttonsInDropdown: s
30
- } = Ge(() => {
31
- const t = e ?? [], r = /* @__PURE__ */ new Set(), m = [];
32
- t.forEach((p, d) => {
33
- p.view === "accent" ? r.add(d) : m.push(d);
34
- });
35
- const a = r.size, l = Math.max(0, i - a), n = new Set(m.slice(0, l)), c = [], g = [];
36
- return t.forEach((p, d) => {
37
- r.has(d) || n.has(d) ? c.push(p) : g.push(p);
38
- }), {
39
- visibleButtons: c,
40
- buttonsInDropdown: g
41
- };
42
- }, [e, i]);
43
- return {
44
- visibleButtons: o,
45
- buttonsInDropdown: s,
46
- allButtons: e ?? []
47
- };
48
- }, gt = ({
49
- isCollapsed: e,
50
- setIsCollapsed: i,
51
- isSidebarOpen: o,
52
- calculatePositionForState: s,
53
- calculatePosition: t,
54
- setTranslateX: r,
55
- shouldApplySidebarOffsetRef: m,
56
- wasAutoCollapsedRef: a
57
- }) => ({
58
- handleToggleCollapse: pe(() => {
59
- const n = !e, c = s(n);
60
- c !== void 0 && r(c), o && (n ? m.current = !0 : (m.current = !1, a.current = !1)), i(n), setTimeout(() => {
61
- t();
62
- }, ye);
63
- }, [e, o, s, t, r, m, a, i])
64
- }), xt = ({
65
- isCollapsed: e,
66
- containerRef: i,
67
- contentRef: o,
68
- middleSectionRef: s,
69
- buttonRefs: t,
70
- moreButtonRef: r,
71
- collapseButtonRef: m,
72
- leftSectionRef: a,
73
- dividerRef: l,
74
- buttons: n,
75
- isHaveSomeFeatureInSidebar: c,
76
- getContainerWidth: g,
77
- setVisibleButtonsCount: p,
78
- minPadding: d = Ce,
79
- leftPadding: A = ie.left,
80
- rightPadding: w = ie.right,
81
- moreButtonWidthEstimate: v = Xe,
82
- enableDebugLogs: N = !1
83
- }) => {
84
- const W = b([]), j = pe(() => {
85
- var ue, J, he, ce, de, y;
86
- const E = g();
87
- if (!E || E === 0 || !n || n.length === 0)
88
- return N && console.debug("❌ calculateInitialCompression: нет tableWidth или buttons"), !1;
89
- if (!n.every((f, k) => t.current[k] !== null && t.current[k] !== void 0))
90
- return N && console.debug("❌ calculateInitialCompression: ref'ы еще не установлены", {
91
- buttonsCount: n.length,
92
- refsCount: t.current.filter(Boolean).length,
93
- refs: t.current.map((f, k) => ({
94
- index: k,
95
- hasRef: !!f
96
- }))
97
- }), !1;
98
- const I = E - (c ? Ae : 0), G = ((ue = a == null ? void 0 : a.current) == null ? void 0 : ue.getBoundingClientRect().width) ?? 0, _ = ((J = s.current) == null ? void 0 : J.getBoundingClientRect().width) ?? 0, z = n.length > 0, $ = z ? ((he = l == null ? void 0 : l.current) == null ? void 0 : he.getBoundingClientRect().width) ?? 0 : 0, U = z ? V : 0, Z = z && _ > 0 ? V : 0, oe = $ + Z + U, le = V * 2, re = G + _ + oe + // Divider с учетом margins и gaps
99
- (((ce = m.current) == null ? void 0 : ce.getBoundingClientRect().width) ?? ge) + (A + w) + // Динамический padding контейнера
100
- le, M = [];
101
- let S = !0;
102
- for (let f = 0; f < n.length; f += 1) {
103
- const k = t.current[f];
104
- if (!k) {
105
- S = !1;
106
- break;
107
- }
108
- const R = k.querySelector("button, a") || k;
109
- if (!R || !R.isConnected) {
110
- S = !1;
111
- break;
112
- }
113
- const fe = R.getBoundingClientRect(), ae = fe.width || R.offsetWidth || R.scrollWidth || R.clientWidth;
114
- if (ae > 0)
115
- M.push(ae), W.current[f] = ae;
116
- else {
117
- console.debug("❌ calculateInitialCompression: кнопка не отрендерилась", {
118
- index: f,
119
- text: (de = n[f]) == null ? void 0 : de.text,
120
- width: ae,
121
- isConnected: R.isConnected,
122
- rect: fe
123
- }), S = !1;
124
- break;
125
- }
126
- }
127
- if (!S || M.length !== n.length)
128
- return N && console.debug("❌ calculateInitialCompression: не все кнопки измерены", {
129
- allButtonsMeasured: S,
130
- buttonWidthsLength: M.length,
131
- buttonsLength: n.length
132
- }), !1;
133
- const Q = ((y = r.current) == null ? void 0 : y.getBoundingClientRect().width) ?? v, C = I - d * 2, D = [], O = [];
134
- n.forEach((f, k) => {
135
- if (M[k] === void 0)
136
- return;
137
- (f == null ? void 0 : f.view) === "accent" ? D.push(k) : O.push(k);
138
- });
139
- let L = 0;
140
- D.forEach((f) => {
141
- const k = M[f];
142
- k !== void 0 && (L += k);
143
- });
144
- const q = new Set(D);
145
- let ee = L, te = 0;
146
- for (let f = 0; f < O.length; f += 1) {
147
- const k = O[f], T = typeof k < "u" ? M[k] : 0;
148
- if (T === void 0)
149
- continue;
150
- const fe = f < O.length - 1 ? Q + V : 0, we = (q.size + 1 - 1) * V, Ne = ee + T + we + fe;
151
- if (re + Ne <= C)
152
- ee += T, te += 1, typeof k < "u" && q.add(k);
153
- else
154
- break;
155
- }
156
- const X = q.size;
157
- return p(X), console.debug("✅ calculateInitialCompression: успешно выполнено", {
158
- buttonWidths: M,
159
- visibleCount: X,
160
- accentCount: D.length,
161
- regularVisibleCount: te
162
- }), !0;
163
- }, [n, g, c, p, t, a, s, r, m, l, N, d, A, w, v]);
164
- return {
165
- calculateCompression: pe(() => {
166
- e || !i.current || !o.current || requestAnimationFrame(() => {
167
- setTimeout(() => {
168
- var ae, we, Ne, Me, We, De, Ie;
169
- const E = g();
170
- if (!E || E === 0)
171
- return;
172
- const B = E - (c ? Ae : 0);
173
- N && (console.group("🔧 MassActions Compression"), console.debug("📏 Размеры контейнера:", JSON.stringify({
174
- tableWidth: E,
175
- isHaveSomeFeatureInSidebar: c,
176
- togglePanelWidth: c ? Ae : 0,
177
- availableWidth: B,
178
- minPaddingRequired: d * 2,
179
- maxPanelWidthAllowed: B - d * 2
180
- }, null, 2)));
181
- const I = ((ae = a == null ? void 0 : a.current) == null ? void 0 : ae.getBoundingClientRect().width) ?? 0, G = ((we = s.current) == null ? void 0 : we.getBoundingClientRect().width) ?? 0, _ = ((n == null ? void 0 : n.length) ?? 0) > 0, z = _ ? ((Ne = l == null ? void 0 : l.current) == null ? void 0 : Ne.getBoundingClientRect().width) ?? 0 : 0, $ = _ ? V : 0, U = _ && G > 0 ? V : 0, Z = z + U + $;
182
- let oe = null;
183
- if (a != null && a.current) {
184
- const u = a.current.getBoundingClientRect(), {
185
- children: x
186
- } = a.current, F = [];
187
- for (let Y = 0; Y < x.length; Y += 1) {
188
- const K = x[Y];
189
- if (K) {
190
- const se = K.getBoundingClientRect();
191
- F.push({
192
- tagName: K.tagName,
193
- className: K.className,
194
- width: se.width,
195
- height: se.height
196
- });
197
- }
198
- }
199
- oe = {
200
- width: u.width,
201
- height: u.height,
202
- children: F,
203
- childrenTotalWidth: F.reduce((Y, K) => Y + K.width, 0)
204
- };
205
- }
206
- const le = V * 2, re = I + G + Z + // Divider с учетом margins и gaps
207
- (((Me = m.current) == null ? void 0 : Me.getBoundingClientRect().width) ?? ge) + (A + w) + le;
208
- N && console.debug("🔲 Фиксированные элементы:", JSON.stringify({
209
- leftSectionWidth: I,
210
- leftSectionDetails: oe,
211
- middleSectionWidth: G,
212
- divider: {
213
- shouldShow: _,
214
- wrapperWidth: z,
215
- gapLeft: U,
216
- gapRight: $,
217
- totalWidth: Z
218
- },
219
- collapseButtonWidth: ((We = m.current) == null ? void 0 : We.getBoundingClientRect().width) ?? ge,
220
- containerPadding: A + w,
221
- gapsBetweenFixedElements: le,
222
- fixedElementsTotal: re
223
- }, null, 2));
224
- const M = [];
225
- let S = !0;
226
- for (let u = 0; u < ((n == null ? void 0 : n.length) ?? 0); u += 1) {
227
- const x = t.current[u];
228
- if (x) {
229
- const Y = x.querySelector("button, a") || x, se = Y.getBoundingClientRect().width || Y.offsetWidth || Y.scrollWidth || Y.clientWidth;
230
- se > 0 ? (M.push(se), W.current[u] = se) : W.current[u] !== void 0 ? M.push(W.current[u] ?? xe) : (S = !1, M.push(xe));
231
- } else
232
- W.current[u] !== void 0 ? M.push(W.current[u] ?? xe) : (S = !1, M.push(xe));
233
- }
234
- if (!S && M.length === 0 && ((n == null ? void 0 : n.length) ?? 0) > 0)
235
- return;
236
- const Q = ((De = r.current) == null ? void 0 : De.getBoundingClientRect().width) ?? v, C = B - d * 2, D = i.current ? i.current.getBoundingClientRect().width : 0;
237
- N && (console.debug("🎯 Ограничения и текущее состояние:", JSON.stringify({
238
- targetContainer: {
239
- tableWidth: E,
240
- availableWidth: B,
241
- minPaddingEach: d,
242
- minPaddingTotal: d * 2,
243
- maxPanelWidth: C
244
- },
245
- currentPanel: {
246
- width: D,
247
- exceedsMax: D > C,
248
- exceedsAvailable: D > B,
249
- leftPadding: d,
250
- rightPadding: d
251
- },
252
- moreButtonWidth: Q
253
- }, null, 2)), console.debug("🔘 Ширины кнопок:", JSON.stringify({
254
- buttons: n == null ? void 0 : n.map((u, x) => ({
255
- index: x,
256
- text: u.text,
257
- view: u.view,
258
- isAccent: u.view === "accent",
259
- width: M[x]
260
- })),
261
- totalButtonsWidth: M.reduce((u, x) => u + x, 0),
262
- averageButtonWidth: M.length > 0 ? M.reduce((u, x) => u + x, 0) / M.length : 0
263
- }, null, 2)));
264
- const O = n ?? [], L = [], q = [];
265
- O.forEach((u, x) => {
266
- if (M[x] === void 0)
267
- return;
268
- (u == null ? void 0 : u.view) === "accent" ? L.push(x) : q.push(x);
269
- }), N && console.debug("🎨 Распределение:", {
270
- accentCount: L.length,
271
- regularCount: q.length,
272
- accentButtons: L.map((u) => {
273
- var x;
274
- return {
275
- index: u,
276
- text: (x = O[u]) == null ? void 0 : x.text,
277
- width: M[u]
278
- };
279
- })
280
- });
281
- let ee = 0;
282
- L.forEach((u) => {
283
- const x = M[u];
284
- x !== void 0 && (ee += x);
285
- });
286
- const te = new Set(L);
287
- let X = ee, ue = 0;
288
- for (let u = 0; u < q.length; u += 1) {
289
- const x = q[u], F = typeof x < "u" ? M[x] : 0;
290
- if (F === void 0)
291
- continue;
292
- const K = u < q.length - 1 ? Q + V : 0, se = te.size + 1, Te = (se - 1) * V, _e = X + F + Te + K, ve = re + _e, Be = ve + 3;
293
- if (N && console.debug(` 🔍 Проверка кнопки ${u}:`, {
294
- text: typeof x < "u" ? (Ie = O[x]) == null ? void 0 : Ie.text : "",
295
- width: F,
296
- totalButtonsWidthBefore: X,
297
- visibleCountAfter: se,
298
- gapsBetweenButtons: Te,
299
- moreButtonSpace: K,
300
- requiredWidth: _e,
301
- testPanelWidth: ve,
302
- testWithBuffer: Be,
303
- maxPanelWidth: C,
304
- fits: ve <= C,
305
- fitsWithBuffer: Be <= C
306
- }), Be <= C)
307
- X += F, ue += 1, typeof x < "u" && te.add(x);
308
- else
309
- break;
310
- }
311
- const J = te.size, ce = O.length - J > 0, de = J > 0 ? (J - 1) * V : 0, y = X + de + (ce ? Q + V : 0), f = re + y, k = [], T = [];
312
- O.forEach((u, x) => {
313
- te.has(x) ? k.push(u) : T.push(u);
314
- });
315
- const R = J, fe = {
316
- fixedElements: {
317
- leftSection: I,
318
- middleSection: G,
319
- divider: Z,
320
- collapseButton: ge,
321
- containerPadding: A + w,
322
- gapsBetweenFixedElements: le,
323
- total: re
324
- },
325
- buttons: {
326
- accentButtonsWidth: ee,
327
- visibleRegularButtonsWidth: X - ee,
328
- totalButtonsWidth: X,
329
- // Сумма только ширин кнопок без gaps
330
- gapsBetweenVisibleButtons: de,
331
- buttonsAreaWidth: y,
332
- // С учетом gaps
333
- visibleButtonsCount: J,
334
- hiddenButtonsCount: T.length
335
- },
336
- moreButton: ce ? {
337
- width: Q,
338
- gap: V,
339
- total: Q + V
340
- } : null,
341
- final: {
342
- calculatedWidth: f,
343
- actualPanelWidth: D,
344
- widthDifference: D - f,
345
- maxAllowedWidth: C,
346
- availableWidth: B,
347
- fits: f <= C,
348
- actualFits: D <= C,
349
- exceedsBy: f > C ? f - C : 0,
350
- actualExceedsBy: D > C ? D - C : 0,
351
- leftPaddingRequired: d,
352
- rightPaddingRequired: d,
353
- totalPaddingRequired: d * 2
354
- }
355
- };
356
- N && (console.debug("✅ Результат компрессии:", JSON.stringify({
357
- summary: {
358
- totalButtons: O.length,
359
- accentCount: L.length,
360
- visibleRegularCount: ue,
361
- visibleCount: R,
362
- hiddenCount: T.length,
363
- finalPanelWidth: f,
364
- maxPanelWidth: C,
365
- fits: f <= C,
366
- hasMoreButton: ce
367
- },
368
- breakdown: fe
369
- }, null, 2)), console.debug("👁️ Видимые кнопки:", {
370
- buttons: k.map((u) => ({
371
- text: u.text,
372
- view: u.view,
373
- isAccent: u.view === "accent"
374
- }))
375
- }), console.debug("📦 Кнопки в dropdown:", {
376
- buttons: T.map((u) => ({
377
- text: u.text,
378
- view: u.view
379
- }))
380
- }), console.groupEnd()), p(J);
381
- }, pt);
382
- });
383
- }, [e, i, o, g, c, N, a, s, n, l, r, m, d, A, w, v, p, t]),
384
- calculateInitialCompression: j,
385
- measuredButtonWidthsRef: W
386
- };
387
- }, wt = (e) => {
388
- const [i, o] = me(0), s = pe(() => typeof e == "function" ? e() : e.current, [e]), t = pe(() => {
389
- const r = s();
390
- return r ? r.getBoundingClientRect().width : 0;
391
- }, [s]);
392
- return ne(() => {
393
- const r = s();
394
- if (!r)
395
- return;
396
- o(r.getBoundingClientRect().width);
397
- const m = Le((a) => {
398
- for (const l of a) {
399
- const {
400
- width: n
401
- } = l.contentRect;
402
- o(n);
403
- }
404
- });
405
- return m.observe(r), () => {
406
- m.disconnect();
407
- };
408
- }, [s]), {
409
- containerWidth: i,
410
- getContainerWidth: t,
411
- getContainer: s
412
- };
413
- }, Nt = ({
414
- containerRef: e,
415
- buttonRefs: i,
416
- buttons: o,
417
- isVisible: s,
418
- isCollapsed: t,
419
- visibleButtonsCount: r,
420
- selectedCount: m,
421
- setIsCollapsed: a,
422
- setVisibleButtonsCount: l,
423
- calculatePosition: n,
424
- calculateCompression: c,
425
- measuredButtonWidthsRef: g,
426
- containerWidth: p
427
- }) => {
428
- ne(() => {
429
- p > 0 && (n(), c());
430
- }, [p, n, c]), it(() => {
431
- if (!e.current)
432
- return;
433
- const d = Le(() => {
434
- n();
435
- });
436
- return d.observe(e.current), () => {
437
- d.disconnect();
438
- };
439
- }, [n, e]), ne(() => {
440
- i.current = Array((o == null ? void 0 : o.length) ?? 0).fill(null), l((o == null ? void 0 : o.length) ?? 0), g.current = [];
441
- }, [o == null ? void 0 : o.length, i, l, g]), ne(() => {
442
- if (s && !t) {
443
- const d = setTimeout(() => {
444
- c(), n();
445
- }, ht);
446
- return () => {
447
- clearTimeout(d);
448
- };
449
- }
450
- }, [s, t, c, n]), ne(() => {
451
- if (t) {
452
- n();
453
- return;
454
- }
455
- n();
456
- }, [t, r, n]), ne(() => () => {
457
- (!s || m === 0) && a(!1);
458
- }, [s, m, a]);
459
- }, At = ({
460
- containerRef: e,
461
- collapseButtonRef: i,
462
- leftSectionRef: o,
463
- getContainerWidth: s,
464
- isHaveSomeFeatureInSidebar: t,
465
- sidebarConfig: r,
466
- visibleButtonsCount: m,
467
- setTranslateX: a,
468
- minPadding: l = Ce,
469
- enableDebugLogs: n = !1
470
- }) => {
471
- const c = (r == null ? void 0 : r.isOpen) ?? !1, g = (r == null ? void 0 : r.width) ?? 0, p = (r == null ? void 0 : r.togglePanelWidth) ?? Ae, d = b(!1), A = pe((v) => {
472
- var _, z;
473
- const N = s();
474
- if (!N || N === 0)
475
- return;
476
- const W = g + p, j = c ? W / 2 : 0, H = t ? p / 2 : 0;
477
- let E = -(j + H), B;
478
- if (v) {
479
- const $ = ((_ = o == null ? void 0 : o.current) == null ? void 0 : _.getBoundingClientRect().width) ?? Se, U = ((z = i.current) == null ? void 0 : z.getBoundingClientRect().width) ?? ge, Z = Ee.top + Ee.right + Ee.left;
480
- B = $ + U + Z;
481
- } else if (e.current)
482
- B = e.current.getBoundingClientRect().width;
483
- else {
484
- const $ = m * xe, U = ie.top + ie.right + ie.left;
485
- B = Se + dt + ge + $ + U;
486
- }
487
- const I = N / 2;
488
- return I - B / 2 + E < l && (E = l - (I - B / 2)), E;
489
- }, [s, e, i, o, t, c, g, p, m, l]);
490
- return {
491
- calculatePosition: pe(() => {
492
- const v = s();
493
- if (!v || v === 0 || !e.current)
494
- return;
495
- n && console.group("📍 MassActions Position");
496
- const N = g + p, W = c ? N / 2 : 0, j = t ? p / 2 : 0;
497
- let H = -(W + j);
498
- const E = e.current.getBoundingClientRect().width, B = v / 2, I = B - E / 2 + H;
499
- I < l && (H = l - (B - E / 2)), n && (console.log("🎯 Позиционирование:", JSON.stringify({
500
- tableWidth: v,
501
- panelWidth: E,
502
- tableCenter: B,
503
- sidebarWidth: g,
504
- toggleSidebarPanelWidth: p,
505
- isSidebarOpen: c,
506
- isHaveSomeFeatureInSidebar: t,
507
- totalSidebarWidth: N,
508
- sidebarOffset: W,
509
- togglePanelOffset: j,
510
- idealTranslateX: -(W + j),
511
- leftEdgePosition: I,
512
- minPadding: l,
513
- finalTranslateX: H,
514
- adjusted: I < Ce
515
- }, null, 2)), console.groupEnd()), a(H), c ? d.current = !0 : d.current = !1;
516
- }, [s, e, n, g, p, t, c, a, l]),
517
- calculatePositionForState: A,
518
- shouldApplySidebarOffsetRef: d
519
- };
520
- }, kt = ({
521
- isCollapsed: e,
522
- setIsCollapsed: i,
523
- calculatePositionForState: o,
524
- calculatePosition: s,
525
- setTranslateX: t,
526
- shouldApplySidebarOffsetRef: r,
527
- sidebarConfig: m,
528
- getContainerWidth: a
529
- }) => {
530
- const l = (m == null ? void 0 : m.isOpen) ?? !1, n = (m == null ? void 0 : m.width) ?? 0, c = b(!1), g = b(l);
531
- return ne(() => {
532
- if (!m)
533
- return;
534
- const d = g.current !== l;
535
- if (g.current = l, !d) {
536
- s();
537
- return;
538
- }
539
- if (l)
540
- if (e)
541
- s();
542
- else {
543
- c.current = !0;
544
- const A = o(!0);
545
- A !== void 0 && (t(A), r.current = !0), i(!0), setTimeout(() => {
546
- s();
547
- }, ye);
548
- }
549
- else if (e) {
550
- c.current = !1, r.current = !1;
551
- const A = o(!1);
552
- A !== void 0 && t(A), i(!1), setTimeout(() => {
553
- s();
554
- }, ye);
555
- } else
556
- r.current = !1, s();
557
- }, [l, n, a]), {
558
- isSidebarOpen: l,
559
- sidebarWidth: n,
560
- wasAutoCollapsedRef: c
561
- };
562
- }, Mt = (e) => {
563
- const i = b(e), [o, s] = me(e > 0);
564
- return ne(() => {
565
- var a;
566
- const t = i.current, r = t === 0 && e > 0, m = t > 0 && e === 0;
567
- if (r || m) {
568
- const l = () => {
569
- s(e > 0);
570
- };
571
- document.startViewTransition ? (a = document.startViewTransition) == null || a.call(document, l) : l();
572
- } else
573
- s(e > 0);
574
- i.current = e;
575
- }, [e]), o;
576
- }, vt = "mass-actions-panel", be = {
577
- surfaceSolidCard: () => rt,
578
- outlineSolidPrimary: () => ct
579
- }, Bt = P(Fe).withConfig({
580
- displayName: "styled__StyledLinkButton"
581
- })({
582
- paddingInline: qe.x8
583
- }), Je = (e) => P(e).withConfig({
584
- displayName: "styled__getButtonWithDropdown"
585
- })(["", " ", ""], ({
586
- $hasDropdown: i
587
- }) => i && ke(["& > div > span:last-child{max-width:fit-content;min-width:unset;}"]), ({
588
- $buttonStyles: i
589
- }) => i && ke(["", ""], i)), Et = Je(ze), Ct = Je(Bt), yt = P.div.withConfig({
590
- displayName: "styled__MassActionsContainer"
591
- })(["position:absolute;bottom:", "px;left:50%;transform:", ";background:", ";border:2px solid ", ";padding:", ";border-radius:14px;display:block;width:fit-content;max-width:", ";view-transition-name:", ";opacity:", ";transition:padding 0.3s cubic-bezier(0.4,0,0.2,1),transform 0.3s cubic-bezier(0.4,0,0.2,1),max-width 0.2s cubic-bezier(0.4,0,0.2,1),opacity 0.2s ease-in-out;will-change:padding,transform,max-width;box-shadow:", ";"], ({
592
- $bottom: e = 24
593
- }) => e, ({
594
- $translateX: e
595
- }) => e !== void 0 ? `translateX(calc(-50% + ${e}px))` : "translateX(-50%)", be.surfaceSolidCard, be.outlineSolidPrimary, ({
596
- $isCollapsed: e,
597
- $size: i
598
- }) => {
599
- const o = i === "xs";
600
- return e ? o ? "0px 2px 0px 12px" : "0px 10px 0px 24px" : o ? "4px 2px 4px 12px" : "12px 8px 12px 24px";
601
- }, ({
602
- $isCollapsed: e
603
- }) => e ? "350" : "2000px", vt, ({
604
- $isInitialCalculationComplete: e
605
- }) => e ? 1 : 0, at), Wt = P.div.withConfig({
606
- displayName: "styled__MassActionsContent"
607
- })(["display:flex;align-items:center;gap:", ";"], ({
608
- $isCollapsed: e,
609
- $isCompact: i
610
- }) => e ? i ? "4px" : "8px" : "0px"), Dt = P.div.withConfig({
611
- displayName: "styled__ActionsWrapper"
612
- })(["display:flex;max-height:", ";align-items:center;gap:4px;flex:1;justify-content:flex-end;overflow:hidden;min-width:0;transition:max-height 0.2s cubic-bezier(0.4,0,0.2,1),opacity 0.3s cubic-bezier(0.4,0,0.2,1),max-width 0.1s cubic-bezier(0.4,0,0.2,1),margin 0.3s cubic-bezier(0.4,0,0.2,1),gap 0.3s cubic-bezier(0.4,0,0.2,1);", ""], ({
613
- $isCollapsed: e
614
- }) => e ? "0" : "40px", ({
615
- $isCollapsed: e
616
- }) => e ? ke(["opacity:0;max-width:0;margin:0;gap:0;"]) : ke(["opacity:1;max-width:2000px;"])), It = P.div.withConfig({
617
- displayName: "styled__HiddenButtonsMeasurementContainer"
618
- })(["position:absolute;left:-9999px;top:0;display:flex;gap:4px;align-items:center;z-index:-1;pointer-events:none;width:auto;height:auto;"]), Tt = P.div.withConfig({
619
- displayName: "styled__ButtonMeasurementWrapper"
620
- })(["display:inline-flex;width:auto;height:auto;"]), _t = P.div.withConfig({
621
- displayName: "styled__VisibleButtonWrapper"
622
- })(["margin-left:0;"]), Ot = P(et).withConfig({
623
- displayName: "styled__CollapseIcon"
624
- })(["transition:all 0.3s;transform:", ";"], ({
625
- $isCollapsed: e
626
- }) => e ? "scaleY(1)" : "scaleY(-1)"), Vt = P(Re).withConfig({
627
- displayName: "styled__CollapseButton"
628
- })(["padding:", ";"], ({
629
- $isCompact: e
630
- }) => e ? qe.x8 : lt);
631
- P(ze).withConfig({
632
- displayName: "styled__MoreButton"
633
- })(["margin-left:0;"]);
634
- const St = P(He).withConfig({
635
- displayName: "styled__StyledDivider"
636
- })(["padding-left:1px;margin-left:12px;margin-right:8px;"]), bt = (e) => {
637
- if (typeof e == "string" && e.startsWith("link")) {
638
- const i = e.slice(4);
639
- return i.charAt(0).toLowerCase() + i.slice(1);
640
- }
641
- return e ?? "default";
642
- }, jt = {
643
- size: "s",
644
- view: "linkDefault"
645
- }, Ye = ({
646
- type: e,
647
- view: i,
648
- showLabel: o,
649
- text: s,
650
- buttonStyles: t,
651
- dropdown: r,
652
- useTableDropdown: m = !1,
653
- ...a
654
- }) => {
655
- const l = e ?? "linkButton", { view: n, ...c } = jt, g = i ?? n, p = o ? s : void 0, d = !!r;
656
- let A;
657
- if (l === "button") {
658
- const w = a, v = w.text ?? p;
659
- A = /* @__PURE__ */ h.jsxDEV(
660
- Et,
661
- {
662
- ...c,
663
- ...w,
664
- view: g,
665
- text: v,
666
- $hasDropdown: d,
667
- $showLabel: o,
668
- $buttonStyles: t
669
- },
670
- void 0,
671
- !1,
672
- {
673
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsButton.tsx",
674
- lineNumber: 68,
675
- columnNumber: 5
676
- },
677
- void 0
678
- );
679
- } else {
680
- const w = String(g ?? "linkDefault"), N = w.startsWith("link") ? bt(w) : w;
681
- A = /* @__PURE__ */ h.jsxDEV(
682
- Ct,
683
- {
684
- ...c,
685
- ...a,
686
- view: N,
687
- text: p,
688
- $hasDropdown: d,
689
- $showLabel: o,
690
- $buttonStyles: t
691
- },
692
- void 0,
693
- !1,
694
- {
695
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsButton.tsx",
696
- lineNumber: 87,
697
- columnNumber: 5
698
- },
699
- void 0
700
- );
701
- }
702
- if (r && r.items && r.items.length > 0)
703
- if (m)
704
- A = /* @__PURE__ */ h.jsxDEV(Ue, { ...r, children: A }, void 0, !1, {
705
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsButton.tsx",
706
- lineNumber: 104,
707
- columnNumber: 15
708
- }, void 0);
709
- else {
710
- const { $css: w, ...v } = r;
711
- A = /* @__PURE__ */ h.jsxDEV($e, { ...v, children: A }, void 0, !1, {
712
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsButton.tsx",
713
- lineNumber: 109,
714
- columnNumber: 15
715
- }, void 0);
716
- }
717
- return A;
718
- }, zt = ({
719
- selectedCount: e,
720
- label: i = "Выбрано",
721
- showCheckbox: o = !1,
722
- checked: s = !1,
723
- onCheckboxChange: t,
724
- className: r,
725
- indeterminate: m
726
- }) => {
727
- const { down: a } = Pe(), l = a("xl"), n = e > 0, c = l ? "BodyXS" : "BodyS", g = (() => {
728
- if (e === 0)
729
- return "0px";
730
- const d = e.toString().length;
731
- return `${Math.max(16, 7.1 + d * 6.1) + 4}px`;
732
- })(), p = o ? /* @__PURE__ */ h.jsxDEV(
733
- Oe,
734
- {
735
- $css: {
736
- display: "flex",
737
- alignItems: "center",
738
- gap: "4px"
739
- },
740
- children: [
741
- /* @__PURE__ */ h.jsxDEV(
742
- Ke,
743
- {
744
- checked: s,
745
- indeterminate: m,
746
- onChange: t,
747
- size: "m"
748
- },
749
- void 0,
750
- !1,
751
- {
752
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsCounter.tsx",
753
- lineNumber: 53,
754
- columnNumber: 7
755
- },
756
- void 0
757
- ),
758
- /* @__PURE__ */ h.jsxDEV(Ve, { variant: c, children: i }, void 0, !1, {
759
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsCounter.tsx",
760
- lineNumber: 59,
761
- columnNumber: 7
762
- }, void 0)
763
- ]
764
- },
765
- void 0,
766
- !0,
767
- {
768
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsCounter.tsx",
769
- lineNumber: 46,
770
- columnNumber: 3
771
- },
772
- void 0
773
- ) : /* @__PURE__ */ h.jsxDEV(Ve, { variant: c, children: i }, void 0, !1, {
774
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsCounter.tsx",
775
- lineNumber: 62,
776
- columnNumber: 3
777
- }, void 0);
778
- return /* @__PURE__ */ h.jsxDEV(
779
- Oe,
780
- {
781
- className: r,
782
- $css: {
783
- display: "flex",
784
- alignItems: "center"
785
- },
786
- children: [
787
- p,
788
- /* @__PURE__ */ h.jsxDEV(
789
- ut,
790
- {
791
- duration: 0.3,
792
- orientation: "horizontal",
793
- isOpen: n,
794
- unMountOnClose: !0,
795
- sizeOnOpen: g,
796
- extContainerCss: {
797
- overflow: "visible",
798
- display: "flex",
799
- justifyContent: "flex-end"
800
- },
801
- intContainerCss: {
802
- always: {
803
- opacity: "0",
804
- transition: ".3s ease"
805
- },
806
- onOpen: {
807
- opacity: 1
808
- }
809
- },
810
- children: n && /* @__PURE__ */ h.jsxDEV(
811
- ot,
812
- {
813
- className: "counter",
814
- count: e,
815
- size: "xs",
816
- view: "accent",
817
- style: {
818
- marginBottom: "3px"
819
- }
820
- },
821
- e,
822
- !1,
823
- {
824
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsCounter.tsx",
825
- lineNumber: 96,
826
- columnNumber: 9
827
- },
828
- void 0
829
- )
830
- },
831
- void 0,
832
- !1,
833
- {
834
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsCounter.tsx",
835
- lineNumber: 74,
836
- columnNumber: 7
837
- },
838
- void 0
839
- )
840
- ]
841
- },
842
- void 0,
843
- !0,
844
- {
845
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsCounter.tsx",
846
- lineNumber: 66,
847
- columnNumber: 5
848
- },
849
- void 0
850
- );
851
- }, $t = (e = []) => Ge(() => {
852
- const i = [], o = {}, s = /* @__PURE__ */ new Map();
853
- return e.forEach((t) => {
854
- var r, m;
855
- if (t.dropdown) {
856
- const a = `group-${t.key || t.text || Date.now()}`, l = "items" in t.dropdown ? t.dropdown.items || [] : [], n = "onItemSelect" in t.dropdown ? t.dropdown.onItemSelect : void 0;
857
- n && s.set(a.toString(), n);
858
- const [c, g] = nt(
859
- l,
860
- n
861
- );
862
- g.forEach(
863
- (p, d) => s.set(d, p)
864
- ), (r = t.dropdown) != null && r.$css && Object.assign(o, (m = t.dropdown) == null ? void 0 : m.$css), i.push({
865
- label: t.text ?? "",
866
- value: a,
867
- contentLeft: t.contentLeft,
868
- items: c,
869
- className: t.className,
870
- disabled: t.disabled
871
- });
872
- } else {
873
- const a = t.key || t.text || `btn-${Date.now()}`, l = {
874
- label: t.text || "Кнопка",
875
- value: a.toString(),
876
- disabled: t.disabled,
877
- contentLeft: t.contentLeft
878
- };
879
- t.onClick && s.set(a.toString(), (n, c) => {
880
- var p;
881
- const g = {
882
- ...c,
883
- nativeEvent: c.nativeEvent,
884
- preventDefault: c.preventDefault,
885
- stopPropagation: c.stopPropagation,
886
- target: c.target,
887
- currentTarget: c.currentTarget
888
- };
889
- (p = t.onClick) == null || p.call(
890
- t,
891
- g
892
- );
893
- }), i.push(l);
894
- }
895
- }), {
896
- dropdownItems: i,
897
- handlerMap: s,
898
- $summaryCSS: o
899
- };
900
- }, [e]), Lt = ({
901
- buttons: e = [],
902
- dividerIndexes: i = [],
903
- triggerSlot: o,
904
- dropdownProps: s,
905
- useTableDropdown: t = !1
906
- }) => {
907
- const { dropdownItems: r, handlerMap: m, $summaryCSS: a } = $t(e), l = st(m), [n, c] = me(!1), g = r.map((w, v) => (i.includes(v) && (w.dividerAfter = !0), w)), p = {
908
- closeOnSelect: !0,
909
- ...s,
910
- onItemSelect: l,
911
- items: g,
912
- onToggle: (w) => c(w),
913
- portal: "document",
914
- view: (s == null ? void 0 : s.view) || "default"
915
- }, { portal: d, ...A } = p;
916
- return t ? /* @__PURE__ */ h.jsxDEV(Ue, { $css: a, ...A, children: o }, void 0, !1, {
917
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsDropdown.tsx",
918
- lineNumber: 145,
919
- columnNumber: 7
920
- }, void 0) : /* @__PURE__ */ h.jsxDEV($e, { ...p, children: o }, void 0, !1, {
921
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActionsDropdown.tsx",
922
- lineNumber: 152,
923
- columnNumber: 10
924
- }, void 0);
925
- }, Pt = ({
926
- button: e,
927
- isCompact: i,
928
- compactSize: o = "xs",
929
- useTableDropdown: s = !1
930
- }) => {
931
- const t = e.size ?? (i ? o : "s");
932
- return /* @__PURE__ */ h.jsxDEV(
933
- Ye,
934
- {
935
- ...e,
936
- size: t,
937
- showLabel: !0,
938
- useTableDropdown: s
939
- },
940
- void 0,
941
- !1,
942
- {
943
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
944
- lineNumber: 61,
945
- columnNumber: 5
946
- },
947
- void 0
948
- );
949
- }, Gt = ({
950
- button: e,
951
- isCompact: i,
952
- compactSize: o = "xs",
953
- useTableDropdown: s = !1
954
- }) => {
955
- const t = e.size ?? (i ? o : "s");
956
- return /* @__PURE__ */ h.jsxDEV(
957
- Ye,
958
- {
959
- ...e,
960
- size: t,
961
- showLabel: !0,
962
- useTableDropdown: s
963
- },
964
- void 0,
965
- !1,
966
- {
967
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
968
- lineNumber: 88,
969
- columnNumber: 5
970
- },
971
- void 0
972
- );
973
- }, je = (e, i, o = !1, s = "xs") => e.type === "button" ? /* @__PURE__ */ h.jsxDEV(
974
- Pt,
975
- {
976
- button: e,
977
- isCompact: i,
978
- compactSize: s,
979
- useTableDropdown: o
980
- },
981
- void 0,
982
- !1,
983
- {
984
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
985
- lineNumber: 105,
986
- columnNumber: 7
987
- },
988
- void 0
989
- ) : /* @__PURE__ */ h.jsxDEV(
990
- Gt,
991
- {
992
- button: e,
993
- isCompact: i,
994
- compactSize: s,
995
- useTableDropdown: o
996
- },
997
- void 0,
998
- !1,
999
- {
1000
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1001
- lineNumber: 115,
1002
- columnNumber: 5
1003
- },
1004
- void 0
1005
- ), Ut = ({
1006
- containerRef: e,
1007
- leftSection: i,
1008
- middleSection: o,
1009
- buttons: s,
1010
- sidebarConfig: t,
1011
- isHaveSomeFeatureInSidebar: r = !1,
1012
- collapsedDropdownProps: m,
1013
- selectedCount: a,
1014
- show: l,
1015
- useTableDropdown: n = !1,
1016
- enableDebugLogs: c = !1,
1017
- bottom: g = 16,
1018
- minPadding: p = 16,
1019
- size: d
1020
- }) => {
1021
- const { down: A } = Pe(), w = d ? d === "xs" : A("xl"), v = d ? "xxs" : "xs", [N, W] = me(!1), j = b(null), H = b(null), E = b(null), B = b([]), I = b(null), G = b(null), _ = b(null), z = b(null), [$, U] = me(
1022
- (s == null ? void 0 : s.length) ?? 0
1023
- ), [Z, oe] = me(void 0), [le, re] = me(!1), { containerWidth: M, getContainerWidth: S } = wt(e), Q = Mt(a), C = l !== void 0 ? l : Q, {
1024
- calculatePosition: D,
1025
- calculatePositionForState: O,
1026
- shouldApplySidebarOffsetRef: L
1027
- } = At({
1028
- containerRef: j,
1029
- collapseButtonRef: G,
1030
- leftSectionRef: _,
1031
- getContainerWidth: S,
1032
- isHaveSomeFeatureInSidebar: r,
1033
- sidebarConfig: t,
1034
- visibleButtonsCount: $,
1035
- setTranslateX: oe,
1036
- minPadding: p
1037
- }), { calculateCompression: q, measuredButtonWidthsRef: ee } = xt({
1038
- isCollapsed: N,
1039
- containerRef: j,
1040
- contentRef: H,
1041
- middleSectionRef: E,
1042
- buttonRefs: B,
1043
- moreButtonRef: I,
1044
- collapseButtonRef: G,
1045
- leftSectionRef: _,
1046
- dividerRef: z,
1047
- buttons: s,
1048
- isHaveSomeFeatureInSidebar: r,
1049
- getContainerWidth: S,
1050
- setVisibleButtonsCount: U,
1051
- enableDebugLogs: c,
1052
- minPadding: p,
1053
- leftPadding: ie.left,
1054
- rightPadding: ie.right,
1055
- moreButtonWidthEstimate: w ? 32 : Xe
1056
- }), { isSidebarOpen: te, wasAutoCollapsedRef: X } = kt({
1057
- isCollapsed: N,
1058
- setIsCollapsed: W,
1059
- calculatePositionForState: O,
1060
- calculatePosition: D,
1061
- setTranslateX: oe,
1062
- shouldApplySidebarOffsetRef: L,
1063
- sidebarConfig: t,
1064
- getContainerWidth: S
1065
- }), { handleToggleCollapse: ue } = gt({
1066
- isCollapsed: N,
1067
- setIsCollapsed: W,
1068
- isSidebarOpen: te,
1069
- calculatePositionForState: O,
1070
- calculatePosition: D,
1071
- setTranslateX: oe,
1072
- shouldApplySidebarOffsetRef: L,
1073
- wasAutoCollapsedRef: X
1074
- }), { visibleButtons: J, buttonsInDropdown: he, allButtons: ce } = ft({
1075
- buttons: s,
1076
- visibleButtonsCount: $
1077
- });
1078
- if (ne(() => {
1079
- const y = setTimeout(
1080
- () => re(!0),
1081
- mt
1082
- );
1083
- return () => clearTimeout(y);
1084
- }, []), Nt({
1085
- containerRef: j,
1086
- buttonRefs: B,
1087
- buttons: s,
1088
- isVisible: C,
1089
- isCollapsed: N,
1090
- visibleButtonsCount: $,
1091
- selectedCount: a,
1092
- setIsCollapsed: W,
1093
- setVisibleButtonsCount: U,
1094
- calculatePosition: D,
1095
- calculateCompression: q,
1096
- measuredButtonWidthsRef: ee,
1097
- containerWidth: M
1098
- }), !C)
1099
- return null;
1100
- const de = !N && ((s == null ? void 0 : s.length) ?? 0) > 0;
1101
- return /* @__PURE__ */ h.jsxDEV(
1102
- yt,
1103
- {
1104
- ref: j,
1105
- $isCollapsed: N,
1106
- $size: d,
1107
- $translateX: Z,
1108
- $isInitialCalculationComplete: le,
1109
- $bottom: g,
1110
- children: /* @__PURE__ */ h.jsxDEV(
1111
- Wt,
1112
- {
1113
- ref: H,
1114
- $isCollapsed: N,
1115
- $isCompact: w,
1116
- children: [
1117
- /* @__PURE__ */ h.jsxDEV(It, { children: ce.map((y, f) => {
1118
- const k = y.key ?? `${y.text}${f}`;
1119
- return /* @__PURE__ */ h.jsxDEV(
1120
- Tt,
1121
- {
1122
- ref: (T) => {
1123
- B.current[f] = T;
1124
- },
1125
- children: je(
1126
- y,
1127
- w,
1128
- n,
1129
- v
1130
- )
1131
- },
1132
- `measure-${k}`,
1133
- !1,
1134
- {
1135
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1136
- lineNumber: 300,
1137
- columnNumber: 15
1138
- },
1139
- void 0
1140
- );
1141
- }) }, void 0, !1, {
1142
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1143
- lineNumber: 296,
1144
- columnNumber: 9
1145
- }, void 0),
1146
- /* @__PURE__ */ h.jsxDEV("div", { ref: _, children: i }, void 0, !1, {
1147
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1148
- lineNumber: 319,
1149
- columnNumber: 9
1150
- }, void 0),
1151
- /* @__PURE__ */ h.jsxDEV(Dt, { $isCollapsed: N, children: [
1152
- o && /* @__PURE__ */ h.jsxDEV("div", { ref: E, children: o }, void 0, !1, {
1153
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1154
- lineNumber: 324,
1155
- columnNumber: 29
1156
- }, void 0),
1157
- de && /* @__PURE__ */ h.jsxDEV("div", { ref: z, children: /* @__PURE__ */ h.jsxDEV(St, { orientation: "vertical", length: "16px" }, void 0, !1, {
1158
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1159
- lineNumber: 328,
1160
- columnNumber: 15
1161
- }, void 0) }, void 0, !1, {
1162
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1163
- lineNumber: 327,
1164
- columnNumber: 11
1165
- }, void 0),
1166
- he.length > 0 && /* @__PURE__ */ h.jsxDEV(
1167
- "div",
1168
- {
1169
- ref: (y) => {
1170
- I.current = y;
1171
- },
1172
- children: /* @__PURE__ */ h.jsxDEV(
1173
- Lt,
1174
- {
1175
- buttons: he,
1176
- useTableDropdown: n,
1177
- dropdownProps: {
1178
- placement: "top",
1179
- ...m
1180
- },
1181
- triggerSlot: /* @__PURE__ */ h.jsxDEV(
1182
- Ze,
1183
- {
1184
- view: "secondary",
1185
- size: w ? v : "s",
1186
- contentLeft: /* @__PURE__ */ h.jsxDEV(
1187
- tt,
1188
- {
1189
- size: w ? "xs" : "s"
1190
- },
1191
- void 0,
1192
- !1,
1193
- {
1194
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1195
- lineNumber: 351,
1196
- columnNumber: 17
1197
- },
1198
- void 0
1199
- )
1200
- },
1201
- void 0,
1202
- !1,
1203
- {
1204
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1205
- lineNumber: 347,
1206
- columnNumber: 15
1207
- },
1208
- void 0
1209
- )
1210
- },
1211
- void 0,
1212
- !1,
1213
- {
1214
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1215
- lineNumber: 339,
1216
- columnNumber: 15
1217
- },
1218
- void 0
1219
- )
1220
- },
1221
- void 0,
1222
- !1,
1223
- {
1224
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1225
- lineNumber: 334,
1226
- columnNumber: 11
1227
- },
1228
- void 0
1229
- ),
1230
- J.map(
1231
- (y, f) => {
1232
- const k = y.key ?? `${y.text}${f}`, T = /* @__PURE__ */ h.jsxDEV(_t, { children: je(
1233
- y,
1234
- w,
1235
- n,
1236
- v
1237
- ) }, k, !1, {
1238
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1239
- lineNumber: 366,
1240
- columnNumber: 15
1241
- }, void 0);
1242
- return y.disabled && y.disabledTooltipProps ? /* @__PURE__ */ h.jsxDEV(
1243
- Qe,
1244
- {
1245
- trigger: "hover",
1246
- ...y.disabledTooltipProps,
1247
- children: T
1248
- },
1249
- k,
1250
- !1,
1251
- {
1252
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1253
- lineNumber: 379,
1254
- columnNumber: 19
1255
- },
1256
- void 0
1257
- ) : T;
1258
- }
1259
- )
1260
- ] }, void 0, !0, {
1261
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1262
- lineNumber: 322,
1263
- columnNumber: 9
1264
- }, void 0),
1265
- /* @__PURE__ */ h.jsxDEV("div", { ref: G, children: /* @__PURE__ */ h.jsxDEV(
1266
- Vt,
1267
- {
1268
- size: w ? "s" : "m",
1269
- $isCollapsed: N,
1270
- $isCompact: w,
1271
- onClick: ue,
1272
- children: /* @__PURE__ */ h.jsxDEV(
1273
- Ot,
1274
- {
1275
- size: w ? "xs" : "s",
1276
- $isCollapsed: N
1277
- },
1278
- void 0,
1279
- !1,
1280
- {
1281
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1282
- lineNumber: 402,
1283
- columnNumber: 13
1284
- },
1285
- void 0
1286
- )
1287
- },
1288
- void 0,
1289
- !1,
1290
- {
1291
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1292
- lineNumber: 396,
1293
- columnNumber: 11
1294
- },
1295
- void 0
1296
- ) }, void 0, !1, {
1297
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1298
- lineNumber: 395,
1299
- columnNumber: 9
1300
- }, void 0)
1301
- ]
1302
- },
1303
- void 0,
1304
- !0,
1305
- {
1306
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1307
- lineNumber: 291,
1308
- columnNumber: 7
1309
- },
1310
- void 0
1311
- )
1312
- },
1313
- void 0,
1314
- !1,
1315
- {
1316
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/MassActions/MassActions.tsx",
1317
- lineNumber: 283,
1318
- columnNumber: 5
1319
- },
1320
- void 0
1321
- );
1322
- };
1323
- Ut.Counter = zt;
1324
- export {
1325
- xe as A,
1326
- ge as C,
1327
- mt as D,
1328
- V as E,
1329
- ht as I,
1330
- Ut as M,
1331
- Ee as P,
1332
- dt as R,
1333
- Ae as T,
1334
- ye as a,
1335
- is as b,
1336
- pt as c,
1337
- ns as d,
1338
- Se as e,
1339
- Ce as f,
1340
- Xe as g,
1341
- Ye as h,
1342
- zt as i,
1343
- ie as j,
1344
- gt as k,
1345
- xt as l,
1346
- wt as m,
1347
- Nt as n,
1348
- At as o,
1349
- kt as p,
1350
- Mt as q,
1351
- ft as u
1352
- };