@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
@@ -1,87 +1,71 @@
1
- import { Popover as Et, IconButton as Nt } from "@salutejs/sdds-finai";
2
- import { j as X } from "../../chunks/vendor-BG4P-329.mjs";
3
- import { IconMagic as Pt, IconResizeCorneredFill as Ct } from "@salutejs/plasma-icons";
4
- import { surfaceSolidCard as ct, shadowDownSoftM as Dt, textTertiary as kt } from "@salutejs/sdds-themes/tokens/sdds_finai";
5
- import { t as It, c as at } from "../../chunks/utils-BNelzuI-.mjs";
6
- import { useState as F, useRef as W, useCallback as C, useEffect as _, useMemo as q, useLayoutEffect as et } from "react";
7
- import { s as ut, borderRadius as Tt } from "../../constants/index.mjs";
1
+ import { Popover as Et, IconButton as At } from "@salutejs/sdds-finai";
2
+ import { jsx as F } from "react/jsx-runtime";
3
+ import { IconMagic as It, IconResizeCorneredFill as Tt } from "@salutejs/plasma-icons";
4
+ import { surfaceSolidCard as ct, shadowDownSoftM as Dt, textTertiary as Pt } from "@salutejs/sdds-themes/tokens/sdds_finai";
5
+ import { t as Lt, c as at } from "../../chunks/utils-C5SQhoON.mjs";
6
+ import { useState as _, useRef as X, useCallback as T, useEffect as R, useMemo as K, useLayoutEffect as et } from "react";
7
+ import { s as ht, borderRadius as St } from "../../constants/index.mjs";
8
8
  import lt from "styled-components";
9
- const R = {
9
+ const k = {
10
10
  popoverContentContainer: "ai-agent-popover-content-container",
11
11
  popoverIconTrigger: "ai-agent-popover-icon-trigger"
12
- }, ft = {
12
+ }, mt = {
13
13
  root: "popover-root",
14
14
  arrow: "popover-arrow"
15
- }, J = {
15
+ }, q = {
16
16
  purple: "#b559f3",
17
17
  blue: "#7496fd"
18
- }, Lt = 26, pt = 5, St = 56, yt = {
18
+ }, yt = 26, pt = 5, Ht = 56, Nt = {
19
19
  x: window.innerWidth - 100,
20
20
  y: window.innerHeight - 100
21
- }, ht = 10, mt = "ai-agent-popover-position", Ht = `${ft.arrow}:before`, U = {
22
- spaceX4: () => ut.x4,
23
- spaceX3: () => ut.x3,
24
- brS: () => Tt.s
25
- }, Wt = lt(Et).withConfig({ displayName: "AiAgentPopoverstyled__AiAgentPopoverStyled" })(
26
- ["--ai-agent-popover-content-container-pd:", " ", " ", " ", ";--ai-agent-popover-border-radius:", ";", " &:is(.", ",.", "){border-radius:var(--ai-agent-popover-border-radius);}& .", "{padding:var(--ai-agent-popover-content-container-pd);background:", ";height:100%;}& .", "{background:", ";}"],
27
- U.spaceX4,
28
- U.spaceX3,
29
- U.spaceX3,
30
- U.spaceX3,
31
- U.brS,
32
- ({ $draggable: t, $position: n }) => {
33
- if (t)
34
- return "";
35
- if (typeof n == "string")
36
- switch (n) {
37
- case "top-left":
38
- return `
21
+ }, ut = 10, ft = "ai-agent-popover-position", Wt = `${mt.arrow}:before`, j = {
22
+ spaceX4: () => ht.x4,
23
+ spaceX3: () => ht.x3,
24
+ brS: () => St.s
25
+ }, Xt = lt(Et).withConfig({
26
+ displayName: "AiAgentPopoverstyled__AiAgentPopoverStyled"
27
+ })(["--ai-agent-popover-content-container-pd:", " ", " ", " ", ";--ai-agent-popover-border-radius:", ";", " &:is(.", ",.", "){border-radius:var(--ai-agent-popover-border-radius);}& .", "{padding:var(--ai-agent-popover-content-container-pd);background:", ";height:100%;}& .", "{background:", ";}"], j.spaceX4, j.spaceX3, j.spaceX3, j.spaceX3, j.brS, ({
28
+ $draggable: t,
29
+ $position: n
30
+ }) => {
31
+ if (t)
32
+ return "";
33
+ if (typeof n == "string")
34
+ switch (n) {
35
+ case "top-left":
36
+ return `
39
37
  position: fixed;
40
38
  left: 56px;
41
39
  top: 56px;
42
40
  `;
43
- case "top-right":
44
- return `
41
+ case "top-right":
42
+ return `
45
43
  position: fixed;
46
44
  right: 56px;
47
45
  top: 56px;
48
46
  `;
49
- case "bottom-left":
50
- return `
47
+ case "bottom-left":
48
+ return `
51
49
  position: fixed;
52
50
  left: 56px;
53
51
  bottom: 56px;
54
52
  `;
55
- case "bottom-right":
56
- return `
53
+ case "bottom-right":
54
+ return `
57
55
  position: fixed;
58
56
  right: 56px;
59
57
  bottom: 56px;
60
58
  `;
61
- default:
62
- return `
59
+ default:
60
+ return `
63
61
  position: fixed;
64
62
  right: 56px;
65
63
  bottom: 56px;`;
66
- }
67
- return "";
68
- },
69
- ft.root,
70
- R.popoverContentContainer,
71
- R.popoverContentContainer,
72
- () => ct,
73
- Ht,
74
- () => ct
75
- ), Xt = lt(Nt).withConfig({ displayName: "AiAgentPopoverstyled__MagicButtonStyled" })(
76
- ["&&{width:72px !important;height:72px !important;border-radius:100% !important;box-shadow:", " !important;background:linear-gradient( to right,", " 0%,", " 100% ) !important;transition:transform 0.3s ease !important;&.", " svg{transition:transform 0.3s ease-in-out !important;transform-origin:center center !important;will-change:transform !important;}&:hover{transform:scale(1.02) !important;&.", " svg{transform:scaleX(-1) !important;}background:linear-gradient( to right,", " 0%,", " 100% ) !important;}}"],
77
- () => Dt,
78
- J.purple,
79
- J.blue,
80
- R.popoverIconTrigger,
81
- R.popoverIconTrigger,
82
- J.purple,
83
- J.blue
84
- ), gt = (t) => t ? typeof t == "string" && ["top-right", "top-left", "bottom-right", "bottom-left"].includes(t) : !1, Ft = (t) => gt(t) ? t.split("-")[0] : t, _t = ({
64
+ }
65
+ return "";
66
+ }, mt.root, k.popoverContentContainer, k.popoverContentContainer, () => ct, Wt, () => ct), Ft = lt(At).withConfig({
67
+ displayName: "AiAgentPopoverstyled__MagicButtonStyled"
68
+ })(["&&{width:72px !important;height:72px !important;border-radius:100% !important;box-shadow:", " !important;background:linear-gradient( to right,", " 0%,", " 100% ) !important;transition:transform 0.3s ease !important;&.", " svg{transition:transform 0.3s ease-in-out !important;transform-origin:center center !important;will-change:transform !important;}&:hover{transform:scale(1.02) !important;&.", " svg{transform:scaleX(-1) !important;}background:linear-gradient( to right,", " 0%,", " 100% ) !important;}}"], () => Dt, q.purple, q.blue, k.popoverIconTrigger, k.popoverIconTrigger, q.purple, q.blue), gt = (t) => t ? typeof t == "string" && ["top-right", "top-left", "bottom-right", "bottom-left"].includes(t) : !1, _t = (t) => gt(t) ? t.split("-")[0] : t, Rt = ({
85
69
  position: t,
86
70
  size: n = {
87
71
  width: 0,
@@ -94,13 +78,13 @@ const R = {
94
78
  innerWidth: i,
95
79
  innerHeight: w
96
80
  } = window, {
97
- left: L = 0,
98
- right: A = 0,
81
+ left: y = 0,
82
+ right: M = 0,
99
83
  top: e = 0,
100
- bottom: h = 0
101
- } = b, m = i - L - A, N = w - e - h, c = m / 3, P = N / 2, M = t.x - L, k = t.y - e;
84
+ bottom: u = 0
85
+ } = b, f = i - y - M, A = w - e - u, c = f / 3, I = A / 2, C = t.x - y, P = t.y - e;
102
86
  if (n.width === 0 || n.height === 0)
103
- return k < P ? M < c ? 1 : M < 2 * c ? 2 : 3 : M < c ? 4 : M < 2 * c ? 5 : 6;
87
+ return P < I ? C < c ? 1 : C < 2 * c ? 2 : 3 : C < c ? 4 : C < 2 * c ? 5 : 6;
104
88
  const g = {
105
89
  1: 0,
106
90
  2: 0,
@@ -110,17 +94,17 @@ const R = {
110
94
  6: 0
111
95
  };
112
96
  for (let l = 1; l <= 6; l += 1) {
113
- const r = (l - 1) % 3 * c, d = l <= 3 ? 0 : P, E = r + c, I = d + P, y = M + n.width, H = k + n.height, z = Math.max(0, Math.min(y, E) - Math.max(M, r)), Y = Math.max(0, Math.min(H, I) - Math.max(k, d)), j = z * Y;
114
- g[l] = j;
97
+ const r = (l - 1) % 3 * c, d = l <= 3 ? 0 : I, E = r + c, L = d + I, N = C + n.width, W = P + n.height, z = Math.max(0, Math.min(N, E) - Math.max(C, r)), Y = Math.max(0, Math.min(W, L) - Math.max(P, d)), O = z * Y;
98
+ g[l] = O;
115
99
  }
116
100
  p && (console.group("getCurrentSector (advanced)"), console.log("Sector coverage:", g), console.groupEnd());
117
- let a = 1, S = g[1];
101
+ let a = 1, H = g[1];
118
102
  for (let l = 1; l <= 6; l += 1) {
119
103
  const r = l;
120
- g[r] > S && (S = g[r], a = r);
104
+ g[r] > H && (H = g[r], a = r);
121
105
  }
122
106
  return a;
123
- }, Rt = (t) => {
107
+ }, kt = (t) => {
124
108
  switch (t) {
125
109
  case 1:
126
110
  return "bottom-right";
@@ -143,41 +127,41 @@ const R = {
143
127
  }) => {
144
128
  const p = window.innerWidth, i = window.innerHeight, {
145
129
  top: w = 0,
146
- right: L = 0,
147
- bottom: A = 0,
130
+ right: y = 0,
131
+ bottom: M = 0,
148
132
  left: e = 0
149
- } = n || {}, h = St, {
150
- width: m,
151
- height: N
152
- } = b, c = (S, l) => S > l ? S : l, P = c(e, h), M = c(L, h), k = c(w, h), g = c(A, h), a = {
153
- top: k,
154
- right: p - M,
133
+ } = n || {}, u = Ht, {
134
+ width: f,
135
+ height: A
136
+ } = b, c = (H, l) => H > l ? H : l, I = c(e, u), C = c(y, u), P = c(w, u), g = c(M, u), a = {
137
+ top: P,
138
+ right: p - C,
155
139
  bottom: i - g,
156
- left: P
140
+ left: I
157
141
  };
158
142
  switch (t) {
159
143
  case "top-left":
160
144
  return {
161
- x: Math.min(a.left, p - m - M),
162
- y: Math.min(a.top, i - N - g)
145
+ x: Math.min(a.left, p - f - C),
146
+ y: Math.min(a.top, i - A - g)
163
147
  };
164
148
  case "top-right":
165
149
  return {
166
- x: Math.max(a.right - m, P),
167
- y: Math.min(a.top, i - N - g)
150
+ x: Math.max(a.right - f, I),
151
+ y: Math.min(a.top, i - A - g)
168
152
  };
169
153
  case "bottom-left":
170
154
  return {
171
- x: Math.min(a.left, p - m - M),
172
- y: Math.max(a.bottom - N, k)
155
+ x: Math.min(a.left, p - f - C),
156
+ y: Math.max(a.bottom - A, P)
173
157
  };
174
158
  case "bottom-right":
175
159
  return {
176
- x: Math.max(a.right - m, P),
177
- y: Math.max(a.bottom - N, k)
160
+ x: Math.max(a.right - f, I),
161
+ y: Math.max(a.bottom - A, P)
178
162
  };
179
163
  default:
180
- return yt;
164
+ return Nt;
181
165
  }
182
166
  }, Yt = (t) => {
183
167
  if (!t || typeof t != "string")
@@ -198,7 +182,7 @@ const R = {
198
182
  default:
199
183
  return "bottom-right";
200
184
  }
201
- }, nt = (t, n) => t[0] === n[0] && t[1] === n[1], jt = (t) => typeof t == "string" && ["top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"].includes(t), Ot = (t, n = {
185
+ }, nt = (t, n) => t[0] === n[0] && t[1] === n[1], Ot = (t) => typeof t == "string" && ["top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"].includes(t), $t = (t, n = {
202
186
  width: 0,
203
187
  height: 0
204
188
  }, b = {
@@ -215,90 +199,90 @@ const R = {
215
199
  x: Math.max(b.left, Math.min(t.x, p - n.width - b.right)),
216
200
  y: Math.max(b.top, Math.min(t.y, i - n.height - b.bottom))
217
201
  };
218
- }, Vt = (t, n, b, p, i) => {
219
- const [w, L] = t, [A, e] = F(!1), h = W({
202
+ }, Gt = (t, n, b, p, i) => {
203
+ const [w, y] = t, [M, e] = _(!1), u = X({
220
204
  x: 0,
221
205
  y: 0
222
- }), m = W({
206
+ }), f = X({
223
207
  x: 0,
224
208
  y: 0
225
- }), N = W(!1), c = W(w), P = C((r, d) => {
209
+ }), A = X(!1), c = X(w), I = T((r, d) => {
226
210
  if (!(n != null && n.current))
227
211
  return;
228
- N.current = !1, m.current = {
212
+ A.current = !1, f.current = {
229
213
  x: r,
230
214
  y: d
231
215
  }, c.current = w;
232
216
  const E = n.current.getBoundingClientRect();
233
- h.current = {
217
+ u.current = {
234
218
  x: r - E.left,
235
219
  y: d - E.top
236
220
  }, e(!0);
237
- }, [n, w]), M = C((r) => {
238
- r.preventDefault(), r.stopPropagation(), P(r.clientX, r.clientY);
239
- }, [P]), k = C((r) => {
221
+ }, [n, w]), C = T((r) => {
222
+ r.preventDefault(), r.stopPropagation(), I(r.clientX, r.clientY);
223
+ }, [I]), P = T((r) => {
240
224
  const d = r.touches[0];
241
- d && P(d.clientX, d.clientY);
242
- }, [P]), g = C((r, d) => {
243
- if (!A || !(n != null && n.current))
225
+ d && I(d.clientX, d.clientY);
226
+ }, [I]), g = T((r, d) => {
227
+ if (!M || !(n != null && n.current))
244
228
  return;
245
- const E = Math.abs(r - m.current.x), I = Math.abs(d - m.current.y);
246
- if (!N.current && E < pt && I < pt)
229
+ const E = Math.abs(r - f.current.x), L = Math.abs(d - f.current.y);
230
+ if (!A.current && E < pt && L < pt)
247
231
  return;
248
- N.current = !0;
232
+ A.current = !0;
249
233
  const {
250
- offsetWidth: y,
251
- offsetHeight: H
234
+ offsetWidth: N,
235
+ offsetHeight: W
252
236
  } = n.current, {
253
237
  innerWidth: z,
254
238
  innerHeight: Y
255
239
  } = window, {
256
- top: j = 0,
240
+ top: O = 0,
257
241
  right: D = 0,
258
- bottom: O = 0,
259
- left: V = 0
260
- } = b || {}, K = Math.max(V, Math.min(r - h.current.x, z - y - D)), $ = Math.max(j, Math.min(d - h.current.y, Y - H - O)), G = {
261
- x: K,
262
- y: $
242
+ bottom: $ = 0,
243
+ left: G = 0
244
+ } = b || {}, V = Math.max(G, Math.min(r - u.current.x, z - N - D)), U = Math.max(O, Math.min(d - u.current.y, Y - W - $)), J = {
245
+ x: V,
246
+ y: U
263
247
  };
264
- L(G), p == null || p(G), i == null || i();
265
- }, [A, n, b, L, p, i]), a = C((r) => {
248
+ y(J), p == null || p(J), i == null || i();
249
+ }, [M, n, b, y, p, i]), a = T((r) => {
266
250
  g(r.clientX, r.clientY);
267
- }, [g]), S = C((r) => {
251
+ }, [g]), H = T((r) => {
268
252
  const d = r.touches[0];
269
253
  d && g(d.clientX, d.clientY);
270
- }, [g]), l = C(() => {
254
+ }, [g]), l = T(() => {
271
255
  e(!1);
272
256
  }, []);
273
- return _(() => (A && (document.addEventListener("mousemove", a), document.addEventListener("mouseup", l)), () => {
257
+ return R(() => (M && (document.addEventListener("mousemove", a), document.addEventListener("mouseup", l)), () => {
274
258
  document.removeEventListener("mousemove", a), document.removeEventListener("mouseup", l);
275
- }), [A, a, S, l]), {
259
+ }), [M, a, H, l]), {
276
260
  position: w,
277
- handleMouseDown: M,
278
- isDragging: A,
279
- wasDragged: N.current,
261
+ handleMouseDown: C,
262
+ isDragging: M,
263
+ wasDragged: A.current,
280
264
  touchHandlers: {
281
- onTouchStart: k,
282
- onTouchMove: S,
265
+ onTouchStart: P,
266
+ onTouchMove: H,
283
267
  onTouchEnd: l
284
268
  }
285
269
  };
286
- }, $t = (t, n, b, p = {
270
+ }, Ut = (t, n, b, p = {
287
271
  top: 0,
288
272
  bottom: 0,
289
273
  left: 0,
290
274
  right: 0
291
275
  }) => {
292
- const i = C(() => {
276
+ const i = T(() => {
293
277
  if (!t)
294
278
  return null;
295
- const A = typeof t == "string" ? t : mt;
279
+ const M = typeof t == "string" ? t : ft;
296
280
  try {
297
- const e = localStorage.getItem(A);
281
+ const e = localStorage.getItem(M);
298
282
  if (!e)
299
283
  return null;
300
- const h = JSON.parse(e);
301
- return Ot(h, b, {
284
+ const u = JSON.parse(e);
285
+ return $t(u, b, {
302
286
  top: p.top ?? 0,
303
287
  right: p.right ?? 0,
304
288
  bottom: p.bottom ?? 0,
@@ -307,18 +291,18 @@ const R = {
307
291
  } catch (e) {
308
292
  return console.error("Failed to load position:", e), null;
309
293
  }
310
- }, [p, b, t]), w = C((A) => {
294
+ }, [p, b, t]), w = T((M) => {
311
295
  if (!t)
312
296
  return;
313
- const e = typeof t == "string" ? t : mt;
297
+ const e = typeof t == "string" ? t : ft;
314
298
  try {
315
- localStorage.setItem(e, JSON.stringify(A));
316
- } catch (h) {
317
- console.error("Failed to save position:", h);
299
+ localStorage.setItem(e, JSON.stringify(M));
300
+ } catch (u) {
301
+ console.error("Failed to save position:", u);
318
302
  }
319
303
  }, [t]);
320
304
  return {
321
- savedPosition: q(() => i(), [i]) || n,
305
+ savedPosition: K(() => i(), [i]) || n,
322
306
  // Fallback на initialPosition
323
307
  savePosition: w
324
308
  };
@@ -329,142 +313,125 @@ const R = {
329
313
  target: p,
330
314
  offset: i = [0, 14],
331
315
  placement: w = "auto",
332
- trigger: L = "click",
333
- contentContainerClassNames: A,
316
+ trigger: y = "click",
317
+ contentContainerClassNames: M,
334
318
  dragBoundary: e,
335
- draggable: h = !1,
336
- positionState: m,
337
- ignoreToggleOnDrag: N = !0,
319
+ draggable: u = !1,
320
+ positionState: f,
321
+ ignoreToggleOnDrag: A = !0,
338
322
  defaultPosition: c = "bottom-right",
339
- onPositionChange: P,
340
- calculateOffset: M = !0,
341
- calculatePlacement: k = !0,
323
+ onPositionChange: I,
324
+ calculateOffset: C = !0,
325
+ calculatePlacement: P = !0,
342
326
  useStorage: g = !1,
343
327
  resizable: a,
344
- onResizeStart: S,
328
+ onResizeStart: H,
345
329
  onResizeEnd: l,
346
330
  targetDataAttributes: r,
347
331
  ...d
348
332
  }) => {
349
- const E = W(null), I = W(null), y = W(w), [H, z] = F({ width: 0, height: 0 }), [Y, j] = F(!1), D = t !== void 0 ? t : Y, [O, V] = F(w);
350
- _(() => {
351
- y.current = w, V(w);
333
+ const E = X(null), L = X(null), N = X(w), [W, z] = _({
334
+ width: 0,
335
+ height: 0
336
+ }), [Y, O] = _(!1), D = t !== void 0 ? t : Y, [$, G] = _(w);
337
+ R(() => {
338
+ N.current = w, G(w);
352
339
  }, [w]);
353
- const K = q(
354
- () => typeof c == "string" ? zt(c, e, H) : c,
355
- [c, e, H]
356
- ), { savedPosition: $, savePosition: G } = $t(
357
- g,
358
- K,
359
- H,
360
- e
361
- ), [dt, Q] = F($), [T, Z] = m || [
362
- dt,
363
- Q
364
- ];
365
- _(() => {
366
- !m && g && G(T);
367
- }, [T, m, g, G]), _(() => {
368
- m && Q(m[0]);
369
- }, [m]), _(() => {
370
- m || Q($);
371
- }, [$, m]);
372
- const [vt, B] = F(i), rt = C(
373
- (o) => {
374
- if (!E.current)
375
- return !1;
376
- const s = E.current.getBoundingClientRect(), { height: u } = s, { y: x } = T;
377
- let v, f;
378
- switch (o) {
379
- case "top":
380
- case "top-left":
381
- case "top-right":
382
- v = x - u, f = x;
383
- break;
384
- case "bottom":
385
- case "bottom-left":
386
- case "bottom-right":
387
- v = x, f = x + u;
388
- break;
389
- default:
390
- return !0;
391
- }
392
- return v >= ht && f <= window.innerHeight - ht;
393
- },
394
- [T]
395
- ), it = C(() => {
396
- var f;
397
- if (!E.current || !k || !D)
340
+ const V = K(() => typeof c == "string" ? zt(c, e, W) : c, [c, e, W]), {
341
+ savedPosition: U,
342
+ savePosition: J
343
+ } = Ut(g, V, W, e), [dt, Q] = _(U), [S, Z] = f || [dt, Q];
344
+ R(() => {
345
+ !f && g && J(S);
346
+ }, [S, f, g, J]), R(() => {
347
+ f && Q(f[0]);
348
+ }, [f]), R(() => {
349
+ f || Q(U);
350
+ }, [U, f]);
351
+ const [vt, B] = _(i), rt = T((o) => {
352
+ if (!E.current)
353
+ return !1;
354
+ const s = E.current.getBoundingClientRect(), {
355
+ height: h
356
+ } = s, {
357
+ y: x
358
+ } = S;
359
+ let v, m;
360
+ switch (o) {
361
+ case "top":
362
+ case "top-left":
363
+ case "top-right":
364
+ v = x - h, m = x;
365
+ break;
366
+ case "bottom":
367
+ case "bottom-left":
368
+ case "bottom-right":
369
+ v = x, m = x + h;
370
+ break;
371
+ default:
372
+ return !0;
373
+ }
374
+ return v >= ut && m <= window.innerHeight - ut;
375
+ }, [S]), it = T(() => {
376
+ var m;
377
+ if (!E.current || !P || !D)
398
378
  return;
399
- const o = (f = I.current) == null ? void 0 : f.getBoundingClientRect(), s = _t({
400
- position: T,
401
- size: { width: (o == null ? void 0 : o.width) ?? 0, height: (o == null ? void 0 : o.height) ?? 0 },
379
+ const o = (m = L.current) == null ? void 0 : m.getBoundingClientRect(), s = Rt({
380
+ position: S,
381
+ size: {
382
+ width: (o == null ? void 0 : o.width) ?? 0,
383
+ height: (o == null ? void 0 : o.height) ?? 0
384
+ },
402
385
  boundary: e
403
- }), u = Rt(s), v = s === 2 || s === 5 ? s === 2 ? "bottom" : "top" : u;
404
- if (jt(v) && !rt(v)) {
405
- y.current = "auto", V("auto");
386
+ }), h = kt(s), v = s === 2 || s === 5 ? s === 2 ? "bottom" : "top" : h;
387
+ if (Ot(v) && !rt(v)) {
388
+ N.current = "auto", G("auto");
406
389
  return;
407
390
  }
408
- y.current !== v && v && (y.current = v, V(v));
409
- }, [k, D, T, e, rt]), tt = C(() => {
410
- if (!E.current || !D || !M)
391
+ N.current !== v && v && (N.current = v, G(v));
392
+ }, [P, D, S, e, rt]), tt = T(() => {
393
+ if (!E.current || !D || !C)
411
394
  return;
412
- const o = E.current.offsetWidth, s = y.current;
395
+ const o = E.current.offsetWidth, s = N.current;
413
396
  if (s === "top" || s === "bottom") {
414
- B(
415
- (u) => nt(u, i) ? u : i
416
- );
397
+ B((h) => nt(h, i) ? h : i);
417
398
  return;
418
399
  }
419
400
  if (gt(s)) {
420
- const x = [
421
- (s.includes("left") ? 1 : -1) * (-o / 2 + Lt),
422
- i[1]
423
- ];
401
+ const x = [(s.includes("left") ? 1 : -1) * (-o / 2 + yt), i[1]];
424
402
  B((v) => {
425
- const f = [x[0], x[1]];
426
- return nt(v, f) ? v : f;
403
+ const m = [x[0], x[1]];
404
+ return nt(v, m) ? v : m;
427
405
  });
428
406
  } else
429
- B(
430
- (u) => nt(u, i) ? u : i
431
- );
432
- }, [M, D, i]);
433
- _(() => {
434
- const o = It(() => {
407
+ B((h) => nt(h, i) ? h : i);
408
+ }, [C, D, i]);
409
+ R(() => {
410
+ const o = Lt(() => {
435
411
  Z((s) => ({
436
- x: Math.max(
437
- (e == null ? void 0 : e.left) || 0,
438
- Math.min(
439
- s.x,
440
- window.innerWidth - H.width - ((e == null ? void 0 : e.right) || 0)
441
- )
442
- ),
443
- y: Math.max(
444
- (e == null ? void 0 : e.top) || 0,
445
- Math.min(
446
- s.y,
447
- window.innerHeight - H.height - ((e == null ? void 0 : e.bottom) || 0)
448
- )
449
- )
412
+ x: Math.max((e == null ? void 0 : e.left) || 0, Math.min(s.x, window.innerWidth - W.width - ((e == null ? void 0 : e.right) || 0))),
413
+ y: Math.max((e == null ? void 0 : e.top) || 0, Math.min(s.y, window.innerHeight - W.height - ((e == null ? void 0 : e.bottom) || 0)))
450
414
  }));
451
415
  }, 200);
452
416
  return window.addEventListener("resize", o), () => {
453
417
  o.cancel(), window.removeEventListener("resize", o);
454
418
  };
455
- }, [H, e, Z]), et(() => {
419
+ }, [W, e, Z]), et(() => {
456
420
  D && (it(), tt());
457
- }, [D, T]), et(() => {
458
- if (!I.current)
421
+ }, [D, S]), et(() => {
422
+ if (!L.current)
459
423
  return;
460
424
  const o = () => {
461
425
  var x;
462
- const u = (x = I.current) == null ? void 0 : x.getBoundingClientRect();
463
- u && z({ width: u.width, height: u.height });
426
+ const h = (x = L.current) == null ? void 0 : x.getBoundingClientRect();
427
+ h && z({
428
+ width: h.width,
429
+ height: h.height
430
+ });
464
431
  };
465
432
  o();
466
433
  const s = at(o);
467
- return I.current && s.observe(I.current), () => s.disconnect();
434
+ return L.current && s.observe(L.current), () => s.disconnect();
468
435
  }, []), et(() => {
469
436
  if (!E.current || !D)
470
437
  return;
@@ -473,149 +440,57 @@ const R = {
473
440
  });
474
441
  return o.observe(E.current), tt(), () => o.disconnect();
475
442
  }, [D]);
476
- const { handleMouseDown: bt, wasDragged: st, touchHandlers: wt } = Vt(
477
- [T, Z],
478
- I,
479
- e,
480
- P,
481
- it
482
- ), ot = C(
483
- (o, s) => {
484
- t === void 0 && j(o), n == null || n(o, s);
485
- },
486
- [t, n]
487
- ), xt = C(
488
- (o) => {
489
- if (h && st && N) {
490
- o.preventDefault(), o.stopPropagation();
491
- return;
492
- }
493
- ot(!D, o);
494
- },
495
- [h, st, D, ot, N]
496
- ), At = q(
497
- () => ({
498
- position: "fixed",
499
- left: `${T.x}px`,
500
- top: `${T.y}px`,
501
- zIndex: 9999,
502
- transform: "none"
503
- }),
504
- [T]
505
- ), Mt = q(
506
- () => {
507
- if (!a)
508
- return;
509
- const o = Yt(O), s = [
510
- "top-left",
511
- "top-right",
512
- "bottom-left",
513
- "bottom-right"
514
- ], u = {};
515
- o.includes("left") && (u.transform = "scaleX(-1)"), o.includes("top") && (u.transform = u.transform ? "scale(-1, -1)" : "scaleY(-1)");
516
- const x = /* @__PURE__ */ X.jsxDEV(Ct, { color: kt, style: u }, void 0, !1, {
517
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/AiAgentPopover/AiAgentPopover.tsx",
518
- lineNumber: 377,
519
- columnNumber: 7
520
- }, void 0), v = {
443
+ const {
444
+ handleMouseDown: bt,
445
+ wasDragged: st,
446
+ touchHandlers: wt
447
+ } = Gt([S, Z], L, e, I, it), ot = T((o, s) => {
448
+ t === void 0 && O(o), n == null || n(o, s);
449
+ }, [t, n]), xt = T((o) => {
450
+ if (u && st && A) {
451
+ o.preventDefault(), o.stopPropagation();
452
+ return;
453
+ }
454
+ ot(!D, o);
455
+ }, [u, st, D, ot, A]), Mt = K(() => ({
456
+ position: "fixed",
457
+ left: `${S.x}px`,
458
+ top: `${S.y}px`,
459
+ zIndex: 9999,
460
+ transform: "none"
461
+ }), [S]), Ct = K(() => {
462
+ if (!a)
463
+ return;
464
+ const o = Yt($), s = ["top-left", "top-right", "bottom-left", "bottom-right"], h = {};
465
+ o.includes("left") && (h.transform = "scaleX(-1)"), o.includes("top") && (h.transform = h.transform ? "scale(-1, -1)" : "scaleY(-1)");
466
+ const x = /* @__PURE__ */ F(Tt, { color: Pt, style: h }), v = {
467
+ icons: {
468
+ topLeft: o === "top-left" ? x : null,
469
+ topRight: o === "top-right" ? x : null,
470
+ bottomLeft: o === "bottom-left" ? x : null,
471
+ bottomRight: o === "bottom-right" ? x : null
472
+ },
473
+ hiddenIcons: s.filter((m) => m !== o),
474
+ minHeight: 135,
475
+ minWidth: 235
476
+ };
477
+ if (typeof a == "function") {
478
+ const m = a($);
479
+ return {
480
+ ...v,
481
+ ...m,
521
482
  icons: {
522
- topLeft: o === "top-left" ? x : null,
523
- topRight: o === "top-right" ? x : null,
524
- bottomLeft: o === "bottom-left" ? x : null,
525
- bottomRight: o === "bottom-right" ? x : null
483
+ ...v.icons,
484
+ ...m == null ? void 0 : m.icons
526
485
  },
527
- hiddenIcons: s.filter((f) => f !== o),
528
- minHeight: 135,
529
- minWidth: 235
486
+ hiddenIcons: (m == null ? void 0 : m.hiddenIcons) ?? v.hiddenIcons
530
487
  };
531
- if (typeof a == "function") {
532
- const f = a(O);
533
- return {
534
- ...v,
535
- ...f,
536
- icons: { ...v.icons, ...f == null ? void 0 : f.icons },
537
- hiddenIcons: (f == null ? void 0 : f.hiddenIcons) ?? v.hiddenIcons
538
- };
539
- }
540
- return v;
541
- },
542
- [a, O]
543
- );
544
- return /* @__PURE__ */ X.jsxDEV("div", { ref: I, style: At, ...wt, children: /* @__PURE__ */ X.jsxDEV(
545
- Wt,
546
- {
547
- opened: D,
548
- onToggle: ot,
549
- role: "presentation",
550
- target: /* @__PURE__ */ X.jsxDEV(
551
- Xt,
552
- {
553
- size: "s",
554
- className: R.popoverIconTrigger,
555
- onMouseDown: h ? bt : void 0,
556
- onClick: xt,
557
- style: { cursor: "pointer" },
558
- ...r,
559
- children: /* @__PURE__ */ X.jsxDEV(Pt, { size: "m" }, void 0, !1, {
560
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/AiAgentPopover/AiAgentPopover.tsx",
561
- lineNumber: 422,
562
- columnNumber: 13
563
- }, void 0)
564
- },
565
- void 0,
566
- !1,
567
- {
568
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/AiAgentPopover/AiAgentPopover.tsx",
569
- lineNumber: 414,
570
- columnNumber: 9
571
- },
572
- void 0
573
- ),
574
- offset: vt,
575
- placement: Ft(y.current),
576
- trigger: L,
577
- hasArrow: !0,
578
- closeOnOverlayClick: !0,
579
- closeOnEsc: !0,
580
- isFocusTrapped: !0,
581
- animated: !0,
582
- view: "default",
583
- resizable: Mt,
584
- onResizeStart: S,
585
- onResizeEnd: l,
586
- $draggable: h,
587
- $position: typeof c == "string" ? c : void 0,
588
- ...d,
589
- children: /* @__PURE__ */ X.jsxDEV(
590
- "div",
591
- {
592
- ref: E,
593
- className: `${R.popoverContentContainer} ${A ?? ""}`,
594
- children: b
595
- },
596
- void 0,
597
- !1,
598
- {
599
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/AiAgentPopover/AiAgentPopover.tsx",
600
- lineNumber: 443,
601
- columnNumber: 9
602
- },
603
- void 0
604
- )
605
- },
606
- void 0,
607
- !1,
608
- {
609
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/AiAgentPopover/AiAgentPopover.tsx",
610
- lineNumber: 409,
611
- columnNumber: 7
612
- },
613
- void 0
614
- ) }, void 0, !1, {
615
- fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/AiAgentPopover/AiAgentPopover.tsx",
616
- lineNumber: 408,
617
- columnNumber: 5
618
- }, void 0);
488
+ }
489
+ return v;
490
+ }, [a, $]);
491
+ return /* @__PURE__ */ F("div", { ref: L, style: Mt, ...wt, children: /* @__PURE__ */ F(Xt, { opened: D, onToggle: ot, role: "presentation", target: /* @__PURE__ */ F(Ft, { size: "s", className: k.popoverIconTrigger, onMouseDown: u ? bt : void 0, onClick: xt, style: {
492
+ cursor: "pointer"
493
+ }, ...r, children: /* @__PURE__ */ F(It, { size: "m" }) }), offset: vt, placement: _t(N.current), trigger: y, hasArrow: !0, closeOnOverlayClick: !0, closeOnEsc: !0, isFocusTrapped: !0, animated: !0, view: "default", resizable: Ct, onResizeStart: H, onResizeEnd: l, $draggable: u, $position: typeof c == "string" ? c : void 0, ...d, children: /* @__PURE__ */ F("div", { ref: E, className: `${k.popoverContentContainer} ${M ?? ""}`, children: b }) }) });
619
494
  };
620
495
  export {
621
496
  to as AiAgentPopover