@daisforge/ui 1.20.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.
- package/chunks/{FiltersActions-UayfdMLv.mjs → FiltersActions-BJ5gD6Nx.mjs} +26 -24
- package/chunks/FiltersActions-Bg5wvHFG.cjs +1 -0
- package/chunks/{ListOfFilters-B3CA32OD.mjs → ListOfFilters-CfV2bs_4.mjs} +2 -2
- package/chunks/{ListOfFilters-8rHTfUXT.cjs → ListOfFilters-mqTsQbq_.cjs} +1 -1
- package/chunks/MassActions-BTrj9l-R.cjs +1 -0
- package/chunks/{MassActions-BJxR4H1S.mjs → MassActions-C6LY-g9r.mjs} +214 -213
- package/chunks/{Table-bmvWLH9o.mjs → Table-tUWuA3Ri.mjs} +1646 -1637
- package/chunks/Table-vv1HTrxe.cjs +31 -0
- package/chunks/{TableCanvas-DxcB4WOJ.mjs → TableCanvas-BX5aciu7.mjs} +3090 -3025
- package/chunks/TableCanvas-qnwh4c5g.cjs +30 -0
- package/chunks/{TableGlide-BMBq6g4-.mjs → TableGlide-BLbbkn4C.mjs} +5669 -5323
- package/chunks/TableGlide-CZ2mkokV.cjs +1 -0
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/ListOfFilters/index.cjs +1 -1
- package/components/ListOfFilters/index.mjs +1 -1
- package/components/MassActions/hooks/index.cjs +1 -1
- package/components/MassActions/hooks/index.mjs +1 -1
- package/components/MassActions/index.cjs +1 -1
- package/components/MassActions/index.mjs +1 -1
- package/components/MassActions/types.d.ts +1 -0
- package/components/Table/components/TableDropdown/index.cjs +1 -1
- package/components/Table/components/TableDropdown/index.mjs +1 -1
- package/components/Table/feature-collapse-table/index.cjs +1 -1
- package/components/Table/feature-collapse-table/index.mjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +1 -1
- package/components/Table/feature-columns-grouping/index.cjs +1 -1
- package/components/Table/feature-columns-grouping/index.mjs +1 -1
- package/components/Table/feature-context-menu/index.cjs +1 -1
- package/components/Table/feature-context-menu/index.mjs +1 -1
- package/components/Table/feature-edit/index.cjs +1 -1
- package/components/Table/feature-edit/index.mjs +1 -1
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.mjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/Table/feature-filtering/index.cjs +1 -1
- package/components/Table/feature-filtering/index.mjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/Table/feature-infinity-scroll/index.cjs +1 -1
- package/components/Table/feature-infinity-scroll/index.mjs +1 -1
- package/components/Table/feature-key-text/index.cjs +1 -1
- package/components/Table/feature-key-text/index.mjs +1 -1
- package/components/Table/feature-pagination/index.cjs +1 -1
- package/components/Table/feature-pagination/index.mjs +1 -1
- package/components/Table/feature-right-sidebar/index.cjs +1 -1
- package/components/Table/feature-right-sidebar/index.mjs +1 -1
- package/components/Table/feature-row-detail/index.cjs +1 -1
- package/components/Table/feature-row-detail/index.mjs +1 -1
- package/components/Table/feature-row-instruments/index.cjs +1 -1
- package/components/Table/feature-row-instruments/index.mjs +1 -1
- package/components/Table/feature-row-size/index.cjs +1 -1
- package/components/Table/feature-row-size/index.mjs +1 -1
- package/components/Table/feature-rows-grouping/index.cjs +1 -1
- package/components/Table/feature-rows-grouping/index.mjs +1 -1
- package/components/Table/feature-searching/index.cjs +1 -1
- package/components/Table/feature-searching/index.mjs +1 -1
- package/components/Table/feature-select-row/index.cjs +1 -1
- package/components/Table/feature-select-row/index.mjs +1 -1
- package/components/Table/feature-sorting/index.cjs +1 -1
- package/components/Table/feature-sorting/index.mjs +1 -1
- package/components/Table/feature-table-settings/index.cjs +1 -1
- package/components/Table/feature-table-settings/index.mjs +1 -1
- package/components/Table/feature-tree/index.cjs +1 -1
- package/components/Table/feature-tree/index.mjs +1 -1
- package/components/Table/index.cjs +1 -1
- package/components/Table/index.mjs +1 -1
- package/components/Table/renders/formatCell/index.cjs +1 -1
- package/components/Table/renders/formatCell/index.mjs +1 -1
- package/components/Table/styles/index.cjs +1 -1
- package/components/Table/styles/index.mjs +1 -1
- package/components/Table/table-hooks/index.cjs +1 -1
- package/components/Table/table-hooks/index.mjs +1 -1
- package/components/Table/types/index.cjs +1 -1
- package/components/Table/types/index.mjs +1 -1
- package/components/Table/types/table-config.type.d.ts +2 -0
- package/components/Table/utils/index.cjs +1 -1
- package/components/Table/utils/index.mjs +1 -1
- package/components/Table/widgets/control-block/index.cjs +1 -1
- package/components/Table/widgets/control-block/index.mjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
- package/components/Table/widgets/index.cjs +1 -1
- package/components/Table/widgets/index.mjs +1 -1
- package/components/Table/widgets/mass-actions/index.cjs +1 -1
- package/components/Table/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
- package/components/TableCanvas/TableGlideInstance/reexports-for-external.d.ts +4 -1
- package/components/TableCanvas/TableGlideInstance/type.d.ts +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/types.d.ts +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/types.d.ts +1 -0
- package/components/TableCanvas/feature-select-row/useSelectRow.d.ts +1 -0
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +2 -2
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/renders/renderEditCell.d.ts +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +2 -0
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableContract/index.cjs +1 -1
- package/components/TableContract/index.mjs +1 -1
- package/components/TableGlide/cellRenderer.d.ts +2 -1
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +92 -89
- package/components/TableGlide/lib/canvas/cells/CellCanvasRoot.d.ts +2 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.mjs +19 -19
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/types.d.ts +4 -2
- package/components/TableGlide/lib/canvas/cells/types.d.ts +3 -1
- package/components/TableGlide/lib/canvas/components/index.d.ts +31 -4
- package/components/TableGlide/lib/canvas/core/CanvasImageResources.d.ts +7 -0
- package/components/TableGlide/lib/canvas/core/CanvasImageTransitions.d.ts +11 -0
- package/components/TableGlide/lib/canvas/core/DrawBatcher.d.ts +5 -0
- package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.mjs +4 -4
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.d.ts +7 -7
- package/components/TableGlide/lib/canvas/index.mjs +70 -67
- package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/CanvasAvatar.d.ts +58 -0
- package/components/TableGlide/lib/canvas/primitives/CanvasAvatarGroup.d.ts +45 -0
- package/components/TableGlide/lib/canvas/primitives/CanvasImage.d.ts +17 -0
- package/components/TableGlide/lib/canvas/primitives/avatar/geometry.d.ts +6 -0
- package/components/TableGlide/lib/canvas/primitives/image/image.d.ts +20 -0
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.d.ts +11 -4
- package/components/TableGlide/lib/canvas/primitives/index.mjs +14 -11
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/tokens.d.ts +3 -0
- package/components/TourWidget/TourWidget.palette.d.ts +36 -0
- package/components/TourWidget/TourWidget.styled.d.ts +4 -0
- package/components/TourWidget/TourWidget.tokens.d.ts +52 -0
- package/components/TourWidget/hooks/useIsDarkTheme.d.ts +1 -0
- package/components/TourWidget/index.cjs +22 -22
- package/components/TourWidget/index.d.ts +1 -0
- package/components/TourWidget/index.mjs +269 -179
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +1 -1
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +1 -1
- package/index.cjs +1 -1
- package/index.mjs +1609 -1608
- package/layouts/FiltersActions/hooks/index.cjs +1 -1
- package/layouts/FiltersActions/hooks/index.mjs +1 -1
- package/layouts/FiltersActions/index.cjs +1 -1
- package/layouts/FiltersActions/index.mjs +1 -1
- package/mcp-data/component-index.json +1530 -675
- package/package.json +3 -3
- package/chunks/FiltersActions-Cw_JG2O2.cjs +0 -1
- package/chunks/MassActions-5p7to0R5.cjs +0 -1
- package/chunks/Table--NExtXRi.cjs +0 -31
- package/chunks/TableCanvas-DTm2pu0r.cjs +0 -30
- package/chunks/TableGlide-DtosQrHB.cjs +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as B, jsxs as
|
|
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-
|
|
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
|
|
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,
|
|
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
|
-
},
|
|
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 = [],
|
|
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) :
|
|
37
|
+
c.has(u) || s.has(u) ? r.push(p) : f.push(p);
|
|
38
38
|
}), {
|
|
39
39
|
visibleButtons: r,
|
|
40
|
-
buttonsInDropdown:
|
|
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:
|
|
76
|
+
getContainerWidth: f,
|
|
77
77
|
setVisibleButtonsCount: p,
|
|
78
|
-
minPadding: u =
|
|
79
|
-
leftPadding:
|
|
80
|
-
rightPadding:
|
|
78
|
+
minPadding: u = It,
|
|
79
|
+
leftPadding: v = it.left,
|
|
80
|
+
rightPadding: m = it.right,
|
|
81
81
|
moreButtonWidthEstimate: A = Yt,
|
|
82
|
-
enableDebugLogs:
|
|
82
|
+
enableDebugLogs: w = !1
|
|
83
83
|
}) => {
|
|
84
84
|
const _ = $([]), L = pt(() => {
|
|
85
|
-
var dt, Y, ft, rt, ut,
|
|
86
|
-
const E =
|
|
85
|
+
var dt, Y, ft, rt, ut, I;
|
|
86
|
+
const E = f();
|
|
87
87
|
if (!E || E === 0 || !s || s.length === 0)
|
|
88
|
-
return
|
|
89
|
-
if (!s.every((
|
|
90
|
-
return
|
|
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((
|
|
94
|
-
index:
|
|
95
|
-
hasRef: !!
|
|
93
|
+
refs: e.current.map((g, y) => ({
|
|
94
|
+
index: y,
|
|
95
|
+
hasRef: !!g
|
|
96
96
|
}))
|
|
97
97
|
}), !1;
|
|
98
|
-
const O = E - (r ?
|
|
99
|
-
(((rt = h.current) == null ? void 0 : rt.getBoundingClientRect().width) ?? mt) + (
|
|
100
|
-
at,
|
|
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
|
|
103
|
-
const
|
|
104
|
-
if (!
|
|
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 =
|
|
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
|
-
|
|
115
|
+
C.push(lt), _.current[g] = lt;
|
|
116
116
|
else {
|
|
117
117
|
console.debug("❌ calculateInitialCompression: кнопка не отрендерилась", {
|
|
118
|
-
index:
|
|
119
|
-
text: (ut = s[
|
|
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 ||
|
|
128
|
-
return
|
|
127
|
+
if (!z || C.length !== s.length)
|
|
128
|
+
return w && console.debug("❌ calculateInitialCompression: не все кнопки измерены", {
|
|
129
129
|
allButtonsMeasured: z,
|
|
130
|
-
buttonWidthsLength:
|
|
130
|
+
buttonWidthsLength: C.length,
|
|
131
131
|
buttonsLength: s.length
|
|
132
132
|
}), !1;
|
|
133
|
-
const b = ((
|
|
134
|
-
s.forEach((
|
|
135
|
-
if (y
|
|
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
|
-
(
|
|
137
|
+
(g == null ? void 0 : g.view) === "accent" ? N.push(y) : D.push(y);
|
|
138
138
|
});
|
|
139
139
|
let G = 0;
|
|
140
|
-
N.forEach((
|
|
141
|
-
const
|
|
142
|
-
|
|
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
|
|
147
|
-
const
|
|
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 =
|
|
151
|
-
if (ct + Bt <=
|
|
152
|
-
tt += M, et += 1, typeof
|
|
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:
|
|
158
|
+
buttonWidths: C,
|
|
159
159
|
visibleCount: J,
|
|
160
160
|
accentCount: N.length,
|
|
161
161
|
regularVisibleCount: et
|
|
162
162
|
}), !0;
|
|
163
|
-
}, [s,
|
|
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 =
|
|
169
|
+
const E = f();
|
|
170
170
|
if (!E || E === 0)
|
|
171
171
|
return;
|
|
172
|
-
const W = E - (r ?
|
|
173
|
-
|
|
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 ?
|
|
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:
|
|
185
|
+
children: x
|
|
186
186
|
} = l.current, K = [];
|
|
187
|
-
for (let H = 0; H <
|
|
188
|
-
const Z =
|
|
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) + (
|
|
208
|
-
|
|
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:
|
|
220
|
+
containerPadding: v + m,
|
|
221
221
|
gapsBetweenFixedElements: at,
|
|
222
222
|
fixedElementsTotal: ct
|
|
223
223
|
}, null, 2));
|
|
224
|
-
const
|
|
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
|
|
228
|
-
if (
|
|
229
|
-
const H =
|
|
230
|
-
nt > 0 ? (
|
|
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 ?
|
|
232
|
+
_.current[d] !== void 0 ? C.push(_.current[d] ?? wt) : (z = !1, C.push(wt));
|
|
233
233
|
}
|
|
234
|
-
if (!z &&
|
|
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,
|
|
237
|
-
|
|
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:
|
|
243
|
+
maxPanelWidth: T
|
|
244
244
|
},
|
|
245
245
|
currentPanel: {
|
|
246
246
|
width: N,
|
|
247
|
-
exceedsMax: N >
|
|
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,
|
|
255
|
-
index:
|
|
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:
|
|
259
|
+
width: C[x]
|
|
260
260
|
})),
|
|
261
|
-
totalButtonsWidth:
|
|
262
|
-
averageButtonWidth:
|
|
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,
|
|
266
|
-
if (
|
|
265
|
+
D.forEach((d, x) => {
|
|
266
|
+
if (C[x] === void 0)
|
|
267
267
|
return;
|
|
268
|
-
(d == null ? void 0 : d.view) === "accent" ? G.push(
|
|
269
|
-
}),
|
|
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
|
|
273
|
+
var x;
|
|
274
274
|
return {
|
|
275
275
|
index: d,
|
|
276
|
-
text: (
|
|
277
|
-
width:
|
|
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
|
|
284
|
-
|
|
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
|
|
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 (
|
|
294
|
-
text: typeof
|
|
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:
|
|
304
|
-
fits: Wt <=
|
|
305
|
-
fitsWithBuffer: Et <=
|
|
306
|
-
}), Et <=
|
|
307
|
-
J += K, dt += 1, typeof
|
|
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,
|
|
312
|
-
D.forEach((d,
|
|
313
|
-
et.has(
|
|
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:
|
|
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:
|
|
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:
|
|
342
|
+
calculatedWidth: g,
|
|
343
343
|
actualPanelWidth: N,
|
|
344
|
-
widthDifference: N -
|
|
345
|
-
maxAllowedWidth:
|
|
344
|
+
widthDifference: N - g,
|
|
345
|
+
maxAllowedWidth: T,
|
|
346
346
|
availableWidth: W,
|
|
347
|
-
fits:
|
|
348
|
-
actualFits: N <=
|
|
349
|
-
exceedsBy:
|
|
350
|
-
actualExceedsBy: N >
|
|
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
|
-
|
|
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:
|
|
364
|
-
maxPanelWidth:
|
|
365
|
-
fits:
|
|
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:
|
|
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,
|
|
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
|
-
},
|
|
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:
|
|
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),
|
|
441
|
-
}, [o == null ? void 0 : o.length, i, a,
|
|
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
|
-
},
|
|
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 =
|
|
468
|
+
minPadding: a = It,
|
|
469
469
|
enableDebugLogs: s = !1
|
|
470
470
|
}) => {
|
|
471
|
-
const r = (c == null ? void 0 : c.isOpen) ?? !1,
|
|
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
|
|
474
|
-
if (!
|
|
473
|
+
const w = n();
|
|
474
|
+
if (!w || w === 0)
|
|
475
475
|
return;
|
|
476
|
-
const _ =
|
|
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 =
|
|
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 =
|
|
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,
|
|
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
|
|
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:
|
|
503
|
+
sidebarWidth: f,
|
|
504
504
|
toggleSidebarPanelWidth: p,
|
|
505
505
|
isSidebarOpen: r,
|
|
506
506
|
isHaveSomeFeatureInSidebar: e,
|
|
507
|
-
totalSidebarWidth:
|
|
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 <
|
|
514
|
+
adjusted: O < It
|
|
515
515
|
}, null, 2)), console.groupEnd()), l(R), r ? u.current = !0 : u.current = !1;
|
|
516
|
-
}, [n, t, s,
|
|
517
|
-
calculatePositionForState:
|
|
516
|
+
}, [n, t, s, f, p, e, r, l, a]),
|
|
517
|
+
calculatePositionForState: v,
|
|
518
518
|
shouldApplySidebarOffsetRef: u
|
|
519
519
|
};
|
|
520
|
-
},
|
|
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),
|
|
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 =
|
|
535
|
-
if (
|
|
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
|
|
545
|
-
|
|
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
|
|
552
|
-
|
|
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 &&
|
|
587
|
+
}) => i && Ct(["& > div > span:last-child{max-width:fit-content;min-width:unset;}"]), ({
|
|
588
588
|
$buttonStyles: i
|
|
589
|
-
}) => i &&
|
|
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 ?
|
|
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,
|
|
659
|
-
let
|
|
658
|
+
} = Ve, f = i ?? s, p = o ? n : void 0, u = !!c;
|
|
659
|
+
let v;
|
|
660
660
|
if (a === "button") {
|
|
661
|
-
const
|
|
662
|
-
|
|
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
|
|
665
|
-
|
|
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
|
-
|
|
669
|
+
v = /* @__PURE__ */ B(jt, { ...c, children: v });
|
|
670
670
|
else {
|
|
671
671
|
const {
|
|
672
|
-
$css:
|
|
672
|
+
$css: m,
|
|
673
673
|
...A
|
|
674
674
|
} = c;
|
|
675
|
-
|
|
675
|
+
v = /* @__PURE__ */ B(Gt, { ...A, children: v });
|
|
676
676
|
}
|
|
677
|
-
return
|
|
677
|
+
return v;
|
|
678
678
|
}, Pe = ({
|
|
679
679
|
selectedCount: t,
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
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:
|
|
689
|
-
} = qt(),
|
|
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
|
|
693
|
-
return `${Math.max(16, 7.1 +
|
|
693
|
+
const m = p.length;
|
|
694
|
+
return `${Math.max(16, 7.1 + m * 6.1) + 4}px`;
|
|
694
695
|
})();
|
|
695
|
-
return /* @__PURE__ */
|
|
696
|
+
return /* @__PURE__ */ yt(kt, { className: h, $css: {
|
|
696
697
|
display: "flex",
|
|
697
698
|
alignItems: "center"
|
|
698
699
|
}, children: [
|
|
699
|
-
|
|
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:
|
|
705
|
-
/* @__PURE__ */ B(zt, { variant:
|
|
706
|
-
] }) : /* @__PURE__ */ B(zt, { variant:
|
|
707
|
-
/* @__PURE__ */ B(ue, { duration: 0.3, orientation: "horizontal", isOpen:
|
|
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:
|
|
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,
|
|
731
|
-
|
|
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
|
|
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,
|
|
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),
|
|
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:
|
|
780
|
-
onToggle: (
|
|
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
|
-
...
|
|
786
|
+
...v
|
|
786
787
|
} = p;
|
|
787
|
-
return e ? /* @__PURE__ */ B(jt, { $css: l, ...
|
|
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:
|
|
817
|
+
bottom: f = 16,
|
|
817
818
|
minPadding: p = 16,
|
|
818
819
|
size: u
|
|
819
820
|
}) => {
|
|
820
821
|
const {
|
|
821
|
-
down:
|
|
822
|
-
} = qt(),
|
|
823
|
-
containerWidth:
|
|
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),
|
|
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
|
-
} =
|
|
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:
|
|
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:
|
|
861
|
+
moreButtonWidthEstimate: m ? 32 : Yt
|
|
861
862
|
}), {
|
|
862
863
|
isSidebarOpen: et,
|
|
863
864
|
wasAutoCollapsedRef: J
|
|
864
|
-
} =
|
|
865
|
-
isCollapsed:
|
|
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:
|
|
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
|
|
894
|
-
return () => clearTimeout(
|
|
895
|
-
}, []),
|
|
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:
|
|
900
|
-
isCollapsed:
|
|
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:
|
|
909
|
-
}), !
|
|
909
|
+
containerWidth: C
|
|
910
|
+
}), !T)
|
|
910
911
|
return null;
|
|
911
|
-
const ut = !
|
|
912
|
-
return /* @__PURE__ */ B(_e, { ref: L, $isCollapsed:
|
|
913
|
-
/* @__PURE__ */ B(Me, { children: rt.map((
|
|
914
|
-
const
|
|
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[
|
|
917
|
-
}, children: Vt(
|
|
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__ */
|
|
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: (
|
|
924
|
-
O.current =
|
|
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:
|
|
929
|
-
Y.map((
|
|
930
|
-
const
|
|
931
|
-
return
|
|
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:
|
|
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
|
-
|
|
946
|
+
Tt as P,
|
|
946
947
|
he as R,
|
|
947
|
-
|
|
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
|
-
|
|
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
|
-
|
|
962
|
-
|
|
963
|
-
|
|
962
|
+
ve as n,
|
|
963
|
+
ye as o,
|
|
964
|
+
Ce as p,
|
|
964
965
|
Ae as q,
|
|
965
966
|
me as u
|
|
966
967
|
};
|