@commercetools/nimbus 0.0.0-canary-20250929125459 → 0.0.0-canary-20250930095152
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/data-table-BFGyPJvT.cjs.js +2 -0
- package/dist/chunks/{data-table-BBgNLX1F.cjs.js.map → data-table-BFGyPJvT.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-D3e1Jwo7.es.js → data-table-CommJV1y.es.js} +883 -872
- package/dist/chunks/{data-table-D3e1Jwo7.es.js.map → data-table-CommJV1y.es.js.map} +1 -1
- package/dist/chunks/form-field-C6lWjdck.cjs.js +11 -0
- package/dist/chunks/form-field-C6lWjdck.cjs.js.map +1 -0
- package/dist/chunks/form-field-bP4SYMaC.es.js +319 -0
- package/dist/chunks/form-field-bP4SYMaC.es.js.map +1 -0
- package/dist/chunks/make-element-focusable-BDByS8Na.cjs.js +2 -0
- package/dist/chunks/make-element-focusable-BDByS8Na.cjs.js.map +1 -0
- package/dist/chunks/make-element-focusable-BamCHW5U.es.js +25 -0
- package/dist/chunks/make-element-focusable-BamCHW5U.es.js.map +1 -0
- package/dist/chunks/{money-input-B2X3PtKX.es.js → money-input-BN_yFB_R.es.js} +3 -3
- package/dist/chunks/{money-input-B2X3PtKX.es.js.map → money-input-BN_yFB_R.es.js.map} +1 -1
- package/dist/chunks/{money-input-BFhtaiLG.cjs.js → money-input-BPrFeUBJ.cjs.js} +2 -2
- package/dist/chunks/{money-input-BFhtaiLG.cjs.js.map → money-input-BPrFeUBJ.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-Dis-nnBy.cjs.js → pagination-0rlXyI2R.cjs.js} +2 -2
- package/dist/chunks/{pagination-Dis-nnBy.cjs.js.map → pagination-0rlXyI2R.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-ZXOMcPAB.es.js → pagination-C4dyNajw.es.js} +2 -2
- package/dist/chunks/{pagination-ZXOMcPAB.es.js.map → pagination-C4dyNajw.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-3MgAtZuL.cjs.js → rich-text-input-DbpI_805.cjs.js} +12 -12
- package/dist/chunks/{rich-text-input-3MgAtZuL.cjs.js.map → rich-text-input-DbpI_805.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-C8bdPxGb.es.js → rich-text-input-DynX9BO2.es.js} +658 -655
- package/dist/chunks/{rich-text-input-C8bdPxGb.es.js.map → rich-text-input-DynX9BO2.es.js.map} +1 -1
- package/dist/chunks/select-5dgbT8AN.cjs.js +2 -0
- package/dist/chunks/{select-C1SC1XAp.cjs.js.map → select-5dgbT8AN.cjs.js.map} +1 -1
- package/dist/chunks/select-CwavXa9Y.es.js +580 -0
- package/dist/chunks/{select-DpHmAHrs.es.js.map → select-CwavXa9Y.es.js.map} +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +7 -7
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/components.d.ts +76 -21
- package/dist/data-table.d.ts +45 -14
- package/dist/form-field.d.ts +7 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +74 -19
- package/dist/index.es.js +8 -8
- package/dist/select.d.ts +12 -4
- package/dist/tooltip.d.ts +13 -6
- package/package.json +5 -5
- package/dist/chunks/data-table-BBgNLX1F.cjs.js +0 -2
- package/dist/chunks/form-field-D2DlhLF_.cjs.js +0 -11
- package/dist/chunks/form-field-D2DlhLF_.cjs.js.map +0 -1
- package/dist/chunks/form-field-DY3B_1tq.es.js +0 -310
- package/dist/chunks/form-field-DY3B_1tq.es.js.map +0 -1
- package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js +0 -22
- package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js.map +0 -1
- package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js +0 -2
- package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js.map +0 -1
- package/dist/chunks/select-C1SC1XAp.cjs.js +0 -2
- package/dist/chunks/select-DpHmAHrs.es.js +0 -579
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsx as C, jsxs as
|
|
2
|
-
import S, { useRef as
|
|
3
|
-
import {
|
|
4
|
-
import { $ as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { $ as
|
|
12
|
-
import { $ as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
1
|
+
import { jsx as C, jsxs as ue, Fragment as Rl } from "react/jsx-runtime";
|
|
2
|
+
import S, { useRef as A, useMemo as N, useCallback as j, useEffect as de, useState as Z, forwardRef as Ae, createContext as ce, useContext as R } from "react";
|
|
3
|
+
import { createSlotRecipeContext as Al, mergeRefs as we } from "@chakra-ui/react";
|
|
4
|
+
import { $ as yt } from "./Button-CNBS3n5a.es.js";
|
|
5
|
+
import { $ as $t } from "./RSPContexts-B4yvXuBR.es.js";
|
|
6
|
+
import { b as V, m as ie, n as re, o as Pe, p as Bl, a as Kl, c as xt, d as Dt, f as Ml, e as Nl, g as J, k as Ct, h as at, $ as Tl, q as Fl } from "./SelectionManager-BCXBpjO4.es.js";
|
|
7
|
+
import { $ as wt, a as ae, d as Be, g as st, f as Il } from "./utils-BkdW_cdL.es.js";
|
|
8
|
+
import { $ as ge, a as Wl, b as Vl, c as Hl, d as Vo, e as Ho } from "./DragAndDrop-ChYb3tCX.es.js";
|
|
9
|
+
import { $ as jl } from "./intlStrings-Cd44R5hT.es.js";
|
|
10
|
+
import { c as je, a as St, g as Se, f as Ol, j as Ul, k as Ll, l as Ke, m as Yl, i as Uo } from "./Separator-Qp4OCFiC.es.js";
|
|
11
|
+
import { d as De, a as Me, $ as H, e as Xl, c as dt } from "./mergeProps-B_9syxhT.es.js";
|
|
12
|
+
import { $ as Q } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
13
|
+
import { $ as G } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
14
|
+
import { a as Gl } from "./OverlayArrow-sJzRZNbO.es.js";
|
|
15
|
+
import { c as fe, $ as pe, a as Oe, d as ql } from "./scrollIntoView-BYF_8_6g.es.js";
|
|
16
|
+
import Zl from "react-dom";
|
|
16
17
|
import { $ as ke } from "./useHover-DhoE75lX.es.js";
|
|
17
|
-
import { d as
|
|
18
|
-
import { a as
|
|
19
|
-
import { $ as
|
|
20
|
-
import { $ as
|
|
21
|
-
import { $ as
|
|
22
|
-
import { b as
|
|
23
|
-
import { $ as
|
|
24
|
-
import { $ as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { $ as
|
|
27
|
-
import { a as
|
|
28
|
-
import { e as
|
|
18
|
+
import { d as ct } from "./platform-Z5fvtFmM.es.js";
|
|
19
|
+
import { a as Jl, b as Ql, $ as kt } from "./usePress-DHhWHfMz.es.js";
|
|
20
|
+
import { $ as _l, c as en } from "./useFocusable-CrsD8ZcF.es.js";
|
|
21
|
+
import { $ as tn, f as ln } from "./useFocusVisible-CWDaG0ze.es.js";
|
|
22
|
+
import { $ as q } from "./focusSafely-DJpphVHF.es.js";
|
|
23
|
+
import { b as ft, a as nn } from "./FocusScope-CNO0fzPs.es.js";
|
|
24
|
+
import { $ as be } from "./context-R4YUlO9Y.es.js";
|
|
25
|
+
import { $ as ve } from "./useLocalizedStringFormatter-BRnRyxJp.es.js";
|
|
26
|
+
import { $ as me } from "./useFocusRing-updnkDQg.es.js";
|
|
27
|
+
import { $ as on } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
28
|
+
import { a as Ne, $ as pt } from "./VisuallyHidden-VHEPK04F.es.js";
|
|
29
|
+
import { e as rn } from "./openLink-Ctl0AdAy.es.js";
|
|
29
30
|
import { m as Re } from "./utils-jpfA6kxk.es.js";
|
|
30
|
-
import { $ as
|
|
31
|
-
import { $ as
|
|
32
|
-
import { $ as
|
|
33
|
-
import { $ as
|
|
34
|
-
import { B as
|
|
35
|
-
import { e as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = K({
|
|
31
|
+
import { $ as un, a as an, b as sn, c as dn } from "./useHighlightSelectionDescription-BQg1WcM3.es.js";
|
|
32
|
+
import { $ as cn } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
33
|
+
import { $ as Et } from "./useCollator-BHMZd1r6.es.js";
|
|
34
|
+
import { $ as fn } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
35
|
+
import { B as Ce } from "./box-DuBoAZvq.es.js";
|
|
36
|
+
import { e as ye } from "./extractStyleProps-DkXeCUuq.es.js";
|
|
37
|
+
import { k as pn } from "./index-CRta5Y1_.es.js";
|
|
38
|
+
import { Highlight as hn } from "@chakra-ui/react/highlight";
|
|
39
|
+
import { I as mn } from "./icon-button-C_i4ydsN.es.js";
|
|
40
|
+
import { b as ht } from "./tooltip-B1YdruCE.es.js";
|
|
41
|
+
import { C as zt } from "./checkbox-CdSHDZgM.es.js";
|
|
42
|
+
import { KeyboardArrowDown as gn, KeyboardArrowRight as bn, PushPin as vn, ArrowDownward as yn } from "@commercetools/nimbus-icons";
|
|
43
|
+
import { S as $n } from "./separator-BSLmXG3h.es.js";
|
|
44
|
+
import { Flex as xn } from "@chakra-ui/react/flex";
|
|
45
|
+
function Dn(t) {
|
|
46
|
+
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = A({
|
|
47
47
|
didMove: !1,
|
|
48
48
|
lastPosition: null,
|
|
49
49
|
id: null
|
|
50
|
-
}), { addGlobalListener: r, removeGlobalListener: i } =
|
|
50
|
+
}), { addGlobalListener: r, removeGlobalListener: i } = on(), u = De((s, a, p, f) => {
|
|
51
51
|
p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
|
|
52
52
|
type: "movestart",
|
|
53
53
|
pointerType: a,
|
|
@@ -65,8 +65,8 @@ function $n(t) {
|
|
|
65
65
|
ctrlKey: s.ctrlKey,
|
|
66
66
|
altKey: s.altKey
|
|
67
67
|
}));
|
|
68
|
-
}), c =
|
|
69
|
-
|
|
68
|
+
}), c = De((s, a) => {
|
|
69
|
+
Jl(), o.current.didMove && n?.({
|
|
70
70
|
type: "moveend",
|
|
71
71
|
pointerType: a,
|
|
72
72
|
shiftKey: s.shiftKey,
|
|
@@ -76,15 +76,15 @@ function $n(t) {
|
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
return {
|
|
79
|
-
moveProps:
|
|
79
|
+
moveProps: N(() => {
|
|
80
80
|
let s = {}, a = () => {
|
|
81
|
-
|
|
81
|
+
Ql(), o.current.didMove = !1;
|
|
82
82
|
};
|
|
83
83
|
if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
|
|
84
84
|
let f = (m) => {
|
|
85
85
|
if (m.button === 0) {
|
|
86
|
-
var D, b,
|
|
87
|
-
u(m, "mouse", m.pageX - ((
|
|
86
|
+
var D, b, y, v;
|
|
87
|
+
u(m, "mouse", m.pageX - ((y = (D = o.current.lastPosition) === null || D === void 0 ? void 0 : D.pageX) !== null && y !== void 0 ? y : 0), m.pageY - ((v = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageY) !== null && v !== void 0 ? v : 0)), o.current.lastPosition = {
|
|
88
88
|
pageX: m.pageX,
|
|
89
89
|
pageY: m.pageY
|
|
90
90
|
};
|
|
@@ -103,42 +103,42 @@ function $n(t) {
|
|
|
103
103
|
...m.changedTouches
|
|
104
104
|
].findIndex(({ identifier: k }) => k === o.current.id);
|
|
105
105
|
if (D >= 0) {
|
|
106
|
-
var b,
|
|
106
|
+
var b, y;
|
|
107
107
|
let { pageX: k, pageY: P } = m.changedTouches[D];
|
|
108
108
|
var v, w;
|
|
109
|
-
u(m, "touch", k - ((v = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageX) !== null && v !== void 0 ? v : 0), P - ((w = (
|
|
109
|
+
u(m, "touch", k - ((v = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageX) !== null && v !== void 0 ? v : 0), P - ((w = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageY) !== null && w !== void 0 ? w : 0)), o.current.lastPosition = {
|
|
110
110
|
pageX: k,
|
|
111
111
|
pageY: P
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, $ = (m) => {
|
|
115
115
|
[
|
|
116
116
|
...m.changedTouches
|
|
117
|
-
].findIndex(({ identifier: b }) => b === o.current.id) >= 0 && (c(m, "touch"), o.current.id = null, i(window, "touchmove", g), i(window, "touchend",
|
|
117
|
+
].findIndex(({ identifier: b }) => b === o.current.id) >= 0 && (c(m, "touch"), o.current.id = null, i(window, "touchmove", g), i(window, "touchend", $), i(window, "touchcancel", $));
|
|
118
118
|
};
|
|
119
119
|
s.onTouchStart = (m) => {
|
|
120
120
|
if (m.changedTouches.length === 0 || o.current.id != null) return;
|
|
121
|
-
let { pageX: D, pageY: b, identifier:
|
|
121
|
+
let { pageX: D, pageY: b, identifier: y } = m.changedTouches[0];
|
|
122
122
|
a(), m.stopPropagation(), m.preventDefault(), o.current.lastPosition = {
|
|
123
123
|
pageX: D,
|
|
124
124
|
pageY: b
|
|
125
|
-
}, o.current.id =
|
|
125
|
+
}, o.current.id = y, r(window, "touchmove", g, !1), r(window, "touchend", $, !1), r(window, "touchcancel", $, !1);
|
|
126
126
|
};
|
|
127
127
|
} else {
|
|
128
128
|
let f = (g) => {
|
|
129
129
|
if (g.pointerId === o.current.id) {
|
|
130
|
-
var
|
|
131
|
-
let
|
|
130
|
+
var $, m;
|
|
131
|
+
let y = g.pointerType || "mouse";
|
|
132
132
|
var D, b;
|
|
133
|
-
u(g,
|
|
133
|
+
u(g, y, g.pageX - ((D = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageX) !== null && D !== void 0 ? D : 0), g.pageY - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
|
|
134
134
|
pageX: g.pageX,
|
|
135
135
|
pageY: g.pageY
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
}, h = (g) => {
|
|
139
139
|
if (g.pointerId === o.current.id) {
|
|
140
|
-
let
|
|
141
|
-
c(g,
|
|
140
|
+
let $ = g.pointerType || "mouse";
|
|
141
|
+
c(g, $), o.current.id = null, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1);
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
s.onPointerDown = (g) => {
|
|
@@ -180,7 +180,7 @@ function $n(t) {
|
|
|
180
180
|
])
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
class
|
|
183
|
+
class Pt {
|
|
184
184
|
isCell(e) {
|
|
185
185
|
return e.type === "cell";
|
|
186
186
|
}
|
|
@@ -261,7 +261,7 @@ class kt {
|
|
|
261
261
|
var n, o;
|
|
262
262
|
let s = V(l, this.collection);
|
|
263
263
|
var r;
|
|
264
|
-
return (r = this.direction === "rtl" ? (n =
|
|
264
|
+
return (r = this.direction === "rtl" ? (n = ie(s)) === null || n === void 0 ? void 0 : n.key : (o = re(s)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
265
265
|
}
|
|
266
266
|
if (this.isCell(l) && l.parentKey != null) {
|
|
267
267
|
let s = this.collection.getItem(l.parentKey);
|
|
@@ -285,7 +285,7 @@ class kt {
|
|
|
285
285
|
var n, o;
|
|
286
286
|
let s = V(l, this.collection);
|
|
287
287
|
var r;
|
|
288
|
-
return (r = this.direction === "rtl" ? (n =
|
|
288
|
+
return (r = this.direction === "rtl" ? (n = re(s)) === null || n === void 0 ? void 0 : n.key : (o = ie(s)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
289
289
|
}
|
|
290
290
|
if (this.isCell(l) && l.parentKey != null) {
|
|
291
291
|
let s = this.collection.getItem(l.parentKey);
|
|
@@ -311,7 +311,7 @@ class kt {
|
|
|
311
311
|
let d = this.collection.getItem(o.parentKey);
|
|
312
312
|
if (!d) return null;
|
|
313
313
|
var i;
|
|
314
|
-
return (i = (r =
|
|
314
|
+
return (i = (r = re(V(d, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
if (n = this.findNextKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
@@ -319,7 +319,7 @@ class kt {
|
|
|
319
319
|
let d = this.collection.getItem(n);
|
|
320
320
|
if (!d) return null;
|
|
321
321
|
var c;
|
|
322
|
-
n = (c = (u =
|
|
322
|
+
n = (c = (u = re(V(d, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
323
323
|
}
|
|
324
324
|
return n;
|
|
325
325
|
}
|
|
@@ -333,7 +333,7 @@ class kt {
|
|
|
333
333
|
if (!d) return null;
|
|
334
334
|
let s = V(d, this.collection);
|
|
335
335
|
var i;
|
|
336
|
-
return (i = (r =
|
|
336
|
+
return (i = (r = ie(s)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
if (n = this.findPreviousKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
@@ -342,7 +342,7 @@ class kt {
|
|
|
342
342
|
if (!d) return null;
|
|
343
343
|
let s = V(d, this.collection);
|
|
344
344
|
var c;
|
|
345
|
-
n = (c = (u =
|
|
345
|
+
n = (c = (u = ie(s)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
346
346
|
}
|
|
347
347
|
return n;
|
|
348
348
|
}
|
|
@@ -385,7 +385,7 @@ class kt {
|
|
|
385
385
|
let a = s.textValue.slice(0, e.length);
|
|
386
386
|
if (this.collator.compare(a, e) === 0) {
|
|
387
387
|
var c, d;
|
|
388
|
-
return this.isRow(s) && this.focusMode === "cell" ? (d = (c =
|
|
388
|
+
return this.isRow(s) && this.focusMode === "cell" ? (d = (c = re(V(s, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && d !== void 0 ? d : null : s.key;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
n = this.findNextKey(n, (a) => a.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
|
|
@@ -394,12 +394,12 @@ class kt {
|
|
|
394
394
|
}
|
|
395
395
|
constructor(e) {
|
|
396
396
|
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.");
|
|
397
|
-
this.layoutDelegate = e.layoutDelegate || (e.layout ? new
|
|
397
|
+
this.layoutDelegate = e.layoutDelegate || (e.layout ? new Cn(e.layout) : new Bl(e.ref));
|
|
398
398
|
var l;
|
|
399
399
|
this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
class
|
|
402
|
+
class Cn {
|
|
403
403
|
getContentSize() {
|
|
404
404
|
return this.layout.getContentSize();
|
|
405
405
|
}
|
|
@@ -414,17 +414,17 @@ class xn {
|
|
|
414
414
|
this.layout = e;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
const
|
|
418
|
-
function
|
|
417
|
+
const Ue = /* @__PURE__ */ new WeakMap();
|
|
418
|
+
function wn(t, e, l) {
|
|
419
419
|
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: u, getRowText: c, onRowAction: d, onCellAction: s, escapeKeyBehavior: a = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
|
|
420
420
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
421
|
-
let h =
|
|
421
|
+
let h = Et({
|
|
422
422
|
usage: "search",
|
|
423
423
|
sensitivity: "base"
|
|
424
|
-
}), { direction: g } =
|
|
424
|
+
}), { direction: g } = be(), $ = e.selectionManager.disabledBehavior, m = N(() => r || new Pt({
|
|
425
425
|
collection: e.collection,
|
|
426
426
|
disabledKeys: e.disabledKeys,
|
|
427
|
-
disabledBehavior:
|
|
427
|
+
disabledBehavior: $,
|
|
428
428
|
ref: l,
|
|
429
429
|
direction: g,
|
|
430
430
|
collator: h,
|
|
@@ -433,12 +433,12 @@ function Dn(t, e, l) {
|
|
|
433
433
|
r,
|
|
434
434
|
e.collection,
|
|
435
435
|
e.disabledKeys,
|
|
436
|
-
|
|
436
|
+
$,
|
|
437
437
|
l,
|
|
438
438
|
g,
|
|
439
439
|
h,
|
|
440
440
|
i
|
|
441
|
-
]), { collectionProps: D } =
|
|
441
|
+
]), { collectionProps: D } = Kl({
|
|
442
442
|
ref: l,
|
|
443
443
|
selectionManager: f,
|
|
444
444
|
keyboardDelegate: m,
|
|
@@ -446,8 +446,8 @@ function Dn(t, e, l) {
|
|
|
446
446
|
scrollRef: u,
|
|
447
447
|
disallowTypeAhead: o,
|
|
448
448
|
escapeKeyBehavior: a
|
|
449
|
-
}), b =
|
|
450
|
-
|
|
449
|
+
}), b = Me(t.id);
|
|
450
|
+
Ue.set(e, {
|
|
451
451
|
keyboardDelegate: m,
|
|
452
452
|
actions: {
|
|
453
453
|
onRowAction: d,
|
|
@@ -455,10 +455,10 @@ function Dn(t, e, l) {
|
|
|
455
455
|
},
|
|
456
456
|
shouldSelectOnPressUp: p
|
|
457
457
|
});
|
|
458
|
-
let
|
|
458
|
+
let y = un({
|
|
459
459
|
selectionManager: f,
|
|
460
460
|
hasItemActions: !!(d || s)
|
|
461
|
-
}), v =
|
|
461
|
+
}), v = Q(t, {
|
|
462
462
|
labelable: !0
|
|
463
463
|
}), w = j((E) => {
|
|
464
464
|
if (f.isFocused) {
|
|
@@ -468,15 +468,15 @@ function Dn(t, e, l) {
|
|
|
468
468
|
E.currentTarget.contains(E.target) && f.setFocused(!0);
|
|
469
469
|
}, [
|
|
470
470
|
f
|
|
471
|
-
]), k =
|
|
471
|
+
]), k = N(() => ({
|
|
472
472
|
onBlur: D.onBlur,
|
|
473
473
|
onFocus: w
|
|
474
474
|
}), [
|
|
475
475
|
w,
|
|
476
476
|
D.onBlur
|
|
477
|
-
]), P =
|
|
477
|
+
]), P = an(l, {
|
|
478
478
|
isDisabled: e.collection.size !== 0
|
|
479
|
-
}),
|
|
479
|
+
}), B = H(
|
|
480
480
|
v,
|
|
481
481
|
{
|
|
482
482
|
role: "grid",
|
|
@@ -488,33 +488,33 @@ function Dn(t, e, l) {
|
|
|
488
488
|
e.collection.size === 0 && {
|
|
489
489
|
tabIndex: P ? -1 : 0
|
|
490
490
|
} || void 0,
|
|
491
|
-
|
|
491
|
+
y
|
|
492
492
|
);
|
|
493
|
-
return n && (
|
|
493
|
+
return n && (B["aria-rowcount"] = e.collection.size, B["aria-colcount"] = e.collection.columnCount), sn({
|
|
494
494
|
getRowText: c
|
|
495
495
|
}, e), {
|
|
496
|
-
gridProps:
|
|
496
|
+
gridProps: B
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Sn() {
|
|
500
500
|
return {
|
|
501
501
|
rowGroupProps: {
|
|
502
502
|
role: "rowgroup"
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function kn(t, e, l) {
|
|
507
507
|
var n, o;
|
|
508
|
-
let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction: c } = t, { actions: d, shouldSelectOnPressUp: s } =
|
|
509
|
-
var
|
|
510
|
-
return (
|
|
511
|
-
} : c, { itemProps: p, ...f } =
|
|
508
|
+
let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction: c } = t, { actions: d, shouldSelectOnPressUp: s } = Ue.get(e), a = d.onRowAction ? () => {
|
|
509
|
+
var $;
|
|
510
|
+
return ($ = d.onRowAction) === null || $ === void 0 ? void 0 : $.call(d, r.key);
|
|
511
|
+
} : c, { itemProps: p, ...f } = xt({
|
|
512
512
|
selectionManager: e.selectionManager,
|
|
513
513
|
key: r.key,
|
|
514
514
|
ref: l,
|
|
515
515
|
isVirtualized: i,
|
|
516
516
|
shouldSelectOnPressUp: s || u,
|
|
517
|
-
onAction: a || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ?
|
|
517
|
+
onAction: a || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ? Xl(r == null || (o = r.props) === null || o === void 0 ? void 0 : o.onAction, a) : void 0,
|
|
518
518
|
isDisabled: e.collection.size === 0
|
|
519
519
|
}), h = e.selectionManager.isSelected(r.key), g = {
|
|
520
520
|
role: "row",
|
|
@@ -527,21 +527,21 @@ function wn(t, e, l) {
|
|
|
527
527
|
...f
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction: c } =
|
|
530
|
+
function Rt(t, e, l) {
|
|
531
|
+
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction: c } = be(), { keyboardDelegate: d, actions: { onCellAction: s } } = Ue.get(e), a = A(null), p = () => {
|
|
532
532
|
if (l.current) {
|
|
533
|
-
let b =
|
|
533
|
+
let b = ft(l.current);
|
|
534
534
|
if (r === "child") {
|
|
535
535
|
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
536
|
-
let
|
|
537
|
-
if (
|
|
538
|
-
|
|
536
|
+
let y = e.selectionManager.childFocusStrategy === "last" ? Ie(b) : b.firstChild();
|
|
537
|
+
if (y) {
|
|
538
|
+
q(y);
|
|
539
539
|
return;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
(a.current != null && n.key !== a.current || !l.current.contains(document.activeElement)) &&
|
|
542
|
+
(a.current != null && n.key !== a.current || !l.current.contains(document.activeElement)) && q(l.current);
|
|
543
543
|
}
|
|
544
|
-
}, { itemProps: f, isPressed: h } =
|
|
544
|
+
}, { itemProps: f, isPressed: h } = xt({
|
|
545
545
|
selectionManager: e.selectionManager,
|
|
546
546
|
key: n.key,
|
|
547
547
|
ref: l,
|
|
@@ -552,13 +552,13 @@ function Et(t, e, l) {
|
|
|
552
552
|
isDisabled: e.collection.size === 0
|
|
553
553
|
}), g = (b) => {
|
|
554
554
|
if (!b.currentTarget.contains(b.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
555
|
-
let
|
|
556
|
-
switch (
|
|
555
|
+
let y = ft(l.current);
|
|
556
|
+
switch (y.currentNode = document.activeElement, b.key) {
|
|
557
557
|
case "ArrowLeft": {
|
|
558
|
-
let E = c === "rtl" ?
|
|
558
|
+
let E = c === "rtl" ? y.nextNode() : y.previousNode();
|
|
559
559
|
if (r === "child" && E === l.current && (E = null), b.preventDefault(), b.stopPropagation(), E)
|
|
560
|
-
|
|
561
|
-
containingElement:
|
|
560
|
+
q(E), fe(E, {
|
|
561
|
+
containingElement: pe(l.current)
|
|
562
562
|
});
|
|
563
563
|
else {
|
|
564
564
|
var v;
|
|
@@ -567,19 +567,19 @@ function Et(t, e, l) {
|
|
|
567
567
|
(w = l.current.parentElement) === null || w === void 0 || w.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
568
568
|
break;
|
|
569
569
|
}
|
|
570
|
-
r === "cell" && c === "rtl" ? (
|
|
571
|
-
containingElement:
|
|
572
|
-
})) : (
|
|
573
|
-
containingElement:
|
|
570
|
+
r === "cell" && c === "rtl" ? (q(l.current), fe(l.current, {
|
|
571
|
+
containingElement: pe(l.current)
|
|
572
|
+
})) : (y.currentNode = l.current, E = c === "rtl" ? y.firstChild() : Ie(y), E && (q(E), fe(E, {
|
|
573
|
+
containingElement: pe(l.current)
|
|
574
574
|
})));
|
|
575
575
|
}
|
|
576
576
|
break;
|
|
577
577
|
}
|
|
578
578
|
case "ArrowRight": {
|
|
579
|
-
let E = c === "rtl" ?
|
|
579
|
+
let E = c === "rtl" ? y.previousNode() : y.nextNode();
|
|
580
580
|
if (r === "child" && E === l.current && (E = null), b.preventDefault(), b.stopPropagation(), E)
|
|
581
|
-
|
|
582
|
-
containingElement:
|
|
581
|
+
q(E), fe(E, {
|
|
582
|
+
containingElement: pe(l.current)
|
|
583
583
|
});
|
|
584
584
|
else {
|
|
585
585
|
var k;
|
|
@@ -588,10 +588,10 @@ function Et(t, e, l) {
|
|
|
588
588
|
(P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
|
-
r === "cell" && c === "ltr" ? (
|
|
592
|
-
containingElement:
|
|
593
|
-
})) : (
|
|
594
|
-
containingElement:
|
|
591
|
+
r === "cell" && c === "ltr" ? (q(l.current), fe(l.current, {
|
|
592
|
+
containingElement: pe(l.current)
|
|
593
|
+
})) : (y.currentNode = l.current, E = c === "rtl" ? Ie(y) : y.firstChild(), E && (q(E), fe(E, {
|
|
594
|
+
containingElement: pe(l.current)
|
|
595
595
|
})));
|
|
596
596
|
}
|
|
597
597
|
break;
|
|
@@ -599,14 +599,14 @@ function Et(t, e, l) {
|
|
|
599
599
|
case "ArrowUp":
|
|
600
600
|
case "ArrowDown":
|
|
601
601
|
if (!b.altKey && l.current.contains(b.target)) {
|
|
602
|
-
var
|
|
603
|
-
b.stopPropagation(), b.preventDefault(), (
|
|
602
|
+
var B;
|
|
603
|
+
b.stopPropagation(), b.preventDefault(), (B = l.current.parentElement) === null || B === void 0 || B.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
604
604
|
}
|
|
605
605
|
break;
|
|
606
606
|
}
|
|
607
|
-
},
|
|
607
|
+
}, $ = (b) => {
|
|
608
608
|
if (a.current = n.key, b.target !== l.current) {
|
|
609
|
-
|
|
609
|
+
tn() || e.selectionManager.setFocusedKey(n.key);
|
|
610
610
|
return;
|
|
611
611
|
}
|
|
612
612
|
requestAnimationFrame(() => {
|
|
@@ -618,32 +618,32 @@ function Et(t, e, l) {
|
|
|
618
618
|
"aria-colspan": n.colSpan,
|
|
619
619
|
"aria-colindex": n.colIndex != null ? n.colIndex + 1 : void 0,
|
|
620
620
|
colSpan: o ? void 0 : n.colSpan,
|
|
621
|
-
onFocus:
|
|
621
|
+
onFocus: $
|
|
622
622
|
});
|
|
623
623
|
var D;
|
|
624
624
|
return o && (m["aria-colindex"] = ((D = n.colIndex) !== null && D !== void 0 ? D : n.index) + 1), i && m.tabIndex != null && m.onPointerDown == null && (m.onPointerDown = (b) => {
|
|
625
|
-
let
|
|
626
|
-
|
|
627
|
-
v != null &&
|
|
625
|
+
let y = b.currentTarget, v = y.getAttribute("tabindex");
|
|
626
|
+
y.removeAttribute("tabindex"), requestAnimationFrame(() => {
|
|
627
|
+
v != null && y.setAttribute("tabindex", v);
|
|
628
628
|
});
|
|
629
629
|
}), {
|
|
630
630
|
gridCellProps: m,
|
|
631
631
|
isPressed: h
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Ie(t) {
|
|
635
635
|
let e = null, l = null;
|
|
636
636
|
do
|
|
637
637
|
l = t.lastChild(), l && (e = l);
|
|
638
638
|
while (l);
|
|
639
639
|
return e;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function En(t) {
|
|
642
642
|
return t && t.__esModule ? t.default : t;
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
let { key: l } = t, n = e.selectionManager, o =
|
|
646
|
-
const c =
|
|
644
|
+
function zn(t, e) {
|
|
645
|
+
let { key: l } = t, n = e.selectionManager, o = Me(), r = !e.selectionManager.canSelectItem(l), i = e.selectionManager.isSelected(l), u = () => n.toggleSelection(l);
|
|
646
|
+
const c = ve(En(dn), "@react-aria/grid");
|
|
647
647
|
return {
|
|
648
648
|
checkboxProps: {
|
|
649
649
|
id: o,
|
|
@@ -654,27 +654,27 @@ function kn(t, e) {
|
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
const
|
|
658
|
-
function
|
|
657
|
+
const Le = /* @__PURE__ */ new WeakMap();
|
|
658
|
+
function We(t) {
|
|
659
659
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
let l =
|
|
661
|
+
function At(t, e) {
|
|
662
|
+
let l = Le.get(t);
|
|
663
663
|
if (!l) throw new Error("Unknown grid");
|
|
664
|
-
return `${l}-${
|
|
664
|
+
return `${l}-${We(e)}`;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
let n =
|
|
666
|
+
function Bt(t, e, l) {
|
|
667
|
+
let n = Le.get(t);
|
|
668
668
|
if (!n) throw new Error("Unknown grid");
|
|
669
|
-
return `${n}-${
|
|
669
|
+
return `${n}-${We(e)}-${We(l)}`;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Kt(t, e) {
|
|
672
672
|
return [
|
|
673
673
|
...t.collection.rowHeaderColumnKeys
|
|
674
|
-
].map((l) =>
|
|
674
|
+
].map((l) => Bt(t, e, l)).join(" ");
|
|
675
675
|
}
|
|
676
|
-
var
|
|
677
|
-
|
|
676
|
+
var Mt = {};
|
|
677
|
+
Mt = {
|
|
678
678
|
ascending: "تصاعدي",
|
|
679
679
|
ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
|
|
680
680
|
columnSize: (t) => `${t.value} بالبكسل`,
|
|
@@ -685,8 +685,8 @@ At = {
|
|
|
685
685
|
selectAll: "تحديد الكل",
|
|
686
686
|
sortable: "عمود قابل للترتيب"
|
|
687
687
|
};
|
|
688
|
-
var
|
|
689
|
-
|
|
688
|
+
var Nt = {};
|
|
689
|
+
Nt = {
|
|
690
690
|
ascending: "възходящ",
|
|
691
691
|
ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
|
|
692
692
|
columnSize: (t) => `${t.value} пиксела`,
|
|
@@ -697,8 +697,8 @@ Bt = {
|
|
|
697
697
|
selectAll: "Изберете всичко",
|
|
698
698
|
sortable: "сортираща колона"
|
|
699
699
|
};
|
|
700
|
-
var
|
|
701
|
-
|
|
700
|
+
var Tt = {};
|
|
701
|
+
Tt = {
|
|
702
702
|
ascending: "vzestupně",
|
|
703
703
|
ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
|
|
704
704
|
columnSize: (t) => `${t.value} pixelů`,
|
|
@@ -709,8 +709,8 @@ Kt = {
|
|
|
709
709
|
selectAll: "Vybrat vše",
|
|
710
710
|
sortable: "sloupec s možností řazení"
|
|
711
711
|
};
|
|
712
|
-
var
|
|
713
|
-
|
|
712
|
+
var Ft = {};
|
|
713
|
+
Ft = {
|
|
714
714
|
ascending: "stigende",
|
|
715
715
|
ascendingSort: (t) => `sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,
|
|
716
716
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -721,8 +721,8 @@ Mt = {
|
|
|
721
721
|
selectAll: "Vælg alle",
|
|
722
722
|
sortable: "sorterbar kolonne"
|
|
723
723
|
};
|
|
724
|
-
var
|
|
725
|
-
|
|
724
|
+
var It = {};
|
|
725
|
+
It = {
|
|
726
726
|
ascending: "aufsteigend",
|
|
727
727
|
ascendingSort: (t) => `sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,
|
|
728
728
|
columnSize: (t) => `${t.value} Pixel`,
|
|
@@ -733,8 +733,8 @@ Nt = {
|
|
|
733
733
|
selectAll: "Alles auswählen",
|
|
734
734
|
sortable: "sortierbare Spalte"
|
|
735
735
|
};
|
|
736
|
-
var
|
|
737
|
-
|
|
736
|
+
var Wt = {};
|
|
737
|
+
Wt = {
|
|
738
738
|
ascending: "αύξουσα",
|
|
739
739
|
ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
|
|
740
740
|
columnSize: (t) => `${t.value} pixel`,
|
|
@@ -745,8 +745,8 @@ Tt = {
|
|
|
745
745
|
selectAll: "Επιλογή όλων",
|
|
746
746
|
sortable: "Στήλη διαλογής"
|
|
747
747
|
};
|
|
748
|
-
var
|
|
749
|
-
|
|
748
|
+
var Vt = {};
|
|
749
|
+
Vt = {
|
|
750
750
|
select: "Select",
|
|
751
751
|
selectAll: "Select All",
|
|
752
752
|
sortable: "sortable column",
|
|
@@ -757,8 +757,8 @@ Ft = {
|
|
|
757
757
|
columnSize: (t) => `${t.value} pixels`,
|
|
758
758
|
resizerDescription: "Press Enter to start resizing"
|
|
759
759
|
};
|
|
760
|
-
var
|
|
761
|
-
|
|
760
|
+
var Ht = {};
|
|
761
|
+
Ht = {
|
|
762
762
|
ascending: "ascendente",
|
|
763
763
|
ascendingSort: (t) => `ordenado por columna ${t.columnName} en sentido ascendente`,
|
|
764
764
|
columnSize: (t) => `${t.value} píxeles`,
|
|
@@ -769,8 +769,8 @@ It = {
|
|
|
769
769
|
selectAll: "Seleccionar todos",
|
|
770
770
|
sortable: "columna ordenable"
|
|
771
771
|
};
|
|
772
|
-
var
|
|
773
|
-
|
|
772
|
+
var jt = {};
|
|
773
|
+
jt = {
|
|
774
774
|
ascending: "tõusev järjestus",
|
|
775
775
|
ascendingSort: (t) => `sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,
|
|
776
776
|
columnSize: (t) => `${t.value} pikslit`,
|
|
@@ -781,8 +781,8 @@ Wt = {
|
|
|
781
781
|
selectAll: "Vali kõik",
|
|
782
782
|
sortable: "sorditav veerg"
|
|
783
783
|
};
|
|
784
|
-
var
|
|
785
|
-
|
|
784
|
+
var Ot = {};
|
|
785
|
+
Ot = {
|
|
786
786
|
ascending: "nouseva",
|
|
787
787
|
ascendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,
|
|
788
788
|
columnSize: (t) => `${t.value} pikseliä`,
|
|
@@ -793,8 +793,8 @@ Vt = {
|
|
|
793
793
|
selectAll: "Valitse kaikki",
|
|
794
794
|
sortable: "lajiteltava sarake"
|
|
795
795
|
};
|
|
796
|
-
var
|
|
797
|
-
|
|
796
|
+
var Ut = {};
|
|
797
|
+
Ut = {
|
|
798
798
|
ascending: "croissant",
|
|
799
799
|
ascendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre croissant`,
|
|
800
800
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -805,8 +805,8 @@ Ht = {
|
|
|
805
805
|
selectAll: "Sélectionner tout",
|
|
806
806
|
sortable: "colonne triable"
|
|
807
807
|
};
|
|
808
|
-
var
|
|
809
|
-
|
|
808
|
+
var Lt = {};
|
|
809
|
+
Lt = {
|
|
810
810
|
ascending: "עולה",
|
|
811
811
|
ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
|
|
812
812
|
columnSize: (t) => `${t.value} פיקסלים`,
|
|
@@ -817,8 +817,8 @@ jt = {
|
|
|
817
817
|
selectAll: "בחר הכול",
|
|
818
818
|
sortable: "עמודה שניתן למיין"
|
|
819
819
|
};
|
|
820
|
-
var
|
|
821
|
-
|
|
820
|
+
var Yt = {};
|
|
821
|
+
Yt = {
|
|
822
822
|
ascending: "rastući",
|
|
823
823
|
ascendingSort: (t) => `razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,
|
|
824
824
|
columnSize: (t) => `${t.value} piksela`,
|
|
@@ -829,8 +829,8 @@ Ot = {
|
|
|
829
829
|
selectAll: "Odaberite sve",
|
|
830
830
|
sortable: "stupac koji se može razvrstati"
|
|
831
831
|
};
|
|
832
|
-
var
|
|
833
|
-
|
|
832
|
+
var Xt = {};
|
|
833
|
+
Xt = {
|
|
834
834
|
ascending: "növekvő",
|
|
835
835
|
ascendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,
|
|
836
836
|
columnSize: (t) => `${t.value} képpont`,
|
|
@@ -841,8 +841,8 @@ Ut = {
|
|
|
841
841
|
selectAll: "Összes kijelölése",
|
|
842
842
|
sortable: "rendezendő oszlop"
|
|
843
843
|
};
|
|
844
|
-
var
|
|
845
|
-
|
|
844
|
+
var Gt = {};
|
|
845
|
+
Gt = {
|
|
846
846
|
ascending: "crescente",
|
|
847
847
|
ascendingSort: (t) => `in ordine crescente in base alla colonna ${t.columnName}`,
|
|
848
848
|
columnSize: (t) => `${t.value} pixel`,
|
|
@@ -853,8 +853,8 @@ Lt = {
|
|
|
853
853
|
selectAll: "Seleziona tutto",
|
|
854
854
|
sortable: "colonna ordinabile"
|
|
855
855
|
};
|
|
856
|
-
var
|
|
857
|
-
|
|
856
|
+
var qt = {};
|
|
857
|
+
qt = {
|
|
858
858
|
ascending: "昇順",
|
|
859
859
|
ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
|
|
860
860
|
columnSize: (t) => `${t.value} ピクセル`,
|
|
@@ -865,8 +865,8 @@ Yt = {
|
|
|
865
865
|
selectAll: "すべて選択",
|
|
866
866
|
sortable: "並べ替え可能な列"
|
|
867
867
|
};
|
|
868
|
-
var
|
|
869
|
-
|
|
868
|
+
var Zt = {};
|
|
869
|
+
Zt = {
|
|
870
870
|
ascending: "오름차순",
|
|
871
871
|
ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
|
|
872
872
|
columnSize: (t) => `${t.value} 픽셀`,
|
|
@@ -877,8 +877,8 @@ Xt = {
|
|
|
877
877
|
selectAll: "모두 선택",
|
|
878
878
|
sortable: "정렬 가능한 열"
|
|
879
879
|
};
|
|
880
|
-
var
|
|
881
|
-
|
|
880
|
+
var Jt = {};
|
|
881
|
+
Jt = {
|
|
882
882
|
ascending: "didėjančia tvarka",
|
|
883
883
|
ascendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,
|
|
884
884
|
columnSize: (t) => `${t.value} piks.`,
|
|
@@ -889,8 +889,8 @@ Gt = {
|
|
|
889
889
|
selectAll: "Pasirinkti viską",
|
|
890
890
|
sortable: "rikiuojamas stulpelis"
|
|
891
891
|
};
|
|
892
|
-
var
|
|
893
|
-
|
|
892
|
+
var Qt = {};
|
|
893
|
+
Qt = {
|
|
894
894
|
ascending: "augošā secībā",
|
|
895
895
|
ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
|
|
896
896
|
columnSize: (t) => `${t.value} pikseļi`,
|
|
@@ -901,8 +901,8 @@ qt = {
|
|
|
901
901
|
selectAll: "Atlasīt visu",
|
|
902
902
|
sortable: "kārtojamā kolonna"
|
|
903
903
|
};
|
|
904
|
-
var
|
|
905
|
-
|
|
904
|
+
var _t = {};
|
|
905
|
+
_t = {
|
|
906
906
|
ascending: "stigende",
|
|
907
907
|
ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
|
|
908
908
|
columnSize: (t) => `${t.value} piksler`,
|
|
@@ -913,8 +913,8 @@ Zt = {
|
|
|
913
913
|
selectAll: "Velg alle",
|
|
914
914
|
sortable: "kolonne som kan sorteres"
|
|
915
915
|
};
|
|
916
|
-
var
|
|
917
|
-
|
|
916
|
+
var el = {};
|
|
917
|
+
el = {
|
|
918
918
|
ascending: "oplopend",
|
|
919
919
|
ascendingSort: (t) => `gesorteerd in oplopende volgorde in kolom ${t.columnName}`,
|
|
920
920
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -925,8 +925,8 @@ Jt = {
|
|
|
925
925
|
selectAll: "Alles selecteren",
|
|
926
926
|
sortable: "sorteerbare kolom"
|
|
927
927
|
};
|
|
928
|
-
var
|
|
929
|
-
|
|
928
|
+
var tl = {};
|
|
929
|
+
tl = {
|
|
930
930
|
ascending: "rosnąco",
|
|
931
931
|
ascendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku rosnącym`,
|
|
932
932
|
columnSize: (t) => `Liczba pikseli: ${t.value}`,
|
|
@@ -937,8 +937,8 @@ Qt = {
|
|
|
937
937
|
selectAll: "Zaznacz wszystko",
|
|
938
938
|
sortable: "kolumna z możliwością sortowania"
|
|
939
939
|
};
|
|
940
|
-
var
|
|
941
|
-
|
|
940
|
+
var ll = {};
|
|
941
|
+
ll = {
|
|
942
942
|
ascending: "crescente",
|
|
943
943
|
ascendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem crescente`,
|
|
944
944
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -949,8 +949,8 @@ _t = {
|
|
|
949
949
|
selectAll: "Selecionar tudo",
|
|
950
950
|
sortable: "coluna classificável"
|
|
951
951
|
};
|
|
952
|
-
var
|
|
953
|
-
|
|
952
|
+
var nl = {};
|
|
953
|
+
nl = {
|
|
954
954
|
ascending: "ascendente",
|
|
955
955
|
ascendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem ascendente`,
|
|
956
956
|
columnSize: (t) => `${t.value} pixels`,
|
|
@@ -961,8 +961,8 @@ el = {
|
|
|
961
961
|
selectAll: "Selecionar tudo",
|
|
962
962
|
sortable: "Coluna ordenável"
|
|
963
963
|
};
|
|
964
|
-
var
|
|
965
|
-
|
|
964
|
+
var ol = {};
|
|
965
|
+
ol = {
|
|
966
966
|
ascending: "crescătoare",
|
|
967
967
|
ascendingSort: (t) => `sortate după coloana ${t.columnName} în ordine crescătoare`,
|
|
968
968
|
columnSize: (t) => `${t.value} pixeli`,
|
|
@@ -973,8 +973,8 @@ tl = {
|
|
|
973
973
|
selectAll: "Selectare totală",
|
|
974
974
|
sortable: "coloană sortabilă"
|
|
975
975
|
};
|
|
976
|
-
var
|
|
977
|
-
|
|
976
|
+
var rl = {};
|
|
977
|
+
rl = {
|
|
978
978
|
ascending: "возрастание",
|
|
979
979
|
ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
|
|
980
980
|
columnSize: (t) => `${t.value} пикс.`,
|
|
@@ -985,8 +985,8 @@ ll = {
|
|
|
985
985
|
selectAll: "Выбрать все",
|
|
986
986
|
sortable: "сортируемый столбец"
|
|
987
987
|
};
|
|
988
|
-
var
|
|
989
|
-
|
|
988
|
+
var il = {};
|
|
989
|
+
il = {
|
|
990
990
|
ascending: "vzostupne",
|
|
991
991
|
ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
|
|
992
992
|
columnSize: (t) => `Počet pixelov: ${t.value}`,
|
|
@@ -997,8 +997,8 @@ nl = {
|
|
|
997
997
|
selectAll: "Vybrať všetko",
|
|
998
998
|
sortable: "zoraditeľný stĺpec"
|
|
999
999
|
};
|
|
1000
|
-
var
|
|
1001
|
-
|
|
1000
|
+
var ul = {};
|
|
1001
|
+
ul = {
|
|
1002
1002
|
ascending: "naraščajoče",
|
|
1003
1003
|
ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
|
|
1004
1004
|
columnSize: (t) => `${t.value} slikovnih pik`,
|
|
@@ -1009,8 +1009,8 @@ ol = {
|
|
|
1009
1009
|
selectAll: "Izberite vse",
|
|
1010
1010
|
sortable: "razvrstljivi stolpec"
|
|
1011
1011
|
};
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1012
|
+
var al = {};
|
|
1013
|
+
al = {
|
|
1014
1014
|
ascending: "rastući",
|
|
1015
1015
|
ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
|
|
1016
1016
|
columnSize: (t) => `${t.value} piksela`,
|
|
@@ -1021,8 +1021,8 @@ rl = {
|
|
|
1021
1021
|
selectAll: "Izaberite sve",
|
|
1022
1022
|
sortable: "kolona koja se može sortirati"
|
|
1023
1023
|
};
|
|
1024
|
-
var
|
|
1025
|
-
|
|
1024
|
+
var sl = {};
|
|
1025
|
+
sl = {
|
|
1026
1026
|
ascending: "stigande",
|
|
1027
1027
|
ascendingSort: (t) => `sorterat på kolumn ${t.columnName} i stigande ordning`,
|
|
1028
1028
|
columnSize: (t) => `${t.value} pixlar`,
|
|
@@ -1033,8 +1033,8 @@ il = {
|
|
|
1033
1033
|
selectAll: "Markera allt",
|
|
1034
1034
|
sortable: "sorterbar kolumn"
|
|
1035
1035
|
};
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1036
|
+
var dl = {};
|
|
1037
|
+
dl = {
|
|
1038
1038
|
ascending: "artan sırada",
|
|
1039
1039
|
ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
|
|
1040
1040
|
columnSize: (t) => `${t.value} piksel`,
|
|
@@ -1045,8 +1045,8 @@ ul = {
|
|
|
1045
1045
|
selectAll: "Tümünü Seç",
|
|
1046
1046
|
sortable: "Sıralanabilir sütun"
|
|
1047
1047
|
};
|
|
1048
|
-
var
|
|
1049
|
-
|
|
1048
|
+
var cl = {};
|
|
1049
|
+
cl = {
|
|
1050
1050
|
ascending: "висхідний",
|
|
1051
1051
|
ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
|
|
1052
1052
|
columnSize: (t) => `${t.value} пікс.`,
|
|
@@ -1057,8 +1057,8 @@ al = {
|
|
|
1057
1057
|
selectAll: "Вибрати все",
|
|
1058
1058
|
sortable: "сортувальний стовпець"
|
|
1059
1059
|
};
|
|
1060
|
-
var
|
|
1061
|
-
|
|
1060
|
+
var fl = {};
|
|
1061
|
+
fl = {
|
|
1062
1062
|
ascending: "升序",
|
|
1063
1063
|
ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
|
|
1064
1064
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1069,8 +1069,8 @@ sl = {
|
|
|
1069
1069
|
selectAll: "全选",
|
|
1070
1070
|
sortable: "可排序的列"
|
|
1071
1071
|
};
|
|
1072
|
-
var
|
|
1073
|
-
|
|
1072
|
+
var pl = {};
|
|
1073
|
+
pl = {
|
|
1074
1074
|
ascending: "遞增",
|
|
1075
1075
|
ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
|
|
1076
1076
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1083,42 +1083,42 @@ dl = {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
var Ee = {};
|
|
1085
1085
|
Ee = {
|
|
1086
|
-
"ar-AE":
|
|
1087
|
-
"bg-BG":
|
|
1088
|
-
"cs-CZ":
|
|
1089
|
-
"da-DK":
|
|
1090
|
-
"de-DE":
|
|
1091
|
-
"el-GR":
|
|
1092
|
-
"en-US":
|
|
1093
|
-
"es-ES":
|
|
1094
|
-
"et-EE":
|
|
1095
|
-
"fi-FI":
|
|
1096
|
-
"fr-FR":
|
|
1097
|
-
"he-IL":
|
|
1098
|
-
"hr-HR":
|
|
1099
|
-
"hu-HU":
|
|
1100
|
-
"it-IT":
|
|
1101
|
-
"ja-JP":
|
|
1102
|
-
"ko-KR":
|
|
1103
|
-
"lt-LT":
|
|
1104
|
-
"lv-LV":
|
|
1105
|
-
"nb-NO":
|
|
1106
|
-
"nl-NL":
|
|
1107
|
-
"pl-PL":
|
|
1108
|
-
"pt-BR":
|
|
1109
|
-
"pt-PT":
|
|
1110
|
-
"ro-RO":
|
|
1111
|
-
"ru-RU":
|
|
1112
|
-
"sk-SK":
|
|
1113
|
-
"sl-SI":
|
|
1114
|
-
"sr-SP":
|
|
1115
|
-
"sv-SE":
|
|
1116
|
-
"tr-TR":
|
|
1117
|
-
"uk-UA":
|
|
1118
|
-
"zh-CN":
|
|
1119
|
-
"zh-TW":
|
|
1086
|
+
"ar-AE": Mt,
|
|
1087
|
+
"bg-BG": Nt,
|
|
1088
|
+
"cs-CZ": Tt,
|
|
1089
|
+
"da-DK": Ft,
|
|
1090
|
+
"de-DE": It,
|
|
1091
|
+
"el-GR": Wt,
|
|
1092
|
+
"en-US": Vt,
|
|
1093
|
+
"es-ES": Ht,
|
|
1094
|
+
"et-EE": jt,
|
|
1095
|
+
"fi-FI": Ot,
|
|
1096
|
+
"fr-FR": Ut,
|
|
1097
|
+
"he-IL": Lt,
|
|
1098
|
+
"hr-HR": Yt,
|
|
1099
|
+
"hu-HU": Xt,
|
|
1100
|
+
"it-IT": Gt,
|
|
1101
|
+
"ja-JP": qt,
|
|
1102
|
+
"ko-KR": Zt,
|
|
1103
|
+
"lt-LT": Jt,
|
|
1104
|
+
"lv-LV": Qt,
|
|
1105
|
+
"nb-NO": _t,
|
|
1106
|
+
"nl-NL": el,
|
|
1107
|
+
"pl-PL": tl,
|
|
1108
|
+
"pt-BR": ll,
|
|
1109
|
+
"pt-PT": nl,
|
|
1110
|
+
"ro-RO": ol,
|
|
1111
|
+
"ru-RU": rl,
|
|
1112
|
+
"sk-SK": il,
|
|
1113
|
+
"sl-SI": ul,
|
|
1114
|
+
"sr-SP": al,
|
|
1115
|
+
"sv-SE": sl,
|
|
1116
|
+
"tr-TR": dl,
|
|
1117
|
+
"uk-UA": cl,
|
|
1118
|
+
"zh-CN": fl,
|
|
1119
|
+
"zh-TW": pl
|
|
1120
1120
|
};
|
|
1121
|
-
class
|
|
1121
|
+
class Pn extends Pt {
|
|
1122
1122
|
isCell(e) {
|
|
1123
1123
|
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
1124
1124
|
}
|
|
@@ -1126,7 +1126,7 @@ class En extends kt {
|
|
|
1126
1126
|
let l = this.collection.getItem(e);
|
|
1127
1127
|
if (!l) return null;
|
|
1128
1128
|
if (l.type === "column") {
|
|
1129
|
-
let n =
|
|
1129
|
+
let n = re(V(l, this.collection));
|
|
1130
1130
|
if (n) return n.key;
|
|
1131
1131
|
let o = this.getFirstKey();
|
|
1132
1132
|
return o == null || !this.collection.getItem(o) ? null : super.getKeyForItemInRowByIndex(o, l.index);
|
|
@@ -1201,14 +1201,14 @@ class En extends kt {
|
|
|
1201
1201
|
return null;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Rn(t) {
|
|
1205
1205
|
return t && t.__esModule ? t.default : t;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1208
|
-
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u =
|
|
1207
|
+
function An(t, e, l) {
|
|
1208
|
+
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u = Et({
|
|
1209
1209
|
usage: "search",
|
|
1210
1210
|
sensitivity: "base"
|
|
1211
|
-
}), { direction: c } =
|
|
1211
|
+
}), { direction: c } = be(), d = e.selectionManager.disabledBehavior, s = N(() => n || new Pn({
|
|
1212
1212
|
collection: e.collection,
|
|
1213
1213
|
disabledKeys: e.disabledKeys,
|
|
1214
1214
|
disabledBehavior: d,
|
|
@@ -1227,29 +1227,29 @@ function Pn(t, e, l) {
|
|
|
1227
1227
|
u,
|
|
1228
1228
|
r,
|
|
1229
1229
|
i
|
|
1230
|
-
]), a =
|
|
1231
|
-
|
|
1232
|
-
let { gridProps: p } =
|
|
1230
|
+
]), a = Me(t.id);
|
|
1231
|
+
Le.set(e, a);
|
|
1232
|
+
let { gridProps: p } = wn({
|
|
1233
1233
|
...t,
|
|
1234
1234
|
id: a,
|
|
1235
1235
|
keyboardDelegate: s
|
|
1236
1236
|
}, e, l);
|
|
1237
1237
|
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Re() && "expandedKeys" in e && (p.role = "treegrid");
|
|
1238
|
-
let { column: f, direction: h } = e.sortDescriptor || {}, g =
|
|
1238
|
+
let { column: f, direction: h } = e.sortDescriptor || {}, g = ve(Rn(Ee), "@react-aria/table"), $ = N(() => {
|
|
1239
1239
|
var D, b;
|
|
1240
|
-
let
|
|
1240
|
+
let y = (b = (D = e.collection.columns.find((v) => v.key === f)) === null || D === void 0 ? void 0 : D.textValue) !== null && b !== void 0 ? b : "";
|
|
1241
1241
|
return h && f ? g.format(`${h}Sort`, {
|
|
1242
|
-
columnName:
|
|
1242
|
+
columnName: y
|
|
1243
1243
|
}) : void 0;
|
|
1244
1244
|
}, [
|
|
1245
1245
|
h,
|
|
1246
1246
|
f,
|
|
1247
1247
|
e.collection.columns
|
|
1248
|
-
]), m =
|
|
1249
|
-
return
|
|
1250
|
-
|
|
1248
|
+
]), m = Oe($);
|
|
1249
|
+
return fn(() => {
|
|
1250
|
+
$ && cn($, "assertive", 500);
|
|
1251
1251
|
}, [
|
|
1252
|
-
|
|
1252
|
+
$
|
|
1253
1253
|
]), {
|
|
1254
1254
|
gridProps: H(p, m, {
|
|
1255
1255
|
// merge sort description with long press information
|
|
@@ -1260,26 +1260,26 @@ function Pn(t, e, l) {
|
|
|
1260
1260
|
})
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Bn(t) {
|
|
1264
1264
|
return t && t.__esModule ? t.default : t;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Kn(t, e, l) {
|
|
1267
1267
|
var n, o;
|
|
1268
|
-
let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } =
|
|
1268
|
+
let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } = Rt({
|
|
1269
1269
|
...t,
|
|
1270
1270
|
focusMode: "child"
|
|
1271
|
-
}, e, l), c = r.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } =
|
|
1271
|
+
}, e, l), c = r.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } = kt({
|
|
1272
1272
|
isDisabled: !i || c,
|
|
1273
1273
|
onPress() {
|
|
1274
1274
|
e.sort(r.key);
|
|
1275
1275
|
},
|
|
1276
1276
|
ref: l
|
|
1277
|
-
}), { focusableProps: s } =
|
|
1278
|
-
r.props.allowsSorting && !
|
|
1279
|
-
let h =
|
|
1280
|
-
i && (g = `${h.format("sortable")}`, p && f &&
|
|
1281
|
-
let
|
|
1282
|
-
return
|
|
1277
|
+
}), { focusableProps: s } = _l({}, l), a, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === r.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
|
|
1278
|
+
r.props.allowsSorting && !ct() && (a = p ? f : "none");
|
|
1279
|
+
let h = ve(Bn(Ee), "@react-aria/table"), g;
|
|
1280
|
+
i && (g = `${h.format("sortable")}`, p && f && ct() && (g = `${g}, ${h.format(f)}`));
|
|
1281
|
+
let $ = Oe(g), m = e.collection.size === 0;
|
|
1282
|
+
return de(() => {
|
|
1283
1283
|
m && e.selectionManager.focusedKey === r.key && e.selectionManager.setFocusedKey(null);
|
|
1284
1284
|
}, [
|
|
1285
1285
|
m,
|
|
@@ -1291,20 +1291,20 @@ function An(t, e, l) {
|
|
|
1291
1291
|
s,
|
|
1292
1292
|
u,
|
|
1293
1293
|
d,
|
|
1294
|
-
|
|
1294
|
+
$,
|
|
1295
1295
|
// If the table is empty, make all column headers untabbable
|
|
1296
1296
|
m ? {
|
|
1297
1297
|
tabIndex: -1
|
|
1298
1298
|
} : null
|
|
1299
1299
|
),
|
|
1300
1300
|
role: "columnheader",
|
|
1301
|
-
id:
|
|
1301
|
+
id: At(e, r.key),
|
|
1302
1302
|
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
|
|
1303
1303
|
"aria-sort": a
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
|
-
const
|
|
1307
|
+
const mt = {
|
|
1308
1308
|
expand: {
|
|
1309
1309
|
ltr: "ArrowRight",
|
|
1310
1310
|
rtl: "ArrowLeft"
|
|
@@ -1314,8 +1314,8 @@ const ft = {
|
|
|
1314
1314
|
rtl: "ArrowRight"
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
|
-
function
|
|
1318
|
-
let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } =
|
|
1317
|
+
function Mn(t, e, l) {
|
|
1318
|
+
let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } = kn(t, e, l), { direction: u } = be();
|
|
1319
1319
|
o && !(Re() && "expandedKeys" in e) ? r["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete r["aria-rowindex"];
|
|
1320
1320
|
let c = {};
|
|
1321
1321
|
if (Re() && "expandedKeys" in e) {
|
|
@@ -1323,28 +1323,28 @@ function Bn(t, e, l) {
|
|
|
1323
1323
|
if (v != null) {
|
|
1324
1324
|
var d, s, a, p, f, h;
|
|
1325
1325
|
let w = ((d = v.props) === null || d === void 0 ? void 0 : d.UNSTABLE_childItems) || ((a = v.props) === null || a === void 0 || (s = a.children) === null || s === void 0 ? void 0 : s.length) > e.userColumnCount;
|
|
1326
|
-
var g,
|
|
1326
|
+
var g, $, m, D;
|
|
1327
1327
|
c = {
|
|
1328
1328
|
onKeyDown: (k) => {
|
|
1329
|
-
(k.key ===
|
|
1329
|
+
(k.key === mt.expand[u] && e.selectionManager.focusedKey === v.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(v.key) || k.key === mt.collapse[u] && e.selectionManager.focusedKey === v.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(v.key))) && (e.toggleKey(v.key), k.stopPropagation());
|
|
1330
1330
|
},
|
|
1331
1331
|
"aria-expanded": w ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
|
|
1332
1332
|
"aria-level": v.level,
|
|
1333
1333
|
"aria-posinset": ((g = v.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
|
|
1334
|
-
"aria-setsize": v.level > 1 ? ((m = (p =
|
|
1334
|
+
"aria-setsize": v.level > 1 ? ((m = (p = ie(($ = (f = e.keyMap.get(v.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && $ !== void 0 ? $ : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && m !== void 0 ? m : 0) + 1 : ((D = (h = ie(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && D !== void 0 ? D : 0) + 1
|
|
1335
1335
|
};
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
let b =
|
|
1338
|
+
let b = rn(n.props), y = i.hasAction ? b : {};
|
|
1339
1339
|
return {
|
|
1340
1340
|
rowProps: {
|
|
1341
|
-
...H(r, c,
|
|
1342
|
-
"aria-labelledby":
|
|
1341
|
+
...H(r, c, y),
|
|
1342
|
+
"aria-labelledby": Kt(e, n.key)
|
|
1343
1343
|
},
|
|
1344
1344
|
...i
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Nn(t, e, l) {
|
|
1348
1348
|
let { node: n, isVirtualized: o } = t, r = {
|
|
1349
1349
|
role: "row"
|
|
1350
1350
|
};
|
|
@@ -1352,32 +1352,32 @@ function Kn(t, e, l) {
|
|
|
1352
1352
|
rowProps: r
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function Tn(t, e, l) {
|
|
1356
1356
|
var n;
|
|
1357
|
-
let { gridCellProps: o, isPressed: r } =
|
|
1358
|
-
return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id =
|
|
1357
|
+
let { gridCellProps: o, isPressed: r } = Rt(t, e, l), i = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
|
|
1358
|
+
return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id = Bt(e, t.node.parentKey, i)), {
|
|
1359
1359
|
gridCellProps: o,
|
|
1360
1360
|
isPressed: r
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Fn(t) {
|
|
1364
1364
|
return t && t.__esModule ? t.default : t;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function In(t, e) {
|
|
1367
1367
|
let { key: l } = t;
|
|
1368
|
-
const { checkboxProps: n } =
|
|
1368
|
+
const { checkboxProps: n } = zn(t, e);
|
|
1369
1369
|
return {
|
|
1370
1370
|
checkboxProps: {
|
|
1371
1371
|
...n,
|
|
1372
|
-
"aria-labelledby": `${n.id} ${
|
|
1372
|
+
"aria-labelledby": `${n.id} ${Kt(e, l)}`
|
|
1373
1373
|
}
|
|
1374
1374
|
};
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function Wn(t) {
|
|
1377
1377
|
let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
|
|
1378
1378
|
return {
|
|
1379
1379
|
checkboxProps: {
|
|
1380
|
-
"aria-label":
|
|
1380
|
+
"aria-label": ve(Fn(Ee), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
|
|
1381
1381
|
isSelected: l,
|
|
1382
1382
|
isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
|
|
1383
1383
|
isIndeterminate: !e && !l,
|
|
@@ -1385,31 +1385,31 @@ function Fn(t) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function Vn(t) {
|
|
1389
1389
|
return t && t.__esModule ? t.default : t;
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function Hn(t, e, l) {
|
|
1392
1392
|
let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: u, onResizeEnd: c, "aria-label": d } = t;
|
|
1393
|
-
const s =
|
|
1394
|
-
let a =
|
|
1393
|
+
const s = ve(Vn(Ee), "@react-aria/table");
|
|
1394
|
+
let a = Me(), p = e.resizingColumn === n.key, f = A(p), h = A(null), g = A(!1), $ = e.tableState.isKeyboardNavigationDisabled, { direction: m } = be(), { keyboardProps: D } = en({
|
|
1395
1395
|
onKeyDown: (x) => {
|
|
1396
|
-
|
|
1396
|
+
$ ? (x.key === "Escape" || x.key === "Enter" || x.key === " " || x.key === "Tab") && (x.preventDefault(), v(n)) : (x.continuePropagation(), x.key === "Enter" && b(n));
|
|
1397
1397
|
}
|
|
1398
|
-
}), b =
|
|
1398
|
+
}), b = De((x) => {
|
|
1399
1399
|
f.current || (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key)), e.startResize(x.key), e.tableState.setKeyboardNavigationDisabled(!0), i?.(h.current)), f.current = !0;
|
|
1400
|
-
}),
|
|
1401
|
-
let
|
|
1402
|
-
u?.(
|
|
1403
|
-
}), v =
|
|
1404
|
-
f.current && (h.current == null && (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current &&
|
|
1400
|
+
}), y = De((x, z) => {
|
|
1401
|
+
let K = e.updateResizedColumns(x.key, z);
|
|
1402
|
+
u?.(K), h.current = K;
|
|
1403
|
+
}), v = De((x) => {
|
|
1404
|
+
f.current && (h.current == null && (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !g.current && q(o.current)), h.current = null;
|
|
1405
1405
|
});
|
|
1406
|
-
const w =
|
|
1406
|
+
const w = A(0), { moveProps: k } = Dn({
|
|
1407
1407
|
onMoveStart() {
|
|
1408
1408
|
w.current = e.getColumnWidth(n.key), b(n);
|
|
1409
1409
|
},
|
|
1410
1410
|
onMove(x) {
|
|
1411
|
-
let { deltaX: z, deltaY:
|
|
1412
|
-
m === "rtl" && (z *= -1),
|
|
1411
|
+
let { deltaX: z, deltaY: K, pointerType: oe } = x;
|
|
1412
|
+
m === "rtl" && (z *= -1), oe === "keyboard" && (K !== 0 && z === 0 && (z = K * -1), z *= 10), z !== 0 && (w.current += z, y(n, w.current));
|
|
1413
1413
|
},
|
|
1414
1414
|
onMoveEnd(x) {
|
|
1415
1415
|
let { pointerType: z } = x;
|
|
@@ -1418,42 +1418,42 @@ function Wn(t, e, l) {
|
|
|
1418
1418
|
});
|
|
1419
1419
|
let P = j((x) => {
|
|
1420
1420
|
var z;
|
|
1421
|
-
|
|
1421
|
+
$ && ((z = k.onKeyDown) === null || z === void 0 || z.call(k, x));
|
|
1422
1422
|
}, [
|
|
1423
|
-
|
|
1423
|
+
$,
|
|
1424
1424
|
k
|
|
1425
|
-
]),
|
|
1425
|
+
]), B = Math.floor(e.getColumnMinWidth(n.key)), E = Math.floor(e.getColumnMaxWidth(n.key));
|
|
1426
1426
|
E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
|
|
1427
|
-
let
|
|
1427
|
+
let M = Math.floor(e.getColumnWidth(n.key)), W = ln();
|
|
1428
1428
|
W === "virtual" && typeof window < "u" && "ontouchstart" in window && (W = "touch");
|
|
1429
|
-
let T = o?.current == null && (W === "keyboard" || W === "virtual") && !p ? s.format("resizerDescription") : void 0, I =
|
|
1429
|
+
let T = o?.current == null && (W === "keyboard" || W === "virtual") && !p ? s.format("resizerDescription") : void 0, I = Oe(T), F = {
|
|
1430
1430
|
"aria-label": d,
|
|
1431
1431
|
"aria-orientation": "horizontal",
|
|
1432
|
-
"aria-labelledby": `${a} ${
|
|
1432
|
+
"aria-labelledby": `${a} ${At(e.tableState, n.key)}`,
|
|
1433
1433
|
"aria-valuetext": s.format("columnSize", {
|
|
1434
|
-
value:
|
|
1434
|
+
value: M
|
|
1435
1435
|
}),
|
|
1436
1436
|
type: "range",
|
|
1437
|
-
min:
|
|
1437
|
+
min: B,
|
|
1438
1438
|
max: E,
|
|
1439
|
-
value:
|
|
1439
|
+
value: M,
|
|
1440
1440
|
...I
|
|
1441
1441
|
};
|
|
1442
1442
|
const U = j(() => {
|
|
1443
|
-
l.current &&
|
|
1443
|
+
l.current && q(l.current);
|
|
1444
1444
|
}, [
|
|
1445
1445
|
l
|
|
1446
1446
|
]);
|
|
1447
|
-
let L = e.resizingColumn,
|
|
1448
|
-
|
|
1449
|
-
if (
|
|
1447
|
+
let L = e.resizingColumn, _ = A(null);
|
|
1448
|
+
de(() => {
|
|
1449
|
+
if (_.current !== L && L != null && L === n.key) {
|
|
1450
1450
|
g.current = document.activeElement === l.current, b(n);
|
|
1451
1451
|
let x = setTimeout(() => U(), 0), z = setTimeout(U, 400);
|
|
1452
1452
|
return () => {
|
|
1453
1453
|
clearTimeout(x), clearTimeout(z);
|
|
1454
1454
|
};
|
|
1455
1455
|
}
|
|
1456
|
-
|
|
1456
|
+
_.current = L;
|
|
1457
1457
|
}, [
|
|
1458
1458
|
L,
|
|
1459
1459
|
n,
|
|
@@ -1462,9 +1462,9 @@ function Wn(t, e, l) {
|
|
|
1462
1462
|
b
|
|
1463
1463
|
]);
|
|
1464
1464
|
let ee = (x) => {
|
|
1465
|
-
let z = e.getColumnWidth(n.key),
|
|
1466
|
-
|
|
1467
|
-
}, { pressProps:
|
|
1465
|
+
let z = e.getColumnWidth(n.key), K = parseFloat(x.target.value);
|
|
1466
|
+
K > z ? K = z + 10 : K = z - 10, y(n, K);
|
|
1467
|
+
}, { pressProps: le } = kt({
|
|
1468
1468
|
preventFocusOnPress: !0,
|
|
1469
1469
|
onPressStart: (x) => {
|
|
1470
1470
|
if (!(x.ctrlKey || x.altKey || x.metaKey || x.shiftKey || x.pointerType === "keyboard")) {
|
|
@@ -1478,17 +1478,17 @@ function Wn(t, e, l) {
|
|
|
1478
1478
|
onPress: (x) => {
|
|
1479
1479
|
(x.pointerType === "touch" && g.current || x.pointerType === "mouse") && e.resizingColumn != null && v(n);
|
|
1480
1480
|
}
|
|
1481
|
-
}), { visuallyHiddenProps:
|
|
1481
|
+
}), { visuallyHiddenProps: ne } = Ne();
|
|
1482
1482
|
return {
|
|
1483
1483
|
resizerProps: H(D, {
|
|
1484
1484
|
...k,
|
|
1485
1485
|
onKeyDown: P
|
|
1486
|
-
},
|
|
1486
|
+
}, le, {
|
|
1487
1487
|
style: {
|
|
1488
1488
|
touchAction: "none"
|
|
1489
1489
|
}
|
|
1490
1490
|
}),
|
|
1491
|
-
inputProps: H(
|
|
1491
|
+
inputProps: H(ne, {
|
|
1492
1492
|
id: a,
|
|
1493
1493
|
onBlur: () => {
|
|
1494
1494
|
v(n);
|
|
@@ -1499,18 +1499,18 @@ function Wn(t, e, l) {
|
|
|
1499
1499
|
isResizing: p
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1503
|
-
return
|
|
1502
|
+
function hl() {
|
|
1503
|
+
return Sn();
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function jn(t) {
|
|
1506
1506
|
return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function On(t) {
|
|
1509
1509
|
if (!t || typeof t == "number") return 1;
|
|
1510
1510
|
let e = t.match(/^(.+)(?=fr$)/);
|
|
1511
1511
|
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);
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Ye(t, e) {
|
|
1514
1514
|
if (typeof t == "string") {
|
|
1515
1515
|
let l = t.match(/^(\d+)(?=%$)/);
|
|
1516
1516
|
if (!l) throw new Error("Only percentages or numbers are supported for static column widths");
|
|
@@ -1518,26 +1518,26 @@ function Ue(t, e) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
return t;
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1522
|
-
return t != null ?
|
|
1521
|
+
function ml(t, e) {
|
|
1522
|
+
return t != null ? Ye(t, e) : Number.MAX_SAFE_INTEGER;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
return t != null ?
|
|
1524
|
+
function gl(t, e) {
|
|
1525
|
+
return t != null ? Ye(t, e) : 0;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function Un(t, e, l, n, o) {
|
|
1528
1528
|
let r = !1, i = e.map((u, c) => {
|
|
1529
1529
|
var d, s, a, p;
|
|
1530
|
-
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (a = (s = u.width) !== null && s !== void 0 ? s : u.defaultWidth) !== null && a !== void 0 ? a : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0,
|
|
1531
|
-
|
|
1530
|
+
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (a = (s = u.width) !== null && s !== void 0 ? s : u.defaultWidth) !== null && a !== void 0 ? a : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0, $ = 0, m = 0;
|
|
1531
|
+
jn(f) ? (g = Ye(f, t), h = !0) : ($ = On(f), $ <= 0 && (h = !0));
|
|
1532
1532
|
var D, b;
|
|
1533
|
-
let
|
|
1533
|
+
let y = gl((b = (D = u.minWidth) !== null && D !== void 0 ? D : o?.(c)) !== null && b !== void 0 ? b : 0, t), v = ml(u.maxWidth, t), w = Math.max(y, Math.min(g, v));
|
|
1534
1534
|
return h ? m = w : g > w && (h = !0, m = w), h || (r = !0), {
|
|
1535
1535
|
frozen: h,
|
|
1536
1536
|
baseSize: g,
|
|
1537
1537
|
hypotheticalMainSize: w,
|
|
1538
|
-
min:
|
|
1538
|
+
min: y,
|
|
1539
1539
|
max: v,
|
|
1540
|
-
flex:
|
|
1540
|
+
flex: $,
|
|
1541
1541
|
targetMainSize: m,
|
|
1542
1542
|
violation: 0
|
|
1543
1543
|
};
|
|
@@ -1564,16 +1564,16 @@ function jn(t, e, l, n, o) {
|
|
|
1564
1564
|
s === 0 || Math.sign(s) === Math.sign(a.violation) ? a.frozen = !0 : a.frozen || (r = !0);
|
|
1565
1565
|
});
|
|
1566
1566
|
}
|
|
1567
|
-
return
|
|
1567
|
+
return Ln(i);
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Ln(t) {
|
|
1570
1570
|
let e = 0, l = 0, n = [];
|
|
1571
1571
|
return t.forEach(function(o) {
|
|
1572
1572
|
let r = o.targetMainSize, i = Math.round(r + e) - l;
|
|
1573
1573
|
e += r, l += i, n.push(i);
|
|
1574
1574
|
}), n;
|
|
1575
1575
|
}
|
|
1576
|
-
class
|
|
1576
|
+
class Yn {
|
|
1577
1577
|
/** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
|
|
1578
1578
|
splitColumnsIntoControlledAndUncontrolled(e) {
|
|
1579
1579
|
return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
|
|
@@ -1621,14 +1621,14 @@ class Un {
|
|
|
1621
1621
|
}), u;
|
|
1622
1622
|
}
|
|
1623
1623
|
buildColumnWidths(e, l, n) {
|
|
1624
|
-
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(),
|
|
1624
|
+
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Un(e, l.columns.map((r) => ({
|
|
1625
1625
|
...r.props,
|
|
1626
1626
|
key: r.key
|
|
1627
1627
|
})), n, (r) => this.getDefaultWidth(l.columns[r]), (r) => this.getDefaultMinWidth(l.columns[r])).forEach((r, i) => {
|
|
1628
1628
|
let u = l.columns[i].key, c = l.columns[i];
|
|
1629
1629
|
this.columnWidths.set(u, r);
|
|
1630
1630
|
var d;
|
|
1631
|
-
this.columnMinWidths.set(u,
|
|
1631
|
+
this.columnMinWidths.set(u, gl((d = c.props.minWidth) !== null && d !== void 0 ? d : this.getDefaultMinWidth(c), e)), this.columnMaxWidths.set(u, ml(c.props.maxWidth, e));
|
|
1632
1632
|
}), this.columnWidths;
|
|
1633
1633
|
}
|
|
1634
1634
|
constructor(e) {
|
|
@@ -1639,25 +1639,25 @@ class Un {
|
|
|
1639
1639
|
this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1643
|
-
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] =
|
|
1642
|
+
function Xn(t, e) {
|
|
1643
|
+
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] = Z(null), u = N(() => new Yn({
|
|
1644
1644
|
getDefaultWidth: l,
|
|
1645
1645
|
getDefaultMinWidth: n
|
|
1646
1646
|
}), [
|
|
1647
1647
|
l,
|
|
1648
1648
|
n
|
|
1649
|
-
]), [c, d] =
|
|
1649
|
+
]), [c, d] = N(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
|
|
1650
1650
|
e.collection.columns,
|
|
1651
1651
|
u
|
|
1652
|
-
]), [s, a] =
|
|
1652
|
+
]), [s, a] = Z(() => u.getInitialUncontrolledWidths(d)), [p, f] = Z(e.collection.columns);
|
|
1653
1653
|
if (e.collection.columns !== p) {
|
|
1654
|
-
if (e.collection.columns.length !== p.length || e.collection.columns.some((b,
|
|
1654
|
+
if (e.collection.columns.length !== p.length || e.collection.columns.some((b, y) => b.key !== p[y].key)) {
|
|
1655
1655
|
let b = u.getInitialUncontrolledWidths(d);
|
|
1656
1656
|
a(b);
|
|
1657
1657
|
}
|
|
1658
1658
|
f(e.collection.columns);
|
|
1659
1659
|
}
|
|
1660
|
-
let h =
|
|
1660
|
+
let h = N(() => u.recombineColumns(e.collection.columns, s, d, c), [
|
|
1661
1661
|
e.collection.columns,
|
|
1662
1662
|
s,
|
|
1663
1663
|
d,
|
|
@@ -1667,12 +1667,12 @@ function Ln(t, e) {
|
|
|
1667
1667
|
i(b);
|
|
1668
1668
|
}, [
|
|
1669
1669
|
i
|
|
1670
|
-
]),
|
|
1671
|
-
let v = u.resizeColumnWidth(e.collection, s, b,
|
|
1670
|
+
]), $ = j((b, y) => {
|
|
1671
|
+
let v = u.resizeColumnWidth(e.collection, s, b, y), w = new Map(Array.from(d).map(([k]) => [
|
|
1672
1672
|
k,
|
|
1673
1673
|
v.get(k)
|
|
1674
1674
|
]));
|
|
1675
|
-
return w.set(b,
|
|
1675
|
+
return w.set(b, y), a(w), v;
|
|
1676
1676
|
}, [
|
|
1677
1677
|
d,
|
|
1678
1678
|
a,
|
|
@@ -1683,15 +1683,15 @@ function Ln(t, e) {
|
|
|
1683
1683
|
i(null);
|
|
1684
1684
|
}, [
|
|
1685
1685
|
i
|
|
1686
|
-
]), D =
|
|
1686
|
+
]), D = N(() => u.buildColumnWidths(o, e.collection, h), [
|
|
1687
1687
|
o,
|
|
1688
1688
|
e.collection,
|
|
1689
1689
|
h,
|
|
1690
1690
|
u
|
|
1691
1691
|
]);
|
|
1692
|
-
return
|
|
1692
|
+
return N(() => ({
|
|
1693
1693
|
resizingColumn: r,
|
|
1694
|
-
updateResizedColumns:
|
|
1694
|
+
updateResizedColumns: $,
|
|
1695
1695
|
startResize: g,
|
|
1696
1696
|
endResize: m,
|
|
1697
1697
|
getColumnWidth: (b) => u.getColumnWidth(b),
|
|
@@ -1703,14 +1703,14 @@ function Ln(t, e) {
|
|
|
1703
1703
|
u,
|
|
1704
1704
|
D,
|
|
1705
1705
|
r,
|
|
1706
|
-
|
|
1706
|
+
$,
|
|
1707
1707
|
g,
|
|
1708
1708
|
m,
|
|
1709
1709
|
e
|
|
1710
1710
|
]);
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState ||
|
|
1712
|
+
function Gn(t) {
|
|
1713
|
+
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || Dt(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1714
1714
|
t.disabledKeys
|
|
1715
1715
|
]), r = n.setFocusedKey;
|
|
1716
1716
|
n.setFocusedKey = (c, d) => {
|
|
@@ -1720,17 +1720,17 @@ function Yn(t) {
|
|
|
1720
1720
|
var s, a;
|
|
1721
1721
|
let g = V(h, e);
|
|
1722
1722
|
var p, f;
|
|
1723
|
-
d === "last" ? c = (p = (s =
|
|
1723
|
+
d === "last" ? c = (p = (s = ie(g)) === null || s === void 0 ? void 0 : s.key) !== null && p !== void 0 ? p : null : c = (f = (a = re(g)) === null || a === void 0 ? void 0 : a.key) !== null && f !== void 0 ? f : null;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
1726
|
r(c, d);
|
|
1727
1727
|
};
|
|
1728
|
-
let i =
|
|
1728
|
+
let i = N(() => new Ml(e, n), [
|
|
1729
1729
|
e,
|
|
1730
1730
|
n
|
|
1731
1731
|
]);
|
|
1732
|
-
const u =
|
|
1733
|
-
return
|
|
1732
|
+
const u = A(null);
|
|
1733
|
+
return de(() => {
|
|
1734
1734
|
if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
|
|
1735
1735
|
const c = u.current.getItem(n.focusedKey), d = c?.parentKey != null && (c.type === "cell" || c.type === "rowheader" || c.type === "column") ? u.current.getItem(c.parentKey) : c;
|
|
1736
1736
|
if (!d) {
|
|
@@ -1749,8 +1749,8 @@ function Yn(t) {
|
|
|
1749
1749
|
if (h) {
|
|
1750
1750
|
const g = h.hasChildNodes ? [
|
|
1751
1751
|
...V(h, e)
|
|
1752
|
-
] : [],
|
|
1753
|
-
n.setFocusedKey(
|
|
1752
|
+
] : [], $ = h.hasChildNodes && d !== c && c && c.index < g.length ? g[c.index].key : h.key;
|
|
1753
|
+
n.setFocusedKey($);
|
|
1754
1754
|
} else n.setFocusedKey(null);
|
|
1755
1755
|
}
|
|
1756
1756
|
u.current = e;
|
|
@@ -1766,7 +1766,7 @@ function Yn(t) {
|
|
|
1766
1766
|
selectionManager: i
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
|
-
class
|
|
1769
|
+
class qn {
|
|
1770
1770
|
*[Symbol.iterator]() {
|
|
1771
1771
|
yield* [
|
|
1772
1772
|
...this.rows
|
|
@@ -1824,8 +1824,8 @@ class Xn {
|
|
|
1824
1824
|
e.visitNode && (a = e.visitNode(a)), this.keyMap.set(a.key, a);
|
|
1825
1825
|
let f = /* @__PURE__ */ new Set(), h = null, g = !1;
|
|
1826
1826
|
if (a.type === "item") {
|
|
1827
|
-
var
|
|
1828
|
-
for (let v of a.childNodes) if (((
|
|
1827
|
+
var $;
|
|
1828
|
+
for (let v of a.childNodes) if ((($ = v.props) === null || $ === void 0 ? void 0 : $.colSpan) !== void 0) {
|
|
1829
1829
|
g = !0;
|
|
1830
1830
|
break;
|
|
1831
1831
|
}
|
|
@@ -1834,8 +1834,8 @@ class Xn {
|
|
|
1834
1834
|
if (v.type === "cell" && g) {
|
|
1835
1835
|
var m, D;
|
|
1836
1836
|
v.colspan = (m = v.props) === null || m === void 0 ? void 0 : m.colSpan, v.colSpan = (D = v.props) === null || D === void 0 ? void 0 : D.colSpan;
|
|
1837
|
-
var b,
|
|
1838
|
-
v.colIndex = h ? ((b = h.colIndex) !== null && b !== void 0 ? b : h.index) + ((
|
|
1837
|
+
var b, y;
|
|
1838
|
+
v.colIndex = h ? ((b = h.colIndex) !== null && b !== void 0 ? b : h.index) + ((y = h.colSpan) !== null && y !== void 0 ? y : 1) : v.index;
|
|
1839
1839
|
}
|
|
1840
1840
|
v.type === "cell" && v.parentKey == null && (v.parentKey = a.key), f.add(v.key), h ? (h.nextKey = v.key, v.prevKey = h.key) : v.prevKey = null, l(v), h = v;
|
|
1841
1841
|
}
|
|
@@ -1866,10 +1866,10 @@ class Xn {
|
|
|
1866
1866
|
o && (o.nextKey = null);
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
-
const
|
|
1870
|
-
let
|
|
1871
|
-
for (;
|
|
1872
|
-
function
|
|
1869
|
+
const bl = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1870
|
+
let Ve = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1871
|
+
for (; bl === Ve; ) Ve = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1872
|
+
function vl(t, e) {
|
|
1873
1873
|
if (e.length === 0) return [];
|
|
1874
1874
|
let l = [], n = /* @__PURE__ */ new Map();
|
|
1875
1875
|
for (let s of e) {
|
|
@@ -1884,9 +1884,9 @@ function ml(t, e) {
|
|
|
1884
1884
|
(r = (o = f).colSpan) !== null && r !== void 0 || (o.colSpan = 0), f.colSpan++, f.colspan = f.colSpan;
|
|
1885
1885
|
let { column: h, index: g } = n.get(f);
|
|
1886
1886
|
if (g > p.length) break;
|
|
1887
|
-
for (let
|
|
1888
|
-
for (let
|
|
1889
|
-
h[
|
|
1887
|
+
for (let $ = g; $ < p.length; $++) h.splice($, 0, null);
|
|
1888
|
+
for (let $ = p.length; $ < h.length; $++)
|
|
1889
|
+
h[$] && n.has(h[$]) && (n.get(h[$]).index = $);
|
|
1890
1890
|
} else
|
|
1891
1891
|
f.colSpan = 1, f.colspan = 1, p.push(f), n.set(f, {
|
|
1892
1892
|
column: p,
|
|
@@ -1901,9 +1901,9 @@ function ml(t, e) {
|
|
|
1901
1901
|
let a = i - 1;
|
|
1902
1902
|
for (let p of s) {
|
|
1903
1903
|
if (p) {
|
|
1904
|
-
let f = u[a], h = f.reduce((g,
|
|
1904
|
+
let f = u[a], h = f.reduce((g, $) => {
|
|
1905
1905
|
var m;
|
|
1906
|
-
return g + ((m =
|
|
1906
|
+
return g + ((m = $.colSpan) !== null && m !== void 0 ? m : 1);
|
|
1907
1907
|
}, 0);
|
|
1908
1908
|
if (h < c) {
|
|
1909
1909
|
let g = {
|
|
@@ -1964,7 +1964,7 @@ function ml(t, e) {
|
|
|
1964
1964
|
textValue: ""
|
|
1965
1965
|
}));
|
|
1966
1966
|
}
|
|
1967
|
-
class
|
|
1967
|
+
class Zn extends qn {
|
|
1968
1968
|
*[Symbol.iterator]() {
|
|
1969
1969
|
yield* this.body.childNodes;
|
|
1970
1970
|
}
|
|
@@ -1986,11 +1986,11 @@ class Gn extends Xn {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
getFirstKey() {
|
|
1988
1988
|
var e, l;
|
|
1989
|
-
return (l = (e =
|
|
1989
|
+
return (l = (e = re(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1990
1990
|
}
|
|
1991
1991
|
getLastKey() {
|
|
1992
1992
|
var e, l;
|
|
1993
|
-
return (l = (e =
|
|
1993
|
+
return (l = (e = ie(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
|
|
1994
1994
|
}
|
|
1995
1995
|
getItem(e) {
|
|
1996
1996
|
var l;
|
|
@@ -2025,7 +2025,7 @@ class Gn extends Xn {
|
|
|
2025
2025
|
if (n?.showSelectionCheckboxes) {
|
|
2026
2026
|
let a = {
|
|
2027
2027
|
type: "column",
|
|
2028
|
-
key:
|
|
2028
|
+
key: bl,
|
|
2029
2029
|
value: null,
|
|
2030
2030
|
textValue: "",
|
|
2031
2031
|
level: 0,
|
|
@@ -2042,7 +2042,7 @@ class Gn extends Xn {
|
|
|
2042
2042
|
if (n?.showDragButtons) {
|
|
2043
2043
|
let a = {
|
|
2044
2044
|
type: "column",
|
|
2045
|
-
key:
|
|
2045
|
+
key: Ve,
|
|
2046
2046
|
value: null,
|
|
2047
2047
|
textValue: "",
|
|
2048
2048
|
level: 0,
|
|
@@ -2071,7 +2071,7 @@ class Gn extends Xn {
|
|
|
2071
2071
|
for (let p of a.childNodes) d(p);
|
|
2072
2072
|
};
|
|
2073
2073
|
for (let a of e) d(a);
|
|
2074
|
-
let s =
|
|
2074
|
+
let s = vl(c, i);
|
|
2075
2075
|
if (s.forEach((a, p) => u.splice(p, 0, a)), super({
|
|
2076
2076
|
columnCount: i.length,
|
|
2077
2077
|
items: u,
|
|
@@ -2087,12 +2087,12 @@ class Gn extends Xn {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
|
-
const
|
|
2090
|
+
const Jn = {
|
|
2091
2091
|
ascending: "descending",
|
|
2092
2092
|
descending: "ascending"
|
|
2093
2093
|
};
|
|
2094
|
-
function
|
|
2095
|
-
let [e, l] =
|
|
2094
|
+
function Qn(t) {
|
|
2095
|
+
let [e, l] = Z(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: r } = t, i = N(() => ({
|
|
2096
2096
|
showSelectionCheckboxes: o && n !== "none",
|
|
2097
2097
|
showDragButtons: r,
|
|
2098
2098
|
selectionMode: n,
|
|
@@ -2102,9 +2102,9 @@ function Zn(t) {
|
|
|
2102
2102
|
o,
|
|
2103
2103
|
n,
|
|
2104
2104
|
r
|
|
2105
|
-
]), u =
|
|
2105
|
+
]), u = Nl(t, j((a) => new Zn(a, null, i), [
|
|
2106
2106
|
i
|
|
2107
|
-
]), i), { disabledKeys: c, selectionManager: d } =
|
|
2107
|
+
]), i), { disabledKeys: c, selectionManager: d } = Gn({
|
|
2108
2108
|
...t,
|
|
2109
2109
|
collection: u,
|
|
2110
2110
|
disabledBehavior: t.disabledBehavior || "selection"
|
|
@@ -2122,13 +2122,13 @@ function Zn(t) {
|
|
|
2122
2122
|
var f, h;
|
|
2123
2123
|
(h = t.onSortChange) === null || h === void 0 || h.call(t, {
|
|
2124
2124
|
column: a,
|
|
2125
|
-
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === a ?
|
|
2125
|
+
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === a ? Jn[t.sortDescriptor.direction] : "ascending")
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
2128
|
};
|
|
2129
2129
|
}
|
|
2130
|
-
function
|
|
2131
|
-
let l =
|
|
2130
|
+
function _n(t, e) {
|
|
2131
|
+
let l = N(() => e ? t.collection.filter(e) : t.collection, [
|
|
2132
2132
|
t.collection,
|
|
2133
2133
|
e
|
|
2134
2134
|
]), n = t.selectionManager.withCollection(l);
|
|
@@ -2138,10 +2138,10 @@ function Jn(t, e) {
|
|
|
2138
2138
|
selectionManager: n
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function eo(t) {
|
|
2142
2142
|
return t && t.__esModule ? t.default : t;
|
|
2143
2143
|
}
|
|
2144
|
-
class
|
|
2144
|
+
class to extends Ll {
|
|
2145
2145
|
addNode(e) {
|
|
2146
2146
|
super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
|
|
2147
2147
|
}
|
|
@@ -2171,7 +2171,7 @@ class _n extends Hl {
|
|
|
2171
2171
|
for (let r of this.getChildren(o.key)) n(r);
|
|
2172
2172
|
};
|
|
2173
2173
|
for (let o of this.getChildren(this.head.key)) n(o);
|
|
2174
|
-
if (this.headerRows =
|
|
2174
|
+
if (this.headerRows = vl(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");
|
|
2175
2175
|
}
|
|
2176
2176
|
get columnCount() {
|
|
2177
2177
|
return this.columns.length;
|
|
@@ -2221,33 +2221,33 @@ class _n extends Hl {
|
|
|
2221
2221
|
return o.join(" ");
|
|
2222
2222
|
}
|
|
2223
2223
|
constructor(...e) {
|
|
2224
|
-
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new
|
|
2224
|
+
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new qe(-1), this.body = new Ze(-2), this.columnsDirty = !0;
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
|
-
const
|
|
2228
|
-
let n =
|
|
2229
|
-
|
|
2227
|
+
const Xe = /* @__PURE__ */ ce(null), lo = /* @__PURE__ */ Ae(function(e, l) {
|
|
2228
|
+
let n = G(l), o = A(null), r = A(null), [i, u] = Z(0);
|
|
2229
|
+
dt(() => {
|
|
2230
2230
|
let d = o.current;
|
|
2231
|
-
for (; d && d !== n.current && !
|
|
2231
|
+
for (; d && d !== n.current && !ql(d); ) d = d.parentElement;
|
|
2232
2232
|
r.current = d;
|
|
2233
2233
|
}, [
|
|
2234
2234
|
n
|
|
2235
|
-
]),
|
|
2235
|
+
]), Gl({
|
|
2236
2236
|
ref: r,
|
|
2237
2237
|
box: "border-box",
|
|
2238
2238
|
onResize() {
|
|
2239
2239
|
var d, s;
|
|
2240
2240
|
u((s = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && s !== void 0 ? s : 0);
|
|
2241
2241
|
}
|
|
2242
|
-
}),
|
|
2242
|
+
}), dt(() => {
|
|
2243
2243
|
var d, s;
|
|
2244
2244
|
u((s = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && s !== void 0 ? s : 0);
|
|
2245
2245
|
}, []);
|
|
2246
|
-
let c =
|
|
2246
|
+
let c = N(() => ({
|
|
2247
2247
|
tableRef: o,
|
|
2248
2248
|
scrollRef: r,
|
|
2249
2249
|
tableWidth: i,
|
|
2250
|
-
useTableColumnResizeState:
|
|
2250
|
+
useTableColumnResizeState: Xn,
|
|
2251
2251
|
onResizeStart: e.onResizeStart,
|
|
2252
2252
|
onResize: e.onResize,
|
|
2253
2253
|
onResizeEnd: e.onResizeEnd
|
|
@@ -2259,20 +2259,20 @@ const Le = /* @__PURE__ */ de(null), eo = /* @__PURE__ */ ie(function(e, l) {
|
|
|
2259
2259
|
e.onResizeEnd
|
|
2260
2260
|
]);
|
|
2261
2261
|
return /* @__PURE__ */ S.createElement("div", {
|
|
2262
|
-
...
|
|
2262
|
+
...Q(e, {
|
|
2263
2263
|
global: !0
|
|
2264
2264
|
}),
|
|
2265
2265
|
ref: n,
|
|
2266
2266
|
className: e.className || "react-aria-ResizableTableContainer",
|
|
2267
2267
|
style: e.style,
|
|
2268
2268
|
onScroll: e.onScroll
|
|
2269
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2269
|
+
}, /* @__PURE__ */ S.createElement(Xe.Provider, {
|
|
2270
2270
|
value: c
|
|
2271
2271
|
}, e.children));
|
|
2272
|
-
}),
|
|
2272
|
+
}), no = /* @__PURE__ */ ce(null), te = /* @__PURE__ */ ce(null), Ge = /* @__PURE__ */ ce(null), oo = /* @__PURE__ */ Ae(function(e, l) {
|
|
2273
2273
|
var n;
|
|
2274
|
-
[e, l] =
|
|
2275
|
-
let o =
|
|
2274
|
+
[e, l] = wt(e, l, no);
|
|
2275
|
+
let o = Dt(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: u } = o, c = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), d = N(() => ({
|
|
2276
2276
|
selectionBehavior: i === "none" ? null : r,
|
|
2277
2277
|
selectionMode: i,
|
|
2278
2278
|
disallowEmptySelection: u,
|
|
@@ -2282,175 +2282,175 @@ const Le = /* @__PURE__ */ de(null), eo = /* @__PURE__ */ ie(function(e, l) {
|
|
|
2282
2282
|
i,
|
|
2283
2283
|
u,
|
|
2284
2284
|
c
|
|
2285
|
-
]), s = /* @__PURE__ */ S.createElement(
|
|
2285
|
+
]), s = /* @__PURE__ */ S.createElement(yl.Provider, {
|
|
2286
2286
|
value: d
|
|
2287
2287
|
}, /* @__PURE__ */ S.createElement(Se, e));
|
|
2288
|
-
return /* @__PURE__ */ S.createElement(
|
|
2288
|
+
return /* @__PURE__ */ S.createElement(Ol, {
|
|
2289
2289
|
content: s,
|
|
2290
|
-
createCollection: () => new
|
|
2291
|
-
}, (a) => /* @__PURE__ */ S.createElement(
|
|
2290
|
+
createCollection: () => new to()
|
|
2291
|
+
}, (a) => /* @__PURE__ */ S.createElement(ro, {
|
|
2292
2292
|
props: e,
|
|
2293
2293
|
forwardedRef: l,
|
|
2294
2294
|
selectionState: o,
|
|
2295
2295
|
collection: a
|
|
2296
2296
|
}));
|
|
2297
2297
|
});
|
|
2298
|
-
function
|
|
2298
|
+
function ro({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
2299
2299
|
let o;
|
|
2300
|
-
[o] =
|
|
2301
|
-
let { filter: r, ...i } = o, { shouldUseVirtualFocus: u, disallowTypeAhead: c, ...d } = i || {}, s = R(
|
|
2302
|
-
e =
|
|
2300
|
+
[o] = wt({}, null, at);
|
|
2301
|
+
let { filter: r, ...i } = o, { shouldUseVirtualFocus: u, disallowTypeAhead: c, ...d } = i || {}, s = R(Xe);
|
|
2302
|
+
e = G(N(() => Il(e, s?.tableRef), [
|
|
2303
2303
|
e,
|
|
2304
2304
|
s?.tableRef
|
|
2305
2305
|
]));
|
|
2306
|
-
let a =
|
|
2306
|
+
let a = Qn({
|
|
2307
2307
|
...t,
|
|
2308
2308
|
collection: n,
|
|
2309
2309
|
children: void 0,
|
|
2310
2310
|
UNSAFE_selectionState: l
|
|
2311
|
-
}), p =
|
|
2311
|
+
}), p = _n(a, r), { isVirtualized: f, layoutDelegate: h, dropTargetDelegate: g, CollectionRoot: $ } = R(J), { dragAndDropHooks: m } = t, { gridProps: D } = An({
|
|
2312
2312
|
...t,
|
|
2313
2313
|
...d,
|
|
2314
2314
|
layoutDelegate: h,
|
|
2315
2315
|
isVirtualized: f
|
|
2316
|
-
}, p, e), b = p.selectionManager,
|
|
2317
|
-
|
|
2318
|
-
process.env.NODE_ENV !== "production" && (w.current !==
|
|
2316
|
+
}, p, e), b = p.selectionManager, y = !!m?.useDraggableCollectionState, v = !!m?.useDroppableCollectionState, w = A(y), k = A(v);
|
|
2317
|
+
de(() => {
|
|
2318
|
+
process.env.NODE_ENV !== "production" && (w.current !== y && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), k.current !== v && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
2319
2319
|
}, [
|
|
2320
|
-
|
|
2320
|
+
y,
|
|
2321
2321
|
v
|
|
2322
2322
|
]);
|
|
2323
|
-
let P,
|
|
2324
|
-
if (
|
|
2323
|
+
let P, B, E, M = !1, W = null, T = A(null);
|
|
2324
|
+
if (y && m) {
|
|
2325
2325
|
P = m.useDraggableCollectionState({
|
|
2326
2326
|
collection: p.collection,
|
|
2327
2327
|
selectionManager: b,
|
|
2328
2328
|
preview: m.renderDragPreview ? T : void 0
|
|
2329
2329
|
}), m.useDraggableCollection({}, P, e);
|
|
2330
|
-
let
|
|
2331
|
-
W = m.renderDragPreview ? /* @__PURE__ */ S.createElement(
|
|
2330
|
+
let K = m.DragPreview;
|
|
2331
|
+
W = m.renderDragPreview ? /* @__PURE__ */ S.createElement(K, {
|
|
2332
2332
|
ref: T
|
|
2333
2333
|
}, m.renderDragPreview) : null;
|
|
2334
2334
|
}
|
|
2335
2335
|
if (v && m) {
|
|
2336
|
-
|
|
2336
|
+
B = m.useDroppableCollectionState({
|
|
2337
2337
|
collection: p.collection,
|
|
2338
2338
|
selectionManager: b
|
|
2339
2339
|
});
|
|
2340
|
-
let
|
|
2340
|
+
let K = new Tl({
|
|
2341
2341
|
collection: p.collection,
|
|
2342
2342
|
disabledKeys: b.disabledKeys,
|
|
2343
2343
|
disabledBehavior: b.disabledBehavior,
|
|
2344
2344
|
ref: e,
|
|
2345
2345
|
layoutDelegate: h
|
|
2346
|
-
}),
|
|
2346
|
+
}), oe = m.dropTargetDelegate || g || new m.ListDropTargetDelegate(n.rows, e);
|
|
2347
2347
|
E = m.useDroppableCollection({
|
|
2348
|
-
keyboardDelegate:
|
|
2349
|
-
dropTargetDelegate:
|
|
2350
|
-
},
|
|
2348
|
+
keyboardDelegate: K,
|
|
2349
|
+
dropTargetDelegate: oe
|
|
2350
|
+
}, B, e), M = B.isDropTarget({
|
|
2351
2351
|
type: "root"
|
|
2352
2352
|
});
|
|
2353
2353
|
}
|
|
2354
|
-
let { focusProps: I, isFocused: F, isFocusVisible: U } =
|
|
2354
|
+
let { focusProps: I, isFocused: F, isFocusVisible: U } = me(), L = ae({
|
|
2355
2355
|
className: t.className,
|
|
2356
2356
|
style: t.style,
|
|
2357
2357
|
defaultClassName: "react-aria-Table",
|
|
2358
2358
|
values: {
|
|
2359
|
-
isDropTarget:
|
|
2359
|
+
isDropTarget: M,
|
|
2360
2360
|
isFocused: F,
|
|
2361
2361
|
isFocusVisible: U,
|
|
2362
2362
|
state: p
|
|
2363
2363
|
}
|
|
2364
|
-
}),
|
|
2365
|
-
s && (
|
|
2364
|
+
}), _ = !!(y && !P?.isDisabled), ee = L.style, le = null;
|
|
2365
|
+
s && (le = s.useTableColumnResizeState({
|
|
2366
2366
|
tableWidth: s.tableWidth
|
|
2367
2367
|
}, p), f || (ee = {
|
|
2368
2368
|
...ee,
|
|
2369
2369
|
tableLayout: "fixed",
|
|
2370
2370
|
width: "fit-content"
|
|
2371
2371
|
}));
|
|
2372
|
-
let
|
|
2372
|
+
let ne = O("table"), x = Q(t, {
|
|
2373
2373
|
global: !0
|
|
2374
2374
|
});
|
|
2375
2375
|
var z;
|
|
2376
|
-
return /* @__PURE__ */ S.createElement(
|
|
2376
|
+
return /* @__PURE__ */ S.createElement(Be, {
|
|
2377
2377
|
values: [
|
|
2378
2378
|
[
|
|
2379
2379
|
te,
|
|
2380
2380
|
p
|
|
2381
2381
|
],
|
|
2382
2382
|
[
|
|
2383
|
-
|
|
2384
|
-
|
|
2383
|
+
Ge,
|
|
2384
|
+
le
|
|
2385
2385
|
],
|
|
2386
2386
|
[
|
|
2387
|
-
|
|
2387
|
+
ge,
|
|
2388
2388
|
{
|
|
2389
2389
|
dragAndDropHooks: m,
|
|
2390
2390
|
dragState: P,
|
|
2391
|
-
dropState:
|
|
2391
|
+
dropState: B
|
|
2392
2392
|
}
|
|
2393
2393
|
],
|
|
2394
2394
|
[
|
|
2395
|
-
|
|
2395
|
+
Vl,
|
|
2396
2396
|
{
|
|
2397
|
-
render:
|
|
2397
|
+
render: po
|
|
2398
2398
|
}
|
|
2399
2399
|
],
|
|
2400
2400
|
[
|
|
2401
|
-
|
|
2401
|
+
at,
|
|
2402
2402
|
null
|
|
2403
2403
|
],
|
|
2404
2404
|
[
|
|
2405
|
-
|
|
2405
|
+
Fl,
|
|
2406
2406
|
null
|
|
2407
2407
|
]
|
|
2408
2408
|
]
|
|
2409
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2409
|
+
}, /* @__PURE__ */ S.createElement(nn, null, /* @__PURE__ */ S.createElement(ne, {
|
|
2410
2410
|
...H(x, L, D, I, E?.collectionProps),
|
|
2411
2411
|
style: ee,
|
|
2412
2412
|
ref: e,
|
|
2413
2413
|
slot: t.slot || void 0,
|
|
2414
2414
|
onScroll: t.onScroll,
|
|
2415
|
-
"data-allows-dragging":
|
|
2416
|
-
"data-drop-target":
|
|
2415
|
+
"data-allows-dragging": _ || void 0,
|
|
2416
|
+
"data-drop-target": M || void 0,
|
|
2417
2417
|
"data-focused": F || void 0,
|
|
2418
2418
|
"data-focus-visible": U || void 0
|
|
2419
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2419
|
+
}, /* @__PURE__ */ S.createElement($, {
|
|
2420
2420
|
collection: p.collection,
|
|
2421
2421
|
scrollRef: (z = s?.scrollRef) !== null && z !== void 0 ? z : e,
|
|
2422
|
-
persistedKeys:
|
|
2422
|
+
persistedKeys: Hl(b, m, B)
|
|
2423
2423
|
}))), W);
|
|
2424
2424
|
}
|
|
2425
2425
|
function O(t) {
|
|
2426
|
-
let { isVirtualized: e } = R(
|
|
2426
|
+
let { isVirtualized: e } = R(J);
|
|
2427
2427
|
return e ? "div" : t;
|
|
2428
2428
|
}
|
|
2429
|
-
const
|
|
2430
|
-
function
|
|
2431
|
-
return R(
|
|
2429
|
+
const yl = /* @__PURE__ */ ce(null);
|
|
2430
|
+
function $l() {
|
|
2431
|
+
return R(yl);
|
|
2432
2432
|
}
|
|
2433
|
-
class
|
|
2433
|
+
class qe extends Ke {
|
|
2434
2434
|
}
|
|
2435
|
-
|
|
2436
|
-
const
|
|
2437
|
-
let l = R(te).collection, n =
|
|
2435
|
+
qe.type = "tableheader";
|
|
2436
|
+
const io = /* @__PURE__ */ je(qe, (t, e) => {
|
|
2437
|
+
let l = R(te).collection, n = Ul({
|
|
2438
2438
|
items: l.headerRows,
|
|
2439
2439
|
children: j((d) => {
|
|
2440
2440
|
switch (d.type) {
|
|
2441
2441
|
case "headerrow":
|
|
2442
|
-
return /* @__PURE__ */ S.createElement(
|
|
2442
|
+
return /* @__PURE__ */ S.createElement(uo, {
|
|
2443
2443
|
item: d
|
|
2444
2444
|
});
|
|
2445
2445
|
default:
|
|
2446
2446
|
throw new Error("Unsupported node type in TableHeader: " + d.type);
|
|
2447
2447
|
}
|
|
2448
2448
|
}, [])
|
|
2449
|
-
}), o = O("thead"), { rowGroupProps: r } =
|
|
2449
|
+
}), o = O("thead"), { rowGroupProps: r } = hl(), { hoverProps: i, isHovered: u } = ke({
|
|
2450
2450
|
onHoverStart: t.onHoverStart,
|
|
2451
2451
|
onHoverChange: t.onHoverChange,
|
|
2452
2452
|
onHoverEnd: t.onHoverEnd
|
|
2453
|
-
}), c =
|
|
2453
|
+
}), c = ae({
|
|
2454
2454
|
className: t.className,
|
|
2455
2455
|
style: t.style,
|
|
2456
2456
|
defaultClassName: "react-aria-TableHeader",
|
|
@@ -2459,7 +2459,7 @@ const oo = /* @__PURE__ */ Ve(Xe, (t, e) => {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
});
|
|
2461
2461
|
return /* @__PURE__ */ S.createElement(o, {
|
|
2462
|
-
...H(
|
|
2462
|
+
...H(Q(t, {
|
|
2463
2463
|
global: !0
|
|
2464
2464
|
}), r, i),
|
|
2465
2465
|
...c,
|
|
@@ -2470,18 +2470,18 @@ const oo = /* @__PURE__ */ Ve(Xe, (t, e) => {
|
|
|
2470
2470
|
dependencies: t.dependencies,
|
|
2471
2471
|
items: t.columns
|
|
2472
2472
|
}, t.children));
|
|
2473
|
-
function
|
|
2474
|
-
let e =
|
|
2473
|
+
function uo({ item: t }) {
|
|
2474
|
+
let e = A(null), l = R(te), { isVirtualized: n, CollectionBranch: o } = R(J), { rowProps: r } = Nn({
|
|
2475
2475
|
node: t,
|
|
2476
2476
|
isVirtualized: n
|
|
2477
|
-
}, l, e), { checkboxProps: i } =
|
|
2477
|
+
}, l, e), { checkboxProps: i } = Wn(l), u = O("tr");
|
|
2478
2478
|
return /* @__PURE__ */ S.createElement(u, {
|
|
2479
2479
|
...r,
|
|
2480
2480
|
ref: e
|
|
2481
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2481
|
+
}, /* @__PURE__ */ S.createElement(Be, {
|
|
2482
2482
|
values: [
|
|
2483
2483
|
[
|
|
2484
|
-
|
|
2484
|
+
$t,
|
|
2485
2485
|
{
|
|
2486
2486
|
slots: {
|
|
2487
2487
|
selection: i
|
|
@@ -2494,26 +2494,26 @@ function ro({ item: t }) {
|
|
|
2494
2494
|
parent: t
|
|
2495
2495
|
})));
|
|
2496
2496
|
}
|
|
2497
|
-
class
|
|
2497
|
+
class xl extends Ke {
|
|
2498
2498
|
}
|
|
2499
|
-
|
|
2500
|
-
const
|
|
2499
|
+
xl.type = "column";
|
|
2500
|
+
const ao = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
2501
2501
|
var n, o;
|
|
2502
|
-
let r =
|
|
2502
|
+
let r = G(e), i = R(te), { isVirtualized: u } = R(J), { columnHeaderProps: c } = Kn({
|
|
2503
2503
|
node: l,
|
|
2504
2504
|
isVirtualized: u
|
|
2505
|
-
}, i, r), { isFocused: d, isFocusVisible: s, focusProps: a } =
|
|
2505
|
+
}, i, r), { isFocused: d, isFocusVisible: s, focusProps: a } = me(), p = R(Ge), f = !1;
|
|
2506
2506
|
if (p) f = p.resizingColumn === l.key;
|
|
2507
2507
|
else if (process.env.NODE_ENV !== "production")
|
|
2508
|
-
for (let
|
|
2508
|
+
for (let y in [
|
|
2509
2509
|
"width",
|
|
2510
2510
|
"defaultWidth",
|
|
2511
2511
|
"minWidth",
|
|
2512
2512
|
"maxWidth"
|
|
2513
|
-
])
|
|
2513
|
+
]) y in l.props && console.warn(`The ${y} 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.`);
|
|
2514
2514
|
let { hoverProps: h, isHovered: g } = ke({
|
|
2515
2515
|
isDisabled: !t.allowsSorting
|
|
2516
|
-
}),
|
|
2516
|
+
}), $ = ae({
|
|
2517
2517
|
...t,
|
|
2518
2518
|
id: void 0,
|
|
2519
2519
|
children: l.rendered,
|
|
@@ -2530,21 +2530,21 @@ const io = /* @__PURE__ */ Dt(vl, (t, e, l) => {
|
|
|
2530
2530
|
p.startResize(l.key), i.setKeyboardNavigationDisabled(!0);
|
|
2531
2531
|
else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2532
2532
|
},
|
|
2533
|
-
sort: (
|
|
2534
|
-
i.sort(l.key,
|
|
2533
|
+
sort: (y) => {
|
|
2534
|
+
i.sort(l.key, y);
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
|
-
}), m =
|
|
2537
|
+
}), m = $.style;
|
|
2538
2538
|
p && (m = {
|
|
2539
2539
|
...m,
|
|
2540
2540
|
width: p.getColumnWidth(l.key)
|
|
2541
2541
|
});
|
|
2542
|
-
let D = O("th"), b =
|
|
2542
|
+
let D = O("th"), b = Q(t, {
|
|
2543
2543
|
global: !0
|
|
2544
2544
|
});
|
|
2545
2545
|
return delete b.id, /* @__PURE__ */ S.createElement(D, {
|
|
2546
2546
|
...H(b, c, a, h),
|
|
2547
|
-
|
|
2547
|
+
...$,
|
|
2548
2548
|
style: m,
|
|
2549
2549
|
ref: r,
|
|
2550
2550
|
"data-hovered": g || void 0,
|
|
@@ -2553,57 +2553,57 @@ const io = /* @__PURE__ */ Dt(vl, (t, e, l) => {
|
|
|
2553
2553
|
"data-resizing": f || void 0,
|
|
2554
2554
|
"data-allows-sorting": l.props.allowsSorting || void 0,
|
|
2555
2555
|
"data-sort-direction": ((o = i.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? i.sortDescriptor.direction : void 0
|
|
2556
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2556
|
+
}, /* @__PURE__ */ S.createElement(Be, {
|
|
2557
2557
|
values: [
|
|
2558
2558
|
[
|
|
2559
|
-
|
|
2559
|
+
Dl,
|
|
2560
2560
|
{
|
|
2561
2561
|
column: l,
|
|
2562
2562
|
triggerRef: r
|
|
2563
2563
|
}
|
|
2564
2564
|
],
|
|
2565
2565
|
[
|
|
2566
|
-
|
|
2567
|
-
|
|
2566
|
+
J,
|
|
2567
|
+
Ct
|
|
2568
2568
|
]
|
|
2569
2569
|
]
|
|
2570
|
-
},
|
|
2571
|
-
}),
|
|
2572
|
-
let n = R(
|
|
2570
|
+
}, $.children));
|
|
2571
|
+
}), Dl = /* @__PURE__ */ ce(null), so = /* @__PURE__ */ Ae(function(e, l) {
|
|
2572
|
+
let n = R(Ge);
|
|
2573
2573
|
if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2574
|
-
let o =
|
|
2574
|
+
let o = ve(eo(jl), "react-aria-components"), { onResizeStart: r, onResize: i, onResizeEnd: u } = R(Xe), { column: c, triggerRef: d } = R(Dl), s = A(null), { resizerProps: a, inputProps: p, isResizing: f } = Hn({
|
|
2575
2575
|
column: c,
|
|
2576
2576
|
"aria-label": e["aria-label"] || o.format("tableResizer"),
|
|
2577
2577
|
onResizeStart: r,
|
|
2578
2578
|
onResize: i,
|
|
2579
2579
|
onResizeEnd: u,
|
|
2580
2580
|
triggerRef: d
|
|
2581
|
-
}, n, s), { focusProps: h, isFocused: g, isFocusVisible:
|
|
2582
|
-
b ? w = v === "rtl" ? "right" : "left" :
|
|
2583
|
-
let k =
|
|
2584
|
-
|
|
2581
|
+
}, n, s), { focusProps: h, isFocused: g, isFocusVisible: $ } = me(), { hoverProps: m, isHovered: D } = ke(e), b = n.getColumnMinWidth(c.key) >= n.getColumnWidth(c.key), y = n.getColumnMaxWidth(c.key) <= n.getColumnWidth(c.key), { direction: v } = be(), w = "both";
|
|
2582
|
+
b ? w = v === "rtl" ? "right" : "left" : y ? w = v === "rtl" ? "left" : "right" : w = "both";
|
|
2583
|
+
let k = G(l), [P, B] = Z("");
|
|
2584
|
+
de(() => {
|
|
2585
2585
|
if (!k.current) return;
|
|
2586
2586
|
let F = window.getComputedStyle(k.current);
|
|
2587
|
-
|
|
2587
|
+
B(F.cursor);
|
|
2588
2588
|
}, [
|
|
2589
2589
|
k,
|
|
2590
2590
|
w
|
|
2591
2591
|
]);
|
|
2592
|
-
let E =
|
|
2592
|
+
let E = ae({
|
|
2593
2593
|
...e,
|
|
2594
2594
|
defaultClassName: "react-aria-ColumnResizer",
|
|
2595
2595
|
values: {
|
|
2596
2596
|
isFocused: g,
|
|
2597
|
-
isFocusVisible:
|
|
2597
|
+
isFocusVisible: $,
|
|
2598
2598
|
isResizing: f,
|
|
2599
2599
|
isHovered: D,
|
|
2600
2600
|
resizableDirection: w
|
|
2601
2601
|
}
|
|
2602
|
-
}), [
|
|
2602
|
+
}), [M, W] = Z(!1), T = (F) => {
|
|
2603
2603
|
F.pointerType === "mouse" && W(!0);
|
|
2604
2604
|
};
|
|
2605
|
-
!f &&
|
|
2606
|
-
let I =
|
|
2605
|
+
!f && M && W(!1);
|
|
2606
|
+
let I = Q(e, {
|
|
2607
2607
|
global: !0
|
|
2608
2608
|
});
|
|
2609
2609
|
return /* @__PURE__ */ S.createElement("div", {
|
|
@@ -2614,13 +2614,13 @@ const io = /* @__PURE__ */ Dt(vl, (t, e, l) => {
|
|
|
2614
2614
|
}, m),
|
|
2615
2615
|
"data-hovered": D || void 0,
|
|
2616
2616
|
"data-focused": g || void 0,
|
|
2617
|
-
"data-focus-visible":
|
|
2617
|
+
"data-focus-visible": $ || void 0,
|
|
2618
2618
|
"data-resizing": f || void 0,
|
|
2619
2619
|
"data-resizable-direction": w
|
|
2620
2620
|
}, E.children, /* @__PURE__ */ S.createElement("input", {
|
|
2621
2621
|
ref: s,
|
|
2622
2622
|
...H(p, h)
|
|
2623
|
-
}), f &&
|
|
2623
|
+
}), f && M && /* @__PURE__ */ Zl.createPortal(/* @__PURE__ */ S.createElement("div", {
|
|
2624
2624
|
style: {
|
|
2625
2625
|
position: "fixed",
|
|
2626
2626
|
top: 0,
|
|
@@ -2631,24 +2631,24 @@ const io = /* @__PURE__ */ Dt(vl, (t, e, l) => {
|
|
|
2631
2631
|
}
|
|
2632
2632
|
}), document.body));
|
|
2633
2633
|
});
|
|
2634
|
-
class
|
|
2634
|
+
class Ze extends Yl {
|
|
2635
2635
|
}
|
|
2636
|
-
|
|
2637
|
-
const
|
|
2638
|
-
let l = R(te), { isVirtualized: n } = R(
|
|
2636
|
+
Ze.type = "tablebody";
|
|
2637
|
+
const co = /* @__PURE__ */ je(Ze, (t, e) => {
|
|
2638
|
+
let l = R(te), { isVirtualized: n } = R(J), o = l.collection, { CollectionBranch: r } = R(J), { dragAndDropHooks: i, dropState: u } = R(ge), c = !!i?.useDroppableCollectionState && !u?.isDisabled;
|
|
2639
2639
|
var d;
|
|
2640
2640
|
let s = c && !!u && ((d = u.isDropTarget({
|
|
2641
2641
|
type: "root"
|
|
2642
2642
|
})) !== null && d !== void 0 ? d : !1), a = o.size === 0, p = {
|
|
2643
2643
|
isDropTarget: s,
|
|
2644
2644
|
isEmpty: a
|
|
2645
|
-
}, f =
|
|
2645
|
+
}, f = ae({
|
|
2646
2646
|
...t,
|
|
2647
2647
|
id: void 0,
|
|
2648
2648
|
children: void 0,
|
|
2649
2649
|
defaultClassName: "react-aria-TableBody",
|
|
2650
2650
|
values: p
|
|
2651
|
-
}), h, g = O("tr"),
|
|
2651
|
+
}), h, g = O("tr"), $ = O("td"), m = o.columnCount;
|
|
2652
2652
|
if (a && t.renderEmptyState && l) {
|
|
2653
2653
|
let v = {}, w = {}, k = {};
|
|
2654
2654
|
n ? (w["aria-colspan"] = m, k = {
|
|
@@ -2657,26 +2657,26 @@ const ao = /* @__PURE__ */ Ve(Ge, (t, e) => {
|
|
|
2657
2657
|
role: "row",
|
|
2658
2658
|
...v,
|
|
2659
2659
|
style: k
|
|
2660
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2660
|
+
}, /* @__PURE__ */ S.createElement($, {
|
|
2661
2661
|
role: "rowheader",
|
|
2662
2662
|
...w,
|
|
2663
2663
|
style: k
|
|
2664
2664
|
}, t.renderEmptyState(p)));
|
|
2665
2665
|
}
|
|
2666
|
-
let { rowGroupProps: D } =
|
|
2666
|
+
let { rowGroupProps: D } = hl(), b = O("tbody"), y = Q(t, {
|
|
2667
2667
|
global: !0
|
|
2668
2668
|
});
|
|
2669
2669
|
return /* @__PURE__ */ S.createElement(b, {
|
|
2670
|
-
...H(
|
|
2670
|
+
...H(y, f, D),
|
|
2671
2671
|
ref: e,
|
|
2672
2672
|
"data-empty": a || void 0
|
|
2673
|
-
}, c && /* @__PURE__ */ S.createElement(
|
|
2673
|
+
}, c && /* @__PURE__ */ S.createElement(go, null), /* @__PURE__ */ S.createElement(r, {
|
|
2674
2674
|
collection: o,
|
|
2675
2675
|
parent: o.body,
|
|
2676
|
-
renderDropIndicator:
|
|
2676
|
+
renderDropIndicator: Wl(i, u)
|
|
2677
2677
|
}), h);
|
|
2678
2678
|
});
|
|
2679
|
-
class
|
|
2679
|
+
class Cl extends Ke {
|
|
2680
2680
|
filter(e, l, n) {
|
|
2681
2681
|
let o = e.getChildren(this.key);
|
|
2682
2682
|
for (let r of o) if (n(r.textValue, r)) {
|
|
@@ -2686,27 +2686,27 @@ class $l extends Be {
|
|
|
2686
2686
|
return null;
|
|
2687
2687
|
}
|
|
2688
2688
|
}
|
|
2689
|
-
|
|
2690
|
-
const
|
|
2691
|
-
let n =
|
|
2689
|
+
Cl.type = "item";
|
|
2690
|
+
const gt = /* @__PURE__ */ je(Cl, (t, e, l) => {
|
|
2691
|
+
let n = G(e), o = R(te), { dragAndDropHooks: r, dragState: i, dropState: u } = R(ge), { isVirtualized: c, CollectionBranch: d } = R(J), { rowProps: s, ...a } = Mn({
|
|
2692
2692
|
node: l,
|
|
2693
2693
|
shouldSelectOnPressUp: !!i,
|
|
2694
2694
|
isVirtualized: c
|
|
2695
|
-
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } =
|
|
2695
|
+
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = me(), { isFocusVisible: g, focusProps: $ } = me({
|
|
2696
2696
|
within: !0
|
|
2697
2697
|
}), { hoverProps: m, isHovered: D } = ke({
|
|
2698
2698
|
isDisabled: !a.allowsSelection && !a.hasAction,
|
|
2699
2699
|
onHoverStart: t.onHoverStart,
|
|
2700
2700
|
onHoverChange: t.onHoverChange,
|
|
2701
2701
|
onHoverEnd: t.onHoverEnd
|
|
2702
|
-
}), { checkboxProps: b } =
|
|
2702
|
+
}), { checkboxProps: b } = In({
|
|
2703
2703
|
key: l.key
|
|
2704
|
-
}, o),
|
|
2705
|
-
i && r && (
|
|
2704
|
+
}, o), y;
|
|
2705
|
+
i && r && (y = r.useDraggableItem({
|
|
2706
2706
|
key: l.key,
|
|
2707
2707
|
hasDragButton: !0
|
|
2708
2708
|
}, i));
|
|
2709
|
-
let v, w =
|
|
2709
|
+
let v, w = A(null), { visuallyHiddenProps: k } = Ne();
|
|
2710
2710
|
u && r && (v = r.useDropIndicator({
|
|
2711
2711
|
target: {
|
|
2712
2712
|
type: "item",
|
|
@@ -2714,12 +2714,12 @@ const pt = /* @__PURE__ */ Ve($l, (t, e, l) => {
|
|
|
2714
2714
|
dropPosition: "on"
|
|
2715
2715
|
}
|
|
2716
2716
|
}, u, w));
|
|
2717
|
-
let P =
|
|
2718
|
-
|
|
2717
|
+
let P = A(null);
|
|
2718
|
+
de(() => {
|
|
2719
2719
|
i && !P.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.');
|
|
2720
2720
|
}, []);
|
|
2721
|
-
let
|
|
2722
|
-
...
|
|
2721
|
+
let B = i && i.isDragging(l.key), { children: E, ...M } = t, W = ae({
|
|
2722
|
+
...M,
|
|
2723
2723
|
id: void 0,
|
|
2724
2724
|
defaultClassName: "react-aria-Row",
|
|
2725
2725
|
values: {
|
|
@@ -2729,12 +2729,12 @@ const pt = /* @__PURE__ */ Ve($l, (t, e, l) => {
|
|
|
2729
2729
|
isFocusVisible: f,
|
|
2730
2730
|
selectionMode: o.selectionManager.selectionMode,
|
|
2731
2731
|
selectionBehavior: o.selectionManager.selectionBehavior,
|
|
2732
|
-
isDragging:
|
|
2732
|
+
isDragging: B,
|
|
2733
2733
|
isDropTarget: v?.isDropTarget,
|
|
2734
2734
|
isFocusVisibleWithin: g,
|
|
2735
2735
|
id: l.key
|
|
2736
2736
|
}
|
|
2737
|
-
}), T = O("tr"), I = O("td"), F =
|
|
2737
|
+
}), T = O("tr"), I = O("td"), F = Q(t, {
|
|
2738
2738
|
global: !0
|
|
2739
2739
|
});
|
|
2740
2740
|
return delete F.id, delete F.onClick, /* @__PURE__ */ S.createElement(S.Fragment, null, v && !v.isHidden && /* @__PURE__ */ S.createElement(T, {
|
|
@@ -2754,7 +2754,7 @@ const pt = /* @__PURE__ */ Ve($l, (t, e, l) => {
|
|
|
2754
2754
|
...v.dropIndicatorProps,
|
|
2755
2755
|
ref: w
|
|
2756
2756
|
}))), /* @__PURE__ */ S.createElement(T, {
|
|
2757
|
-
...H(F, W, s, h, m,
|
|
2757
|
+
...H(F, W, s, h, m, y?.dragProps, $),
|
|
2758
2758
|
ref: n,
|
|
2759
2759
|
"data-disabled": a.isDisabled || void 0,
|
|
2760
2760
|
"data-selected": a.isSelected || void 0,
|
|
@@ -2762,28 +2762,28 @@ const pt = /* @__PURE__ */ Ve($l, (t, e, l) => {
|
|
|
2762
2762
|
"data-focused": a.isFocused || void 0,
|
|
2763
2763
|
"data-focus-visible": f || void 0,
|
|
2764
2764
|
"data-pressed": a.isPressed || void 0,
|
|
2765
|
-
"data-dragging":
|
|
2765
|
+
"data-dragging": B || void 0,
|
|
2766
2766
|
"data-drop-target": v?.isDropTarget || void 0,
|
|
2767
2767
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
2768
2768
|
"data-focus-visible-within": g || void 0
|
|
2769
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2769
|
+
}, /* @__PURE__ */ S.createElement(Be, {
|
|
2770
2770
|
values: [
|
|
2771
2771
|
[
|
|
2772
|
-
|
|
2772
|
+
$t,
|
|
2773
2773
|
{
|
|
2774
2774
|
slots: {
|
|
2775
|
-
[
|
|
2775
|
+
[st]: {},
|
|
2776
2776
|
selection: b
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
2779
|
],
|
|
2780
2780
|
[
|
|
2781
|
-
|
|
2781
|
+
yt,
|
|
2782
2782
|
{
|
|
2783
2783
|
slots: {
|
|
2784
|
-
[
|
|
2784
|
+
[st]: {},
|
|
2785
2785
|
drag: {
|
|
2786
|
-
|
|
2786
|
+
...y?.dragButtonProps,
|
|
2787
2787
|
ref: P,
|
|
2788
2788
|
style: {
|
|
2789
2789
|
pointerEvents: "none"
|
|
@@ -2808,17 +2808,17 @@ const pt = /* @__PURE__ */ Ve($l, (t, e, l) => {
|
|
|
2808
2808
|
idScope: t.id
|
|
2809
2809
|
}, t.children);
|
|
2810
2810
|
});
|
|
2811
|
-
class
|
|
2811
|
+
class wl extends Ke {
|
|
2812
2812
|
}
|
|
2813
|
-
|
|
2814
|
-
const
|
|
2815
|
-
let n =
|
|
2813
|
+
wl.type = "cell";
|
|
2814
|
+
const fo = /* @__PURE__ */ St(wl, (t, e, l) => {
|
|
2815
|
+
let n = G(e), o = R(te), { dragState: r } = R(ge), { isVirtualized: i } = R(J);
|
|
2816
2816
|
l.column = o.collection.columns[l.index];
|
|
2817
|
-
let { gridCellProps: u, isPressed: c } =
|
|
2817
|
+
let { gridCellProps: u, isPressed: c } = Tn({
|
|
2818
2818
|
node: l,
|
|
2819
2819
|
shouldSelectOnPressUp: !!r,
|
|
2820
2820
|
isVirtualized: i
|
|
2821
|
-
}, o, n), { isFocused: d, isFocusVisible: s, focusProps: a } =
|
|
2821
|
+
}, o, n), { isFocused: d, isFocusVisible: s, focusProps: a } = me(), { hoverProps: p, isHovered: f } = ke({}), h = ae({
|
|
2822
2822
|
...t,
|
|
2823
2823
|
id: void 0,
|
|
2824
2824
|
defaultClassName: "react-aria-Cell",
|
|
@@ -2829,23 +2829,23 @@ const so = /* @__PURE__ */ Dt(xl, (t, e, l) => {
|
|
|
2829
2829
|
isHovered: f,
|
|
2830
2830
|
id: l.key
|
|
2831
2831
|
}
|
|
2832
|
-
}), g = O("td"),
|
|
2832
|
+
}), g = O("td"), $ = Q(t, {
|
|
2833
2833
|
global: !0
|
|
2834
2834
|
});
|
|
2835
|
-
return delete
|
|
2836
|
-
...H(
|
|
2835
|
+
return delete $.id, /* @__PURE__ */ S.createElement(g, {
|
|
2836
|
+
...H($, h, u, a, p),
|
|
2837
2837
|
ref: n,
|
|
2838
2838
|
"data-focused": d || void 0,
|
|
2839
2839
|
"data-focus-visible": s || void 0,
|
|
2840
2840
|
"data-pressed": c || void 0
|
|
2841
|
-
}, /* @__PURE__ */ S.createElement(
|
|
2842
|
-
value:
|
|
2841
|
+
}, /* @__PURE__ */ S.createElement(J.Provider, {
|
|
2842
|
+
value: Ct
|
|
2843
2843
|
}, h.children));
|
|
2844
2844
|
});
|
|
2845
|
-
function
|
|
2846
|
-
e =
|
|
2847
|
-
let { dragAndDropHooks: l, dropState: n } = R(
|
|
2848
|
-
return i ? null : /* @__PURE__ */ S.createElement(
|
|
2845
|
+
function po(t, e) {
|
|
2846
|
+
e = G(e);
|
|
2847
|
+
let { dragAndDropHooks: l, dropState: n } = R(ge), o = A(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: u } = l.useDropIndicator(t, n, o);
|
|
2848
|
+
return i ? null : /* @__PURE__ */ S.createElement(mo, {
|
|
2849
2849
|
...t,
|
|
2850
2850
|
dropIndicatorProps: r,
|
|
2851
2851
|
isDropTarget: u,
|
|
@@ -2853,8 +2853,8 @@ function co(t, e) {
|
|
|
2853
2853
|
ref: e
|
|
2854
2854
|
});
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2857
|
-
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = R(te), { visuallyHiddenProps: u } =
|
|
2856
|
+
function ho(t, e) {
|
|
2857
|
+
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = R(te), { visuallyHiddenProps: u } = Ne(), c = ae({
|
|
2858
2858
|
...r,
|
|
2859
2859
|
defaultClassName: "react-aria-DropIndicator",
|
|
2860
2860
|
values: {
|
|
@@ -2862,7 +2862,7 @@ function fo(t, e) {
|
|
|
2862
2862
|
}
|
|
2863
2863
|
}), d = O("tr"), s = O("td");
|
|
2864
2864
|
return /* @__PURE__ */ S.createElement(d, {
|
|
2865
|
-
...
|
|
2865
|
+
...Q(t, {
|
|
2866
2866
|
global: !0
|
|
2867
2867
|
}),
|
|
2868
2868
|
...c,
|
|
@@ -2882,15 +2882,15 @@ function fo(t, e) {
|
|
|
2882
2882
|
ref: o
|
|
2883
2883
|
}), c.children));
|
|
2884
2884
|
}
|
|
2885
|
-
const
|
|
2886
|
-
function
|
|
2887
|
-
let t = R(te), { dragAndDropHooks: e, dropState: l } = R(
|
|
2885
|
+
const mo = /* @__PURE__ */ Ae(ho);
|
|
2886
|
+
function go() {
|
|
2887
|
+
let t = R(te), { dragAndDropHooks: e, dropState: l } = R(ge), n = A(null), { dropIndicatorProps: o } = e.useDropIndicator({
|
|
2888
2888
|
target: {
|
|
2889
2889
|
type: "root"
|
|
2890
2890
|
}
|
|
2891
2891
|
}, l, n), r = l.isDropTarget({
|
|
2892
2892
|
type: "root"
|
|
2893
|
-
}), { visuallyHiddenProps: i } =
|
|
2893
|
+
}), { visuallyHiddenProps: i } = Ne(), u = O("tr"), c = O("td");
|
|
2894
2894
|
return !r && o["aria-hidden"] ? null : /* @__PURE__ */ S.createElement(u, {
|
|
2895
2895
|
role: "row",
|
|
2896
2896
|
"aria-hidden": o["aria-hidden"],
|
|
@@ -2910,44 +2910,44 @@ function ho() {
|
|
|
2910
2910
|
ref: n
|
|
2911
2911
|
})));
|
|
2912
2912
|
}
|
|
2913
|
-
const { withProvider:
|
|
2914
|
-
recipe:
|
|
2915
|
-
}),
|
|
2913
|
+
const { withProvider: bo, withContext: Y } = /* @__PURE__ */ Al({
|
|
2914
|
+
recipe: pn
|
|
2915
|
+
}), vo = /* @__PURE__ */ bo(
|
|
2916
2916
|
"div",
|
|
2917
2917
|
"root"
|
|
2918
|
-
),
|
|
2919
|
-
|
|
2920
|
-
const
|
|
2918
|
+
), yo = /* @__PURE__ */ Y("table", "table"), $o = /* @__PURE__ */ Y("tr", "header"), xo = /* @__PURE__ */ Y("th", "column"), Do = /* @__PURE__ */ Y("tbody", "body"), bt = /* @__PURE__ */ Y("tr", "row"), Co = /* @__PURE__ */ Y("td", "cell"), wo = /* @__PURE__ */ Y("footer", "footer"), So = /* @__PURE__ */ Y("td", "selectionCell"), Sl = /* @__PURE__ */ Y("button", "expandButton"), ko = /* @__PURE__ */ Y("span", "nestedIcon"), Eo = /* @__PURE__ */ Y("span", "headerSortIcon"), zo = /* @__PURE__ */ Y("div", "columnResizer"), Te = /* @__PURE__ */ ce(null);
|
|
2919
|
+
Te.displayName = "DataTableContext";
|
|
2920
|
+
const $e = () => {
|
|
2921
2921
|
const t = R(
|
|
2922
|
-
|
|
2922
|
+
Te
|
|
2923
2923
|
);
|
|
2924
2924
|
if (!t)
|
|
2925
2925
|
throw new Error("DataTable components must be used within DataTable.Root");
|
|
2926
2926
|
return t;
|
|
2927
|
-
},
|
|
2927
|
+
}, he = ({
|
|
2928
2928
|
ref: t,
|
|
2929
2929
|
children: e,
|
|
2930
2930
|
isDisabled: l,
|
|
2931
2931
|
...n
|
|
2932
2932
|
}) => {
|
|
2933
|
-
const [o, r] =
|
|
2934
|
-
return /* @__PURE__ */ C(
|
|
2933
|
+
const [o, r] = ye(n);
|
|
2934
|
+
return /* @__PURE__ */ C(Co, { asChild: !0, ...o, children: /* @__PURE__ */ C(fo, { ref: t, ...r, children: (i) => /* @__PURE__ */ C(yt.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) }) });
|
|
2935
2935
|
};
|
|
2936
|
-
function
|
|
2936
|
+
function He(t) {
|
|
2937
2937
|
return t.target?.closest(
|
|
2938
2938
|
'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function Po(t) {
|
|
2942
2942
|
return t.target?.closest(
|
|
2943
2943
|
'[slot="selection"], [data-slot="selection"], [role="checkbox"]'
|
|
2944
2944
|
);
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2947
|
-
const e =
|
|
2946
|
+
function vt(t) {
|
|
2947
|
+
const e = He(t), l = Po(t);
|
|
2948
2948
|
(!e || e && !l) && t.stopPropagation();
|
|
2949
2949
|
}
|
|
2950
|
-
const
|
|
2950
|
+
const Je = ({
|
|
2951
2951
|
row: t,
|
|
2952
2952
|
ref: e,
|
|
2953
2953
|
...l
|
|
@@ -2966,27 +2966,27 @@ const qe = ({
|
|
|
2966
2966
|
onRowAction: f,
|
|
2967
2967
|
pinnedRows: h,
|
|
2968
2968
|
togglePin: g,
|
|
2969
|
-
sortedRows:
|
|
2970
|
-
} =
|
|
2969
|
+
sortedRows: $
|
|
2970
|
+
} = $e(), [m, D] = ye(l), y = ((x) => c ? c === "all" || t.isDisabled ? !0 : c.has(x) : !1)(t.id), v = A(null), w = j(
|
|
2971
2971
|
(x) => {
|
|
2972
2972
|
if (!p) return;
|
|
2973
|
-
const z =
|
|
2974
|
-
!z && !
|
|
2975
|
-
|
|
2973
|
+
const z = He(x), K = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
|
|
2974
|
+
!z && !K && (v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
2975
|
+
y ? f && f(t, "click") : p(t), v.current = null;
|
|
2976
2976
|
}, 300));
|
|
2977
2977
|
},
|
|
2978
|
-
[p, f, t,
|
|
2978
|
+
[p, f, t, y]
|
|
2979
2979
|
), k = j((x) => {
|
|
2980
|
-
|
|
2981
|
-
}, []), P =
|
|
2980
|
+
He(x) || v.current && (window.clearTimeout(v.current), v.current = null);
|
|
2981
|
+
}, []), P = A({
|
|
2982
2982
|
count: 0,
|
|
2983
2983
|
node: void 0
|
|
2984
|
-
}),
|
|
2984
|
+
}), B = j(
|
|
2985
2985
|
(x) => {
|
|
2986
2986
|
P.current.count += 1, P.current.count === 1 && x && (P.current.node = x, x.addEventListener(
|
|
2987
2987
|
// Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
|
|
2988
2988
|
"pointerdown",
|
|
2989
|
-
|
|
2989
|
+
vt,
|
|
2990
2990
|
{
|
|
2991
2991
|
capture: !0
|
|
2992
2992
|
}
|
|
@@ -2996,36 +2996,36 @@ const qe = ({
|
|
|
2996
2996
|
},
|
|
2997
2997
|
[w, k]
|
|
2998
2998
|
);
|
|
2999
|
-
|
|
2999
|
+
de(() => () => {
|
|
3000
3000
|
v.current && (window.clearTimeout(v.current), v.current = null), P.current.count >= 1 && P.current.node && (P.current.node.removeEventListener(
|
|
3001
3001
|
"pointerdown",
|
|
3002
|
-
|
|
3002
|
+
vt
|
|
3003
3003
|
), P.current.node.removeEventListener("mouseup", w), P.current.node.removeEventListener(
|
|
3004
3004
|
"dblclick",
|
|
3005
3005
|
k
|
|
3006
3006
|
));
|
|
3007
3007
|
}, [w, k]);
|
|
3008
|
-
const E =
|
|
3009
|
-
return /* @__PURE__ */
|
|
3010
|
-
/* @__PURE__ */ C(
|
|
3011
|
-
|
|
3008
|
+
const E = we(e, B), { selectionBehavior: M } = $l(), W = u && t[u] && (Array.isArray(t[u]) ? t[u].length > 0 : !0), T = r[t.id], I = h.has(t.id), F = $.filter((x) => h.has(x.id)).map((x) => x.id), U = I ? F.indexOf(t.id) : -1, L = U === 0, _ = U === F.length - 1, ee = F.length === 1 && I, le = () => I ? ee ? "data-table-row-pinned-single" : L ? "data-table-row-pinned-first" : _ ? "data-table-row-pinned-last" : "" : "", ne = (x) => o && typeof x == "string" ? /* @__PURE__ */ C(hn, { query: o, ignoreCase: !0, matchAll: !0, children: x }) : x;
|
|
3009
|
+
return /* @__PURE__ */ ue(Rl, { children: [
|
|
3010
|
+
/* @__PURE__ */ C(bt, { asChild: !0, ...m, children: /* @__PURE__ */ ue(
|
|
3011
|
+
gt,
|
|
3012
3012
|
{
|
|
3013
|
-
isDisabled:
|
|
3013
|
+
isDisabled: y,
|
|
3014
3014
|
columns: n,
|
|
3015
3015
|
ref: E,
|
|
3016
3016
|
id: t.id,
|
|
3017
|
-
className: `data-table-row ${
|
|
3017
|
+
className: `data-table-row ${y ? "data-table-row-disabled" : ""} ${I ? `data-table-row-pinned ${le()}` : ""}`,
|
|
3018
3018
|
...D,
|
|
3019
3019
|
dependencies: [T, o, a],
|
|
3020
3020
|
children: [
|
|
3021
|
-
|
|
3022
|
-
|
|
3021
|
+
M === "toggle" && /* @__PURE__ */ C(
|
|
3022
|
+
he,
|
|
3023
3023
|
{
|
|
3024
3024
|
className: "data-table-sticky-cell",
|
|
3025
3025
|
"data-slot": "selection",
|
|
3026
|
-
isDisabled:
|
|
3026
|
+
isDisabled: y,
|
|
3027
3027
|
children: /* @__PURE__ */ C(
|
|
3028
|
-
|
|
3028
|
+
Ce,
|
|
3029
3029
|
{
|
|
3030
3030
|
display: "flex",
|
|
3031
3031
|
alignItems: "center",
|
|
@@ -3033,7 +3033,7 @@ const qe = ({
|
|
|
3033
3033
|
w: "100%",
|
|
3034
3034
|
h: "100%",
|
|
3035
3035
|
children: /* @__PURE__ */ C(
|
|
3036
|
-
|
|
3036
|
+
zt,
|
|
3037
3037
|
{
|
|
3038
3038
|
name: "select-row",
|
|
3039
3039
|
slot: "selection",
|
|
@@ -3045,13 +3045,13 @@ const qe = ({
|
|
|
3045
3045
|
}
|
|
3046
3046
|
),
|
|
3047
3047
|
d && /* @__PURE__ */ C(
|
|
3048
|
-
|
|
3048
|
+
he,
|
|
3049
3049
|
{
|
|
3050
3050
|
className: "data-table-sticky-cell",
|
|
3051
3051
|
"data-slot": "expand",
|
|
3052
|
-
isDisabled:
|
|
3052
|
+
isDisabled: y,
|
|
3053
3053
|
children: W ? /* @__PURE__ */ C(
|
|
3054
|
-
|
|
3054
|
+
Sl,
|
|
3055
3055
|
{
|
|
3056
3056
|
w: "100%",
|
|
3057
3057
|
h: "100%",
|
|
@@ -3060,15 +3060,15 @@ const qe = ({
|
|
|
3060
3060
|
onClick: (x) => {
|
|
3061
3061
|
x.stopPropagation(), i(t.id);
|
|
3062
3062
|
},
|
|
3063
|
-
children: T ? /* @__PURE__ */ C(
|
|
3063
|
+
children: T ? /* @__PURE__ */ C(gn, {}) : /* @__PURE__ */ C(bn, {})
|
|
3064
3064
|
}
|
|
3065
3065
|
) : null
|
|
3066
3066
|
}
|
|
3067
3067
|
),
|
|
3068
3068
|
/* @__PURE__ */ C(Se, { items: n, children: (x) => {
|
|
3069
3069
|
const z = x.accessor(t);
|
|
3070
|
-
return /* @__PURE__ */ C(
|
|
3071
|
-
|
|
3070
|
+
return /* @__PURE__ */ C(he, { isDisabled: y, children: /* @__PURE__ */ C(
|
|
3071
|
+
Ce,
|
|
3072
3072
|
{
|
|
3073
3073
|
className: a ? "truncated-cell" : "",
|
|
3074
3074
|
display: "inline-block",
|
|
@@ -3077,28 +3077,28 @@ const qe = ({
|
|
|
3077
3077
|
maxW: "100%",
|
|
3078
3078
|
position: "relative",
|
|
3079
3079
|
overflow: "hidden",
|
|
3080
|
-
cursor:
|
|
3080
|
+
cursor: y ? "not-allowed" : "text",
|
|
3081
3081
|
children: x.render ? x.render({
|
|
3082
|
-
value:
|
|
3082
|
+
value: ne(z),
|
|
3083
3083
|
row: t,
|
|
3084
3084
|
column: x
|
|
3085
|
-
}) :
|
|
3085
|
+
}) : ne(z)
|
|
3086
3086
|
}
|
|
3087
3087
|
) }, x.id);
|
|
3088
3088
|
} }),
|
|
3089
3089
|
/* @__PURE__ */ C(
|
|
3090
|
-
|
|
3090
|
+
he,
|
|
3091
3091
|
{
|
|
3092
3092
|
className: "data-table-sticky-cell",
|
|
3093
3093
|
"data-slot": "pin-row-cell",
|
|
3094
|
-
isDisabled:
|
|
3094
|
+
isDisabled: y,
|
|
3095
3095
|
children: /* @__PURE__ */ C(
|
|
3096
|
-
|
|
3096
|
+
Ce,
|
|
3097
3097
|
{
|
|
3098
3098
|
"data-slot": I ? "nimbus-table-cell-pin-button-pinned" : "nimbus-table-cell-pin-button",
|
|
3099
|
-
children: /* @__PURE__ */
|
|
3099
|
+
children: /* @__PURE__ */ ue(ht.Root, { children: [
|
|
3100
3100
|
/* @__PURE__ */ C(
|
|
3101
|
-
|
|
3101
|
+
mn,
|
|
3102
3102
|
{
|
|
3103
3103
|
size: "2xs",
|
|
3104
3104
|
variant: "ghost",
|
|
@@ -3107,11 +3107,11 @@ const qe = ({
|
|
|
3107
3107
|
onClick: (x) => {
|
|
3108
3108
|
x.stopPropagation(), g(t.id);
|
|
3109
3109
|
},
|
|
3110
|
-
children: /* @__PURE__ */ C(
|
|
3110
|
+
children: /* @__PURE__ */ C(vn, {})
|
|
3111
3111
|
},
|
|
3112
3112
|
"pin-btn"
|
|
3113
3113
|
),
|
|
3114
|
-
/* @__PURE__ */ C(
|
|
3114
|
+
/* @__PURE__ */ C(ht.Content, { placement: "top", children: I ? "Unpin row" : "Pin row" })
|
|
3115
3115
|
] })
|
|
3116
3116
|
}
|
|
3117
3117
|
)
|
|
@@ -3120,15 +3120,15 @@ const qe = ({
|
|
|
3120
3120
|
]
|
|
3121
3121
|
}
|
|
3122
3122
|
) }),
|
|
3123
|
-
d && /* @__PURE__ */ C(
|
|
3124
|
-
|
|
3123
|
+
d && /* @__PURE__ */ C(bt, { ...m, asChild: !0, children: /* @__PURE__ */ C(
|
|
3124
|
+
gt,
|
|
3125
3125
|
{
|
|
3126
3126
|
"data-nested-row-expanded": T ? "true" : "false",
|
|
3127
3127
|
dependencies: [T],
|
|
3128
3128
|
children: /* @__PURE__ */ C(
|
|
3129
|
-
|
|
3129
|
+
he,
|
|
3130
3130
|
{
|
|
3131
|
-
isDisabled:
|
|
3131
|
+
isDisabled: y,
|
|
3132
3132
|
colSpan: n.length + (d ? 1 : 0) + (s ? 1 : 0) + 1,
|
|
3133
3133
|
"data-nested-cell": !0,
|
|
3134
3134
|
children: T ? u && Array.isArray(t[u]) ? `${t[u].length} nested items` : u && t[u] : null
|
|
@@ -3138,26 +3138,26 @@ const qe = ({
|
|
|
3138
3138
|
) })
|
|
3139
3139
|
] });
|
|
3140
3140
|
};
|
|
3141
|
-
|
|
3142
|
-
const
|
|
3141
|
+
Je.displayName = "DataTable.Row";
|
|
3142
|
+
const Ro = () => /* @__PURE__ */ C(Ce, { w: "100%", p: "200", children: "No Data" }), Qe = ({
|
|
3143
3143
|
ref: t,
|
|
3144
3144
|
...e
|
|
3145
3145
|
}) => {
|
|
3146
|
-
const { sortedRows: l, activeColumns: n, renderEmptyState: o } =
|
|
3147
|
-
return /* @__PURE__ */ C(
|
|
3148
|
-
|
|
3146
|
+
const { sortedRows: l, activeColumns: n, renderEmptyState: o } = $e(), [r, i] = ye(e);
|
|
3147
|
+
return /* @__PURE__ */ C(Do, { asChild: !0, ...r, children: /* @__PURE__ */ C(
|
|
3148
|
+
co,
|
|
3149
3149
|
{
|
|
3150
3150
|
ref: t,
|
|
3151
3151
|
items: l,
|
|
3152
3152
|
dependencies: [n],
|
|
3153
|
-
renderEmptyState: o ??
|
|
3153
|
+
renderEmptyState: o ?? Ro,
|
|
3154
3154
|
...i,
|
|
3155
|
-
children: (u) => /* @__PURE__ */ C(
|
|
3155
|
+
children: (u) => /* @__PURE__ */ C(Je, { row: u }, u.id)
|
|
3156
3156
|
}
|
|
3157
3157
|
) });
|
|
3158
3158
|
};
|
|
3159
|
-
|
|
3160
|
-
const
|
|
3159
|
+
Qe.displayName = "DataTable.Body";
|
|
3160
|
+
const xe = ({
|
|
3161
3161
|
children: t,
|
|
3162
3162
|
ref: e,
|
|
3163
3163
|
column: l,
|
|
@@ -3167,9 +3167,9 @@ const De = ({
|
|
|
3167
3167
|
maxWidth: i,
|
|
3168
3168
|
...u
|
|
3169
3169
|
}) => {
|
|
3170
|
-
const { sortDescriptor: c, isResizable: d } =
|
|
3171
|
-
return /* @__PURE__ */ C(
|
|
3172
|
-
|
|
3170
|
+
const { sortDescriptor: c, isResizable: d } = $e(), s = c?.column === l?.id, a = l?.isResizable !== void 0 ? l?.isResizable : d, [p, f] = ye(u);
|
|
3171
|
+
return /* @__PURE__ */ C(xo, { ...p, asChild: !0, children: /* @__PURE__ */ C(
|
|
3172
|
+
ao,
|
|
3173
3173
|
{
|
|
3174
3174
|
width: o,
|
|
3175
3175
|
minWidth: r,
|
|
@@ -3178,14 +3178,14 @@ const De = ({
|
|
|
3178
3178
|
...f,
|
|
3179
3179
|
children: (h) => {
|
|
3180
3180
|
const { allowsSorting: g } = h;
|
|
3181
|
-
return n ? typeof t == "function" ? t(h) : t : /* @__PURE__ */
|
|
3182
|
-
|
|
3181
|
+
return n ? typeof t == "function" ? t(h) : t : /* @__PURE__ */ ue(
|
|
3182
|
+
xn,
|
|
3183
3183
|
{
|
|
3184
3184
|
tabIndex: a || g ? -1 : 0,
|
|
3185
3185
|
className: "nimbus-data-table__column-container",
|
|
3186
3186
|
children: [
|
|
3187
3187
|
/* @__PURE__ */ C(
|
|
3188
|
-
|
|
3188
|
+
$n,
|
|
3189
3189
|
{
|
|
3190
3190
|
orientation: "vertical",
|
|
3191
3191
|
className: "data-table-column-divider"
|
|
@@ -3193,18 +3193,18 @@ const De = ({
|
|
|
3193
3193
|
),
|
|
3194
3194
|
typeof t == "function" ? t(h) : t,
|
|
3195
3195
|
g && /* @__PURE__ */ C(
|
|
3196
|
-
|
|
3196
|
+
Eo,
|
|
3197
3197
|
{
|
|
3198
3198
|
"aria-hidden": "true",
|
|
3199
3199
|
"data-sort-active": s,
|
|
3200
3200
|
"data-sort-direction": s ? c?.direction : "none",
|
|
3201
|
-
children: /* @__PURE__ */ C(
|
|
3201
|
+
children: /* @__PURE__ */ C(yn, {})
|
|
3202
3202
|
}
|
|
3203
3203
|
),
|
|
3204
|
-
a && /* @__PURE__ */ C(
|
|
3205
|
-
|
|
3204
|
+
a && /* @__PURE__ */ C(so, { "aria-label": "Resize column", children: ({ isResizing: $, isFocused: m, isHovered: D }) => /* @__PURE__ */ C(
|
|
3205
|
+
zo,
|
|
3206
3206
|
{
|
|
3207
|
-
"data-resizing":
|
|
3207
|
+
"data-resizing": $,
|
|
3208
3208
|
"data-focused": m,
|
|
3209
3209
|
"data-hovered": D
|
|
3210
3210
|
}
|
|
@@ -3215,19 +3215,22 @@ const De = ({
|
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
3217
3217
|
) });
|
|
3218
|
-
},
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
)
|
|
3223
|
-
|
|
3224
|
-
|
|
3218
|
+
}, _e = function({
|
|
3219
|
+
ref: e,
|
|
3220
|
+
children: l,
|
|
3221
|
+
...n
|
|
3222
|
+
}) {
|
|
3223
|
+
const o = A(null), r = G(we(o, e));
|
|
3224
|
+
return /* @__PURE__ */ C(wo, { ref: r, ...n, children: l });
|
|
3225
|
+
};
|
|
3226
|
+
_e.displayName = "DataTable.Footer";
|
|
3227
|
+
const et = ({
|
|
3225
3228
|
ref: t,
|
|
3226
3229
|
...e
|
|
3227
3230
|
}) => {
|
|
3228
|
-
const { activeColumns: l, allowsSorting: n, maxHeight: o, showExpandColumn: r } =
|
|
3229
|
-
return /* @__PURE__ */ C(
|
|
3230
|
-
|
|
3231
|
+
const { activeColumns: l, allowsSorting: n, maxHeight: o, showExpandColumn: r } = $e(), { selectionBehavior: i, selectionMode: u } = $l(), [c, d] = ye(e);
|
|
3232
|
+
return /* @__PURE__ */ C($o, { ...c, asChild: !0, children: /* @__PURE__ */ ue(
|
|
3233
|
+
io,
|
|
3231
3234
|
{
|
|
3232
3235
|
ref: t,
|
|
3233
3236
|
className: "data-table-header",
|
|
@@ -3236,7 +3239,7 @@ const Qe = ({
|
|
|
3236
3239
|
...d,
|
|
3237
3240
|
children: [
|
|
3238
3241
|
i === "toggle" && /* @__PURE__ */ C(
|
|
3239
|
-
|
|
3242
|
+
xe,
|
|
3240
3243
|
{
|
|
3241
3244
|
id: "selection",
|
|
3242
3245
|
className: "selection-column-header",
|
|
@@ -3244,11 +3247,11 @@ const Qe = ({
|
|
|
3244
3247
|
minWidth: 72,
|
|
3245
3248
|
allowsSorting: !1,
|
|
3246
3249
|
isInternalColumn: !0,
|
|
3247
|
-
children: u === "multiple" && /* @__PURE__ */ C(
|
|
3250
|
+
children: u === "multiple" && /* @__PURE__ */ C(zt, { slot: "selection" })
|
|
3248
3251
|
}
|
|
3249
3252
|
),
|
|
3250
3253
|
r && /* @__PURE__ */ C(
|
|
3251
|
-
|
|
3254
|
+
xe,
|
|
3252
3255
|
{
|
|
3253
3256
|
className: "expand-column-header",
|
|
3254
3257
|
maxWidth: i === "toggle" ? 24 : 72,
|
|
@@ -3256,11 +3259,11 @@ const Qe = ({
|
|
|
3256
3259
|
allowsSorting: !1,
|
|
3257
3260
|
"aria-label": "Expand rows",
|
|
3258
3261
|
isInternalColumn: !0,
|
|
3259
|
-
children: /* @__PURE__ */ C(
|
|
3262
|
+
children: /* @__PURE__ */ C(pt, { children: "Expand rows" })
|
|
3260
3263
|
}
|
|
3261
3264
|
),
|
|
3262
|
-
/* @__PURE__ */ C(Se, { items: l, children: (s) => /* @__PURE__ */
|
|
3263
|
-
|
|
3265
|
+
/* @__PURE__ */ C(Se, { items: l, children: (s) => /* @__PURE__ */ ue(
|
|
3266
|
+
xe,
|
|
3264
3267
|
{
|
|
3265
3268
|
allowsSorting: (
|
|
3266
3269
|
// use column.isSortable if defined, and fallback to allowsSorting if not
|
|
@@ -3274,12 +3277,12 @@ const Qe = ({
|
|
|
3274
3277
|
column: s,
|
|
3275
3278
|
children: [
|
|
3276
3279
|
/* @__PURE__ */ C("span", { "data-multiline-header": !0, children: s.header }),
|
|
3277
|
-
s.headerIcon && /* @__PURE__ */ C(
|
|
3280
|
+
s.headerIcon && /* @__PURE__ */ C(Ce, { as: "span", ml: "200", children: s.headerIcon })
|
|
3278
3281
|
]
|
|
3279
3282
|
}
|
|
3280
3283
|
) }),
|
|
3281
3284
|
/* @__PURE__ */ C(
|
|
3282
|
-
|
|
3285
|
+
xe,
|
|
3283
3286
|
{
|
|
3284
3287
|
className: "pin-rows-column-header",
|
|
3285
3288
|
id: "pin-rows",
|
|
@@ -3288,15 +3291,15 @@ const Qe = ({
|
|
|
3288
3291
|
allowsSorting: !1,
|
|
3289
3292
|
isInternalColumn: !0,
|
|
3290
3293
|
"aria-label": "Pin rows",
|
|
3291
|
-
children: /* @__PURE__ */ C(
|
|
3294
|
+
children: /* @__PURE__ */ C(pt, { children: "Pin rows" })
|
|
3292
3295
|
}
|
|
3293
3296
|
)
|
|
3294
3297
|
]
|
|
3295
3298
|
}
|
|
3296
3299
|
) });
|
|
3297
3300
|
};
|
|
3298
|
-
|
|
3299
|
-
function
|
|
3301
|
+
et.displayName = "DataTable.Header";
|
|
3302
|
+
function kl(t, e, l, n) {
|
|
3300
3303
|
if (!e) return t;
|
|
3301
3304
|
const o = e.toLowerCase();
|
|
3302
3305
|
return t.map((r) => {
|
|
@@ -3307,7 +3310,7 @@ function Cl(t, e, l, n) {
|
|
|
3307
3310
|
if (n && r[n]) {
|
|
3308
3311
|
let u = r[n];
|
|
3309
3312
|
if (Array.isArray(r[n])) {
|
|
3310
|
-
if (u =
|
|
3313
|
+
if (u = kl(
|
|
3311
3314
|
r[n],
|
|
3312
3315
|
e,
|
|
3313
3316
|
l,
|
|
@@ -3321,7 +3324,7 @@ function Cl(t, e, l, n) {
|
|
|
3321
3324
|
return i ? r : null;
|
|
3322
3325
|
}).filter(Boolean);
|
|
3323
3326
|
}
|
|
3324
|
-
function
|
|
3327
|
+
function El(t, e, l, n, o) {
|
|
3325
3328
|
const r = [], i = [];
|
|
3326
3329
|
t.forEach((d) => {
|
|
3327
3330
|
o?.has(d.id) ? r.push(d) : i.push(d);
|
|
@@ -3340,7 +3343,7 @@ function wl(t, e, l, n, o) {
|
|
|
3340
3343
|
}
|
|
3341
3344
|
return [...r, ...u].map((d) => !n || !d[n] ? d : {
|
|
3342
3345
|
...d,
|
|
3343
|
-
[n]: Array.isArray(d[n]) ?
|
|
3346
|
+
[n]: Array.isArray(d[n]) ? El(
|
|
3344
3347
|
d[n],
|
|
3345
3348
|
e,
|
|
3346
3349
|
l,
|
|
@@ -3349,235 +3352,243 @@ function wl(t, e, l, n, o) {
|
|
|
3349
3352
|
) : d[n]
|
|
3350
3353
|
});
|
|
3351
3354
|
}
|
|
3352
|
-
function
|
|
3355
|
+
function zl(t, e) {
|
|
3353
3356
|
return e ? t.some(
|
|
3354
|
-
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) &&
|
|
3357
|
+
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && zl(l[e], e)
|
|
3355
3358
|
) : !1;
|
|
3356
3359
|
}
|
|
3357
|
-
const
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3360
|
+
const tt = function(e) {
|
|
3361
|
+
const {
|
|
3362
|
+
ref: l,
|
|
3363
|
+
columns: n = [],
|
|
3364
|
+
data: o = [],
|
|
3365
|
+
visibleColumns: r,
|
|
3366
|
+
search: i,
|
|
3367
|
+
sortDescriptor: u,
|
|
3368
|
+
defaultSortDescriptor: c,
|
|
3369
|
+
onSortChange: d,
|
|
3370
|
+
selectedKeys: s,
|
|
3371
|
+
defaultSelectedKeys: a,
|
|
3372
|
+
onSelectionChange: p,
|
|
3373
|
+
selectionMode: f = "none",
|
|
3374
|
+
disallowEmptySelection: h = !1,
|
|
3375
|
+
allowsSorting: g = !1,
|
|
3376
|
+
maxHeight: $,
|
|
3377
|
+
isTruncated: m = !1,
|
|
3378
|
+
density: D = "default",
|
|
3379
|
+
nestedKey: b,
|
|
3380
|
+
onRowClick: y,
|
|
3381
|
+
onDetailsClick: v,
|
|
3382
|
+
disabledKeys: w,
|
|
3383
|
+
onRowAction: k,
|
|
3384
|
+
isResizable: P,
|
|
3385
|
+
pinnedRows: B,
|
|
3386
|
+
defaultPinnedRows: E,
|
|
3387
|
+
onPinToggle: M,
|
|
3388
|
+
children: W,
|
|
3389
|
+
...T
|
|
3390
|
+
} = e, I = A(null), F = G(we(I, l)), [U, L] = Z(c), [_, ee] = Z({}), [le, ne] = Z(
|
|
3391
|
+
() => E || /* @__PURE__ */ new Set()
|
|
3392
|
+
), x = u ?? U, z = B ?? le, K = N(() => n.filter(
|
|
3393
|
+
(se) => (r ? r.includes(se.id) : !0) && se.isVisible !== !1
|
|
3394
|
+
), [n, r]), oe = N(
|
|
3395
|
+
() => i ? kl(o, i, K, b) : o,
|
|
3396
|
+
[o, i, K, b]
|
|
3397
|
+
), Fe = N(
|
|
3398
|
+
() => El(
|
|
3399
|
+
oe,
|
|
3400
|
+
x,
|
|
3401
|
+
K,
|
|
3402
|
+
b,
|
|
3403
|
+
z
|
|
3404
|
+
),
|
|
3405
|
+
[oe, x, K, b, z]
|
|
3406
|
+
), nt = zl(Fe, b), ot = f !== "none", rt = j(
|
|
3407
|
+
(X) => ee((se) => ({ ...se, [X]: !se[X] })),
|
|
3408
|
+
[]
|
|
3409
|
+
), it = j(
|
|
3410
|
+
(X) => {
|
|
3411
|
+
M ? M(X) : ne((se) => {
|
|
3412
|
+
const ze = new Set(se);
|
|
3413
|
+
return ze.has(X) ? ze.delete(X) : ze.add(X), ze;
|
|
3414
|
+
});
|
|
3415
|
+
},
|
|
3416
|
+
[M]
|
|
3417
|
+
), ut = j(
|
|
3418
|
+
(X) => {
|
|
3419
|
+
d ? d(X) : L(X);
|
|
3420
|
+
},
|
|
3421
|
+
[d]
|
|
3422
|
+
), Pl = N(
|
|
3423
|
+
() => ({
|
|
3424
|
+
columns: n,
|
|
3425
|
+
data: o,
|
|
3362
3426
|
visibleColumns: r,
|
|
3363
3427
|
search: i,
|
|
3364
|
-
sortDescriptor:
|
|
3365
|
-
defaultSortDescriptor: c,
|
|
3366
|
-
onSortChange: d,
|
|
3428
|
+
sortDescriptor: x,
|
|
3367
3429
|
selectedKeys: s,
|
|
3368
3430
|
defaultSelectedKeys: a,
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
maxHeight:
|
|
3374
|
-
isTruncated: m
|
|
3375
|
-
density: D
|
|
3431
|
+
expanded: _,
|
|
3432
|
+
allowsSorting: g,
|
|
3433
|
+
selectionMode: f,
|
|
3434
|
+
disallowEmptySelection: h,
|
|
3435
|
+
maxHeight: $,
|
|
3436
|
+
isTruncated: m,
|
|
3437
|
+
density: D,
|
|
3376
3438
|
nestedKey: b,
|
|
3377
|
-
|
|
3439
|
+
onSortChange: ut,
|
|
3440
|
+
onSelectionChange: p,
|
|
3441
|
+
onRowClick: y,
|
|
3378
3442
|
onDetailsClick: v,
|
|
3443
|
+
toggleExpand: rt,
|
|
3444
|
+
activeColumns: K,
|
|
3445
|
+
filteredRows: oe,
|
|
3446
|
+
sortedRows: Fe,
|
|
3447
|
+
showExpandColumn: nt,
|
|
3448
|
+
showSelectionColumn: ot,
|
|
3449
|
+
isResizable: P,
|
|
3379
3450
|
disabledKeys: w,
|
|
3380
3451
|
onRowAction: k,
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
r,
|
|
3457
|
-
i,
|
|
3458
|
-
X,
|
|
3459
|
-
s,
|
|
3460
|
-
a,
|
|
3461
|
-
U,
|
|
3462
|
-
g,
|
|
3463
|
-
f,
|
|
3464
|
-
h,
|
|
3465
|
-
y,
|
|
3466
|
-
m,
|
|
3467
|
-
D,
|
|
3468
|
-
b,
|
|
3469
|
-
ot,
|
|
3470
|
-
p,
|
|
3471
|
-
$,
|
|
3472
|
-
v,
|
|
3473
|
-
lt,
|
|
3474
|
-
x,
|
|
3475
|
-
z,
|
|
3476
|
-
N,
|
|
3477
|
-
fe,
|
|
3478
|
-
tt,
|
|
3479
|
-
P,
|
|
3480
|
-
w,
|
|
3481
|
-
k,
|
|
3482
|
-
G,
|
|
3483
|
-
B,
|
|
3484
|
-
nt
|
|
3485
|
-
]
|
|
3486
|
-
);
|
|
3487
|
-
return /* @__PURE__ */ C(
|
|
3488
|
-
go,
|
|
3489
|
-
{
|
|
3490
|
-
ref: l,
|
|
3491
|
-
truncated: m,
|
|
3492
|
-
density: D,
|
|
3493
|
-
maxH: y,
|
|
3494
|
-
...T,
|
|
3495
|
-
asChild: !0,
|
|
3496
|
-
children: /* @__PURE__ */ C(eo, { children: /* @__PURE__ */ C(
|
|
3497
|
-
Ne.Provider,
|
|
3498
|
-
{
|
|
3499
|
-
value: kl,
|
|
3500
|
-
children: W
|
|
3501
|
-
}
|
|
3502
|
-
) })
|
|
3503
|
-
}
|
|
3504
|
-
);
|
|
3505
|
-
}
|
|
3506
|
-
);
|
|
3507
|
-
_e.displayName = "DataTableRoot";
|
|
3508
|
-
const et = /* @__PURE__ */ ie(function({ children: e, ...l }, n) {
|
|
3509
|
-
const {
|
|
3510
|
-
sortDescriptor: o,
|
|
3511
|
-
onSortChange: r,
|
|
3512
|
-
selectionMode: i,
|
|
3513
|
-
onSelectionChange: u,
|
|
3514
|
-
selectedKeys: c,
|
|
3515
|
-
defaultSelectedKeys: d,
|
|
3516
|
-
disallowEmptySelection: s,
|
|
3517
|
-
disabledKeys: a
|
|
3518
|
-
} = xe(), [p, f] = $e(l), h = o ? {
|
|
3519
|
-
column: o.column,
|
|
3520
|
-
direction: o.direction
|
|
3452
|
+
pinnedRows: z,
|
|
3453
|
+
onPinToggle: M,
|
|
3454
|
+
togglePin: it
|
|
3455
|
+
}),
|
|
3456
|
+
[
|
|
3457
|
+
n,
|
|
3458
|
+
o,
|
|
3459
|
+
r,
|
|
3460
|
+
i,
|
|
3461
|
+
x,
|
|
3462
|
+
s,
|
|
3463
|
+
a,
|
|
3464
|
+
_,
|
|
3465
|
+
g,
|
|
3466
|
+
f,
|
|
3467
|
+
h,
|
|
3468
|
+
$,
|
|
3469
|
+
m,
|
|
3470
|
+
D,
|
|
3471
|
+
b,
|
|
3472
|
+
ut,
|
|
3473
|
+
p,
|
|
3474
|
+
y,
|
|
3475
|
+
v,
|
|
3476
|
+
rt,
|
|
3477
|
+
K,
|
|
3478
|
+
oe,
|
|
3479
|
+
Fe,
|
|
3480
|
+
nt,
|
|
3481
|
+
ot,
|
|
3482
|
+
P,
|
|
3483
|
+
w,
|
|
3484
|
+
k,
|
|
3485
|
+
z,
|
|
3486
|
+
M,
|
|
3487
|
+
it
|
|
3488
|
+
]
|
|
3489
|
+
);
|
|
3490
|
+
return /* @__PURE__ */ C(
|
|
3491
|
+
vo,
|
|
3492
|
+
{
|
|
3493
|
+
ref: F,
|
|
3494
|
+
truncated: m,
|
|
3495
|
+
density: D,
|
|
3496
|
+
maxH: $,
|
|
3497
|
+
...T,
|
|
3498
|
+
asChild: !0,
|
|
3499
|
+
children: /* @__PURE__ */ C(lo, { children: /* @__PURE__ */ C(
|
|
3500
|
+
Te.Provider,
|
|
3501
|
+
{
|
|
3502
|
+
value: Pl,
|
|
3503
|
+
children: W
|
|
3504
|
+
}
|
|
3505
|
+
) })
|
|
3506
|
+
}
|
|
3507
|
+
);
|
|
3508
|
+
};
|
|
3509
|
+
tt.displayName = "DataTableRoot";
|
|
3510
|
+
const lt = function({
|
|
3511
|
+
ref: e,
|
|
3512
|
+
children: l,
|
|
3513
|
+
...n
|
|
3514
|
+
}) {
|
|
3515
|
+
const o = A(null), r = G(we(o, e)), {
|
|
3516
|
+
sortDescriptor: i,
|
|
3517
|
+
onSortChange: u,
|
|
3518
|
+
selectionMode: c,
|
|
3519
|
+
onSelectionChange: d,
|
|
3520
|
+
selectedKeys: s,
|
|
3521
|
+
defaultSelectedKeys: a,
|
|
3522
|
+
disallowEmptySelection: p,
|
|
3523
|
+
disabledKeys: f
|
|
3524
|
+
} = $e(), [h, g] = ye(n), $ = i ? {
|
|
3525
|
+
column: i.column,
|
|
3526
|
+
direction: i.direction
|
|
3521
3527
|
} : void 0;
|
|
3522
|
-
return /* @__PURE__ */ C(
|
|
3523
|
-
|
|
3528
|
+
return /* @__PURE__ */ C(yo, { ...h, asChild: !0, children: /* @__PURE__ */ C(
|
|
3529
|
+
oo,
|
|
3524
3530
|
{
|
|
3525
|
-
ref:
|
|
3526
|
-
sortDescriptor:
|
|
3527
|
-
onSortChange: (
|
|
3528
|
-
|
|
3529
|
-
column: String(
|
|
3530
|
-
direction:
|
|
3531
|
+
ref: r,
|
|
3532
|
+
sortDescriptor: $,
|
|
3533
|
+
onSortChange: (D) => {
|
|
3534
|
+
D && u && u({
|
|
3535
|
+
column: String(D.column),
|
|
3536
|
+
direction: D.direction
|
|
3531
3537
|
});
|
|
3532
3538
|
},
|
|
3533
|
-
selectedKeys:
|
|
3534
|
-
defaultSelectedKeys:
|
|
3535
|
-
onSelectionChange:
|
|
3536
|
-
selectionMode:
|
|
3537
|
-
disallowEmptySelection:
|
|
3538
|
-
disabledKeys:
|
|
3539
|
+
selectedKeys: s,
|
|
3540
|
+
defaultSelectedKeys: a,
|
|
3541
|
+
onSelectionChange: d,
|
|
3542
|
+
selectionMode: c,
|
|
3543
|
+
disallowEmptySelection: p,
|
|
3544
|
+
disabledKeys: f,
|
|
3539
3545
|
disabledBehavior: "all",
|
|
3540
|
-
...
|
|
3541
|
-
children:
|
|
3546
|
+
...g,
|
|
3547
|
+
children: l
|
|
3542
3548
|
}
|
|
3543
3549
|
) });
|
|
3544
|
-
}
|
|
3545
|
-
|
|
3546
|
-
const
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3550
|
+
};
|
|
3551
|
+
lt.displayName = "DataTable.Table";
|
|
3552
|
+
const Ao = function({
|
|
3553
|
+
ref: e,
|
|
3554
|
+
footer: l,
|
|
3555
|
+
...n
|
|
3556
|
+
}) {
|
|
3557
|
+
const o = A(null), r = G(we(o, e));
|
|
3558
|
+
return /* @__PURE__ */ ue(tt, { ref: r, ...n, children: [
|
|
3559
|
+
/* @__PURE__ */ ue(lt, { "aria-label": "Data Table", children: [
|
|
3560
|
+
/* @__PURE__ */ C(et, { "aria-label": "Data Table Header" }),
|
|
3561
|
+
/* @__PURE__ */ C(Qe, { "aria-label": "Data Table Body" })
|
|
3551
3562
|
] }),
|
|
3552
|
-
|
|
3563
|
+
l && /* @__PURE__ */ C(_e, { children: l })
|
|
3553
3564
|
] });
|
|
3554
|
-
}
|
|
3555
|
-
Root:
|
|
3556
|
-
Table:
|
|
3557
|
-
Header:
|
|
3558
|
-
Column:
|
|
3559
|
-
Body:
|
|
3560
|
-
Row:
|
|
3561
|
-
Cell:
|
|
3562
|
-
Footer:
|
|
3563
|
-
ExpandButton:
|
|
3564
|
-
NestedIcon:
|
|
3565
|
-
SelectionCell:
|
|
3566
|
-
Context:
|
|
3567
|
-
useDataTableContext:
|
|
3565
|
+
}, Sr = /* @__PURE__ */ Object.assign(Ao, {
|
|
3566
|
+
Root: tt,
|
|
3567
|
+
Table: lt,
|
|
3568
|
+
Header: et,
|
|
3569
|
+
Column: xe,
|
|
3570
|
+
Body: Qe,
|
|
3571
|
+
Row: Je,
|
|
3572
|
+
Cell: he,
|
|
3573
|
+
Footer: _e,
|
|
3574
|
+
ExpandButton: Sl,
|
|
3575
|
+
NestedIcon: ko,
|
|
3576
|
+
SelectionCell: So,
|
|
3577
|
+
Context: Te,
|
|
3578
|
+
useDataTableContext: $e
|
|
3568
3579
|
});
|
|
3569
3580
|
export {
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3581
|
+
Sr as D,
|
|
3582
|
+
tt as a,
|
|
3583
|
+
lt as b,
|
|
3584
|
+
et as c,
|
|
3585
|
+
xe as d,
|
|
3586
|
+
Qe as e,
|
|
3587
|
+
Je as f,
|
|
3588
|
+
he as g,
|
|
3589
|
+
_e as h,
|
|
3590
|
+
Sl as i,
|
|
3591
|
+
ko as j,
|
|
3592
|
+
So as k
|
|
3582
3593
|
};
|
|
3583
|
-
//# sourceMappingURL=data-table-
|
|
3594
|
+
//# sourceMappingURL=data-table-CommJV1y.es.js.map
|