@daisforge/ui 1.14.1 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/chunks/AnalyticalWidget-BSpo7GCr.mjs +535 -0
  2. package/chunks/AnalyticalWidget-D_g7b36w.cjs +43 -0
  3. package/chunks/{ApprovalCenter-XCXGHaEP.mjs → ApprovalCenter-B0yUrIFR.mjs} +1 -1
  4. package/chunks/{ApprovalCenter-DG3YvEkY.cjs → ApprovalCenter-BeD-ALq3.cjs} +1 -1
  5. package/chunks/{BlockTitle-3YmyxJHJ.cjs → BlockTitle-BcV_T7TJ.cjs} +1 -1
  6. package/chunks/{BlockTitle-DDWF1ZeV.mjs → BlockTitle-D-4agd3o.mjs} +1 -1
  7. package/chunks/{FiltersActions-C38x0y5T.mjs → FiltersActions-DlV5c-6Y.mjs} +3 -3
  8. package/chunks/{FiltersActions-CvAwGV9F.cjs → FiltersActions-Dw5QqWa8.cjs} +1 -1
  9. package/chunks/{GridDND-BnK1dEhJ.mjs → GridDND-BhSmT9qp.mjs} +125 -131
  10. package/chunks/GridDND-D7-FwG3y.cjs +1 -0
  11. package/chunks/{ListOfFilters-DNzfSG-p.cjs → ListOfFilters-DEkjOH7o.cjs} +1 -1
  12. package/chunks/{ListOfFilters-Cji5UH2J.mjs → ListOfFilters-DngSRGOp.mjs} +2 -2
  13. package/chunks/{MassActions-BOG04zip.mjs → MassActions-CA35MxqC.mjs} +2 -2
  14. package/chunks/{MassActions-DCk9APKP.cjs → MassActions-Cphn-d4v.cjs} +1 -1
  15. package/chunks/{PageTitle-CQ_6jZ0x.mjs → PageTitle-BjLWtqbD.mjs} +1 -1
  16. package/chunks/{PageTitle-BIllremL.cjs → PageTitle-S-pY5lbg.cjs} +1 -1
  17. package/chunks/{Stories-dFpUqS5T.mjs → Stories-BCtwdhv0.mjs} +1 -1
  18. package/chunks/{Stories-e_CX_1CS.cjs → Stories-CkjLhZAi.cjs} +1 -1
  19. package/chunks/{Table-CrJFfavU.cjs → Table-C2ehPQDQ.cjs} +1 -1
  20. package/chunks/{Table-f0CmcIhI.mjs → Table-DBKZzRuR.mjs} +4 -4
  21. package/chunks/{TableCanvas-1bi1WWeP.mjs → TableCanvas-1y-yKIq1.mjs} +4 -4
  22. package/chunks/{TableCanvas-DqF5YxEY.cjs → TableCanvas-CE8Fv99t.cjs} +1 -1
  23. package/components/AnalyticalWidget/AnalyticalWidget.constants.d.ts +2 -0
  24. package/components/AnalyticalWidget/AnalyticalWidget.d.ts +13 -54
  25. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.d.ts +14 -0
  26. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.styled.d.ts +3 -0
  27. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
  28. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.d.ts +3 -2
  29. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +4 -3
  30. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
  31. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +2 -2
  32. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.d.ts +1 -1
  33. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.styled.d.ts +1 -75
  34. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
  35. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
  36. package/components/AnalyticalWidget/index.cjs +1 -1
  37. package/components/AnalyticalWidget/index.mjs +1 -1
  38. package/components/ApprovalCenter/components/index.cjs +1 -1
  39. package/components/ApprovalCenter/components/index.mjs +1 -1
  40. package/components/ApprovalCenter/index.cjs +1 -1
  41. package/components/ApprovalCenter/index.mjs +1 -1
  42. package/components/AutocompleteSearch/index.cjs +1 -1
  43. package/components/AutocompleteSearch/index.mjs +1 -1
  44. package/components/BlockTitle/index.cjs +1 -1
  45. package/components/BlockTitle/index.mjs +1 -1
  46. package/components/BlockTitle/utils/index.cjs +1 -1
  47. package/components/BlockTitle/utils/index.mjs +1 -1
  48. package/components/Combobox/index.cjs +1 -1
  49. package/components/Combobox/index.mjs +1 -1
  50. package/components/GridDND/GridDND.ItemWrapper.d.ts +1 -2
  51. package/components/GridDND/GridDND.d.ts +1 -1
  52. package/components/GridDND/index.cjs +1 -1
  53. package/components/GridDND/index.mjs +1 -1
  54. package/components/GridDND/utils/index.cjs +1 -1
  55. package/components/GridDND/utils/index.mjs +1 -1
  56. package/components/ListOfFilters/index.cjs +1 -1
  57. package/components/ListOfFilters/index.mjs +1 -1
  58. package/components/MassActions/hooks/index.cjs +1 -1
  59. package/components/MassActions/hooks/index.mjs +1 -1
  60. package/components/MassActions/index.cjs +1 -1
  61. package/components/MassActions/index.mjs +1 -1
  62. package/components/PageTitle/index.cjs +1 -1
  63. package/components/PageTitle/index.mjs +1 -1
  64. package/components/PageTitle/utils/index.cjs +1 -1
  65. package/components/PageTitle/utils/index.mjs +1 -1
  66. package/components/PopoverDF/index.cjs +1 -1
  67. package/components/PopoverDF/index.mjs +1 -1
  68. package/components/PopupDF/index.cjs +1 -1
  69. package/components/PopupDF/index.mjs +1 -1
  70. package/components/Stories/components/StoriesBanner/index.cjs +1 -1
  71. package/components/Stories/components/StoriesBanner/index.mjs +1 -1
  72. package/components/Stories/components/StoriesContent/index.cjs +1 -1
  73. package/components/Stories/components/StoriesContent/index.mjs +1 -1
  74. package/components/Stories/components/StoriesPreview/index.cjs +1 -1
  75. package/components/Stories/components/StoriesPreview/index.mjs +1 -1
  76. package/components/Stories/components/StoriesProgress/index.cjs +1 -1
  77. package/components/Stories/components/StoriesProgress/index.mjs +1 -1
  78. package/components/Stories/components/StoriesViewer/index.cjs +1 -1
  79. package/components/Stories/components/StoriesViewer/index.mjs +1 -1
  80. package/components/Stories/index.cjs +1 -1
  81. package/components/Stories/index.mjs +1 -1
  82. package/components/Table/components/TableDropdown/index.cjs +1 -1
  83. package/components/Table/components/TableDropdown/index.mjs +1 -1
  84. package/components/Table/feature-collapse-table/index.cjs +1 -1
  85. package/components/Table/feature-collapse-table/index.mjs +1 -1
  86. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  87. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  88. package/components/Table/feature-column-control/index.cjs +1 -1
  89. package/components/Table/feature-column-control/index.mjs +1 -1
  90. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  91. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  92. package/components/Table/feature-context-menu/index.cjs +1 -1
  93. package/components/Table/feature-context-menu/index.mjs +1 -1
  94. package/components/Table/feature-edit/index.cjs +1 -1
  95. package/components/Table/feature-edit/index.mjs +1 -1
  96. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  97. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  98. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  99. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  100. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  101. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  102. package/components/Table/feature-filtering/index.cjs +1 -1
  103. package/components/Table/feature-filtering/index.mjs +1 -1
  104. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  105. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  106. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  107. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  108. package/components/Table/feature-key-text/index.cjs +1 -1
  109. package/components/Table/feature-key-text/index.mjs +1 -1
  110. package/components/Table/feature-pagination/index.cjs +1 -1
  111. package/components/Table/feature-pagination/index.mjs +1 -1
  112. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  113. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  114. package/components/Table/feature-row-detail/index.cjs +1 -1
  115. package/components/Table/feature-row-detail/index.mjs +1 -1
  116. package/components/Table/feature-row-instruments/index.cjs +1 -1
  117. package/components/Table/feature-row-instruments/index.mjs +1 -1
  118. package/components/Table/feature-row-size/index.cjs +1 -1
  119. package/components/Table/feature-row-size/index.mjs +1 -1
  120. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  121. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  122. package/components/Table/feature-searching/index.cjs +1 -1
  123. package/components/Table/feature-searching/index.mjs +1 -1
  124. package/components/Table/feature-select-row/index.cjs +1 -1
  125. package/components/Table/feature-select-row/index.mjs +1 -1
  126. package/components/Table/feature-sorting/index.cjs +1 -1
  127. package/components/Table/feature-sorting/index.mjs +1 -1
  128. package/components/Table/feature-table-settings/index.cjs +1 -1
  129. package/components/Table/feature-table-settings/index.mjs +1 -1
  130. package/components/Table/feature-tree/index.cjs +1 -1
  131. package/components/Table/feature-tree/index.mjs +1 -1
  132. package/components/Table/index.cjs +1 -1
  133. package/components/Table/index.mjs +1 -1
  134. package/components/Table/renders/formatCell/index.cjs +1 -1
  135. package/components/Table/renders/formatCell/index.mjs +1 -1
  136. package/components/Table/styles/index.cjs +1 -1
  137. package/components/Table/styles/index.mjs +1 -1
  138. package/components/Table/table-hooks/index.cjs +1 -1
  139. package/components/Table/table-hooks/index.mjs +1 -1
  140. package/components/Table/types/index.cjs +1 -1
  141. package/components/Table/types/index.mjs +1 -1
  142. package/components/Table/utils/index.cjs +1 -1
  143. package/components/Table/utils/index.mjs +1 -1
  144. package/components/Table/widgets/control-block/index.cjs +1 -1
  145. package/components/Table/widgets/control-block/index.mjs +1 -1
  146. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  147. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  148. package/components/Table/widgets/index.cjs +1 -1
  149. package/components/Table/widgets/index.mjs +1 -1
  150. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  151. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  152. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  153. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  154. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  155. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  156. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  157. package/components/TableCanvas/TableGlideInstance/index.mjs +1 -1
  158. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  159. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
  160. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  161. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  162. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  163. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  164. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  165. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  166. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  167. package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
  168. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  169. package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
  170. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  171. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
  172. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  173. package/components/TableCanvas/feature-column-control/index.mjs +1 -1
  174. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  175. package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
  176. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  177. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  178. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  179. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  180. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  181. package/components/TableCanvas/feature-edit/index.mjs +1 -1
  182. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  183. package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
  184. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  185. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  186. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  187. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  188. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  189. package/components/TableCanvas/feature-filtering/index.mjs +1 -1
  190. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  191. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  192. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  193. package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
  194. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  195. package/components/TableCanvas/feature-key-text/index.mjs +1 -1
  196. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  197. package/components/TableCanvas/feature-notifications/index.mjs +1 -1
  198. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  199. package/components/TableCanvas/feature-pagination/index.mjs +1 -1
  200. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  201. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  202. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  203. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  204. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  205. package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
  206. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  207. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  208. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  209. package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
  210. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  211. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  212. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  213. package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
  214. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  215. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  216. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  217. package/components/TableCanvas/feature-row-size/index.mjs +1 -1
  218. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  219. package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
  220. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  221. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  222. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  223. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  224. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  225. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  226. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  227. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  228. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  229. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  230. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  231. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  232. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  233. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  234. package/components/TableCanvas/index.cjs +1 -1
  235. package/components/TableCanvas/index.mjs +1 -1
  236. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  237. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  238. package/components/TableCanvas/styles/index.cjs +1 -1
  239. package/components/TableCanvas/styles/index.mjs +1 -1
  240. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  241. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  242. package/components/TableCanvas/types/index.cjs +1 -1
  243. package/components/TableCanvas/types/index.mjs +1 -1
  244. package/components/TableCanvas/utils/index.cjs +1 -1
  245. package/components/TableCanvas/utils/index.mjs +1 -1
  246. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  247. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  248. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  249. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  250. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  251. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  252. package/components/TableCanvas/widgets/index.cjs +1 -1
  253. package/components/TableCanvas/widgets/index.mjs +1 -1
  254. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  255. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  256. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  257. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  258. package/components/TableContract/index.cjs +1 -1
  259. package/components/TableContract/index.mjs +1 -1
  260. package/components/Tooltip/index.cjs +1 -1
  261. package/components/Tooltip/index.mjs +1 -1
  262. package/components/TourWidget/index.cjs +1 -1
  263. package/components/TourWidget/index.mjs +1 -1
  264. package/components/Typography/index.cjs +1 -1
  265. package/components/Typography/index.mjs +1 -1
  266. package/components/Widget/index.cjs +1 -1
  267. package/components/Widget/index.mjs +1 -1
  268. package/formComponents/FormCombobox/index.cjs +1 -1
  269. package/formComponents/FormCombobox/index.mjs +1 -1
  270. package/formComponents/FormSwitch/index.cjs +1 -1
  271. package/formComponents/FormSwitch/index.mjs +1 -1
  272. package/index.cjs +1 -1
  273. package/index.mjs +11 -11
  274. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  275. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  276. package/layouts/FiltersActions/index.cjs +1 -1
  277. package/layouts/FiltersActions/index.mjs +1 -1
  278. package/mcp-data/component-index.json +57 -131
  279. package/package.json +1 -1
  280. package/shared/utils/inputs/index.cjs +1 -1
  281. package/shared/utils/inputs/index.mjs +6 -6
  282. package/chunks/AnalyticalWidget-B6czTLSw.cjs +0 -43
  283. package/chunks/AnalyticalWidget-BWggL9xa.mjs +0 -528
  284. package/chunks/GridDND-CVAlpElj.cjs +0 -1
@@ -1,13 +1,13 @@
1
- import { jsxs as xe, jsx as V } from "react/jsx-runtime";
1
+ import { jsxs as xe, jsx as Z } from "react/jsx-runtime";
2
2
  import "react-grid-layout/css/styles.css";
3
3
  import { iconButtonFilterClassNames as ye } from "../components/IconButton/index.mjs";
4
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-BWggL9xa.mjs";
5
+ import { b as Qt } from "./AnalyticalWidget-BSpo7GCr.mjs";
6
6
  import { Responsive as De } from "react-grid-layout";
7
7
  import { c as ve } from "./utils-D4eJY8pa.mjs";
8
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
9
  import Et, { css as Ge } from "styled-components";
10
- const U = {
10
+ const J = {
11
11
  gridItemWrapper: "grid-dnd__item-wrapper",
12
12
  gridItem: "grid-dnd__item",
13
13
  dragHandle: "grid-dnd__drag-handle",
@@ -15,25 +15,19 @@ const U = {
15
15
  }, Xt = 248, z = 6, Fe = ({
16
16
  item: e,
17
17
  actionsSlot: n,
18
- actionsSlotStyle: r,
19
- children: f
18
+ children: r
20
19
  }) => /* @__PURE__ */ xe("div", { style: {
21
20
  height: "100%",
22
21
  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
22
+ }, id: e.id, className: J.gridItemWrapper, children: [
23
+ n,
24
+ r
31
25
  ] });
32
26
  function Ee() {
33
27
  const e = B(null), [n, r] = P(0);
34
28
  return he(() => {
35
- const f = e.current;
36
- if (!f)
29
+ const a = e.current;
30
+ if (!a)
37
31
  return;
38
32
  let l = 0;
39
33
  const o = ve((s) => {
@@ -41,7 +35,7 @@ function Ee() {
41
35
  const d = ((y = s[0]) == null ? void 0 : y.contentRect.width) ?? 0;
42
36
  cancelAnimationFrame(l), l = requestAnimationFrame(() => r(d));
43
37
  });
44
- return o.observe(f), () => {
38
+ return o.observe(a), () => {
45
39
  cancelAnimationFrame(l), o.disconnect();
46
40
  };
47
41
  }, []), {
@@ -53,28 +47,28 @@ function He(e) {
53
47
  const {
54
48
  onWidthChange: n,
55
49
  margin: r,
56
- cols: f,
50
+ cols: a,
57
51
  containerPadding: l
58
52
  } = e, {
59
53
  ref: o,
60
54
  width: s
61
55
  } = Ee(), d = B(0);
62
56
  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: {
57
+ s > 0 && s !== d.current && (n == null || n(s, r, a, l), d.current = s);
58
+ }, [s, n, r, a, l]), /* @__PURE__ */ Z("div", { ref: o, style: {
65
59
  width: "100%"
66
- }, children: s > 0 && /* @__PURE__ */ V(De, { ...e, width: s }) });
60
+ }, children: s > 0 && /* @__PURE__ */ Z(De, { ...e, width: s }) });
67
61
  }
68
62
  const Te = Ge(["background-color:", ";border-radius:16px;outline:1px solid ", ";"], () => ke, () => Oe), We = Et.div.withConfig({
69
63
  displayName: "GridDNDstyled__GridDNDContainer"
70
64
  })(["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
65
+ className: J.gridItem
72
66
  })).withConfig({
73
67
  displayName: "GridDNDstyled__GridItem"
74
68
  })(["&.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
69
  displayName: "GridDNDstyled__GridItemContent"
76
70
  })(["height:100%;width:100%;"]), qe = (e) => !e || e === "." || e === "-" || e === " ";
77
- function tr(e, n, r, f) {
71
+ function tr(e, n, r, a) {
78
72
  var d, y;
79
73
  const l = [], o = r[n], s = /* @__PURE__ */ new Set();
80
74
  for (let N = 0; N < e.length; N++) {
@@ -120,7 +114,7 @@ function tr(e, n, r, f) {
120
114
  // Максимальная ширина (ограничена количеством колонок)
121
115
  minH: 1,
122
116
  // Минимальная высота
123
- isResizable: f,
117
+ isResizable: a,
124
118
  // Можно ли изменять размер
125
119
  static: !1
126
120
  // Элемент не статичный (можно перемещать)
@@ -133,28 +127,28 @@ function er(e) {
133
127
  return Object.keys(e).sort((n, r) => (e[r] || 0) - (e[n] || 0));
134
128
  }
135
129
  function rr(e, n) {
136
- const r = Object.keys(e).sort((f, l) => {
137
- const o = e[f] || 0;
130
+ const r = Object.keys(e).sort((a, l) => {
131
+ const o = e[a] || 0;
138
132
  return (e[l] || 0) - o;
139
133
  });
140
- for (const f of r) {
141
- const l = e[f];
134
+ for (const a of r) {
135
+ const l = e[a];
142
136
  if (l !== void 0 && n >= l)
143
- return f;
137
+ return a;
144
138
  }
145
139
  return r[r.length - 1];
146
140
  }
147
141
  function nr(e, n, r) {
148
142
  var l, o;
149
- const f = r.indexOf(e);
150
- if (f === -1)
143
+ const a = r.indexOf(e);
144
+ if (a === -1)
151
145
  return null;
152
- for (let s = f - 1; s >= 0; s--) {
146
+ for (let s = a - 1; s >= 0; s--) {
153
147
  const d = r[s];
154
148
  if (d && ((l = n[d]) != null && l.length))
155
149
  return d;
156
150
  }
157
- for (let s = f + 1; s < r.length; s++) {
151
+ for (let s = a + 1; s < r.length; s++) {
158
152
  const d = r[s];
159
153
  if (d && ((o = n[d]) != null && o.length))
160
154
  return d;
@@ -167,13 +161,13 @@ function ir(e, n) {
167
161
  // Ограничиваем ширину элемента количеством колонок
168
162
  w: Math.max(1, Math.min(i.w, n))
169
163
  // Старые координаты не важны - будем раскладывать заново
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));
164
+ })).sort((i, m) => i.y - m.y || i.x - m.x), a = [], l = (i) => {
165
+ for (; a.length < i; )
166
+ a.push(Array(n).fill(!1));
173
167
  }, o = (i, m, p, x) => {
174
168
  l(m + x);
175
169
  for (let u = m; u < m + x; u++) {
176
- const b = f[u];
170
+ const b = a[u];
177
171
  if (!b)
178
172
  return !1;
179
173
  for (let v = i; v < i + p; v++)
@@ -184,7 +178,7 @@ function ir(e, n) {
184
178
  }, s = (i, m, p, x) => {
185
179
  l(m + x);
186
180
  for (let u = m; u < m + x; u++) {
187
- const b = f[u];
181
+ const b = a[u];
188
182
  if (b)
189
183
  for (let v = i; v < i + p; v++)
190
184
  v < b.length && (b[v] = !0);
@@ -193,7 +187,7 @@ function ir(e, n) {
193
187
  let m = i;
194
188
  for (; ; ) {
195
189
  l(m + 1);
196
- const p = f[m];
190
+ const p = a[m];
197
191
  if (p && p.some((x) => !x))
198
192
  return m;
199
193
  m++;
@@ -247,9 +241,9 @@ const tt = (e) => e === "l" ? {
247
241
  function Ft(e, n) {
248
242
  if (!e || !n || e.length !== n.length)
249
243
  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);
244
+ const r = [...e].sort((l, o) => l.i > o.i ? 1 : -1), a = [...n].sort((l, o) => l.i > o.i ? 1 : -1);
251
245
  for (let l = 0; l < r.length; l += 1) {
252
- const o = r[l], s = f[l];
246
+ const o = r[l], s = a[l];
253
247
  if (!o || !s || o.i !== s.i || o.x !== s.x || o.y !== s.y || o.w !== s.w || o.h !== s.h)
254
248
  return !1;
255
249
  }
@@ -261,15 +255,15 @@ function gt(e, n, r) {
261
255
  }
262
256
  function Be(e, n, r) {
263
257
  gt(e, n + 1, r);
264
- const f = e[n];
265
- return f ? f.some((l) => !l) : !1;
258
+ const a = e[n];
259
+ return a ? a.some((l) => !l) : !1;
266
260
  }
267
- function ht(e, n, r, f = 0) {
261
+ function ht(e, n, r, a = 0) {
268
262
  gt(e, n + 1, r);
269
263
  const l = e[n];
270
264
  if (!l)
271
265
  return -1;
272
- for (let o = Math.max(0, f); o < r; o++) {
266
+ for (let o = Math.max(0, a); o < r; o++) {
273
267
  if (o >= l.length)
274
268
  return -1;
275
269
  if (!l[o])
@@ -277,36 +271,36 @@ function ht(e, n, r, f = 0) {
277
271
  }
278
272
  return -1;
279
273
  }
280
- function Yt(e, n, r, f, l, o) {
274
+ function Yt(e, n, r, a, l, o) {
281
275
  gt(e, r + l, o);
282
276
  for (let s = r; s < r + l; s++) {
283
277
  const d = e[s];
284
278
  if (!d)
285
279
  return !1;
286
- for (let y = n; y < n + f; y++)
280
+ for (let y = n; y < n + a; y++)
287
281
  if (y >= o || d[y])
288
282
  return !1;
289
283
  }
290
284
  return !0;
291
285
  }
292
- function Ie(e, n, r, f, l, o) {
286
+ function Ie(e, n, r, a, l, o) {
293
287
  gt(e, r + l, o);
294
288
  for (let s = r; s < r + l; s++) {
295
289
  const d = e[s];
296
290
  if (d)
297
- for (let y = n; y < n + f; y++)
291
+ for (let y = n; y < n + a; y++)
298
292
  y < o && (d[y] = !0);
299
293
  }
300
294
  }
301
295
  function zt(e, n, r) {
302
- let f = Math.max(0, n);
296
+ let a = Math.max(0, n);
303
297
  for (; ; ) {
304
- if (Be(e, f, r))
305
- return f;
306
- f++;
298
+ if (Be(e, a, r))
299
+ return a;
300
+ a++;
307
301
  }
308
302
  }
309
- function $e(e, n, r, f) {
303
+ function $e(e, n, r, a) {
310
304
  const l = [], o = [];
311
305
  let s = 0, d = 0;
312
306
  for (const y of e) {
@@ -352,7 +346,7 @@ function $e(e, n, r, f) {
352
346
  minW: 1,
353
347
  maxW: r,
354
348
  minH: 1,
355
- isResizable: f,
349
+ isResizable: a,
356
350
  static: !1
357
351
  }), u > s)
358
352
  s = u, d = Math.max(0, ht(o, s, r, 0)), d === -1 && (s = zt(o, s, r), d = ht(o, s, r, 0));
@@ -367,9 +361,9 @@ function Pt(e) {
367
361
  return [...e].sort((n, r) => n.y - r.y || n.x - r.x).map((n) => n.i);
368
362
  }
369
363
  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) {
364
+ function je(e, n, r, a, l = 0, o = 0) {
371
365
  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
366
+ length: Math.max(s, o) + a + 1
373
367
  }, () => Array(n).fill(!1));
374
368
  for (const {
375
369
  x: i,
@@ -384,7 +378,7 @@ function je(e, n, r, f, l = 0, o = 0) {
384
378
  u >= 0 && v >= 0 && v < n && b && (b[v] = !0);
385
379
  }
386
380
  const y = (i, m) => {
387
- for (let p = m; p < m + f; p++) {
381
+ for (let p = m; p < m + a; p++) {
388
382
  d[p] || (d[p] = Array(n).fill(!1));
389
383
  const x = d[p];
390
384
  for (let u = i; u < i + r; u++)
@@ -393,7 +387,7 @@ function je(e, n, r, f, l = 0, o = 0) {
393
387
  }
394
388
  return !0;
395
389
  }, N = (i, m) => {
396
- for (let p = m; p < m + f; p++) {
390
+ for (let p = m; p < m + a; p++) {
397
391
  d[p] || (d[p] = Array(n).fill(!1));
398
392
  const x = d[p];
399
393
  for (let u = i; u < i + r; u++)
@@ -417,7 +411,7 @@ const or = (e) => {
417
411
  }, Xe = ({
418
412
  children: e,
419
413
  className: n
420
- }) => /* @__PURE__ */ V(_e, { className: n, children: e }), Kt = (...e) => (
414
+ }) => /* @__PURE__ */ Z(_e, { className: n, children: e }), Kt = (...e) => (
421
415
  // eslint-disable-next-line no-console
422
416
  console.log("%c[GridDND]", "color:#6b5b95;font-weight:600", ...e)
423
417
  ), Ye = ge(({
@@ -438,7 +432,7 @@ const or = (e) => {
438
432
  xs: 3,
439
433
  xxs: 2
440
434
  },
441
- rowHeights: f = {
435
+ rowHeights: a = {
442
436
  lg: 248,
443
437
  md: 248,
444
438
  sm: 248,
@@ -458,8 +452,8 @@ const or = (e) => {
458
452
  compactType: p = "horizontal",
459
453
  smartCompact: x = !0,
460
454
  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}`,
455
+ draggableHandle: b = `.${J.dragHandle}`,
456
+ draggableCancel: v = `button, input, select, textarea, .${J.noDrag}, .${Qt.topSlot}, .${ye.root}`,
463
457
  maxRows: Ut,
464
458
  transformScale: Vt,
465
459
  // Колбеки
@@ -480,32 +474,32 @@ const or = (e) => {
480
474
  gridStyle: Zt,
481
475
  enableLogs: Tt = !1
482
476
  }, 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({
477
+ const [R, ct] = P(() => e.map((t) => t.id)), U = B(Object.fromEntries(e.map((t) => [t.id, tt(t.type)]))), vt = B(!1), V = B({
484
478
  lg: [],
485
479
  md: [],
486
480
  sm: [],
487
481
  xs: [],
488
482
  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(() => {
483
+ }), 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), ft = B(null), C = G(() => {
490
484
  lt.current && (clearTimeout(lt.current), lt.current = null);
491
- }, []), ft = G(() => {
485
+ }, []), ut = G(() => {
492
486
  Wt(!1), Ot(null), Nt.current = !1;
493
487
  }, []), te = 64;
494
488
  et(() => {
495
489
  if (!j || !At.current)
496
490
  return;
497
491
  const t = At.current;
498
- let a = null;
492
+ let f = null;
499
493
  const c = (g, k) => {
500
494
  const E = (T) => {
501
495
  const W = T.clientX - g, X = T.clientY - k;
502
- W * W + X * X > te && (C(), Ot(null), at.current = null, w());
496
+ W * W + X * X > te && (C(), Ot(null), ft.current = null, w());
503
497
  };
504
- document.addEventListener("pointermove", E), a = () => {
505
- document.removeEventListener("pointermove", E), a = null;
498
+ document.addEventListener("pointermove", E), f = () => {
499
+ document.removeEventListener("pointermove", E), f = null;
506
500
  };
507
501
  }, w = () => {
508
- a == null || a();
502
+ f == null || f();
509
503
  }, h = (g) => {
510
504
  const k = g.target;
511
505
  return g.offsetX > k.clientWidth || g.offsetY > k.clientHeight;
@@ -513,15 +507,15 @@ const or = (e) => {
513
507
  if (g._synthetic || g.button !== 0 || h(g))
514
508
  return;
515
509
  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 = {
510
+ const E = g.target.closest(`.${J.gridItem}`), T = E == null ? void 0 : E.querySelector(`.${J.gridItemWrapper}`), W = (T == null ? void 0 : T.id) ?? null, X = E == null ? void 0 : E.querySelector(`.${J.dragHandle}`);
511
+ Ot(W), ft.current = {
518
512
  clientX: g.clientX,
519
513
  clientY: g.clientY,
520
514
  handleEl: X
521
515
  }, c(g.clientX, g.clientY), lt.current = setTimeout(() => {
522
516
  w(), Wt(!0), requestAnimationFrame(() => {
523
517
  requestAnimationFrame(() => {
524
- const Y = at.current;
518
+ const Y = ft.current;
525
519
  if (!(Y != null && Y.handleEl))
526
520
  return;
527
521
  const wt = new MouseEvent("mousedown", {
@@ -537,27 +531,27 @@ const or = (e) => {
537
531
  });
538
532
  }, Dt);
539
533
  }, O = () => {
540
- C(), w(), at.current = null, Nt.current || requestAnimationFrame(() => {
541
- ft();
534
+ C(), w(), ft.current = null, Nt.current || requestAnimationFrame(() => {
535
+ ut();
542
536
  });
543
537
  };
544
538
  return t.addEventListener("pointerdown", D), document.addEventListener("pointerup", O), () => {
545
539
  t.removeEventListener("pointerdown", D), document.removeEventListener("pointerup", O), C(), w();
546
540
  };
547
- }, [j, Dt, C, ft]);
541
+ }, [j, Dt, C, ut]);
548
542
  const St = j ? l && kt : l, [I, _t] = P({
549
543
  lg: [],
550
544
  md: [],
551
545
  sm: [],
552
546
  xs: [],
553
547
  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]));
548
+ }), [qt, ee] = P("lg"), [S, re] = P(a.lg ?? Xt), [ne, at] = 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((f) => ({
549
+ id: f,
550
+ type: mt(f)
551
+ })), [mt]), Mt = G((t) => a[t] ?? a.md ?? Xt, [a]), H = G((t, f, c) => {
552
+ const w = c ?? R, h = f[t] ?? [], D = V.current[t] ?? [], O = new Map(h.map((k) => [k.i, k])), g = new Map(D.map((k) => [k.i, k]));
559
553
  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 ? {
554
+ const E = mt(k), T = O.get(k) ?? g.get(k) ?? null, W = U.current[k] ?? tt(E), X = T ? {
561
555
  x: T.x,
562
556
  y: T.y,
563
557
  w: T.w,
@@ -575,8 +569,8 @@ const or = (e) => {
575
569
  };
576
570
  });
577
571
  }, [R, mt]), It = G((t) => {
578
- const a = Z.current[t] ?? [];
579
- return a.length ? a : I[t] ?? [];
572
+ const f = V.current[t] ?? [];
573
+ return f.length ? f : I[t] ?? [];
580
574
  }, [I]), _ = G(
581
575
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
582
576
  (...t) => {
@@ -584,28 +578,28 @@ const or = (e) => {
584
578
  },
585
579
  [Tt]
586
580
  ), pt = G((t) => {
587
- Z.current = t, vt.current = !0, Bt(!0), _t(t), requestAnimationFrame(() => {
581
+ V.current = t, vt.current = !0, Bt(!0), _t(t), requestAnimationFrame(() => {
588
582
  requestAnimationFrame(() => {
589
583
  vt.current = !1, Bt(!1), Kt("[GridDND] reflow window closed");
590
584
  });
591
585
  });
592
586
  }, []), q = G((t) => {
593
- const a = {};
587
+ const f = {};
594
588
  for (const c of Object.keys(r)) {
595
589
  const w = r[c] ?? z;
596
- a[c] = $e(t, J.current, w, o);
590
+ f[c] = $e(t, U.current, w, o);
597
591
  }
598
592
  return _("reflowAllByOrder", {
599
593
  order: t,
600
- out: a
601
- }), pt(a), a;
602
- }, [r, o, pt, _]), $t = G((t, a) => {
594
+ out: f
595
+ }), pt(f), f;
596
+ }, [r, o, pt, _]), $t = G((t, f) => {
603
597
  if (!x)
604
598
  return;
605
599
  const c = Date.now();
606
600
  if (Q.current.push({
607
601
  x: t,
608
- y: a,
602
+ y: f,
609
603
  timestamp: c
610
604
  }), Q.current = Q.current.filter((D) => c - D.timestamp <= 300), Q.current.length < 2)
611
605
  return;
@@ -614,16 +608,16 @@ const or = (e) => {
614
608
  const O = Q.current[D - 1], g = Q.current[D];
615
609
  !O || !g || (w += Math.abs(g.x - O.x), h += Math.abs(g.y - O.y));
616
610
  }
617
- w + h < 10 || (w > h * 1.5 ? ut("horizontal") : h > w * 1.5 && ut("vertical"));
611
+ w + h < 10 || (w > h * 1.5 ? at("horizontal") : h > w * 1.5 && at("vertical"));
618
612
  }, [x]), jt = G(() => {
619
613
  requestAnimationFrame(() => {
620
614
  requestAnimationFrame(() => {
621
- const t = Z.current, a = {};
615
+ const t = V.current, f = {};
622
616
  for (const [c, w] of Object.entries(t))
623
- a[c] = w.map((h) => ({
617
+ f[c] = w.map((h) => ({
624
618
  ...h
625
619
  }));
626
- _("[GridDND] forceSyncWithRgl → re-push target layouts"), pt(a);
620
+ _("[GridDND] forceSyncWithRgl → re-push target layouts"), pt(f);
627
621
  });
628
622
  });
629
623
  }, [pt, _]);
@@ -631,20 +625,20 @@ const or = (e) => {
631
625
  q(e.map((t) => t.id));
632
626
  }, []), et(() => {
633
627
  const t = /* @__PURE__ */ new Set([...dt.keys(), ...R]);
634
- L.current.forEach((a, c) => {
628
+ L.current.forEach((f, c) => {
635
629
  t.has(c) || L.current.delete(c);
636
630
  });
637
631
  }, [dt, R]), et(() => {
638
632
  e.forEach((t) => {
639
- J.current[t.id] || (J.current[t.id] = tt(t.type));
633
+ U.current[t.id] || (U.current[t.id] = tt(t.type));
640
634
  });
641
635
  }, [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();
636
+ const ce = G((t, f, c, w, h, D) => {
637
+ Q.current = [], at(p), j && (Nt.current = !0), st == null || st(t, f, c, w, h, D);
638
+ }, [p, st, j]), le = G((t, f, c, w, h, D) => {
639
+ $t(h.clientX, h.clientY), it == null || it(t, f, c, w, h, D);
640
+ }, [$t, it]), fe = G((t, f, c, w, h, D) => {
641
+ ot == null || ot(t, f, c, w, h, D), j && ut();
648
642
  const O = Pt(t);
649
643
  _("[GridDND] dragStop: nextOrder(readingOrder)", O), ct(O);
650
644
  const g = q(O), k = K.current, E = H(k, g, O);
@@ -656,16 +650,16 @@ const or = (e) => {
656
650
  }, g, {
657
651
  itemsOrder: O,
658
652
  itemsOrderTyped: $(O)
659
- }), ut(p);
653
+ }), at(p);
660
654
  const T = t, W = g[k];
661
655
  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) => {
656
+ }, [ot, j, ut, q, H, F, M, r, S, p, jt, _, $]), ue = G((t, f) => {
663
657
  _("RGL onLayoutChange", {
664
658
  cur: t,
665
- all: a
659
+ all: f
666
660
  });
667
- const c = K.current, w = (Z.current[c] ?? []).length;
668
- if (t.length === w && Ft(t, Z.current[c])) {
661
+ const c = K.current, w = (V.current[c] ?? []).length;
662
+ if (t.length === w && Ft(t, V.current[c])) {
669
663
  _("[GridDND] onLayoutChange[IGNORED: equals-target]", {
670
664
  bp: c
671
665
  });
@@ -681,7 +675,7 @@ const or = (e) => {
681
675
  const h = r[c] ?? z;
682
676
  if (t.some((g) => typeof g.maxW == "number" && g.maxW !== h))
683
677
  return;
684
- if (Ft(t, Z.current[c])) {
678
+ if (Ft(t, V.current[c])) {
685
679
  _("[GridDND] onLayoutChange[IGNORED: equals-target]", {
686
680
  bp: c
687
681
  });
@@ -708,20 +702,20 @@ const or = (e) => {
708
702
  }, {
709
703
  itemsOrder: R
710
704
  });
711
- }, [M, H, I, r, S, R, _]), ue = G((t) => {
705
+ }, [M, H, I, r, S, R, _]), ae = G((t) => {
712
706
  K.current = t, ee(t), re(Mt(t));
713
- const a = q(R), c = H(t, a, R);
707
+ const f = q(R), c = H(t, f, R);
714
708
  rt == null || rt(t, {
715
709
  breakpoint: t,
716
710
  cols: r[t] ?? z,
717
711
  rowHeight: Mt(t),
718
712
  items: c
719
713
  });
720
- }, [Mt, q, R, H, rt, r]), de = G((t, a, c, w) => {
721
- nt == null || nt(t, a, c, w);
714
+ }, [Mt, q, R, H, rt, r]), de = G((t, f, c, w) => {
715
+ nt == null || nt(t, f, c, w);
722
716
  }, [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);
717
+ L.current.delete(t), delete U.current[t], ct((f) => {
718
+ const c = f.filter((O) => O !== t), w = q(c), h = K.current, D = H(h, w, c);
725
719
  return F == null || F(D), M == null || M({
726
720
  breakpoint: h,
727
721
  cols: r[h] ?? z,
@@ -732,12 +726,12 @@ const or = (e) => {
732
726
  itemsOrderTyped: $(c)
733
727
  }), c;
734
728
  });
735
- }, [q, H, F, M, r, S, $]), Gt = G((t, a) => {
729
+ }, [q, H, F, M, r, S, $]), Gt = G((t, f) => {
736
730
  if (!R.includes(t))
737
731
  return;
738
- L.current.set(t, a);
739
- const c = K.current, w = r[c] ?? z, h = tt(a);
740
- J.current[t] = {
732
+ L.current.set(t, f);
733
+ const c = K.current, w = r[c] ?? z, h = tt(f);
734
+ U.current[t] = {
741
735
  w: Math.max(1, Math.min(h.w, w)),
742
736
  h: Math.max(1, h.h)
743
737
  };
@@ -758,28 +752,28 @@ const or = (e) => {
758
752
  getOrderDetailed: () => $(R),
759
753
  setOrder: (t) => {
760
754
  ct(t);
761
- const a = q(t), c = K.current, w = H(c, a, t);
755
+ const f = q(t), c = K.current, w = H(c, f, t);
762
756
  F == null || F(w), M == null || M({
763
757
  breakpoint: c,
764
758
  cols: r[c] ?? z,
765
759
  rowHeight: S,
766
760
  items: w
767
- }, a, {
761
+ }, f, {
768
762
  itemsOrder: t,
769
763
  itemsOrderTyped: $(t)
770
764
  });
771
765
  },
772
- addItem: (t, a) => {
766
+ addItem: (t, f) => {
773
767
  L.current.set(t.id, t.type);
774
768
  const c = tt(t.type), w = K.current, h = r[w] ?? z, D = {
775
769
  w: Math.max(1, Math.min(c.w, h)),
776
770
  h: Math.max(1, c.h)
777
771
  };
778
- J.current[t.id] = D;
772
+ U.current[t.id] = D;
779
773
  const O = It(w);
780
774
  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);
775
+ if (f != null) {
776
+ const wt = Math.max(0, Math.min(f - 1, R.length - 1)), pe = R[wt], xt = O.find((we) => we.i === pe);
783
777
  xt && (k = xt.y, g = xt.x + xt.w);
784
778
  }
785
779
  const E = je(O, h, D.w, D.h, g, k), T = O.concat([{
@@ -805,34 +799,34 @@ const or = (e) => {
805
799
  setItemType: Gt,
806
800
  getAllLayouts: () => I,
807
801
  getCurrentLayout: () => {
808
- const t = K.current, a = H(t, I, R);
802
+ const t = K.current, f = H(t, I, R);
809
803
  return {
810
804
  breakpoint: t,
811
805
  cols: r[t] ?? z,
812
806
  rowHeight: S,
813
- items: a
807
+ items: f
814
808
  };
815
809
  }
816
810
  }
817
811
  }), [Rt, Gt, R, $, q, H, F, M, r, S, It, I]);
818
812
  const me = yt(() => H(qt, I, R), [qt, I, R, H]);
819
- return /* @__PURE__ */ V(We, { ref: At, style: {
813
+ return /* @__PURE__ */ Z(We, { ref: At, style: {
820
814
  ...Jt,
821
815
  ...j && kt ? {
822
816
  userSelect: "none",
823
817
  touchAction: "none"
824
818
  } : {}
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: {
819
+ }, children: /* @__PURE__ */ Z(He, { className: "layout", layouts: I, breakpoints: n, cols: r, rowHeight: S, margin: s, containerPadding: d, isDraggable: St, isResizable: o, onLayoutChange: ue, onBreakpointChange: ae, 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: fe, style: {
826
820
  background: "transparent",
827
821
  ...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)) }) });
822
+ }, children: me.map((t) => /* @__PURE__ */ Z(Se, { $isDraggable: j ? kt && Ct === t.id : l, children: /* @__PURE__ */ Z(oe, { isDraggable: St, className: se, children: typeof bt == "function" ? bt(t, () => Rt(t.id), (f) => Gt(t.id, f)) : bt }) }, t.id)) }) });
829
823
  }), ze = Object.assign(Ye, {
830
824
  ItemWrapper: Fe
831
825
  });
832
826
  ze.displayName = "GridDND";
833
827
  export {
834
828
  ze as G,
835
- U as a,
829
+ J as a,
836
830
  Xt as b,
837
831
  tr as c,
838
832
  nr as d,