@daisforge/ui 1.21.0 → 1.22.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 (275) hide show
  1. package/chunks/{FiltersActions-CDZSO0MM.mjs → FiltersActions-BJ5gD6Nx.mjs} +26 -24
  2. package/chunks/FiltersActions-Bg5wvHFG.cjs +1 -0
  3. package/chunks/{ListOfFilters-Bd8CZHDq.mjs → ListOfFilters-CfV2bs_4.mjs} +2 -2
  4. package/chunks/{ListOfFilters-BAPz0OY9.cjs → ListOfFilters-mqTsQbq_.cjs} +1 -1
  5. package/chunks/MassActions-BTrj9l-R.cjs +1 -0
  6. package/chunks/{MassActions-D5UwHcNG.mjs → MassActions-C6LY-g9r.mjs} +214 -213
  7. package/chunks/{Table-DYSssxRS.mjs → Table-tUWuA3Ri.mjs} +1113 -1112
  8. package/chunks/Table-vv1HTrxe.cjs +31 -0
  9. package/chunks/{TableCanvas-DDNRdQjN.mjs → TableCanvas-BX5aciu7.mjs} +2850 -2793
  10. package/chunks/TableCanvas-qnwh4c5g.cjs +30 -0
  11. package/chunks/{TableGlide-DAnTJtye.mjs → TableGlide-BLbbkn4C.mjs} +5669 -5326
  12. package/chunks/TableGlide-CZ2mkokV.cjs +1 -0
  13. package/components/Combobox/index.cjs +1 -1
  14. package/components/Combobox/index.mjs +1 -1
  15. package/components/ListOfFilters/index.cjs +1 -1
  16. package/components/ListOfFilters/index.mjs +1 -1
  17. package/components/MassActions/hooks/index.cjs +1 -1
  18. package/components/MassActions/hooks/index.mjs +1 -1
  19. package/components/MassActions/index.cjs +1 -1
  20. package/components/MassActions/index.mjs +1 -1
  21. package/components/MassActions/types.d.ts +1 -0
  22. package/components/Table/components/TableDropdown/index.cjs +1 -1
  23. package/components/Table/components/TableDropdown/index.mjs +1 -1
  24. package/components/Table/feature-collapse-table/index.cjs +1 -1
  25. package/components/Table/feature-collapse-table/index.mjs +1 -1
  26. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  27. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  28. package/components/Table/feature-column-control/index.cjs +1 -1
  29. package/components/Table/feature-column-control/index.mjs +1 -1
  30. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  31. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  32. package/components/Table/feature-context-menu/index.cjs +1 -1
  33. package/components/Table/feature-context-menu/index.mjs +1 -1
  34. package/components/Table/feature-edit/index.cjs +1 -1
  35. package/components/Table/feature-edit/index.mjs +1 -1
  36. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  37. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  38. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  39. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  40. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  41. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  42. package/components/Table/feature-filtering/index.cjs +1 -1
  43. package/components/Table/feature-filtering/index.mjs +1 -1
  44. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  45. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  46. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  47. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  48. package/components/Table/feature-key-text/index.cjs +1 -1
  49. package/components/Table/feature-key-text/index.mjs +1 -1
  50. package/components/Table/feature-pagination/index.cjs +1 -1
  51. package/components/Table/feature-pagination/index.mjs +1 -1
  52. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  53. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  54. package/components/Table/feature-row-detail/index.cjs +1 -1
  55. package/components/Table/feature-row-detail/index.mjs +1 -1
  56. package/components/Table/feature-row-instruments/index.cjs +1 -1
  57. package/components/Table/feature-row-instruments/index.mjs +1 -1
  58. package/components/Table/feature-row-size/index.cjs +1 -1
  59. package/components/Table/feature-row-size/index.mjs +1 -1
  60. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  61. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  62. package/components/Table/feature-searching/index.cjs +1 -1
  63. package/components/Table/feature-searching/index.mjs +1 -1
  64. package/components/Table/feature-select-row/index.cjs +1 -1
  65. package/components/Table/feature-select-row/index.mjs +1 -1
  66. package/components/Table/feature-sorting/index.cjs +1 -1
  67. package/components/Table/feature-sorting/index.mjs +1 -1
  68. package/components/Table/feature-table-settings/index.cjs +1 -1
  69. package/components/Table/feature-table-settings/index.mjs +1 -1
  70. package/components/Table/feature-tree/index.cjs +1 -1
  71. package/components/Table/feature-tree/index.mjs +1 -1
  72. package/components/Table/index.cjs +1 -1
  73. package/components/Table/index.mjs +1 -1
  74. package/components/Table/renders/formatCell/index.cjs +1 -1
  75. package/components/Table/renders/formatCell/index.mjs +1 -1
  76. package/components/Table/styles/index.cjs +1 -1
  77. package/components/Table/styles/index.mjs +1 -1
  78. package/components/Table/table-hooks/index.cjs +1 -1
  79. package/components/Table/table-hooks/index.mjs +1 -1
  80. package/components/Table/types/index.cjs +1 -1
  81. package/components/Table/types/index.mjs +1 -1
  82. package/components/Table/types/table-config.type.d.ts +1 -0
  83. package/components/Table/utils/index.cjs +1 -1
  84. package/components/Table/utils/index.mjs +1 -1
  85. package/components/Table/widgets/control-block/index.cjs +1 -1
  86. package/components/Table/widgets/control-block/index.mjs +1 -1
  87. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  88. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  89. package/components/Table/widgets/index.cjs +1 -1
  90. package/components/Table/widgets/index.mjs +1 -1
  91. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  92. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  93. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  94. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  95. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  96. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  97. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  98. package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
  99. package/components/TableCanvas/TableGlideInstance/reexports-for-external.d.ts +4 -1
  100. package/components/TableCanvas/TableGlideInstance/type.d.ts +1 -1
  101. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  102. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
  103. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  104. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  105. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  106. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  107. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  108. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  109. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  110. package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
  111. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  112. package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
  113. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  114. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
  115. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  116. package/components/TableCanvas/feature-column-control/index.mjs +1 -1
  117. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  118. package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
  119. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  120. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  121. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  122. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  123. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  124. package/components/TableCanvas/feature-edit/index.mjs +1 -1
  125. package/components/TableCanvas/feature-edit/types.d.ts +1 -1
  126. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  127. package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
  128. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  129. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  130. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  131. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  132. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  133. package/components/TableCanvas/feature-filtering/index.mjs +1 -1
  134. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  135. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  136. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  137. package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
  138. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  139. package/components/TableCanvas/feature-key-text/index.mjs +1 -1
  140. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  141. package/components/TableCanvas/feature-notifications/index.mjs +1 -1
  142. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  143. package/components/TableCanvas/feature-pagination/index.mjs +1 -1
  144. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  145. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  146. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  147. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  148. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  149. package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
  150. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  151. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  152. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  153. package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
  154. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  155. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  156. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  157. package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
  158. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  159. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  160. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  161. package/components/TableCanvas/feature-row-size/index.mjs +1 -1
  162. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  163. package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
  164. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  165. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  166. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  167. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  168. package/components/TableCanvas/feature-select-row/types.d.ts +1 -0
  169. package/components/TableCanvas/feature-select-row/useSelectRow.d.ts +1 -0
  170. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  171. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  172. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  173. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  174. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  175. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  176. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  177. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  178. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  179. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  180. package/components/TableCanvas/index.cjs +1 -1
  181. package/components/TableCanvas/index.mjs +2 -2
  182. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  183. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  184. package/components/TableCanvas/renders/renderEditCell.d.ts +1 -1
  185. package/components/TableCanvas/styles/index.cjs +1 -1
  186. package/components/TableCanvas/styles/index.mjs +1 -1
  187. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  188. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  189. package/components/TableCanvas/types/index.cjs +1 -1
  190. package/components/TableCanvas/types/index.mjs +1 -1
  191. package/components/TableCanvas/types/table-config.type.d.ts +1 -0
  192. package/components/TableCanvas/utils/index.cjs +1 -1
  193. package/components/TableCanvas/utils/index.mjs +1 -1
  194. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  195. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  196. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  197. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  198. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  199. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  200. package/components/TableCanvas/widgets/index.cjs +1 -1
  201. package/components/TableCanvas/widgets/index.mjs +1 -1
  202. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  203. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  204. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  205. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  206. package/components/TableContract/index.cjs +1 -1
  207. package/components/TableContract/index.mjs +1 -1
  208. package/components/TableGlide/cellRenderer.d.ts +2 -1
  209. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  210. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  211. package/components/TableGlide/index.cjs +1 -1
  212. package/components/TableGlide/index.mjs +92 -89
  213. package/components/TableGlide/lib/canvas/cells/CellCanvasRoot.d.ts +2 -1
  214. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  215. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
  216. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  217. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  218. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  219. package/components/TableGlide/lib/canvas/cells/index.mjs +19 -19
  220. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  221. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
  222. package/components/TableGlide/lib/canvas/cells/renderer/types.d.ts +4 -2
  223. package/components/TableGlide/lib/canvas/cells/types.d.ts +3 -1
  224. package/components/TableGlide/lib/canvas/components/index.d.ts +31 -4
  225. package/components/TableGlide/lib/canvas/core/CanvasImageResources.d.ts +7 -0
  226. package/components/TableGlide/lib/canvas/core/CanvasImageTransitions.d.ts +11 -0
  227. package/components/TableGlide/lib/canvas/core/DrawBatcher.d.ts +5 -0
  228. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  229. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  230. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  231. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  232. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  233. package/components/TableGlide/lib/canvas/hooks/index.mjs +4 -4
  234. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  235. package/components/TableGlide/lib/canvas/index.d.ts +7 -7
  236. package/components/TableGlide/lib/canvas/index.mjs +70 -67
  237. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  238. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  239. package/components/TableGlide/lib/canvas/primitives/CanvasAvatar.d.ts +58 -0
  240. package/components/TableGlide/lib/canvas/primitives/CanvasAvatarGroup.d.ts +45 -0
  241. package/components/TableGlide/lib/canvas/primitives/CanvasImage.d.ts +17 -0
  242. package/components/TableGlide/lib/canvas/primitives/avatar/geometry.d.ts +6 -0
  243. package/components/TableGlide/lib/canvas/primitives/image/image.d.ts +20 -0
  244. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  245. package/components/TableGlide/lib/canvas/primitives/index.d.ts +11 -4
  246. package/components/TableGlide/lib/canvas/primitives/index.mjs +14 -11
  247. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  248. package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
  249. package/components/TableGlide/theming/index.cjs +1 -1
  250. package/components/TableGlide/theming/index.mjs +1 -1
  251. package/components/TableGlide/tokens.d.ts +3 -0
  252. package/components/TourWidget/TourWidget.palette.d.ts +36 -0
  253. package/components/TourWidget/TourWidget.styled.d.ts +4 -0
  254. package/components/TourWidget/TourWidget.tokens.d.ts +52 -0
  255. package/components/TourWidget/hooks/useIsDarkTheme.d.ts +1 -0
  256. package/components/TourWidget/index.cjs +22 -22
  257. package/components/TourWidget/index.d.ts +1 -0
  258. package/components/TourWidget/index.mjs +269 -179
  259. package/formComponents/FormCombobox/index.cjs +1 -1
  260. package/formComponents/FormCombobox/index.mjs +1 -1
  261. package/formComponents/FormSwitch/index.cjs +1 -1
  262. package/formComponents/FormSwitch/index.mjs +1 -1
  263. package/index.cjs +1 -1
  264. package/index.mjs +1609 -1608
  265. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  266. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  267. package/layouts/FiltersActions/index.cjs +1 -1
  268. package/layouts/FiltersActions/index.mjs +1 -1
  269. package/mcp-data/component-index.json +848 -254
  270. package/package.json +2 -2
  271. package/chunks/FiltersActions-CVtgAJnC.cjs +0 -1
  272. package/chunks/MassActions-C08IgW4a.cjs +0 -1
  273. package/chunks/Table-CdaMPDkg.cjs +0 -31
  274. package/chunks/TableCanvas-DPHSYfH3.cjs +0 -30
  275. package/chunks/TableGlide-am_w97mF.cjs +0 -1
@@ -1,21 +1,21 @@
1
- import { jsx as B, jsxs as vt } from "react/jsx-runtime";
1
+ import { jsx as B, jsxs as yt } from "react/jsx-runtime";
2
2
  import { Divider as Ft, EmbedIconButton as Kt, LinkButton as Zt, Button as Pt, Dropdown as Gt, Checkbox as Qt, IconButton as bt, Tooltip as te } from "@salutejs/sdds-finai";
3
3
  import { IconDoubleDisclosureUp as ee, IconDotsVerticalCenteredOutline as ne } from "@salutejs/plasma-icons";
4
4
  import { c as Ut, d as qt, i as se, p as ie } from "./utils-u1KJ37g3.mjs";
5
5
  import { useMemo as Xt, useCallback as pt, useRef as $, useState as ht, useEffect as st, useLayoutEffect as oe } from "react";
6
- import { T as jt, A as ce } from "./Table-DYSssxRS.mjs";
6
+ import { T as jt, A as ce } from "./Table-tUWuA3Ri.mjs";
7
7
  import { s as Jt } from "../constants/index.mjs";
8
8
  import { surfaceSolidCard as re, outlineSolidPrimary as le, shadowDownHardS as ae, spacing10x as de } from "@salutejs/sdds-themes/tokens/sdds_finai";
9
- import U, { css as yt } from "styled-components";
9
+ import U, { css as Ct } from "styled-components";
10
10
  import { Box as kt } from "../components/Box/index.mjs";
11
11
  import { Collapse as ue } from "../components/Collapse/index.mjs";
12
12
  import { T as zt } from "./AnalyticalWidget-BtyWKJuu.mjs";
13
- const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
13
+ const mt = 24, k = 4, vt = 44, Yt = 40, It = 24, it = {
14
14
  top: 12,
15
15
  right: 8,
16
16
  bottom: 12,
17
17
  left: 24
18
- }, It = {
18
+ }, Tt = {
19
19
  top: 0,
20
20
  right: 10,
21
21
  bottom: 0,
@@ -32,12 +32,12 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
32
32
  e.forEach((p, u) => {
33
33
  p.view === "accent" ? c.add(u) : h.push(u);
34
34
  });
35
- const l = c.size, a = Math.max(0, i - l), s = new Set(h.slice(0, a)), r = [], g = [];
35
+ const l = c.size, a = Math.max(0, i - l), s = new Set(h.slice(0, a)), r = [], f = [];
36
36
  return e.forEach((p, u) => {
37
- c.has(u) || s.has(u) ? r.push(p) : g.push(p);
37
+ c.has(u) || s.has(u) ? r.push(p) : f.push(p);
38
38
  }), {
39
39
  visibleButtons: r,
40
- buttonsInDropdown: g
40
+ buttonsInDropdown: f
41
41
  };
42
42
  }, [t, i]);
43
43
  return {
@@ -73,50 +73,50 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
73
73
  dividerRef: a,
74
74
  buttons: s,
75
75
  isHaveSomeFeatureInSidebar: r,
76
- getContainerWidth: g,
76
+ getContainerWidth: f,
77
77
  setVisibleButtonsCount: p,
78
- minPadding: u = Tt,
79
- leftPadding: C = it.left,
80
- rightPadding: w = it.right,
78
+ minPadding: u = It,
79
+ leftPadding: v = it.left,
80
+ rightPadding: m = it.right,
81
81
  moreButtonWidthEstimate: A = Yt,
82
- enableDebugLogs: x = !1
82
+ enableDebugLogs: w = !1
83
83
  }) => {
84
84
  const _ = $([]), L = pt(() => {
85
- var dt, Y, ft, rt, ut, T;
86
- const E = g();
85
+ var dt, Y, ft, rt, ut, I;
86
+ const E = f();
87
87
  if (!E || E === 0 || !s || s.length === 0)
88
- return x && console.debug("❌ calculateInitialCompression: нет tableWidth или buttons"), !1;
89
- if (!s.every((f, v) => e.current[v] !== null && e.current[v] !== void 0))
90
- return x && console.debug("❌ calculateInitialCompression: ref'ы еще не установлены", {
88
+ return w && console.debug("❌ calculateInitialCompression: нет tableWidth или buttons"), !1;
89
+ if (!s.every((g, y) => e.current[y] !== null && e.current[y] !== void 0))
90
+ return w && console.debug("❌ calculateInitialCompression: ref'ы еще не установлены", {
91
91
  buttonsCount: s.length,
92
92
  refsCount: e.current.filter(Boolean).length,
93
- refs: e.current.map((f, v) => ({
94
- index: v,
95
- hasRef: !!f
93
+ refs: e.current.map((g, y) => ({
94
+ index: y,
95
+ hasRef: !!g
96
96
  }))
97
97
  }), !1;
98
- const O = E - (r ? Ct : 0), q = ((dt = l == null ? void 0 : l.current) == null ? void 0 : dt.getBoundingClientRect().width) ?? 0, S = ((Y = n.current) == null ? void 0 : Y.getBoundingClientRect().width) ?? 0, V = s.length > 0, P = V ? ((ft = a == null ? void 0 : a.current) == null ? void 0 : ft.getBoundingClientRect().width) ?? 0 : 0, X = V ? k : 0, Q = V && S > 0 ? k : 0, ot = P + Q + X, at = k * 2, ct = q + S + ot + // Divider с учетом margins и gaps
99
- (((rt = h.current) == null ? void 0 : rt.getBoundingClientRect().width) ?? mt) + (C + w) + // Динамический padding контейнера
100
- at, y = [];
98
+ const O = E - (r ? vt : 0), q = ((dt = l == null ? void 0 : l.current) == null ? void 0 : dt.getBoundingClientRect().width) ?? 0, S = ((Y = n.current) == null ? void 0 : Y.getBoundingClientRect().width) ?? 0, V = s.length > 0, P = V ? ((ft = a == null ? void 0 : a.current) == null ? void 0 : ft.getBoundingClientRect().width) ?? 0 : 0, X = V ? k : 0, Q = V && S > 0 ? k : 0, ot = P + Q + X, at = k * 2, ct = q + S + ot + // Divider с учетом margins и gaps
99
+ (((rt = h.current) == null ? void 0 : rt.getBoundingClientRect().width) ?? mt) + (v + m) + // Динамический padding контейнера
100
+ at, C = [];
101
101
  let z = !0;
102
- for (let f = 0; f < s.length; f += 1) {
103
- const v = e.current[f];
104
- if (!v) {
102
+ for (let g = 0; g < s.length; g += 1) {
103
+ const y = e.current[g];
104
+ if (!y) {
105
105
  z = !1;
106
106
  break;
107
107
  }
108
- const F = v.querySelector("button, a") || v;
108
+ const F = y.querySelector("button, a") || y;
109
109
  if (!F || !F.isConnected) {
110
110
  z = !1;
111
111
  break;
112
112
  }
113
113
  const gt = F.getBoundingClientRect(), lt = gt.width || F.offsetWidth || F.scrollWidth || F.clientWidth;
114
114
  if (lt > 0)
115
- y.push(lt), _.current[f] = lt;
115
+ C.push(lt), _.current[g] = lt;
116
116
  else {
117
117
  console.debug("❌ calculateInitialCompression: кнопка не отрендерилась", {
118
- index: f,
119
- text: (ut = s[f]) == null ? void 0 : ut.text,
118
+ index: g,
119
+ text: (ut = s[g]) == null ? void 0 : ut.text,
120
120
  width: lt,
121
121
  isConnected: F.isConnected,
122
122
  rect: gt
@@ -124,56 +124,56 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
124
124
  break;
125
125
  }
126
126
  }
127
- if (!z || y.length !== s.length)
128
- return x && console.debug("❌ calculateInitialCompression: не все кнопки измерены", {
127
+ if (!z || C.length !== s.length)
128
+ return w && console.debug("❌ calculateInitialCompression: не все кнопки измерены", {
129
129
  allButtonsMeasured: z,
130
- buttonWidthsLength: y.length,
130
+ buttonWidthsLength: C.length,
131
131
  buttonsLength: s.length
132
132
  }), !1;
133
- const b = ((T = c.current) == null ? void 0 : T.getBoundingClientRect().width) ?? A, I = O - u * 2, N = [], D = [];
134
- s.forEach((f, v) => {
135
- if (y[v] === void 0)
133
+ const b = ((I = c.current) == null ? void 0 : I.getBoundingClientRect().width) ?? A, T = O - u * 2, N = [], D = [];
134
+ s.forEach((g, y) => {
135
+ if (C[y] === void 0)
136
136
  return;
137
- (f == null ? void 0 : f.view) === "accent" ? N.push(v) : D.push(v);
137
+ (g == null ? void 0 : g.view) === "accent" ? N.push(y) : D.push(y);
138
138
  });
139
139
  let G = 0;
140
- N.forEach((f) => {
141
- const v = y[f];
142
- v !== void 0 && (G += v);
140
+ N.forEach((g) => {
141
+ const y = C[g];
142
+ y !== void 0 && (G += y);
143
143
  });
144
144
  const j = new Set(N);
145
145
  let tt = G, et = 0;
146
- for (let f = 0; f < D.length; f += 1) {
147
- const v = D[f], M = typeof v < "u" ? y[v] : 0;
146
+ for (let g = 0; g < D.length; g += 1) {
147
+ const y = D[g], M = typeof y < "u" ? C[y] : 0;
148
148
  if (M === void 0)
149
149
  continue;
150
- const gt = f < D.length - 1 ? b + k : 0, xt = (j.size + 1 - 1) * k, Bt = tt + M + xt + gt;
151
- if (ct + Bt <= I)
152
- tt += M, et += 1, typeof v < "u" && j.add(v);
150
+ const gt = g < D.length - 1 ? b + k : 0, xt = (j.size + 1 - 1) * k, Bt = tt + M + xt + gt;
151
+ if (ct + Bt <= T)
152
+ tt += M, et += 1, typeof y < "u" && j.add(y);
153
153
  else
154
154
  break;
155
155
  }
156
156
  const J = j.size;
157
157
  return p(J), console.debug("✅ calculateInitialCompression: успешно выполнено", {
158
- buttonWidths: y,
158
+ buttonWidths: C,
159
159
  visibleCount: J,
160
160
  accentCount: N.length,
161
161
  regularVisibleCount: et
162
162
  }), !0;
163
- }, [s, g, r, p, e, l, n, c, h, a, x, u, C, w, A]);
163
+ }, [s, f, r, p, e, l, n, c, h, a, w, u, v, m, A]);
164
164
  return {
165
165
  calculateCompression: pt(() => {
166
166
  t || !i.current || !o.current || requestAnimationFrame(() => {
167
167
  setTimeout(() => {
168
168
  var lt, xt, Bt, At, Nt, Ot, Mt;
169
- const E = g();
169
+ const E = f();
170
170
  if (!E || E === 0)
171
171
  return;
172
- const W = E - (r ? Ct : 0);
173
- x && (console.group("🔧 MassActions Compression"), console.debug("📏 Размеры контейнера:", JSON.stringify({
172
+ const W = E - (r ? vt : 0);
173
+ w && (console.group("🔧 MassActions Compression"), console.debug("📏 Размеры контейнера:", JSON.stringify({
174
174
  tableWidth: E,
175
175
  isHaveSomeFeatureInSidebar: r,
176
- togglePanelWidth: r ? Ct : 0,
176
+ togglePanelWidth: r ? vt : 0,
177
177
  availableWidth: W,
178
178
  minPaddingRequired: u * 2,
179
179
  maxPanelWidthAllowed: W - u * 2
@@ -182,10 +182,10 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
182
182
  let ot = null;
183
183
  if (l != null && l.current) {
184
184
  const d = l.current.getBoundingClientRect(), {
185
- children: m
185
+ children: x
186
186
  } = l.current, K = [];
187
- for (let H = 0; H < m.length; H += 1) {
188
- const Z = m[H];
187
+ for (let H = 0; H < x.length; H += 1) {
188
+ const Z = x[H];
189
189
  if (Z) {
190
190
  const nt = Z.getBoundingClientRect();
191
191
  K.push({
@@ -204,8 +204,8 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
204
204
  };
205
205
  }
206
206
  const at = k * 2, ct = O + q + Q + // Divider с учетом margins и gaps
207
- (((At = h.current) == null ? void 0 : At.getBoundingClientRect().width) ?? mt) + (C + w) + at;
208
- x && console.debug("🔲 Фиксированные элементы:", JSON.stringify({
207
+ (((At = h.current) == null ? void 0 : At.getBoundingClientRect().width) ?? mt) + (v + m) + at;
208
+ w && console.debug("🔲 Фиксированные элементы:", JSON.stringify({
209
209
  leftSectionWidth: O,
210
210
  leftSectionDetails: ot,
211
211
  middleSectionWidth: q,
@@ -217,81 +217,81 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
217
217
  totalWidth: Q
218
218
  },
219
219
  collapseButtonWidth: ((Nt = h.current) == null ? void 0 : Nt.getBoundingClientRect().width) ?? mt,
220
- containerPadding: C + w,
220
+ containerPadding: v + m,
221
221
  gapsBetweenFixedElements: at,
222
222
  fixedElementsTotal: ct
223
223
  }, null, 2));
224
- const y = [];
224
+ const C = [];
225
225
  let z = !0;
226
226
  for (let d = 0; d < ((s == null ? void 0 : s.length) ?? 0); d += 1) {
227
- const m = e.current[d];
228
- if (m) {
229
- const H = m.querySelector("button, a") || m, nt = H.getBoundingClientRect().width || H.offsetWidth || H.scrollWidth || H.clientWidth;
230
- nt > 0 ? (y.push(nt), _.current[d] = nt) : _.current[d] !== void 0 ? y.push(_.current[d] ?? wt) : (z = !1, y.push(wt));
227
+ const x = e.current[d];
228
+ if (x) {
229
+ const H = x.querySelector("button, a") || x, nt = H.getBoundingClientRect().width || H.offsetWidth || H.scrollWidth || H.clientWidth;
230
+ nt > 0 ? (C.push(nt), _.current[d] = nt) : _.current[d] !== void 0 ? C.push(_.current[d] ?? wt) : (z = !1, C.push(wt));
231
231
  } else
232
- _.current[d] !== void 0 ? y.push(_.current[d] ?? wt) : (z = !1, y.push(wt));
232
+ _.current[d] !== void 0 ? C.push(_.current[d] ?? wt) : (z = !1, C.push(wt));
233
233
  }
234
- if (!z && y.length === 0 && ((s == null ? void 0 : s.length) ?? 0) > 0)
234
+ if (!z && C.length === 0 && ((s == null ? void 0 : s.length) ?? 0) > 0)
235
235
  return;
236
- const b = ((Ot = c.current) == null ? void 0 : Ot.getBoundingClientRect().width) ?? A, I = W - u * 2, N = i.current ? i.current.getBoundingClientRect().width : 0;
237
- x && (console.debug("🎯 Ограничения и текущее состояние:", JSON.stringify({
236
+ const b = ((Ot = c.current) == null ? void 0 : Ot.getBoundingClientRect().width) ?? A, T = W - u * 2, N = i.current ? i.current.getBoundingClientRect().width : 0;
237
+ w && (console.debug("🎯 Ограничения и текущее состояние:", JSON.stringify({
238
238
  targetContainer: {
239
239
  tableWidth: E,
240
240
  availableWidth: W,
241
241
  minPaddingEach: u,
242
242
  minPaddingTotal: u * 2,
243
- maxPanelWidth: I
243
+ maxPanelWidth: T
244
244
  },
245
245
  currentPanel: {
246
246
  width: N,
247
- exceedsMax: N > I,
247
+ exceedsMax: N > T,
248
248
  exceedsAvailable: N > W,
249
249
  leftPadding: u,
250
250
  rightPadding: u
251
251
  },
252
252
  moreButtonWidth: b
253
253
  }, null, 2)), console.debug("🔘 Ширины кнопок:", JSON.stringify({
254
- buttons: s == null ? void 0 : s.map((d, m) => ({
255
- index: m,
254
+ buttons: s == null ? void 0 : s.map((d, x) => ({
255
+ index: x,
256
256
  text: d.text,
257
257
  view: d.view,
258
258
  isAccent: d.view === "accent",
259
- width: y[m]
259
+ width: C[x]
260
260
  })),
261
- totalButtonsWidth: y.reduce((d, m) => d + m, 0),
262
- averageButtonWidth: y.length > 0 ? y.reduce((d, m) => d + m, 0) / y.length : 0
261
+ totalButtonsWidth: C.reduce((d, x) => d + x, 0),
262
+ averageButtonWidth: C.length > 0 ? C.reduce((d, x) => d + x, 0) / C.length : 0
263
263
  }, null, 2)));
264
264
  const D = s ?? [], G = [], j = [];
265
- D.forEach((d, m) => {
266
- if (y[m] === void 0)
265
+ D.forEach((d, x) => {
266
+ if (C[x] === void 0)
267
267
  return;
268
- (d == null ? void 0 : d.view) === "accent" ? G.push(m) : j.push(m);
269
- }), x && console.debug("🎨 Распределение:", {
268
+ (d == null ? void 0 : d.view) === "accent" ? G.push(x) : j.push(x);
269
+ }), w && console.debug("🎨 Распределение:", {
270
270
  accentCount: G.length,
271
271
  regularCount: j.length,
272
272
  accentButtons: G.map((d) => {
273
- var m;
273
+ var x;
274
274
  return {
275
275
  index: d,
276
- text: (m = D[d]) == null ? void 0 : m.text,
277
- width: y[d]
276
+ text: (x = D[d]) == null ? void 0 : x.text,
277
+ width: C[d]
278
278
  };
279
279
  })
280
280
  });
281
281
  let tt = 0;
282
282
  G.forEach((d) => {
283
- const m = y[d];
284
- m !== void 0 && (tt += m);
283
+ const x = C[d];
284
+ x !== void 0 && (tt += x);
285
285
  });
286
286
  const et = new Set(G);
287
287
  let J = tt, dt = 0;
288
288
  for (let d = 0; d < j.length; d += 1) {
289
- const m = j[d], K = typeof m < "u" ? y[m] : 0;
289
+ const x = j[d], K = typeof x < "u" ? C[x] : 0;
290
290
  if (K === void 0)
291
291
  continue;
292
292
  const Z = d < j.length - 1 ? b + k : 0, nt = et.size + 1, St = (nt - 1) * k, Dt = J + K + St + Z, Wt = ct + Dt, Et = Wt + 3;
293
- if (x && console.debug(` 🔍 Проверка кнопки ${d}:`, {
294
- text: typeof m < "u" ? (Mt = D[m]) == null ? void 0 : Mt.text : "",
293
+ if (w && console.debug(` 🔍 Проверка кнопки ${d}:`, {
294
+ text: typeof x < "u" ? (Mt = D[x]) == null ? void 0 : Mt.text : "",
295
295
  width: K,
296
296
  totalButtonsWidthBefore: J,
297
297
  visibleCountAfter: nt,
@@ -300,17 +300,17 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
300
300
  requiredWidth: Dt,
301
301
  testPanelWidth: Wt,
302
302
  testWithBuffer: Et,
303
- maxPanelWidth: I,
304
- fits: Wt <= I,
305
- fitsWithBuffer: Et <= I
306
- }), Et <= I)
307
- J += K, dt += 1, typeof m < "u" && et.add(m);
303
+ maxPanelWidth: T,
304
+ fits: Wt <= T,
305
+ fitsWithBuffer: Et <= T
306
+ }), Et <= T)
307
+ J += K, dt += 1, typeof x < "u" && et.add(x);
308
308
  else
309
309
  break;
310
310
  }
311
- const Y = et.size, rt = D.length - Y > 0, ut = Y > 0 ? (Y - 1) * k : 0, T = J + ut + (rt ? b + k : 0), f = ct + T, v = [], M = [];
312
- D.forEach((d, m) => {
313
- et.has(m) ? v.push(d) : M.push(d);
311
+ const Y = et.size, rt = D.length - Y > 0, ut = Y > 0 ? (Y - 1) * k : 0, I = J + ut + (rt ? b + k : 0), g = ct + I, y = [], M = [];
312
+ D.forEach((d, x) => {
313
+ et.has(x) ? y.push(d) : M.push(d);
314
314
  });
315
315
  const F = Y, gt = {
316
316
  fixedElements: {
@@ -318,7 +318,7 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
318
318
  middleSection: q,
319
319
  divider: Q,
320
320
  collapseButton: mt,
321
- containerPadding: C + w,
321
+ containerPadding: v + m,
322
322
  gapsBetweenFixedElements: at,
323
323
  total: ct
324
324
  },
@@ -328,7 +328,7 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
328
328
  totalButtonsWidth: J,
329
329
  // Сумма только ширин кнопок без gaps
330
330
  gapsBetweenVisibleButtons: ut,
331
- buttonsAreaWidth: T,
331
+ buttonsAreaWidth: I,
332
332
  // С учетом gaps
333
333
  visibleButtonsCount: Y,
334
334
  hiddenButtonsCount: M.length
@@ -339,35 +339,35 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
339
339
  total: b + k
340
340
  } : null,
341
341
  final: {
342
- calculatedWidth: f,
342
+ calculatedWidth: g,
343
343
  actualPanelWidth: N,
344
- widthDifference: N - f,
345
- maxAllowedWidth: I,
344
+ widthDifference: N - g,
345
+ maxAllowedWidth: T,
346
346
  availableWidth: W,
347
- fits: f <= I,
348
- actualFits: N <= I,
349
- exceedsBy: f > I ? f - I : 0,
350
- actualExceedsBy: N > I ? N - I : 0,
347
+ fits: g <= T,
348
+ actualFits: N <= T,
349
+ exceedsBy: g > T ? g - T : 0,
350
+ actualExceedsBy: N > T ? N - T : 0,
351
351
  leftPaddingRequired: u,
352
352
  rightPaddingRequired: u,
353
353
  totalPaddingRequired: u * 2
354
354
  }
355
355
  };
356
- x && (console.debug("✅ Результат компрессии:", JSON.stringify({
356
+ w && (console.debug("✅ Результат компрессии:", JSON.stringify({
357
357
  summary: {
358
358
  totalButtons: D.length,
359
359
  accentCount: G.length,
360
360
  visibleRegularCount: dt,
361
361
  visibleCount: F,
362
362
  hiddenCount: M.length,
363
- finalPanelWidth: f,
364
- maxPanelWidth: I,
365
- fits: f <= I,
363
+ finalPanelWidth: g,
364
+ maxPanelWidth: T,
365
+ fits: g <= T,
366
366
  hasMoreButton: rt
367
367
  },
368
368
  breakdown: gt
369
369
  }, null, 2)), console.debug("👁️ Видимые кнопки:", {
370
- buttons: v.map((d) => ({
370
+ buttons: y.map((d) => ({
371
371
  text: d.text,
372
372
  view: d.view,
373
373
  isAccent: d.view === "accent"
@@ -380,7 +380,7 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
380
380
  }), console.groupEnd()), p(Y);
381
381
  }, fe);
382
382
  });
383
- }, [t, i, o, g, r, x, l, n, s, a, c, h, u, C, w, A, p, e]),
383
+ }, [t, i, o, f, r, w, l, n, s, a, c, h, u, v, m, A, p, e]),
384
384
  calculateInitialCompression: L,
385
385
  measuredButtonWidthsRef: _
386
386
  };
@@ -410,7 +410,7 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
410
410
  getContainerWidth: e,
411
411
  getContainer: n
412
412
  };
413
- }, Ce = ({
413
+ }, ve = ({
414
414
  containerRef: t,
415
415
  buttonRefs: i,
416
416
  buttons: o,
@@ -422,7 +422,7 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
422
422
  setVisibleButtonsCount: a,
423
423
  calculatePosition: s,
424
424
  calculateCompression: r,
425
- measuredButtonWidthsRef: g,
425
+ measuredButtonWidthsRef: f,
426
426
  containerWidth: p
427
427
  }) => {
428
428
  st(() => {
@@ -437,8 +437,8 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
437
437
  u.disconnect();
438
438
  };
439
439
  }, [s, t]), st(() => {
440
- i.current = Array((o == null ? void 0 : o.length) ?? 0).fill(null), a((o == null ? void 0 : o.length) ?? 0), g.current = [];
441
- }, [o == null ? void 0 : o.length, i, a, g]), st(() => {
440
+ i.current = Array((o == null ? void 0 : o.length) ?? 0).fill(null), a((o == null ? void 0 : o.length) ?? 0), f.current = [];
441
+ }, [o == null ? void 0 : o.length, i, a, f]), st(() => {
442
442
  if (n && !e) {
443
443
  const u = setTimeout(() => {
444
444
  r(), s();
@@ -456,7 +456,7 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
456
456
  }, [e, c, s]), st(() => () => {
457
457
  (!n || h === 0) && l(!1);
458
458
  }, [n, h, l]);
459
- }, ve = ({
459
+ }, ye = ({
460
460
  containerRef: t,
461
461
  collapseButtonRef: i,
462
462
  leftSectionRef: o,
@@ -465,18 +465,18 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
465
465
  sidebarConfig: c,
466
466
  visibleButtonsCount: h,
467
467
  setTranslateX: l,
468
- minPadding: a = Tt,
468
+ minPadding: a = It,
469
469
  enableDebugLogs: s = !1
470
470
  }) => {
471
- const r = (c == null ? void 0 : c.isOpen) ?? !1, g = (c == null ? void 0 : c.width) ?? 0, p = (c == null ? void 0 : c.togglePanelWidth) ?? Ct, u = $(!1), C = pt((A) => {
471
+ const r = (c == null ? void 0 : c.isOpen) ?? !1, f = (c == null ? void 0 : c.width) ?? 0, p = (c == null ? void 0 : c.togglePanelWidth) ?? vt, u = $(!1), v = pt((A) => {
472
472
  var S, V;
473
- const x = n();
474
- if (!x || x === 0)
473
+ const w = n();
474
+ if (!w || w === 0)
475
475
  return;
476
- const _ = g + p, L = r ? _ / 2 : 0, R = e ? p / 2 : 0;
476
+ const _ = f + p, L = r ? _ / 2 : 0, R = e ? p / 2 : 0;
477
477
  let E = -(L + R), W;
478
478
  if (A) {
479
- const P = ((S = o == null ? void 0 : o.current) == null ? void 0 : S.getBoundingClientRect().width) ?? $t, X = ((V = i.current) == null ? void 0 : V.getBoundingClientRect().width) ?? mt, Q = It.top + It.right + It.left;
479
+ const P = ((S = o == null ? void 0 : o.current) == null ? void 0 : S.getBoundingClientRect().width) ?? $t, X = ((V = i.current) == null ? void 0 : V.getBoundingClientRect().width) ?? mt, Q = Tt.top + Tt.right + Tt.left;
480
480
  W = P + X + Q;
481
481
  } else if (t.current)
482
482
  W = t.current.getBoundingClientRect().width;
@@ -484,40 +484,40 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
484
484
  const P = h * wt, X = it.top + it.right + it.left;
485
485
  W = $t + he + mt + P + X;
486
486
  }
487
- const O = x / 2;
487
+ const O = w / 2;
488
488
  return O - W / 2 + E < a && (E = a - (O - W / 2)), E;
489
- }, [n, t, i, o, e, r, g, p, h, a]);
489
+ }, [n, t, i, o, e, r, f, p, h, a]);
490
490
  return {
491
491
  calculatePosition: pt(() => {
492
492
  const A = n();
493
493
  if (!A || A === 0 || !t.current)
494
494
  return;
495
495
  s && console.group("📍 MassActions Position");
496
- const x = g + p, _ = r ? x / 2 : 0, L = e ? p / 2 : 0;
496
+ const w = f + p, _ = r ? w / 2 : 0, L = e ? p / 2 : 0;
497
497
  let R = -(_ + L);
498
498
  const E = t.current.getBoundingClientRect().width, W = A / 2, O = W - E / 2 + R;
499
499
  O < a && (R = a - (W - E / 2)), s && (console.log("🎯 Позиционирование:", JSON.stringify({
500
500
  tableWidth: A,
501
501
  panelWidth: E,
502
502
  tableCenter: W,
503
- sidebarWidth: g,
503
+ sidebarWidth: f,
504
504
  toggleSidebarPanelWidth: p,
505
505
  isSidebarOpen: r,
506
506
  isHaveSomeFeatureInSidebar: e,
507
- totalSidebarWidth: x,
507
+ totalSidebarWidth: w,
508
508
  sidebarOffset: _,
509
509
  togglePanelOffset: L,
510
510
  idealTranslateX: -(_ + L),
511
511
  leftEdgePosition: O,
512
512
  minPadding: a,
513
513
  finalTranslateX: R,
514
- adjusted: O < Tt
514
+ adjusted: O < It
515
515
  }, null, 2)), console.groupEnd()), l(R), r ? u.current = !0 : u.current = !1;
516
- }, [n, t, s, g, p, e, r, l, a]),
517
- calculatePositionForState: C,
516
+ }, [n, t, s, f, p, e, r, l, a]),
517
+ calculatePositionForState: v,
518
518
  shouldApplySidebarOffsetRef: u
519
519
  };
520
- }, ye = ({
520
+ }, Ce = ({
521
521
  isCollapsed: t,
522
522
  setIsCollapsed: i,
523
523
  calculatePositionForState: o,
@@ -527,12 +527,12 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
527
527
  sidebarConfig: h,
528
528
  getContainerWidth: l
529
529
  }) => {
530
- const a = (h == null ? void 0 : h.isOpen) ?? !1, s = (h == null ? void 0 : h.width) ?? 0, r = $(!1), g = $(a);
530
+ const a = (h == null ? void 0 : h.isOpen) ?? !1, s = (h == null ? void 0 : h.width) ?? 0, r = $(!1), f = $(a);
531
531
  return st(() => {
532
532
  if (!h)
533
533
  return;
534
- const u = g.current !== a;
535
- if (g.current = a, !u) {
534
+ const u = f.current !== a;
535
+ if (f.current = a, !u) {
536
536
  n();
537
537
  return;
538
538
  }
@@ -541,15 +541,15 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
541
541
  n();
542
542
  else {
543
543
  r.current = !0;
544
- const C = o(!0);
545
- C !== void 0 && (e(C), c.current = !0), i(!0), setTimeout(() => {
544
+ const v = o(!0);
545
+ v !== void 0 && (e(v), c.current = !0), i(!0), setTimeout(() => {
546
546
  n();
547
547
  }, _t);
548
548
  }
549
549
  else if (t) {
550
550
  r.current = !1, c.current = !1;
551
- const C = o(!1);
552
- C !== void 0 && e(C), i(!1), setTimeout(() => {
551
+ const v = o(!1);
552
+ v !== void 0 && e(v), i(!1), setTimeout(() => {
553
553
  n();
554
554
  }, _t);
555
555
  } else
@@ -584,9 +584,9 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
584
584
  displayName: "styled__getButtonWithDropdown"
585
585
  })(["", " ", ""], ({
586
586
  $hasDropdown: i
587
- }) => i && yt(["& > div > span:last-child{max-width:fit-content;min-width:unset;}"]), ({
587
+ }) => i && Ct(["& > div > span:last-child{max-width:fit-content;min-width:unset;}"]), ({
588
588
  $buttonStyles: i
589
- }) => i && yt(["", ""], i)), Ie = Ht(Pt), Te = Ht(Ee), _e = U.div.withConfig({
589
+ }) => i && Ct(["", ""], i)), Te = Ht(Pt), Ie = Ht(Ee), _e = U.div.withConfig({
590
590
  displayName: "styled__MassActionsContainer"
591
591
  })(["position:absolute;bottom:", "px;left:50%;transform:", ";background:", ";border:2px solid ", ";padding:", ";border-radius:14px;display:block;width:fit-content;max-width:", ";view-transition-name:", ";opacity:", ";transition:padding 0.3s cubic-bezier(0.4,0,0.2,1),transform 0.3s cubic-bezier(0.4,0,0.2,1),max-width 0.2s cubic-bezier(0.4,0,0.2,1),opacity 0.2s ease-in-out;will-change:padding,transform,max-width;box-shadow:", ";"], ({
592
592
  $bottom: t = 24
@@ -613,7 +613,7 @@ const mt = 24, k = 4, Ct = 44, Yt = 40, Tt = 24, it = {
613
613
  $isCollapsed: t
614
614
  }) => t ? "0" : "40px", ({
615
615
  $isCollapsed: t
616
- }) => t ? yt(["opacity:0;max-width:0;margin:0;gap:0;"]) : yt(["opacity:1;max-width:2000px;"])), Me = U.div.withConfig({
616
+ }) => t ? Ct(["opacity:0;max-width:0;margin:0;gap:0;"]) : Ct(["opacity:1;max-width:2000px;"])), Me = U.div.withConfig({
617
617
  displayName: "styled__HiddenButtonsMeasurementContainer"
618
618
  })(["position:absolute;left:-9999px;top:0;display:flex;gap:4px;align-items:center;z-index:-1;pointer-events:none;width:auto;height:auto;"]), Se = U.div.withConfig({
619
619
  displayName: "styled__ButtonMeasurementWrapper"
@@ -655,56 +655,57 @@ const $e = U(Ft).withConfig({
655
655
  const a = t ?? "linkButton", {
656
656
  view: s,
657
657
  ...r
658
- } = Ve, g = i ?? s, p = o ? n : void 0, u = !!c;
659
- let C;
658
+ } = Ve, f = i ?? s, p = o ? n : void 0, u = !!c;
659
+ let v;
660
660
  if (a === "button") {
661
- const w = l, A = w.text ?? p;
662
- C = /* @__PURE__ */ B(Ie, { ...r, ...w, view: g, text: A, $hasDropdown: u, $showLabel: o, $buttonStyles: e });
661
+ const m = l, A = m.text ?? p;
662
+ v = /* @__PURE__ */ B(Te, { ...r, ...m, view: f, text: A, $hasDropdown: u, $showLabel: o, $buttonStyles: e });
663
663
  } else {
664
- const w = String(g ?? "linkDefault"), x = w.startsWith("link") ? Le(w) : w;
665
- C = /* @__PURE__ */ B(Te, { ...r, ...l, view: x, text: p, $hasDropdown: u, $showLabel: o, $buttonStyles: e });
664
+ const m = String(f ?? "linkDefault"), w = m.startsWith("link") ? Le(m) : m;
665
+ v = /* @__PURE__ */ B(Ie, { ...r, ...l, view: w, text: p, $hasDropdown: u, $showLabel: o, $buttonStyles: e });
666
666
  }
667
667
  if (c && c.items && c.items.length > 0)
668
668
  if (h)
669
- C = /* @__PURE__ */ B(jt, { ...c, children: C });
669
+ v = /* @__PURE__ */ B(jt, { ...c, children: v });
670
670
  else {
671
671
  const {
672
- $css: w,
672
+ $css: m,
673
673
  ...A
674
674
  } = c;
675
- C = /* @__PURE__ */ B(Gt, { ...A, children: C });
675
+ v = /* @__PURE__ */ B(Gt, { ...A, children: v });
676
676
  }
677
- return C;
677
+ return v;
678
678
  }, Pe = ({
679
679
  selectedCount: t,
680
- label: i = "Выбрано",
681
- showCheckbox: o = !1,
682
- checked: n = !1,
683
- onCheckboxChange: e,
684
- className: c,
685
- indeterminate: h
680
+ maxCount: i,
681
+ label: o = "Выбрано",
682
+ showCheckbox: n = !1,
683
+ checked: e = !1,
684
+ onCheckboxChange: c,
685
+ className: h,
686
+ indeterminate: l
686
687
  }) => {
687
688
  const {
688
- down: l
689
- } = qt(), a = l("xl"), s = t > 0, r = a ? "BodyXS" : "BodyS", g = (() => {
689
+ down: a
690
+ } = qt(), s = a("xl"), r = t > 0, f = s ? "BodyXS" : "BodyS", p = typeof i == "number" && t > i ? `${i}+` : `${t}`, u = (() => {
690
691
  if (t === 0)
691
692
  return "0px";
692
- const u = t.toString().length;
693
- return `${Math.max(16, 7.1 + u * 6.1) + 4}px`;
693
+ const m = p.length;
694
+ return `${Math.max(16, 7.1 + m * 6.1) + 4}px`;
694
695
  })();
695
- return /* @__PURE__ */ vt(kt, { className: c, $css: {
696
+ return /* @__PURE__ */ yt(kt, { className: h, $css: {
696
697
  display: "flex",
697
698
  alignItems: "center"
698
699
  }, children: [
699
- o ? /* @__PURE__ */ vt(kt, { $css: {
700
+ n ? /* @__PURE__ */ yt(kt, { $css: {
700
701
  display: "flex",
701
702
  alignItems: "center",
702
703
  gap: "4px"
703
704
  }, children: [
704
- /* @__PURE__ */ B(Qt, { checked: n, indeterminate: h, onChange: e, size: "m" }),
705
- /* @__PURE__ */ B(zt, { variant: r, children: i })
706
- ] }) : /* @__PURE__ */ B(zt, { variant: r, children: i }),
707
- /* @__PURE__ */ B(ue, { duration: 0.3, orientation: "horizontal", isOpen: s, unMountOnClose: !0, sizeOnOpen: g, extContainerCss: {
705
+ /* @__PURE__ */ B(Qt, { checked: e, indeterminate: l, onChange: c, size: "m" }),
706
+ /* @__PURE__ */ B(zt, { variant: f, children: o })
707
+ ] }) : /* @__PURE__ */ B(zt, { variant: f, children: o }),
708
+ /* @__PURE__ */ B(ue, { duration: 0.3, orientation: "horizontal", isOpen: r, unMountOnClose: !0, sizeOnOpen: u, extContainerCss: {
708
709
  overflow: "visible",
709
710
  display: "flex",
710
711
  justifyContent: "flex-end"
@@ -716,7 +717,7 @@ const $e = U(Ft).withConfig({
716
717
  onOpen: {
717
718
  opacity: 1
718
719
  }
719
- }, children: s && /* @__PURE__ */ B(ce, { className: "counter", count: t, size: "xs", view: "accent", style: {
720
+ }, children: r && /* @__PURE__ */ B(ce, { className: "counter", count: t, maxCount: i, size: "xs", view: "accent", style: {
720
721
  marginBottom: "3px"
721
722
  } }, t) })
722
723
  ] });
@@ -727,8 +728,8 @@ const $e = U(Ft).withConfig({
727
728
  if (e.dropdown) {
728
729
  const l = `group-${e.key || e.text || Date.now()}`, a = "items" in e.dropdown ? e.dropdown.items || [] : [], s = "onItemSelect" in e.dropdown ? e.dropdown.onItemSelect : void 0;
729
730
  s && n.set(l.toString(), s);
730
- const [r, g] = ie(a, s);
731
- g.forEach((p, u) => n.set(u, p)), (c = e.dropdown) != null && c.$css && Object.assign(o, (h = e.dropdown) == null ? void 0 : h.$css), i.push({
731
+ const [r, f] = ie(a, s);
732
+ f.forEach((p, u) => n.set(u, p)), (c = e.dropdown) != null && c.$css && Object.assign(o, (h = e.dropdown) == null ? void 0 : h.$css), i.push({
732
733
  label: e.text ?? "",
733
734
  value: l,
734
735
  contentLeft: e.contentLeft,
@@ -745,7 +746,7 @@ const $e = U(Ft).withConfig({
745
746
  };
746
747
  e.onClick && n.set(l.toString(), (s, r) => {
747
748
  var p;
748
- const g = {
749
+ const f = {
749
750
  ...r,
750
751
  nativeEvent: r.nativeEvent,
751
752
  preventDefault: r.preventDefault,
@@ -753,7 +754,7 @@ const $e = U(Ft).withConfig({
753
754
  target: r.target,
754
755
  currentTarget: r.currentTarget
755
756
  };
756
- (p = e.onClick) == null || p.call(e, g);
757
+ (p = e.onClick) == null || p.call(e, f);
757
758
  }), i.push(a);
758
759
  }
759
760
  }), {
@@ -772,19 +773,19 @@ const $e = U(Ft).withConfig({
772
773
  dropdownItems: c,
773
774
  handlerMap: h,
774
775
  $summaryCSS: l
775
- } = Ge(t), a = se(h), [s, r] = ht(!1), g = c.map((w, A) => (i.includes(A) && (w.dividerAfter = !0), w)), p = {
776
+ } = Ge(t), a = se(h), [s, r] = ht(!1), f = c.map((m, A) => (i.includes(A) && (m.dividerAfter = !0), m)), p = {
776
777
  closeOnSelect: !0,
777
778
  ...n,
778
779
  onItemSelect: a,
779
- items: g,
780
- onToggle: (w) => r(w),
780
+ items: f,
781
+ onToggle: (m) => r(m),
781
782
  portal: "document",
782
783
  view: (n == null ? void 0 : n.view) || "default"
783
784
  }, {
784
785
  portal: u,
785
- ...C
786
+ ...v
786
787
  } = p;
787
- return e ? /* @__PURE__ */ B(jt, { $css: l, ...C, children: o }) : /* @__PURE__ */ B(Gt, { ...p, children: o });
788
+ return e ? /* @__PURE__ */ B(jt, { $css: l, ...v, children: o }) : /* @__PURE__ */ B(Gt, { ...p, children: o });
788
789
  }, qe = ({
789
790
  button: t,
790
791
  isCompact: i,
@@ -813,20 +814,20 @@ const $e = U(Ft).withConfig({
813
814
  show: a,
814
815
  useTableDropdown: s = !1,
815
816
  enableDebugLogs: r = !1,
816
- bottom: g = 16,
817
+ bottom: f = 16,
817
818
  minPadding: p = 16,
818
819
  size: u
819
820
  }) => {
820
821
  const {
821
- down: C
822
- } = qt(), w = u ? u === "xs" : C("xl"), A = u ? "xxs" : "xs", [x, _] = ht(!1), L = $(null), R = $(null), E = $(null), W = $([]), O = $(null), q = $(null), S = $(null), V = $(null), [P, X] = ht((n == null ? void 0 : n.length) ?? 0), [Q, ot] = ht(void 0), [at, ct] = ht(!1), {
823
- containerWidth: y,
822
+ down: v
823
+ } = qt(), m = u ? u === "xs" : v("xl"), A = u ? "xxs" : "xs", [w, _] = ht(!1), L = $(null), R = $(null), E = $(null), W = $([]), O = $(null), q = $(null), S = $(null), V = $(null), [P, X] = ht((n == null ? void 0 : n.length) ?? 0), [Q, ot] = ht(void 0), [at, ct] = ht(!1), {
824
+ containerWidth: C,
824
825
  getContainerWidth: z
825
- } = Be(t), b = Ae(l), I = a !== void 0 ? a : b, {
826
+ } = Be(t), b = Ae(l), T = a !== void 0 ? a : b, {
826
827
  calculatePosition: N,
827
828
  calculatePositionForState: D,
828
829
  shouldApplySidebarOffsetRef: G
829
- } = ve({
830
+ } = ye({
830
831
  containerRef: L,
831
832
  collapseButtonRef: q,
832
833
  leftSectionRef: S,
@@ -840,7 +841,7 @@ const $e = U(Ft).withConfig({
840
841
  calculateCompression: j,
841
842
  measuredButtonWidthsRef: tt
842
843
  } = xe({
843
- isCollapsed: x,
844
+ isCollapsed: w,
844
845
  containerRef: L,
845
846
  contentRef: R,
846
847
  middleSectionRef: E,
@@ -857,12 +858,12 @@ const $e = U(Ft).withConfig({
857
858
  minPadding: p,
858
859
  leftPadding: it.left,
859
860
  rightPadding: it.right,
860
- moreButtonWidthEstimate: w ? 32 : Yt
861
+ moreButtonWidthEstimate: m ? 32 : Yt
861
862
  }), {
862
863
  isSidebarOpen: et,
863
864
  wasAutoCollapsedRef: J
864
- } = ye({
865
- isCollapsed: x,
865
+ } = Ce({
866
+ isCollapsed: w,
866
867
  setIsCollapsed: _,
867
868
  calculatePositionForState: D,
868
869
  calculatePosition: N,
@@ -873,7 +874,7 @@ const $e = U(Ft).withConfig({
873
874
  }), {
874
875
  handleToggleCollapse: dt
875
876
  } = we({
876
- isCollapsed: x,
877
+ isCollapsed: w,
877
878
  setIsCollapsed: _,
878
879
  isSidebarOpen: et,
879
880
  calculatePositionForState: D,
@@ -890,14 +891,14 @@ const $e = U(Ft).withConfig({
890
891
  visibleButtonsCount: P
891
892
  });
892
893
  if (st(() => {
893
- const T = setTimeout(() => ct(!0), pe);
894
- return () => clearTimeout(T);
895
- }, []), Ce({
894
+ const I = setTimeout(() => ct(!0), pe);
895
+ return () => clearTimeout(I);
896
+ }, []), ve({
896
897
  containerRef: L,
897
898
  buttonRefs: W,
898
899
  buttons: n,
899
- isVisible: I,
900
- isCollapsed: x,
900
+ isVisible: T,
901
+ isCollapsed: w,
901
902
  visibleButtonsCount: P,
902
903
  selectedCount: l,
903
904
  setIsCollapsed: _,
@@ -905,33 +906,33 @@ const $e = U(Ft).withConfig({
905
906
  calculatePosition: N,
906
907
  calculateCompression: j,
907
908
  measuredButtonWidthsRef: tt,
908
- containerWidth: y
909
- }), !I)
909
+ containerWidth: C
910
+ }), !T)
910
911
  return null;
911
- const ut = !x && ((n == null ? void 0 : n.length) ?? 0) > 0;
912
- return /* @__PURE__ */ B(_e, { ref: L, $isCollapsed: x, $size: u, $translateX: Q, $isInitialCalculationComplete: at, $bottom: g, children: /* @__PURE__ */ vt(Ne, { ref: R, $isCollapsed: x, $isCompact: w, children: [
913
- /* @__PURE__ */ B(Me, { children: rt.map((T, f) => {
914
- const v = T.key ?? `${T.text}${f}`;
912
+ const ut = !w && ((n == null ? void 0 : n.length) ?? 0) > 0;
913
+ return /* @__PURE__ */ B(_e, { ref: L, $isCollapsed: w, $size: u, $translateX: Q, $isInitialCalculationComplete: at, $bottom: f, children: /* @__PURE__ */ yt(Ne, { ref: R, $isCollapsed: w, $isCompact: m, children: [
914
+ /* @__PURE__ */ B(Me, { children: rt.map((I, g) => {
915
+ const y = I.key ?? `${I.text}${g}`;
915
916
  return /* @__PURE__ */ B(Se, { ref: (M) => {
916
- W.current[f] = M;
917
- }, children: Vt(T, w, s, A) }, `measure-${v}`);
917
+ W.current[g] = M;
918
+ }, children: Vt(I, m, s, A) }, `measure-${y}`);
918
919
  }) }),
919
920
  /* @__PURE__ */ B("div", { ref: S, children: i }),
920
- /* @__PURE__ */ vt(Oe, { $isCollapsed: x, children: [
921
+ /* @__PURE__ */ yt(Oe, { $isCollapsed: w, children: [
921
922
  o && /* @__PURE__ */ B("div", { ref: E, children: o }),
922
923
  ut && /* @__PURE__ */ B("div", { ref: V, children: /* @__PURE__ */ B($e, { orientation: "vertical", length: "16px" }) }),
923
- ft.length > 0 && /* @__PURE__ */ B("div", { ref: (T) => {
924
- O.current = T;
924
+ ft.length > 0 && /* @__PURE__ */ B("div", { ref: (I) => {
925
+ O.current = I;
925
926
  }, children: /* @__PURE__ */ B(Ue, { buttons: ft, useTableDropdown: s, dropdownProps: {
926
927
  placement: "top",
927
928
  ...h
928
- }, triggerSlot: /* @__PURE__ */ B(bt, { view: "secondary", size: w ? A : "s", contentLeft: /* @__PURE__ */ B(ne, { size: w ? "xs" : "s" }) }) }) }),
929
- Y.map((T, f) => {
930
- const v = T.key ?? `${T.text}${f}`, M = /* @__PURE__ */ B(De, { children: Vt(T, w, s, A) }, v);
931
- return T.disabled && T.disabledTooltipProps ? /* @__PURE__ */ B(te, { trigger: "hover", ...T.disabledTooltipProps, children: M }, v) : M;
929
+ }, triggerSlot: /* @__PURE__ */ B(bt, { view: "secondary", size: m ? A : "s", contentLeft: /* @__PURE__ */ B(ne, { size: m ? "xs" : "s" }) }) }) }),
930
+ Y.map((I, g) => {
931
+ const y = I.key ?? `${I.text}${g}`, M = /* @__PURE__ */ B(De, { children: Vt(I, m, s, A) }, y);
932
+ return I.disabled && I.disabledTooltipProps ? /* @__PURE__ */ B(te, { trigger: "hover", ...I.disabledTooltipProps, children: M }, y) : M;
932
933
  })
933
934
  ] }),
934
- /* @__PURE__ */ B("div", { ref: q, children: /* @__PURE__ */ B(ze, { size: w ? "s" : "m", $isCollapsed: x, $isCompact: w, onClick: dt, children: /* @__PURE__ */ B(ke, { size: w ? "xs" : "s", $isCollapsed: x }) }) })
935
+ /* @__PURE__ */ B("div", { ref: q, children: /* @__PURE__ */ B(ze, { size: m ? "s" : "m", $isCollapsed: w, $isCompact: m, onClick: dt, children: /* @__PURE__ */ B(ke, { size: m ? "xs" : "s", $isCollapsed: w }) }) })
935
936
  ] }) });
936
937
  };
937
938
  je.Counter = Pe;
@@ -942,15 +943,15 @@ export {
942
943
  k as E,
943
944
  ge as I,
944
945
  je as M,
945
- It as P,
946
+ Tt as P,
946
947
  he as R,
947
- Ct as T,
948
+ vt as T,
948
949
  _t as a,
949
950
  cn as b,
950
951
  fe as c,
951
952
  on as d,
952
953
  $t as e,
953
- Tt as f,
954
+ It as f,
954
955
  Yt as g,
955
956
  Rt as h,
956
957
  Pe as i,
@@ -958,9 +959,9 @@ export {
958
959
  we as k,
959
960
  xe as l,
960
961
  Be as m,
961
- Ce as n,
962
- ve as o,
963
- ye as p,
962
+ ve as n,
963
+ ye as o,
964
+ Ce as p,
964
965
  Ae as q,
965
966
  me as u
966
967
  };