@daisforge/ui 1.12.1 → 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 (468) 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 +1 -1
  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/index.cjs +1 -1
  283. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  284. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  285. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  286. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  287. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  288. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  289. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  290. package/components/TableCanvas/index.cjs +1 -1
  291. package/components/TableCanvas/index.mjs +2 -2
  292. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  293. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  294. package/components/TableCanvas/styles/index.cjs +1 -1
  295. package/components/TableCanvas/styles/index.mjs +1 -1
  296. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  297. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  298. package/components/TableCanvas/types/index.cjs +1 -1
  299. package/components/TableCanvas/types/index.mjs +1 -1
  300. package/components/TableCanvas/utils/index.cjs +1 -1
  301. package/components/TableCanvas/utils/index.mjs +2 -2
  302. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  303. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  304. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  305. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  306. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  307. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  308. package/components/TableCanvas/widgets/index.cjs +1 -1
  309. package/components/TableCanvas/widgets/index.mjs +1 -1
  310. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  311. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  312. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  313. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  314. package/components/TableContract/index.cjs +2 -2
  315. package/components/TableContract/index.mjs +540 -798
  316. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  317. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  318. package/components/TableGlide/index.cjs +1 -1
  319. package/components/TableGlide/index.mjs +1 -1
  320. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  321. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
  322. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  323. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  324. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  325. package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
  326. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  327. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
  328. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  329. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  330. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  331. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  332. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  333. package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
  334. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  335. package/components/TableGlide/lib/canvas/index.mjs +1 -1
  336. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  337. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  338. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  339. package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
  340. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  341. package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
  342. package/components/TableGlide/theming/index.cjs +1 -1
  343. package/components/TableGlide/theming/index.mjs +1 -1
  344. package/components/TableTabs/index.cjs +1 -1
  345. package/components/TableTabs/index.mjs +136 -305
  346. package/components/TextArea/index.cjs +1 -1
  347. package/components/TextArea/index.mjs +26 -40
  348. package/components/TextField/index.cjs +1 -1
  349. package/components/TextField/index.mjs +38 -82
  350. package/components/Tooltip/index.cjs +1 -1
  351. package/components/Tooltip/index.mjs +1 -1
  352. package/components/TourWidget/index.cjs +15 -15
  353. package/components/TourWidget/index.mjs +176 -371
  354. package/components/Typography/index.cjs +1 -1
  355. package/components/Typography/index.mjs +1 -1
  356. package/components/Widget/index.cjs +1 -1
  357. package/components/Widget/index.mjs +151 -363
  358. package/formComponents/FormAutocomplete/index.cjs +1 -1
  359. package/formComponents/FormAutocomplete/index.mjs +63 -68
  360. package/formComponents/FormCheckbox/index.cjs +1 -1
  361. package/formComponents/FormCheckbox/index.mjs +27 -55
  362. package/formComponents/FormCombobox/index.cjs +1 -1
  363. package/formComponents/FormCombobox/index.mjs +61 -75
  364. package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
  365. package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
  366. package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
  367. package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
  368. package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
  369. package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
  370. package/formComponents/FormDatePickers/index.cjs +1 -1
  371. package/formComponents/FormDatePickers/index.mjs +1 -1
  372. package/formComponents/FormMask/index.cjs +1 -1
  373. package/formComponents/FormMask/index.mjs +61 -66
  374. package/formComponents/FormNumberFormat/index.cjs +1 -1
  375. package/formComponents/FormNumberFormat/index.mjs +56 -68
  376. package/formComponents/FormRadioGroupBox/index.cjs +1 -1
  377. package/formComponents/FormRadioGroupBox/index.mjs +71 -144
  378. package/formComponents/FormSegments/index.cjs +1 -1
  379. package/formComponents/FormSegments/index.mjs +1 -1
  380. package/formComponents/FormSelect/index.cjs +1 -1
  381. package/formComponents/FormSelect/index.mjs +62 -76
  382. package/formComponents/FormSwitch/index.cjs +1 -1
  383. package/formComponents/FormSwitch/index.mjs +25 -53
  384. package/formComponents/FormTextArea/index.cjs +1 -1
  385. package/formComponents/FormTextArea/index.mjs +1 -1
  386. package/formComponents/FormTextArea/ui/index.cjs +1 -1
  387. package/formComponents/FormTextArea/ui/index.mjs +1 -1
  388. package/formComponents/FormTextField/index.cjs +1 -1
  389. package/formComponents/FormTextField/index.mjs +70 -101
  390. package/index.cjs +1 -1
  391. package/index.mjs +21 -21
  392. package/layouts/Container/index.cjs +1 -1
  393. package/layouts/Container/index.mjs +1 -1
  394. package/layouts/Container/lib/utils/index.cjs +1 -1
  395. package/layouts/Container/lib/utils/index.mjs +1 -1
  396. package/layouts/ErrorPage/index.cjs +1 -1
  397. package/layouts/ErrorPage/index.mjs +81 -146
  398. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  399. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  400. package/layouts/FiltersActions/index.cjs +1 -1
  401. package/layouts/FiltersActions/index.mjs +1 -1
  402. package/layouts/Layout/index.cjs +5 -5
  403. package/layouts/Layout/index.mjs +78 -115
  404. package/layouts/PageLayout/index.cjs +2 -2
  405. package/layouts/PageLayout/index.mjs +15 -32
  406. package/mixins/index.cjs +1 -1
  407. package/mixins/index.mjs +1 -1
  408. package/package.json +1 -1
  409. package/shared/ui/Search/index.cjs +1 -1
  410. package/shared/ui/Search/index.mjs +30 -52
  411. package/shared/utils/inputs/index.cjs +1 -1
  412. package/shared/utils/inputs/index.mjs +33 -48
  413. package/styles/index.cjs +1 -1
  414. package/styles/index.mjs +1 -1
  415. package/themes/index.cjs +1 -1
  416. package/themes/index.mjs +1 -1
  417. package/utils/breakpoint/index.cjs +1 -1
  418. package/utils/breakpoint/index.mjs +1 -1
  419. package/utils/clickStream/index.cjs +1 -1
  420. package/utils/clickStream/index.mjs +1 -1
  421. package/utils/eventBus/index.cjs +1 -1
  422. package/utils/eventBus/index.mjs +1 -1
  423. package/utils/hooks/index.cjs +1 -1
  424. package/utils/hooks/index.mjs +1 -1
  425. package/utils/index.cjs +1 -1
  426. package/utils/index.mjs +1 -1
  427. package/utils/styles/index.cjs +1 -1
  428. package/utils/styles/index.mjs +1 -1
  429. package/chunks/AnalyticalWidget-Ca_EuSTO.mjs +0 -868
  430. package/chunks/AnalyticalWidget-xgvWcsXx.cjs +0 -43
  431. package/chunks/ApprovalCenter-4aJlJfei.mjs +0 -531
  432. package/chunks/ApprovalCenter-Ij5NMkY-.cjs +0 -1
  433. package/chunks/BlockTitle-CgXVHok6.mjs +0 -180
  434. package/chunks/BlockTitle-SaP9H2PI.cjs +0 -1
  435. package/chunks/Container-ChuCs63G.cjs +0 -17
  436. package/chunks/Container-D8RdjkGo.mjs +0 -180
  437. package/chunks/EmptyState-BxUh2dhY.cjs +0 -1
  438. package/chunks/EmptyState-C0aHgxrn.mjs +0 -615
  439. package/chunks/FiltersActions-BekNxF-h.cjs +0 -1
  440. package/chunks/FiltersActions-CSucE-Ql.mjs +0 -637
  441. package/chunks/FormDatePickers-BCyW24Pr.cjs +0 -1
  442. package/chunks/FormDatePickers-DfdGdbwP.mjs +0 -538
  443. package/chunks/FormSegmentGroup-BKuHtPEn.cjs +0 -1
  444. package/chunks/FormSegmentGroup-DqFMVBr0.mjs +0 -268
  445. package/chunks/FormTextArea-CCrYx4pL.mjs +0 -159
  446. package/chunks/FormTextArea-sly1mY7h.cjs +0 -1
  447. package/chunks/GridDND-Bycwiynh.mjs +0 -1086
  448. package/chunks/GridDND-MsZt1fXJ.cjs +0 -1
  449. package/chunks/LeftPanel-C72uosX_.mjs +0 -303
  450. package/chunks/LeftPanel-Di-IqpZ_.cjs +0 -1
  451. package/chunks/ListOfFilters-B3bM1n4w.cjs +0 -1
  452. package/chunks/ListOfFilters-CPJGgMMc.mjs +0 -462
  453. package/chunks/MassActions-BbAXi3z9.cjs +0 -1
  454. package/chunks/MassActions-CZm8vqj8.mjs +0 -1352
  455. package/chunks/PageTitle-DEsijnDg.cjs +0 -1
  456. package/chunks/PageTitle-TusD1S2c.mjs +0 -282
  457. package/chunks/SplitView-BHdftJ9A.cjs +0 -12
  458. package/chunks/SplitView-Cd-xkxCe.mjs +0 -339
  459. package/chunks/Stories-CR_EUNO7.mjs +0 -1018
  460. package/chunks/Stories-CxsYx2OE.cjs +0 -1
  461. package/chunks/Table--05ONCr1.cjs +0 -31
  462. package/chunks/Table-l-P3NNUN.mjs +0 -11944
  463. package/chunks/TableCanvas-BYKPeWME.mjs +0 -16941
  464. package/chunks/TableCanvas-ZmjSKk64.cjs +0 -30
  465. package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
  466. package/chunks/styles-D8FDGdVz.mjs +0 -240
  467. package/chunks/styles-OR0WE1xm.cjs +0 -2
  468. package/chunks/utils-C93a2mD7.cjs +0 -25
@@ -0,0 +1,852 @@
1
+ import { jsxs as xe, jsx as V } from "react/jsx-runtime";
2
+ import "react-grid-layout/css/styles.css";
3
+ import { iconButtonFilterClassNames as ye } from "../components/IconButton/index.mjs";
4
+ import { useRef as B, useState as P, useLayoutEffect as he, useEffect as et, forwardRef as ge, useCallback as G, useMemo as yt, useImperativeHandle as be } from "react";
5
+ import { b as Qt } from "./AnalyticalWidget-CBi-2MtJ.mjs";
6
+ import { Responsive as De } from "react-grid-layout";
7
+ import { c as ve } from "./utils-C5SQhoON.mjs";
8
+ import { surfaceTransparentAccent as ke, outlineAccent as Oe, outlineAccentMinor as Ne, shadowDownHardS as Ae, outlineTransparentAccent as Me, shadowDownSoftS as Re } from "@salutejs/sdds-themes/tokens/sdds_finai";
9
+ import Et, { css as Ge } from "styled-components";
10
+ const U = {
11
+ gridItemWrapper: "grid-dnd__item-wrapper",
12
+ gridItem: "grid-dnd__item",
13
+ dragHandle: "grid-dnd__drag-handle",
14
+ noDrag: "grid-dnd__no-drag"
15
+ }, Xt = 248, z = 6, Fe = ({
16
+ item: e,
17
+ actionsSlot: n,
18
+ actionsSlotStyle: r,
19
+ children: f
20
+ }) => /* @__PURE__ */ xe("div", { style: {
21
+ height: "100%",
22
+ position: "relative"
23
+ }, id: e.id, className: U.gridItemWrapper, children: [
24
+ n && /* @__PURE__ */ V("div", { style: {
25
+ position: "absolute",
26
+ right: 16,
27
+ top: 16,
28
+ ...r
29
+ }, className: U.noDrag, children: n }),
30
+ f
31
+ ] });
32
+ function Ee() {
33
+ const e = B(null), [n, r] = P(0);
34
+ return he(() => {
35
+ const f = e.current;
36
+ if (!f)
37
+ return;
38
+ let l = 0;
39
+ const o = ve((s) => {
40
+ var y;
41
+ const d = ((y = s[0]) == null ? void 0 : y.contentRect.width) ?? 0;
42
+ cancelAnimationFrame(l), l = requestAnimationFrame(() => r(d));
43
+ });
44
+ return o.observe(f), () => {
45
+ cancelAnimationFrame(l), o.disconnect();
46
+ };
47
+ }, []), {
48
+ ref: e,
49
+ width: n
50
+ };
51
+ }
52
+ function He(e) {
53
+ const {
54
+ onWidthChange: n,
55
+ margin: r,
56
+ cols: f,
57
+ containerPadding: l
58
+ } = e, {
59
+ ref: o,
60
+ width: s
61
+ } = Ee(), d = B(0);
62
+ return et(() => {
63
+ s > 0 && s !== d.current && (n == null || n(s, r, f, l), d.current = s);
64
+ }, [s, n, r, f, l]), /* @__PURE__ */ V("div", { ref: o, style: {
65
+ width: "100%"
66
+ }, children: s > 0 && /* @__PURE__ */ V(De, { ...e, width: s }) });
67
+ }
68
+ const Te = Ge(["background-color:", ";border-radius:16px;outline:1px solid ", ";"], () => ke, () => Oe), We = Et.div.withConfig({
69
+ displayName: "GridDNDstyled__GridDNDContainer"
70
+ })(["width:100%;min-height:400px;max-width:1890px;&:has(.react-grid-placeholder){& .react-grid-item.react-grid-placeholder{", " opacity:1;}}"], Te), Se = Et.div.attrs(() => ({
71
+ className: U.gridItem
72
+ })).withConfig({
73
+ displayName: "GridDNDstyled__GridItem"
74
+ })(["&.react-draggable-dragging{outline:2px solid ", ";box-shadow:", ";cursor:grabbing;}& .", "{cursor:default;}height:100%;width:100%;cursor:", ";background-color:white;border-radius:16px;outline:", ";box-shadow:", ";overflow:hidden;"], () => Ne, () => Ae, Qt.topSlot, (e) => e.$isDraggable ? "grab" : "default", (e) => e.$isDraggable ? `2px solid ${Me}` : "none", () => Re), _e = Et.div.withConfig({
75
+ displayName: "GridDNDstyled__GridItemContent"
76
+ })(["height:100%;width:100%;"]), qe = (e) => !e || e === "." || e === "-" || e === " ";
77
+ function tr(e, n, r, f) {
78
+ var d, y;
79
+ const l = [], o = r[n], s = /* @__PURE__ */ new Set();
80
+ for (let N = 0; N < e.length; N++) {
81
+ const A = e[N];
82
+ if (!A)
83
+ return l;
84
+ for (let i = 0; i < A.length; i++) {
85
+ const m = A[i];
86
+ if (!m || qe(m) || s.has(`${m}`))
87
+ continue;
88
+ let p = 0;
89
+ for (let u = i; u < A.length && A[u] === m; u++)
90
+ p++;
91
+ let x = 0;
92
+ for (let u = N; u < e.length; u++) {
93
+ let b = !0;
94
+ for (let v = i; v < i + p; v++)
95
+ if (!((d = e[u]) != null && d[v]) || ((y = e[u]) == null ? void 0 : y[v]) !== m) {
96
+ b = !1;
97
+ break;
98
+ }
99
+ if (!b)
100
+ break;
101
+ x++;
102
+ }
103
+ for (let u = N; u < N + x; u++)
104
+ for (let b = i; b < i + p; b++)
105
+ s.add(`${m}`);
106
+ l.push({
107
+ i: m,
108
+ // ID элемента (имя из grid-template-areas)
109
+ x: i,
110
+ // X координата
111
+ y: N,
112
+ // Y координата
113
+ w: p,
114
+ // Ширина в колонках
115
+ h: x,
116
+ // Высота в строках
117
+ minW: 1,
118
+ // Минимальная ширина
119
+ maxW: o,
120
+ // Максимальная ширина (ограничена количеством колонок)
121
+ minH: 1,
122
+ // Минимальная высота
123
+ isResizable: f,
124
+ // Можно ли изменять размер
125
+ static: !1
126
+ // Элемент не статичный (можно перемещать)
127
+ });
128
+ }
129
+ }
130
+ return l;
131
+ }
132
+ function er(e) {
133
+ return Object.keys(e).sort((n, r) => (e[r] || 0) - (e[n] || 0));
134
+ }
135
+ function rr(e, n) {
136
+ const r = Object.keys(e).sort((f, l) => {
137
+ const o = e[f] || 0;
138
+ return (e[l] || 0) - o;
139
+ });
140
+ for (const f of r) {
141
+ const l = e[f];
142
+ if (l !== void 0 && n >= l)
143
+ return f;
144
+ }
145
+ return r[r.length - 1];
146
+ }
147
+ function nr(e, n, r) {
148
+ var l, o;
149
+ const f = r.indexOf(e);
150
+ if (f === -1)
151
+ return null;
152
+ for (let s = f - 1; s >= 0; s--) {
153
+ const d = r[s];
154
+ if (d && ((l = n[d]) != null && l.length))
155
+ return d;
156
+ }
157
+ for (let s = f + 1; s < r.length; s++) {
158
+ const d = r[s];
159
+ if (d && ((o = n[d]) != null && o.length))
160
+ return d;
161
+ }
162
+ return null;
163
+ }
164
+ function ir(e, n) {
165
+ const r = [...e].map((i) => ({
166
+ ...i,
167
+ // Ограничиваем ширину элемента количеством колонок
168
+ w: Math.max(1, Math.min(i.w, n))
169
+ // Старые координаты не важны - будем раскладывать заново
170
+ })).sort((i, m) => i.y - m.y || i.x - m.x), f = [], l = (i) => {
171
+ for (; f.length < i; )
172
+ f.push(Array(n).fill(!1));
173
+ }, o = (i, m, p, x) => {
174
+ l(m + x);
175
+ for (let u = m; u < m + x; u++) {
176
+ const b = f[u];
177
+ if (!b)
178
+ return !1;
179
+ for (let v = i; v < i + p; v++)
180
+ if (v >= n || b[v])
181
+ return !1;
182
+ }
183
+ return !0;
184
+ }, s = (i, m, p, x) => {
185
+ l(m + x);
186
+ for (let u = m; u < m + x; u++) {
187
+ const b = f[u];
188
+ if (b)
189
+ for (let v = i; v < i + p; v++)
190
+ v < b.length && (b[v] = !0);
191
+ }
192
+ }, d = (i) => {
193
+ let m = i;
194
+ for (; ; ) {
195
+ l(m + 1);
196
+ const p = f[m];
197
+ if (p && p.some((x) => !x))
198
+ return m;
199
+ m++;
200
+ }
201
+ };
202
+ let y = 0, N = 0;
203
+ const A = [];
204
+ for (const i of r) {
205
+ let m = !1;
206
+ for (let x = N; x <= n - i.w; x++)
207
+ if (o(x, y, i.w, i.h)) {
208
+ s(x, y, i.w, i.h), A.push({
209
+ ...i,
210
+ x,
211
+ y
212
+ }), N = x + i.w, N > n - 1 && (y = d(y), N = 0), m = !0;
213
+ break;
214
+ }
215
+ if (m)
216
+ continue;
217
+ y = d(y), N = 0;
218
+ let p = y;
219
+ for (; ; ) {
220
+ let x = !1;
221
+ for (let u = 0; u <= n - i.w; u++)
222
+ if (o(u, p, i.w, i.h)) {
223
+ s(u, p, i.w, i.h), A.push({
224
+ ...i,
225
+ x: u,
226
+ y: p
227
+ }), p === y && (N = u + i.w, N > n - 1 && (y = d(y), N = 0)), x = !0;
228
+ break;
229
+ }
230
+ if (x)
231
+ break;
232
+ p++;
233
+ }
234
+ }
235
+ return A;
236
+ }
237
+ const tt = (e) => e === "l" ? {
238
+ w: 2,
239
+ h: 2
240
+ } : e === "m" ? {
241
+ w: 2,
242
+ h: 1
243
+ } : {
244
+ w: 1,
245
+ h: 1
246
+ };
247
+ function Ft(e, n) {
248
+ if (!e || !n || e.length !== n.length)
249
+ return !1;
250
+ const r = [...e].sort((l, o) => l.i > o.i ? 1 : -1), f = [...n].sort((l, o) => l.i > o.i ? 1 : -1);
251
+ for (let l = 0; l < r.length; l += 1) {
252
+ const o = r[l], s = f[l];
253
+ if (!o || !s || o.i !== s.i || o.x !== s.x || o.y !== s.y || o.w !== s.w || o.h !== s.h)
254
+ return !1;
255
+ }
256
+ return !0;
257
+ }
258
+ function gt(e, n, r) {
259
+ for (; e.length < n; )
260
+ e.push(Array(r).fill(!1));
261
+ }
262
+ function Be(e, n, r) {
263
+ gt(e, n + 1, r);
264
+ const f = e[n];
265
+ return f ? f.some((l) => !l) : !1;
266
+ }
267
+ function ht(e, n, r, f = 0) {
268
+ gt(e, n + 1, r);
269
+ const l = e[n];
270
+ if (!l)
271
+ return -1;
272
+ for (let o = Math.max(0, f); o < r; o++) {
273
+ if (o >= l.length)
274
+ return -1;
275
+ if (!l[o])
276
+ return o;
277
+ }
278
+ return -1;
279
+ }
280
+ function Yt(e, n, r, f, l, o) {
281
+ gt(e, r + l, o);
282
+ for (let s = r; s < r + l; s++) {
283
+ const d = e[s];
284
+ if (!d)
285
+ return !1;
286
+ for (let y = n; y < n + f; y++)
287
+ if (y >= o || d[y])
288
+ return !1;
289
+ }
290
+ return !0;
291
+ }
292
+ function Ie(e, n, r, f, l, o) {
293
+ gt(e, r + l, o);
294
+ for (let s = r; s < r + l; s++) {
295
+ const d = e[s];
296
+ if (d)
297
+ for (let y = n; y < n + f; y++)
298
+ y < o && (d[y] = !0);
299
+ }
300
+ }
301
+ function zt(e, n, r) {
302
+ let f = Math.max(0, n);
303
+ for (; ; ) {
304
+ if (Be(e, f, r))
305
+ return f;
306
+ f++;
307
+ }
308
+ }
309
+ function $e(e, n, r, f) {
310
+ const l = [], o = [];
311
+ let s = 0, d = 0;
312
+ for (const y of e) {
313
+ const N = n[y];
314
+ if (!N)
315
+ continue;
316
+ const A = N, i = Math.max(1, Math.min(A.w, r)), m = Math.max(1, A.h);
317
+ let p = null;
318
+ for (let b = d; b <= r - i; b++)
319
+ if (Yt(o, b, s, i, m, r)) {
320
+ p = {
321
+ x: b,
322
+ y: s
323
+ };
324
+ break;
325
+ }
326
+ if (!p) {
327
+ let b = s + 1;
328
+ for (; ; ) {
329
+ for (let v = 0; v <= r - i; v++)
330
+ if (Yt(o, v, b, i, m, r)) {
331
+ p = {
332
+ x: v,
333
+ y: b
334
+ };
335
+ break;
336
+ }
337
+ if (p)
338
+ break;
339
+ b++;
340
+ }
341
+ }
342
+ const {
343
+ x,
344
+ y: u
345
+ } = p;
346
+ if (Ie(o, x, u, i, m, r), l.push({
347
+ i: y,
348
+ x,
349
+ y: u,
350
+ w: i,
351
+ h: m,
352
+ minW: 1,
353
+ maxW: r,
354
+ minH: 1,
355
+ isResizable: f,
356
+ static: !1
357
+ }), u > s)
358
+ s = u, d = Math.max(0, ht(o, s, r, 0)), d === -1 && (s = zt(o, s, r), d = ht(o, s, r, 0));
359
+ else {
360
+ const b = ht(o, s, r, x + i);
361
+ b === -1 ? (s = zt(o, s, r), d = ht(o, s, r, 0)) : d = b;
362
+ }
363
+ }
364
+ return l;
365
+ }
366
+ function Pt(e) {
367
+ return [...e].sort((n, r) => n.y - r.y || n.x - r.x).map((n) => n.i);
368
+ }
369
+ const sr = (e) => Object.keys(e).sort((n, r) => (e[r] || 0) - (e[n] || 0))[0] ?? "lg";
370
+ function je(e, n, r, f, l = 0, o = 0) {
371
+ const s = e.reduce((i, m) => Math.max(i, m.y + m.h), 0), d = Array.from({
372
+ length: Math.max(s, o) + f + 1
373
+ }, () => Array(n).fill(!1));
374
+ for (const {
375
+ x: i,
376
+ y: m,
377
+ w: p,
378
+ h: x
379
+ } of e)
380
+ for (let u = m; u < m + x; u++) {
381
+ d[u] || (d[u] = Array(n).fill(!1));
382
+ const b = d[u];
383
+ for (let v = i; v < i + p; v++)
384
+ u >= 0 && v >= 0 && v < n && b && (b[v] = !0);
385
+ }
386
+ const y = (i, m) => {
387
+ for (let p = m; p < m + f; p++) {
388
+ d[p] || (d[p] = Array(n).fill(!1));
389
+ const x = d[p];
390
+ for (let u = i; u < i + r; u++)
391
+ if (u >= n || x && x[u])
392
+ return !1;
393
+ }
394
+ return !0;
395
+ }, N = (i, m) => {
396
+ for (let p = m; p < m + f; p++) {
397
+ d[p] || (d[p] = Array(n).fill(!1));
398
+ const x = d[p];
399
+ for (let u = i; u < i + r; u++)
400
+ u < n && x && (x[u] = !0);
401
+ }
402
+ };
403
+ let A = o;
404
+ for (; ; ) {
405
+ d[A] || (d[A] = Array(n).fill(!1));
406
+ for (let i = A === o ? l : 0; i <= n - r; i++)
407
+ if (y(i, A))
408
+ return N(i, A), {
409
+ x: i,
410
+ y: A
411
+ };
412
+ A++;
413
+ }
414
+ }
415
+ const or = (e) => {
416
+ typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => e(!1)) : setTimeout(() => e(!1), 0);
417
+ }, Xe = ({
418
+ children: e,
419
+ className: n
420
+ }) => /* @__PURE__ */ V(_e, { className: n, children: e }), Kt = (...e) => (
421
+ // eslint-disable-next-line no-console
422
+ console.log("%c[GridDND]", "color:#6b5b95;font-weight:600", ...e)
423
+ ), Ye = ge(({
424
+ // Источник истины — последовательность
425
+ items: e,
426
+ // Адаптивность
427
+ breakpoints: n = {
428
+ lg: 1375,
429
+ md: 1143,
430
+ sm: 911,
431
+ xs: 679,
432
+ xxs: 0
433
+ },
434
+ cols: r = {
435
+ lg: 6,
436
+ md: 5,
437
+ sm: 4,
438
+ xs: 3,
439
+ xxs: 2
440
+ },
441
+ rowHeights: f = {
442
+ lg: 248,
443
+ md: 248,
444
+ sm: 248,
445
+ xs: 248,
446
+ xxs: 248
447
+ },
448
+ // RGL поведение
449
+ isDraggable: l = !0,
450
+ isResizable: o = !1,
451
+ margin: s = [16, 16],
452
+ containerPadding: d = [0, 0],
453
+ preventCollision: y = !1,
454
+ allowOverlap: N = !1,
455
+ isBounded: A = !0,
456
+ autoSize: i = !0,
457
+ useCSSTransforms: m = !0,
458
+ compactType: p = "horizontal",
459
+ smartCompact: x = !0,
460
+ resizeHandles: u = ["se", "sw", "ne", "nw", "s", "w", "e", "n"],
461
+ draggableHandle: b = `.${U.dragHandle}`,
462
+ draggableCancel: v = `button, input, select, textarea, .${U.noDrag}, .${Qt.topSlot}, .${ye.root}`,
463
+ maxRows: Ut,
464
+ transformScale: Vt,
465
+ // Колбеки
466
+ onLayoutChange: M,
467
+ onBreakpointChange: rt,
468
+ onItemsChange: F,
469
+ onWidthChange: nt,
470
+ onDrag: it,
471
+ onDragStart: st,
472
+ onDragStop: ot,
473
+ // Контент
474
+ children: bt,
475
+ // Задержка активации D&D
476
+ dragActivationDelay: Dt = 0,
477
+ // Стилизация
478
+ gridItemComponent: Ht,
479
+ containerStyle: Jt,
480
+ gridStyle: Zt,
481
+ enableLogs: Tt = !1
482
+ }, Lt) => {
483
+ const [R, ct] = P(() => e.map((t) => t.id)), J = B(Object.fromEntries(e.map((t) => [t.id, tt(t.type)]))), vt = B(!1), Z = B({
484
+ lg: [],
485
+ md: [],
486
+ sm: [],
487
+ xs: [],
488
+ xxs: []
489
+ }), K = B("lg"), Q = B([]), j = Dt > 0, [kt, Wt] = P(!1), [Ct, Ot] = P(null), lt = B(null), Nt = B(!1), At = B(null), at = B(null), C = G(() => {
490
+ lt.current && (clearTimeout(lt.current), lt.current = null);
491
+ }, []), ft = G(() => {
492
+ Wt(!1), Ot(null), Nt.current = !1;
493
+ }, []), te = 64;
494
+ et(() => {
495
+ if (!j || !At.current)
496
+ return;
497
+ const t = At.current;
498
+ let a = null;
499
+ const c = (g, k) => {
500
+ const E = (T) => {
501
+ const W = T.clientX - g, X = T.clientY - k;
502
+ W * W + X * X > te && (C(), Ot(null), at.current = null, w());
503
+ };
504
+ document.addEventListener("pointermove", E), a = () => {
505
+ document.removeEventListener("pointermove", E), a = null;
506
+ };
507
+ }, w = () => {
508
+ a == null || a();
509
+ }, h = (g) => {
510
+ const k = g.target;
511
+ return g.offsetX > k.clientWidth || g.offsetY > k.clientHeight;
512
+ }, D = (g) => {
513
+ if (g._synthetic || g.button !== 0 || h(g))
514
+ return;
515
+ C(), w();
516
+ const E = g.target.closest(`.${U.gridItem}`), T = E == null ? void 0 : E.querySelector(`.${U.gridItemWrapper}`), W = (T == null ? void 0 : T.id) ?? null, X = E == null ? void 0 : E.querySelector(`.${U.dragHandle}`);
517
+ Ot(W), at.current = {
518
+ clientX: g.clientX,
519
+ clientY: g.clientY,
520
+ handleEl: X
521
+ }, c(g.clientX, g.clientY), lt.current = setTimeout(() => {
522
+ w(), Wt(!0), requestAnimationFrame(() => {
523
+ requestAnimationFrame(() => {
524
+ const Y = at.current;
525
+ if (!(Y != null && Y.handleEl))
526
+ return;
527
+ const wt = new MouseEvent("mousedown", {
528
+ bubbles: !0,
529
+ cancelable: !0,
530
+ clientX: Y.clientX,
531
+ clientY: Y.clientY,
532
+ button: 0,
533
+ buttons: 1
534
+ });
535
+ wt._synthetic = !0, Y.handleEl.dispatchEvent(wt);
536
+ });
537
+ });
538
+ }, Dt);
539
+ }, O = () => {
540
+ C(), w(), at.current = null, Nt.current || requestAnimationFrame(() => {
541
+ ft();
542
+ });
543
+ };
544
+ return t.addEventListener("pointerdown", D), document.addEventListener("pointerup", O), () => {
545
+ t.removeEventListener("pointerdown", D), document.removeEventListener("pointerup", O), C(), w();
546
+ };
547
+ }, [j, Dt, C, ft]);
548
+ const St = j ? l && kt : l, [I, _t] = P({
549
+ lg: [],
550
+ md: [],
551
+ sm: [],
552
+ xs: [],
553
+ xxs: []
554
+ }), [qt, ee] = P("lg"), [S, re] = P(f.lg ?? Xt), [ne, ut] = P(p), [ie, Bt] = P(!1), se = yt(() => b.split(".").join(" "), [b]), oe = yt(() => Ht ?? Xe, [Ht]), dt = yt(() => new Map(e.map((t) => [t.id, t.type])), [e]), L = B(/* @__PURE__ */ new Map()), mt = G((t) => L.current.get(t) ?? dt.get(t) ?? "s", [dt]), $ = G((t) => t.map((a) => ({
555
+ id: a,
556
+ type: mt(a)
557
+ })), [mt]), Mt = G((t) => f[t] ?? f.md ?? Xt, [f]), H = G((t, a, c) => {
558
+ const w = c ?? R, h = a[t] ?? [], D = Z.current[t] ?? [], O = new Map(h.map((k) => [k.i, k])), g = new Map(D.map((k) => [k.i, k]));
559
+ return w.map((k) => {
560
+ const E = mt(k), T = O.get(k) ?? g.get(k) ?? null, W = J.current[k] ?? tt(E), X = T ? {
561
+ x: T.x,
562
+ y: T.y,
563
+ w: T.w,
564
+ h: T.h
565
+ } : {
566
+ x: 0,
567
+ y: 0,
568
+ w: W.w,
569
+ h: W.h
570
+ };
571
+ return {
572
+ id: k,
573
+ type: E,
574
+ position: X
575
+ };
576
+ });
577
+ }, [R, mt]), It = G((t) => {
578
+ const a = Z.current[t] ?? [];
579
+ return a.length ? a : I[t] ?? [];
580
+ }, [I]), _ = G(
581
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
582
+ (...t) => {
583
+ Tt && Kt(...t);
584
+ },
585
+ [Tt]
586
+ ), pt = G((t) => {
587
+ Z.current = t, vt.current = !0, Bt(!0), _t(t), requestAnimationFrame(() => {
588
+ requestAnimationFrame(() => {
589
+ vt.current = !1, Bt(!1), Kt("[GridDND] reflow window closed");
590
+ });
591
+ });
592
+ }, []), q = G((t) => {
593
+ const a = {};
594
+ for (const c of Object.keys(r)) {
595
+ const w = r[c] ?? z;
596
+ a[c] = $e(t, J.current, w, o);
597
+ }
598
+ return _("reflowAllByOrder", {
599
+ order: t,
600
+ out: a
601
+ }), pt(a), a;
602
+ }, [r, o, pt, _]), $t = G((t, a) => {
603
+ if (!x)
604
+ return;
605
+ const c = Date.now();
606
+ if (Q.current.push({
607
+ x: t,
608
+ y: a,
609
+ timestamp: c
610
+ }), Q.current = Q.current.filter((D) => c - D.timestamp <= 300), Q.current.length < 2)
611
+ return;
612
+ let w = 0, h = 0;
613
+ for (let D = 1; D < Q.current.length; D += 1) {
614
+ const O = Q.current[D - 1], g = Q.current[D];
615
+ !O || !g || (w += Math.abs(g.x - O.x), h += Math.abs(g.y - O.y));
616
+ }
617
+ w + h < 10 || (w > h * 1.5 ? ut("horizontal") : h > w * 1.5 && ut("vertical"));
618
+ }, [x]), jt = G(() => {
619
+ requestAnimationFrame(() => {
620
+ requestAnimationFrame(() => {
621
+ const t = Z.current, a = {};
622
+ for (const [c, w] of Object.entries(t))
623
+ a[c] = w.map((h) => ({
624
+ ...h
625
+ }));
626
+ _("[GridDND] forceSyncWithRgl → re-push target layouts"), pt(a);
627
+ });
628
+ });
629
+ }, [pt, _]);
630
+ et(() => {
631
+ q(e.map((t) => t.id));
632
+ }, []), et(() => {
633
+ const t = /* @__PURE__ */ new Set([...dt.keys(), ...R]);
634
+ L.current.forEach((a, c) => {
635
+ t.has(c) || L.current.delete(c);
636
+ });
637
+ }, [dt, R]), et(() => {
638
+ e.forEach((t) => {
639
+ J.current[t.id] || (J.current[t.id] = tt(t.type));
640
+ });
641
+ }, [e]);
642
+ const ce = G((t, a, c, w, h, D) => {
643
+ Q.current = [], ut(p), j && (Nt.current = !0), st == null || st(t, a, c, w, h, D);
644
+ }, [p, st, j]), le = G((t, a, c, w, h, D) => {
645
+ $t(h.clientX, h.clientY), it == null || it(t, a, c, w, h, D);
646
+ }, [$t, it]), ae = G((t, a, c, w, h, D) => {
647
+ ot == null || ot(t, a, c, w, h, D), j && ft();
648
+ const O = Pt(t);
649
+ _("[GridDND] dragStop: nextOrder(readingOrder)", O), ct(O);
650
+ const g = q(O), k = K.current, E = H(k, g, O);
651
+ F == null || F(E), M == null || M({
652
+ breakpoint: k,
653
+ cols: r[k] ?? z,
654
+ rowHeight: S,
655
+ items: E
656
+ }, g, {
657
+ itemsOrder: O,
658
+ itemsOrderTyped: $(O)
659
+ }), ut(p);
660
+ const T = t, W = g[k];
661
+ Ft(T, W) ? _("[GridDND] dragStop: live layout == target (OK)") : (_("[GridDND] dragStop: live layout != target → forceSyncWithRgl()"), jt());
662
+ }, [ot, j, ft, q, H, F, M, r, S, p, jt, _, $]), fe = G((t, a) => {
663
+ _("RGL onLayoutChange", {
664
+ cur: t,
665
+ all: a
666
+ });
667
+ const c = K.current, w = (Z.current[c] ?? []).length;
668
+ if (t.length === w && Ft(t, Z.current[c])) {
669
+ _("[GridDND] onLayoutChange[IGNORED: equals-target]", {
670
+ bp: c
671
+ });
672
+ return;
673
+ }
674
+ if (vt.current) {
675
+ _("[GridDND] onLayoutChange[IGNORED: reflow-window]", {
676
+ bp: c,
677
+ cur: t
678
+ });
679
+ return;
680
+ }
681
+ const h = r[c] ?? z;
682
+ if (t.some((g) => typeof g.maxW == "number" && g.maxW !== h))
683
+ return;
684
+ if (Ft(t, Z.current[c])) {
685
+ _("[GridDND] onLayoutChange[IGNORED: equals-target]", {
686
+ bp: c
687
+ });
688
+ return;
689
+ }
690
+ _t((g) => ({
691
+ ...g,
692
+ [c]: t.map((k) => ({
693
+ ...k
694
+ }))
695
+ }));
696
+ const O = H(c, {
697
+ ...I,
698
+ [c]: t
699
+ });
700
+ M == null || M({
701
+ breakpoint: c,
702
+ cols: h,
703
+ rowHeight: S,
704
+ items: O
705
+ }, {
706
+ ...I,
707
+ [c]: t
708
+ }, {
709
+ itemsOrder: R
710
+ });
711
+ }, [M, H, I, r, S, R, _]), ue = G((t) => {
712
+ K.current = t, ee(t), re(Mt(t));
713
+ const a = q(R), c = H(t, a, R);
714
+ rt == null || rt(t, {
715
+ breakpoint: t,
716
+ cols: r[t] ?? z,
717
+ rowHeight: Mt(t),
718
+ items: c
719
+ });
720
+ }, [Mt, q, R, H, rt, r]), de = G((t, a, c, w) => {
721
+ nt == null || nt(t, a, c, w);
722
+ }, [nt]), Rt = G((t) => {
723
+ L.current.delete(t), delete J.current[t], ct((a) => {
724
+ const c = a.filter((O) => O !== t), w = q(c), h = K.current, D = H(h, w, c);
725
+ return F == null || F(D), M == null || M({
726
+ breakpoint: h,
727
+ cols: r[h] ?? z,
728
+ rowHeight: S,
729
+ items: D
730
+ }, w, {
731
+ itemsOrder: c,
732
+ itemsOrderTyped: $(c)
733
+ }), c;
734
+ });
735
+ }, [q, H, F, M, r, S, $]), Gt = G((t, a) => {
736
+ if (!R.includes(t))
737
+ return;
738
+ L.current.set(t, a);
739
+ const c = K.current, w = r[c] ?? z, h = tt(a);
740
+ J.current[t] = {
741
+ w: Math.max(1, Math.min(h.w, w)),
742
+ h: Math.max(1, h.h)
743
+ };
744
+ const D = q(R), O = H(c, D, R);
745
+ F == null || F(O), M == null || M({
746
+ breakpoint: c,
747
+ cols: w,
748
+ rowHeight: S,
749
+ items: O
750
+ }, D, {
751
+ itemsOrder: R,
752
+ itemsOrderTyped: $(R)
753
+ });
754
+ }, [R, r, q, H, F, M, S, $]);
755
+ be(Lt, () => ({
756
+ api: {
757
+ getOrder: () => R,
758
+ getOrderDetailed: () => $(R),
759
+ setOrder: (t) => {
760
+ ct(t);
761
+ const a = q(t), c = K.current, w = H(c, a, t);
762
+ F == null || F(w), M == null || M({
763
+ breakpoint: c,
764
+ cols: r[c] ?? z,
765
+ rowHeight: S,
766
+ items: w
767
+ }, a, {
768
+ itemsOrder: t,
769
+ itemsOrderTyped: $(t)
770
+ });
771
+ },
772
+ addItem: (t, a) => {
773
+ L.current.set(t.id, t.type);
774
+ const c = tt(t.type), w = K.current, h = r[w] ?? z, D = {
775
+ w: Math.max(1, Math.min(c.w, h)),
776
+ h: Math.max(1, c.h)
777
+ };
778
+ J.current[t.id] = D;
779
+ const O = It(w);
780
+ let g = 0, k = 0;
781
+ if (a != null) {
782
+ const wt = Math.max(0, Math.min(a - 1, R.length - 1)), pe = R[wt], xt = O.find((we) => we.i === pe);
783
+ xt && (k = xt.y, g = xt.x + xt.w);
784
+ }
785
+ const E = je(O, h, D.w, D.h, g, k), T = O.concat([{
786
+ i: t.id,
787
+ x: E.x,
788
+ y: E.y,
789
+ w: D.w,
790
+ h: D.h
791
+ }]), W = Pt(T);
792
+ ct(W);
793
+ const X = q(W), Y = H(w, X, W);
794
+ F == null || F(Y), M == null || M({
795
+ breakpoint: w,
796
+ cols: h,
797
+ rowHeight: S,
798
+ items: Y
799
+ }, X, {
800
+ itemsOrder: W,
801
+ itemsOrderTyped: $(W)
802
+ });
803
+ },
804
+ removeItem: Rt,
805
+ setItemType: Gt,
806
+ getAllLayouts: () => I,
807
+ getCurrentLayout: () => {
808
+ const t = K.current, a = H(t, I, R);
809
+ return {
810
+ breakpoint: t,
811
+ cols: r[t] ?? z,
812
+ rowHeight: S,
813
+ items: a
814
+ };
815
+ }
816
+ }
817
+ }), [Rt, Gt, R, $, q, H, F, M, r, S, It, I]);
818
+ const me = yt(() => H(qt, I, R), [qt, I, R, H]);
819
+ return /* @__PURE__ */ V(We, { ref: At, style: {
820
+ ...Jt,
821
+ ...j && kt ? {
822
+ userSelect: "none",
823
+ touchAction: "none"
824
+ } : {}
825
+ }, children: /* @__PURE__ */ V(He, { className: "layout", layouts: I, breakpoints: n, cols: r, rowHeight: S, margin: s, containerPadding: d, isDraggable: St, isResizable: o, onLayoutChange: fe, onBreakpointChange: ue, autoSize: i, useCSSTransforms: m, preventCollision: y, compactType: ie ? null : x ? ne : p, allowOverlap: N, isBounded: A, draggableHandle: b, draggableCancel: v, resizeHandles: o ? u : [], maxRows: Ut, transformScale: Vt, onWidthChange: de, onDrag: le, onDragStart: ce, onDragStop: ae, style: {
826
+ background: "transparent",
827
+ ...Zt
828
+ }, children: me.map((t) => /* @__PURE__ */ V(Se, { $isDraggable: j ? kt && Ct === t.id : l, children: /* @__PURE__ */ V(oe, { isDraggable: St, className: se, children: typeof bt == "function" ? bt(t, () => Rt(t.id), (a) => Gt(t.id, a)) : bt }) }, t.id)) }) });
829
+ }), ze = Object.assign(Ye, {
830
+ ItemWrapper: Fe
831
+ });
832
+ ze.displayName = "GridDND";
833
+ export {
834
+ ze as G,
835
+ U as a,
836
+ Xt as b,
837
+ tr as c,
838
+ nr as d,
839
+ rr as e,
840
+ z as f,
841
+ Te as g,
842
+ ir as h,
843
+ tt as i,
844
+ qe as j,
845
+ sr as k,
846
+ Ft as l,
847
+ je as m,
848
+ er as o,
849
+ $e as p,
850
+ Pt as r,
851
+ or as u
852
+ };