@commercetools/nimbus 0.0.0-canary-20250826065101 → 0.0.0-canary-20250826133439
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/dist/chunks/DatePicker-5cKqpUC9.cjs.js +2 -0
- package/dist/chunks/{DatePicker-BQ6EfAU2.cjs.js.map → DatePicker-5cKqpUC9.cjs.js.map} +1 -1
- package/dist/chunks/{DatePicker-ByWwypbW.es.js → DatePicker-8Z6Kf838.es.js} +17 -18
- package/dist/chunks/{DatePicker-ByWwypbW.es.js.map → DatePicker-8Z6Kf838.es.js.map} +1 -1
- package/dist/chunks/{Dialog-DNPIKkGE.es.js → Dialog-C7IjW1jR.es.js} +24 -25
- package/dist/chunks/{Dialog-DNPIKkGE.es.js.map → Dialog-C7IjW1jR.es.js.map} +1 -1
- package/dist/chunks/Dialog-Cbq66gyc.cjs.js +2 -0
- package/dist/chunks/{Dialog-B4OIDU7t.cjs.js.map → Dialog-Cbq66gyc.cjs.js.map} +1 -1
- package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js +2 -0
- package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js.map +1 -0
- package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js +479 -0
- package/dist/chunks/OverlayArrow-ERS8ZqL3.es.js.map +1 -0
- package/dist/chunks/combobox-CFH0OaAM.cjs.js +2 -0
- package/dist/chunks/{combobox-BYyNTj5m.cjs.js.map → combobox-CFH0OaAM.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-qA8TjWPw.es.js → combobox-CkVqkKdA.es.js} +14 -15
- package/dist/chunks/{combobox-qA8TjWPw.es.js.map → combobox-CkVqkKdA.es.js.map} +1 -1
- package/dist/chunks/data-table-DIXPr3ke.cjs.js +2 -0
- package/dist/chunks/{data-table-D6qEg2qp.cjs.js.map → data-table-DIXPr3ke.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-D7Gq4ZYT.es.js → data-table-cBq9JXG7.es.js} +1606 -1476
- package/dist/chunks/{data-table-D7Gq4ZYT.es.js.map → data-table-cBq9JXG7.es.js.map} +1 -1
- package/dist/chunks/{date-picker-COI-tlHx.es.js → date-picker-Bx2J-sPg.es.js} +3 -3
- package/dist/chunks/{date-picker-COI-tlHx.es.js.map → date-picker-Bx2J-sPg.es.js.map} +1 -1
- package/dist/chunks/{date-picker-RC0pSYZe.cjs.js → date-picker-UEQeFHA8.cjs.js} +2 -2
- package/dist/chunks/{date-picker-RC0pSYZe.cjs.js.map → date-picker-UEQeFHA8.cjs.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BnI3m8z-.es.js → date-range-picker-DvaRIy3T.es.js} +3 -3
- package/dist/chunks/{date-range-picker-BnI3m8z-.es.js.map → date-range-picker-DvaRIy3T.es.js.map} +1 -1
- package/dist/chunks/{date-range-picker-BMAaQ7cS.cjs.js → date-range-picker-Dx1nE1Br.cjs.js} +2 -2
- package/dist/chunks/{date-range-picker-BMAaQ7cS.cjs.js.map → date-range-picker-Dx1nE1Br.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-B6lCvcf4.cjs.js → form-field-DiW_0hSy.cjs.js} +2 -2
- package/dist/chunks/{form-field-B6lCvcf4.cjs.js.map → form-field-DiW_0hSy.cjs.js.map} +1 -1
- package/dist/chunks/{form-field-BgKHtyTH.es.js → form-field-Do0NhI0D.es.js} +2 -2
- package/dist/chunks/{form-field-BgKHtyTH.es.js.map → form-field-Do0NhI0D.es.js.map} +1 -1
- package/dist/chunks/{password-input-XSc2MhLG.es.js → password-input-BT594v5p.es.js} +2 -2
- package/dist/chunks/{password-input-XSc2MhLG.es.js.map → password-input-BT594v5p.es.js.map} +1 -1
- package/dist/chunks/{password-input--fYkZAW3.cjs.js → password-input-D1LSzb9p.cjs.js} +2 -2
- package/dist/chunks/{password-input--fYkZAW3.cjs.js.map → password-input-D1LSzb9p.cjs.js.map} +1 -1
- package/dist/chunks/select-BnN5zaBu.cjs.js +2 -0
- package/dist/chunks/{select-CxIiux8H.cjs.js.map → select-BnN5zaBu.cjs.js.map} +1 -1
- package/dist/chunks/{select-CMZAeYTf.es.js → select-Cr0CSahh.es.js} +12 -13
- package/dist/chunks/{select-CMZAeYTf.es.js.map → select-Cr0CSahh.es.js.map} +1 -1
- package/dist/chunks/{split-button-BZHi7r1E.es.js → split-button-DhYWuU3x.es.js} +2 -2
- package/dist/chunks/{split-button-BZHi7r1E.es.js.map → split-button-DhYWuU3x.es.js.map} +1 -1
- package/dist/chunks/{split-button-hRYYvfbx.cjs.js → split-button-DrujRAqS.cjs.js} +2 -2
- package/dist/chunks/{split-button-hRYYvfbx.cjs.js.map → split-button-DrujRAqS.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-BLyAAnK-.es.js → tooltip-BOK0Uejw.es.js} +2 -2
- package/dist/chunks/{tooltip-BLyAAnK-.es.js.map → tooltip-BOK0Uejw.es.js.map} +1 -1
- package/dist/chunks/{tooltip-tZKuAv4E.cjs.js → tooltip-DjUjwciC.cjs.js} +2 -2
- package/dist/chunks/{tooltip-tZKuAv4E.cjs.js.map → tooltip-DjUjwciC.cjs.js.map} +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +9 -9
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/components.d.ts +6 -0
- package/dist/data-table.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +9 -9
- package/package.json +5 -5
- package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js +0 -2
- package/dist/chunks/Dialog-B4OIDU7t.cjs.js +0 -2
- package/dist/chunks/OverlayArrow-BD-oGsXg.es.js +0 -452
- package/dist/chunks/OverlayArrow-BD-oGsXg.es.js.map +0 -1
- package/dist/chunks/OverlayArrow-aq8OInch.cjs.js +0 -2
- package/dist/chunks/OverlayArrow-aq8OInch.cjs.js.map +0 -1
- package/dist/chunks/combobox-BYyNTj5m.cjs.js +0 -2
- package/dist/chunks/data-table-D6qEg2qp.cjs.js +0 -2
- package/dist/chunks/select-CxIiux8H.cjs.js +0 -2
- package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js +0 -2
- package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js.map +0 -1
- package/dist/chunks/useResizeObserver-FIPBIG5S.es.js +0 -32
- package/dist/chunks/useResizeObserver-FIPBIG5S.es.js.map +0 -1
|
@@ -1,152 +1,154 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { $ as
|
|
4
|
-
import { $ as
|
|
5
|
-
import { m as I, w as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { d as
|
|
10
|
-
import { $ as
|
|
11
|
-
import { $ as
|
|
12
|
-
import {
|
|
13
|
-
import { c as
|
|
14
|
-
import
|
|
15
|
-
import { $ as
|
|
16
|
-
import { d as
|
|
17
|
-
import { a as
|
|
18
|
-
import { $ as
|
|
19
|
-
import { $ as
|
|
20
|
-
import { $ as
|
|
21
|
-
import { b as
|
|
22
|
-
import { $ as
|
|
23
|
-
import { $ as
|
|
24
|
-
import { $ as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { a as
|
|
27
|
-
import { e as
|
|
28
|
-
import { m as
|
|
29
|
-
import { $ as
|
|
30
|
-
import { $ as
|
|
31
|
-
import { $ as
|
|
32
|
-
import { $ as
|
|
33
|
-
import { B as
|
|
34
|
-
import { defineSlotRecipe as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
|
|
1
|
+
import { jsx as D, jsxs as ie, Fragment as yl } from "react/jsx-runtime";
|
|
2
|
+
import k, { useRef as M, useMemo as N, useCallback as V, useEffect as se, useState as Z, forwardRef as X, createContext as de, useContext as R, Fragment as $l } from "react";
|
|
3
|
+
import { $ as ct } from "./Button-C-yUWwZg.es.js";
|
|
4
|
+
import { $ as ft } from "./RSPContexts-B4yvXuBR.es.js";
|
|
5
|
+
import { m as I, w as oe, x as ne, y as ze, z as xl, l as wl, $ as pt, a as ht, c as Dl, b as Cl, e as We, d as mt, g as De, f as Sl, A as kl, h as Q, u as gt, B as El, C as tt, i as zl } from "./Collection-DFZhstai.es.js";
|
|
6
|
+
import { $ as Rl, a as re, d as Ae, g as lt, f as Al } from "./utils-BkdW_cdL.es.js";
|
|
7
|
+
import { $ as ge, a as Bl, b as Pl, c as Kl, d as No, e as To } from "./DragAndDrop-ChYb3tCX.es.js";
|
|
8
|
+
import { $ as Ml } from "./intlStrings-Cd44R5hT.es.js";
|
|
9
|
+
import { d as xe, a as Be, $ as H, e as Nl, c as nt } from "./mergeProps-B_9syxhT.es.js";
|
|
10
|
+
import { $ as J } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
11
|
+
import { $ as ce } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
12
|
+
import { a as Tl } from "./OverlayArrow-ERS8ZqL3.es.js";
|
|
13
|
+
import { c as fe, $ as pe, a as He, d as Fl } from "./scrollIntoView-BYF_8_6g.es.js";
|
|
14
|
+
import Il from "react-dom";
|
|
15
|
+
import { $ as Ce } from "./useHover-cJOf02TT.es.js";
|
|
16
|
+
import { d as ot } from "./platform-Z5fvtFmM.es.js";
|
|
17
|
+
import { a as Wl, b as Hl, $ as bt } from "./usePress-BquTSwUd.es.js";
|
|
18
|
+
import { $ as Vl, c as jl } from "./useFocusable-BghVNiQU.es.js";
|
|
19
|
+
import { $ as Ol, f as Ll } from "./useFocusVisible-C5ivHvqm.es.js";
|
|
20
|
+
import { $ as q } from "./focusSafely-Di2ArC9L.es.js";
|
|
21
|
+
import { b as it, a as Ul } from "./FocusScope-C1Aw7j9H.es.js";
|
|
22
|
+
import { $ as be } from "./context-Pt-0ojuK.es.js";
|
|
23
|
+
import { $ as ve } from "./useLocalizedStringFormatter-CvzOUusg.es.js";
|
|
24
|
+
import { $ as me } from "./useFocusRing-D8cwV0EM.es.js";
|
|
25
|
+
import { $ as Yl } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
26
|
+
import { a as Pe, $ as rt } from "./VisuallyHidden-C38kRNm0.es.js";
|
|
27
|
+
import { e as Xl } from "./openLink-Ctl0AdAy.es.js";
|
|
28
|
+
import { m as Re } from "./utils-Gg3iiYhl.es.js";
|
|
29
|
+
import { $ as Gl, a as ql, b as Zl, c as Ql } from "./useHighlightSelectionDescription-DAR8wV79.es.js";
|
|
30
|
+
import { $ as Jl } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
31
|
+
import { $ as vt } from "./useCollator-BvjDbml1.es.js";
|
|
32
|
+
import { $ as _l } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
33
|
+
import { B as we } from "./box-C8731OYq.es.js";
|
|
34
|
+
import { defineSlotRecipe as en, createSlotRecipeContext as tn, mergeRefs as ln } from "@chakra-ui/react";
|
|
35
|
+
import { I as nn } from "./icon-button-D2qU4Eun.es.js";
|
|
36
|
+
import { b as at } from "./tooltip-BOK0Uejw.es.js";
|
|
37
|
+
import { C as yt } from "./checkbox-B2yJgtOJ.es.js";
|
|
38
|
+
import { KeyboardArrowDown as on, KeyboardArrowRight as rn, PushPin as an, ArrowDownward as un } from "@commercetools/nimbus-icons";
|
|
39
|
+
import { c as sn } from "./create-recipe-context-i2odau3L.es.js";
|
|
40
|
+
import { D as dn } from "./divider-CpctZ_-U.es.js";
|
|
41
|
+
import { F as cn } from "./flex-B81RbgfK.es.js";
|
|
42
|
+
function fn(t) {
|
|
41
43
|
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = M({
|
|
42
44
|
didMove: !1,
|
|
43
45
|
lastPosition: null,
|
|
44
46
|
id: null
|
|
45
|
-
}), { addGlobalListener:
|
|
47
|
+
}), { addGlobalListener: i, removeGlobalListener: r } = Yl(), u = xe((d, s, p, f) => {
|
|
46
48
|
p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
|
|
47
49
|
type: "movestart",
|
|
48
|
-
pointerType:
|
|
49
|
-
shiftKey:
|
|
50
|
-
metaKey:
|
|
51
|
-
ctrlKey:
|
|
52
|
-
altKey:
|
|
50
|
+
pointerType: s,
|
|
51
|
+
shiftKey: d.shiftKey,
|
|
52
|
+
metaKey: d.metaKey,
|
|
53
|
+
ctrlKey: d.ctrlKey,
|
|
54
|
+
altKey: d.altKey
|
|
53
55
|
})), l?.({
|
|
54
56
|
type: "move",
|
|
55
|
-
pointerType:
|
|
57
|
+
pointerType: s,
|
|
56
58
|
deltaX: p,
|
|
57
59
|
deltaY: f,
|
|
58
|
-
shiftKey:
|
|
59
|
-
metaKey:
|
|
60
|
-
ctrlKey:
|
|
61
|
-
altKey:
|
|
60
|
+
shiftKey: d.shiftKey,
|
|
61
|
+
metaKey: d.metaKey,
|
|
62
|
+
ctrlKey: d.ctrlKey,
|
|
63
|
+
altKey: d.altKey
|
|
62
64
|
}));
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
+
}), c = xe((d, s) => {
|
|
66
|
+
Wl(), o.current.didMove && n?.({
|
|
65
67
|
type: "moveend",
|
|
66
|
-
pointerType:
|
|
67
|
-
shiftKey:
|
|
68
|
-
metaKey:
|
|
69
|
-
ctrlKey:
|
|
70
|
-
altKey:
|
|
68
|
+
pointerType: s,
|
|
69
|
+
shiftKey: d.shiftKey,
|
|
70
|
+
metaKey: d.metaKey,
|
|
71
|
+
ctrlKey: d.ctrlKey,
|
|
72
|
+
altKey: d.altKey
|
|
71
73
|
});
|
|
72
74
|
});
|
|
73
75
|
return {
|
|
74
76
|
moveProps: N(() => {
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
+
let d = {}, s = () => {
|
|
78
|
+
Hl(), o.current.didMove = !1;
|
|
77
79
|
};
|
|
78
80
|
if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
|
|
79
|
-
let f = (
|
|
80
|
-
if (
|
|
81
|
-
var x,
|
|
82
|
-
u(
|
|
83
|
-
pageX:
|
|
84
|
-
pageY:
|
|
81
|
+
let f = (v) => {
|
|
82
|
+
if (v.button === 0) {
|
|
83
|
+
var x, m, $, b;
|
|
84
|
+
u(v, "mouse", v.pageX - (($ = (x = o.current.lastPosition) === null || x === void 0 ? void 0 : x.pageX) !== null && $ !== void 0 ? $ : 0), v.pageY - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
|
|
85
|
+
pageX: v.pageX,
|
|
86
|
+
pageY: v.pageY
|
|
85
87
|
};
|
|
86
88
|
}
|
|
87
|
-
}, h = (
|
|
88
|
-
|
|
89
|
+
}, h = (v) => {
|
|
90
|
+
v.button === 0 && (c(v, "mouse"), r(window, "mousemove", f, !1), r(window, "mouseup", h, !1));
|
|
89
91
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
pageX:
|
|
93
|
-
pageY:
|
|
94
|
-
},
|
|
92
|
+
d.onMouseDown = (v) => {
|
|
93
|
+
v.button === 0 && (s(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
94
|
+
pageX: v.pageX,
|
|
95
|
+
pageY: v.pageY
|
|
96
|
+
}, i(window, "mousemove", f, !1), i(window, "mouseup", h, !1));
|
|
95
97
|
};
|
|
96
|
-
let
|
|
98
|
+
let g = (v) => {
|
|
97
99
|
let x = [
|
|
98
|
-
...
|
|
99
|
-
].findIndex(({ identifier:
|
|
100
|
+
...v.changedTouches
|
|
101
|
+
].findIndex(({ identifier: C }) => C === o.current.id);
|
|
100
102
|
if (x >= 0) {
|
|
101
|
-
var
|
|
102
|
-
let { pageX:
|
|
103
|
-
var
|
|
104
|
-
u(
|
|
105
|
-
pageX:
|
|
106
|
-
pageY:
|
|
103
|
+
var m, $;
|
|
104
|
+
let { pageX: C, pageY: B } = v.changedTouches[x];
|
|
105
|
+
var b, w;
|
|
106
|
+
u(v, "touch", C - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageX) !== null && b !== void 0 ? b : 0), B - ((w = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && w !== void 0 ? w : 0)), o.current.lastPosition = {
|
|
107
|
+
pageX: C,
|
|
108
|
+
pageY: B
|
|
107
109
|
};
|
|
108
110
|
}
|
|
109
|
-
},
|
|
111
|
+
}, y = (v) => {
|
|
110
112
|
[
|
|
111
|
-
...
|
|
112
|
-
].findIndex(({ identifier:
|
|
113
|
+
...v.changedTouches
|
|
114
|
+
].findIndex(({ identifier: m }) => m === o.current.id) >= 0 && (c(v, "touch"), o.current.id = null, r(window, "touchmove", g), r(window, "touchend", y), r(window, "touchcancel", y));
|
|
113
115
|
};
|
|
114
|
-
|
|
115
|
-
if (
|
|
116
|
-
let { pageX: x, pageY:
|
|
117
|
-
|
|
116
|
+
d.onTouchStart = (v) => {
|
|
117
|
+
if (v.changedTouches.length === 0 || o.current.id != null) return;
|
|
118
|
+
let { pageX: x, pageY: m, identifier: $ } = v.changedTouches[0];
|
|
119
|
+
s(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
118
120
|
pageX: x,
|
|
119
|
-
pageY:
|
|
120
|
-
}, o.current.id = $,
|
|
121
|
+
pageY: m
|
|
122
|
+
}, o.current.id = $, i(window, "touchmove", g, !1), i(window, "touchend", y, !1), i(window, "touchcancel", y, !1);
|
|
121
123
|
};
|
|
122
124
|
} else {
|
|
123
|
-
let f = (
|
|
124
|
-
if (
|
|
125
|
-
var
|
|
126
|
-
let $ =
|
|
127
|
-
var x,
|
|
128
|
-
u(
|
|
129
|
-
pageX:
|
|
130
|
-
pageY:
|
|
125
|
+
let f = (g) => {
|
|
126
|
+
if (g.pointerId === o.current.id) {
|
|
127
|
+
var y, v;
|
|
128
|
+
let $ = g.pointerType || "mouse";
|
|
129
|
+
var x, m;
|
|
130
|
+
u(g, $, g.pageX - ((x = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && x !== void 0 ? x : 0), g.pageY - ((m = (v = o.current.lastPosition) === null || v === void 0 ? void 0 : v.pageY) !== null && m !== void 0 ? m : 0)), o.current.lastPosition = {
|
|
131
|
+
pageX: g.pageX,
|
|
132
|
+
pageY: g.pageY
|
|
131
133
|
};
|
|
132
134
|
}
|
|
133
|
-
}, h = (
|
|
134
|
-
if (
|
|
135
|
-
let
|
|
136
|
-
|
|
135
|
+
}, h = (g) => {
|
|
136
|
+
if (g.pointerId === o.current.id) {
|
|
137
|
+
let y = g.pointerType || "mouse";
|
|
138
|
+
c(g, y), o.current.id = null, r(window, "pointermove", f, !1), r(window, "pointerup", h, !1), r(window, "pointercancel", h, !1);
|
|
137
139
|
}
|
|
138
140
|
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
pageX:
|
|
142
|
-
pageY:
|
|
143
|
-
}, o.current.id =
|
|
141
|
+
d.onPointerDown = (g) => {
|
|
142
|
+
g.button === 0 && o.current.id == null && (s(), g.stopPropagation(), g.preventDefault(), o.current.lastPosition = {
|
|
143
|
+
pageX: g.pageX,
|
|
144
|
+
pageY: g.pageY
|
|
145
|
+
}, o.current.id = g.pointerId, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1));
|
|
144
146
|
};
|
|
145
147
|
}
|
|
146
|
-
let p = (f, h,
|
|
147
|
-
|
|
148
|
+
let p = (f, h, g) => {
|
|
149
|
+
s(), u(f, "keyboard", h, g), c(f, "keyboard");
|
|
148
150
|
};
|
|
149
|
-
return
|
|
151
|
+
return d.onKeyDown = (f) => {
|
|
150
152
|
switch (f.key) {
|
|
151
153
|
case "Left":
|
|
152
154
|
case "ArrowLeft":
|
|
@@ -165,17 +167,17 @@ function tn(t) {
|
|
|
165
167
|
f.preventDefault(), f.stopPropagation(), p(f, 0, 1);
|
|
166
168
|
break;
|
|
167
169
|
}
|
|
168
|
-
},
|
|
170
|
+
}, d;
|
|
169
171
|
}, [
|
|
170
172
|
o,
|
|
171
|
-
r,
|
|
172
173
|
i,
|
|
174
|
+
r,
|
|
173
175
|
u,
|
|
174
|
-
|
|
176
|
+
c
|
|
175
177
|
])
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
|
-
class
|
|
180
|
+
class $t {
|
|
179
181
|
isCell(e) {
|
|
180
182
|
return e.type === "cell";
|
|
181
183
|
}
|
|
@@ -212,11 +214,11 @@ class ct {
|
|
|
212
214
|
if (!n) return null;
|
|
213
215
|
let o = 0;
|
|
214
216
|
for (let u of I(n, this.collection)) {
|
|
215
|
-
var r;
|
|
216
|
-
if (u.colSpan && u.colSpan + o > l) return (r = u.key) !== null && r !== void 0 ? r : null;
|
|
217
|
-
u.colSpan && (o = o + u.colSpan - 1);
|
|
218
217
|
var i;
|
|
219
|
-
if (o
|
|
218
|
+
if (u.colSpan && u.colSpan + o > l) return (i = u.key) !== null && i !== void 0 ? i : null;
|
|
219
|
+
u.colSpan && (o = o + u.colSpan - 1);
|
|
220
|
+
var r;
|
|
221
|
+
if (o === l) return (r = u.key) !== null && r !== void 0 ? r : null;
|
|
220
222
|
o++;
|
|
221
223
|
}
|
|
222
224
|
return null;
|
|
@@ -226,10 +228,10 @@ class ct {
|
|
|
226
228
|
if (!n) return null;
|
|
227
229
|
var o;
|
|
228
230
|
if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
|
|
229
|
-
if (l = this.findNextKey(l, (
|
|
231
|
+
if (l = this.findNextKey(l, (i) => i.type === "item"), l != null) {
|
|
230
232
|
if (this.isCell(n)) {
|
|
231
|
-
let
|
|
232
|
-
return this.getKeyForItemInRowByIndex(l,
|
|
233
|
+
let i = n.colIndex ? n.colIndex : n.index;
|
|
234
|
+
return this.getKeyForItemInRowByIndex(l, i);
|
|
233
235
|
}
|
|
234
236
|
if (this.focusMode === "row") return l;
|
|
235
237
|
}
|
|
@@ -240,10 +242,10 @@ class ct {
|
|
|
240
242
|
if (!n) return null;
|
|
241
243
|
var o;
|
|
242
244
|
if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
|
|
243
|
-
if (l = this.findPreviousKey(l, (
|
|
245
|
+
if (l = this.findPreviousKey(l, (i) => i.type === "item"), l != null) {
|
|
244
246
|
if (this.isCell(n)) {
|
|
245
|
-
let
|
|
246
|
-
return this.getKeyForItemInRowByIndex(l,
|
|
247
|
+
let i = n.colIndex ? n.colIndex : n.index;
|
|
248
|
+
return this.getKeyForItemInRowByIndex(l, i);
|
|
247
249
|
}
|
|
248
250
|
if (this.focusMode === "row") return l;
|
|
249
251
|
}
|
|
@@ -254,22 +256,22 @@ class ct {
|
|
|
254
256
|
if (!l) return null;
|
|
255
257
|
if (this.isRow(l)) {
|
|
256
258
|
var n, o;
|
|
257
|
-
let
|
|
258
|
-
var
|
|
259
|
-
return (
|
|
259
|
+
let d = I(l, this.collection);
|
|
260
|
+
var i;
|
|
261
|
+
return (i = this.direction === "rtl" ? (n = oe(d)) === null || n === void 0 ? void 0 : n.key : (o = ne(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
|
|
260
262
|
}
|
|
261
263
|
if (this.isCell(l) && l.parentKey != null) {
|
|
262
|
-
let
|
|
263
|
-
if (!
|
|
264
|
-
let
|
|
265
|
-
var
|
|
266
|
-
let p = (
|
|
264
|
+
let d = this.collection.getItem(l.parentKey);
|
|
265
|
+
if (!d) return null;
|
|
266
|
+
let s = I(d, this.collection);
|
|
267
|
+
var r;
|
|
268
|
+
let p = (r = this.direction === "rtl" ? ze(s, l.index - 1) : ze(s, l.index + 1)) !== null && r !== void 0 ? r : null;
|
|
267
269
|
var u;
|
|
268
270
|
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
269
|
-
var
|
|
270
|
-
if (this.focusMode === "row") return (
|
|
271
|
-
var
|
|
272
|
-
return (
|
|
271
|
+
var c;
|
|
272
|
+
if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
|
|
273
|
+
var a;
|
|
274
|
+
return (a = this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) !== null && a !== void 0 ? a : null;
|
|
273
275
|
}
|
|
274
276
|
return null;
|
|
275
277
|
}
|
|
@@ -278,22 +280,22 @@ class ct {
|
|
|
278
280
|
if (!l) return null;
|
|
279
281
|
if (this.isRow(l)) {
|
|
280
282
|
var n, o;
|
|
281
|
-
let
|
|
282
|
-
var
|
|
283
|
-
return (
|
|
283
|
+
let d = I(l, this.collection);
|
|
284
|
+
var i;
|
|
285
|
+
return (i = this.direction === "rtl" ? (n = ne(d)) === null || n === void 0 ? void 0 : n.key : (o = oe(d)) === null || o === void 0 ? void 0 : o.key) !== null && i !== void 0 ? i : null;
|
|
284
286
|
}
|
|
285
287
|
if (this.isCell(l) && l.parentKey != null) {
|
|
286
|
-
let
|
|
287
|
-
if (!
|
|
288
|
-
let
|
|
289
|
-
var
|
|
290
|
-
let p = (
|
|
288
|
+
let d = this.collection.getItem(l.parentKey);
|
|
289
|
+
if (!d) return null;
|
|
290
|
+
let s = I(d, this.collection);
|
|
291
|
+
var r;
|
|
292
|
+
let p = (r = this.direction === "rtl" ? ze(s, l.index + 1) : ze(s, l.index - 1)) !== null && r !== void 0 ? r : null;
|
|
291
293
|
var u;
|
|
292
294
|
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
293
|
-
var
|
|
294
|
-
if (this.focusMode === "row") return (
|
|
295
|
-
var
|
|
296
|
-
return (
|
|
295
|
+
var c;
|
|
296
|
+
if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
|
|
297
|
+
var a;
|
|
298
|
+
return (a = this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) !== null && a !== void 0 ? a : null;
|
|
297
299
|
}
|
|
298
300
|
return null;
|
|
299
301
|
}
|
|
@@ -302,19 +304,19 @@ class ct {
|
|
|
302
304
|
if (n != null) {
|
|
303
305
|
if (o = this.collection.getItem(n), !o) return null;
|
|
304
306
|
if (this.isCell(o) && !l && o.parentKey != null) {
|
|
305
|
-
var r;
|
|
306
|
-
let d = this.collection.getItem(o.parentKey);
|
|
307
|
-
if (!d) return null;
|
|
308
307
|
var i;
|
|
309
|
-
|
|
308
|
+
let a = this.collection.getItem(o.parentKey);
|
|
309
|
+
if (!a) return null;
|
|
310
|
+
var r;
|
|
311
|
+
return (r = (i = ne(I(a, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
|
|
310
312
|
}
|
|
311
313
|
}
|
|
312
|
-
if (n = this.findNextKey(void 0, (
|
|
314
|
+
if (n = this.findNextKey(void 0, (a) => a.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
313
315
|
var u;
|
|
314
|
-
let
|
|
315
|
-
if (!
|
|
316
|
-
var
|
|
317
|
-
n = (
|
|
316
|
+
let a = this.collection.getItem(n);
|
|
317
|
+
if (!a) return null;
|
|
318
|
+
var c;
|
|
319
|
+
n = (c = (u = ne(I(a, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
318
320
|
}
|
|
319
321
|
return n;
|
|
320
322
|
}
|
|
@@ -323,21 +325,21 @@ class ct {
|
|
|
323
325
|
if (n != null) {
|
|
324
326
|
if (o = this.collection.getItem(n), !o) return null;
|
|
325
327
|
if (this.isCell(o) && !l && o.parentKey != null) {
|
|
326
|
-
var r;
|
|
327
|
-
let d = this.collection.getItem(o.parentKey);
|
|
328
|
-
if (!d) return null;
|
|
329
|
-
let c = I(d, this.collection);
|
|
330
328
|
var i;
|
|
331
|
-
|
|
329
|
+
let a = this.collection.getItem(o.parentKey);
|
|
330
|
+
if (!a) return null;
|
|
331
|
+
let d = I(a, this.collection);
|
|
332
|
+
var r;
|
|
333
|
+
return (r = (i = oe(d)) === null || i === void 0 ? void 0 : i.key) !== null && r !== void 0 ? r : null;
|
|
332
334
|
}
|
|
333
335
|
}
|
|
334
|
-
if (n = this.findPreviousKey(void 0, (
|
|
336
|
+
if (n = this.findPreviousKey(void 0, (a) => a.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
335
337
|
var u;
|
|
336
|
-
let
|
|
337
|
-
if (!
|
|
338
|
-
let
|
|
339
|
-
var
|
|
340
|
-
n = (
|
|
338
|
+
let a = this.collection.getItem(n);
|
|
339
|
+
if (!a) return null;
|
|
340
|
+
let d = I(a, this.collection);
|
|
341
|
+
var c;
|
|
342
|
+
n = (c = (u = oe(d)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
341
343
|
}
|
|
342
344
|
return n;
|
|
343
345
|
}
|
|
@@ -346,8 +348,8 @@ class ct {
|
|
|
346
348
|
if (!n) return null;
|
|
347
349
|
let o = Math.max(0, n.y + n.height - this.layoutDelegate.getVisibleRect().height);
|
|
348
350
|
for (; n && n.y > o && l != null; ) {
|
|
349
|
-
var
|
|
350
|
-
if (l = (
|
|
351
|
+
var i;
|
|
352
|
+
if (l = (i = this.getKeyAbove(l)) !== null && i !== void 0 ? i : null, l == null) break;
|
|
351
353
|
n = this.layoutDelegate.getItemRect(l);
|
|
352
354
|
}
|
|
353
355
|
return l;
|
|
@@ -355,11 +357,11 @@ class ct {
|
|
|
355
357
|
getKeyPageBelow(e) {
|
|
356
358
|
let l = e, n = this.layoutDelegate.getItemRect(l);
|
|
357
359
|
if (!n) return null;
|
|
358
|
-
let o = this.layoutDelegate.getVisibleRect().height,
|
|
359
|
-
for (; n && n.y + n.height <
|
|
360
|
-
let
|
|
361
|
-
if (
|
|
362
|
-
n = this.layoutDelegate.getItemRect(
|
|
360
|
+
let o = this.layoutDelegate.getVisibleRect().height, i = Math.min(this.layoutDelegate.getContentSize().height, n.y + o);
|
|
361
|
+
for (; n && n.y + n.height < i; ) {
|
|
362
|
+
let r = this.getKeyBelow(l);
|
|
363
|
+
if (r == null) break;
|
|
364
|
+
n = this.layoutDelegate.getItemRect(r), l = r;
|
|
363
365
|
}
|
|
364
366
|
return l;
|
|
365
367
|
}
|
|
@@ -368,33 +370,33 @@ class ct {
|
|
|
368
370
|
if (!this.collator) return null;
|
|
369
371
|
let o = this.collection;
|
|
370
372
|
if (n = l ?? this.getFirstKey(), n == null) return null;
|
|
371
|
-
let
|
|
372
|
-
if (!
|
|
373
|
-
var
|
|
374
|
-
|
|
373
|
+
let i = o.getItem(n);
|
|
374
|
+
if (!i) return null;
|
|
375
|
+
var r;
|
|
376
|
+
i.type === "cell" && (n = (r = i.parentKey) !== null && r !== void 0 ? r : null);
|
|
375
377
|
let u = !1;
|
|
376
378
|
for (; n != null; ) {
|
|
377
|
-
let
|
|
378
|
-
if (!
|
|
379
|
-
if (
|
|
380
|
-
let
|
|
381
|
-
if (this.collator.compare(
|
|
382
|
-
var
|
|
383
|
-
return this.isRow(
|
|
379
|
+
let d = o.getItem(n);
|
|
380
|
+
if (!d) return null;
|
|
381
|
+
if (d.textValue) {
|
|
382
|
+
let s = d.textValue.slice(0, e.length);
|
|
383
|
+
if (this.collator.compare(s, e) === 0) {
|
|
384
|
+
var c, a;
|
|
385
|
+
return this.isRow(d) && this.focusMode === "cell" ? (a = (c = ne(I(d, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && a !== void 0 ? a : null : d.key;
|
|
384
386
|
}
|
|
385
387
|
}
|
|
386
|
-
n = this.findNextKey(n, (
|
|
388
|
+
n = this.findNextKey(n, (s) => s.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
|
|
387
389
|
}
|
|
388
390
|
return null;
|
|
389
391
|
}
|
|
390
392
|
constructor(e) {
|
|
391
393
|
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw new Error("Either a layout or a ref must be specified.");
|
|
392
|
-
this.layoutDelegate = e.layoutDelegate || (e.layout ? new
|
|
394
|
+
this.layoutDelegate = e.layoutDelegate || (e.layout ? new pn(e.layout) : new xl(e.ref));
|
|
393
395
|
var l;
|
|
394
396
|
this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
|
|
395
397
|
}
|
|
396
398
|
}
|
|
397
|
-
class
|
|
399
|
+
class pn {
|
|
398
400
|
getContentSize() {
|
|
399
401
|
return this.layout.getContentSize();
|
|
400
402
|
}
|
|
@@ -409,267 +411,267 @@ class ln {
|
|
|
409
411
|
this.layout = e;
|
|
410
412
|
}
|
|
411
413
|
}
|
|
412
|
-
const
|
|
413
|
-
function
|
|
414
|
-
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate:
|
|
414
|
+
const Ve = /* @__PURE__ */ new WeakMap();
|
|
415
|
+
function hn(t, e, l) {
|
|
416
|
+
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: i, focusMode: r, scrollRef: u, getRowText: c, onRowAction: a, onCellAction: d, escapeKeyBehavior: s = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
|
|
415
417
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
416
|
-
let h =
|
|
418
|
+
let h = vt({
|
|
417
419
|
usage: "search",
|
|
418
420
|
sensitivity: "base"
|
|
419
|
-
}), { direction:
|
|
421
|
+
}), { direction: g } = be(), y = e.selectionManager.disabledBehavior, v = N(() => i || new $t({
|
|
420
422
|
collection: e.collection,
|
|
421
423
|
disabledKeys: e.disabledKeys,
|
|
422
|
-
disabledBehavior:
|
|
424
|
+
disabledBehavior: y,
|
|
423
425
|
ref: l,
|
|
424
|
-
direction:
|
|
426
|
+
direction: g,
|
|
425
427
|
collator: h,
|
|
426
|
-
focusMode:
|
|
428
|
+
focusMode: r
|
|
427
429
|
}), [
|
|
428
|
-
|
|
430
|
+
i,
|
|
429
431
|
e.collection,
|
|
430
432
|
e.disabledKeys,
|
|
431
|
-
|
|
433
|
+
y,
|
|
432
434
|
l,
|
|
433
|
-
|
|
435
|
+
g,
|
|
434
436
|
h,
|
|
435
|
-
|
|
436
|
-
]), { collectionProps: x } =
|
|
437
|
+
r
|
|
438
|
+
]), { collectionProps: x } = wl({
|
|
437
439
|
ref: l,
|
|
438
440
|
selectionManager: f,
|
|
439
|
-
keyboardDelegate:
|
|
441
|
+
keyboardDelegate: v,
|
|
440
442
|
isVirtualized: n,
|
|
441
443
|
scrollRef: u,
|
|
442
444
|
disallowTypeAhead: o,
|
|
443
|
-
escapeKeyBehavior:
|
|
444
|
-
}),
|
|
445
|
-
|
|
446
|
-
keyboardDelegate:
|
|
445
|
+
escapeKeyBehavior: s
|
|
446
|
+
}), m = Be(t.id);
|
|
447
|
+
Ve.set(e, {
|
|
448
|
+
keyboardDelegate: v,
|
|
447
449
|
actions: {
|
|
448
|
-
onRowAction:
|
|
449
|
-
onCellAction:
|
|
450
|
+
onRowAction: a,
|
|
451
|
+
onCellAction: d
|
|
450
452
|
},
|
|
451
453
|
shouldSelectOnPressUp: p
|
|
452
454
|
});
|
|
453
|
-
let $ =
|
|
455
|
+
let $ = Gl({
|
|
454
456
|
selectionManager: f,
|
|
455
|
-
hasItemActions: !!(
|
|
456
|
-
}),
|
|
457
|
+
hasItemActions: !!(a || d)
|
|
458
|
+
}), b = J(t, {
|
|
457
459
|
labelable: !0
|
|
458
|
-
}),
|
|
460
|
+
}), w = V((E) => {
|
|
459
461
|
if (f.isFocused) {
|
|
460
|
-
|
|
462
|
+
E.currentTarget.contains(E.target) || f.setFocused(!1);
|
|
461
463
|
return;
|
|
462
464
|
}
|
|
463
|
-
|
|
465
|
+
E.currentTarget.contains(E.target) && f.setFocused(!0);
|
|
464
466
|
}, [
|
|
465
467
|
f
|
|
466
|
-
]),
|
|
468
|
+
]), C = N(() => ({
|
|
467
469
|
onBlur: x.onBlur,
|
|
468
|
-
onFocus:
|
|
470
|
+
onFocus: w
|
|
469
471
|
}), [
|
|
470
|
-
|
|
472
|
+
w,
|
|
471
473
|
x.onBlur
|
|
472
|
-
]),
|
|
474
|
+
]), B = ql(l, {
|
|
473
475
|
isDisabled: e.collection.size !== 0
|
|
474
|
-
}),
|
|
475
|
-
|
|
476
|
+
}), P = H(
|
|
477
|
+
b,
|
|
476
478
|
{
|
|
477
479
|
role: "grid",
|
|
478
|
-
id:
|
|
480
|
+
id: m,
|
|
479
481
|
"aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
|
|
480
482
|
},
|
|
481
|
-
e.isKeyboardNavigationDisabled ?
|
|
483
|
+
e.isKeyboardNavigationDisabled ? C : x,
|
|
482
484
|
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
483
485
|
e.collection.size === 0 && {
|
|
484
|
-
tabIndex:
|
|
486
|
+
tabIndex: B ? -1 : 0
|
|
485
487
|
} || void 0,
|
|
486
488
|
$
|
|
487
489
|
);
|
|
488
|
-
return n && (
|
|
489
|
-
getRowText:
|
|
490
|
+
return n && (P["aria-rowcount"] = e.collection.size, P["aria-colcount"] = e.collection.columnCount), Zl({
|
|
491
|
+
getRowText: c
|
|
490
492
|
}, e), {
|
|
491
|
-
gridProps:
|
|
493
|
+
gridProps: P
|
|
492
494
|
};
|
|
493
495
|
}
|
|
494
|
-
function
|
|
496
|
+
function mn() {
|
|
495
497
|
return {
|
|
496
498
|
rowGroupProps: {
|
|
497
499
|
role: "rowgroup"
|
|
498
500
|
}
|
|
499
501
|
};
|
|
500
502
|
}
|
|
501
|
-
function
|
|
503
|
+
function gn(t, e, l) {
|
|
502
504
|
var n, o;
|
|
503
|
-
let { node:
|
|
504
|
-
var
|
|
505
|
-
return (
|
|
506
|
-
} :
|
|
505
|
+
let { node: i, isVirtualized: r, shouldSelectOnPressUp: u, onAction: c } = t, { actions: a, shouldSelectOnPressUp: d } = Ve.get(e), s = a.onRowAction ? () => {
|
|
506
|
+
var y;
|
|
507
|
+
return (y = a.onRowAction) === null || y === void 0 ? void 0 : y.call(a, i.key);
|
|
508
|
+
} : c, { itemProps: p, ...f } = pt({
|
|
507
509
|
selectionManager: e.selectionManager,
|
|
508
|
-
key:
|
|
510
|
+
key: i.key,
|
|
509
511
|
ref: l,
|
|
510
|
-
isVirtualized:
|
|
511
|
-
shouldSelectOnPressUp:
|
|
512
|
-
onAction:
|
|
512
|
+
isVirtualized: r,
|
|
513
|
+
shouldSelectOnPressUp: d || u,
|
|
514
|
+
onAction: s || !(i == null || (n = i.props) === null || n === void 0) && n.onAction ? Nl(i == null || (o = i.props) === null || o === void 0 ? void 0 : o.onAction, s) : void 0,
|
|
513
515
|
isDisabled: e.collection.size === 0
|
|
514
|
-
}), h = e.selectionManager.isSelected(
|
|
516
|
+
}), h = e.selectionManager.isSelected(i.key), g = {
|
|
515
517
|
role: "row",
|
|
516
518
|
"aria-selected": e.selectionManager.selectionMode !== "none" ? h : void 0,
|
|
517
519
|
"aria-disabled": f.isDisabled || void 0,
|
|
518
520
|
...p
|
|
519
521
|
};
|
|
520
|
-
return
|
|
521
|
-
rowProps:
|
|
522
|
+
return r && (g["aria-rowindex"] = i.index + 1), {
|
|
523
|
+
rowProps: g,
|
|
522
524
|
...f
|
|
523
525
|
};
|
|
524
526
|
}
|
|
525
|
-
function
|
|
526
|
-
let { node: n, isVirtualized: o, focusMode:
|
|
527
|
+
function xt(t, e, l) {
|
|
528
|
+
let { node: n, isVirtualized: o, focusMode: i = "child", shouldSelectOnPressUp: r, onAction: u } = t, { direction: c } = be(), { keyboardDelegate: a, actions: { onCellAction: d } } = Ve.get(e), s = M(null), p = () => {
|
|
527
529
|
if (l.current) {
|
|
528
|
-
let
|
|
529
|
-
if (
|
|
530
|
+
let m = it(l.current);
|
|
531
|
+
if (i === "child") {
|
|
530
532
|
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
531
|
-
let $ = e.selectionManager.childFocusStrategy === "last" ?
|
|
533
|
+
let $ = e.selectionManager.childFocusStrategy === "last" ? Me(m) : m.firstChild();
|
|
532
534
|
if ($) {
|
|
533
|
-
|
|
535
|
+
q($);
|
|
534
536
|
return;
|
|
535
537
|
}
|
|
536
538
|
}
|
|
537
|
-
(
|
|
539
|
+
(s.current != null && n.key !== s.current || !l.current.contains(document.activeElement)) && q(l.current);
|
|
538
540
|
}
|
|
539
|
-
}, { itemProps: f, isPressed: h } =
|
|
541
|
+
}, { itemProps: f, isPressed: h } = pt({
|
|
540
542
|
selectionManager: e.selectionManager,
|
|
541
543
|
key: n.key,
|
|
542
544
|
ref: l,
|
|
543
545
|
isVirtualized: o,
|
|
544
546
|
focus: p,
|
|
545
|
-
shouldSelectOnPressUp:
|
|
546
|
-
onAction:
|
|
547
|
+
shouldSelectOnPressUp: r,
|
|
548
|
+
onAction: d ? () => d(n.key) : u,
|
|
547
549
|
isDisabled: e.collection.size === 0
|
|
548
|
-
}),
|
|
549
|
-
if (!
|
|
550
|
-
let $ =
|
|
551
|
-
switch ($.currentNode = document.activeElement,
|
|
550
|
+
}), g = (m) => {
|
|
551
|
+
if (!m.currentTarget.contains(m.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
552
|
+
let $ = it(l.current);
|
|
553
|
+
switch ($.currentNode = document.activeElement, m.key) {
|
|
552
554
|
case "ArrowLeft": {
|
|
553
|
-
let
|
|
554
|
-
if (
|
|
555
|
-
|
|
556
|
-
containingElement:
|
|
555
|
+
let E = c === "rtl" ? $.nextNode() : $.previousNode();
|
|
556
|
+
if (i === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
|
|
557
|
+
q(E), fe(E, {
|
|
558
|
+
containingElement: pe(l.current)
|
|
557
559
|
});
|
|
558
560
|
else {
|
|
559
|
-
var
|
|
560
|
-
if (((
|
|
561
|
-
var
|
|
562
|
-
(
|
|
561
|
+
var b;
|
|
562
|
+
if (((b = a.getKeyLeftOf) === null || b === void 0 ? void 0 : b.call(a, n.key)) !== n.key) {
|
|
563
|
+
var w;
|
|
564
|
+
(w = l.current.parentElement) === null || w === void 0 || w.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
|
|
563
565
|
break;
|
|
564
566
|
}
|
|
565
|
-
|
|
566
|
-
containingElement:
|
|
567
|
-
})) : ($.currentNode = l.current,
|
|
568
|
-
containingElement:
|
|
567
|
+
i === "cell" && c === "rtl" ? (q(l.current), fe(l.current, {
|
|
568
|
+
containingElement: pe(l.current)
|
|
569
|
+
})) : ($.currentNode = l.current, E = c === "rtl" ? $.firstChild() : Me($), E && (q(E), fe(E, {
|
|
570
|
+
containingElement: pe(l.current)
|
|
569
571
|
})));
|
|
570
572
|
}
|
|
571
573
|
break;
|
|
572
574
|
}
|
|
573
575
|
case "ArrowRight": {
|
|
574
|
-
let
|
|
575
|
-
if (
|
|
576
|
-
|
|
577
|
-
containingElement:
|
|
576
|
+
let E = c === "rtl" ? $.previousNode() : $.nextNode();
|
|
577
|
+
if (i === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
|
|
578
|
+
q(E), fe(E, {
|
|
579
|
+
containingElement: pe(l.current)
|
|
578
580
|
});
|
|
579
581
|
else {
|
|
580
|
-
var
|
|
581
|
-
if (((
|
|
582
|
-
var
|
|
583
|
-
(
|
|
582
|
+
var C;
|
|
583
|
+
if (((C = a.getKeyRightOf) === null || C === void 0 ? void 0 : C.call(a, n.key)) !== n.key) {
|
|
584
|
+
var B;
|
|
585
|
+
(B = l.current.parentElement) === null || B === void 0 || B.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
|
|
584
586
|
break;
|
|
585
587
|
}
|
|
586
|
-
|
|
587
|
-
containingElement:
|
|
588
|
-
})) : ($.currentNode = l.current,
|
|
589
|
-
containingElement:
|
|
588
|
+
i === "cell" && c === "ltr" ? (q(l.current), fe(l.current, {
|
|
589
|
+
containingElement: pe(l.current)
|
|
590
|
+
})) : ($.currentNode = l.current, E = c === "rtl" ? Me($) : $.firstChild(), E && (q(E), fe(E, {
|
|
591
|
+
containingElement: pe(l.current)
|
|
590
592
|
})));
|
|
591
593
|
}
|
|
592
594
|
break;
|
|
593
595
|
}
|
|
594
596
|
case "ArrowUp":
|
|
595
597
|
case "ArrowDown":
|
|
596
|
-
if (!
|
|
597
|
-
var
|
|
598
|
-
|
|
598
|
+
if (!m.altKey && l.current.contains(m.target)) {
|
|
599
|
+
var P;
|
|
600
|
+
m.stopPropagation(), m.preventDefault(), (P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
|
|
599
601
|
}
|
|
600
602
|
break;
|
|
601
603
|
}
|
|
602
|
-
},
|
|
603
|
-
if (
|
|
604
|
-
|
|
604
|
+
}, y = (m) => {
|
|
605
|
+
if (s.current = n.key, m.target !== l.current) {
|
|
606
|
+
Ol() || e.selectionManager.setFocusedKey(n.key);
|
|
605
607
|
return;
|
|
606
608
|
}
|
|
607
609
|
requestAnimationFrame(() => {
|
|
608
|
-
|
|
610
|
+
i === "child" && document.activeElement === l.current && p();
|
|
609
611
|
});
|
|
610
|
-
},
|
|
612
|
+
}, v = H(f, {
|
|
611
613
|
role: "gridcell",
|
|
612
|
-
onKeyDownCapture:
|
|
614
|
+
onKeyDownCapture: g,
|
|
613
615
|
"aria-colspan": n.colSpan,
|
|
614
616
|
"aria-colindex": n.colIndex != null ? n.colIndex + 1 : void 0,
|
|
615
617
|
colSpan: o ? void 0 : n.colSpan,
|
|
616
|
-
onFocus:
|
|
618
|
+
onFocus: y
|
|
617
619
|
});
|
|
618
620
|
var x;
|
|
619
|
-
return o && (
|
|
620
|
-
let $ =
|
|
621
|
+
return o && (v["aria-colindex"] = ((x = n.colIndex) !== null && x !== void 0 ? x : n.index) + 1), r && v.tabIndex != null && v.onPointerDown == null && (v.onPointerDown = (m) => {
|
|
622
|
+
let $ = m.currentTarget, b = $.getAttribute("tabindex");
|
|
621
623
|
$.removeAttribute("tabindex"), requestAnimationFrame(() => {
|
|
622
|
-
|
|
624
|
+
b != null && $.setAttribute("tabindex", b);
|
|
623
625
|
});
|
|
624
626
|
}), {
|
|
625
|
-
gridCellProps:
|
|
627
|
+
gridCellProps: v,
|
|
626
628
|
isPressed: h
|
|
627
629
|
};
|
|
628
630
|
}
|
|
629
|
-
function
|
|
631
|
+
function Me(t) {
|
|
630
632
|
let e = null, l = null;
|
|
631
633
|
do
|
|
632
634
|
l = t.lastChild(), l && (e = l);
|
|
633
635
|
while (l);
|
|
634
636
|
return e;
|
|
635
637
|
}
|
|
636
|
-
function
|
|
638
|
+
function bn(t) {
|
|
637
639
|
return t && t.__esModule ? t.default : t;
|
|
638
640
|
}
|
|
639
|
-
function
|
|
640
|
-
let { key: l } = t, n = e.selectionManager, o =
|
|
641
|
-
const
|
|
641
|
+
function vn(t, e) {
|
|
642
|
+
let { key: l } = t, n = e.selectionManager, o = Be(), i = !e.selectionManager.canSelectItem(l), r = e.selectionManager.isSelected(l), u = () => n.toggleSelection(l);
|
|
643
|
+
const c = ve(bn(Ql), "@react-aria/grid");
|
|
642
644
|
return {
|
|
643
645
|
checkboxProps: {
|
|
644
646
|
id: o,
|
|
645
|
-
"aria-label":
|
|
646
|
-
isSelected:
|
|
647
|
-
isDisabled:
|
|
647
|
+
"aria-label": c.format("select"),
|
|
648
|
+
isSelected: r,
|
|
649
|
+
isDisabled: i,
|
|
648
650
|
onChange: u
|
|
649
651
|
}
|
|
650
652
|
};
|
|
651
653
|
}
|
|
652
|
-
const
|
|
653
|
-
function
|
|
654
|
+
const je = /* @__PURE__ */ new WeakMap();
|
|
655
|
+
function Ne(t) {
|
|
654
656
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
655
657
|
}
|
|
656
|
-
function
|
|
657
|
-
let l =
|
|
658
|
+
function wt(t, e) {
|
|
659
|
+
let l = je.get(t);
|
|
658
660
|
if (!l) throw new Error("Unknown grid");
|
|
659
|
-
return `${l}-${
|
|
661
|
+
return `${l}-${Ne(e)}`;
|
|
660
662
|
}
|
|
661
|
-
function
|
|
662
|
-
let n =
|
|
663
|
+
function Dt(t, e, l) {
|
|
664
|
+
let n = je.get(t);
|
|
663
665
|
if (!n) throw new Error("Unknown grid");
|
|
664
|
-
return `${n}-${
|
|
666
|
+
return `${n}-${Ne(e)}-${Ne(l)}`;
|
|
665
667
|
}
|
|
666
|
-
function
|
|
668
|
+
function Ct(t, e) {
|
|
667
669
|
return [
|
|
668
670
|
...t.collection.rowHeaderColumnKeys
|
|
669
|
-
].map((l) =>
|
|
671
|
+
].map((l) => Dt(t, e, l)).join(" ");
|
|
670
672
|
}
|
|
671
|
-
var
|
|
672
|
-
|
|
673
|
+
var St = {};
|
|
674
|
+
St = {
|
|
673
675
|
ascending: "تصاعدي",
|
|
674
676
|
ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
|
|
675
677
|
columnSize: (t) => `${t.value} بالبكسل`,
|
|
@@ -680,8 +682,8 @@ gt = {
|
|
|
680
682
|
selectAll: "تحديد الكل",
|
|
681
683
|
sortable: "عمود قابل للترتيب"
|
|
682
684
|
};
|
|
683
|
-
var
|
|
684
|
-
|
|
685
|
+
var kt = {};
|
|
686
|
+
kt = {
|
|
685
687
|
ascending: "възходящ",
|
|
686
688
|
ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
|
|
687
689
|
columnSize: (t) => `${t.value} пиксела`,
|
|
@@ -692,8 +694,8 @@ bt = {
|
|
|
692
694
|
selectAll: "Изберете всичко",
|
|
693
695
|
sortable: "сортираща колона"
|
|
694
696
|
};
|
|
695
|
-
var
|
|
696
|
-
|
|
697
|
+
var Et = {};
|
|
698
|
+
Et = {
|
|
697
699
|
ascending: "vzestupně",
|
|
698
700
|
ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
|
|
699
701
|
columnSize: (t) => `${t.value} pixelů`,
|
|
@@ -704,8 +706,8 @@ vt = {
|
|
|
704
706
|
selectAll: "Vybrat vše",
|
|
705
707
|
sortable: "sloupec s možností řazení"
|
|
706
708
|
};
|
|
707
|
-
var
|
|
708
|
-
|
|
709
|
+
var zt = {};
|
|
710
|
+
zt = {
|
|
709
711
|
ascending: "stigende",
|
|
710
712
|
ascendingSort: (t) => `sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,
|
|
711
713
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -716,8 +718,8 @@ yt = {
|
|
|
716
718
|
selectAll: "Vælg alle",
|
|
717
719
|
sortable: "sorterbar kolonne"
|
|
718
720
|
};
|
|
719
|
-
var
|
|
720
|
-
|
|
721
|
+
var Rt = {};
|
|
722
|
+
Rt = {
|
|
721
723
|
ascending: "aufsteigend",
|
|
722
724
|
ascendingSort: (t) => `sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,
|
|
723
725
|
columnSize: (t) => `${t.value} Pixel`,
|
|
@@ -728,8 +730,8 @@ $t = {
|
|
|
728
730
|
selectAll: "Alles auswählen",
|
|
729
731
|
sortable: "sortierbare Spalte"
|
|
730
732
|
};
|
|
731
|
-
var
|
|
732
|
-
|
|
733
|
+
var At = {};
|
|
734
|
+
At = {
|
|
733
735
|
ascending: "αύξουσα",
|
|
734
736
|
ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
|
|
735
737
|
columnSize: (t) => `${t.value} pixel`,
|
|
@@ -740,8 +742,8 @@ xt = {
|
|
|
740
742
|
selectAll: "Επιλογή όλων",
|
|
741
743
|
sortable: "Στήλη διαλογής"
|
|
742
744
|
};
|
|
743
|
-
var
|
|
744
|
-
|
|
745
|
+
var Bt = {};
|
|
746
|
+
Bt = {
|
|
745
747
|
select: "Select",
|
|
746
748
|
selectAll: "Select All",
|
|
747
749
|
sortable: "sortable column",
|
|
@@ -752,8 +754,8 @@ Dt = {
|
|
|
752
754
|
columnSize: (t) => `${t.value} pixels`,
|
|
753
755
|
resizerDescription: "Press Enter to start resizing"
|
|
754
756
|
};
|
|
755
|
-
var
|
|
756
|
-
|
|
757
|
+
var Pt = {};
|
|
758
|
+
Pt = {
|
|
757
759
|
ascending: "ascendente",
|
|
758
760
|
ascendingSort: (t) => `ordenado por columna ${t.columnName} en sentido ascendente`,
|
|
759
761
|
columnSize: (t) => `${t.value} píxeles`,
|
|
@@ -764,8 +766,8 @@ Ct = {
|
|
|
764
766
|
selectAll: "Seleccionar todos",
|
|
765
767
|
sortable: "columna ordenable"
|
|
766
768
|
};
|
|
767
|
-
var
|
|
768
|
-
|
|
769
|
+
var Kt = {};
|
|
770
|
+
Kt = {
|
|
769
771
|
ascending: "tõusev järjestus",
|
|
770
772
|
ascendingSort: (t) => `sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,
|
|
771
773
|
columnSize: (t) => `${t.value} pikslit`,
|
|
@@ -776,8 +778,8 @@ wt = {
|
|
|
776
778
|
selectAll: "Vali kõik",
|
|
777
779
|
sortable: "sorditav veerg"
|
|
778
780
|
};
|
|
779
|
-
var
|
|
780
|
-
|
|
781
|
+
var Mt = {};
|
|
782
|
+
Mt = {
|
|
781
783
|
ascending: "nouseva",
|
|
782
784
|
ascendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,
|
|
783
785
|
columnSize: (t) => `${t.value} pikseliä`,
|
|
@@ -788,8 +790,8 @@ kt = {
|
|
|
788
790
|
selectAll: "Valitse kaikki",
|
|
789
791
|
sortable: "lajiteltava sarake"
|
|
790
792
|
};
|
|
791
|
-
var
|
|
792
|
-
|
|
793
|
+
var Nt = {};
|
|
794
|
+
Nt = {
|
|
793
795
|
ascending: "croissant",
|
|
794
796
|
ascendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre croissant`,
|
|
795
797
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -800,8 +802,8 @@ St = {
|
|
|
800
802
|
selectAll: "Sélectionner tout",
|
|
801
803
|
sortable: "colonne triable"
|
|
802
804
|
};
|
|
803
|
-
var
|
|
804
|
-
|
|
805
|
+
var Tt = {};
|
|
806
|
+
Tt = {
|
|
805
807
|
ascending: "עולה",
|
|
806
808
|
ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
|
|
807
809
|
columnSize: (t) => `${t.value} פיקסלים`,
|
|
@@ -812,8 +814,8 @@ Et = {
|
|
|
812
814
|
selectAll: "בחר הכול",
|
|
813
815
|
sortable: "עמודה שניתן למיין"
|
|
814
816
|
};
|
|
815
|
-
var
|
|
816
|
-
|
|
817
|
+
var Ft = {};
|
|
818
|
+
Ft = {
|
|
817
819
|
ascending: "rastući",
|
|
818
820
|
ascendingSort: (t) => `razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,
|
|
819
821
|
columnSize: (t) => `${t.value} piksela`,
|
|
@@ -824,8 +826,8 @@ zt = {
|
|
|
824
826
|
selectAll: "Odaberite sve",
|
|
825
827
|
sortable: "stupac koji se može razvrstati"
|
|
826
828
|
};
|
|
827
|
-
var
|
|
828
|
-
|
|
829
|
+
var It = {};
|
|
830
|
+
It = {
|
|
829
831
|
ascending: "növekvő",
|
|
830
832
|
ascendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,
|
|
831
833
|
columnSize: (t) => `${t.value} képpont`,
|
|
@@ -836,8 +838,8 @@ At = {
|
|
|
836
838
|
selectAll: "Összes kijelölése",
|
|
837
839
|
sortable: "rendezendő oszlop"
|
|
838
840
|
};
|
|
839
|
-
var
|
|
840
|
-
|
|
841
|
+
var Wt = {};
|
|
842
|
+
Wt = {
|
|
841
843
|
ascending: "crescente",
|
|
842
844
|
ascendingSort: (t) => `in ordine crescente in base alla colonna ${t.columnName}`,
|
|
843
845
|
columnSize: (t) => `${t.value} pixel`,
|
|
@@ -848,8 +850,8 @@ Bt = {
|
|
|
848
850
|
selectAll: "Seleziona tutto",
|
|
849
851
|
sortable: "colonna ordinabile"
|
|
850
852
|
};
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
+
var Ht = {};
|
|
854
|
+
Ht = {
|
|
853
855
|
ascending: "昇順",
|
|
854
856
|
ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
|
|
855
857
|
columnSize: (t) => `${t.value} ピクセル`,
|
|
@@ -860,8 +862,8 @@ Rt = {
|
|
|
860
862
|
selectAll: "すべて選択",
|
|
861
863
|
sortable: "並べ替え可能な列"
|
|
862
864
|
};
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
+
var Vt = {};
|
|
866
|
+
Vt = {
|
|
865
867
|
ascending: "오름차순",
|
|
866
868
|
ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
|
|
867
869
|
columnSize: (t) => `${t.value} 픽셀`,
|
|
@@ -872,8 +874,8 @@ Kt = {
|
|
|
872
874
|
selectAll: "모두 선택",
|
|
873
875
|
sortable: "정렬 가능한 열"
|
|
874
876
|
};
|
|
875
|
-
var
|
|
876
|
-
|
|
877
|
+
var jt = {};
|
|
878
|
+
jt = {
|
|
877
879
|
ascending: "didėjančia tvarka",
|
|
878
880
|
ascendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,
|
|
879
881
|
columnSize: (t) => `${t.value} piks.`,
|
|
@@ -884,8 +886,8 @@ Pt = {
|
|
|
884
886
|
selectAll: "Pasirinkti viską",
|
|
885
887
|
sortable: "rikiuojamas stulpelis"
|
|
886
888
|
};
|
|
887
|
-
var
|
|
888
|
-
|
|
889
|
+
var Ot = {};
|
|
890
|
+
Ot = {
|
|
889
891
|
ascending: "augošā secībā",
|
|
890
892
|
ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
|
|
891
893
|
columnSize: (t) => `${t.value} pikseļi`,
|
|
@@ -896,8 +898,8 @@ Mt = {
|
|
|
896
898
|
selectAll: "Atlasīt visu",
|
|
897
899
|
sortable: "kārtojamā kolonna"
|
|
898
900
|
};
|
|
899
|
-
var
|
|
900
|
-
|
|
901
|
+
var Lt = {};
|
|
902
|
+
Lt = {
|
|
901
903
|
ascending: "stigende",
|
|
902
904
|
ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
|
|
903
905
|
columnSize: (t) => `${t.value} piksler`,
|
|
@@ -908,8 +910,8 @@ Nt = {
|
|
|
908
910
|
selectAll: "Velg alle",
|
|
909
911
|
sortable: "kolonne som kan sorteres"
|
|
910
912
|
};
|
|
911
|
-
var
|
|
912
|
-
|
|
913
|
+
var Ut = {};
|
|
914
|
+
Ut = {
|
|
913
915
|
ascending: "oplopend",
|
|
914
916
|
ascendingSort: (t) => `gesorteerd in oplopende volgorde in kolom ${t.columnName}`,
|
|
915
917
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -920,8 +922,8 @@ Tt = {
|
|
|
920
922
|
selectAll: "Alles selecteren",
|
|
921
923
|
sortable: "sorteerbare kolom"
|
|
922
924
|
};
|
|
923
|
-
var
|
|
924
|
-
|
|
925
|
+
var Yt = {};
|
|
926
|
+
Yt = {
|
|
925
927
|
ascending: "rosnąco",
|
|
926
928
|
ascendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku rosnącym`,
|
|
927
929
|
columnSize: (t) => `Liczba pikseli: ${t.value}`,
|
|
@@ -932,8 +934,8 @@ Ft = {
|
|
|
932
934
|
selectAll: "Zaznacz wszystko",
|
|
933
935
|
sortable: "kolumna z możliwością sortowania"
|
|
934
936
|
};
|
|
935
|
-
var
|
|
936
|
-
|
|
937
|
+
var Xt = {};
|
|
938
|
+
Xt = {
|
|
937
939
|
ascending: "crescente",
|
|
938
940
|
ascendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem crescente`,
|
|
939
941
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -944,8 +946,8 @@ It = {
|
|
|
944
946
|
selectAll: "Selecionar tudo",
|
|
945
947
|
sortable: "coluna classificável"
|
|
946
948
|
};
|
|
947
|
-
var
|
|
948
|
-
|
|
949
|
+
var Gt = {};
|
|
950
|
+
Gt = {
|
|
949
951
|
ascending: "ascendente",
|
|
950
952
|
ascendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem ascendente`,
|
|
951
953
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -956,8 +958,8 @@ Wt = {
|
|
|
956
958
|
selectAll: "Selecionar tudo",
|
|
957
959
|
sortable: "Coluna ordenável"
|
|
958
960
|
};
|
|
959
|
-
var
|
|
960
|
-
|
|
961
|
+
var qt = {};
|
|
962
|
+
qt = {
|
|
961
963
|
ascending: "crescătoare",
|
|
962
964
|
ascendingSort: (t) => `sortate după coloana ${t.columnName} în ordine crescătoare`,
|
|
963
965
|
columnSize: (t) => `${t.value} pixeli`,
|
|
@@ -968,8 +970,8 @@ Ht = {
|
|
|
968
970
|
selectAll: "Selectare totală",
|
|
969
971
|
sortable: "coloană sortabilă"
|
|
970
972
|
};
|
|
971
|
-
var
|
|
972
|
-
|
|
973
|
+
var Zt = {};
|
|
974
|
+
Zt = {
|
|
973
975
|
ascending: "возрастание",
|
|
974
976
|
ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
|
|
975
977
|
columnSize: (t) => `${t.value} пикс.`,
|
|
@@ -980,8 +982,8 @@ Vt = {
|
|
|
980
982
|
selectAll: "Выбрать все",
|
|
981
983
|
sortable: "сортируемый столбец"
|
|
982
984
|
};
|
|
983
|
-
var
|
|
984
|
-
|
|
985
|
+
var Qt = {};
|
|
986
|
+
Qt = {
|
|
985
987
|
ascending: "vzostupne",
|
|
986
988
|
ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
|
|
987
989
|
columnSize: (t) => `Počet pixelov: ${t.value}`,
|
|
@@ -992,8 +994,8 @@ jt = {
|
|
|
992
994
|
selectAll: "Vybrať všetko",
|
|
993
995
|
sortable: "zoraditeľný stĺpec"
|
|
994
996
|
};
|
|
995
|
-
var
|
|
996
|
-
|
|
997
|
+
var Jt = {};
|
|
998
|
+
Jt = {
|
|
997
999
|
ascending: "naraščajoče",
|
|
998
1000
|
ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
|
|
999
1001
|
columnSize: (t) => `${t.value} slikovnih pik`,
|
|
@@ -1004,8 +1006,8 @@ Ot = {
|
|
|
1004
1006
|
selectAll: "Izberite vse",
|
|
1005
1007
|
sortable: "razvrstljivi stolpec"
|
|
1006
1008
|
};
|
|
1007
|
-
var
|
|
1008
|
-
|
|
1009
|
+
var _t = {};
|
|
1010
|
+
_t = {
|
|
1009
1011
|
ascending: "rastući",
|
|
1010
1012
|
ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
|
|
1011
1013
|
columnSize: (t) => `${t.value} piksela`,
|
|
@@ -1016,8 +1018,8 @@ Lt = {
|
|
|
1016
1018
|
selectAll: "Izaberite sve",
|
|
1017
1019
|
sortable: "kolona koja se može sortirati"
|
|
1018
1020
|
};
|
|
1019
|
-
var
|
|
1020
|
-
|
|
1021
|
+
var el = {};
|
|
1022
|
+
el = {
|
|
1021
1023
|
ascending: "stigande",
|
|
1022
1024
|
ascendingSort: (t) => `sorterat på kolumn ${t.columnName} i stigande ordning`,
|
|
1023
1025
|
columnSize: (t) => `${t.value} pixlar`,
|
|
@@ -1028,8 +1030,8 @@ Ut = {
|
|
|
1028
1030
|
selectAll: "Markera allt",
|
|
1029
1031
|
sortable: "sorterbar kolumn"
|
|
1030
1032
|
};
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
+
var tl = {};
|
|
1034
|
+
tl = {
|
|
1033
1035
|
ascending: "artan sırada",
|
|
1034
1036
|
ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
|
|
1035
1037
|
columnSize: (t) => `${t.value} piksel`,
|
|
@@ -1040,8 +1042,8 @@ Yt = {
|
|
|
1040
1042
|
selectAll: "Tümünü Seç",
|
|
1041
1043
|
sortable: "Sıralanabilir sütun"
|
|
1042
1044
|
};
|
|
1043
|
-
var
|
|
1044
|
-
|
|
1045
|
+
var ll = {};
|
|
1046
|
+
ll = {
|
|
1045
1047
|
ascending: "висхідний",
|
|
1046
1048
|
ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
|
|
1047
1049
|
columnSize: (t) => `${t.value} пікс.`,
|
|
@@ -1052,8 +1054,8 @@ Xt = {
|
|
|
1052
1054
|
selectAll: "Вибрати все",
|
|
1053
1055
|
sortable: "сортувальний стовпець"
|
|
1054
1056
|
};
|
|
1055
|
-
var
|
|
1056
|
-
|
|
1057
|
+
var nl = {};
|
|
1058
|
+
nl = {
|
|
1057
1059
|
ascending: "升序",
|
|
1058
1060
|
ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
|
|
1059
1061
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1064,8 +1066,8 @@ Gt = {
|
|
|
1064
1066
|
selectAll: "全选",
|
|
1065
1067
|
sortable: "可排序的列"
|
|
1066
1068
|
};
|
|
1067
|
-
var
|
|
1068
|
-
|
|
1069
|
+
var ol = {};
|
|
1070
|
+
ol = {
|
|
1069
1071
|
ascending: "遞增",
|
|
1070
1072
|
ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
|
|
1071
1073
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1076,44 +1078,44 @@ qt = {
|
|
|
1076
1078
|
selectAll: "全選",
|
|
1077
1079
|
sortable: "可排序的欄"
|
|
1078
1080
|
};
|
|
1079
|
-
var
|
|
1080
|
-
|
|
1081
|
-
"ar-AE":
|
|
1082
|
-
"bg-BG":
|
|
1083
|
-
"cs-CZ":
|
|
1084
|
-
"da-DK":
|
|
1085
|
-
"de-DE":
|
|
1086
|
-
"el-GR":
|
|
1087
|
-
"en-US":
|
|
1088
|
-
"es-ES":
|
|
1089
|
-
"et-EE":
|
|
1090
|
-
"fi-FI":
|
|
1091
|
-
"fr-FR":
|
|
1092
|
-
"he-IL":
|
|
1093
|
-
"hr-HR":
|
|
1094
|
-
"hu-HU":
|
|
1095
|
-
"it-IT":
|
|
1096
|
-
"ja-JP":
|
|
1097
|
-
"ko-KR":
|
|
1098
|
-
"lt-LT":
|
|
1099
|
-
"lv-LV":
|
|
1100
|
-
"nb-NO":
|
|
1101
|
-
"nl-NL":
|
|
1102
|
-
"pl-PL":
|
|
1103
|
-
"pt-BR":
|
|
1104
|
-
"pt-PT":
|
|
1105
|
-
"ro-RO":
|
|
1106
|
-
"ru-RU":
|
|
1107
|
-
"sk-SK":
|
|
1108
|
-
"sl-SI":
|
|
1109
|
-
"sr-SP":
|
|
1110
|
-
"sv-SE":
|
|
1111
|
-
"tr-TR":
|
|
1112
|
-
"uk-UA":
|
|
1113
|
-
"zh-CN":
|
|
1114
|
-
"zh-TW":
|
|
1081
|
+
var Se = {};
|
|
1082
|
+
Se = {
|
|
1083
|
+
"ar-AE": St,
|
|
1084
|
+
"bg-BG": kt,
|
|
1085
|
+
"cs-CZ": Et,
|
|
1086
|
+
"da-DK": zt,
|
|
1087
|
+
"de-DE": Rt,
|
|
1088
|
+
"el-GR": At,
|
|
1089
|
+
"en-US": Bt,
|
|
1090
|
+
"es-ES": Pt,
|
|
1091
|
+
"et-EE": Kt,
|
|
1092
|
+
"fi-FI": Mt,
|
|
1093
|
+
"fr-FR": Nt,
|
|
1094
|
+
"he-IL": Tt,
|
|
1095
|
+
"hr-HR": Ft,
|
|
1096
|
+
"hu-HU": It,
|
|
1097
|
+
"it-IT": Wt,
|
|
1098
|
+
"ja-JP": Ht,
|
|
1099
|
+
"ko-KR": Vt,
|
|
1100
|
+
"lt-LT": jt,
|
|
1101
|
+
"lv-LV": Ot,
|
|
1102
|
+
"nb-NO": Lt,
|
|
1103
|
+
"nl-NL": Ut,
|
|
1104
|
+
"pl-PL": Yt,
|
|
1105
|
+
"pt-BR": Xt,
|
|
1106
|
+
"pt-PT": Gt,
|
|
1107
|
+
"ro-RO": qt,
|
|
1108
|
+
"ru-RU": Zt,
|
|
1109
|
+
"sk-SK": Qt,
|
|
1110
|
+
"sl-SI": Jt,
|
|
1111
|
+
"sr-SP": _t,
|
|
1112
|
+
"sv-SE": el,
|
|
1113
|
+
"tr-TR": tl,
|
|
1114
|
+
"uk-UA": ll,
|
|
1115
|
+
"zh-CN": nl,
|
|
1116
|
+
"zh-TW": ol
|
|
1115
1117
|
};
|
|
1116
|
-
class
|
|
1118
|
+
class yn extends $t {
|
|
1117
1119
|
isCell(e) {
|
|
1118
1120
|
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
1119
1121
|
}
|
|
@@ -1121,7 +1123,7 @@ class sn extends ct {
|
|
|
1121
1123
|
let l = this.collection.getItem(e);
|
|
1122
1124
|
if (!l) return null;
|
|
1123
1125
|
if (l.type === "column") {
|
|
1124
|
-
let n =
|
|
1126
|
+
let n = ne(I(l, this.collection));
|
|
1125
1127
|
if (n) return n.key;
|
|
1126
1128
|
let o = this.getFirstKey();
|
|
1127
1129
|
return o == null || !this.collection.getItem(o) ? null : super.getKeyForItemInRowByIndex(o, l.index);
|
|
@@ -1132,8 +1134,8 @@ class sn extends ct {
|
|
|
1132
1134
|
let l = this.collection.getItem(e);
|
|
1133
1135
|
if (!l) return null;
|
|
1134
1136
|
if (l.type === "column") {
|
|
1135
|
-
let
|
|
1136
|
-
return
|
|
1137
|
+
let i = l.parentKey != null ? this.collection.getItem(l.parentKey) : null;
|
|
1138
|
+
return i && i.type === "column" ? i.key : null;
|
|
1137
1139
|
}
|
|
1138
1140
|
let n = super.getKeyAbove(e), o = n != null ? this.collection.getItem(n) : null;
|
|
1139
1141
|
return o && o.type !== "headerrow" ? n : this.isCell(l) ? this.collection.columns[l.index].key : this.collection.columns[0].key;
|
|
@@ -1147,14 +1149,14 @@ class sn extends ct {
|
|
|
1147
1149
|
return null;
|
|
1148
1150
|
}
|
|
1149
1151
|
findPreviousColumnKey(e) {
|
|
1150
|
-
let l = this.findPreviousKey(e.key, (
|
|
1152
|
+
let l = this.findPreviousKey(e.key, (i) => i.type === "column");
|
|
1151
1153
|
if (l != null) return l;
|
|
1152
1154
|
let n = this.collection.headerRows[e.level], o = [
|
|
1153
1155
|
...I(n, this.collection)
|
|
1154
1156
|
];
|
|
1155
|
-
for (let
|
|
1156
|
-
let
|
|
1157
|
-
if (
|
|
1157
|
+
for (let i = o.length - 1; i >= 0; i--) {
|
|
1158
|
+
let r = o[i];
|
|
1159
|
+
if (r.type === "column") return r.key;
|
|
1158
1160
|
}
|
|
1159
1161
|
return null;
|
|
1160
1162
|
}
|
|
@@ -1170,24 +1172,24 @@ class sn extends ct {
|
|
|
1170
1172
|
if (!this.collator) return null;
|
|
1171
1173
|
let n = this.collection, o = l ?? this.getFirstKey();
|
|
1172
1174
|
if (o == null) return null;
|
|
1173
|
-
let
|
|
1174
|
-
var
|
|
1175
|
-
|
|
1175
|
+
let i = n.getItem(o);
|
|
1176
|
+
var r;
|
|
1177
|
+
i?.type === "cell" && (o = (r = i.parentKey) !== null && r !== void 0 ? r : null);
|
|
1176
1178
|
let u = !1;
|
|
1177
1179
|
for (; o != null; ) {
|
|
1178
|
-
let
|
|
1179
|
-
if (!
|
|
1180
|
-
if (
|
|
1181
|
-
let
|
|
1182
|
-
if (this.collator.compare(
|
|
1180
|
+
let c = n.getItem(o);
|
|
1181
|
+
if (!c) return null;
|
|
1182
|
+
if (c.textValue) {
|
|
1183
|
+
let a = c.textValue.slice(0, e.length);
|
|
1184
|
+
if (this.collator.compare(a, e) === 0) return c.key;
|
|
1183
1185
|
}
|
|
1184
|
-
for (let
|
|
1185
|
-
let
|
|
1186
|
-
if (n.rowHeaderColumnKeys.has(
|
|
1187
|
-
let
|
|
1188
|
-
if (this.collator.compare(
|
|
1189
|
-
let p = l != null ? n.getItem(l) :
|
|
1190
|
-
return p?.type === "cell" ?
|
|
1186
|
+
for (let a of I(c, this.collection)) {
|
|
1187
|
+
let d = n.columns[a.index];
|
|
1188
|
+
if (n.rowHeaderColumnKeys.has(d.key) && a.textValue) {
|
|
1189
|
+
let s = a.textValue.slice(0, e.length);
|
|
1190
|
+
if (this.collator.compare(s, e) === 0) {
|
|
1191
|
+
let p = l != null ? n.getItem(l) : i;
|
|
1192
|
+
return p?.type === "cell" ? a.key : c.key;
|
|
1191
1193
|
}
|
|
1192
1194
|
}
|
|
1193
1195
|
}
|
|
@@ -1196,110 +1198,110 @@ class sn extends ct {
|
|
|
1196
1198
|
return null;
|
|
1197
1199
|
}
|
|
1198
1200
|
}
|
|
1199
|
-
function
|
|
1201
|
+
function $n(t) {
|
|
1200
1202
|
return t && t.__esModule ? t.default : t;
|
|
1201
1203
|
}
|
|
1202
|
-
function
|
|
1203
|
-
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate:
|
|
1204
|
+
function xn(t, e, l) {
|
|
1205
|
+
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: i, layout: r } = t, u = vt({
|
|
1204
1206
|
usage: "search",
|
|
1205
1207
|
sensitivity: "base"
|
|
1206
|
-
}), { direction:
|
|
1208
|
+
}), { direction: c } = be(), a = e.selectionManager.disabledBehavior, d = N(() => n || new yn({
|
|
1207
1209
|
collection: e.collection,
|
|
1208
1210
|
disabledKeys: e.disabledKeys,
|
|
1209
|
-
disabledBehavior:
|
|
1211
|
+
disabledBehavior: a,
|
|
1210
1212
|
ref: l,
|
|
1211
|
-
direction:
|
|
1213
|
+
direction: c,
|
|
1212
1214
|
collator: u,
|
|
1213
|
-
layoutDelegate:
|
|
1214
|
-
layout:
|
|
1215
|
+
layoutDelegate: i,
|
|
1216
|
+
layout: r
|
|
1215
1217
|
}), [
|
|
1216
1218
|
n,
|
|
1217
1219
|
e.collection,
|
|
1218
1220
|
e.disabledKeys,
|
|
1219
|
-
|
|
1221
|
+
a,
|
|
1220
1222
|
l,
|
|
1221
|
-
|
|
1223
|
+
c,
|
|
1222
1224
|
u,
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
]),
|
|
1226
|
-
|
|
1227
|
-
let { gridProps: p } =
|
|
1225
|
+
i,
|
|
1226
|
+
r
|
|
1227
|
+
]), s = Be(t.id);
|
|
1228
|
+
je.set(e, s);
|
|
1229
|
+
let { gridProps: p } = hn({
|
|
1228
1230
|
...t,
|
|
1229
|
-
id:
|
|
1230
|
-
keyboardDelegate:
|
|
1231
|
+
id: s,
|
|
1232
|
+
keyboardDelegate: d
|
|
1231
1233
|
}, e, l);
|
|
1232
|
-
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length),
|
|
1233
|
-
let { column: f, direction: h } = e.sortDescriptor || {},
|
|
1234
|
-
var x,
|
|
1235
|
-
let $ = (
|
|
1236
|
-
return h && f ?
|
|
1234
|
+
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Re() && "expandedKeys" in e && (p.role = "treegrid");
|
|
1235
|
+
let { column: f, direction: h } = e.sortDescriptor || {}, g = ve($n(Se), "@react-aria/table"), y = N(() => {
|
|
1236
|
+
var x, m;
|
|
1237
|
+
let $ = (m = (x = e.collection.columns.find((b) => b.key === f)) === null || x === void 0 ? void 0 : x.textValue) !== null && m !== void 0 ? m : "";
|
|
1238
|
+
return h && f ? g.format(`${h}Sort`, {
|
|
1237
1239
|
columnName: $
|
|
1238
1240
|
}) : void 0;
|
|
1239
1241
|
}, [
|
|
1240
1242
|
h,
|
|
1241
1243
|
f,
|
|
1242
1244
|
e.collection.columns
|
|
1243
|
-
]),
|
|
1244
|
-
return
|
|
1245
|
-
|
|
1245
|
+
]), v = He(y);
|
|
1246
|
+
return _l(() => {
|
|
1247
|
+
y && Jl(y, "assertive", 500);
|
|
1246
1248
|
}, [
|
|
1247
|
-
|
|
1249
|
+
y
|
|
1248
1250
|
]), {
|
|
1249
|
-
gridProps:
|
|
1251
|
+
gridProps: H(p, v, {
|
|
1250
1252
|
// merge sort description with long press information
|
|
1251
1253
|
"aria-describedby": [
|
|
1252
|
-
|
|
1254
|
+
v["aria-describedby"],
|
|
1253
1255
|
p["aria-describedby"]
|
|
1254
1256
|
].filter(Boolean).join(" ")
|
|
1255
1257
|
})
|
|
1256
1258
|
};
|
|
1257
1259
|
}
|
|
1258
|
-
function
|
|
1260
|
+
function wn(t) {
|
|
1259
1261
|
return t && t.__esModule ? t.default : t;
|
|
1260
1262
|
}
|
|
1261
|
-
function
|
|
1263
|
+
function Dn(t, e, l) {
|
|
1262
1264
|
var n, o;
|
|
1263
|
-
let { node:
|
|
1265
|
+
let { node: i } = t, r = i.props.allowsSorting, { gridCellProps: u } = xt({
|
|
1264
1266
|
...t,
|
|
1265
1267
|
focusMode: "child"
|
|
1266
|
-
}, e, l),
|
|
1267
|
-
isDisabled: !
|
|
1268
|
+
}, e, l), c = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: a } = bt({
|
|
1269
|
+
isDisabled: !r || c,
|
|
1268
1270
|
onPress() {
|
|
1269
|
-
e.sort(
|
|
1271
|
+
e.sort(i.key);
|
|
1270
1272
|
},
|
|
1271
1273
|
ref: l
|
|
1272
|
-
}), { focusableProps:
|
|
1273
|
-
|
|
1274
|
-
let h =
|
|
1275
|
-
|
|
1276
|
-
let
|
|
1277
|
-
return
|
|
1278
|
-
|
|
1274
|
+
}), { focusableProps: d } = Vl({}, l), s, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === i.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
|
|
1275
|
+
i.props.allowsSorting && !ot() && (s = p ? f : "none");
|
|
1276
|
+
let h = ve(wn(Se), "@react-aria/table"), g;
|
|
1277
|
+
r && (g = `${h.format("sortable")}`, p && f && ot() && (g = `${g}, ${h.format(f)}`));
|
|
1278
|
+
let y = He(g), v = e.collection.size === 0;
|
|
1279
|
+
return se(() => {
|
|
1280
|
+
v && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
|
|
1279
1281
|
}, [
|
|
1280
|
-
|
|
1282
|
+
v,
|
|
1281
1283
|
e.selectionManager,
|
|
1282
|
-
|
|
1284
|
+
i.key
|
|
1283
1285
|
]), {
|
|
1284
1286
|
columnHeaderProps: {
|
|
1285
|
-
...
|
|
1286
|
-
c,
|
|
1287
|
-
u,
|
|
1287
|
+
...H(
|
|
1288
1288
|
d,
|
|
1289
|
-
|
|
1289
|
+
u,
|
|
1290
|
+
a,
|
|
1291
|
+
y,
|
|
1290
1292
|
// If the table is empty, make all column headers untabbable
|
|
1291
|
-
|
|
1293
|
+
v ? {
|
|
1292
1294
|
tabIndex: -1
|
|
1293
1295
|
} : null
|
|
1294
1296
|
),
|
|
1295
1297
|
role: "columnheader",
|
|
1296
|
-
id:
|
|
1297
|
-
"aria-colspan":
|
|
1298
|
-
"aria-sort":
|
|
1298
|
+
id: wt(e, i.key),
|
|
1299
|
+
"aria-colspan": i.colSpan && i.colSpan > 1 ? i.colSpan : void 0,
|
|
1300
|
+
"aria-sort": s
|
|
1299
1301
|
}
|
|
1300
1302
|
};
|
|
1301
1303
|
}
|
|
1302
|
-
const
|
|
1304
|
+
const ut = {
|
|
1303
1305
|
expand: {
|
|
1304
1306
|
ltr: "ArrowRight",
|
|
1305
1307
|
rtl: "ArrowLeft"
|
|
@@ -1309,70 +1311,70 @@ const _e = {
|
|
|
1309
1311
|
rtl: "ArrowRight"
|
|
1310
1312
|
}
|
|
1311
1313
|
};
|
|
1312
|
-
function
|
|
1313
|
-
let { node: n, isVirtualized: o } = t, { rowProps:
|
|
1314
|
-
o && !(
|
|
1315
|
-
let
|
|
1316
|
-
if (
|
|
1317
|
-
let
|
|
1318
|
-
if (
|
|
1319
|
-
var
|
|
1320
|
-
let
|
|
1321
|
-
var
|
|
1322
|
-
|
|
1323
|
-
onKeyDown: (
|
|
1324
|
-
(
|
|
1314
|
+
function Cn(t, e, l) {
|
|
1315
|
+
let { node: n, isVirtualized: o } = t, { rowProps: i, ...r } = gn(t, e, l), { direction: u } = be();
|
|
1316
|
+
o && !(Re() && "expandedKeys" in e) ? i["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
|
|
1317
|
+
let c = {};
|
|
1318
|
+
if (Re() && "expandedKeys" in e) {
|
|
1319
|
+
let b = e.keyMap.get(n.key);
|
|
1320
|
+
if (b != null) {
|
|
1321
|
+
var a, d, s, p, f, h;
|
|
1322
|
+
let w = ((a = b.props) === null || a === void 0 ? void 0 : a.UNSTABLE_childItems) || ((s = b.props) === null || s === void 0 || (d = s.children) === null || d === void 0 ? void 0 : d.length) > e.userColumnCount;
|
|
1323
|
+
var g, y, v, x;
|
|
1324
|
+
c = {
|
|
1325
|
+
onKeyDown: (C) => {
|
|
1326
|
+
(C.key === ut.expand[u] && e.selectionManager.focusedKey === b.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(b.key) || C.key === ut.collapse[u] && e.selectionManager.focusedKey === b.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(b.key))) && (e.toggleKey(b.key), C.stopPropagation());
|
|
1325
1327
|
},
|
|
1326
|
-
"aria-expanded":
|
|
1327
|
-
"aria-level":
|
|
1328
|
-
"aria-posinset": ((
|
|
1329
|
-
"aria-setsize":
|
|
1328
|
+
"aria-expanded": w ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
|
|
1329
|
+
"aria-level": b.level,
|
|
1330
|
+
"aria-posinset": ((g = b.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
|
|
1331
|
+
"aria-setsize": b.level > 1 ? ((v = (p = oe((y = (f = e.keyMap.get(b.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && v !== void 0 ? v : 0) + 1 : ((x = (h = oe(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && x !== void 0 ? x : 0) + 1
|
|
1330
1332
|
};
|
|
1331
1333
|
}
|
|
1332
1334
|
}
|
|
1333
|
-
let
|
|
1335
|
+
let m = Xl(n.props), $ = r.hasAction ? m : {};
|
|
1334
1336
|
return {
|
|
1335
1337
|
rowProps: {
|
|
1336
|
-
...
|
|
1337
|
-
"aria-labelledby":
|
|
1338
|
+
...H(i, c, $),
|
|
1339
|
+
"aria-labelledby": Ct(e, n.key)
|
|
1338
1340
|
},
|
|
1339
|
-
...
|
|
1341
|
+
...r
|
|
1340
1342
|
};
|
|
1341
1343
|
}
|
|
1342
|
-
function
|
|
1343
|
-
let { node: n, isVirtualized: o } = t,
|
|
1344
|
+
function Sn(t, e, l) {
|
|
1345
|
+
let { node: n, isVirtualized: o } = t, i = {
|
|
1344
1346
|
role: "row"
|
|
1345
1347
|
};
|
|
1346
|
-
return o && !(
|
|
1347
|
-
rowProps:
|
|
1348
|
+
return o && !(Re() && "expandedKeys" in e) && (i["aria-rowindex"] = n.index + 1), {
|
|
1349
|
+
rowProps: i
|
|
1348
1350
|
};
|
|
1349
1351
|
}
|
|
1350
|
-
function
|
|
1352
|
+
function kn(t, e, l) {
|
|
1351
1353
|
var n;
|
|
1352
|
-
let { gridCellProps: o, isPressed:
|
|
1353
|
-
return
|
|
1354
|
+
let { gridCellProps: o, isPressed: i } = xt(t, e, l), r = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
|
|
1355
|
+
return r != null && e.collection.rowHeaderColumnKeys.has(r) && (o.role = "rowheader", o.id = Dt(e, t.node.parentKey, r)), {
|
|
1354
1356
|
gridCellProps: o,
|
|
1355
|
-
isPressed:
|
|
1357
|
+
isPressed: i
|
|
1356
1358
|
};
|
|
1357
1359
|
}
|
|
1358
|
-
function
|
|
1360
|
+
function En(t) {
|
|
1359
1361
|
return t && t.__esModule ? t.default : t;
|
|
1360
1362
|
}
|
|
1361
|
-
function
|
|
1363
|
+
function zn(t, e) {
|
|
1362
1364
|
let { key: l } = t;
|
|
1363
|
-
const { checkboxProps: n } =
|
|
1365
|
+
const { checkboxProps: n } = vn(t, e);
|
|
1364
1366
|
return {
|
|
1365
1367
|
checkboxProps: {
|
|
1366
1368
|
...n,
|
|
1367
|
-
"aria-labelledby": `${n.id} ${
|
|
1369
|
+
"aria-labelledby": `${n.id} ${Ct(e, l)}`
|
|
1368
1370
|
}
|
|
1369
1371
|
};
|
|
1370
1372
|
}
|
|
1371
|
-
function
|
|
1373
|
+
function Rn(t) {
|
|
1372
1374
|
let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
|
|
1373
1375
|
return {
|
|
1374
1376
|
checkboxProps: {
|
|
1375
|
-
"aria-label":
|
|
1377
|
+
"aria-label": ve(En(Se), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
|
|
1376
1378
|
isSelected: l,
|
|
1377
1379
|
isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
|
|
1378
1380
|
isIndeterminate: !e && !l,
|
|
@@ -1380,132 +1382,132 @@ function yn(t) {
|
|
|
1380
1382
|
}
|
|
1381
1383
|
};
|
|
1382
1384
|
}
|
|
1383
|
-
function
|
|
1385
|
+
function An(t) {
|
|
1384
1386
|
return t && t.__esModule ? t.default : t;
|
|
1385
1387
|
}
|
|
1386
|
-
function
|
|
1387
|
-
let { column: n, triggerRef: o, isDisabled:
|
|
1388
|
-
const
|
|
1389
|
-
let
|
|
1390
|
-
onKeyDown: (
|
|
1391
|
-
|
|
1392
|
-
}
|
|
1393
|
-
}),
|
|
1394
|
-
f.current || (h.current = e.updateResizedColumns(
|
|
1395
|
-
}), $ =
|
|
1396
|
-
let
|
|
1397
|
-
u?.(
|
|
1398
|
-
}),
|
|
1399
|
-
f.current && (h.current == null && (h.current = e.updateResizedColumns(
|
|
1388
|
+
function Bn(t, e, l) {
|
|
1389
|
+
let { column: n, triggerRef: o, isDisabled: i, onResizeStart: r, onResize: u, onResizeEnd: c, "aria-label": a } = t;
|
|
1390
|
+
const d = ve(An(Se), "@react-aria/table");
|
|
1391
|
+
let s = Be(), p = e.resizingColumn === n.key, f = M(p), h = M(null), g = M(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = be(), { keyboardProps: x } = jl({
|
|
1392
|
+
onKeyDown: (S) => {
|
|
1393
|
+
y ? (S.key === "Escape" || S.key === "Enter" || S.key === " " || S.key === "Tab") && (S.preventDefault(), b(n)) : (S.continuePropagation(), S.key === "Enter" && m(n));
|
|
1394
|
+
}
|
|
1395
|
+
}), m = xe((S) => {
|
|
1396
|
+
f.current || (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key)), e.startResize(S.key), e.tableState.setKeyboardNavigationDisabled(!0), r?.(h.current)), f.current = !0;
|
|
1397
|
+
}), $ = xe((S, A) => {
|
|
1398
|
+
let U = e.updateResizedColumns(S.key, A);
|
|
1399
|
+
u?.(U), h.current = U;
|
|
1400
|
+
}), b = xe((S) => {
|
|
1401
|
+
f.current && (h.current == null && (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current && q(o.current)), h.current = null;
|
|
1400
1402
|
});
|
|
1401
|
-
const
|
|
1403
|
+
const w = M(0), { moveProps: C } = fn({
|
|
1402
1404
|
onMoveStart() {
|
|
1403
|
-
|
|
1405
|
+
w.current = e.getColumnWidth(n.key), m(n);
|
|
1404
1406
|
},
|
|
1405
|
-
onMove(
|
|
1406
|
-
let { deltaX: A, deltaY:
|
|
1407
|
-
|
|
1407
|
+
onMove(S) {
|
|
1408
|
+
let { deltaX: A, deltaY: U, pointerType: ke } = S;
|
|
1409
|
+
v === "rtl" && (A *= -1), ke === "keyboard" && (U !== 0 && A === 0 && (A = U * -1), A *= 10), A !== 0 && (w.current += A, $(n, w.current));
|
|
1408
1410
|
},
|
|
1409
|
-
onMoveEnd(
|
|
1410
|
-
let { pointerType: A } =
|
|
1411
|
-
|
|
1411
|
+
onMoveEnd(S) {
|
|
1412
|
+
let { pointerType: A } = S;
|
|
1413
|
+
w.current = 0, (A === "mouse" || A === "touch" && g.current) && b(n);
|
|
1412
1414
|
}
|
|
1413
1415
|
});
|
|
1414
|
-
let
|
|
1416
|
+
let B = V((S) => {
|
|
1415
1417
|
var A;
|
|
1416
|
-
|
|
1418
|
+
y && ((A = C.onKeyDown) === null || A === void 0 || A.call(C, S));
|
|
1417
1419
|
}, [
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
]),
|
|
1421
|
-
|
|
1422
|
-
let
|
|
1423
|
-
|
|
1424
|
-
let
|
|
1425
|
-
"aria-label":
|
|
1420
|
+
y,
|
|
1421
|
+
C
|
|
1422
|
+
]), P = Math.floor(e.getColumnMinWidth(n.key)), E = Math.floor(e.getColumnMaxWidth(n.key));
|
|
1423
|
+
E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
|
|
1424
|
+
let W = Math.floor(e.getColumnWidth(n.key)), K = Ll();
|
|
1425
|
+
K === "virtual" && typeof window < "u" && "ontouchstart" in window && (K = "touch");
|
|
1426
|
+
let T = o?.current == null && (K === "keyboard" || K === "virtual") && !p ? d.format("resizerDescription") : void 0, O = He(T), F = {
|
|
1427
|
+
"aria-label": a,
|
|
1426
1428
|
"aria-orientation": "horizontal",
|
|
1427
|
-
"aria-labelledby": `${
|
|
1428
|
-
"aria-valuetext":
|
|
1429
|
-
value:
|
|
1429
|
+
"aria-labelledby": `${s} ${wt(e.tableState, n.key)}`,
|
|
1430
|
+
"aria-valuetext": d.format("columnSize", {
|
|
1431
|
+
value: W
|
|
1430
1432
|
}),
|
|
1431
1433
|
type: "range",
|
|
1432
|
-
min:
|
|
1433
|
-
max:
|
|
1434
|
-
value:
|
|
1435
|
-
...
|
|
1434
|
+
min: P,
|
|
1435
|
+
max: E,
|
|
1436
|
+
value: W,
|
|
1437
|
+
...O
|
|
1436
1438
|
};
|
|
1437
|
-
const
|
|
1438
|
-
l.current &&
|
|
1439
|
+
const Y = V(() => {
|
|
1440
|
+
l.current && q(l.current);
|
|
1439
1441
|
}, [
|
|
1440
1442
|
l
|
|
1441
1443
|
]);
|
|
1442
|
-
let
|
|
1443
|
-
|
|
1444
|
-
if (
|
|
1445
|
-
|
|
1446
|
-
let
|
|
1444
|
+
let L = e.resizingColumn, te = M(null);
|
|
1445
|
+
se(() => {
|
|
1446
|
+
if (te.current !== L && L != null && L === n.key) {
|
|
1447
|
+
g.current = document.activeElement === l.current, m(n);
|
|
1448
|
+
let S = setTimeout(() => Y(), 0), A = setTimeout(Y, 400);
|
|
1447
1449
|
return () => {
|
|
1448
|
-
clearTimeout(
|
|
1450
|
+
clearTimeout(S), clearTimeout(A);
|
|
1449
1451
|
};
|
|
1450
1452
|
}
|
|
1451
|
-
|
|
1453
|
+
te.current = L;
|
|
1452
1454
|
}, [
|
|
1453
|
-
|
|
1455
|
+
L,
|
|
1454
1456
|
n,
|
|
1455
|
-
|
|
1457
|
+
Y,
|
|
1456
1458
|
l,
|
|
1457
|
-
|
|
1459
|
+
m
|
|
1458
1460
|
]);
|
|
1459
|
-
let
|
|
1460
|
-
let A = e.getColumnWidth(n.key),
|
|
1461
|
-
|
|
1462
|
-
}, { pressProps:
|
|
1461
|
+
let le = (S) => {
|
|
1462
|
+
let A = e.getColumnWidth(n.key), U = parseFloat(S.target.value);
|
|
1463
|
+
U > A ? U = A + 10 : U = A - 10, $(n, U);
|
|
1464
|
+
}, { pressProps: _ } = bt({
|
|
1463
1465
|
preventFocusOnPress: !0,
|
|
1464
|
-
onPressStart: (
|
|
1465
|
-
if (!(
|
|
1466
|
-
if (
|
|
1467
|
-
|
|
1466
|
+
onPressStart: (S) => {
|
|
1467
|
+
if (!(S.ctrlKey || S.altKey || S.metaKey || S.shiftKey || S.pointerType === "keyboard")) {
|
|
1468
|
+
if (S.pointerType === "virtual" && e.resizingColumn != null) {
|
|
1469
|
+
b(n);
|
|
1468
1470
|
return;
|
|
1469
1471
|
}
|
|
1470
|
-
|
|
1472
|
+
Y(), S.pointerType !== "virtual" && m(n);
|
|
1471
1473
|
}
|
|
1472
1474
|
},
|
|
1473
|
-
onPress: (
|
|
1474
|
-
(
|
|
1475
|
+
onPress: (S) => {
|
|
1476
|
+
(S.pointerType === "touch" && g.current || S.pointerType === "mouse") && e.resizingColumn != null && b(n);
|
|
1475
1477
|
}
|
|
1476
|
-
}), { visuallyHiddenProps:
|
|
1478
|
+
}), { visuallyHiddenProps: z } = Pe();
|
|
1477
1479
|
return {
|
|
1478
|
-
resizerProps:
|
|
1479
|
-
...
|
|
1480
|
-
onKeyDown:
|
|
1481
|
-
},
|
|
1480
|
+
resizerProps: H(x, {
|
|
1481
|
+
...C,
|
|
1482
|
+
onKeyDown: B
|
|
1483
|
+
}, _, {
|
|
1482
1484
|
style: {
|
|
1483
1485
|
touchAction: "none"
|
|
1484
1486
|
}
|
|
1485
1487
|
}),
|
|
1486
|
-
inputProps:
|
|
1487
|
-
id:
|
|
1488
|
+
inputProps: H(z, {
|
|
1489
|
+
id: s,
|
|
1488
1490
|
onBlur: () => {
|
|
1489
|
-
|
|
1491
|
+
b(n);
|
|
1490
1492
|
},
|
|
1491
|
-
onChange:
|
|
1492
|
-
disabled:
|
|
1493
|
-
},
|
|
1493
|
+
onChange: le,
|
|
1494
|
+
disabled: i
|
|
1495
|
+
}, F),
|
|
1494
1496
|
isResizing: p
|
|
1495
1497
|
};
|
|
1496
1498
|
}
|
|
1497
|
-
function
|
|
1498
|
-
return
|
|
1499
|
+
function il() {
|
|
1500
|
+
return mn();
|
|
1499
1501
|
}
|
|
1500
|
-
function
|
|
1502
|
+
function Pn(t) {
|
|
1501
1503
|
return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
|
|
1502
1504
|
}
|
|
1503
|
-
function
|
|
1505
|
+
function Kn(t) {
|
|
1504
1506
|
if (!t || typeof t == "number") return 1;
|
|
1505
1507
|
let e = t.match(/^(.+)(?=fr$)/);
|
|
1506
1508
|
return e ? parseFloat(e[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, "defaulting to '1fr'"), 1);
|
|
1507
1509
|
}
|
|
1508
|
-
function
|
|
1510
|
+
function Oe(t, e) {
|
|
1509
1511
|
if (typeof t == "string") {
|
|
1510
1512
|
let l = t.match(/^(\d+)(?=%$)/);
|
|
1511
1513
|
if (!l) throw new Error("Only percentages or numbers are supported for static column widths");
|
|
@@ -1513,62 +1515,62 @@ function We(t, e) {
|
|
|
1513
1515
|
}
|
|
1514
1516
|
return t;
|
|
1515
1517
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return t != null ?
|
|
1518
|
+
function rl(t, e) {
|
|
1519
|
+
return t != null ? Oe(t, e) : Number.MAX_SAFE_INTEGER;
|
|
1518
1520
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return t != null ?
|
|
1521
|
+
function al(t, e) {
|
|
1522
|
+
return t != null ? Oe(t, e) : 0;
|
|
1521
1523
|
}
|
|
1522
|
-
function
|
|
1523
|
-
let
|
|
1524
|
-
var
|
|
1525
|
-
let f = l.get(u.key) != null ? (
|
|
1526
|
-
|
|
1527
|
-
var x,
|
|
1528
|
-
let $ =
|
|
1529
|
-
return h ?
|
|
1524
|
+
function Mn(t, e, l, n, o) {
|
|
1525
|
+
let i = !1, r = e.map((u, c) => {
|
|
1526
|
+
var a, d, s, p;
|
|
1527
|
+
let f = l.get(u.key) != null ? (a = l.get(u.key)) !== null && a !== void 0 ? a : "1fr" : (p = (s = (d = u.width) !== null && d !== void 0 ? d : u.defaultWidth) !== null && s !== void 0 ? s : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0, y = 0, v = 0;
|
|
1528
|
+
Pn(f) ? (g = Oe(f, t), h = !0) : (y = Kn(f), y <= 0 && (h = !0));
|
|
1529
|
+
var x, m;
|
|
1530
|
+
let $ = al((m = (x = u.minWidth) !== null && x !== void 0 ? x : o?.(c)) !== null && m !== void 0 ? m : 0, t), b = rl(u.maxWidth, t), w = Math.max($, Math.min(g, b));
|
|
1531
|
+
return h ? v = w : g > w && (h = !0, v = w), h || (i = !0), {
|
|
1530
1532
|
frozen: h,
|
|
1531
|
-
baseSize:
|
|
1532
|
-
hypotheticalMainSize:
|
|
1533
|
+
baseSize: g,
|
|
1534
|
+
hypotheticalMainSize: w,
|
|
1533
1535
|
min: $,
|
|
1534
|
-
max:
|
|
1535
|
-
flex:
|
|
1536
|
-
targetMainSize:
|
|
1536
|
+
max: b,
|
|
1537
|
+
flex: y,
|
|
1538
|
+
targetMainSize: v,
|
|
1537
1539
|
violation: 0
|
|
1538
1540
|
};
|
|
1539
1541
|
});
|
|
1540
|
-
for (;
|
|
1541
|
-
let u = 0,
|
|
1542
|
-
|
|
1543
|
-
|
|
1542
|
+
for (; i; ) {
|
|
1543
|
+
let u = 0, c = 0;
|
|
1544
|
+
r.forEach((s) => {
|
|
1545
|
+
s.frozen ? u += s.targetMainSize : (u += s.baseSize, c += s.flex);
|
|
1544
1546
|
});
|
|
1545
|
-
let
|
|
1546
|
-
|
|
1547
|
-
if (!
|
|
1548
|
-
let p =
|
|
1549
|
-
|
|
1547
|
+
let a = t - u;
|
|
1548
|
+
a > 0 && r.forEach((s) => {
|
|
1549
|
+
if (!s.frozen) {
|
|
1550
|
+
let p = s.flex / c;
|
|
1551
|
+
s.targetMainSize = s.baseSize + p * a;
|
|
1550
1552
|
}
|
|
1551
1553
|
});
|
|
1552
|
-
let
|
|
1553
|
-
|
|
1554
|
-
if (
|
|
1555
|
-
let { min: p, max: f, targetMainSize: h } =
|
|
1556
|
-
|
|
1554
|
+
let d = 0;
|
|
1555
|
+
r.forEach((s) => {
|
|
1556
|
+
if (s.violation = 0, !s.frozen) {
|
|
1557
|
+
let { min: p, max: f, targetMainSize: h } = s;
|
|
1558
|
+
s.targetMainSize = Math.max(p, Math.min(h, f)), s.violation = s.targetMainSize - h, d += s.violation;
|
|
1557
1559
|
}
|
|
1558
|
-
}),
|
|
1559
|
-
|
|
1560
|
+
}), i = !1, r.forEach((s) => {
|
|
1561
|
+
d === 0 || Math.sign(d) === Math.sign(s.violation) ? s.frozen = !0 : s.frozen || (i = !0);
|
|
1560
1562
|
});
|
|
1561
1563
|
}
|
|
1562
|
-
return
|
|
1564
|
+
return Nn(r);
|
|
1563
1565
|
}
|
|
1564
|
-
function
|
|
1566
|
+
function Nn(t) {
|
|
1565
1567
|
let e = 0, l = 0, n = [];
|
|
1566
1568
|
return t.forEach(function(o) {
|
|
1567
|
-
let
|
|
1568
|
-
e +=
|
|
1569
|
+
let i = o.targetMainSize, r = Math.round(i + e) - l;
|
|
1570
|
+
e += i, l += r, n.push(r);
|
|
1569
1571
|
}), n;
|
|
1570
1572
|
}
|
|
1571
|
-
class
|
|
1573
|
+
class Tn {
|
|
1572
1574
|
/** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
|
|
1573
1575
|
splitColumnsIntoControlledAndUncontrolled(e) {
|
|
1574
1576
|
return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
|
|
@@ -1578,21 +1580,21 @@ class Sn {
|
|
|
1578
1580
|
}
|
|
1579
1581
|
/** Takes uncontrolled and controlled widths and joins them into a single Map. */
|
|
1580
1582
|
recombineColumns(e, l, n, o) {
|
|
1581
|
-
return new Map(e.map((
|
|
1582
|
-
|
|
1583
|
-
l.get(
|
|
1583
|
+
return new Map(e.map((i) => n.has(i.key) ? [
|
|
1584
|
+
i.key,
|
|
1585
|
+
l.get(i.key)
|
|
1584
1586
|
] : [
|
|
1585
|
-
|
|
1586
|
-
o.get(
|
|
1587
|
+
i.key,
|
|
1588
|
+
o.get(i.key).props.width
|
|
1587
1589
|
]));
|
|
1588
1590
|
}
|
|
1589
1591
|
/** Used to make an initial Map of the uncontrolled widths based on default widths. */
|
|
1590
1592
|
getInitialUncontrolledWidths(e) {
|
|
1591
1593
|
return new Map(Array.from(e).map(([l, n]) => {
|
|
1592
|
-
var o,
|
|
1594
|
+
var o, i, r, u;
|
|
1593
1595
|
return [
|
|
1594
1596
|
l,
|
|
1595
|
-
(u = (
|
|
1597
|
+
(u = (r = n.props.defaultWidth) !== null && r !== void 0 ? r : (o = (i = this).getDefaultWidth) === null || o === void 0 ? void 0 : o.call(i, n)) !== null && u !== void 0 ? u : "1fr"
|
|
1596
1598
|
];
|
|
1597
1599
|
}));
|
|
1598
1600
|
}
|
|
@@ -1609,21 +1611,21 @@ class Sn {
|
|
|
1609
1611
|
return (l = this.columnMaxWidths.get(e)) !== null && l !== void 0 ? l : 0;
|
|
1610
1612
|
}
|
|
1611
1613
|
resizeColumnWidth(e, l, n, o) {
|
|
1612
|
-
let
|
|
1613
|
-
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((
|
|
1614
|
-
var
|
|
1615
|
-
|
|
1614
|
+
let i = this.columnWidths, r = !0, u = /* @__PURE__ */ new Map();
|
|
1615
|
+
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((c) => {
|
|
1616
|
+
var a, d;
|
|
1617
|
+
c.key === n ? (u.set(c.key, o), r = !1) : r ? u.set(c.key, (a = i.get(c.key)) !== null && a !== void 0 ? a : 0) : u.set(c.key, (d = c.props.width) !== null && d !== void 0 ? d : l.get(c.key));
|
|
1616
1618
|
}), u;
|
|
1617
1619
|
}
|
|
1618
1620
|
buildColumnWidths(e, l, n) {
|
|
1619
|
-
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(),
|
|
1620
|
-
...
|
|
1621
|
-
key:
|
|
1622
|
-
})), n, (
|
|
1623
|
-
let u = l.columns[
|
|
1624
|
-
this.columnWidths.set(u,
|
|
1625
|
-
var
|
|
1626
|
-
this.columnMinWidths.set(u,
|
|
1621
|
+
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Mn(e, l.columns.map((i) => ({
|
|
1622
|
+
...i.props,
|
|
1623
|
+
key: i.key
|
|
1624
|
+
})), n, (i) => this.getDefaultWidth(l.columns[i]), (i) => this.getDefaultMinWidth(l.columns[i])).forEach((i, r) => {
|
|
1625
|
+
let u = l.columns[r].key, c = l.columns[r];
|
|
1626
|
+
this.columnWidths.set(u, i);
|
|
1627
|
+
var a;
|
|
1628
|
+
this.columnMinWidths.set(u, al((a = c.props.minWidth) !== null && a !== void 0 ? a : this.getDefaultMinWidth(c), e)), this.columnMaxWidths.set(u, rl(c.props.maxWidth, e));
|
|
1627
1629
|
}), this.columnWidths;
|
|
1628
1630
|
}
|
|
1629
1631
|
constructor(e) {
|
|
@@ -1634,50 +1636,50 @@ class Sn {
|
|
|
1634
1636
|
this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
|
|
1635
1637
|
}
|
|
1636
1638
|
}
|
|
1637
|
-
function
|
|
1638
|
-
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [
|
|
1639
|
+
function Fn(t, e) {
|
|
1640
|
+
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [i, r] = Z(null), u = N(() => new Tn({
|
|
1639
1641
|
getDefaultWidth: l,
|
|
1640
1642
|
getDefaultMinWidth: n
|
|
1641
1643
|
}), [
|
|
1642
1644
|
l,
|
|
1643
1645
|
n
|
|
1644
|
-
]), [
|
|
1646
|
+
]), [c, a] = N(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
|
|
1645
1647
|
e.collection.columns,
|
|
1646
1648
|
u
|
|
1647
|
-
]), [
|
|
1649
|
+
]), [d, s] = Z(() => u.getInitialUncontrolledWidths(a)), [p, f] = Z(e.collection.columns);
|
|
1648
1650
|
if (e.collection.columns !== p) {
|
|
1649
|
-
if (e.collection.columns.length !== p.length || e.collection.columns.some((
|
|
1650
|
-
let
|
|
1651
|
-
|
|
1651
|
+
if (e.collection.columns.length !== p.length || e.collection.columns.some((m, $) => m.key !== p[$].key)) {
|
|
1652
|
+
let m = u.getInitialUncontrolledWidths(a);
|
|
1653
|
+
s(m);
|
|
1652
1654
|
}
|
|
1653
1655
|
f(e.collection.columns);
|
|
1654
1656
|
}
|
|
1655
|
-
let h = N(() => u.recombineColumns(e.collection.columns,
|
|
1657
|
+
let h = N(() => u.recombineColumns(e.collection.columns, d, a, c), [
|
|
1656
1658
|
e.collection.columns,
|
|
1657
|
-
c,
|
|
1658
1659
|
d,
|
|
1659
|
-
|
|
1660
|
+
a,
|
|
1661
|
+
c,
|
|
1660
1662
|
u
|
|
1661
|
-
]),
|
|
1662
|
-
|
|
1663
|
+
]), g = V((m) => {
|
|
1664
|
+
r(m);
|
|
1663
1665
|
}, [
|
|
1664
|
-
|
|
1665
|
-
]),
|
|
1666
|
-
let
|
|
1667
|
-
|
|
1668
|
-
|
|
1666
|
+
r
|
|
1667
|
+
]), y = V((m, $) => {
|
|
1668
|
+
let b = u.resizeColumnWidth(e.collection, d, m, $), w = new Map(Array.from(a).map(([C]) => [
|
|
1669
|
+
C,
|
|
1670
|
+
b.get(C)
|
|
1669
1671
|
]));
|
|
1670
|
-
return
|
|
1672
|
+
return w.set(m, $), s(w), b;
|
|
1671
1673
|
}, [
|
|
1672
|
-
d,
|
|
1673
1674
|
a,
|
|
1675
|
+
s,
|
|
1674
1676
|
u,
|
|
1675
1677
|
e.collection,
|
|
1676
|
-
|
|
1677
|
-
]),
|
|
1678
|
-
|
|
1678
|
+
d
|
|
1679
|
+
]), v = V(() => {
|
|
1680
|
+
r(null);
|
|
1679
1681
|
}, [
|
|
1680
|
-
|
|
1682
|
+
r
|
|
1681
1683
|
]), x = N(() => u.buildColumnWidths(o, e.collection, h), [
|
|
1682
1684
|
o,
|
|
1683
1685
|
e.collection,
|
|
@@ -1685,83 +1687,83 @@ function En(t, e) {
|
|
|
1685
1687
|
u
|
|
1686
1688
|
]);
|
|
1687
1689
|
return N(() => ({
|
|
1688
|
-
resizingColumn:
|
|
1689
|
-
updateResizedColumns:
|
|
1690
|
-
startResize:
|
|
1691
|
-
endResize:
|
|
1692
|
-
getColumnWidth: (
|
|
1693
|
-
getColumnMinWidth: (
|
|
1694
|
-
getColumnMaxWidth: (
|
|
1690
|
+
resizingColumn: i,
|
|
1691
|
+
updateResizedColumns: y,
|
|
1692
|
+
startResize: g,
|
|
1693
|
+
endResize: v,
|
|
1694
|
+
getColumnWidth: (m) => u.getColumnWidth(m),
|
|
1695
|
+
getColumnMinWidth: (m) => u.getColumnMinWidth(m),
|
|
1696
|
+
getColumnMaxWidth: (m) => u.getColumnMaxWidth(m),
|
|
1695
1697
|
tableState: e,
|
|
1696
1698
|
columnWidths: x
|
|
1697
1699
|
}), [
|
|
1698
1700
|
u,
|
|
1699
1701
|
x,
|
|
1700
|
-
|
|
1702
|
+
i,
|
|
1703
|
+
y,
|
|
1704
|
+
g,
|
|
1701
1705
|
v,
|
|
1702
|
-
b,
|
|
1703
|
-
m,
|
|
1704
1706
|
e
|
|
1705
1707
|
]);
|
|
1706
1708
|
}
|
|
1707
|
-
function
|
|
1708
|
-
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState ||
|
|
1709
|
+
function In(t) {
|
|
1710
|
+
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || ht(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1709
1711
|
t.disabledKeys
|
|
1710
|
-
]),
|
|
1711
|
-
n.setFocusedKey = (
|
|
1712
|
-
if (l === "cell" &&
|
|
1713
|
-
let h = e.getItem(
|
|
1712
|
+
]), i = n.setFocusedKey;
|
|
1713
|
+
n.setFocusedKey = (c, a) => {
|
|
1714
|
+
if (l === "cell" && c != null) {
|
|
1715
|
+
let h = e.getItem(c);
|
|
1714
1716
|
if (h?.type === "item") {
|
|
1715
|
-
var
|
|
1716
|
-
let
|
|
1717
|
+
var d, s;
|
|
1718
|
+
let g = I(h, e);
|
|
1717
1719
|
var p, f;
|
|
1718
|
-
|
|
1720
|
+
a === "last" ? c = (p = (d = oe(g)) === null || d === void 0 ? void 0 : d.key) !== null && p !== void 0 ? p : null : c = (f = (s = ne(g)) === null || s === void 0 ? void 0 : s.key) !== null && f !== void 0 ? f : null;
|
|
1719
1721
|
}
|
|
1720
1722
|
}
|
|
1721
|
-
|
|
1723
|
+
i(c, a);
|
|
1722
1724
|
};
|
|
1723
|
-
let
|
|
1725
|
+
let r = N(() => new Dl(e, n), [
|
|
1724
1726
|
e,
|
|
1725
1727
|
n
|
|
1726
1728
|
]);
|
|
1727
1729
|
const u = M(null);
|
|
1728
|
-
return
|
|
1730
|
+
return se(() => {
|
|
1729
1731
|
if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
|
|
1730
|
-
const
|
|
1731
|
-
if (!
|
|
1732
|
+
const c = u.current.getItem(n.focusedKey), a = c?.parentKey != null && (c.type === "cell" || c.type === "rowheader" || c.type === "column") ? u.current.getItem(c.parentKey) : c;
|
|
1733
|
+
if (!a) {
|
|
1732
1734
|
n.setFocusedKey(null);
|
|
1733
1735
|
return;
|
|
1734
1736
|
}
|
|
1735
|
-
const
|
|
1736
|
-
let f = Math.min(p > 1 ? Math.max(
|
|
1737
|
+
const d = u.current.rows, s = e.rows, p = d.length - s.length;
|
|
1738
|
+
let f = Math.min(p > 1 ? Math.max(a.index - p + 1, 0) : a.index, s.length - 1), h = null;
|
|
1737
1739
|
for (; f >= 0; ) {
|
|
1738
|
-
if (!
|
|
1739
|
-
h =
|
|
1740
|
+
if (!r.isDisabled(s[f].key) && s[f].type !== "headerrow") {
|
|
1741
|
+
h = s[f];
|
|
1740
1742
|
break;
|
|
1741
1743
|
}
|
|
1742
|
-
f <
|
|
1744
|
+
f < s.length - 1 ? f++ : (f > a.index && (f = a.index), f--);
|
|
1743
1745
|
}
|
|
1744
1746
|
if (h) {
|
|
1745
|
-
const
|
|
1747
|
+
const g = h.hasChildNodes ? [
|
|
1746
1748
|
...I(h, e)
|
|
1747
|
-
] : [],
|
|
1748
|
-
n.setFocusedKey(
|
|
1749
|
+
] : [], y = h.hasChildNodes && a !== c && c && c.index < g.length ? g[c.index].key : h.key;
|
|
1750
|
+
n.setFocusedKey(y);
|
|
1749
1751
|
} else n.setFocusedKey(null);
|
|
1750
1752
|
}
|
|
1751
1753
|
u.current = e;
|
|
1752
1754
|
}, [
|
|
1753
1755
|
e,
|
|
1754
|
-
|
|
1756
|
+
r,
|
|
1755
1757
|
n,
|
|
1756
1758
|
n.focusedKey
|
|
1757
1759
|
]), {
|
|
1758
1760
|
collection: e,
|
|
1759
1761
|
disabledKeys: o,
|
|
1760
1762
|
isKeyboardNavigationDisabled: !1,
|
|
1761
|
-
selectionManager:
|
|
1763
|
+
selectionManager: r
|
|
1762
1764
|
};
|
|
1763
1765
|
}
|
|
1764
|
-
class
|
|
1766
|
+
class Wn {
|
|
1765
1767
|
*[Symbol.iterator]() {
|
|
1766
1768
|
yield* [
|
|
1767
1769
|
...this.rows
|
|
@@ -1814,152 +1816,152 @@ class An {
|
|
|
1814
1816
|
}
|
|
1815
1817
|
constructor(e) {
|
|
1816
1818
|
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
|
|
1817
|
-
let l = (
|
|
1818
|
-
let p = this.keyMap.get(
|
|
1819
|
-
e.visitNode && (
|
|
1820
|
-
let f = /* @__PURE__ */ new Set(), h = null,
|
|
1821
|
-
if (
|
|
1822
|
-
var
|
|
1823
|
-
for (let
|
|
1824
|
-
|
|
1819
|
+
let l = (s) => {
|
|
1820
|
+
let p = this.keyMap.get(s.key);
|
|
1821
|
+
e.visitNode && (s = e.visitNode(s)), this.keyMap.set(s.key, s);
|
|
1822
|
+
let f = /* @__PURE__ */ new Set(), h = null, g = !1;
|
|
1823
|
+
if (s.type === "item") {
|
|
1824
|
+
var y;
|
|
1825
|
+
for (let b of s.childNodes) if (((y = b.props) === null || y === void 0 ? void 0 : y.colSpan) !== void 0) {
|
|
1826
|
+
g = !0;
|
|
1825
1827
|
break;
|
|
1826
1828
|
}
|
|
1827
1829
|
}
|
|
1828
|
-
for (let
|
|
1829
|
-
if (
|
|
1830
|
-
var
|
|
1831
|
-
|
|
1832
|
-
var
|
|
1833
|
-
|
|
1830
|
+
for (let b of s.childNodes) {
|
|
1831
|
+
if (b.type === "cell" && g) {
|
|
1832
|
+
var v, x;
|
|
1833
|
+
b.colspan = (v = b.props) === null || v === void 0 ? void 0 : v.colSpan, b.colSpan = (x = b.props) === null || x === void 0 ? void 0 : x.colSpan;
|
|
1834
|
+
var m, $;
|
|
1835
|
+
b.colIndex = h ? ((m = h.colIndex) !== null && m !== void 0 ? m : h.index) + (($ = h.colSpan) !== null && $ !== void 0 ? $ : 1) : b.index;
|
|
1834
1836
|
}
|
|
1835
|
-
|
|
1837
|
+
b.type === "cell" && b.parentKey == null && (b.parentKey = s.key), f.add(b.key), h ? (h.nextKey = b.key, b.prevKey = h.key) : b.prevKey = null, l(b), h = b;
|
|
1836
1838
|
}
|
|
1837
1839
|
if (h && (h.nextKey = null), p)
|
|
1838
|
-
for (let
|
|
1839
|
-
}, n = (
|
|
1840
|
-
this.keyMap.delete(
|
|
1841
|
-
for (let p of
|
|
1840
|
+
for (let b of p.childNodes) f.has(b.key) || n(b);
|
|
1841
|
+
}, n = (s) => {
|
|
1842
|
+
this.keyMap.delete(s.key);
|
|
1843
|
+
for (let p of s.childNodes) this.keyMap.get(p.key) === p && n(p);
|
|
1842
1844
|
}, o = null;
|
|
1843
|
-
for (let [
|
|
1844
|
-
var
|
|
1845
|
+
for (let [s, p] of e.items.entries()) {
|
|
1846
|
+
var i, r, u, c, a, d;
|
|
1845
1847
|
let f = {
|
|
1846
1848
|
...p,
|
|
1847
|
-
level: (
|
|
1848
|
-
key: (
|
|
1849
|
+
level: (i = p.level) !== null && i !== void 0 ? i : 0,
|
|
1850
|
+
key: (r = p.key) !== null && r !== void 0 ? r : "row-" + s,
|
|
1849
1851
|
type: (u = p.type) !== null && u !== void 0 ? u : "row",
|
|
1850
|
-
value: (
|
|
1852
|
+
value: (c = p.value) !== null && c !== void 0 ? c : null,
|
|
1851
1853
|
hasChildNodes: !0,
|
|
1852
1854
|
childNodes: [
|
|
1853
1855
|
...p.childNodes
|
|
1854
1856
|
],
|
|
1855
1857
|
rendered: p.rendered,
|
|
1856
|
-
textValue: (
|
|
1857
|
-
index: (
|
|
1858
|
+
textValue: (a = p.textValue) !== null && a !== void 0 ? a : "",
|
|
1859
|
+
index: (d = p.index) !== null && d !== void 0 ? d : s
|
|
1858
1860
|
};
|
|
1859
1861
|
o ? (o.nextKey = f.key, f.prevKey = o.key) : f.prevKey = null, this.rows.push(f), l(f), o = f;
|
|
1860
1862
|
}
|
|
1861
1863
|
o && (o.nextKey = null);
|
|
1862
1864
|
}
|
|
1863
1865
|
}
|
|
1864
|
-
const
|
|
1865
|
-
let
|
|
1866
|
-
for (;
|
|
1867
|
-
function
|
|
1866
|
+
const ul = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1867
|
+
let Te = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1868
|
+
for (; ul === Te; ) Te = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1869
|
+
function sl(t, e) {
|
|
1868
1870
|
if (e.length === 0) return [];
|
|
1869
1871
|
let l = [], n = /* @__PURE__ */ new Map();
|
|
1870
|
-
for (let
|
|
1871
|
-
let
|
|
1872
|
-
|
|
1872
|
+
for (let d of e) {
|
|
1873
|
+
let s = d.parentKey, p = [
|
|
1874
|
+
d
|
|
1873
1875
|
];
|
|
1874
|
-
for (;
|
|
1875
|
-
let f = t.get(
|
|
1876
|
+
for (; s; ) {
|
|
1877
|
+
let f = t.get(s);
|
|
1876
1878
|
if (!f) break;
|
|
1877
1879
|
if (n.has(f)) {
|
|
1878
|
-
var o,
|
|
1879
|
-
(
|
|
1880
|
-
let { column: h, index:
|
|
1881
|
-
if (
|
|
1882
|
-
for (let
|
|
1883
|
-
for (let
|
|
1884
|
-
h[
|
|
1880
|
+
var o, i;
|
|
1881
|
+
(i = (o = f).colSpan) !== null && i !== void 0 || (o.colSpan = 0), f.colSpan++, f.colspan = f.colSpan;
|
|
1882
|
+
let { column: h, index: g } = n.get(f);
|
|
1883
|
+
if (g > p.length) break;
|
|
1884
|
+
for (let y = g; y < p.length; y++) h.splice(y, 0, null);
|
|
1885
|
+
for (let y = p.length; y < h.length; y++)
|
|
1886
|
+
h[y] && n.has(h[y]) && (n.get(h[y]).index = y);
|
|
1885
1887
|
} else
|
|
1886
1888
|
f.colSpan = 1, f.colspan = 1, p.push(f), n.set(f, {
|
|
1887
1889
|
column: p,
|
|
1888
1890
|
index: p.length - 1
|
|
1889
1891
|
});
|
|
1890
|
-
|
|
1892
|
+
s = f.parentKey;
|
|
1891
1893
|
}
|
|
1892
|
-
l.push(p),
|
|
1894
|
+
l.push(p), d.index = l.length - 1;
|
|
1893
1895
|
}
|
|
1894
|
-
let
|
|
1895
|
-
for (let
|
|
1896
|
-
let
|
|
1897
|
-
for (let p of
|
|
1896
|
+
let r = Math.max(...l.map((d) => d.length)), u = Array(r).fill(0).map(() => []), c = 0;
|
|
1897
|
+
for (let d of l) {
|
|
1898
|
+
let s = r - 1;
|
|
1899
|
+
for (let p of d) {
|
|
1898
1900
|
if (p) {
|
|
1899
|
-
let f = u[
|
|
1900
|
-
var
|
|
1901
|
-
return
|
|
1901
|
+
let f = u[s], h = f.reduce((g, y) => {
|
|
1902
|
+
var v;
|
|
1903
|
+
return g + ((v = y.colSpan) !== null && v !== void 0 ? v : 1);
|
|
1902
1904
|
}, 0);
|
|
1903
|
-
if (h <
|
|
1904
|
-
let
|
|
1905
|
+
if (h < c) {
|
|
1906
|
+
let g = {
|
|
1905
1907
|
type: "placeholder",
|
|
1906
1908
|
key: "placeholder-" + p.key,
|
|
1907
|
-
colspan:
|
|
1908
|
-
colSpan:
|
|
1909
|
+
colspan: c - h,
|
|
1910
|
+
colSpan: c - h,
|
|
1909
1911
|
index: h,
|
|
1910
1912
|
value: null,
|
|
1911
1913
|
rendered: null,
|
|
1912
|
-
level:
|
|
1914
|
+
level: s,
|
|
1913
1915
|
hasChildNodes: !1,
|
|
1914
1916
|
childNodes: [],
|
|
1915
1917
|
textValue: ""
|
|
1916
1918
|
};
|
|
1917
|
-
f.length > 0 && (f[f.length - 1].nextKey =
|
|
1919
|
+
f.length > 0 && (f[f.length - 1].nextKey = g.key, g.prevKey = f[f.length - 1].key), f.push(g);
|
|
1918
1920
|
}
|
|
1919
|
-
f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level =
|
|
1921
|
+
f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = s, p.colIndex = c, f.push(p);
|
|
1920
1922
|
}
|
|
1921
|
-
|
|
1923
|
+
s--;
|
|
1922
1924
|
}
|
|
1923
|
-
|
|
1925
|
+
c++;
|
|
1924
1926
|
}
|
|
1925
|
-
let
|
|
1926
|
-
for (let
|
|
1927
|
-
let
|
|
1927
|
+
let a = 0;
|
|
1928
|
+
for (let d of u) {
|
|
1929
|
+
let s = d.reduce((p, f) => {
|
|
1928
1930
|
var h;
|
|
1929
1931
|
return p + ((h = f.colSpan) !== null && h !== void 0 ? h : 1);
|
|
1930
1932
|
}, 0);
|
|
1931
|
-
if (
|
|
1933
|
+
if (s < e.length) {
|
|
1932
1934
|
let p = {
|
|
1933
1935
|
type: "placeholder",
|
|
1934
|
-
key: "placeholder-" +
|
|
1935
|
-
colSpan: e.length -
|
|
1936
|
-
colspan: e.length -
|
|
1937
|
-
index:
|
|
1936
|
+
key: "placeholder-" + d[d.length - 1].key,
|
|
1937
|
+
colSpan: e.length - s,
|
|
1938
|
+
colspan: e.length - s,
|
|
1939
|
+
index: s,
|
|
1938
1940
|
value: null,
|
|
1939
1941
|
rendered: null,
|
|
1940
|
-
level:
|
|
1942
|
+
level: a,
|
|
1941
1943
|
hasChildNodes: !1,
|
|
1942
1944
|
childNodes: [],
|
|
1943
1945
|
textValue: "",
|
|
1944
|
-
prevKey:
|
|
1946
|
+
prevKey: d[d.length - 1].key
|
|
1945
1947
|
};
|
|
1946
|
-
|
|
1948
|
+
d.push(p);
|
|
1947
1949
|
}
|
|
1948
|
-
|
|
1950
|
+
a++;
|
|
1949
1951
|
}
|
|
1950
|
-
return u.map((
|
|
1952
|
+
return u.map((d, s) => ({
|
|
1951
1953
|
type: "headerrow",
|
|
1952
|
-
key: "headerrow-" +
|
|
1953
|
-
index:
|
|
1954
|
+
key: "headerrow-" + s,
|
|
1955
|
+
index: s,
|
|
1954
1956
|
value: null,
|
|
1955
1957
|
rendered: null,
|
|
1956
1958
|
level: 0,
|
|
1957
1959
|
hasChildNodes: !0,
|
|
1958
|
-
childNodes:
|
|
1960
|
+
childNodes: d,
|
|
1959
1961
|
textValue: ""
|
|
1960
1962
|
}));
|
|
1961
1963
|
}
|
|
1962
|
-
class
|
|
1964
|
+
class Hn extends Wn {
|
|
1963
1965
|
*[Symbol.iterator]() {
|
|
1964
1966
|
yield* this.body.childNodes;
|
|
1965
1967
|
}
|
|
@@ -1981,11 +1983,11 @@ class Bn extends An {
|
|
|
1981
1983
|
}
|
|
1982
1984
|
getFirstKey() {
|
|
1983
1985
|
var e, l;
|
|
1984
|
-
return (l = (e =
|
|
1986
|
+
return (l = (e = ne(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1985
1987
|
}
|
|
1986
1988
|
getLastKey() {
|
|
1987
1989
|
var e, l;
|
|
1988
|
-
return (l = (e =
|
|
1990
|
+
return (l = (e = oe(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1989
1991
|
}
|
|
1990
1992
|
getItem(e) {
|
|
1991
1993
|
var l;
|
|
@@ -2007,20 +2009,20 @@ class Bn extends An {
|
|
|
2007
2009
|
let n = this.rowHeaderColumnKeys;
|
|
2008
2010
|
if (n) {
|
|
2009
2011
|
let o = [];
|
|
2010
|
-
for (let
|
|
2011
|
-
let
|
|
2012
|
-
if (n.has(
|
|
2012
|
+
for (let i of l.childNodes) {
|
|
2013
|
+
let r = this.columns[i.index];
|
|
2014
|
+
if (n.has(r.key) && i.textValue && o.push(i.textValue), o.length === n.size) break;
|
|
2013
2015
|
}
|
|
2014
2016
|
return o.join(" ");
|
|
2015
2017
|
}
|
|
2016
2018
|
return "";
|
|
2017
2019
|
}
|
|
2018
2020
|
constructor(e, l, n) {
|
|
2019
|
-
let o = /* @__PURE__ */ new Set(),
|
|
2021
|
+
let o = /* @__PURE__ */ new Set(), i = null, r = [];
|
|
2020
2022
|
if (n?.showSelectionCheckboxes) {
|
|
2021
|
-
let
|
|
2023
|
+
let s = {
|
|
2022
2024
|
type: "column",
|
|
2023
|
-
key:
|
|
2025
|
+
key: ul,
|
|
2024
2026
|
value: null,
|
|
2025
2027
|
textValue: "",
|
|
2026
2028
|
level: 0,
|
|
@@ -2032,12 +2034,12 @@ class Bn extends An {
|
|
|
2032
2034
|
isSelectionCell: !0
|
|
2033
2035
|
}
|
|
2034
2036
|
};
|
|
2035
|
-
|
|
2037
|
+
r.unshift(s);
|
|
2036
2038
|
}
|
|
2037
2039
|
if (n?.showDragButtons) {
|
|
2038
|
-
let
|
|
2040
|
+
let s = {
|
|
2039
2041
|
type: "column",
|
|
2040
|
-
key:
|
|
2042
|
+
key: Te,
|
|
2041
2043
|
value: null,
|
|
2042
2044
|
textValue: "",
|
|
2043
2045
|
level: 0,
|
|
@@ -2049,97 +2051,97 @@ class Bn extends An {
|
|
|
2049
2051
|
isDragButtonCell: !0
|
|
2050
2052
|
}
|
|
2051
2053
|
};
|
|
2052
|
-
|
|
2054
|
+
r.unshift(s);
|
|
2053
2055
|
}
|
|
2054
|
-
let u = [],
|
|
2055
|
-
switch (
|
|
2056
|
+
let u = [], c = /* @__PURE__ */ new Map(), a = (s) => {
|
|
2057
|
+
switch (s.type) {
|
|
2056
2058
|
case "body":
|
|
2057
|
-
|
|
2059
|
+
i = s;
|
|
2058
2060
|
break;
|
|
2059
2061
|
case "column":
|
|
2060
|
-
|
|
2062
|
+
c.set(s.key, s), s.hasChildNodes || (r.push(s), s.props.isRowHeader && o.add(s.key));
|
|
2061
2063
|
break;
|
|
2062
2064
|
case "item":
|
|
2063
|
-
u.push(
|
|
2065
|
+
u.push(s);
|
|
2064
2066
|
return;
|
|
2065
2067
|
}
|
|
2066
|
-
for (let p of
|
|
2068
|
+
for (let p of s.childNodes) a(p);
|
|
2067
2069
|
};
|
|
2068
|
-
for (let
|
|
2069
|
-
let
|
|
2070
|
-
if (
|
|
2071
|
-
columnCount:
|
|
2070
|
+
for (let s of e) a(s);
|
|
2071
|
+
let d = sl(c, r);
|
|
2072
|
+
if (d.forEach((s, p) => u.splice(p, 0, s)), super({
|
|
2073
|
+
columnCount: r.length,
|
|
2072
2074
|
items: u,
|
|
2073
|
-
visitNode: (
|
|
2074
|
-
}), this._size = 0, this.columns =
|
|
2075
|
-
...
|
|
2075
|
+
visitNode: (s) => (s.column = r[s.index], s)
|
|
2076
|
+
}), this._size = 0, this.columns = r, this.rowHeaderColumnKeys = o, this.body = i, this.headerRows = d, this._size = [
|
|
2077
|
+
...i.childNodes
|
|
2076
2078
|
].length, this.rowHeaderColumnKeys.size === 0) {
|
|
2077
|
-
let
|
|
2079
|
+
let s = this.columns.find((p) => {
|
|
2078
2080
|
var f, h;
|
|
2079
2081
|
return !(!((f = p.props) === null || f === void 0) && f.isDragButtonCell) && !(!((h = p.props) === null || h === void 0) && h.isSelectionCell);
|
|
2080
2082
|
});
|
|
2081
|
-
|
|
2083
|
+
s && this.rowHeaderColumnKeys.add(s.key);
|
|
2082
2084
|
}
|
|
2083
2085
|
}
|
|
2084
2086
|
}
|
|
2085
|
-
const
|
|
2087
|
+
const Vn = {
|
|
2086
2088
|
ascending: "descending",
|
|
2087
2089
|
descending: "ascending"
|
|
2088
2090
|
};
|
|
2089
|
-
function
|
|
2090
|
-
let [e, l] = Z(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons:
|
|
2091
|
+
function jn(t) {
|
|
2092
|
+
let [e, l] = Z(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: i } = t, r = N(() => ({
|
|
2091
2093
|
showSelectionCheckboxes: o && n !== "none",
|
|
2092
|
-
showDragButtons:
|
|
2094
|
+
showDragButtons: i,
|
|
2093
2095
|
selectionMode: n,
|
|
2094
2096
|
columns: []
|
|
2095
2097
|
}), [
|
|
2096
2098
|
t.children,
|
|
2097
2099
|
o,
|
|
2098
2100
|
n,
|
|
2099
|
-
r
|
|
2100
|
-
]), u = ml(t, L((a) => new Bn(a, null, i), [
|
|
2101
2101
|
i
|
|
2102
|
-
]),
|
|
2102
|
+
]), u = Cl(t, V((s) => new Hn(s, null, r), [
|
|
2103
|
+
r
|
|
2104
|
+
]), r), { disabledKeys: c, selectionManager: a } = In({
|
|
2103
2105
|
...t,
|
|
2104
2106
|
collection: u,
|
|
2105
2107
|
disabledBehavior: t.disabledBehavior || "selection"
|
|
2106
2108
|
});
|
|
2107
|
-
var
|
|
2109
|
+
var d;
|
|
2108
2110
|
return {
|
|
2109
2111
|
collection: u,
|
|
2110
|
-
disabledKeys:
|
|
2111
|
-
selectionManager:
|
|
2112
|
+
disabledKeys: c,
|
|
2113
|
+
selectionManager: a,
|
|
2112
2114
|
showSelectionCheckboxes: t.showSelectionCheckboxes || !1,
|
|
2113
|
-
sortDescriptor: (
|
|
2115
|
+
sortDescriptor: (d = t.sortDescriptor) !== null && d !== void 0 ? d : null,
|
|
2114
2116
|
isKeyboardNavigationDisabled: u.size === 0 || e,
|
|
2115
2117
|
setKeyboardNavigationDisabled: l,
|
|
2116
|
-
sort(
|
|
2118
|
+
sort(s, p) {
|
|
2117
2119
|
var f, h;
|
|
2118
2120
|
(h = t.onSortChange) === null || h === void 0 || h.call(t, {
|
|
2119
|
-
column:
|
|
2120
|
-
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) ===
|
|
2121
|
+
column: s,
|
|
2122
|
+
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === s ? Vn[t.sortDescriptor.direction] : "ascending")
|
|
2121
2123
|
});
|
|
2122
2124
|
}
|
|
2123
2125
|
};
|
|
2124
2126
|
}
|
|
2125
|
-
function
|
|
2127
|
+
function On(t) {
|
|
2126
2128
|
return t && t.__esModule ? t.default : t;
|
|
2127
2129
|
}
|
|
2128
|
-
class
|
|
2130
|
+
class Ln extends El {
|
|
2129
2131
|
addNode(e) {
|
|
2130
2132
|
super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
|
|
2131
2133
|
}
|
|
2132
2134
|
commit(e, l, n = !1) {
|
|
2133
2135
|
this.updateColumns(n), this.rows = [];
|
|
2134
|
-
for (let
|
|
2135
|
-
let u =
|
|
2136
|
+
for (let r of this.getChildren(this.body.key)) {
|
|
2137
|
+
let u = r.lastChildKey;
|
|
2136
2138
|
if (u != null) {
|
|
2137
|
-
let
|
|
2138
|
-
var o,
|
|
2139
|
-
let
|
|
2140
|
-
if (
|
|
2139
|
+
let c = this.getItem(u);
|
|
2140
|
+
var o, i;
|
|
2141
|
+
let a = ((o = c.colIndex) !== null && o !== void 0 ? o : c.index) + ((i = c.colSpan) !== null && i !== void 0 ? i : 1);
|
|
2142
|
+
if (a !== this.columns.length && !n) throw new Error(`Cell count must match column count. Found ${a} cells and ${this.columns.length} columns.`);
|
|
2141
2143
|
}
|
|
2142
|
-
this.rows.push(
|
|
2144
|
+
this.rows.push(r);
|
|
2143
2145
|
}
|
|
2144
2146
|
super.commit(e, l, n);
|
|
2145
2147
|
}
|
|
@@ -2152,10 +2154,10 @@ class Mn extends vl {
|
|
|
2152
2154
|
l.set(o.key, o), o.hasChildNodes || (o.index = this.columns.length, this.columns.push(o), o.props.isRowHeader && this.rowHeaderColumnKeys.add(o.key));
|
|
2153
2155
|
break;
|
|
2154
2156
|
}
|
|
2155
|
-
for (let
|
|
2157
|
+
for (let i of this.getChildren(o.key)) n(i);
|
|
2156
2158
|
};
|
|
2157
2159
|
for (let o of this.getChildren(this.head.key)) n(o);
|
|
2158
|
-
if (this.headerRows =
|
|
2160
|
+
if (this.headerRows = sl(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
|
|
2159
2161
|
}
|
|
2160
2162
|
get columnCount() {
|
|
2161
2163
|
return this.columns.length;
|
|
@@ -2179,8 +2181,8 @@ class Mn extends vl {
|
|
|
2179
2181
|
let n = this.getItem(e);
|
|
2180
2182
|
var o;
|
|
2181
2183
|
if (n?.type === "column") return (o = n.prevKey) !== null && o !== void 0 ? o : null;
|
|
2182
|
-
let
|
|
2183
|
-
return
|
|
2184
|
+
let i = super.getKeyBefore(e);
|
|
2185
|
+
return i != null && ((l = this.getItem(i)) === null || l === void 0 ? void 0 : l.type) === "tablebody" ? null : i;
|
|
2184
2186
|
}
|
|
2185
2187
|
getChildren(e) {
|
|
2186
2188
|
if (!this.getItem(e)) {
|
|
@@ -2198,229 +2200,229 @@ class Mn extends vl {
|
|
|
2198
2200
|
if (!l) return "";
|
|
2199
2201
|
if (l.textValue) return l.textValue;
|
|
2200
2202
|
let n = this.rowHeaderColumnKeys, o = [];
|
|
2201
|
-
for (let
|
|
2202
|
-
let
|
|
2203
|
-
if (n.has(
|
|
2203
|
+
for (let i of this.getChildren(e)) {
|
|
2204
|
+
let r = this.columns[i.index];
|
|
2205
|
+
if (n.has(r.key) && i.textValue && o.push(i.textValue), o.length === n.size) break;
|
|
2204
2206
|
}
|
|
2205
2207
|
return o.join(" ");
|
|
2206
2208
|
}
|
|
2207
2209
|
constructor(...e) {
|
|
2208
|
-
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new
|
|
2210
|
+
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new tt("tableheader", -1), this.body = new tt("tablebody", -2), this.columnsDirty = !0;
|
|
2209
2211
|
}
|
|
2210
2212
|
}
|
|
2211
|
-
const
|
|
2212
|
-
let n =
|
|
2213
|
-
|
|
2214
|
-
let
|
|
2215
|
-
for (;
|
|
2216
|
-
|
|
2213
|
+
const Le = /* @__PURE__ */ de(null), Un = /* @__PURE__ */ X(function(e, l) {
|
|
2214
|
+
let n = ce(l), o = M(null), i = M(null), [r, u] = Z(0);
|
|
2215
|
+
nt(() => {
|
|
2216
|
+
let a = o.current;
|
|
2217
|
+
for (; a && a !== n.current && !Fl(a); ) a = a.parentElement;
|
|
2218
|
+
i.current = a;
|
|
2217
2219
|
}, [
|
|
2218
2220
|
n
|
|
2219
|
-
]),
|
|
2220
|
-
ref:
|
|
2221
|
+
]), Tl({
|
|
2222
|
+
ref: i,
|
|
2221
2223
|
box: "border-box",
|
|
2222
2224
|
onResize() {
|
|
2223
|
-
var
|
|
2224
|
-
u((
|
|
2225
|
+
var a, d;
|
|
2226
|
+
u((d = (a = i.current) === null || a === void 0 ? void 0 : a.clientWidth) !== null && d !== void 0 ? d : 0);
|
|
2225
2227
|
}
|
|
2226
|
-
}),
|
|
2227
|
-
var
|
|
2228
|
-
u((
|
|
2228
|
+
}), nt(() => {
|
|
2229
|
+
var a, d;
|
|
2230
|
+
u((d = (a = i.current) === null || a === void 0 ? void 0 : a.clientWidth) !== null && d !== void 0 ? d : 0);
|
|
2229
2231
|
}, []);
|
|
2230
|
-
let
|
|
2232
|
+
let c = N(() => ({
|
|
2231
2233
|
tableRef: o,
|
|
2232
|
-
scrollRef:
|
|
2233
|
-
tableWidth:
|
|
2234
|
-
useTableColumnResizeState:
|
|
2234
|
+
scrollRef: i,
|
|
2235
|
+
tableWidth: r,
|
|
2236
|
+
useTableColumnResizeState: Fn,
|
|
2235
2237
|
onResizeStart: e.onResizeStart,
|
|
2236
2238
|
onResize: e.onResize,
|
|
2237
2239
|
onResizeEnd: e.onResizeEnd
|
|
2238
2240
|
}), [
|
|
2239
2241
|
o,
|
|
2240
|
-
|
|
2242
|
+
r,
|
|
2241
2243
|
e.onResizeStart,
|
|
2242
2244
|
e.onResize,
|
|
2243
2245
|
e.onResizeEnd
|
|
2244
2246
|
]);
|
|
2245
|
-
return /* @__PURE__ */
|
|
2246
|
-
...
|
|
2247
|
+
return /* @__PURE__ */ k.createElement("div", {
|
|
2248
|
+
...J(e, {
|
|
2247
2249
|
global: !0
|
|
2248
2250
|
}),
|
|
2249
2251
|
ref: n,
|
|
2250
2252
|
className: e.className || "react-aria-ResizableTableContainer",
|
|
2251
2253
|
style: e.style,
|
|
2252
2254
|
onScroll: e.onScroll
|
|
2253
|
-
}, /* @__PURE__ */
|
|
2254
|
-
value:
|
|
2255
|
+
}, /* @__PURE__ */ k.createElement(Le.Provider, {
|
|
2256
|
+
value: c
|
|
2255
2257
|
}, e.children));
|
|
2256
|
-
}),
|
|
2258
|
+
}), Yn = /* @__PURE__ */ de(null), ee = /* @__PURE__ */ de(null), Ue = /* @__PURE__ */ de(null), Xn = /* @__PURE__ */ X(function(e, l) {
|
|
2257
2259
|
var n;
|
|
2258
|
-
[e, l] =
|
|
2259
|
-
let o =
|
|
2260
|
-
selectionBehavior:
|
|
2261
|
-
selectionMode:
|
|
2260
|
+
[e, l] = Rl(e, l, Yn);
|
|
2261
|
+
let o = ht(e), { selectionBehavior: i, selectionMode: r, disallowEmptySelection: u } = o, c = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), a = N(() => ({
|
|
2262
|
+
selectionBehavior: r === "none" ? null : i,
|
|
2263
|
+
selectionMode: r,
|
|
2262
2264
|
disallowEmptySelection: u,
|
|
2263
|
-
allowsDragging:
|
|
2265
|
+
allowsDragging: c
|
|
2264
2266
|
}), [
|
|
2265
|
-
r,
|
|
2266
2267
|
i,
|
|
2268
|
+
r,
|
|
2267
2269
|
u,
|
|
2268
|
-
|
|
2269
|
-
]),
|
|
2270
|
-
value:
|
|
2271
|
-
}, /* @__PURE__ */
|
|
2272
|
-
return /* @__PURE__ */
|
|
2273
|
-
content:
|
|
2274
|
-
createCollection: () => new
|
|
2275
|
-
}, (
|
|
2270
|
+
c
|
|
2271
|
+
]), d = /* @__PURE__ */ k.createElement(dl.Provider, {
|
|
2272
|
+
value: a
|
|
2273
|
+
}, /* @__PURE__ */ k.createElement(De, e));
|
|
2274
|
+
return /* @__PURE__ */ k.createElement(Sl, {
|
|
2275
|
+
content: d,
|
|
2276
|
+
createCollection: () => new Ln()
|
|
2277
|
+
}, (s) => /* @__PURE__ */ k.createElement(Gn, {
|
|
2276
2278
|
props: e,
|
|
2277
2279
|
forwardedRef: l,
|
|
2278
2280
|
selectionState: o,
|
|
2279
|
-
collection:
|
|
2281
|
+
collection: s
|
|
2280
2282
|
}));
|
|
2281
2283
|
});
|
|
2282
|
-
function
|
|
2283
|
-
let o =
|
|
2284
|
-
e =
|
|
2284
|
+
function Gn({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
2285
|
+
let o = R(Le);
|
|
2286
|
+
e = ce(N(() => Al(e, o?.tableRef), [
|
|
2285
2287
|
e,
|
|
2286
2288
|
o?.tableRef
|
|
2287
2289
|
]));
|
|
2288
|
-
let
|
|
2290
|
+
let i = jn({
|
|
2289
2291
|
...t,
|
|
2290
2292
|
collection: n,
|
|
2291
2293
|
children: void 0,
|
|
2292
2294
|
UNSAFE_selectionState: l
|
|
2293
|
-
}), { isVirtualized:
|
|
2295
|
+
}), { isVirtualized: r, layoutDelegate: u, dropTargetDelegate: c, CollectionRoot: a } = R(Q), { dragAndDropHooks: d } = t, { gridProps: s } = xn({
|
|
2294
2296
|
...t,
|
|
2295
2297
|
layoutDelegate: u,
|
|
2296
|
-
isVirtualized:
|
|
2297
|
-
},
|
|
2298
|
-
|
|
2299
|
-
process.env.NODE_ENV !== "production" && (
|
|
2298
|
+
isVirtualized: r
|
|
2299
|
+
}, i, e), p = i.selectionManager, f = !!d?.useDraggableCollectionState, h = !!d?.useDroppableCollectionState, g = M(f), y = M(h);
|
|
2300
|
+
se(() => {
|
|
2301
|
+
process.env.NODE_ENV !== "production" && (g.current !== f && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), y.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
2300
2302
|
}, [
|
|
2301
2303
|
f,
|
|
2302
2304
|
h
|
|
2303
2305
|
]);
|
|
2304
|
-
let
|
|
2305
|
-
if (f &&
|
|
2306
|
-
|
|
2306
|
+
let v, x, m, $ = !1, b = null, w = M(null);
|
|
2307
|
+
if (f && d) {
|
|
2308
|
+
v = d.useDraggableCollectionState({
|
|
2307
2309
|
collection: n,
|
|
2308
2310
|
selectionManager: p,
|
|
2309
|
-
preview:
|
|
2310
|
-
}),
|
|
2311
|
-
let
|
|
2312
|
-
|
|
2313
|
-
ref:
|
|
2314
|
-
},
|
|
2315
|
-
}
|
|
2316
|
-
if (h &&
|
|
2317
|
-
x =
|
|
2311
|
+
preview: d.renderDragPreview ? w : void 0
|
|
2312
|
+
}), d.useDraggableCollection({}, v, e);
|
|
2313
|
+
let L = d.DragPreview;
|
|
2314
|
+
b = d.renderDragPreview ? /* @__PURE__ */ k.createElement(L, {
|
|
2315
|
+
ref: w
|
|
2316
|
+
}, d.renderDragPreview) : null;
|
|
2317
|
+
}
|
|
2318
|
+
if (h && d) {
|
|
2319
|
+
x = d.useDroppableCollectionState({
|
|
2318
2320
|
collection: n,
|
|
2319
2321
|
selectionManager: p
|
|
2320
2322
|
});
|
|
2321
|
-
let
|
|
2323
|
+
let L = new zl({
|
|
2322
2324
|
collection: n,
|
|
2323
2325
|
disabledKeys: p.disabledKeys,
|
|
2324
2326
|
disabledBehavior: p.disabledBehavior,
|
|
2325
2327
|
ref: e,
|
|
2326
2328
|
layoutDelegate: u
|
|
2327
|
-
}),
|
|
2328
|
-
|
|
2329
|
-
keyboardDelegate:
|
|
2330
|
-
dropTargetDelegate:
|
|
2329
|
+
}), te = d.dropTargetDelegate || c || new d.ListDropTargetDelegate(n.rows, e);
|
|
2330
|
+
m = d.useDroppableCollection({
|
|
2331
|
+
keyboardDelegate: L,
|
|
2332
|
+
dropTargetDelegate: te
|
|
2331
2333
|
}, x, e), $ = x.isDropTarget({
|
|
2332
2334
|
type: "root"
|
|
2333
2335
|
});
|
|
2334
2336
|
}
|
|
2335
|
-
let { focusProps:
|
|
2337
|
+
let { focusProps: C, isFocused: B, isFocusVisible: P } = me(), E = re({
|
|
2336
2338
|
className: t.className,
|
|
2337
2339
|
style: t.style,
|
|
2338
2340
|
defaultClassName: "react-aria-Table",
|
|
2339
2341
|
values: {
|
|
2340
2342
|
isDropTarget: $,
|
|
2341
|
-
isFocused:
|
|
2342
|
-
isFocusVisible:
|
|
2343
|
-
state:
|
|
2343
|
+
isFocused: B,
|
|
2344
|
+
isFocusVisible: P,
|
|
2345
|
+
state: i
|
|
2344
2346
|
}
|
|
2345
|
-
}),
|
|
2346
|
-
o && (
|
|
2347
|
+
}), W = !!(f && !v?.isDisabled), K = E.style, T = null;
|
|
2348
|
+
o && (T = o.useTableColumnResizeState({
|
|
2347
2349
|
tableWidth: o.tableWidth
|
|
2348
|
-
},
|
|
2349
|
-
...
|
|
2350
|
+
}, i), r || (K = {
|
|
2351
|
+
...K,
|
|
2350
2352
|
tableLayout: "fixed",
|
|
2351
2353
|
width: "fit-content"
|
|
2352
2354
|
}));
|
|
2353
|
-
let
|
|
2355
|
+
let O = j("table"), F = J(t, {
|
|
2354
2356
|
global: !0
|
|
2355
2357
|
});
|
|
2356
|
-
var
|
|
2357
|
-
return /* @__PURE__ */
|
|
2358
|
+
var Y;
|
|
2359
|
+
return /* @__PURE__ */ k.createElement(Ae, {
|
|
2358
2360
|
values: [
|
|
2359
2361
|
[
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
+
ee,
|
|
2363
|
+
i
|
|
2362
2364
|
],
|
|
2363
2365
|
[
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
+
Ue,
|
|
2367
|
+
T
|
|
2366
2368
|
],
|
|
2367
2369
|
[
|
|
2368
|
-
|
|
2370
|
+
ge,
|
|
2369
2371
|
{
|
|
2370
|
-
dragAndDropHooks:
|
|
2371
|
-
dragState:
|
|
2372
|
+
dragAndDropHooks: d,
|
|
2373
|
+
dragState: v,
|
|
2372
2374
|
dropState: x
|
|
2373
2375
|
}
|
|
2374
2376
|
],
|
|
2375
2377
|
[
|
|
2376
|
-
|
|
2378
|
+
Pl,
|
|
2377
2379
|
{
|
|
2378
|
-
render:
|
|
2380
|
+
render: to
|
|
2379
2381
|
}
|
|
2380
2382
|
]
|
|
2381
2383
|
]
|
|
2382
|
-
}, /* @__PURE__ */
|
|
2383
|
-
...
|
|
2384
|
-
style:
|
|
2384
|
+
}, /* @__PURE__ */ k.createElement(Ul, null, /* @__PURE__ */ k.createElement(O, {
|
|
2385
|
+
...H(F, E, s, C, m?.collectionProps),
|
|
2386
|
+
style: K,
|
|
2385
2387
|
ref: e,
|
|
2386
2388
|
slot: t.slot || void 0,
|
|
2387
2389
|
onScroll: t.onScroll,
|
|
2388
|
-
"data-allows-dragging":
|
|
2390
|
+
"data-allows-dragging": W || void 0,
|
|
2389
2391
|
"data-drop-target": $ || void 0,
|
|
2390
|
-
"data-focused":
|
|
2391
|
-
"data-focus-visible":
|
|
2392
|
-
}, /* @__PURE__ */
|
|
2392
|
+
"data-focused": B || void 0,
|
|
2393
|
+
"data-focus-visible": P || void 0
|
|
2394
|
+
}, /* @__PURE__ */ k.createElement(a, {
|
|
2393
2395
|
collection: n,
|
|
2394
|
-
scrollRef: (
|
|
2395
|
-
persistedKeys:
|
|
2396
|
-
}))),
|
|
2396
|
+
scrollRef: (Y = o?.scrollRef) !== null && Y !== void 0 ? Y : e,
|
|
2397
|
+
persistedKeys: Kl(p, d, x)
|
|
2398
|
+
}))), b);
|
|
2397
2399
|
}
|
|
2398
|
-
function
|
|
2399
|
-
let { isVirtualized: e } =
|
|
2400
|
+
function j(t) {
|
|
2401
|
+
let { isVirtualized: e } = R(Q);
|
|
2400
2402
|
return e ? "div" : t;
|
|
2401
2403
|
}
|
|
2402
|
-
const
|
|
2403
|
-
function
|
|
2404
|
-
return
|
|
2404
|
+
const dl = /* @__PURE__ */ de(null);
|
|
2405
|
+
function cl() {
|
|
2406
|
+
return R(dl);
|
|
2405
2407
|
}
|
|
2406
|
-
const
|
|
2407
|
-
let l =
|
|
2408
|
+
const qn = /* @__PURE__ */ We("tableheader", (t, e) => {
|
|
2409
|
+
let l = R(ee).collection, n = kl({
|
|
2408
2410
|
items: l.headerRows,
|
|
2409
|
-
children:
|
|
2410
|
-
switch (
|
|
2411
|
+
children: V((a) => {
|
|
2412
|
+
switch (a.type) {
|
|
2411
2413
|
case "headerrow":
|
|
2412
|
-
return /* @__PURE__ */
|
|
2413
|
-
item:
|
|
2414
|
+
return /* @__PURE__ */ k.createElement(Zn, {
|
|
2415
|
+
item: a
|
|
2414
2416
|
});
|
|
2415
2417
|
default:
|
|
2416
|
-
throw new Error("Unsupported node type in TableHeader: " +
|
|
2418
|
+
throw new Error("Unsupported node type in TableHeader: " + a.type);
|
|
2417
2419
|
}
|
|
2418
2420
|
}, [])
|
|
2419
|
-
}), o =
|
|
2421
|
+
}), o = j("thead"), { rowGroupProps: i } = il(), { hoverProps: r, isHovered: u } = Ce({
|
|
2420
2422
|
onHoverStart: t.onHoverStart,
|
|
2421
2423
|
onHoverChange: t.onHoverChange,
|
|
2422
2424
|
onHoverEnd: t.onHoverEnd
|
|
2423
|
-
}),
|
|
2425
|
+
}), c = re({
|
|
2424
2426
|
className: t.className,
|
|
2425
2427
|
style: t.style,
|
|
2426
2428
|
defaultClassName: "react-aria-TableHeader",
|
|
@@ -2428,48 +2430,48 @@ const Wn = /* @__PURE__ */ Ne("tableheader", (t, e) => {
|
|
|
2428
2430
|
isHovered: u
|
|
2429
2431
|
}
|
|
2430
2432
|
});
|
|
2431
|
-
return /* @__PURE__ */
|
|
2432
|
-
...
|
|
2433
|
+
return /* @__PURE__ */ k.createElement(o, {
|
|
2434
|
+
...H(J(t, {
|
|
2433
2435
|
global: !0
|
|
2434
|
-
}),
|
|
2435
|
-
...
|
|
2436
|
+
}), i, r),
|
|
2437
|
+
...c,
|
|
2436
2438
|
ref: e,
|
|
2437
2439
|
"data-hovered": u || void 0
|
|
2438
2440
|
}, n);
|
|
2439
|
-
}, (t) => /* @__PURE__ */
|
|
2441
|
+
}, (t) => /* @__PURE__ */ k.createElement(De, {
|
|
2440
2442
|
dependencies: t.dependencies,
|
|
2441
2443
|
items: t.columns
|
|
2442
2444
|
}, t.children));
|
|
2443
|
-
function
|
|
2444
|
-
let e = M(null), l =
|
|
2445
|
+
function Zn({ item: t }) {
|
|
2446
|
+
let e = M(null), l = R(ee), { isVirtualized: n, CollectionBranch: o } = R(Q), { rowProps: i } = Sn({
|
|
2445
2447
|
node: t,
|
|
2446
2448
|
isVirtualized: n
|
|
2447
|
-
}, l, e), { checkboxProps:
|
|
2448
|
-
return /* @__PURE__ */
|
|
2449
|
-
...
|
|
2449
|
+
}, l, e), { checkboxProps: r } = Rn(l), u = j("tr");
|
|
2450
|
+
return /* @__PURE__ */ k.createElement(u, {
|
|
2451
|
+
...i,
|
|
2450
2452
|
ref: e
|
|
2451
|
-
}, /* @__PURE__ */
|
|
2453
|
+
}, /* @__PURE__ */ k.createElement(Ae, {
|
|
2452
2454
|
values: [
|
|
2453
2455
|
[
|
|
2454
|
-
|
|
2456
|
+
ft,
|
|
2455
2457
|
{
|
|
2456
2458
|
slots: {
|
|
2457
|
-
selection:
|
|
2459
|
+
selection: r
|
|
2458
2460
|
}
|
|
2459
2461
|
}
|
|
2460
2462
|
]
|
|
2461
2463
|
]
|
|
2462
|
-
}, /* @__PURE__ */
|
|
2464
|
+
}, /* @__PURE__ */ k.createElement(o, {
|
|
2463
2465
|
collection: l.collection,
|
|
2464
2466
|
parent: t
|
|
2465
2467
|
})));
|
|
2466
2468
|
}
|
|
2467
|
-
const
|
|
2469
|
+
const Qn = /* @__PURE__ */ mt("column", (t, e, l) => {
|
|
2468
2470
|
var n, o;
|
|
2469
|
-
let
|
|
2471
|
+
let i = ce(e), r = R(ee), { isVirtualized: u } = R(Q), { columnHeaderProps: c } = Dn({
|
|
2470
2472
|
node: l,
|
|
2471
2473
|
isVirtualized: u
|
|
2472
|
-
},
|
|
2474
|
+
}, r, i), { isFocused: a, isFocusVisible: d, focusProps: s } = me(), p = R(Ue), f = !1;
|
|
2473
2475
|
if (p) f = p.resizingColumn === l.key;
|
|
2474
2476
|
else if (process.env.NODE_ENV !== "production")
|
|
2475
2477
|
for (let $ in [
|
|
@@ -2478,264 +2480,264 @@ const Vn = /* @__PURE__ */ it("column", (t, e, l) => {
|
|
|
2478
2480
|
"minWidth",
|
|
2479
2481
|
"maxWidth"
|
|
2480
2482
|
]) $ in l.props && console.warn(`The ${$} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
|
|
2481
|
-
let { hoverProps: h, isHovered:
|
|
2483
|
+
let { hoverProps: h, isHovered: g } = Ce({
|
|
2482
2484
|
isDisabled: !t.allowsSorting
|
|
2483
|
-
}),
|
|
2485
|
+
}), y = re({
|
|
2484
2486
|
...t,
|
|
2485
2487
|
id: void 0,
|
|
2486
2488
|
children: l.rendered,
|
|
2487
2489
|
defaultClassName: "react-aria-Column",
|
|
2488
2490
|
values: {
|
|
2489
|
-
isHovered:
|
|
2490
|
-
isFocused:
|
|
2491
|
-
isFocusVisible:
|
|
2491
|
+
isHovered: g,
|
|
2492
|
+
isFocused: a,
|
|
2493
|
+
isFocusVisible: d,
|
|
2492
2494
|
allowsSorting: l.props.allowsSorting,
|
|
2493
|
-
sortDirection: ((n =
|
|
2495
|
+
sortDirection: ((n = r.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? r.sortDescriptor.direction : void 0,
|
|
2494
2496
|
isResizing: f,
|
|
2495
2497
|
startResize: () => {
|
|
2496
2498
|
if (p)
|
|
2497
|
-
p.startResize(l.key),
|
|
2499
|
+
p.startResize(l.key), r.setKeyboardNavigationDisabled(!0);
|
|
2498
2500
|
else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2499
2501
|
},
|
|
2500
2502
|
sort: ($) => {
|
|
2501
|
-
|
|
2503
|
+
r.sort(l.key, $);
|
|
2502
2504
|
}
|
|
2503
2505
|
}
|
|
2504
|
-
}),
|
|
2505
|
-
p && (
|
|
2506
|
-
...
|
|
2506
|
+
}), v = y.style;
|
|
2507
|
+
p && (v = {
|
|
2508
|
+
...v,
|
|
2507
2509
|
width: p.getColumnWidth(l.key)
|
|
2508
2510
|
});
|
|
2509
|
-
let x =
|
|
2511
|
+
let x = j("th"), m = J(t, {
|
|
2510
2512
|
global: !0
|
|
2511
2513
|
});
|
|
2512
|
-
return delete
|
|
2513
|
-
...
|
|
2514
|
-
...
|
|
2515
|
-
style:
|
|
2516
|
-
ref:
|
|
2517
|
-
"data-hovered":
|
|
2518
|
-
"data-focused":
|
|
2519
|
-
"data-focus-visible":
|
|
2514
|
+
return delete m.id, /* @__PURE__ */ k.createElement(x, {
|
|
2515
|
+
...H(m, c, s, h),
|
|
2516
|
+
...y,
|
|
2517
|
+
style: v,
|
|
2518
|
+
ref: i,
|
|
2519
|
+
"data-hovered": g || void 0,
|
|
2520
|
+
"data-focused": a || void 0,
|
|
2521
|
+
"data-focus-visible": d || void 0,
|
|
2520
2522
|
"data-resizing": f || void 0,
|
|
2521
2523
|
"data-allows-sorting": l.props.allowsSorting || void 0,
|
|
2522
|
-
"data-sort-direction": ((o =
|
|
2523
|
-
}, /* @__PURE__ */
|
|
2524
|
+
"data-sort-direction": ((o = r.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? r.sortDescriptor.direction : void 0
|
|
2525
|
+
}, /* @__PURE__ */ k.createElement(Ae, {
|
|
2524
2526
|
values: [
|
|
2525
2527
|
[
|
|
2526
|
-
|
|
2528
|
+
fl,
|
|
2527
2529
|
{
|
|
2528
2530
|
column: l,
|
|
2529
|
-
triggerRef:
|
|
2531
|
+
triggerRef: i
|
|
2530
2532
|
}
|
|
2531
2533
|
],
|
|
2532
2534
|
[
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
+
Q,
|
|
2536
|
+
gt
|
|
2535
2537
|
]
|
|
2536
2538
|
]
|
|
2537
|
-
},
|
|
2538
|
-
}),
|
|
2539
|
-
let n =
|
|
2539
|
+
}, y.children));
|
|
2540
|
+
}), fl = /* @__PURE__ */ de(null), Jn = /* @__PURE__ */ X(function(e, l) {
|
|
2541
|
+
let n = R(Ue);
|
|
2540
2542
|
if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2541
|
-
let o =
|
|
2542
|
-
column:
|
|
2543
|
+
let o = ve(On(Ml), "react-aria-components"), { onResizeStart: i, onResize: r, onResizeEnd: u } = R(Le), { column: c, triggerRef: a } = R(fl), d = M(null), { resizerProps: s, inputProps: p, isResizing: f } = Bn({
|
|
2544
|
+
column: c,
|
|
2543
2545
|
"aria-label": e["aria-label"] || o.format("tableResizer"),
|
|
2544
|
-
onResizeStart:
|
|
2545
|
-
onResize:
|
|
2546
|
+
onResizeStart: i,
|
|
2547
|
+
onResize: r,
|
|
2546
2548
|
onResizeEnd: u,
|
|
2547
|
-
triggerRef:
|
|
2548
|
-
}, n,
|
|
2549
|
-
|
|
2550
|
-
let
|
|
2551
|
-
|
|
2552
|
-
if (!
|
|
2553
|
-
let
|
|
2554
|
-
|
|
2549
|
+
triggerRef: a
|
|
2550
|
+
}, n, d), { focusProps: h, isFocused: g, isFocusVisible: y } = me(), { hoverProps: v, isHovered: x } = Ce(e), m = n.getColumnMinWidth(c.key) >= n.getColumnWidth(c.key), $ = n.getColumnMaxWidth(c.key) <= n.getColumnWidth(c.key), { direction: b } = be(), w = "both";
|
|
2551
|
+
m ? w = b === "rtl" ? "right" : "left" : $ ? w = b === "rtl" ? "left" : "right" : w = "both";
|
|
2552
|
+
let C = ce(l), [B, P] = Z("");
|
|
2553
|
+
se(() => {
|
|
2554
|
+
if (!C.current) return;
|
|
2555
|
+
let F = window.getComputedStyle(C.current);
|
|
2556
|
+
P(F.cursor);
|
|
2555
2557
|
}, [
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
+
C,
|
|
2559
|
+
w
|
|
2558
2560
|
]);
|
|
2559
|
-
let
|
|
2561
|
+
let E = re({
|
|
2560
2562
|
...e,
|
|
2561
2563
|
defaultClassName: "react-aria-ColumnResizer",
|
|
2562
2564
|
values: {
|
|
2563
|
-
isFocused:
|
|
2564
|
-
isFocusVisible:
|
|
2565
|
+
isFocused: g,
|
|
2566
|
+
isFocusVisible: y,
|
|
2565
2567
|
isResizing: f,
|
|
2566
2568
|
isHovered: x,
|
|
2567
|
-
resizableDirection:
|
|
2569
|
+
resizableDirection: w
|
|
2568
2570
|
}
|
|
2569
|
-
}), [
|
|
2570
|
-
|
|
2571
|
+
}), [W, K] = Z(!1), T = (F) => {
|
|
2572
|
+
F.pointerType === "mouse" && K(!0);
|
|
2571
2573
|
};
|
|
2572
|
-
!f &&
|
|
2573
|
-
let
|
|
2574
|
+
!f && W && K(!1);
|
|
2575
|
+
let O = J(e, {
|
|
2574
2576
|
global: !0
|
|
2575
2577
|
});
|
|
2576
|
-
return /* @__PURE__ */
|
|
2577
|
-
ref:
|
|
2578
|
+
return /* @__PURE__ */ k.createElement("div", {
|
|
2579
|
+
ref: C,
|
|
2578
2580
|
role: "presentation",
|
|
2579
|
-
...
|
|
2580
|
-
onPointerDown:
|
|
2581
|
-
},
|
|
2581
|
+
...H(O, E, s, {
|
|
2582
|
+
onPointerDown: T
|
|
2583
|
+
}, v),
|
|
2582
2584
|
"data-hovered": x || void 0,
|
|
2583
|
-
"data-focused":
|
|
2584
|
-
"data-focus-visible":
|
|
2585
|
+
"data-focused": g || void 0,
|
|
2586
|
+
"data-focus-visible": y || void 0,
|
|
2585
2587
|
"data-resizing": f || void 0,
|
|
2586
|
-
"data-resizable-direction":
|
|
2587
|
-
},
|
|
2588
|
-
ref:
|
|
2589
|
-
...
|
|
2590
|
-
}), f &&
|
|
2588
|
+
"data-resizable-direction": w
|
|
2589
|
+
}, E.children, /* @__PURE__ */ k.createElement("input", {
|
|
2590
|
+
ref: d,
|
|
2591
|
+
...H(p, h)
|
|
2592
|
+
}), f && W && /* @__PURE__ */ Il.createPortal(/* @__PURE__ */ k.createElement("div", {
|
|
2591
2593
|
style: {
|
|
2592
2594
|
position: "fixed",
|
|
2593
2595
|
top: 0,
|
|
2594
2596
|
left: 0,
|
|
2595
2597
|
bottom: 0,
|
|
2596
2598
|
right: 0,
|
|
2597
|
-
cursor:
|
|
2599
|
+
cursor: B
|
|
2598
2600
|
}
|
|
2599
2601
|
}), document.body));
|
|
2600
|
-
}),
|
|
2601
|
-
let l =
|
|
2602
|
-
var
|
|
2603
|
-
let
|
|
2602
|
+
}), _n = /* @__PURE__ */ We("tablebody", (t, e) => {
|
|
2603
|
+
let l = R(ee), { isVirtualized: n } = R(Q), o = l.collection, { CollectionBranch: i } = R(Q), { dragAndDropHooks: r, dropState: u } = R(ge), c = !!r?.useDroppableCollectionState && !u?.isDisabled;
|
|
2604
|
+
var a;
|
|
2605
|
+
let d = c && !!u && ((a = u.isDropTarget({
|
|
2604
2606
|
type: "root"
|
|
2605
|
-
})) !== null &&
|
|
2606
|
-
isDropTarget:
|
|
2607
|
-
isEmpty:
|
|
2608
|
-
}, f =
|
|
2607
|
+
})) !== null && a !== void 0 ? a : !1), s = o.size === 0, p = {
|
|
2608
|
+
isDropTarget: d,
|
|
2609
|
+
isEmpty: s
|
|
2610
|
+
}, f = re({
|
|
2609
2611
|
...t,
|
|
2610
2612
|
id: void 0,
|
|
2611
2613
|
children: void 0,
|
|
2612
2614
|
defaultClassName: "react-aria-TableBody",
|
|
2613
2615
|
values: p
|
|
2614
|
-
}), h,
|
|
2615
|
-
if (
|
|
2616
|
-
let
|
|
2617
|
-
n ? (
|
|
2616
|
+
}), h, g = j("tr"), y = j("td"), v = o.columnCount;
|
|
2617
|
+
if (s && t.renderEmptyState && l) {
|
|
2618
|
+
let b = {}, w = {}, C = {};
|
|
2619
|
+
n ? (w["aria-colspan"] = v, C = {
|
|
2618
2620
|
display: "contents"
|
|
2619
|
-
}) :
|
|
2621
|
+
}) : w.colSpan = v, h = /* @__PURE__ */ k.createElement(g, {
|
|
2620
2622
|
role: "row",
|
|
2621
|
-
...
|
|
2622
|
-
style:
|
|
2623
|
-
}, /* @__PURE__ */
|
|
2623
|
+
...b,
|
|
2624
|
+
style: C
|
|
2625
|
+
}, /* @__PURE__ */ k.createElement(y, {
|
|
2624
2626
|
role: "rowheader",
|
|
2625
|
-
...
|
|
2626
|
-
style:
|
|
2627
|
+
...w,
|
|
2628
|
+
style: C
|
|
2627
2629
|
}, t.renderEmptyState(p)));
|
|
2628
2630
|
}
|
|
2629
|
-
let { rowGroupProps: x } =
|
|
2631
|
+
let { rowGroupProps: x } = il(), m = j("tbody"), $ = J(t, {
|
|
2630
2632
|
global: !0
|
|
2631
2633
|
});
|
|
2632
|
-
return /* @__PURE__ */
|
|
2633
|
-
...
|
|
2634
|
+
return /* @__PURE__ */ k.createElement(m, {
|
|
2635
|
+
...H($, f, x),
|
|
2634
2636
|
ref: e,
|
|
2635
|
-
"data-empty":
|
|
2636
|
-
},
|
|
2637
|
+
"data-empty": s || void 0
|
|
2638
|
+
}, c && /* @__PURE__ */ k.createElement(oo, null), /* @__PURE__ */ k.createElement(i, {
|
|
2637
2639
|
collection: o,
|
|
2638
2640
|
parent: o.body,
|
|
2639
|
-
renderDropIndicator:
|
|
2641
|
+
renderDropIndicator: Bl(r, u)
|
|
2640
2642
|
}), h);
|
|
2641
|
-
}),
|
|
2642
|
-
let n =
|
|
2643
|
+
}), st = /* @__PURE__ */ We("item", (t, e, l) => {
|
|
2644
|
+
let n = ce(e), o = R(ee), { dragAndDropHooks: i, dragState: r, dropState: u } = R(ge), { isVirtualized: c, CollectionBranch: a } = R(Q), { rowProps: d, ...s } = Cn({
|
|
2643
2645
|
node: l,
|
|
2644
|
-
shouldSelectOnPressUp: !!
|
|
2645
|
-
isVirtualized:
|
|
2646
|
-
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } =
|
|
2646
|
+
shouldSelectOnPressUp: !!r,
|
|
2647
|
+
isVirtualized: c
|
|
2648
|
+
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = me(), { isFocusVisible: g, focusProps: y } = me({
|
|
2647
2649
|
within: !0
|
|
2648
|
-
}), { hoverProps:
|
|
2649
|
-
isDisabled: !
|
|
2650
|
+
}), { hoverProps: v, isHovered: x } = Ce({
|
|
2651
|
+
isDisabled: !s.allowsSelection && !s.hasAction,
|
|
2650
2652
|
onHoverStart: t.onHoverStart,
|
|
2651
2653
|
onHoverChange: t.onHoverChange,
|
|
2652
2654
|
onHoverEnd: t.onHoverEnd
|
|
2653
|
-
}), { checkboxProps:
|
|
2655
|
+
}), { checkboxProps: m } = zn({
|
|
2654
2656
|
key: l.key
|
|
2655
2657
|
}, o), $;
|
|
2656
|
-
|
|
2658
|
+
r && i && ($ = i.useDraggableItem({
|
|
2657
2659
|
key: l.key,
|
|
2658
2660
|
hasDragButton: !0
|
|
2659
|
-
},
|
|
2660
|
-
let
|
|
2661
|
-
u &&
|
|
2661
|
+
}, r));
|
|
2662
|
+
let b, w = M(null), { visuallyHiddenProps: C } = Pe();
|
|
2663
|
+
u && i && (b = i.useDropIndicator({
|
|
2662
2664
|
target: {
|
|
2663
2665
|
type: "item",
|
|
2664
2666
|
key: l.key,
|
|
2665
2667
|
dropPosition: "on"
|
|
2666
2668
|
}
|
|
2667
|
-
}, u,
|
|
2668
|
-
let
|
|
2669
|
-
|
|
2670
|
-
|
|
2669
|
+
}, u, w));
|
|
2670
|
+
let B = M(null);
|
|
2671
|
+
se(() => {
|
|
2672
|
+
r && !B.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
|
|
2671
2673
|
}, []);
|
|
2672
|
-
let
|
|
2673
|
-
...
|
|
2674
|
+
let P = r && r.isDragging(l.key), { children: E, ...W } = t, K = re({
|
|
2675
|
+
...W,
|
|
2674
2676
|
id: void 0,
|
|
2675
2677
|
defaultClassName: "react-aria-Row",
|
|
2676
2678
|
values: {
|
|
2677
|
-
...
|
|
2679
|
+
...s,
|
|
2678
2680
|
isHovered: x,
|
|
2679
2681
|
isFocused: p,
|
|
2680
2682
|
isFocusVisible: f,
|
|
2681
2683
|
selectionMode: o.selectionManager.selectionMode,
|
|
2682
2684
|
selectionBehavior: o.selectionManager.selectionBehavior,
|
|
2683
|
-
isDragging:
|
|
2684
|
-
isDropTarget:
|
|
2685
|
-
isFocusVisibleWithin:
|
|
2685
|
+
isDragging: P,
|
|
2686
|
+
isDropTarget: b?.isDropTarget,
|
|
2687
|
+
isFocusVisibleWithin: g,
|
|
2686
2688
|
id: l.key
|
|
2687
2689
|
}
|
|
2688
|
-
}),
|
|
2690
|
+
}), T = j("tr"), O = j("td"), F = J(t, {
|
|
2689
2691
|
global: !0
|
|
2690
2692
|
});
|
|
2691
|
-
return delete
|
|
2693
|
+
return delete F.id, delete F.onClick, /* @__PURE__ */ k.createElement(k.Fragment, null, b && !b.isHidden && /* @__PURE__ */ k.createElement(T, {
|
|
2692
2694
|
role: "row",
|
|
2693
2695
|
style: {
|
|
2694
2696
|
height: 0
|
|
2695
2697
|
}
|
|
2696
|
-
}, /* @__PURE__ */
|
|
2698
|
+
}, /* @__PURE__ */ k.createElement(O, {
|
|
2697
2699
|
role: "gridcell",
|
|
2698
2700
|
colSpan: o.collection.columnCount,
|
|
2699
2701
|
style: {
|
|
2700
2702
|
padding: 0
|
|
2701
2703
|
}
|
|
2702
|
-
}, /* @__PURE__ */
|
|
2704
|
+
}, /* @__PURE__ */ k.createElement("div", {
|
|
2703
2705
|
role: "button",
|
|
2704
|
-
...
|
|
2705
|
-
...
|
|
2706
|
-
ref:
|
|
2707
|
-
}))), /* @__PURE__ */
|
|
2708
|
-
...
|
|
2706
|
+
...C,
|
|
2707
|
+
...b.dropIndicatorProps,
|
|
2708
|
+
ref: w
|
|
2709
|
+
}))), /* @__PURE__ */ k.createElement(T, {
|
|
2710
|
+
...H(F, K, d, h, v, $?.dragProps, y),
|
|
2709
2711
|
ref: n,
|
|
2710
|
-
"data-disabled":
|
|
2711
|
-
"data-selected":
|
|
2712
|
+
"data-disabled": s.isDisabled || void 0,
|
|
2713
|
+
"data-selected": s.isSelected || void 0,
|
|
2712
2714
|
"data-hovered": x || void 0,
|
|
2713
|
-
"data-focused":
|
|
2715
|
+
"data-focused": s.isFocused || void 0,
|
|
2714
2716
|
"data-focus-visible": f || void 0,
|
|
2715
|
-
"data-pressed":
|
|
2716
|
-
"data-dragging":
|
|
2717
|
-
"data-drop-target":
|
|
2717
|
+
"data-pressed": s.isPressed || void 0,
|
|
2718
|
+
"data-dragging": P || void 0,
|
|
2719
|
+
"data-drop-target": b?.isDropTarget || void 0,
|
|
2718
2720
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
2719
|
-
"data-focus-visible-within":
|
|
2720
|
-
}, /* @__PURE__ */
|
|
2721
|
+
"data-focus-visible-within": g || void 0
|
|
2722
|
+
}, /* @__PURE__ */ k.createElement(Ae, {
|
|
2721
2723
|
values: [
|
|
2722
2724
|
[
|
|
2723
|
-
|
|
2725
|
+
ft,
|
|
2724
2726
|
{
|
|
2725
2727
|
slots: {
|
|
2726
|
-
[
|
|
2727
|
-
selection:
|
|
2728
|
+
[lt]: {},
|
|
2729
|
+
selection: m
|
|
2728
2730
|
}
|
|
2729
2731
|
}
|
|
2730
2732
|
],
|
|
2731
2733
|
[
|
|
2732
|
-
|
|
2734
|
+
ct,
|
|
2733
2735
|
{
|
|
2734
2736
|
slots: {
|
|
2735
|
-
[
|
|
2737
|
+
[lt]: {},
|
|
2736
2738
|
drag: {
|
|
2737
2739
|
...$?.dragButtonProps,
|
|
2738
|
-
ref:
|
|
2740
|
+
ref: B,
|
|
2739
2741
|
style: {
|
|
2740
2742
|
pointerEvents: "none"
|
|
2741
2743
|
}
|
|
@@ -2744,7 +2746,7 @@ const Vn = /* @__PURE__ */ it("column", (t, e, l) => {
|
|
|
2744
2746
|
}
|
|
2745
2747
|
]
|
|
2746
2748
|
]
|
|
2747
|
-
}, /* @__PURE__ */
|
|
2749
|
+
}, /* @__PURE__ */ k.createElement(a, {
|
|
2748
2750
|
collection: o.collection,
|
|
2749
2751
|
parent: l
|
|
2750
2752
|
}))));
|
|
@@ -2753,199 +2755,199 @@ const Vn = /* @__PURE__ */ it("column", (t, e, l) => {
|
|
|
2753
2755
|
let e = [
|
|
2754
2756
|
t.value
|
|
2755
2757
|
].concat(t.dependencies);
|
|
2756
|
-
return /* @__PURE__ */
|
|
2758
|
+
return /* @__PURE__ */ k.createElement(De, {
|
|
2757
2759
|
dependencies: e,
|
|
2758
2760
|
items: t.columns,
|
|
2759
2761
|
idScope: t.id
|
|
2760
2762
|
}, t.children);
|
|
2761
|
-
}),
|
|
2762
|
-
let n =
|
|
2763
|
+
}), eo = /* @__PURE__ */ mt("cell", (t, e, l) => {
|
|
2764
|
+
let n = ce(e), o = R(ee), { dragState: i } = R(ge), { isVirtualized: r } = R(Q);
|
|
2763
2765
|
l.column = o.collection.columns[l.index];
|
|
2764
|
-
let { gridCellProps: u, isPressed:
|
|
2766
|
+
let { gridCellProps: u, isPressed: c } = kn({
|
|
2765
2767
|
node: l,
|
|
2766
|
-
shouldSelectOnPressUp: !!
|
|
2767
|
-
isVirtualized:
|
|
2768
|
-
}, o, n), { isFocused:
|
|
2768
|
+
shouldSelectOnPressUp: !!i,
|
|
2769
|
+
isVirtualized: r
|
|
2770
|
+
}, o, n), { isFocused: a, isFocusVisible: d, focusProps: s } = me(), { hoverProps: p, isHovered: f } = Ce({}), h = re({
|
|
2769
2771
|
...t,
|
|
2770
2772
|
id: void 0,
|
|
2771
2773
|
defaultClassName: "react-aria-Cell",
|
|
2772
2774
|
values: {
|
|
2773
|
-
isFocused:
|
|
2774
|
-
isFocusVisible:
|
|
2775
|
-
isPressed:
|
|
2775
|
+
isFocused: a,
|
|
2776
|
+
isFocusVisible: d,
|
|
2777
|
+
isPressed: c,
|
|
2776
2778
|
isHovered: f,
|
|
2777
2779
|
id: l.key
|
|
2778
2780
|
}
|
|
2779
|
-
}),
|
|
2781
|
+
}), g = j("td"), y = J(t, {
|
|
2780
2782
|
global: !0
|
|
2781
2783
|
});
|
|
2782
|
-
return delete
|
|
2783
|
-
...
|
|
2784
|
+
return delete y.id, /* @__PURE__ */ k.createElement(g, {
|
|
2785
|
+
...H(y, h, u, s, p),
|
|
2784
2786
|
ref: n,
|
|
2785
|
-
"data-focused":
|
|
2786
|
-
"data-focus-visible":
|
|
2787
|
-
"data-pressed":
|
|
2788
|
-
}, /* @__PURE__ */
|
|
2789
|
-
value:
|
|
2787
|
+
"data-focused": a || void 0,
|
|
2788
|
+
"data-focus-visible": d || void 0,
|
|
2789
|
+
"data-pressed": c || void 0
|
|
2790
|
+
}, /* @__PURE__ */ k.createElement(Q.Provider, {
|
|
2791
|
+
value: gt
|
|
2790
2792
|
}, h.children));
|
|
2791
2793
|
});
|
|
2792
|
-
function
|
|
2793
|
-
e =
|
|
2794
|
-
let { dragAndDropHooks: l, dropState: n } =
|
|
2795
|
-
return
|
|
2794
|
+
function to(t, e) {
|
|
2795
|
+
e = ce(e);
|
|
2796
|
+
let { dragAndDropHooks: l, dropState: n } = R(ge), o = M(null), { dropIndicatorProps: i, isHidden: r, isDropTarget: u } = l.useDropIndicator(t, n, o);
|
|
2797
|
+
return r ? null : /* @__PURE__ */ k.createElement(no, {
|
|
2796
2798
|
...t,
|
|
2797
|
-
dropIndicatorProps:
|
|
2799
|
+
dropIndicatorProps: i,
|
|
2798
2800
|
isDropTarget: u,
|
|
2799
2801
|
buttonRef: o,
|
|
2800
2802
|
ref: e
|
|
2801
2803
|
});
|
|
2802
2804
|
}
|
|
2803
|
-
function
|
|
2804
|
-
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...
|
|
2805
|
-
...
|
|
2805
|
+
function lo(t, e) {
|
|
2806
|
+
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...i } = t, r = R(ee), { visuallyHiddenProps: u } = Pe(), c = re({
|
|
2807
|
+
...i,
|
|
2806
2808
|
defaultClassName: "react-aria-DropIndicator",
|
|
2807
2809
|
values: {
|
|
2808
2810
|
isDropTarget: n
|
|
2809
2811
|
}
|
|
2810
|
-
}),
|
|
2811
|
-
return /* @__PURE__ */
|
|
2812
|
-
...
|
|
2812
|
+
}), a = j("tr"), d = j("td");
|
|
2813
|
+
return /* @__PURE__ */ k.createElement(a, {
|
|
2814
|
+
...J(t, {
|
|
2813
2815
|
global: !0
|
|
2814
2816
|
}),
|
|
2815
|
-
...
|
|
2817
|
+
...c,
|
|
2816
2818
|
role: "row",
|
|
2817
2819
|
ref: e,
|
|
2818
2820
|
"data-drop-target": n || void 0
|
|
2819
|
-
}, /* @__PURE__ */
|
|
2821
|
+
}, /* @__PURE__ */ k.createElement(d, {
|
|
2820
2822
|
role: "gridcell",
|
|
2821
|
-
colSpan:
|
|
2823
|
+
colSpan: r.collection.columnCount,
|
|
2822
2824
|
style: {
|
|
2823
2825
|
padding: 0
|
|
2824
2826
|
}
|
|
2825
|
-
}, /* @__PURE__ */
|
|
2827
|
+
}, /* @__PURE__ */ k.createElement("div", {
|
|
2826
2828
|
...u,
|
|
2827
2829
|
role: "button",
|
|
2828
2830
|
...l,
|
|
2829
2831
|
ref: o
|
|
2830
|
-
}),
|
|
2832
|
+
}), c.children));
|
|
2831
2833
|
}
|
|
2832
|
-
const
|
|
2833
|
-
function
|
|
2834
|
-
let t =
|
|
2834
|
+
const no = /* @__PURE__ */ X(lo);
|
|
2835
|
+
function oo() {
|
|
2836
|
+
let t = R(ee), { dragAndDropHooks: e, dropState: l } = R(ge), n = M(null), { dropIndicatorProps: o } = e.useDropIndicator({
|
|
2835
2837
|
target: {
|
|
2836
2838
|
type: "root"
|
|
2837
2839
|
}
|
|
2838
|
-
}, l, n),
|
|
2840
|
+
}, l, n), i = l.isDropTarget({
|
|
2839
2841
|
type: "root"
|
|
2840
|
-
}), { visuallyHiddenProps:
|
|
2841
|
-
return !
|
|
2842
|
+
}), { visuallyHiddenProps: r } = Pe(), u = j("tr"), c = j("td");
|
|
2843
|
+
return !i && o["aria-hidden"] ? null : /* @__PURE__ */ k.createElement(u, {
|
|
2842
2844
|
role: "row",
|
|
2843
2845
|
"aria-hidden": o["aria-hidden"],
|
|
2844
2846
|
style: {
|
|
2845
2847
|
height: 0
|
|
2846
2848
|
}
|
|
2847
|
-
}, /* @__PURE__ */
|
|
2849
|
+
}, /* @__PURE__ */ k.createElement(c, {
|
|
2848
2850
|
role: "gridcell",
|
|
2849
2851
|
colSpan: t.collection.columnCount,
|
|
2850
2852
|
style: {
|
|
2851
2853
|
padding: 0
|
|
2852
2854
|
}
|
|
2853
|
-
}, /* @__PURE__ */
|
|
2855
|
+
}, /* @__PURE__ */ k.createElement("div", {
|
|
2854
2856
|
role: "button",
|
|
2855
|
-
...
|
|
2857
|
+
...r,
|
|
2856
2858
|
...o,
|
|
2857
2859
|
ref: n
|
|
2858
2860
|
})));
|
|
2859
2861
|
}
|
|
2860
|
-
const
|
|
2861
|
-
|
|
2862
|
-
const
|
|
2863
|
-
const t =
|
|
2864
|
-
|
|
2862
|
+
const Ke = /* @__PURE__ */ de(null);
|
|
2863
|
+
Ke.displayName = "DataTableContext";
|
|
2864
|
+
const ye = () => {
|
|
2865
|
+
const t = R(
|
|
2866
|
+
Ke
|
|
2865
2867
|
);
|
|
2866
2868
|
if (!t)
|
|
2867
2869
|
throw new Error("DataTable components must be used within DataTable.Root");
|
|
2868
2870
|
return t;
|
|
2869
2871
|
};
|
|
2870
|
-
var
|
|
2871
|
-
const l = [], n = (o,
|
|
2872
|
-
|
|
2872
|
+
var Fe = (t, e) => {
|
|
2873
|
+
const l = [], n = (o, i, r) => {
|
|
2874
|
+
i - o > 0 && l.push({ start: o, end: i, match: r });
|
|
2873
2875
|
};
|
|
2874
2876
|
if (t.length === 0)
|
|
2875
2877
|
n(0, e, !1);
|
|
2876
2878
|
else {
|
|
2877
2879
|
let o = 0;
|
|
2878
|
-
for (const
|
|
2879
|
-
n(o,
|
|
2880
|
+
for (const i of t)
|
|
2881
|
+
n(o, i.start, !1), n(i.start, i.end, !0), o = i.end;
|
|
2880
2882
|
n(o, e, !1);
|
|
2881
2883
|
}
|
|
2882
2884
|
return l;
|
|
2883
|
-
},
|
|
2884
|
-
function
|
|
2885
|
+
}, pl = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`);
|
|
2886
|
+
function io(t) {
|
|
2885
2887
|
const { text: e, query: l, ignoreCase: n, exactMatch: o } = t;
|
|
2886
2888
|
if (o) {
|
|
2887
|
-
const
|
|
2889
|
+
const d = pl(l), s = new RegExp(`\\b(${d})\\b`, n ? "i" : ""), p = e.match(s);
|
|
2888
2890
|
if (!p || p.index === void 0)
|
|
2889
2891
|
return [{ text: e, match: !1 }];
|
|
2890
2892
|
const f = p.index, h = f + p[0].length;
|
|
2891
|
-
return
|
|
2892
|
-
text: e.slice(
|
|
2893
|
-
match: !!
|
|
2893
|
+
return Fe([{ start: f, end: h }], e.length).map((y) => ({
|
|
2894
|
+
text: e.slice(y.start, y.end),
|
|
2895
|
+
match: !!y.match
|
|
2894
2896
|
}));
|
|
2895
2897
|
}
|
|
2896
|
-
const
|
|
2898
|
+
const i = n ? e.toLowerCase() : e, r = n && typeof l == "string" ? l.toLowerCase() : l, u = typeof i == "string" ? i.indexOf(r) : -1;
|
|
2897
2899
|
if (u === -1)
|
|
2898
2900
|
return [{ text: e, match: !1 }];
|
|
2899
|
-
const
|
|
2900
|
-
return
|
|
2901
|
-
text: e.slice(
|
|
2902
|
-
match: !!
|
|
2901
|
+
const c = u + r.length;
|
|
2902
|
+
return Fe([{ start: u, end: c }], e.length).map((d) => ({
|
|
2903
|
+
text: e.slice(d.start, d.end),
|
|
2904
|
+
match: !!d.match
|
|
2903
2905
|
}));
|
|
2904
2906
|
}
|
|
2905
|
-
var
|
|
2906
|
-
const n = t.filter(Boolean).map((
|
|
2907
|
+
var ro = (t, e, l) => {
|
|
2908
|
+
const n = t.filter(Boolean).map((i) => pl(i)), o = l ? `\\b(${n.join("|")})\\b` : `(${n.join("|")})`;
|
|
2907
2909
|
return new RegExp(o, e);
|
|
2908
|
-
},
|
|
2909
|
-
function
|
|
2910
|
-
const { text: e, query: l, ignoreCase: n, matchAll: o, exactMatch:
|
|
2910
|
+
}, ao = (t, e = !0) => `${t ? "i" : ""}${e ? "g" : ""}`;
|
|
2911
|
+
function uo(t) {
|
|
2912
|
+
const { text: e, query: l, ignoreCase: n, matchAll: o, exactMatch: i } = t;
|
|
2911
2913
|
if (l.length === 0)
|
|
2912
2914
|
return [{ text: e, match: !1 }];
|
|
2913
|
-
const
|
|
2914
|
-
start:
|
|
2915
|
-
end: (
|
|
2915
|
+
const r = ao(n, o), u = ro(Array.isArray(l) ? l : [l], r, i), c = [...e.matchAll(u)].map((a) => ({
|
|
2916
|
+
start: a.index || 0,
|
|
2917
|
+
end: (a.index || 0) + a[0].length
|
|
2916
2918
|
}));
|
|
2917
|
-
return
|
|
2918
|
-
text: t.text.slice(
|
|
2919
|
-
match: !!
|
|
2919
|
+
return Fe(c, t.text.length).map((a) => ({
|
|
2920
|
+
text: t.text.slice(a.start, a.end),
|
|
2921
|
+
match: !!a.match
|
|
2920
2922
|
}));
|
|
2921
2923
|
}
|
|
2922
|
-
var
|
|
2924
|
+
var so = (t) => {
|
|
2923
2925
|
if (t.matchAll == null && (t.matchAll = Array.isArray(t.query)), !t.matchAll && Array.isArray(t.query))
|
|
2924
2926
|
throw new Error("matchAll must be true when using multiple queries");
|
|
2925
|
-
return t.matchAll ?
|
|
2927
|
+
return t.matchAll ? uo(t) : io(t);
|
|
2926
2928
|
};
|
|
2927
|
-
const
|
|
2929
|
+
const co = (t) => N(() => so(t), [t]), { withContext: fo } = /* @__PURE__ */ sn({
|
|
2928
2930
|
key: "mark"
|
|
2929
|
-
}),
|
|
2930
|
-
function
|
|
2931
|
+
}), po = /* @__PURE__ */ fo("mark");
|
|
2932
|
+
function ho(t) {
|
|
2931
2933
|
const { each: e, fallback: l, children: n } = t;
|
|
2932
2934
|
return e?.length === 0 ? l || null : e?.map(n);
|
|
2933
2935
|
}
|
|
2934
|
-
function
|
|
2935
|
-
const { children: e, query: l, ignoreCase: n, matchAll: o, styles:
|
|
2936
|
+
function mo(t) {
|
|
2937
|
+
const { children: e, query: l, ignoreCase: n, matchAll: o, styles: i } = t;
|
|
2936
2938
|
if (typeof e != "string")
|
|
2937
2939
|
throw new Error("The children prop of Highlight must be a string");
|
|
2938
|
-
const
|
|
2940
|
+
const r = co({
|
|
2939
2941
|
query: l,
|
|
2940
2942
|
text: e,
|
|
2941
2943
|
matchAll: o,
|
|
2942
2944
|
ignoreCase: n
|
|
2943
2945
|
});
|
|
2944
|
-
return /* @__PURE__ */
|
|
2946
|
+
return /* @__PURE__ */ D(ho, { each: r, children: (u, c) => u.match ? /* @__PURE__ */ D(po, { css: i, children: u.text }, c) : /* @__PURE__ */ D($l, { children: u.text }, c) });
|
|
2945
2947
|
}
|
|
2946
|
-
const he = /* @__PURE__ */
|
|
2947
|
-
return /* @__PURE__ */
|
|
2948
|
-
}),
|
|
2948
|
+
const he = /* @__PURE__ */ X(function({ children: e, isDisabled: l, ...n }, o) {
|
|
2949
|
+
return /* @__PURE__ */ D(eo, { ref: o, ...n, children: (i) => /* @__PURE__ */ D(ct.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) });
|
|
2950
|
+
}), go = /* @__PURE__ */ en({
|
|
2949
2951
|
// Available slots for the DataTable component
|
|
2950
2952
|
slots: [
|
|
2951
2953
|
"root",
|
|
@@ -2969,6 +2971,12 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
|
|
|
2969
2971
|
boxShadow: "1",
|
|
2970
2972
|
overflow: "auto",
|
|
2971
2973
|
contain: "layout style",
|
|
2974
|
+
width: "100%",
|
|
2975
|
+
// CSS custom properties for pinned row shadows
|
|
2976
|
+
"--pinned-shadow-left": "inset 2px 0 0 {colors.neutral.7}",
|
|
2977
|
+
"--pinned-shadow-right": "inset -2px 0 0 {colors.neutral.7}",
|
|
2978
|
+
"--pinned-shadow-top": "inset 0 2px 0 {colors.neutral.7}",
|
|
2979
|
+
"--pinned-shadow-bottom": "inset 0 -2px 0 {colors.neutral.7}",
|
|
2972
2980
|
"& .react-aria-Cell": {
|
|
2973
2981
|
paddingTop: "400",
|
|
2974
2982
|
paddingBottom: "400",
|
|
@@ -2979,6 +2987,19 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
|
|
|
2979
2987
|
hyphens: "auto",
|
|
2980
2988
|
"&[data-slot='expand']": {
|
|
2981
2989
|
padding: 0
|
|
2990
|
+
},
|
|
2991
|
+
"&[data-slot='pin-row-cell']": {
|
|
2992
|
+
alignItems: "center",
|
|
2993
|
+
justifyContent: "center"
|
|
2994
|
+
},
|
|
2995
|
+
"& .nimbus-table-cell-copy-button": {
|
|
2996
|
+
display: "none"
|
|
2997
|
+
},
|
|
2998
|
+
"& .nimbus-table-cell-pin-button": {
|
|
2999
|
+
display: "none"
|
|
3000
|
+
},
|
|
3001
|
+
"& .nimbus-table-cell-pin-button-pinned": {
|
|
3002
|
+
display: "inherit"
|
|
2982
3003
|
}
|
|
2983
3004
|
},
|
|
2984
3005
|
"& .data-table-row": {
|
|
@@ -2993,7 +3014,22 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
|
|
|
2993
3014
|
_hover: {
|
|
2994
3015
|
backgroundColor: "{colors.primary.3}",
|
|
2995
3016
|
transition: "background-color 100ms ease",
|
|
2996
|
-
transform: "translate3d(0, 0, 0)"
|
|
3017
|
+
transform: "translate3d(0, 0, 0)",
|
|
3018
|
+
"& .data-table-row-details-button": {
|
|
3019
|
+
opacity: 1
|
|
3020
|
+
},
|
|
3021
|
+
"& .nimbus-table-cell-copy-button": {
|
|
3022
|
+
display: "inherit"
|
|
3023
|
+
},
|
|
3024
|
+
"& .nimbus-table-cell-pin-button": {
|
|
3025
|
+
display: "inherit"
|
|
3026
|
+
}
|
|
3027
|
+
},
|
|
3028
|
+
"& .data-table-row-details-button": {
|
|
3029
|
+
opacity: 0
|
|
3030
|
+
},
|
|
3031
|
+
"& .data-table-row-details-button:focus": {
|
|
3032
|
+
opacity: 1
|
|
2997
3033
|
}
|
|
2998
3034
|
},
|
|
2999
3035
|
"& .data-table-row[data-selected='true']": {
|
|
@@ -3004,6 +3040,18 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
|
|
|
3004
3040
|
opacity: 0.8,
|
|
3005
3041
|
cursor: "not-allowed"
|
|
3006
3042
|
},
|
|
3043
|
+
"& .data-table-row-pinned": {
|
|
3044
|
+
boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right)",
|
|
3045
|
+
"&.data-table-row-pinned-first": {
|
|
3046
|
+
boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right), var(--pinned-shadow-top)"
|
|
3047
|
+
},
|
|
3048
|
+
"&.data-table-row-pinned-last": {
|
|
3049
|
+
boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right), var(--pinned-shadow-bottom)"
|
|
3050
|
+
},
|
|
3051
|
+
"&.data-table-row-pinned-single": {
|
|
3052
|
+
boxShadow: "var(--pinned-shadow-left), var(--pinned-shadow-right), var(--pinned-shadow-top), var(--pinned-shadow-bottom)"
|
|
3053
|
+
}
|
|
3054
|
+
},
|
|
3007
3055
|
"& .data-table-header": {
|
|
3008
3056
|
background: "colorPalette.2",
|
|
3009
3057
|
color: "colorPalette.11",
|
|
@@ -3175,108 +3223,111 @@ const he = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
|
|
|
3175
3223
|
}
|
|
3176
3224
|
}
|
|
3177
3225
|
}
|
|
3178
|
-
}), { withProvider:
|
|
3226
|
+
}), { withProvider: bo, withContext: ae } = /* @__PURE__ */ tn({
|
|
3179
3227
|
key: "data-table",
|
|
3180
|
-
recipe:
|
|
3181
|
-
}),
|
|
3228
|
+
recipe: go
|
|
3229
|
+
}), vo = /* @__PURE__ */ bo(
|
|
3182
3230
|
"div",
|
|
3183
3231
|
"root"
|
|
3184
|
-
),
|
|
3185
|
-
function
|
|
3232
|
+
), yo = /* @__PURE__ */ ae("table", "table"), $o = /* @__PURE__ */ ae("th", "column"), xo = /* @__PURE__ */ ae("footer", "footer"), wo = /* @__PURE__ */ ae("td", "selectionCell"), hl = /* @__PURE__ */ ae("button", "expandButton"), Do = /* @__PURE__ */ ae("span", "nestedIcon"), Co = /* @__PURE__ */ ae("span", "headerSortIcon"), So = /* @__PURE__ */ ae("div", "columnResizer");
|
|
3233
|
+
function Ie(t) {
|
|
3186
3234
|
return t.target?.closest(
|
|
3187
3235
|
'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
|
|
3188
3236
|
);
|
|
3189
3237
|
}
|
|
3190
|
-
function
|
|
3238
|
+
function ko(t) {
|
|
3191
3239
|
return t.target?.closest(
|
|
3192
3240
|
'[slot="selection"], [data-slot="selection"], [role="checkbox"]'
|
|
3193
3241
|
);
|
|
3194
3242
|
}
|
|
3195
|
-
function
|
|
3196
|
-
const e =
|
|
3243
|
+
function dt(t) {
|
|
3244
|
+
const e = Ie(t), l = ko(t);
|
|
3197
3245
|
(!e || e && !l) && t.stopPropagation();
|
|
3198
3246
|
}
|
|
3199
|
-
const
|
|
3247
|
+
const Ye = /* @__PURE__ */ X(function({ row: e, depth: l = 0 }, n) {
|
|
3200
3248
|
const {
|
|
3201
3249
|
activeColumns: o,
|
|
3202
|
-
search:
|
|
3203
|
-
expanded:
|
|
3250
|
+
search: i,
|
|
3251
|
+
expanded: r,
|
|
3204
3252
|
toggleExpand: u,
|
|
3205
|
-
nestedKey:
|
|
3206
|
-
disabledKeys:
|
|
3207
|
-
showExpandColumn:
|
|
3208
|
-
showSelectionColumn:
|
|
3253
|
+
nestedKey: c,
|
|
3254
|
+
disabledKeys: a,
|
|
3255
|
+
showExpandColumn: d,
|
|
3256
|
+
showSelectionColumn: s,
|
|
3209
3257
|
isTruncated: p,
|
|
3210
3258
|
onRowClick: f,
|
|
3211
|
-
onRowAction: h
|
|
3212
|
-
|
|
3259
|
+
onRowAction: h,
|
|
3260
|
+
pinnedRows: g,
|
|
3261
|
+
togglePin: y,
|
|
3262
|
+
sortedRows: v
|
|
3263
|
+
} = ye(), m = ((z) => a ? a === "all" || e.isDisabled ? !0 : a.has(z) : !1)(e.id), $ = M(null), b = V(
|
|
3213
3264
|
(z) => {
|
|
3214
3265
|
if (!f) return;
|
|
3215
|
-
const
|
|
3216
|
-
!
|
|
3217
|
-
|
|
3266
|
+
const S = Ie(z), A = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
|
|
3267
|
+
!S && !A && ($.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
|
|
3268
|
+
m ? h && h(e, "click") : f(e), $.current = null;
|
|
3218
3269
|
}, 300));
|
|
3219
3270
|
},
|
|
3220
|
-
[f, h, e,
|
|
3221
|
-
),
|
|
3222
|
-
|
|
3223
|
-
}, []),
|
|
3271
|
+
[f, h, e, m]
|
|
3272
|
+
), w = V((z) => {
|
|
3273
|
+
Ie(z) || $.current && (window.clearTimeout($.current), $.current = null);
|
|
3274
|
+
}, []), C = M({
|
|
3224
3275
|
count: 0,
|
|
3225
3276
|
node: void 0
|
|
3226
|
-
}),
|
|
3277
|
+
}), B = V(
|
|
3227
3278
|
(z) => {
|
|
3228
|
-
|
|
3279
|
+
C.current.count += 1, C.current.count === 1 && z && (C.current.node = z, z.addEventListener(
|
|
3229
3280
|
// Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
|
|
3230
3281
|
"pointerdown",
|
|
3231
|
-
|
|
3282
|
+
dt,
|
|
3232
3283
|
{
|
|
3233
3284
|
capture: !0
|
|
3234
3285
|
}
|
|
3235
|
-
), z.addEventListener("mouseup",
|
|
3286
|
+
), z.addEventListener("mouseup", b, { capture: !0 }), z.addEventListener("dblclick", w, {
|
|
3236
3287
|
capture: !0
|
|
3237
3288
|
}));
|
|
3238
3289
|
},
|
|
3239
|
-
[
|
|
3290
|
+
[b, w]
|
|
3240
3291
|
);
|
|
3241
|
-
|
|
3242
|
-
|
|
3292
|
+
se(() => () => {
|
|
3293
|
+
$.current && (window.clearTimeout($.current), $.current = null), C.current.count >= 1 && C.current.node && (C.current.node.removeEventListener(
|
|
3243
3294
|
"pointerdown",
|
|
3244
|
-
|
|
3245
|
-
),
|
|
3295
|
+
dt
|
|
3296
|
+
), C.current.node.removeEventListener("mouseup", b), C.current.node.removeEventListener(
|
|
3246
3297
|
"dblclick",
|
|
3247
|
-
|
|
3298
|
+
w
|
|
3248
3299
|
));
|
|
3249
|
-
}, [
|
|
3250
|
-
const
|
|
3251
|
-
return /* @__PURE__ */
|
|
3252
|
-
/* @__PURE__ */
|
|
3253
|
-
|
|
3300
|
+
}, [b, w]);
|
|
3301
|
+
const P = ln(n, B), { selectionBehavior: E } = cl(), W = c && e[c] && (Array.isArray(e[c]) ? e[c].length > 0 : !0), K = r[e.id], T = g.has(e.id), O = v.filter((z) => g.has(z.id)).map((z) => z.id), F = T ? O.indexOf(e.id) : -1, Y = F === 0, L = F === O.length - 1, te = O.length === 1 && T, le = () => T ? te ? "data-table-row-pinned-single" : Y ? "data-table-row-pinned-first" : L ? "data-table-row-pinned-last" : "" : "", _ = (z) => i && typeof z == "string" ? /* @__PURE__ */ D(mo, { query: i, ignoreCase: !0, matchAll: !0, children: z }) : z;
|
|
3302
|
+
return /* @__PURE__ */ ie(yl, { children: [
|
|
3303
|
+
/* @__PURE__ */ ie(
|
|
3304
|
+
st,
|
|
3254
3305
|
{
|
|
3255
|
-
isDisabled:
|
|
3306
|
+
isDisabled: m,
|
|
3256
3307
|
columns: o,
|
|
3257
|
-
ref:
|
|
3308
|
+
ref: P,
|
|
3258
3309
|
id: e.id,
|
|
3259
|
-
className: `data-table-row ${
|
|
3310
|
+
className: `data-table-row ${m ? "data-table-row-disabled" : ""} ${T ? `data-table-row-pinned ${le()}` : ""}`,
|
|
3260
3311
|
style: {
|
|
3261
|
-
cursor:
|
|
3312
|
+
cursor: m ? "not-allowed" : f ? "pointer" : void 0,
|
|
3262
3313
|
position: "relative",
|
|
3263
3314
|
...l > 0 && {
|
|
3264
3315
|
borderLeft: "2px solid var(--colors-primary-6)",
|
|
3265
3316
|
backgroundColor: "var(--colors-slate-2)"
|
|
3266
3317
|
}
|
|
3267
3318
|
},
|
|
3268
|
-
dependencies: [
|
|
3319
|
+
dependencies: [K, i, p],
|
|
3269
3320
|
children: [
|
|
3270
|
-
|
|
3271
|
-
|
|
3321
|
+
E === "toggle" && /* @__PURE__ */ D(he, { "data-slot": "selection", isDisabled: m, children: /* @__PURE__ */ D(
|
|
3322
|
+
we,
|
|
3272
3323
|
{
|
|
3273
3324
|
display: "flex",
|
|
3274
3325
|
alignItems: "center",
|
|
3275
3326
|
justifyContent: "center",
|
|
3276
3327
|
w: "100%",
|
|
3277
3328
|
h: "100%",
|
|
3278
|
-
children: /* @__PURE__ */
|
|
3279
|
-
|
|
3329
|
+
children: /* @__PURE__ */ D(
|
|
3330
|
+
yt,
|
|
3280
3331
|
{
|
|
3281
3332
|
name: "select-row",
|
|
3282
3333
|
slot: "selection",
|
|
@@ -3285,23 +3336,23 @@ const je = /* @__PURE__ */ Y(function({ row: e, depth: l = 0 }, n) {
|
|
|
3285
3336
|
)
|
|
3286
3337
|
}
|
|
3287
3338
|
) }),
|
|
3288
|
-
|
|
3289
|
-
|
|
3339
|
+
d && /* @__PURE__ */ D(he, { "data-slot": "expand", isDisabled: m, children: W ? /* @__PURE__ */ D(
|
|
3340
|
+
hl,
|
|
3290
3341
|
{
|
|
3291
3342
|
w: "100%",
|
|
3292
3343
|
h: "100%",
|
|
3293
3344
|
cursor: "pointer",
|
|
3294
|
-
"aria-label":
|
|
3345
|
+
"aria-label": K ? "Collapse" : "Expand",
|
|
3295
3346
|
onClick: (z) => {
|
|
3296
3347
|
z.stopPropagation(), u(e.id);
|
|
3297
3348
|
},
|
|
3298
|
-
children:
|
|
3349
|
+
children: K ? /* @__PURE__ */ D(on, {}) : /* @__PURE__ */ D(rn, {})
|
|
3299
3350
|
}
|
|
3300
3351
|
) : null }),
|
|
3301
|
-
/* @__PURE__ */
|
|
3302
|
-
const
|
|
3303
|
-
return /* @__PURE__ */
|
|
3304
|
-
|
|
3352
|
+
/* @__PURE__ */ D(De, { items: o, children: (z) => {
|
|
3353
|
+
const S = z.accessor(e);
|
|
3354
|
+
return /* @__PURE__ */ D(he, { isDisabled: m, children: /* @__PURE__ */ D(
|
|
3355
|
+
we,
|
|
3305
3356
|
{
|
|
3306
3357
|
className: p ? "truncated-cell" : "",
|
|
3307
3358
|
display: "inline-block",
|
|
@@ -3310,78 +3361,106 @@ const je = /* @__PURE__ */ Y(function({ row: e, depth: l = 0 }, n) {
|
|
|
3310
3361
|
maxW: "100%",
|
|
3311
3362
|
position: "relative",
|
|
3312
3363
|
overflow: "hidden",
|
|
3313
|
-
cursor:
|
|
3364
|
+
cursor: m ? "not-allowed" : "text",
|
|
3314
3365
|
children: z.render ? z.render({
|
|
3315
|
-
value: S
|
|
3366
|
+
value: _(S),
|
|
3316
3367
|
row: e,
|
|
3317
3368
|
column: z
|
|
3318
|
-
}) : S
|
|
3369
|
+
}) : _(S)
|
|
3319
3370
|
}
|
|
3320
3371
|
) }, z.id);
|
|
3321
|
-
} })
|
|
3372
|
+
} }),
|
|
3373
|
+
/* @__PURE__ */ D(he, { "data-slot": "pin-row-cell", isDisabled: m, children: /* @__PURE__ */ D(
|
|
3374
|
+
we,
|
|
3375
|
+
{
|
|
3376
|
+
display: "flex",
|
|
3377
|
+
alignItems: "center",
|
|
3378
|
+
justifyContent: "center",
|
|
3379
|
+
w: "100%",
|
|
3380
|
+
h: "100%",
|
|
3381
|
+
children: /* @__PURE__ */ ie(at.Root, { children: [
|
|
3382
|
+
/* @__PURE__ */ D(
|
|
3383
|
+
nn,
|
|
3384
|
+
{
|
|
3385
|
+
size: "2xs",
|
|
3386
|
+
variant: "ghost",
|
|
3387
|
+
"aria-label": T ? "Unpin row" : "Pin row",
|
|
3388
|
+
colorPalette: "primary",
|
|
3389
|
+
className: `nimbus-table-cell-pin-button ${T ? "nimbus-table-cell-pin-button-pinned" : ""}`,
|
|
3390
|
+
onClick: (z) => {
|
|
3391
|
+
z.stopPropagation(), y(e.id);
|
|
3392
|
+
},
|
|
3393
|
+
children: /* @__PURE__ */ D(an, {})
|
|
3394
|
+
},
|
|
3395
|
+
"pin-btn"
|
|
3396
|
+
),
|
|
3397
|
+
/* @__PURE__ */ D(at.Content, { placement: "top", children: T ? "Unpin row" : "Pin row" })
|
|
3398
|
+
] })
|
|
3399
|
+
}
|
|
3400
|
+
) })
|
|
3322
3401
|
]
|
|
3323
3402
|
}
|
|
3324
3403
|
),
|
|
3325
|
-
|
|
3404
|
+
d && /* @__PURE__ */ D(st, { style: { display: K ? void 0 : "none" }, children: /* @__PURE__ */ D(
|
|
3326
3405
|
he,
|
|
3327
3406
|
{
|
|
3328
|
-
isDisabled:
|
|
3329
|
-
colSpan: o.length + (
|
|
3407
|
+
isDisabled: m,
|
|
3408
|
+
colSpan: o.length + (d ? 1 : 0) + (s ? 1 : 0) + 1,
|
|
3330
3409
|
style: {
|
|
3331
3410
|
borderLeft: "2px solid blue"
|
|
3332
3411
|
},
|
|
3333
|
-
children:
|
|
3412
|
+
children: K ? c && Array.isArray(e[c]) ? `${e[c].length} nested items` : c && e[c] : null
|
|
3334
3413
|
}
|
|
3335
3414
|
) })
|
|
3336
3415
|
] });
|
|
3337
3416
|
});
|
|
3338
|
-
|
|
3339
|
-
const
|
|
3340
|
-
const { sortedRows: n, activeColumns: o } =
|
|
3341
|
-
return /* @__PURE__ */
|
|
3342
|
-
|
|
3417
|
+
Ye.displayName = "DataTable.Row";
|
|
3418
|
+
const Xe = /* @__PURE__ */ X(function(e, l) {
|
|
3419
|
+
const { sortedRows: n, activeColumns: o } = ye();
|
|
3420
|
+
return /* @__PURE__ */ D(
|
|
3421
|
+
_n,
|
|
3343
3422
|
{
|
|
3344
3423
|
ref: l,
|
|
3345
3424
|
items: n,
|
|
3346
3425
|
dependencies: [o],
|
|
3347
|
-
renderEmptyState: () => /* @__PURE__ */
|
|
3426
|
+
renderEmptyState: () => /* @__PURE__ */ D(we, { w: "100%", p: "200", children: "No Data" }),
|
|
3348
3427
|
...e,
|
|
3349
|
-
children: (
|
|
3428
|
+
children: (i) => /* @__PURE__ */ D(Ye, { row: i }, i.id)
|
|
3350
3429
|
}
|
|
3351
3430
|
);
|
|
3352
3431
|
});
|
|
3353
|
-
|
|
3354
|
-
const
|
|
3432
|
+
Xe.displayName = "DataTable.Body";
|
|
3433
|
+
const $e = ({
|
|
3355
3434
|
children: t,
|
|
3356
3435
|
ref: e,
|
|
3357
3436
|
column: l,
|
|
3358
3437
|
unstyled: n,
|
|
3359
3438
|
isInternalColumn: o,
|
|
3360
|
-
tabIndex:
|
|
3361
|
-
...
|
|
3439
|
+
tabIndex: i,
|
|
3440
|
+
...r
|
|
3362
3441
|
}) => {
|
|
3363
|
-
const { sortDescriptor: u, isResizable:
|
|
3364
|
-
return /* @__PURE__ */
|
|
3365
|
-
const { allowsSorting: p } =
|
|
3366
|
-
return o ? typeof t == "function" ? t(
|
|
3367
|
-
/* @__PURE__ */
|
|
3368
|
-
|
|
3442
|
+
const { sortDescriptor: u, isResizable: c } = ye(), a = u?.column === l?.id, d = l?.isResizable !== void 0 ? l?.isResizable : c;
|
|
3443
|
+
return /* @__PURE__ */ D($o, { unstyled: n, tabIndex: i, asChild: !0, children: /* @__PURE__ */ D(Qn, { ref: e, ...r, children: (s) => {
|
|
3444
|
+
const { allowsSorting: p } = s;
|
|
3445
|
+
return o ? typeof t == "function" ? t(s) : t : /* @__PURE__ */ ie(cn, { tabIndex: l?.isResizable ? 0 : -1, focusRing: "outside", children: [
|
|
3446
|
+
/* @__PURE__ */ D(
|
|
3447
|
+
dn,
|
|
3369
3448
|
{
|
|
3370
3449
|
orientation: "vertical",
|
|
3371
3450
|
className: "data-table-column-divider"
|
|
3372
3451
|
}
|
|
3373
3452
|
),
|
|
3374
|
-
typeof t == "function" ? t(
|
|
3375
|
-
p && /* @__PURE__ */
|
|
3376
|
-
|
|
3453
|
+
typeof t == "function" ? t(s) : t,
|
|
3454
|
+
p && /* @__PURE__ */ D(
|
|
3455
|
+
Co,
|
|
3377
3456
|
{
|
|
3378
3457
|
"aria-hidden": "true",
|
|
3379
|
-
color:
|
|
3380
|
-
children: /* @__PURE__ */
|
|
3458
|
+
color: a ? "neutral.11" : "neutral.10",
|
|
3459
|
+
children: /* @__PURE__ */ D(un, {})
|
|
3381
3460
|
}
|
|
3382
3461
|
),
|
|
3383
|
-
|
|
3384
|
-
|
|
3462
|
+
d && /* @__PURE__ */ D(Jn, { "aria-label": "Resize column", children: ({ isResizing: f, isFocused: h }) => /* @__PURE__ */ D(
|
|
3463
|
+
So,
|
|
3385
3464
|
{
|
|
3386
3465
|
"data-resizing": f,
|
|
3387
3466
|
"data-focused": h
|
|
@@ -3389,21 +3468,21 @@ const Ce = ({
|
|
|
3389
3468
|
) })
|
|
3390
3469
|
] });
|
|
3391
3470
|
} }) });
|
|
3392
|
-
},
|
|
3471
|
+
}, Ge = /* @__PURE__ */ X(
|
|
3393
3472
|
function({ children: e, ...l }, n) {
|
|
3394
|
-
return /* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ D(xo, { ref: n, ...l, children: e });
|
|
3395
3474
|
}
|
|
3396
3475
|
);
|
|
3397
|
-
|
|
3398
|
-
const
|
|
3399
|
-
const { activeColumns: n, allowsSorting: o, maxHeight:
|
|
3400
|
-
return /* @__PURE__ */
|
|
3401
|
-
|
|
3476
|
+
Ge.displayName = "DataTable.Footer";
|
|
3477
|
+
const qe = /* @__PURE__ */ X(function(e, l) {
|
|
3478
|
+
const { activeColumns: n, allowsSorting: o, maxHeight: i, showExpandColumn: r } = ye(), { selectionBehavior: u, selectionMode: c } = cl();
|
|
3479
|
+
return /* @__PURE__ */ ie(
|
|
3480
|
+
qn,
|
|
3402
3481
|
{
|
|
3403
3482
|
ref: l,
|
|
3404
3483
|
className: "data-table-header",
|
|
3405
3484
|
style: {
|
|
3406
|
-
...
|
|
3485
|
+
...i && {
|
|
3407
3486
|
position: "sticky",
|
|
3408
3487
|
top: 0,
|
|
3409
3488
|
zIndex: 10
|
|
@@ -3412,8 +3491,8 @@ const Ue = /* @__PURE__ */ Y(function(e, l) {
|
|
|
3412
3491
|
columns: n,
|
|
3413
3492
|
...e,
|
|
3414
3493
|
children: [
|
|
3415
|
-
u === "toggle" && /* @__PURE__ */
|
|
3416
|
-
|
|
3494
|
+
u === "toggle" && /* @__PURE__ */ D(
|
|
3495
|
+
$e,
|
|
3417
3496
|
{
|
|
3418
3497
|
id: "selection",
|
|
3419
3498
|
className: "selection-column-header",
|
|
@@ -3421,11 +3500,11 @@ const Ue = /* @__PURE__ */ Y(function(e, l) {
|
|
|
3421
3500
|
minWidth: 72,
|
|
3422
3501
|
allowsSorting: !1,
|
|
3423
3502
|
isInternalColumn: !0,
|
|
3424
|
-
children:
|
|
3503
|
+
children: c === "multiple" && /* @__PURE__ */ D(yt, { slot: "selection" })
|
|
3425
3504
|
}
|
|
3426
3505
|
),
|
|
3427
|
-
|
|
3428
|
-
|
|
3506
|
+
r && /* @__PURE__ */ D(
|
|
3507
|
+
$e,
|
|
3429
3508
|
{
|
|
3430
3509
|
className: "expand-column-header",
|
|
3431
3510
|
maxWidth: 24,
|
|
@@ -3433,281 +3512,332 @@ const Ue = /* @__PURE__ */ Y(function(e, l) {
|
|
|
3433
3512
|
allowsSorting: !1,
|
|
3434
3513
|
"aria-label": "Expand rows",
|
|
3435
3514
|
isInternalColumn: !0,
|
|
3436
|
-
children: /* @__PURE__ */
|
|
3515
|
+
children: /* @__PURE__ */ D(rt, { children: "Expand rows" })
|
|
3437
3516
|
}
|
|
3438
3517
|
),
|
|
3439
|
-
/* @__PURE__ */
|
|
3440
|
-
|
|
3518
|
+
/* @__PURE__ */ D(De, { items: n, children: (a) => /* @__PURE__ */ ie(
|
|
3519
|
+
$e,
|
|
3441
3520
|
{
|
|
3442
3521
|
allowsSorting: (
|
|
3443
3522
|
// use column.isSortable if defined, and fallback to allowsSorting if not
|
|
3444
|
-
|
|
3523
|
+
a.isSortable !== void 0 ? a.isSortable : o
|
|
3445
3524
|
),
|
|
3446
3525
|
isRowHeader: !0,
|
|
3447
|
-
width:
|
|
3448
|
-
defaultWidth:
|
|
3449
|
-
minWidth:
|
|
3450
|
-
maxWidth:
|
|
3451
|
-
column:
|
|
3526
|
+
width: a.width,
|
|
3527
|
+
defaultWidth: a.defaultWidth,
|
|
3528
|
+
minWidth: a.minWidth ?? 150,
|
|
3529
|
+
maxWidth: a.maxWidth,
|
|
3530
|
+
column: a,
|
|
3452
3531
|
children: [
|
|
3453
|
-
/* @__PURE__ */
|
|
3454
|
-
|
|
3532
|
+
/* @__PURE__ */ D("span", { "data-multiline-header": !0, children: a.header }),
|
|
3533
|
+
a.headerIcon && /* @__PURE__ */ D(we, { as: "span", ml: "200", children: a.headerIcon })
|
|
3455
3534
|
]
|
|
3456
3535
|
}
|
|
3457
|
-
) })
|
|
3536
|
+
) }),
|
|
3537
|
+
/* @__PURE__ */ D(
|
|
3538
|
+
$e,
|
|
3539
|
+
{
|
|
3540
|
+
className: "pin-rows-column-header",
|
|
3541
|
+
id: "pin-rows",
|
|
3542
|
+
maxWidth: 72,
|
|
3543
|
+
minWidth: 72,
|
|
3544
|
+
allowsSorting: !1,
|
|
3545
|
+
isInternalColumn: !0,
|
|
3546
|
+
"aria-label": "Pin rows",
|
|
3547
|
+
children: /* @__PURE__ */ D(rt, { children: "Pin rows" })
|
|
3548
|
+
}
|
|
3549
|
+
)
|
|
3458
3550
|
]
|
|
3459
3551
|
}
|
|
3460
3552
|
);
|
|
3461
3553
|
});
|
|
3462
|
-
|
|
3463
|
-
function
|
|
3554
|
+
qe.displayName = "DataTable.Header";
|
|
3555
|
+
function ml(t, e, l, n) {
|
|
3464
3556
|
if (!e) return t;
|
|
3465
3557
|
const o = e.toLowerCase();
|
|
3466
|
-
return t.map((
|
|
3467
|
-
const
|
|
3468
|
-
const
|
|
3469
|
-
return typeof
|
|
3558
|
+
return t.map((i) => {
|
|
3559
|
+
const r = l.some((u) => {
|
|
3560
|
+
const c = u.accessor(i);
|
|
3561
|
+
return typeof c == "string" && c.toLowerCase().includes(o);
|
|
3470
3562
|
});
|
|
3471
|
-
if (n &&
|
|
3472
|
-
let u =
|
|
3473
|
-
if (Array.isArray(
|
|
3474
|
-
if (u =
|
|
3475
|
-
|
|
3563
|
+
if (n && i[n]) {
|
|
3564
|
+
let u = i[n];
|
|
3565
|
+
if (Array.isArray(i[n])) {
|
|
3566
|
+
if (u = ml(
|
|
3567
|
+
i[n],
|
|
3476
3568
|
e,
|
|
3477
3569
|
l,
|
|
3478
3570
|
n
|
|
3479
|
-
),
|
|
3480
|
-
return { ...
|
|
3481
|
-
} else if (
|
|
3482
|
-
return { ...
|
|
3571
|
+
), r || u && Array.isArray(u) && u.length > 0)
|
|
3572
|
+
return { ...i, [n]: u };
|
|
3573
|
+
} else if (r)
|
|
3574
|
+
return { ...i, [n]: u };
|
|
3483
3575
|
return null;
|
|
3484
3576
|
} else
|
|
3485
|
-
return
|
|
3577
|
+
return r ? i : null;
|
|
3486
3578
|
}).filter(Boolean);
|
|
3487
3579
|
}
|
|
3488
|
-
function
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3580
|
+
function gl(t, e, l, n, o) {
|
|
3581
|
+
const i = [], r = [];
|
|
3582
|
+
t.forEach((a) => {
|
|
3583
|
+
o?.has(a.id) ? i.push(a) : r.push(a);
|
|
3584
|
+
});
|
|
3585
|
+
let u = r;
|
|
3586
|
+
if (e) {
|
|
3587
|
+
const a = l.find((d) => d.id === e.column);
|
|
3588
|
+
a && (u = [...r].sort((d, s) => {
|
|
3589
|
+
const p = a.accessor(d), f = a.accessor(s);
|
|
3590
|
+
if (p == null && f == null) return 0;
|
|
3591
|
+
if (p == null) return 1;
|
|
3592
|
+
if (f == null) return -1;
|
|
3593
|
+
let h = p, g = f;
|
|
3594
|
+
return typeof p == "number" && typeof f == "number" ? (h = p, g = f) : (h = String(p).toLowerCase(), g = String(f).toLowerCase()), h < g ? e.direction === "ascending" ? -1 : 1 : h > g ? e.direction === "ascending" ? 1 : -1 : 0;
|
|
3595
|
+
}));
|
|
3596
|
+
}
|
|
3597
|
+
return [...i, ...u].map((a) => !n || !a[n] ? a : {
|
|
3598
|
+
...a,
|
|
3599
|
+
[n]: Array.isArray(a[n]) ? gl(
|
|
3600
|
+
a[n],
|
|
3601
|
+
e,
|
|
3602
|
+
l,
|
|
3603
|
+
n,
|
|
3604
|
+
o
|
|
3605
|
+
) : a[n]
|
|
3606
|
+
});
|
|
3502
3607
|
}
|
|
3503
|
-
function
|
|
3608
|
+
function bl(t, e) {
|
|
3504
3609
|
return e ? t.some(
|
|
3505
|
-
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) &&
|
|
3610
|
+
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && bl(l[e], e)
|
|
3506
3611
|
) : !1;
|
|
3507
3612
|
}
|
|
3508
|
-
const
|
|
3613
|
+
const Ze = /* @__PURE__ */ X(
|
|
3509
3614
|
function(e, l) {
|
|
3510
3615
|
const {
|
|
3511
3616
|
columns: n = [],
|
|
3512
3617
|
data: o = [],
|
|
3513
|
-
visibleColumns:
|
|
3514
|
-
search:
|
|
3618
|
+
visibleColumns: i,
|
|
3619
|
+
search: r,
|
|
3515
3620
|
sortDescriptor: u,
|
|
3516
|
-
onSortChange:
|
|
3517
|
-
selectedKeys:
|
|
3518
|
-
defaultSelectedKeys:
|
|
3519
|
-
onSelectionChange:
|
|
3621
|
+
onSortChange: c,
|
|
3622
|
+
selectedKeys: a,
|
|
3623
|
+
defaultSelectedKeys: d,
|
|
3624
|
+
onSelectionChange: s,
|
|
3520
3625
|
selectionMode: p = "none",
|
|
3521
3626
|
disallowEmptySelection: f = !1,
|
|
3522
3627
|
allowsSorting: h = !1,
|
|
3523
|
-
maxHeight:
|
|
3524
|
-
isTruncated:
|
|
3525
|
-
density:
|
|
3628
|
+
maxHeight: g,
|
|
3629
|
+
isTruncated: y = !1,
|
|
3630
|
+
density: v = "default",
|
|
3526
3631
|
nestedKey: x,
|
|
3527
|
-
onRowClick:
|
|
3632
|
+
onRowClick: m,
|
|
3528
3633
|
onDetailsClick: $,
|
|
3529
|
-
disabledKeys:
|
|
3530
|
-
onRowAction:
|
|
3531
|
-
isResizable:
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
),
|
|
3540
|
-
() =>
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3634
|
+
disabledKeys: b,
|
|
3635
|
+
onRowAction: w,
|
|
3636
|
+
isResizable: C,
|
|
3637
|
+
pinnedRows: B,
|
|
3638
|
+
defaultPinnedRows: P,
|
|
3639
|
+
onPinToggle: E,
|
|
3640
|
+
children: W,
|
|
3641
|
+
...K
|
|
3642
|
+
} = e, [T, O] = Z(), [F, Y] = Z({}), [L, te] = Z(
|
|
3643
|
+
() => P || /* @__PURE__ */ new Set()
|
|
3644
|
+
), le = u ?? T, _ = B ?? L, z = N(() => n.filter(
|
|
3645
|
+
(ue) => (i ? i.includes(ue.id) : !0) && ue.isVisible !== !1
|
|
3646
|
+
), [n, i]), S = N(
|
|
3647
|
+
() => r ? ml(o, r, z, x) : o,
|
|
3648
|
+
[o, r, z, x]
|
|
3649
|
+
), A = N(
|
|
3650
|
+
() => gl(
|
|
3651
|
+
S,
|
|
3652
|
+
le,
|
|
3653
|
+
z,
|
|
3654
|
+
x,
|
|
3655
|
+
_
|
|
3656
|
+
),
|
|
3657
|
+
[S, le, z, x, _]
|
|
3658
|
+
), U = bl(A, x), ke = p !== "none", Je = V(
|
|
3659
|
+
(G) => Y((ue) => ({ ...ue, [G]: !ue[G] })),
|
|
3544
3660
|
[]
|
|
3545
|
-
),
|
|
3546
|
-
(
|
|
3547
|
-
|
|
3661
|
+
), _e = V(
|
|
3662
|
+
(G) => {
|
|
3663
|
+
E ? E(G) : te((ue) => {
|
|
3664
|
+
const Ee = new Set(ue);
|
|
3665
|
+
return Ee.has(G) ? Ee.delete(G) : Ee.add(G), Ee;
|
|
3666
|
+
});
|
|
3667
|
+
},
|
|
3668
|
+
[E]
|
|
3669
|
+
), et = V(
|
|
3670
|
+
(G) => {
|
|
3671
|
+
c ? c(G) : O(G);
|
|
3548
3672
|
},
|
|
3549
|
-
[
|
|
3550
|
-
),
|
|
3673
|
+
[c]
|
|
3674
|
+
), vl = N(
|
|
3551
3675
|
() => ({
|
|
3552
3676
|
columns: n,
|
|
3553
3677
|
data: o,
|
|
3554
|
-
visibleColumns:
|
|
3555
|
-
search:
|
|
3556
|
-
sortDescriptor:
|
|
3557
|
-
selectedKeys:
|
|
3558
|
-
defaultSelectedKeys:
|
|
3559
|
-
expanded:
|
|
3678
|
+
visibleColumns: i,
|
|
3679
|
+
search: r,
|
|
3680
|
+
sortDescriptor: le,
|
|
3681
|
+
selectedKeys: a,
|
|
3682
|
+
defaultSelectedKeys: d,
|
|
3683
|
+
expanded: F,
|
|
3560
3684
|
allowsSorting: h,
|
|
3561
3685
|
selectionMode: p,
|
|
3562
3686
|
disallowEmptySelection: f,
|
|
3563
|
-
maxHeight:
|
|
3564
|
-
isTruncated:
|
|
3565
|
-
density:
|
|
3687
|
+
maxHeight: g,
|
|
3688
|
+
isTruncated: y,
|
|
3689
|
+
density: v,
|
|
3566
3690
|
nestedKey: x,
|
|
3567
|
-
onSortChange:
|
|
3568
|
-
onSelectionChange:
|
|
3569
|
-
onRowClick:
|
|
3691
|
+
onSortChange: et,
|
|
3692
|
+
onSelectionChange: s,
|
|
3693
|
+
onRowClick: m,
|
|
3570
3694
|
onDetailsClick: $,
|
|
3571
|
-
toggleExpand:
|
|
3572
|
-
activeColumns:
|
|
3573
|
-
filteredRows:
|
|
3574
|
-
sortedRows:
|
|
3575
|
-
showExpandColumn:
|
|
3576
|
-
showSelectionColumn:
|
|
3577
|
-
isResizable:
|
|
3578
|
-
disabledKeys:
|
|
3579
|
-
onRowAction:
|
|
3695
|
+
toggleExpand: Je,
|
|
3696
|
+
activeColumns: z,
|
|
3697
|
+
filteredRows: S,
|
|
3698
|
+
sortedRows: A,
|
|
3699
|
+
showExpandColumn: U,
|
|
3700
|
+
showSelectionColumn: ke,
|
|
3701
|
+
isResizable: C,
|
|
3702
|
+
disabledKeys: b,
|
|
3703
|
+
onRowAction: w,
|
|
3704
|
+
pinnedRows: _,
|
|
3705
|
+
onPinToggle: E,
|
|
3706
|
+
togglePin: _e
|
|
3580
3707
|
}),
|
|
3581
3708
|
[
|
|
3582
3709
|
n,
|
|
3583
3710
|
o,
|
|
3584
|
-
r,
|
|
3585
3711
|
i,
|
|
3586
|
-
|
|
3712
|
+
r,
|
|
3713
|
+
le,
|
|
3714
|
+
a,
|
|
3587
3715
|
d,
|
|
3588
|
-
|
|
3589
|
-
P,
|
|
3716
|
+
F,
|
|
3590
3717
|
h,
|
|
3591
3718
|
p,
|
|
3592
3719
|
f,
|
|
3593
|
-
|
|
3720
|
+
g,
|
|
3721
|
+
y,
|
|
3594
3722
|
v,
|
|
3595
|
-
m,
|
|
3596
3723
|
x,
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3724
|
+
et,
|
|
3725
|
+
s,
|
|
3726
|
+
m,
|
|
3600
3727
|
$,
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3728
|
+
Je,
|
|
3729
|
+
z,
|
|
3730
|
+
S,
|
|
3731
|
+
A,
|
|
3732
|
+
U,
|
|
3733
|
+
ke,
|
|
3734
|
+
C,
|
|
3735
|
+
b,
|
|
3736
|
+
w,
|
|
3737
|
+
_,
|
|
3738
|
+
E,
|
|
3739
|
+
_e
|
|
3610
3740
|
]
|
|
3611
3741
|
);
|
|
3612
|
-
return /* @__PURE__ */
|
|
3613
|
-
|
|
3742
|
+
return /* @__PURE__ */ D(
|
|
3743
|
+
vo,
|
|
3614
3744
|
{
|
|
3615
3745
|
ref: l,
|
|
3616
|
-
truncated:
|
|
3617
|
-
density:
|
|
3746
|
+
truncated: y,
|
|
3747
|
+
density: v,
|
|
3618
3748
|
style: {
|
|
3619
|
-
...
|
|
3620
|
-
maxHeight:
|
|
3749
|
+
...g && {
|
|
3750
|
+
maxHeight: g,
|
|
3621
3751
|
overflowY: "auto"
|
|
3622
3752
|
}
|
|
3623
3753
|
},
|
|
3624
|
-
...
|
|
3754
|
+
...K,
|
|
3625
3755
|
asChild: !0,
|
|
3626
|
-
children: /* @__PURE__ */
|
|
3627
|
-
|
|
3756
|
+
children: /* @__PURE__ */ D(Un, { children: /* @__PURE__ */ D(
|
|
3757
|
+
Ke.Provider,
|
|
3628
3758
|
{
|
|
3629
|
-
value:
|
|
3630
|
-
children:
|
|
3759
|
+
value: vl,
|
|
3760
|
+
children: W
|
|
3631
3761
|
}
|
|
3632
3762
|
) })
|
|
3633
3763
|
}
|
|
3634
3764
|
);
|
|
3635
3765
|
}
|
|
3636
3766
|
);
|
|
3637
|
-
|
|
3638
|
-
const
|
|
3767
|
+
Ze.displayName = "DataTableRoot";
|
|
3768
|
+
const Qe = /* @__PURE__ */ X(function({ children: e, ...l }, n) {
|
|
3639
3769
|
const {
|
|
3640
3770
|
sortDescriptor: o,
|
|
3641
|
-
onSortChange:
|
|
3642
|
-
selectionMode:
|
|
3771
|
+
onSortChange: i,
|
|
3772
|
+
selectionMode: r,
|
|
3643
3773
|
onSelectionChange: u,
|
|
3644
|
-
selectedKeys:
|
|
3645
|
-
defaultSelectedKeys:
|
|
3646
|
-
disallowEmptySelection:
|
|
3647
|
-
disabledKeys:
|
|
3648
|
-
} =
|
|
3774
|
+
selectedKeys: c,
|
|
3775
|
+
defaultSelectedKeys: a,
|
|
3776
|
+
disallowEmptySelection: d,
|
|
3777
|
+
disabledKeys: s
|
|
3778
|
+
} = ye(), p = o ? {
|
|
3649
3779
|
column: o.column,
|
|
3650
3780
|
direction: o.direction
|
|
3651
3781
|
} : void 0;
|
|
3652
|
-
return /* @__PURE__ */
|
|
3653
|
-
|
|
3782
|
+
return /* @__PURE__ */ D(yo, { ...l, asChild: !0, children: /* @__PURE__ */ D(
|
|
3783
|
+
Xn,
|
|
3654
3784
|
{
|
|
3655
3785
|
ref: n,
|
|
3656
3786
|
sortDescriptor: p,
|
|
3657
3787
|
onSortChange: (h) => {
|
|
3658
|
-
h &&
|
|
3788
|
+
h && i && i({
|
|
3659
3789
|
column: String(h.column),
|
|
3660
3790
|
direction: h.direction
|
|
3661
3791
|
});
|
|
3662
3792
|
},
|
|
3663
|
-
selectedKeys:
|
|
3664
|
-
defaultSelectedKeys:
|
|
3793
|
+
selectedKeys: c,
|
|
3794
|
+
defaultSelectedKeys: a,
|
|
3665
3795
|
onSelectionChange: u,
|
|
3666
|
-
selectionMode:
|
|
3667
|
-
disallowEmptySelection:
|
|
3668
|
-
disabledKeys:
|
|
3796
|
+
selectionMode: r,
|
|
3797
|
+
disallowEmptySelection: d,
|
|
3798
|
+
disabledKeys: s,
|
|
3669
3799
|
disabledBehavior: "all",
|
|
3670
3800
|
...l,
|
|
3671
3801
|
children: e
|
|
3672
3802
|
}
|
|
3673
3803
|
) });
|
|
3674
3804
|
});
|
|
3675
|
-
|
|
3676
|
-
const
|
|
3677
|
-
return /* @__PURE__ */
|
|
3678
|
-
/* @__PURE__ */
|
|
3679
|
-
/* @__PURE__ */
|
|
3680
|
-
/* @__PURE__ */
|
|
3805
|
+
Qe.displayName = "DataTable.Table";
|
|
3806
|
+
const Eo = /* @__PURE__ */ X(function({ footer: e, ...l }, n) {
|
|
3807
|
+
return /* @__PURE__ */ ie(Ze, { ref: n, ...l, children: [
|
|
3808
|
+
/* @__PURE__ */ ie(Qe, { "aria-label": "Data Table", children: [
|
|
3809
|
+
/* @__PURE__ */ D(qe, { "aria-label": "Data Table Header" }),
|
|
3810
|
+
/* @__PURE__ */ D(Xe, { "aria-label": "Data Table Body" })
|
|
3681
3811
|
] }),
|
|
3682
|
-
e && /* @__PURE__ */
|
|
3812
|
+
e && /* @__PURE__ */ D(Ge, { children: e })
|
|
3683
3813
|
] });
|
|
3684
|
-
}),
|
|
3685
|
-
Root:
|
|
3686
|
-
Table:
|
|
3687
|
-
Header:
|
|
3688
|
-
Column:
|
|
3689
|
-
Body:
|
|
3690
|
-
Row:
|
|
3814
|
+
}), bi = /* @__PURE__ */ Object.assign(Eo, {
|
|
3815
|
+
Root: Ze,
|
|
3816
|
+
Table: Qe,
|
|
3817
|
+
Header: qe,
|
|
3818
|
+
Column: $e,
|
|
3819
|
+
Body: Xe,
|
|
3820
|
+
Row: Ye,
|
|
3691
3821
|
Cell: he,
|
|
3692
|
-
Footer:
|
|
3693
|
-
ExpandButton:
|
|
3694
|
-
NestedIcon:
|
|
3695
|
-
SelectionCell:
|
|
3696
|
-
Context:
|
|
3697
|
-
useDataTableContext:
|
|
3822
|
+
Footer: Ge,
|
|
3823
|
+
ExpandButton: hl,
|
|
3824
|
+
NestedIcon: Do,
|
|
3825
|
+
SelectionCell: wo,
|
|
3826
|
+
Context: Ke,
|
|
3827
|
+
useDataTableContext: ye
|
|
3698
3828
|
});
|
|
3699
3829
|
export {
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3830
|
+
bi as D,
|
|
3831
|
+
Ze as a,
|
|
3832
|
+
Qe as b,
|
|
3833
|
+
qe as c,
|
|
3834
|
+
$e as d,
|
|
3835
|
+
Xe as e,
|
|
3836
|
+
Ye as f,
|
|
3707
3837
|
he as g,
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3838
|
+
Ge as h,
|
|
3839
|
+
hl as i,
|
|
3840
|
+
Do as j,
|
|
3841
|
+
wo as k
|
|
3712
3842
|
};
|
|
3713
|
-
//# sourceMappingURL=data-table-
|
|
3843
|
+
//# sourceMappingURL=data-table-cBq9JXG7.es.js.map
|