@commercetools/nimbus 0.0.0-canary-20251202095232 → 0.0.0-canary-20251202112713
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-0sZ_8PGz.cjs.js +2 -0
- package/dist/chunks/{data-table-DhijpIzD.cjs.js.map → data-table-0sZ_8PGz.cjs.js.map} +1 -1
- package/dist/chunks/{data-table-mOrhnFve.es.js → data-table-B3Ch_C55.es.js} +1004 -973
- package/dist/chunks/{data-table-mOrhnFve.es.js.map → data-table-B3Ch_C55.es.js.map} +1 -1
- package/dist/components/data-table/components/data-table.context.d.ts +3 -1
- package/dist/components/data-table/components/index.d.ts +1 -1
- package/dist/components/data-table/data-table.types.d.ts +11 -2
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +5 -5
- package/dist/chunks/data-table-DhijpIzD.cjs.js +0 -2
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { jsx as x, jsxs as A, Fragment as
|
|
2
|
-
import E, { useRef as
|
|
3
|
-
import { defineMessages as
|
|
4
|
-
import { createSlotRecipeContext as
|
|
5
|
-
import { ArrowDownward as
|
|
1
|
+
import { jsx as x, jsxs as A, Fragment as Ee } from "react/jsx-runtime";
|
|
2
|
+
import E, { useRef as M, useMemo as N, useCallback as W, useEffect as se, useState as q, forwardRef as je, createContext as de, useContext as B } from "react";
|
|
3
|
+
import { defineMessages as Zl, useIntl as be } from "react-intl";
|
|
4
|
+
import { createSlotRecipeContext as Jl, mergeRefs as Te } from "@chakra-ui/react";
|
|
5
|
+
import { ArrowDownward as Ql, KeyboardArrowDown as _l, KeyboardArrowRight as en, PushPin as tn, VisibilityOff as ln, Visibility as nn, Refresh as on, WrapText as rn, ShortText as an, DensitySmall as un, FormatAlignJustify as sn, Settings as dn, ViewWeek as cn, ViewDay as fn } from "@commercetools/nimbus-icons";
|
|
6
6
|
import { S as xe } from "./simple-grid-DU5v66TG.es.js";
|
|
7
|
-
import { S as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { S as
|
|
10
|
-
import { B as
|
|
11
|
-
import { T as
|
|
12
|
-
import { S as
|
|
13
|
-
import { B as
|
|
14
|
-
import { I as
|
|
15
|
-
import { T as
|
|
16
|
-
import { T as
|
|
7
|
+
import { S as pn } from "./search-input-CyKGVTq3.es.js";
|
|
8
|
+
import { $ as mn, D as Ie } from "./draggable-list-CQ7h_F__.es.js";
|
|
9
|
+
import { S as Ve } from "./stack-CoNreM7B.es.js";
|
|
10
|
+
import { B as oe } from "./box-DuBoAZvq.es.js";
|
|
11
|
+
import { T as ze } from "./text-CIb_VDvO.es.js";
|
|
12
|
+
import { S as Nt } from "./separator-PVuFkBJX.es.js";
|
|
13
|
+
import { B as hn } from "./button-WbcOHikD.es.js";
|
|
14
|
+
import { I as We } from "./icon-toggle-button-C4ISptbh.es.js";
|
|
15
|
+
import { T as Dt } from "./toolbar-DE2w5rxi.es.js";
|
|
16
|
+
import { T as Ct } from "./toggle-button-group-BWpmMkEz.es.js";
|
|
17
17
|
import { D as ve } from "./drawer-CdfOinPU.es.js";
|
|
18
|
-
import { T as
|
|
19
|
-
import { T as
|
|
20
|
-
import { I as
|
|
18
|
+
import { T as bn } from "./tabs-Dt3Dhaiq.es.js";
|
|
19
|
+
import { T as Le } from "./tooltip-D3QrrizN.es.js";
|
|
20
|
+
import { I as Kt } from "./icon-button-1gt1BCJ2.es.js";
|
|
21
21
|
import { $ as Q } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
22
|
-
import { $ as
|
|
23
|
-
import { a as
|
|
24
|
-
import { f as L, m as ue, n as ae, o as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { e as we, g as
|
|
27
|
-
import { $ as
|
|
28
|
-
import { a as
|
|
29
|
-
import { d as
|
|
30
|
-
import { c as
|
|
31
|
-
import { $ as
|
|
32
|
-
import { c as
|
|
33
|
-
import { c as ye, a as
|
|
34
|
-
import { b as
|
|
35
|
-
import
|
|
36
|
-
import { $ as
|
|
37
|
-
import { d as
|
|
38
|
-
import { a as
|
|
39
|
-
import { $ as
|
|
40
|
-
import { $ as
|
|
41
|
-
import { $ as
|
|
42
|
-
import { a as
|
|
22
|
+
import { $ as Ft } from "./Button-BjcDZ5eb.es.js";
|
|
23
|
+
import { a as It, b as wt, c as gn } from "./RSPContexts-DLgb84PF.es.js";
|
|
24
|
+
import { f as L, m as ue, n as ae, o as He, e as vn, g as Vt, $ as Wt, b as yn, a as $n, h as te, k as Ht } from "./SelectionManager-B0Cb1kHW.es.js";
|
|
25
|
+
import { $ as Lt, a as ce, e as Ue, g as St, d as xn } from "./utils-B6pV5ewr.es.js";
|
|
26
|
+
import { e as we, g as Dn, f as Cn, h as wn, i as Ii } from "./ListBox-CcSs4yTw.es.js";
|
|
27
|
+
import { $ as Sn } from "./intlStrings-Cd44R5hT.es.js";
|
|
28
|
+
import { a as kn, $ as En } from "./SelectionIndicator-B27AsfqE.es.js";
|
|
29
|
+
import { d as et, $ as Ot, c as Ae, g as zn, i as Rn, j as Tn, a as Ge, k as An, h as Li } from "./CollectionBuilder-BnYe2z4W.es.js";
|
|
30
|
+
import { c as Re, a as tt, $ as O, e as Pn, d as kt } from "./mergeProps-Dsl8k3Ig.es.js";
|
|
31
|
+
import { $ as le } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
32
|
+
import { c as Mn } from "./OverlayArrow-BIjbCSXk.es.js";
|
|
33
|
+
import { c as ye, a as lt, $ as Bn } from "./scrollIntoView-B7D07fJk.es.js";
|
|
34
|
+
import { b as Xi } from "./useListState-CRfmjiWx.es.js";
|
|
35
|
+
import Nn from "react-dom";
|
|
36
|
+
import { $ as Pe } from "./useHover-BQRSM3qT.es.js";
|
|
37
|
+
import { d as Et } from "./platform-Z5fvtFmM.es.js";
|
|
38
|
+
import { a as Kn, b as Fn, $ as jt } from "./usePress-BuLomD_X.es.js";
|
|
39
|
+
import { $ as In, c as Vn } from "./useFocusable-Cs6i58WP.es.js";
|
|
40
|
+
import { $ as Wn, f as Hn } from "./useFocusVisible-B3HmFL2Q.es.js";
|
|
41
|
+
import { $ as ee } from "./focusSafely-Cwb0Tyy6.es.js";
|
|
42
|
+
import { a as zt, b as Ln } from "./FocusScope-CqEZq7sr.es.js";
|
|
43
43
|
import { $ as $e } from "./getScrollParent-MZgwmCKW.es.js";
|
|
44
44
|
import { $ as Se } from "./context-DW7UvQ8z.es.js";
|
|
45
|
-
import { $ as
|
|
45
|
+
import { $ as Me } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
|
|
46
46
|
import { $ as Ce } from "./useFocusRing-FPt2Rwil.es.js";
|
|
47
|
-
import { $ as
|
|
48
|
-
import { a as
|
|
49
|
-
import { e as
|
|
50
|
-
import { m as
|
|
51
|
-
import { e as
|
|
52
|
-
import { $ as
|
|
53
|
-
import { d as
|
|
54
|
-
import { $ as
|
|
55
|
-
import { $ as
|
|
56
|
-
import { $ as
|
|
47
|
+
import { $ as On } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
48
|
+
import { a as Ye, $ as Rt } from "./VisuallyHidden-BLRzeMsq.es.js";
|
|
49
|
+
import { e as jn } from "./openLink-BNz58j4a.es.js";
|
|
50
|
+
import { m as Oe } from "./utils-oAGBWzI5.es.js";
|
|
51
|
+
import { e as Un, c as Gn } from "./Header-CliQVNVa.es.js";
|
|
52
|
+
import { $ as Yn } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
53
|
+
import { d as Xn, e as qn } from "./useGridListItem-CjGTTOtc.es.js";
|
|
54
|
+
import { $ as Ut } from "./useCollator-BjnMaGJd.es.js";
|
|
55
|
+
import { $ as Zn } from "./useHasTabbableChild-DXq72IE3.es.js";
|
|
56
|
+
import { $ as Jn } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
57
57
|
import { e as ke } from "./extract-style-props-BvGKJ0ar.es.js";
|
|
58
|
-
import { Highlight as
|
|
59
|
-
import { C as
|
|
60
|
-
import { Flex as
|
|
61
|
-
function
|
|
62
|
-
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o =
|
|
58
|
+
import { Highlight as Qn } from "@chakra-ui/react/highlight";
|
|
59
|
+
import { C as Gt } from "./checkbox-CTtcL9PS.es.js";
|
|
60
|
+
import { Flex as _n } from "@chakra-ui/react/flex";
|
|
61
|
+
function eo(t) {
|
|
62
|
+
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = M({
|
|
63
63
|
didMove: !1,
|
|
64
64
|
lastPosition: null,
|
|
65
65
|
id: null
|
|
66
|
-
}), { addGlobalListener: i, removeGlobalListener: a } =
|
|
66
|
+
}), { addGlobalListener: i, removeGlobalListener: a } = On(), u = Re((c, r, p, f) => {
|
|
67
67
|
p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
|
|
68
68
|
type: "movestart",
|
|
69
69
|
pointerType: r,
|
|
@@ -81,8 +81,8 @@ function Jn(t) {
|
|
|
81
81
|
ctrlKey: c.ctrlKey,
|
|
82
82
|
altKey: c.altKey
|
|
83
83
|
}));
|
|
84
|
-
}), s =
|
|
85
|
-
|
|
84
|
+
}), s = Re((c, r) => {
|
|
85
|
+
Kn(), o.current.didMove && n?.({
|
|
86
86
|
type: "moveend",
|
|
87
87
|
pointerType: r,
|
|
88
88
|
shiftKey: c.shiftKey,
|
|
@@ -94,59 +94,59 @@ function Jn(t) {
|
|
|
94
94
|
return {
|
|
95
95
|
moveProps: N(() => {
|
|
96
96
|
let c = {}, r = () => {
|
|
97
|
-
|
|
97
|
+
Fn(), o.current.didMove = !1;
|
|
98
98
|
};
|
|
99
99
|
if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
|
|
100
|
-
let f = (
|
|
101
|
-
if (
|
|
102
|
-
var $,
|
|
103
|
-
u(
|
|
104
|
-
pageX:
|
|
105
|
-
pageY:
|
|
100
|
+
let f = (v) => {
|
|
101
|
+
if (v.button === 0) {
|
|
102
|
+
var $, b, D, g;
|
|
103
|
+
u(v, "mouse", v.pageX - ((D = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageX) !== null && D !== void 0 ? D : 0), v.pageY - ((g = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageY) !== null && g !== void 0 ? g : 0)), o.current.lastPosition = {
|
|
104
|
+
pageX: v.pageX,
|
|
105
|
+
pageY: v.pageY
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
}, m = (
|
|
109
|
-
|
|
108
|
+
}, m = (v) => {
|
|
109
|
+
v.button === 0 && (s(v, "mouse"), a(window, "mousemove", f, !1), a(window, "mouseup", m, !1));
|
|
110
110
|
};
|
|
111
|
-
c.onMouseDown = (
|
|
112
|
-
|
|
113
|
-
pageX:
|
|
114
|
-
pageY:
|
|
111
|
+
c.onMouseDown = (v) => {
|
|
112
|
+
v.button === 0 && (r(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
113
|
+
pageX: v.pageX,
|
|
114
|
+
pageY: v.pageY
|
|
115
115
|
}, i(window, "mousemove", f, !1), i(window, "mouseup", m, !1));
|
|
116
116
|
};
|
|
117
|
-
let h = (
|
|
117
|
+
let h = (v) => {
|
|
118
118
|
let $ = [
|
|
119
|
-
...
|
|
120
|
-
].findIndex(({ identifier:
|
|
119
|
+
...v.changedTouches
|
|
120
|
+
].findIndex(({ identifier: w }) => w === o.current.id);
|
|
121
121
|
if ($ >= 0) {
|
|
122
|
-
var
|
|
123
|
-
let { pageX:
|
|
124
|
-
var
|
|
125
|
-
u(
|
|
126
|
-
pageX:
|
|
127
|
-
pageY:
|
|
122
|
+
var b, D;
|
|
123
|
+
let { pageX: w, pageY: T } = v.changedTouches[$];
|
|
124
|
+
var g, C;
|
|
125
|
+
u(v, "touch", w - ((g = (b = o.current.lastPosition) === null || b === void 0 ? void 0 : b.pageX) !== null && g !== void 0 ? g : 0), T - ((C = (D = o.current.lastPosition) === null || D === void 0 ? void 0 : D.pageY) !== null && C !== void 0 ? C : 0)), o.current.lastPosition = {
|
|
126
|
+
pageX: w,
|
|
127
|
+
pageY: T
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
}, y = (
|
|
130
|
+
}, y = (v) => {
|
|
131
131
|
[
|
|
132
|
-
...
|
|
133
|
-
].findIndex(({ identifier:
|
|
132
|
+
...v.changedTouches
|
|
133
|
+
].findIndex(({ identifier: b }) => b === o.current.id) >= 0 && (s(v, "touch"), o.current.id = null, a(window, "touchmove", h), a(window, "touchend", y), a(window, "touchcancel", y));
|
|
134
134
|
};
|
|
135
|
-
c.onTouchStart = (
|
|
136
|
-
if (
|
|
137
|
-
let { pageX: $, pageY:
|
|
138
|
-
r(),
|
|
135
|
+
c.onTouchStart = (v) => {
|
|
136
|
+
if (v.changedTouches.length === 0 || o.current.id != null) return;
|
|
137
|
+
let { pageX: $, pageY: b, identifier: D } = v.changedTouches[0];
|
|
138
|
+
r(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
139
139
|
pageX: $,
|
|
140
|
-
pageY:
|
|
140
|
+
pageY: b
|
|
141
141
|
}, o.current.id = D, i(window, "touchmove", h, !1), i(window, "touchend", y, !1), i(window, "touchcancel", y, !1);
|
|
142
142
|
};
|
|
143
143
|
} else {
|
|
144
144
|
let f = (h) => {
|
|
145
145
|
if (h.pointerId === o.current.id) {
|
|
146
|
-
var y,
|
|
146
|
+
var y, v;
|
|
147
147
|
let D = h.pointerType || "mouse";
|
|
148
|
-
var $,
|
|
149
|
-
u(h, D, h.pageX - (($ = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && $ !== void 0 ? $ : 0), h.pageY - ((
|
|
148
|
+
var $, b;
|
|
149
|
+
u(h, D, h.pageX - (($ = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && $ !== void 0 ? $ : 0), h.pageY - ((b = (v = o.current.lastPosition) === null || v === void 0 ? void 0 : v.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
|
|
150
150
|
pageX: h.pageX,
|
|
151
151
|
pageY: h.pageY
|
|
152
152
|
};
|
|
@@ -196,7 +196,7 @@ function Jn(t) {
|
|
|
196
196
|
])
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
class
|
|
199
|
+
class Yt {
|
|
200
200
|
isCell(e) {
|
|
201
201
|
return e.type === "cell";
|
|
202
202
|
}
|
|
@@ -284,7 +284,7 @@ class Ut {
|
|
|
284
284
|
if (!c) return null;
|
|
285
285
|
let r = L(c, this.collection);
|
|
286
286
|
var a;
|
|
287
|
-
let p = (a = this.direction === "rtl" ?
|
|
287
|
+
let p = (a = this.direction === "rtl" ? He(r, l.index - 1) : He(r, l.index + 1)) !== null && a !== void 0 ? a : null;
|
|
288
288
|
var u;
|
|
289
289
|
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
290
290
|
var s;
|
|
@@ -308,7 +308,7 @@ class Ut {
|
|
|
308
308
|
if (!c) return null;
|
|
309
309
|
let r = L(c, this.collection);
|
|
310
310
|
var a;
|
|
311
|
-
let p = (a = this.direction === "rtl" ?
|
|
311
|
+
let p = (a = this.direction === "rtl" ? He(r, l.index + 1) : He(r, l.index - 1)) !== null && a !== void 0 ? a : null;
|
|
312
312
|
var u;
|
|
313
313
|
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
314
314
|
var s;
|
|
@@ -410,12 +410,12 @@ class Ut {
|
|
|
410
410
|
}
|
|
411
411
|
constructor(e) {
|
|
412
412
|
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.");
|
|
413
|
-
this.layoutDelegate = e.layoutDelegate || (e.layout ? new
|
|
413
|
+
this.layoutDelegate = e.layoutDelegate || (e.layout ? new to(e.layout) : new Un(e.ref));
|
|
414
414
|
var l;
|
|
415
415
|
this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
class
|
|
418
|
+
class to {
|
|
419
419
|
getContentSize() {
|
|
420
420
|
return this.layout.getContentSize();
|
|
421
421
|
}
|
|
@@ -430,14 +430,14 @@ class Qn {
|
|
|
430
430
|
this.layout = e;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
const
|
|
434
|
-
function
|
|
433
|
+
const nt = /* @__PURE__ */ new WeakMap();
|
|
434
|
+
function lo(t, e, l) {
|
|
435
435
|
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: i, focusMode: a, scrollRef: u, getRowText: s, onRowAction: d, onCellAction: c, escapeKeyBehavior: r = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
|
|
436
436
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
437
|
-
let m =
|
|
437
|
+
let m = Ut({
|
|
438
438
|
usage: "search",
|
|
439
439
|
sensitivity: "base"
|
|
440
|
-
}), { direction: h } = Se(), y = e.selectionManager.disabledBehavior,
|
|
440
|
+
}), { direction: h } = Se(), y = e.selectionManager.disabledBehavior, v = N(() => i || new Yt({
|
|
441
441
|
collection: e.collection,
|
|
442
442
|
disabledKeys: e.disabledKeys,
|
|
443
443
|
disabledBehavior: y,
|
|
@@ -454,27 +454,27 @@ function _n(t, e, l) {
|
|
|
454
454
|
h,
|
|
455
455
|
m,
|
|
456
456
|
a
|
|
457
|
-
]), { collectionProps: $ } =
|
|
457
|
+
]), { collectionProps: $ } = vn({
|
|
458
458
|
ref: l,
|
|
459
459
|
selectionManager: f,
|
|
460
|
-
keyboardDelegate:
|
|
460
|
+
keyboardDelegate: v,
|
|
461
461
|
isVirtualized: n,
|
|
462
462
|
scrollRef: u,
|
|
463
463
|
disallowTypeAhead: o,
|
|
464
464
|
escapeKeyBehavior: r
|
|
465
|
-
}),
|
|
466
|
-
|
|
467
|
-
keyboardDelegate:
|
|
465
|
+
}), b = tt(t.id);
|
|
466
|
+
nt.set(e, {
|
|
467
|
+
keyboardDelegate: v,
|
|
468
468
|
actions: {
|
|
469
469
|
onRowAction: d,
|
|
470
470
|
onCellAction: c
|
|
471
471
|
},
|
|
472
472
|
shouldSelectOnPressUp: p
|
|
473
473
|
});
|
|
474
|
-
let D =
|
|
474
|
+
let D = Xn({
|
|
475
475
|
selectionManager: f,
|
|
476
476
|
hasItemActions: !!(d || c)
|
|
477
|
-
}),
|
|
477
|
+
}), g = le(t, {
|
|
478
478
|
labelable: !0
|
|
479
479
|
}), C = W((z) => {
|
|
480
480
|
if (f.isFocused) {
|
|
@@ -484,53 +484,53 @@ function _n(t, e, l) {
|
|
|
484
484
|
z.currentTarget.contains(z.target) && f.setFocused(!0);
|
|
485
485
|
}, [
|
|
486
486
|
f
|
|
487
|
-
]),
|
|
487
|
+
]), w = N(() => ({
|
|
488
488
|
onBlur: $.onBlur,
|
|
489
489
|
onFocus: C
|
|
490
490
|
}), [
|
|
491
491
|
C,
|
|
492
492
|
$.onBlur
|
|
493
|
-
]),
|
|
493
|
+
]), T = Zn(l, {
|
|
494
494
|
isDisabled: e.collection.size !== 0
|
|
495
|
-
}),
|
|
496
|
-
|
|
495
|
+
}), P = O(
|
|
496
|
+
g,
|
|
497
497
|
{
|
|
498
498
|
role: "grid",
|
|
499
|
-
id:
|
|
499
|
+
id: b,
|
|
500
500
|
"aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
|
|
501
501
|
},
|
|
502
|
-
e.isKeyboardNavigationDisabled ?
|
|
502
|
+
e.isKeyboardNavigationDisabled ? w : $,
|
|
503
503
|
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
504
504
|
e.collection.size === 0 && {
|
|
505
|
-
tabIndex:
|
|
505
|
+
tabIndex: T ? -1 : 0
|
|
506
506
|
} || void 0,
|
|
507
507
|
D
|
|
508
508
|
);
|
|
509
|
-
return n && (
|
|
509
|
+
return n && (P["aria-rowcount"] = e.collection.size, P["aria-colcount"] = e.collection.columnCount), qn({
|
|
510
510
|
getRowText: s
|
|
511
511
|
}, e), {
|
|
512
|
-
gridProps:
|
|
512
|
+
gridProps: P
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function no() {
|
|
516
516
|
return {
|
|
517
517
|
rowGroupProps: {
|
|
518
518
|
role: "rowgroup"
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function oo(t, e, l) {
|
|
523
523
|
var n, o;
|
|
524
|
-
let { node: i, isVirtualized: a, shouldSelectOnPressUp: u, onAction: s } = t, { actions: d, shouldSelectOnPressUp: c } =
|
|
524
|
+
let { node: i, isVirtualized: a, shouldSelectOnPressUp: u, onAction: s } = t, { actions: d, shouldSelectOnPressUp: c } = nt.get(e), r = d.onRowAction ? () => {
|
|
525
525
|
var y;
|
|
526
526
|
return (y = d.onRowAction) === null || y === void 0 ? void 0 : y.call(d, i.key);
|
|
527
|
-
} : s, { itemProps: p, ...f } =
|
|
527
|
+
} : s, { itemProps: p, ...f } = Vt({
|
|
528
528
|
selectionManager: e.selectionManager,
|
|
529
529
|
key: i.key,
|
|
530
530
|
ref: l,
|
|
531
531
|
isVirtualized: a,
|
|
532
532
|
shouldSelectOnPressUp: c || u,
|
|
533
|
-
onAction: r || !(i == null || (n = i.props) === null || n === void 0) && n.onAction ?
|
|
533
|
+
onAction: r || !(i == null || (n = i.props) === null || n === void 0) && n.onAction ? Pn(i == null || (o = i.props) === null || o === void 0 ? void 0 : o.onAction, r) : void 0,
|
|
534
534
|
isDisabled: e.collection.size === 0
|
|
535
535
|
}), m = e.selectionManager.isSelected(i.key), h = {
|
|
536
536
|
role: "row",
|
|
@@ -543,21 +543,21 @@ function to(t, e, l) {
|
|
|
543
543
|
...f
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
let { node: n, isVirtualized: o, focusMode: i = "child", shouldSelectOnPressUp: a, onAction: u } = t, { direction: s } = Se(), { keyboardDelegate: d, actions: { onCellAction: c } } =
|
|
546
|
+
function Xt(t, e, l) {
|
|
547
|
+
let { node: n, isVirtualized: o, focusMode: i = "child", shouldSelectOnPressUp: a, onAction: u } = t, { direction: s } = Se(), { keyboardDelegate: d, actions: { onCellAction: c } } = nt.get(e), r = M(null), p = () => {
|
|
548
548
|
if (l.current) {
|
|
549
|
-
let
|
|
549
|
+
let b = zt(l.current);
|
|
550
550
|
if (i === "child") {
|
|
551
551
|
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
552
|
-
let D = e.selectionManager.childFocusStrategy === "last" ?
|
|
552
|
+
let D = e.selectionManager.childFocusStrategy === "last" ? Ze(b) : b.firstChild();
|
|
553
553
|
if (D) {
|
|
554
|
-
|
|
554
|
+
ee(D);
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
(r.current != null && n.key !== r.current || !l.current.contains(document.activeElement)) &&
|
|
558
|
+
(r.current != null && n.key !== r.current || !l.current.contains(document.activeElement)) && ee(l.current);
|
|
559
559
|
}
|
|
560
|
-
}, { itemProps: f, isPressed: m } =
|
|
560
|
+
}, { itemProps: f, isPressed: m } = Vt({
|
|
561
561
|
selectionManager: e.selectionManager,
|
|
562
562
|
key: n.key,
|
|
563
563
|
ref: l,
|
|
@@ -566,26 +566,26 @@ function Gt(t, e, l) {
|
|
|
566
566
|
shouldSelectOnPressUp: a,
|
|
567
567
|
onAction: c ? () => c(n.key) : u,
|
|
568
568
|
isDisabled: e.collection.size === 0
|
|
569
|
-
}), h = (
|
|
570
|
-
if (!
|
|
571
|
-
let D =
|
|
572
|
-
switch (D.currentNode = document.activeElement,
|
|
569
|
+
}), h = (b) => {
|
|
570
|
+
if (!b.currentTarget.contains(b.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
571
|
+
let D = zt(l.current);
|
|
572
|
+
switch (D.currentNode = document.activeElement, b.key) {
|
|
573
573
|
case "ArrowLeft": {
|
|
574
574
|
let z = s === "rtl" ? D.nextNode() : D.previousNode();
|
|
575
|
-
if (i === "child" && z === l.current && (z = null),
|
|
576
|
-
|
|
575
|
+
if (i === "child" && z === l.current && (z = null), b.preventDefault(), b.stopPropagation(), z)
|
|
576
|
+
ee(z), ye(z, {
|
|
577
577
|
containingElement: $e(l.current)
|
|
578
578
|
});
|
|
579
579
|
else {
|
|
580
|
-
var
|
|
581
|
-
if (((
|
|
580
|
+
var g;
|
|
581
|
+
if (((g = d.getKeyLeftOf) === null || g === void 0 ? void 0 : g.call(d, n.key)) !== n.key) {
|
|
582
582
|
var C;
|
|
583
|
-
(C = l.current.parentElement) === null || C === void 0 || C.dispatchEvent(new KeyboardEvent(
|
|
583
|
+
(C = l.current.parentElement) === null || C === void 0 || C.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
|
-
i === "cell" && s === "rtl" ? (
|
|
586
|
+
i === "cell" && s === "rtl" ? (ee(l.current), ye(l.current, {
|
|
587
587
|
containingElement: $e(l.current)
|
|
588
|
-
})) : (D.currentNode = l.current, z = s === "rtl" ? D.firstChild() :
|
|
588
|
+
})) : (D.currentNode = l.current, z = s === "rtl" ? D.firstChild() : Ze(D), z && (ee(z), ye(z, {
|
|
589
589
|
containingElement: $e(l.current)
|
|
590
590
|
})));
|
|
591
591
|
}
|
|
@@ -593,20 +593,20 @@ function Gt(t, e, l) {
|
|
|
593
593
|
}
|
|
594
594
|
case "ArrowRight": {
|
|
595
595
|
let z = s === "rtl" ? D.previousNode() : D.nextNode();
|
|
596
|
-
if (i === "child" && z === l.current && (z = null),
|
|
597
|
-
|
|
596
|
+
if (i === "child" && z === l.current && (z = null), b.preventDefault(), b.stopPropagation(), z)
|
|
597
|
+
ee(z), ye(z, {
|
|
598
598
|
containingElement: $e(l.current)
|
|
599
599
|
});
|
|
600
600
|
else {
|
|
601
|
-
var
|
|
602
|
-
if (((
|
|
603
|
-
var
|
|
604
|
-
(
|
|
601
|
+
var w;
|
|
602
|
+
if (((w = d.getKeyRightOf) === null || w === void 0 ? void 0 : w.call(d, n.key)) !== n.key) {
|
|
603
|
+
var T;
|
|
604
|
+
(T = l.current.parentElement) === null || T === void 0 || T.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
605
605
|
break;
|
|
606
606
|
}
|
|
607
|
-
i === "cell" && s === "ltr" ? (
|
|
607
|
+
i === "cell" && s === "ltr" ? (ee(l.current), ye(l.current, {
|
|
608
608
|
containingElement: $e(l.current)
|
|
609
|
-
})) : (D.currentNode = l.current, z = s === "rtl" ?
|
|
609
|
+
})) : (D.currentNode = l.current, z = s === "rtl" ? Ze(D) : D.firstChild(), z && (ee(z), ye(z, {
|
|
610
610
|
containingElement: $e(l.current)
|
|
611
611
|
})));
|
|
612
612
|
}
|
|
@@ -614,21 +614,21 @@ function Gt(t, e, l) {
|
|
|
614
614
|
}
|
|
615
615
|
case "ArrowUp":
|
|
616
616
|
case "ArrowDown":
|
|
617
|
-
if (!
|
|
618
|
-
var
|
|
619
|
-
|
|
617
|
+
if (!b.altKey && l.current.contains(b.target)) {
|
|
618
|
+
var P;
|
|
619
|
+
b.stopPropagation(), b.preventDefault(), (P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(b.nativeEvent.type, b.nativeEvent));
|
|
620
620
|
}
|
|
621
621
|
break;
|
|
622
622
|
}
|
|
623
|
-
}, y = (
|
|
624
|
-
if (r.current = n.key,
|
|
625
|
-
|
|
623
|
+
}, y = (b) => {
|
|
624
|
+
if (r.current = n.key, b.target !== l.current) {
|
|
625
|
+
Wn() || e.selectionManager.setFocusedKey(n.key);
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
628
628
|
requestAnimationFrame(() => {
|
|
629
629
|
i === "child" && document.activeElement === l.current && p();
|
|
630
630
|
});
|
|
631
|
-
},
|
|
631
|
+
}, v = O(f, {
|
|
632
632
|
role: "gridcell",
|
|
633
633
|
onKeyDownCapture: h,
|
|
634
634
|
"aria-colspan": n.colSpan,
|
|
@@ -637,44 +637,44 @@ function Gt(t, e, l) {
|
|
|
637
637
|
onFocus: y
|
|
638
638
|
});
|
|
639
639
|
var $;
|
|
640
|
-
return o && (
|
|
641
|
-
let D =
|
|
640
|
+
return o && (v["aria-colindex"] = (($ = n.colIndex) !== null && $ !== void 0 ? $ : n.index) + 1), a && v.tabIndex != null && v.onPointerDown == null && (v.onPointerDown = (b) => {
|
|
641
|
+
let D = b.currentTarget, g = D.getAttribute("tabindex");
|
|
642
642
|
D.removeAttribute("tabindex"), requestAnimationFrame(() => {
|
|
643
|
-
|
|
643
|
+
g != null && D.setAttribute("tabindex", g);
|
|
644
644
|
});
|
|
645
645
|
}), {
|
|
646
|
-
gridCellProps:
|
|
646
|
+
gridCellProps: v,
|
|
647
647
|
isPressed: m
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Ze(t) {
|
|
651
651
|
let e = null, l = null;
|
|
652
652
|
do
|
|
653
653
|
l = t.lastChild(), l && (e = l);
|
|
654
654
|
while (l);
|
|
655
655
|
return e;
|
|
656
656
|
}
|
|
657
|
-
const
|
|
658
|
-
function
|
|
657
|
+
const ot = /* @__PURE__ */ new WeakMap();
|
|
658
|
+
function Je(t) {
|
|
659
659
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
let l =
|
|
661
|
+
function qt(t, e) {
|
|
662
|
+
let l = ot.get(t);
|
|
663
663
|
if (!l) throw new Error("Unknown grid");
|
|
664
|
-
return `${l}-${
|
|
664
|
+
return `${l}-${Je(e)}`;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
let n =
|
|
666
|
+
function Zt(t, e, l) {
|
|
667
|
+
let n = ot.get(t);
|
|
668
668
|
if (!n) throw new Error("Unknown grid");
|
|
669
|
-
return `${n}-${
|
|
669
|
+
return `${n}-${Je(e)}-${Je(l)}`;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Jt(t, e) {
|
|
672
672
|
return [
|
|
673
673
|
...t.collection.rowHeaderColumnKeys
|
|
674
|
-
].map((l) =>
|
|
674
|
+
].map((l) => Zt(t, e, l)).join(" ");
|
|
675
675
|
}
|
|
676
|
-
var
|
|
677
|
-
|
|
676
|
+
var Qt = {};
|
|
677
|
+
Qt = {
|
|
678
678
|
ascending: "تصاعدي",
|
|
679
679
|
ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
|
|
680
680
|
columnSize: (t) => `${t.value} بالبكسل`,
|
|
@@ -685,8 +685,8 @@ Zt = {
|
|
|
685
685
|
selectAll: "تحديد الكل",
|
|
686
686
|
sortable: "عمود قابل للترتيب"
|
|
687
687
|
};
|
|
688
|
-
var
|
|
689
|
-
|
|
688
|
+
var _t = {};
|
|
689
|
+
_t = {
|
|
690
690
|
ascending: "възходящ",
|
|
691
691
|
ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
|
|
692
692
|
columnSize: (t) => `${t.value} пиксела`,
|
|
@@ -697,8 +697,8 @@ Jt = {
|
|
|
697
697
|
selectAll: "Изберете всичко",
|
|
698
698
|
sortable: "сортираща колона"
|
|
699
699
|
};
|
|
700
|
-
var
|
|
701
|
-
|
|
700
|
+
var el = {};
|
|
701
|
+
el = {
|
|
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 @@ Qt = {
|
|
|
709
709
|
selectAll: "Vybrat vše",
|
|
710
710
|
sortable: "sloupec s možností řazení"
|
|
711
711
|
};
|
|
712
|
-
var
|
|
713
|
-
|
|
712
|
+
var tl = {};
|
|
713
|
+
tl = {
|
|
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 @@ _t = {
|
|
|
721
721
|
selectAll: "Vælg alle",
|
|
722
722
|
sortable: "sorterbar kolonne"
|
|
723
723
|
};
|
|
724
|
-
var
|
|
725
|
-
|
|
724
|
+
var ll = {};
|
|
725
|
+
ll = {
|
|
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 @@ el = {
|
|
|
733
733
|
selectAll: "Alles auswählen",
|
|
734
734
|
sortable: "sortierbare Spalte"
|
|
735
735
|
};
|
|
736
|
-
var
|
|
737
|
-
|
|
736
|
+
var nl = {};
|
|
737
|
+
nl = {
|
|
738
738
|
ascending: "αύξουσα",
|
|
739
739
|
ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
|
|
740
740
|
columnSize: (t) => `${t.value} pixel`,
|
|
@@ -745,8 +745,8 @@ tl = {
|
|
|
745
745
|
selectAll: "Επιλογή όλων",
|
|
746
746
|
sortable: "Στήλη διαλογής"
|
|
747
747
|
};
|
|
748
|
-
var
|
|
749
|
-
|
|
748
|
+
var ol = {};
|
|
749
|
+
ol = {
|
|
750
750
|
select: "Select",
|
|
751
751
|
selectAll: "Select All",
|
|
752
752
|
sortable: "sortable column",
|
|
@@ -757,8 +757,8 @@ ll = {
|
|
|
757
757
|
columnSize: (t) => `${t.value} pixels`,
|
|
758
758
|
resizerDescription: "Press Enter to start resizing"
|
|
759
759
|
};
|
|
760
|
-
var
|
|
761
|
-
|
|
760
|
+
var il = {};
|
|
761
|
+
il = {
|
|
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 @@ nl = {
|
|
|
769
769
|
selectAll: "Seleccionar todos",
|
|
770
770
|
sortable: "columna ordenable"
|
|
771
771
|
};
|
|
772
|
-
var
|
|
773
|
-
|
|
772
|
+
var rl = {};
|
|
773
|
+
rl = {
|
|
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 @@ ol = {
|
|
|
781
781
|
selectAll: "Vali kõik",
|
|
782
782
|
sortable: "sorditav veerg"
|
|
783
783
|
};
|
|
784
|
-
var
|
|
785
|
-
|
|
784
|
+
var al = {};
|
|
785
|
+
al = {
|
|
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 @@ il = {
|
|
|
793
793
|
selectAll: "Valitse kaikki",
|
|
794
794
|
sortable: "lajiteltava sarake"
|
|
795
795
|
};
|
|
796
|
-
var
|
|
797
|
-
|
|
796
|
+
var ul = {};
|
|
797
|
+
ul = {
|
|
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 @@ rl = {
|
|
|
805
805
|
selectAll: "Sélectionner tout",
|
|
806
806
|
sortable: "colonne triable"
|
|
807
807
|
};
|
|
808
|
-
var
|
|
809
|
-
|
|
808
|
+
var sl = {};
|
|
809
|
+
sl = {
|
|
810
810
|
ascending: "עולה",
|
|
811
811
|
ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
|
|
812
812
|
columnSize: (t) => `${t.value} פיקסלים`,
|
|
@@ -817,8 +817,8 @@ al = {
|
|
|
817
817
|
selectAll: "בחר הכול",
|
|
818
818
|
sortable: "עמודה שניתן למיין"
|
|
819
819
|
};
|
|
820
|
-
var
|
|
821
|
-
|
|
820
|
+
var dl = {};
|
|
821
|
+
dl = {
|
|
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 @@ ul = {
|
|
|
829
829
|
selectAll: "Odaberite sve",
|
|
830
830
|
sortable: "stupac koji se može razvrstati"
|
|
831
831
|
};
|
|
832
|
-
var
|
|
833
|
-
|
|
832
|
+
var cl = {};
|
|
833
|
+
cl = {
|
|
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 @@ sl = {
|
|
|
841
841
|
selectAll: "Összes kijelölése",
|
|
842
842
|
sortable: "rendezendő oszlop"
|
|
843
843
|
};
|
|
844
|
-
var
|
|
845
|
-
|
|
844
|
+
var fl = {};
|
|
845
|
+
fl = {
|
|
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 @@ dl = {
|
|
|
853
853
|
selectAll: "Seleziona tutto",
|
|
854
854
|
sortable: "colonna ordinabile"
|
|
855
855
|
};
|
|
856
|
-
var
|
|
857
|
-
|
|
856
|
+
var pl = {};
|
|
857
|
+
pl = {
|
|
858
858
|
ascending: "昇順",
|
|
859
859
|
ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
|
|
860
860
|
columnSize: (t) => `${t.value} ピクセル`,
|
|
@@ -865,8 +865,8 @@ cl = {
|
|
|
865
865
|
selectAll: "すべて選択",
|
|
866
866
|
sortable: "並べ替え可能な列"
|
|
867
867
|
};
|
|
868
|
-
var
|
|
869
|
-
|
|
868
|
+
var ml = {};
|
|
869
|
+
ml = {
|
|
870
870
|
ascending: "오름차순",
|
|
871
871
|
ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
|
|
872
872
|
columnSize: (t) => `${t.value} 픽셀`,
|
|
@@ -877,8 +877,8 @@ fl = {
|
|
|
877
877
|
selectAll: "모두 선택",
|
|
878
878
|
sortable: "정렬 가능한 열"
|
|
879
879
|
};
|
|
880
|
-
var
|
|
881
|
-
|
|
880
|
+
var hl = {};
|
|
881
|
+
hl = {
|
|
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 @@ pl = {
|
|
|
889
889
|
selectAll: "Pasirinkti viską",
|
|
890
890
|
sortable: "rikiuojamas stulpelis"
|
|
891
891
|
};
|
|
892
|
-
var
|
|
893
|
-
|
|
892
|
+
var bl = {};
|
|
893
|
+
bl = {
|
|
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 @@ ml = {
|
|
|
901
901
|
selectAll: "Atlasīt visu",
|
|
902
902
|
sortable: "kārtojamā kolonna"
|
|
903
903
|
};
|
|
904
|
-
var
|
|
905
|
-
|
|
904
|
+
var gl = {};
|
|
905
|
+
gl = {
|
|
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 @@ hl = {
|
|
|
913
913
|
selectAll: "Velg alle",
|
|
914
914
|
sortable: "kolonne som kan sorteres"
|
|
915
915
|
};
|
|
916
|
-
var
|
|
917
|
-
|
|
916
|
+
var vl = {};
|
|
917
|
+
vl = {
|
|
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 @@ bl = {
|
|
|
925
925
|
selectAll: "Alles selecteren",
|
|
926
926
|
sortable: "sorteerbare kolom"
|
|
927
927
|
};
|
|
928
|
-
var
|
|
929
|
-
|
|
928
|
+
var yl = {};
|
|
929
|
+
yl = {
|
|
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 @@ gl = {
|
|
|
937
937
|
selectAll: "Zaznacz wszystko",
|
|
938
938
|
sortable: "kolumna z możliwością sortowania"
|
|
939
939
|
};
|
|
940
|
-
var
|
|
941
|
-
|
|
940
|
+
var $l = {};
|
|
941
|
+
$l = {
|
|
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 @@ vl = {
|
|
|
949
949
|
selectAll: "Selecionar tudo",
|
|
950
950
|
sortable: "coluna classificável"
|
|
951
951
|
};
|
|
952
|
-
var
|
|
953
|
-
|
|
952
|
+
var xl = {};
|
|
953
|
+
xl = {
|
|
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 @@ yl = {
|
|
|
961
961
|
selectAll: "Selecionar tudo",
|
|
962
962
|
sortable: "Coluna ordenável"
|
|
963
963
|
};
|
|
964
|
-
var
|
|
965
|
-
|
|
964
|
+
var Dl = {};
|
|
965
|
+
Dl = {
|
|
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 @@ $l = {
|
|
|
973
973
|
selectAll: "Selectare totală",
|
|
974
974
|
sortable: "coloană sortabilă"
|
|
975
975
|
};
|
|
976
|
-
var
|
|
977
|
-
|
|
976
|
+
var Cl = {};
|
|
977
|
+
Cl = {
|
|
978
978
|
ascending: "возрастание",
|
|
979
979
|
ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
|
|
980
980
|
columnSize: (t) => `${t.value} пикс.`,
|
|
@@ -985,8 +985,8 @@ xl = {
|
|
|
985
985
|
selectAll: "Выбрать все",
|
|
986
986
|
sortable: "сортируемый столбец"
|
|
987
987
|
};
|
|
988
|
-
var
|
|
989
|
-
|
|
988
|
+
var wl = {};
|
|
989
|
+
wl = {
|
|
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 @@ Dl = {
|
|
|
997
997
|
selectAll: "Vybrať všetko",
|
|
998
998
|
sortable: "zoraditeľný stĺpec"
|
|
999
999
|
};
|
|
1000
|
-
var
|
|
1001
|
-
|
|
1000
|
+
var Sl = {};
|
|
1001
|
+
Sl = {
|
|
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 @@ Cl = {
|
|
|
1009
1009
|
selectAll: "Izberite vse",
|
|
1010
1010
|
sortable: "razvrstljivi stolpec"
|
|
1011
1011
|
};
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1012
|
+
var kl = {};
|
|
1013
|
+
kl = {
|
|
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 @@ wl = {
|
|
|
1021
1021
|
selectAll: "Izaberite sve",
|
|
1022
1022
|
sortable: "kolona koja se može sortirati"
|
|
1023
1023
|
};
|
|
1024
|
-
var
|
|
1025
|
-
|
|
1024
|
+
var El = {};
|
|
1025
|
+
El = {
|
|
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 @@ Sl = {
|
|
|
1033
1033
|
selectAll: "Markera allt",
|
|
1034
1034
|
sortable: "sorterbar kolumn"
|
|
1035
1035
|
};
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1036
|
+
var zl = {};
|
|
1037
|
+
zl = {
|
|
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 @@ kl = {
|
|
|
1045
1045
|
selectAll: "Tümünü Seç",
|
|
1046
1046
|
sortable: "Sıralanabilir sütun"
|
|
1047
1047
|
};
|
|
1048
|
-
var
|
|
1049
|
-
|
|
1048
|
+
var Rl = {};
|
|
1049
|
+
Rl = {
|
|
1050
1050
|
ascending: "висхідний",
|
|
1051
1051
|
ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
|
|
1052
1052
|
columnSize: (t) => `${t.value} пікс.`,
|
|
@@ -1057,8 +1057,8 @@ El = {
|
|
|
1057
1057
|
selectAll: "Вибрати все",
|
|
1058
1058
|
sortable: "сортувальний стовпець"
|
|
1059
1059
|
};
|
|
1060
|
-
var
|
|
1061
|
-
|
|
1060
|
+
var Tl = {};
|
|
1061
|
+
Tl = {
|
|
1062
1062
|
ascending: "升序",
|
|
1063
1063
|
ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
|
|
1064
1064
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1069,8 +1069,8 @@ zl = {
|
|
|
1069
1069
|
selectAll: "全选",
|
|
1070
1070
|
sortable: "可排序的列"
|
|
1071
1071
|
};
|
|
1072
|
-
var
|
|
1073
|
-
|
|
1072
|
+
var Al = {};
|
|
1073
|
+
Al = {
|
|
1074
1074
|
ascending: "遞增",
|
|
1075
1075
|
ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
|
|
1076
1076
|
columnSize: (t) => `${t.value} 像素`,
|
|
@@ -1081,44 +1081,44 @@ Rl = {
|
|
|
1081
1081
|
selectAll: "全選",
|
|
1082
1082
|
sortable: "可排序的欄"
|
|
1083
1083
|
};
|
|
1084
|
-
var
|
|
1085
|
-
|
|
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":
|
|
1084
|
+
var Be = {};
|
|
1085
|
+
Be = {
|
|
1086
|
+
"ar-AE": Qt,
|
|
1087
|
+
"bg-BG": _t,
|
|
1088
|
+
"cs-CZ": el,
|
|
1089
|
+
"da-DK": tl,
|
|
1090
|
+
"de-DE": ll,
|
|
1091
|
+
"el-GR": nl,
|
|
1092
|
+
"en-US": ol,
|
|
1093
|
+
"es-ES": il,
|
|
1094
|
+
"et-EE": rl,
|
|
1095
|
+
"fi-FI": al,
|
|
1096
|
+
"fr-FR": ul,
|
|
1097
|
+
"he-IL": sl,
|
|
1098
|
+
"hr-HR": dl,
|
|
1099
|
+
"hu-HU": cl,
|
|
1100
|
+
"it-IT": fl,
|
|
1101
|
+
"ja-JP": pl,
|
|
1102
|
+
"ko-KR": ml,
|
|
1103
|
+
"lt-LT": hl,
|
|
1104
|
+
"lv-LV": bl,
|
|
1105
|
+
"nb-NO": gl,
|
|
1106
|
+
"nl-NL": vl,
|
|
1107
|
+
"pl-PL": yl,
|
|
1108
|
+
"pt-BR": $l,
|
|
1109
|
+
"pt-PT": xl,
|
|
1110
|
+
"ro-RO": Dl,
|
|
1111
|
+
"ru-RU": Cl,
|
|
1112
|
+
"sk-SK": wl,
|
|
1113
|
+
"sl-SI": Sl,
|
|
1114
|
+
"sr-SP": kl,
|
|
1115
|
+
"sv-SE": El,
|
|
1116
|
+
"tr-TR": zl,
|
|
1117
|
+
"uk-UA": Rl,
|
|
1118
|
+
"zh-CN": Tl,
|
|
1119
|
+
"zh-TW": Al
|
|
1120
1120
|
};
|
|
1121
|
-
class
|
|
1121
|
+
class io extends Yt {
|
|
1122
1122
|
isCell(e) {
|
|
1123
1123
|
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
1124
1124
|
}
|
|
@@ -1201,14 +1201,14 @@ class lo extends Ut {
|
|
|
1201
1201
|
return null;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function ro(t) {
|
|
1205
1205
|
return t && t.__esModule ? t.default : t;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1208
|
-
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: i, layout: a } = t, u =
|
|
1207
|
+
function ao(t, e, l) {
|
|
1208
|
+
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: i, layout: a } = t, u = Ut({
|
|
1209
1209
|
usage: "search",
|
|
1210
1210
|
sensitivity: "base"
|
|
1211
|
-
}), { direction: s } = Se(), d = e.selectionManager.disabledBehavior, c = N(() => n || new
|
|
1211
|
+
}), { direction: s } = Se(), d = e.selectionManager.disabledBehavior, c = N(() => n || new io({
|
|
1212
1212
|
collection: e.collection,
|
|
1213
1213
|
disabledKeys: e.disabledKeys,
|
|
1214
1214
|
disabledBehavior: d,
|
|
@@ -1227,17 +1227,17 @@ function oo(t, e, l) {
|
|
|
1227
1227
|
u,
|
|
1228
1228
|
i,
|
|
1229
1229
|
a
|
|
1230
|
-
]), r =
|
|
1231
|
-
|
|
1232
|
-
let { gridProps: p } =
|
|
1230
|
+
]), r = tt(t.id);
|
|
1231
|
+
ot.set(e, r);
|
|
1232
|
+
let { gridProps: p } = lo({
|
|
1233
1233
|
...t,
|
|
1234
1234
|
id: r,
|
|
1235
1235
|
keyboardDelegate: c
|
|
1236
1236
|
}, e, l);
|
|
1237
|
-
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length),
|
|
1238
|
-
let { column: f, direction: m } = e.sortDescriptor || {}, h =
|
|
1239
|
-
var $,
|
|
1240
|
-
let D = (
|
|
1237
|
+
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Oe() && "expandedKeys" in e && (p.role = "treegrid");
|
|
1238
|
+
let { column: f, direction: m } = e.sortDescriptor || {}, h = Me(ro(Be), "@react-aria/table"), y = N(() => {
|
|
1239
|
+
var $, b;
|
|
1240
|
+
let D = (b = ($ = e.collection.columns.find((g) => g.key === f)) === null || $ === void 0 ? void 0 : $.textValue) !== null && b !== void 0 ? b : "";
|
|
1241
1241
|
return m && f ? h.format(`${m}Sort`, {
|
|
1242
1242
|
columnName: D
|
|
1243
1243
|
}) : void 0;
|
|
@@ -1245,44 +1245,44 @@ function oo(t, e, l) {
|
|
|
1245
1245
|
m,
|
|
1246
1246
|
f,
|
|
1247
1247
|
e.collection.columns
|
|
1248
|
-
]),
|
|
1249
|
-
return
|
|
1250
|
-
y &&
|
|
1248
|
+
]), v = lt(y);
|
|
1249
|
+
return Jn(() => {
|
|
1250
|
+
y && Yn(y, "assertive", 500);
|
|
1251
1251
|
}, [
|
|
1252
1252
|
y
|
|
1253
1253
|
]), {
|
|
1254
|
-
gridProps: O(p,
|
|
1254
|
+
gridProps: O(p, v, {
|
|
1255
1255
|
// merge sort description with long press information
|
|
1256
1256
|
"aria-describedby": [
|
|
1257
|
-
|
|
1257
|
+
v["aria-describedby"],
|
|
1258
1258
|
p["aria-describedby"]
|
|
1259
1259
|
].filter(Boolean).join(" ")
|
|
1260
1260
|
})
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function uo(t) {
|
|
1264
1264
|
return t && t.__esModule ? t.default : t;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function so(t, e, l) {
|
|
1267
1267
|
var n, o;
|
|
1268
|
-
let { node: i } = t, a = i.props.allowsSorting, { gridCellProps: u } =
|
|
1268
|
+
let { node: i } = t, a = i.props.allowsSorting, { gridCellProps: u } = Xt({
|
|
1269
1269
|
...t,
|
|
1270
1270
|
focusMode: "child"
|
|
1271
|
-
}, e, l), s = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } =
|
|
1271
|
+
}, e, l), s = i.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } = jt({
|
|
1272
1272
|
isDisabled: !a || s,
|
|
1273
1273
|
onPress() {
|
|
1274
1274
|
e.sort(i.key);
|
|
1275
1275
|
},
|
|
1276
1276
|
ref: l
|
|
1277
|
-
}), { focusableProps: c } =
|
|
1278
|
-
i.props.allowsSorting && !
|
|
1279
|
-
let m =
|
|
1280
|
-
a && (h = `${m.format("sortable")}`, p && f &&
|
|
1281
|
-
let y =
|
|
1282
|
-
return
|
|
1283
|
-
|
|
1277
|
+
}), { focusableProps: c } = In({}, l), r, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === i.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
|
|
1278
|
+
i.props.allowsSorting && !Et() && (r = p ? f : "none");
|
|
1279
|
+
let m = Me(uo(Be), "@react-aria/table"), h;
|
|
1280
|
+
a && (h = `${m.format("sortable")}`, p && f && Et() && (h = `${h}, ${m.format(f)}`));
|
|
1281
|
+
let y = lt(h), v = e.collection.size === 0;
|
|
1282
|
+
return se(() => {
|
|
1283
|
+
v && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
|
|
1284
1284
|
}, [
|
|
1285
|
-
|
|
1285
|
+
v,
|
|
1286
1286
|
e.selectionManager,
|
|
1287
1287
|
i.key
|
|
1288
1288
|
]), {
|
|
@@ -1293,18 +1293,18 @@ function ro(t, e, l) {
|
|
|
1293
1293
|
d,
|
|
1294
1294
|
y,
|
|
1295
1295
|
// If the table is empty, make all column headers untabbable
|
|
1296
|
-
|
|
1296
|
+
v ? {
|
|
1297
1297
|
tabIndex: -1
|
|
1298
1298
|
} : null
|
|
1299
1299
|
),
|
|
1300
1300
|
role: "columnheader",
|
|
1301
|
-
id:
|
|
1301
|
+
id: qt(e, i.key),
|
|
1302
1302
|
"aria-colspan": i.colSpan && i.colSpan > 1 ? i.colSpan : void 0,
|
|
1303
1303
|
"aria-sort": r
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
|
-
const
|
|
1307
|
+
const Tt = {
|
|
1308
1308
|
expand: {
|
|
1309
1309
|
ltr: "ArrowRight",
|
|
1310
1310
|
rtl: "ArrowLeft"
|
|
@@ -1314,70 +1314,70 @@ const zt = {
|
|
|
1314
1314
|
rtl: "ArrowRight"
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
|
-
function
|
|
1318
|
-
let { node: n, isVirtualized: o } = t, { rowProps: i, ...a } =
|
|
1319
|
-
o && !(
|
|
1317
|
+
function co(t, e, l) {
|
|
1318
|
+
let { node: n, isVirtualized: o } = t, { rowProps: i, ...a } = oo(t, e, l), { direction: u } = Se();
|
|
1319
|
+
o && !(Oe() && "expandedKeys" in e) ? i["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete i["aria-rowindex"];
|
|
1320
1320
|
let s = {};
|
|
1321
|
-
if (
|
|
1322
|
-
let
|
|
1323
|
-
if (
|
|
1321
|
+
if (Oe() && "expandedKeys" in e) {
|
|
1322
|
+
let g = e.keyMap.get(n.key);
|
|
1323
|
+
if (g != null) {
|
|
1324
1324
|
var d, c, r, p, f, m;
|
|
1325
|
-
let C = ((d =
|
|
1326
|
-
var h, y,
|
|
1325
|
+
let C = ((d = g.props) === null || d === void 0 ? void 0 : d.UNSTABLE_childItems) || ((r = g.props) === null || r === void 0 || (c = r.children) === null || c === void 0 ? void 0 : c.length) > e.userColumnCount;
|
|
1326
|
+
var h, y, v, $;
|
|
1327
1327
|
s = {
|
|
1328
|
-
onKeyDown: (
|
|
1329
|
-
(
|
|
1328
|
+
onKeyDown: (w) => {
|
|
1329
|
+
(w.key === Tt.expand[u] && e.selectionManager.focusedKey === g.key && C && e.expandedKeys !== "all" && !e.expandedKeys.has(g.key) || w.key === Tt.collapse[u] && e.selectionManager.focusedKey === g.key && C && (e.expandedKeys === "all" || e.expandedKeys.has(g.key))) && (e.toggleKey(g.key), w.stopPropagation());
|
|
1330
1330
|
},
|
|
1331
1331
|
"aria-expanded": C ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
|
|
1332
|
-
"aria-level":
|
|
1333
|
-
"aria-posinset": ((h =
|
|
1334
|
-
"aria-setsize":
|
|
1332
|
+
"aria-level": g.level,
|
|
1333
|
+
"aria-posinset": ((h = g.indexOfType) !== null && h !== void 0 ? h : 0) + 1,
|
|
1334
|
+
"aria-setsize": g.level > 1 ? ((v = (p = ue((y = (f = e.keyMap.get(g.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && v !== void 0 ? v : 0) + 1 : (($ = (m = ue(e.collection.body.childNodes)) === null || m === void 0 ? void 0 : m.indexOfType) !== null && $ !== void 0 ? $ : 0) + 1
|
|
1335
1335
|
};
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
let
|
|
1338
|
+
let b = jn(n.props), D = a.hasAction ? b : {};
|
|
1339
1339
|
return {
|
|
1340
1340
|
rowProps: {
|
|
1341
1341
|
...O(i, s, D),
|
|
1342
|
-
"aria-labelledby":
|
|
1342
|
+
"aria-labelledby": Jt(e, n.key)
|
|
1343
1343
|
},
|
|
1344
1344
|
...a
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function fo(t, e, l) {
|
|
1348
1348
|
let { node: n, isVirtualized: o } = t, i = {
|
|
1349
1349
|
role: "row"
|
|
1350
1350
|
};
|
|
1351
|
-
return o && !(
|
|
1351
|
+
return o && !(Oe() && "expandedKeys" in e) && (i["aria-rowindex"] = n.index + 1), {
|
|
1352
1352
|
rowProps: i
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function po(t, e, l) {
|
|
1356
1356
|
var n;
|
|
1357
|
-
let { gridCellProps: o, isPressed: i } =
|
|
1358
|
-
return a != null && e.collection.rowHeaderColumnKeys.has(a) && (o.role = "rowheader", o.id =
|
|
1357
|
+
let { gridCellProps: o, isPressed: i } = Xt(t, e, l), a = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
|
|
1358
|
+
return a != null && e.collection.rowHeaderColumnKeys.has(a) && (o.role = "rowheader", o.id = Zt(e, t.node.parentKey, a)), {
|
|
1359
1359
|
gridCellProps: o,
|
|
1360
1360
|
isPressed: i
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function mo(t) {
|
|
1364
1364
|
return t && t.__esModule ? t.default : t;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function ho(t, e) {
|
|
1367
1367
|
let { key: l } = t;
|
|
1368
|
-
const { checkboxProps: n } =
|
|
1368
|
+
const { checkboxProps: n } = mn(t, e);
|
|
1369
1369
|
return {
|
|
1370
1370
|
checkboxProps: {
|
|
1371
1371
|
...n,
|
|
1372
|
-
"aria-labelledby": `${n.id} ${
|
|
1372
|
+
"aria-labelledby": `${n.id} ${Jt(e, l)}`
|
|
1373
1373
|
}
|
|
1374
1374
|
};
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function bo(t) {
|
|
1377
1377
|
let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
|
|
1378
1378
|
return {
|
|
1379
1379
|
checkboxProps: {
|
|
1380
|
-
"aria-label":
|
|
1380
|
+
"aria-label": Me(mo(Be), "@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,113 +1385,113 @@ function po(t) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function go(t) {
|
|
1389
1389
|
return t && t.__esModule ? t.default : t;
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function vo(t, e, l) {
|
|
1392
1392
|
let { column: n, triggerRef: o, isDisabled: i, onResizeStart: a, onResize: u, onResizeEnd: s, "aria-label": d } = t;
|
|
1393
|
-
const c =
|
|
1394
|
-
let r =
|
|
1393
|
+
const c = Me(go(Be), "@react-aria/table");
|
|
1394
|
+
let r = tt(), p = e.resizingColumn === n.key, f = M(p), m = M(null), h = M(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = Se(), { keyboardProps: $ } = Vn({
|
|
1395
1395
|
onKeyDown: (k) => {
|
|
1396
|
-
y ? (k.key === "Escape" || k.key === "Enter" || k.key === " " || k.key === "Tab") && (k.preventDefault(),
|
|
1396
|
+
y ? (k.key === "Escape" || k.key === "Enter" || k.key === " " || k.key === "Tab") && (k.preventDefault(), g(n)) : (k.continuePropagation(), k.key === "Enter" && b(n));
|
|
1397
1397
|
}
|
|
1398
|
-
}),
|
|
1398
|
+
}), b = Re((k) => {
|
|
1399
1399
|
f.current || (m.current = e.updateResizedColumns(k.key, e.getColumnWidth(k.key)), e.startResize(k.key), e.tableState.setKeyboardNavigationDisabled(!0), a?.(m.current)), f.current = !0;
|
|
1400
|
-
}), D =
|
|
1401
|
-
let
|
|
1402
|
-
u?.(
|
|
1403
|
-
}),
|
|
1404
|
-
f.current && (m.current == null && (m.current = e.updateResizedColumns(k.key, e.getColumnWidth(k.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), s?.(m.current), f.current = !1, o?.current && !h.current &&
|
|
1400
|
+
}), D = Re((k, S) => {
|
|
1401
|
+
let V = e.updateResizedColumns(k.key, S);
|
|
1402
|
+
u?.(V), m.current = V;
|
|
1403
|
+
}), g = Re((k) => {
|
|
1404
|
+
f.current && (m.current == null && (m.current = e.updateResizedColumns(k.key, e.getColumnWidth(k.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), s?.(m.current), f.current = !1, o?.current && !h.current && ee(o.current)), m.current = null;
|
|
1405
1405
|
});
|
|
1406
|
-
const C =
|
|
1406
|
+
const C = M(0), { moveProps: w } = eo({
|
|
1407
1407
|
onMoveStart() {
|
|
1408
|
-
C.current = e.getColumnWidth(n.key),
|
|
1408
|
+
C.current = e.getColumnWidth(n.key), b(n);
|
|
1409
1409
|
},
|
|
1410
1410
|
onMove(k) {
|
|
1411
|
-
let { deltaX:
|
|
1412
|
-
|
|
1411
|
+
let { deltaX: S, deltaY: V, pointerType: re } = k;
|
|
1412
|
+
v === "rtl" && (S *= -1), re === "keyboard" && (V !== 0 && S === 0 && (S = V * -1), S *= 10), S !== 0 && (C.current += S, D(n, C.current));
|
|
1413
1413
|
},
|
|
1414
1414
|
onMoveEnd(k) {
|
|
1415
|
-
let { pointerType:
|
|
1416
|
-
C.current = 0, (
|
|
1415
|
+
let { pointerType: S } = k;
|
|
1416
|
+
C.current = 0, (S === "mouse" || S === "touch" && h.current) && g(n);
|
|
1417
1417
|
}
|
|
1418
1418
|
});
|
|
1419
|
-
let
|
|
1420
|
-
var
|
|
1421
|
-
y && ((
|
|
1419
|
+
let T = W((k) => {
|
|
1420
|
+
var S;
|
|
1421
|
+
y && ((S = w.onKeyDown) === null || S === void 0 || S.call(w, k));
|
|
1422
1422
|
}, [
|
|
1423
1423
|
y,
|
|
1424
|
-
|
|
1425
|
-
]),
|
|
1424
|
+
w
|
|
1425
|
+
]), P = Math.floor(e.getColumnMinWidth(n.key)), z = Math.floor(e.getColumnMaxWidth(n.key));
|
|
1426
1426
|
z === 1 / 0 && (z = Number.MAX_SAFE_INTEGER);
|
|
1427
|
-
let
|
|
1427
|
+
let F = Math.floor(e.getColumnWidth(n.key)), H = Hn();
|
|
1428
1428
|
H === "virtual" && typeof window < "u" && "ontouchstart" in window && (H = "touch");
|
|
1429
|
-
let j = o?.current == null && (H === "keyboard" || H === "virtual") && !p ? c.format("resizerDescription") : void 0,
|
|
1429
|
+
let j = o?.current == null && (H === "keyboard" || H === "virtual") && !p ? c.format("resizerDescription") : void 0, I = lt(j), K = {
|
|
1430
1430
|
"aria-label": d,
|
|
1431
1431
|
"aria-orientation": "horizontal",
|
|
1432
|
-
"aria-labelledby": `${r} ${
|
|
1432
|
+
"aria-labelledby": `${r} ${qt(e.tableState, n.key)}`,
|
|
1433
1433
|
"aria-valuetext": c.format("columnSize", {
|
|
1434
|
-
value:
|
|
1434
|
+
value: F
|
|
1435
1435
|
}),
|
|
1436
1436
|
type: "range",
|
|
1437
|
-
min:
|
|
1437
|
+
min: P,
|
|
1438
1438
|
max: z,
|
|
1439
|
-
value:
|
|
1440
|
-
...
|
|
1439
|
+
value: F,
|
|
1440
|
+
...I
|
|
1441
1441
|
};
|
|
1442
1442
|
const Y = W(() => {
|
|
1443
|
-
l.current &&
|
|
1443
|
+
l.current && ee(l.current);
|
|
1444
1444
|
}, [
|
|
1445
1445
|
l
|
|
1446
1446
|
]);
|
|
1447
|
-
let U = e.resizingColumn,
|
|
1448
|
-
|
|
1449
|
-
if (
|
|
1450
|
-
h.current = document.activeElement === l.current,
|
|
1451
|
-
let k = setTimeout(() => Y(), 0),
|
|
1447
|
+
let U = e.resizingColumn, ne = M(null);
|
|
1448
|
+
se(() => {
|
|
1449
|
+
if (ne.current !== U && U != null && U === n.key) {
|
|
1450
|
+
h.current = document.activeElement === l.current, b(n);
|
|
1451
|
+
let k = setTimeout(() => Y(), 0), S = setTimeout(Y, 400);
|
|
1452
1452
|
return () => {
|
|
1453
|
-
clearTimeout(k), clearTimeout(
|
|
1453
|
+
clearTimeout(k), clearTimeout(S);
|
|
1454
1454
|
};
|
|
1455
1455
|
}
|
|
1456
|
-
|
|
1456
|
+
ne.current = U;
|
|
1457
1457
|
}, [
|
|
1458
1458
|
U,
|
|
1459
1459
|
n,
|
|
1460
1460
|
Y,
|
|
1461
1461
|
l,
|
|
1462
|
-
|
|
1462
|
+
b
|
|
1463
1463
|
]);
|
|
1464
1464
|
let pe = (k) => {
|
|
1465
|
-
let
|
|
1466
|
-
|
|
1467
|
-
}, { pressProps:
|
|
1465
|
+
let S = e.getColumnWidth(n.key), V = parseFloat(k.target.value);
|
|
1466
|
+
V > S ? V = S + 10 : V = S - 10, D(n, V);
|
|
1467
|
+
}, { pressProps: me } = jt({
|
|
1468
1468
|
preventFocusOnPress: !0,
|
|
1469
1469
|
onPressStart: (k) => {
|
|
1470
1470
|
if (!(k.ctrlKey || k.altKey || k.metaKey || k.shiftKey || k.pointerType === "keyboard")) {
|
|
1471
1471
|
if (k.pointerType === "virtual" && e.resizingColumn != null) {
|
|
1472
|
-
|
|
1472
|
+
g(n);
|
|
1473
1473
|
return;
|
|
1474
1474
|
}
|
|
1475
|
-
Y(), k.pointerType !== "virtual" &&
|
|
1475
|
+
Y(), k.pointerType !== "virtual" && b(n);
|
|
1476
1476
|
}
|
|
1477
1477
|
},
|
|
1478
1478
|
onPress: (k) => {
|
|
1479
|
-
(k.pointerType === "touch" && h.current || k.pointerType === "mouse") && e.resizingColumn != null &&
|
|
1479
|
+
(k.pointerType === "touch" && h.current || k.pointerType === "mouse") && e.resizingColumn != null && g(n);
|
|
1480
1480
|
}
|
|
1481
|
-
}), { visuallyHiddenProps:
|
|
1481
|
+
}), { visuallyHiddenProps: _ } = Ye();
|
|
1482
1482
|
return {
|
|
1483
1483
|
resizerProps: O($, {
|
|
1484
|
-
...
|
|
1485
|
-
onKeyDown:
|
|
1486
|
-
},
|
|
1484
|
+
...w,
|
|
1485
|
+
onKeyDown: T
|
|
1486
|
+
}, me, {
|
|
1487
1487
|
style: {
|
|
1488
1488
|
touchAction: "none"
|
|
1489
1489
|
}
|
|
1490
1490
|
}),
|
|
1491
|
-
inputProps: O(
|
|
1491
|
+
inputProps: O(_, {
|
|
1492
1492
|
id: r,
|
|
1493
1493
|
onBlur: () => {
|
|
1494
|
-
|
|
1494
|
+
g(n);
|
|
1495
1495
|
},
|
|
1496
1496
|
onChange: pe,
|
|
1497
1497
|
disabled: i
|
|
@@ -1499,18 +1499,18 @@ function ho(t, e, l) {
|
|
|
1499
1499
|
isResizing: p
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1503
|
-
return
|
|
1502
|
+
function Pl() {
|
|
1503
|
+
return no();
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function yo(t) {
|
|
1506
1506
|
return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function $o(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 it(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,27 +1518,27 @@ function ot(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 ? it(t, e) : Number.MAX_SAFE_INTEGER;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
return t != null ?
|
|
1524
|
+
function Bl(t, e) {
|
|
1525
|
+
return t != null ? it(t, e) : 0;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function xo(t, e, l, n, o) {
|
|
1528
1528
|
let i = !1, a = e.map((u, s) => {
|
|
1529
1529
|
var d, c, r, p;
|
|
1530
|
-
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (r = (c = u.width) !== null && c !== void 0 ? c : u.defaultWidth) !== null && r !== void 0 ? r : n?.(s)) !== null && p !== void 0 ? p : "1fr", m = !1, h = 0, y = 0,
|
|
1531
|
-
|
|
1532
|
-
var $,
|
|
1533
|
-
let D =
|
|
1534
|
-
return m ?
|
|
1530
|
+
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (r = (c = u.width) !== null && c !== void 0 ? c : u.defaultWidth) !== null && r !== void 0 ? r : n?.(s)) !== null && p !== void 0 ? p : "1fr", m = !1, h = 0, y = 0, v = 0;
|
|
1531
|
+
yo(f) ? (h = it(f, t), m = !0) : (y = $o(f), y <= 0 && (m = !0));
|
|
1532
|
+
var $, b;
|
|
1533
|
+
let D = Bl((b = ($ = u.minWidth) !== null && $ !== void 0 ? $ : o?.(s)) !== null && b !== void 0 ? b : 0, t), g = Ml(u.maxWidth, t), C = Math.max(D, Math.min(h, g));
|
|
1534
|
+
return m ? v = C : h > C && (m = !0, v = C), m || (i = !0), {
|
|
1535
1535
|
frozen: m,
|
|
1536
1536
|
baseSize: h,
|
|
1537
1537
|
hypotheticalMainSize: C,
|
|
1538
1538
|
min: D,
|
|
1539
|
-
max:
|
|
1539
|
+
max: g,
|
|
1540
1540
|
flex: y,
|
|
1541
|
-
targetMainSize:
|
|
1541
|
+
targetMainSize: v,
|
|
1542
1542
|
violation: 0
|
|
1543
1543
|
};
|
|
1544
1544
|
});
|
|
@@ -1564,16 +1564,16 @@ function vo(t, e, l, n, o) {
|
|
|
1564
1564
|
c === 0 || Math.sign(c) === Math.sign(r.violation) ? r.frozen = !0 : r.frozen || (i = !0);
|
|
1565
1565
|
});
|
|
1566
1566
|
}
|
|
1567
|
-
return
|
|
1567
|
+
return Do(a);
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Do(t) {
|
|
1570
1570
|
let e = 0, l = 0, n = [];
|
|
1571
1571
|
return t.forEach(function(o) {
|
|
1572
1572
|
let i = o.targetMainSize, a = Math.round(i + e) - l;
|
|
1573
1573
|
e += i, l += a, n.push(a);
|
|
1574
1574
|
}), n;
|
|
1575
1575
|
}
|
|
1576
|
-
class
|
|
1576
|
+
class Co {
|
|
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 $o {
|
|
|
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(), xo(e, l.columns.map((i) => ({
|
|
1625
1625
|
...i.props,
|
|
1626
1626
|
key: i.key
|
|
1627
1627
|
})), n, (i) => this.getDefaultWidth(l.columns[i]), (i) => this.getDefaultMinWidth(l.columns[i])).forEach((i, a) => {
|
|
1628
1628
|
let u = l.columns[a].key, s = l.columns[a];
|
|
1629
1629
|
this.columnWidths.set(u, i);
|
|
1630
1630
|
var d;
|
|
1631
|
-
this.columnMinWidths.set(u,
|
|
1631
|
+
this.columnMinWidths.set(u, Bl((d = s.props.minWidth) !== null && d !== void 0 ? d : this.getDefaultMinWidth(s), e)), this.columnMaxWidths.set(u, Ml(s.props.maxWidth, e));
|
|
1632
1632
|
}), this.columnWidths;
|
|
1633
1633
|
}
|
|
1634
1634
|
constructor(e) {
|
|
@@ -1639,8 +1639,8 @@ class $o {
|
|
|
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, [i, a] = q(null), u = N(() => new
|
|
1642
|
+
function wo(t, e) {
|
|
1643
|
+
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [i, a] = q(null), u = N(() => new Co({
|
|
1644
1644
|
getDefaultWidth: l,
|
|
1645
1645
|
getDefaultMinWidth: n
|
|
1646
1646
|
}), [
|
|
@@ -1651,9 +1651,9 @@ function xo(t, e) {
|
|
|
1651
1651
|
u
|
|
1652
1652
|
]), [c, r] = q(() => u.getInitialUncontrolledWidths(d)), [p, f] = q(e.collection.columns);
|
|
1653
1653
|
if (e.collection.columns !== p) {
|
|
1654
|
-
if (e.collection.columns.length !== p.length || e.collection.columns.some((
|
|
1655
|
-
let
|
|
1656
|
-
r(
|
|
1654
|
+
if (e.collection.columns.length !== p.length || e.collection.columns.some((b, D) => b.key !== p[D].key)) {
|
|
1655
|
+
let b = u.getInitialUncontrolledWidths(d);
|
|
1656
|
+
r(b);
|
|
1657
1657
|
}
|
|
1658
1658
|
f(e.collection.columns);
|
|
1659
1659
|
}
|
|
@@ -1663,23 +1663,23 @@ function xo(t, e) {
|
|
|
1663
1663
|
d,
|
|
1664
1664
|
s,
|
|
1665
1665
|
u
|
|
1666
|
-
]), h = W((
|
|
1667
|
-
a(
|
|
1666
|
+
]), h = W((b) => {
|
|
1667
|
+
a(b);
|
|
1668
1668
|
}, [
|
|
1669
1669
|
a
|
|
1670
|
-
]), y = W((
|
|
1671
|
-
let
|
|
1672
|
-
|
|
1673
|
-
|
|
1670
|
+
]), y = W((b, D) => {
|
|
1671
|
+
let g = u.resizeColumnWidth(e.collection, c, b, D), C = new Map(Array.from(d).map(([w]) => [
|
|
1672
|
+
w,
|
|
1673
|
+
g.get(w)
|
|
1674
1674
|
]));
|
|
1675
|
-
return C.set(
|
|
1675
|
+
return C.set(b, D), r(C), g;
|
|
1676
1676
|
}, [
|
|
1677
1677
|
d,
|
|
1678
1678
|
r,
|
|
1679
1679
|
u,
|
|
1680
1680
|
e.collection,
|
|
1681
1681
|
c
|
|
1682
|
-
]),
|
|
1682
|
+
]), v = W(() => {
|
|
1683
1683
|
a(null);
|
|
1684
1684
|
}, [
|
|
1685
1685
|
a
|
|
@@ -1693,10 +1693,10 @@ function xo(t, e) {
|
|
|
1693
1693
|
resizingColumn: i,
|
|
1694
1694
|
updateResizedColumns: y,
|
|
1695
1695
|
startResize: h,
|
|
1696
|
-
endResize:
|
|
1697
|
-
getColumnWidth: (
|
|
1698
|
-
getColumnMinWidth: (
|
|
1699
|
-
getColumnMaxWidth: (
|
|
1696
|
+
endResize: v,
|
|
1697
|
+
getColumnWidth: (b) => u.getColumnWidth(b),
|
|
1698
|
+
getColumnMinWidth: (b) => u.getColumnMinWidth(b),
|
|
1699
|
+
getColumnMaxWidth: (b) => u.getColumnMaxWidth(b),
|
|
1700
1700
|
tableState: e,
|
|
1701
1701
|
columnWidths: $
|
|
1702
1702
|
}), [
|
|
@@ -1705,12 +1705,12 @@ function xo(t, e) {
|
|
|
1705
1705
|
i,
|
|
1706
1706
|
y,
|
|
1707
1707
|
h,
|
|
1708
|
-
|
|
1708
|
+
v,
|
|
1709
1709
|
e
|
|
1710
1710
|
]);
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1713
|
-
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState ||
|
|
1712
|
+
function So(t) {
|
|
1713
|
+
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || Wt(t), o = N(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1714
1714
|
t.disabledKeys
|
|
1715
1715
|
]), i = n.setFocusedKey;
|
|
1716
1716
|
n.setFocusedKey = (s, d) => {
|
|
@@ -1725,12 +1725,12 @@ function Do(t) {
|
|
|
1725
1725
|
}
|
|
1726
1726
|
i(s, d);
|
|
1727
1727
|
};
|
|
1728
|
-
let a = N(() => new
|
|
1728
|
+
let a = N(() => new yn(e, n), [
|
|
1729
1729
|
e,
|
|
1730
1730
|
n
|
|
1731
1731
|
]);
|
|
1732
|
-
const u =
|
|
1733
|
-
return
|
|
1732
|
+
const u = M(null);
|
|
1733
|
+
return se(() => {
|
|
1734
1734
|
if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
|
|
1735
1735
|
const s = u.current.getItem(n.focusedKey), d = s?.parentKey != null && (s.type === "cell" || s.type === "rowheader" || s.type === "column") ? u.current.getItem(s.parentKey) : s;
|
|
1736
1736
|
if (!d) {
|
|
@@ -1766,7 +1766,7 @@ function Do(t) {
|
|
|
1766
1766
|
selectionManager: a
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
|
-
class
|
|
1769
|
+
class ko {
|
|
1770
1770
|
*[Symbol.iterator]() {
|
|
1771
1771
|
yield* [
|
|
1772
1772
|
...this.rows
|
|
@@ -1825,22 +1825,22 @@ class Co {
|
|
|
1825
1825
|
let f = /* @__PURE__ */ new Set(), m = null, h = !1;
|
|
1826
1826
|
if (r.type === "item") {
|
|
1827
1827
|
var y;
|
|
1828
|
-
for (let
|
|
1828
|
+
for (let g of r.childNodes) if (((y = g.props) === null || y === void 0 ? void 0 : y.colSpan) !== void 0) {
|
|
1829
1829
|
h = !0;
|
|
1830
1830
|
break;
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
for (let
|
|
1834
|
-
if (
|
|
1835
|
-
var
|
|
1836
|
-
|
|
1837
|
-
var
|
|
1838
|
-
|
|
1833
|
+
for (let g of r.childNodes) {
|
|
1834
|
+
if (g.type === "cell" && h) {
|
|
1835
|
+
var v, $;
|
|
1836
|
+
g.colspan = (v = g.props) === null || v === void 0 ? void 0 : v.colSpan, g.colSpan = ($ = g.props) === null || $ === void 0 ? void 0 : $.colSpan;
|
|
1837
|
+
var b, D;
|
|
1838
|
+
g.colIndex = m ? ((b = m.colIndex) !== null && b !== void 0 ? b : m.index) + ((D = m.colSpan) !== null && D !== void 0 ? D : 1) : g.index;
|
|
1839
1839
|
}
|
|
1840
|
-
|
|
1840
|
+
g.type === "cell" && g.parentKey == null && (g.parentKey = r.key), f.add(g.key), m ? (m.nextKey = g.key, g.prevKey = m.key) : g.prevKey = null, l(g), m = g;
|
|
1841
1841
|
}
|
|
1842
1842
|
if (m && (m.nextKey = null), p)
|
|
1843
|
-
for (let
|
|
1843
|
+
for (let g of p.childNodes) f.has(g.key) || n(g);
|
|
1844
1844
|
}, n = (r) => {
|
|
1845
1845
|
this.keyMap.delete(r.key);
|
|
1846
1846
|
for (let p of r.childNodes) this.keyMap.get(p.key) === p && n(p);
|
|
@@ -1866,10 +1866,10 @@ class Co {
|
|
|
1866
1866
|
o && (o.nextKey = null);
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
-
const
|
|
1870
|
-
let
|
|
1871
|
-
for (;
|
|
1872
|
-
function
|
|
1869
|
+
const Nl = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1870
|
+
let Qe = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1871
|
+
for (; Nl === Qe; ) Qe = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1872
|
+
function Kl(t, e) {
|
|
1873
1873
|
if (e.length === 0) return [];
|
|
1874
1874
|
let l = [], n = /* @__PURE__ */ new Map();
|
|
1875
1875
|
for (let c of e) {
|
|
@@ -1902,8 +1902,8 @@ function Bl(t, e) {
|
|
|
1902
1902
|
for (let p of c) {
|
|
1903
1903
|
if (p) {
|
|
1904
1904
|
let f = u[r], m = f.reduce((h, y) => {
|
|
1905
|
-
var
|
|
1906
|
-
return h + ((
|
|
1905
|
+
var v;
|
|
1906
|
+
return h + ((v = y.colSpan) !== null && v !== void 0 ? v : 1);
|
|
1907
1907
|
}, 0);
|
|
1908
1908
|
if (m < s) {
|
|
1909
1909
|
let h = {
|
|
@@ -1964,7 +1964,7 @@ function Bl(t, e) {
|
|
|
1964
1964
|
textValue: ""
|
|
1965
1965
|
}));
|
|
1966
1966
|
}
|
|
1967
|
-
class
|
|
1967
|
+
class Eo extends ko {
|
|
1968
1968
|
*[Symbol.iterator]() {
|
|
1969
1969
|
yield* this.body.childNodes;
|
|
1970
1970
|
}
|
|
@@ -2025,7 +2025,7 @@ class wo extends Co {
|
|
|
2025
2025
|
if (n?.showSelectionCheckboxes) {
|
|
2026
2026
|
let r = {
|
|
2027
2027
|
type: "column",
|
|
2028
|
-
key:
|
|
2028
|
+
key: Nl,
|
|
2029
2029
|
value: null,
|
|
2030
2030
|
textValue: "",
|
|
2031
2031
|
level: 0,
|
|
@@ -2042,7 +2042,7 @@ class wo extends Co {
|
|
|
2042
2042
|
if (n?.showDragButtons) {
|
|
2043
2043
|
let r = {
|
|
2044
2044
|
type: "column",
|
|
2045
|
-
key:
|
|
2045
|
+
key: Qe,
|
|
2046
2046
|
value: null,
|
|
2047
2047
|
textValue: "",
|
|
2048
2048
|
level: 0,
|
|
@@ -2071,7 +2071,7 @@ class wo extends Co {
|
|
|
2071
2071
|
for (let p of r.childNodes) d(p);
|
|
2072
2072
|
};
|
|
2073
2073
|
for (let r of e) d(r);
|
|
2074
|
-
let c =
|
|
2074
|
+
let c = Kl(s, a);
|
|
2075
2075
|
if (c.forEach((r, p) => u.splice(p, 0, r)), super({
|
|
2076
2076
|
columnCount: a.length,
|
|
2077
2077
|
items: u,
|
|
@@ -2087,11 +2087,11 @@ class wo extends Co {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
|
-
const
|
|
2090
|
+
const zo = {
|
|
2091
2091
|
ascending: "descending",
|
|
2092
2092
|
descending: "ascending"
|
|
2093
2093
|
};
|
|
2094
|
-
function
|
|
2094
|
+
function Ro(t) {
|
|
2095
2095
|
let [e, l] = q(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: i } = t, a = N(() => ({
|
|
2096
2096
|
showSelectionCheckboxes: o && n !== "none",
|
|
2097
2097
|
showDragButtons: i,
|
|
@@ -2102,9 +2102,9 @@ function ko(t) {
|
|
|
2102
2102
|
o,
|
|
2103
2103
|
n,
|
|
2104
2104
|
i
|
|
2105
|
-
]), u =
|
|
2105
|
+
]), u = $n(t, W((r) => new Eo(r, null, a), [
|
|
2106
2106
|
a
|
|
2107
|
-
]), a), { disabledKeys: s, selectionManager: d } =
|
|
2107
|
+
]), a), { disabledKeys: s, selectionManager: d } = So({
|
|
2108
2108
|
...t,
|
|
2109
2109
|
collection: u,
|
|
2110
2110
|
disabledBehavior: t.disabledBehavior || "selection"
|
|
@@ -2122,12 +2122,12 @@ function ko(t) {
|
|
|
2122
2122
|
var f, m;
|
|
2123
2123
|
(m = t.onSortChange) === null || m === void 0 || m.call(t, {
|
|
2124
2124
|
column: r,
|
|
2125
|
-
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === r ?
|
|
2125
|
+
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === r ? zo[t.sortDescriptor.direction] : "ascending")
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
2128
|
};
|
|
2129
2129
|
}
|
|
2130
|
-
function
|
|
2130
|
+
function To(t, e) {
|
|
2131
2131
|
let l = N(() => e ? t.collection.filter(e) : t.collection, [
|
|
2132
2132
|
t.collection,
|
|
2133
2133
|
e
|
|
@@ -2138,10 +2138,10 @@ function Eo(t, e) {
|
|
|
2138
2138
|
selectionManager: n
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function Ao(t) {
|
|
2142
2142
|
return t && t.__esModule ? t.default : t;
|
|
2143
2143
|
}
|
|
2144
|
-
class
|
|
2144
|
+
class Po extends Tn {
|
|
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 Ro extends En {
|
|
|
2171
2171
|
for (let i of this.getChildren(o.key)) n(i);
|
|
2172
2172
|
};
|
|
2173
2173
|
for (let o of this.getChildren(this.head.key)) n(o);
|
|
2174
|
-
if (this.headerRows =
|
|
2174
|
+
if (this.headerRows = Kl(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,25 +2221,25 @@ class Ro extends En {
|
|
|
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 ut(-1), this.body = new st(-2), this.columnsDirty = !0;
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
|
-
const
|
|
2228
|
-
let n = Q(l), o =
|
|
2229
|
-
|
|
2227
|
+
const rt = /* @__PURE__ */ de(null), Mo = /* @__PURE__ */ je(function(e, l) {
|
|
2228
|
+
let n = Q(l), o = M(null), i = M(null), [a, u] = q(0);
|
|
2229
|
+
kt(() => {
|
|
2230
2230
|
let d = o.current;
|
|
2231
|
-
for (; d && d !== n.current && !
|
|
2231
|
+
for (; d && d !== n.current && !Bn(d); ) d = d.parentElement;
|
|
2232
2232
|
i.current = d;
|
|
2233
2233
|
}, [
|
|
2234
2234
|
n
|
|
2235
|
-
]),
|
|
2235
|
+
]), Mn({
|
|
2236
2236
|
ref: i,
|
|
2237
2237
|
box: "border-box",
|
|
2238
2238
|
onResize() {
|
|
2239
2239
|
var d, c;
|
|
2240
2240
|
u((c = (d = i.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && c !== void 0 ? c : 0);
|
|
2241
2241
|
}
|
|
2242
|
-
}),
|
|
2242
|
+
}), kt(() => {
|
|
2243
2243
|
var d, c;
|
|
2244
2244
|
u((c = (d = i.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && c !== void 0 ? c : 0);
|
|
2245
2245
|
}, []);
|
|
@@ -2247,7 +2247,7 @@ const it = /* @__PURE__ */ he(null), To = /* @__PURE__ */ Oe(function(e, l) {
|
|
|
2247
2247
|
tableRef: o,
|
|
2248
2248
|
scrollRef: i,
|
|
2249
2249
|
tableWidth: a,
|
|
2250
|
-
useTableColumnResizeState:
|
|
2250
|
+
useTableColumnResizeState: wo,
|
|
2251
2251
|
onResizeStart: e.onResizeStart,
|
|
2252
2252
|
onResize: e.onResize,
|
|
2253
2253
|
onResizeEnd: e.onResizeEnd
|
|
@@ -2259,20 +2259,20 @@ const it = /* @__PURE__ */ he(null), To = /* @__PURE__ */ Oe(function(e, l) {
|
|
|
2259
2259
|
e.onResizeEnd
|
|
2260
2260
|
]);
|
|
2261
2261
|
return /* @__PURE__ */ E.createElement("div", {
|
|
2262
|
-
...
|
|
2262
|
+
...le(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__ */ E.createElement(
|
|
2269
|
+
}, /* @__PURE__ */ E.createElement(rt.Provider, {
|
|
2270
2270
|
value: s
|
|
2271
2271
|
}, e.children));
|
|
2272
|
-
}),
|
|
2272
|
+
}), Bo = /* @__PURE__ */ de(null), ie = /* @__PURE__ */ de(null), at = /* @__PURE__ */ de(null), No = /* @__PURE__ */ je(function(e, l) {
|
|
2273
2273
|
var n;
|
|
2274
|
-
[e, l] =
|
|
2275
|
-
let o =
|
|
2274
|
+
[e, l] = Lt(e, l, Bo);
|
|
2275
|
+
let o = Wt(e), { selectionBehavior: i, selectionMode: a, disallowEmptySelection: u } = o, s = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), d = N(() => ({
|
|
2276
2276
|
selectionBehavior: a === "none" ? null : i,
|
|
2277
2277
|
selectionMode: a,
|
|
2278
2278
|
disallowEmptySelection: u,
|
|
@@ -2282,169 +2282,169 @@ const it = /* @__PURE__ */ he(null), To = /* @__PURE__ */ Oe(function(e, l) {
|
|
|
2282
2282
|
a,
|
|
2283
2283
|
u,
|
|
2284
2284
|
s
|
|
2285
|
-
]), c = /* @__PURE__ */ E.createElement(
|
|
2285
|
+
]), c = /* @__PURE__ */ E.createElement(Fl.Provider, {
|
|
2286
2286
|
value: d
|
|
2287
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2288
|
-
return /* @__PURE__ */ E.createElement(
|
|
2287
|
+
}, /* @__PURE__ */ E.createElement(Ae, e));
|
|
2288
|
+
return /* @__PURE__ */ E.createElement(zn, {
|
|
2289
2289
|
content: c,
|
|
2290
|
-
createCollection: () => new
|
|
2291
|
-
}, (r) => /* @__PURE__ */ E.createElement(
|
|
2290
|
+
createCollection: () => new Po()
|
|
2291
|
+
}, (r) => /* @__PURE__ */ E.createElement(Ko, {
|
|
2292
2292
|
props: e,
|
|
2293
2293
|
forwardedRef: l,
|
|
2294
2294
|
selectionState: o,
|
|
2295
2295
|
collection: r
|
|
2296
2296
|
}));
|
|
2297
2297
|
});
|
|
2298
|
-
function
|
|
2299
|
-
[t, e] =
|
|
2300
|
-
let { shouldUseVirtualFocus: o, disallowTypeAhead: i, filter: a, ...u } = t, s = B(
|
|
2301
|
-
e = Q(N(() =>
|
|
2298
|
+
function Ko({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
2299
|
+
[t, e] = Lt(t, e, wt);
|
|
2300
|
+
let { shouldUseVirtualFocus: o, disallowTypeAhead: i, filter: a, ...u } = t, s = B(rt);
|
|
2301
|
+
e = Q(N(() => xn(e, s?.tableRef), [
|
|
2302
2302
|
e,
|
|
2303
2303
|
s?.tableRef
|
|
2304
2304
|
]));
|
|
2305
|
-
let d =
|
|
2305
|
+
let d = Ro({
|
|
2306
2306
|
...u,
|
|
2307
2307
|
collection: n,
|
|
2308
2308
|
children: void 0,
|
|
2309
2309
|
UNSAFE_selectionState: l
|
|
2310
|
-
}), c =
|
|
2310
|
+
}), c = To(d, a), { isVirtualized: r, layoutDelegate: p, dropTargetDelegate: f, CollectionRoot: m } = B(te), { dragAndDropHooks: h } = t, { gridProps: y } = ao({
|
|
2311
2311
|
...u,
|
|
2312
2312
|
layoutDelegate: p,
|
|
2313
2313
|
isVirtualized: r
|
|
2314
|
-
}, c, e),
|
|
2315
|
-
|
|
2316
|
-
process.env.NODE_ENV !== "production" && (D.current !== $ && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),
|
|
2314
|
+
}, c, e), v = c.selectionManager, $ = !!h?.useDraggableCollectionState, b = !!h?.useDroppableCollectionState, D = M($), g = M(b);
|
|
2315
|
+
se(() => {
|
|
2316
|
+
process.env.NODE_ENV !== "production" && (D.current !== $ && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), g.current !== b && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
2317
2317
|
}, [
|
|
2318
2318
|
$,
|
|
2319
|
-
|
|
2319
|
+
b
|
|
2320
2320
|
]);
|
|
2321
|
-
let C,
|
|
2321
|
+
let C, w, T, P = !1, z = null, F = M(null);
|
|
2322
2322
|
if ($ && h) {
|
|
2323
2323
|
C = h.useDraggableCollectionState({
|
|
2324
2324
|
collection: c.collection,
|
|
2325
|
-
selectionManager:
|
|
2326
|
-
preview: h.renderDragPreview ?
|
|
2325
|
+
selectionManager: v,
|
|
2326
|
+
preview: h.renderDragPreview ? F : void 0
|
|
2327
2327
|
}), h.useDraggableCollection({}, C, e);
|
|
2328
2328
|
let k = h.DragPreview;
|
|
2329
2329
|
z = h.renderDragPreview ? /* @__PURE__ */ E.createElement(k, {
|
|
2330
|
-
ref:
|
|
2330
|
+
ref: F
|
|
2331
2331
|
}, h.renderDragPreview) : null;
|
|
2332
2332
|
}
|
|
2333
|
-
if (
|
|
2334
|
-
|
|
2333
|
+
if (b && h) {
|
|
2334
|
+
w = h.useDroppableCollectionState({
|
|
2335
2335
|
collection: c.collection,
|
|
2336
|
-
selectionManager:
|
|
2336
|
+
selectionManager: v
|
|
2337
2337
|
});
|
|
2338
|
-
let k = new
|
|
2338
|
+
let k = new Gn({
|
|
2339
2339
|
collection: c.collection,
|
|
2340
|
-
disabledKeys:
|
|
2341
|
-
disabledBehavior:
|
|
2340
|
+
disabledKeys: v.disabledKeys,
|
|
2341
|
+
disabledBehavior: v.disabledBehavior,
|
|
2342
2342
|
ref: e,
|
|
2343
2343
|
layoutDelegate: p
|
|
2344
|
-
}),
|
|
2345
|
-
|
|
2344
|
+
}), S = h.dropTargetDelegate || f || new h.ListDropTargetDelegate(n.rows, e);
|
|
2345
|
+
T = h.useDroppableCollection({
|
|
2346
2346
|
keyboardDelegate: k,
|
|
2347
|
-
dropTargetDelegate:
|
|
2348
|
-
},
|
|
2347
|
+
dropTargetDelegate: S
|
|
2348
|
+
}, w, e), P = w.isDropTarget({
|
|
2349
2349
|
type: "root"
|
|
2350
2350
|
});
|
|
2351
2351
|
}
|
|
2352
|
-
let { focusProps: H, isFocused: j, isFocusVisible:
|
|
2352
|
+
let { focusProps: H, isFocused: j, isFocusVisible: I } = Ce(), K = ce({
|
|
2353
2353
|
className: t.className,
|
|
2354
2354
|
style: t.style,
|
|
2355
2355
|
defaultClassName: "react-aria-Table",
|
|
2356
2356
|
values: {
|
|
2357
|
-
isDropTarget:
|
|
2357
|
+
isDropTarget: P,
|
|
2358
2358
|
isFocused: j,
|
|
2359
|
-
isFocusVisible:
|
|
2359
|
+
isFocusVisible: I,
|
|
2360
2360
|
state: c
|
|
2361
2361
|
}
|
|
2362
|
-
}), Y = !!($ && !C?.isDisabled), U = K.style,
|
|
2363
|
-
s && (
|
|
2362
|
+
}), Y = !!($ && !C?.isDisabled), U = K.style, ne = null;
|
|
2363
|
+
s && (ne = s.useTableColumnResizeState({
|
|
2364
2364
|
tableWidth: s.tableWidth
|
|
2365
2365
|
}, c), r || (U = {
|
|
2366
2366
|
...U,
|
|
2367
2367
|
tableLayout: "fixed",
|
|
2368
2368
|
width: "fit-content"
|
|
2369
2369
|
}));
|
|
2370
|
-
let pe = G("table"),
|
|
2370
|
+
let pe = G("table"), me = le(t, {
|
|
2371
2371
|
global: !0
|
|
2372
2372
|
});
|
|
2373
|
-
var
|
|
2374
|
-
return /* @__PURE__ */ E.createElement(
|
|
2373
|
+
var _;
|
|
2374
|
+
return /* @__PURE__ */ E.createElement(Ue, {
|
|
2375
2375
|
values: [
|
|
2376
2376
|
[
|
|
2377
|
-
|
|
2377
|
+
ie,
|
|
2378
2378
|
c
|
|
2379
2379
|
],
|
|
2380
2380
|
[
|
|
2381
|
-
|
|
2382
|
-
|
|
2381
|
+
at,
|
|
2382
|
+
ne
|
|
2383
2383
|
],
|
|
2384
2384
|
[
|
|
2385
2385
|
we,
|
|
2386
2386
|
{
|
|
2387
2387
|
dragAndDropHooks: h,
|
|
2388
2388
|
dragState: C,
|
|
2389
|
-
dropState:
|
|
2389
|
+
dropState: w
|
|
2390
2390
|
}
|
|
2391
2391
|
],
|
|
2392
2392
|
[
|
|
2393
|
-
|
|
2393
|
+
Cn,
|
|
2394
2394
|
{
|
|
2395
|
-
render:
|
|
2395
|
+
render: Oo
|
|
2396
2396
|
}
|
|
2397
2397
|
],
|
|
2398
2398
|
[
|
|
2399
|
-
|
|
2399
|
+
wt,
|
|
2400
2400
|
null
|
|
2401
2401
|
],
|
|
2402
2402
|
[
|
|
2403
|
-
|
|
2403
|
+
gn,
|
|
2404
2404
|
null
|
|
2405
2405
|
]
|
|
2406
2406
|
]
|
|
2407
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2408
|
-
...O(
|
|
2407
|
+
}, /* @__PURE__ */ E.createElement(Ln, null, /* @__PURE__ */ E.createElement(pe, {
|
|
2408
|
+
...O(me, K, y, H, T?.collectionProps),
|
|
2409
2409
|
style: U,
|
|
2410
2410
|
ref: e,
|
|
2411
2411
|
slot: t.slot || void 0,
|
|
2412
2412
|
onScroll: t.onScroll,
|
|
2413
2413
|
"data-allows-dragging": Y || void 0,
|
|
2414
|
-
"data-drop-target":
|
|
2414
|
+
"data-drop-target": P || void 0,
|
|
2415
2415
|
"data-focused": j || void 0,
|
|
2416
|
-
"data-focus-visible":
|
|
2417
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2416
|
+
"data-focus-visible": I || void 0
|
|
2417
|
+
}, /* @__PURE__ */ E.createElement(En, null, /* @__PURE__ */ E.createElement(m, {
|
|
2418
2418
|
collection: c.collection,
|
|
2419
|
-
scrollRef: (
|
|
2420
|
-
persistedKeys:
|
|
2419
|
+
scrollRef: (_ = s?.scrollRef) !== null && _ !== void 0 ? _ : e,
|
|
2420
|
+
persistedKeys: wn(v, h, w)
|
|
2421
2421
|
})))), z);
|
|
2422
2422
|
}
|
|
2423
2423
|
function G(t) {
|
|
2424
|
-
let { isVirtualized: e } = B(
|
|
2424
|
+
let { isVirtualized: e } = B(te);
|
|
2425
2425
|
return e ? "div" : t;
|
|
2426
2426
|
}
|
|
2427
|
-
const
|
|
2428
|
-
function
|
|
2429
|
-
return B(
|
|
2427
|
+
const Fl = /* @__PURE__ */ de(null);
|
|
2428
|
+
function Il() {
|
|
2429
|
+
return B(Fl);
|
|
2430
2430
|
}
|
|
2431
|
-
class
|
|
2431
|
+
class ut extends Ge {
|
|
2432
2432
|
}
|
|
2433
|
-
|
|
2434
|
-
const
|
|
2435
|
-
let l = B(
|
|
2433
|
+
ut.type = "tableheader";
|
|
2434
|
+
const Fo = /* @__PURE__ */ et(ut, (t, e) => {
|
|
2435
|
+
let l = B(ie).collection, n = Rn({
|
|
2436
2436
|
items: l.headerRows,
|
|
2437
2437
|
children: W((d) => {
|
|
2438
2438
|
switch (d.type) {
|
|
2439
2439
|
case "headerrow":
|
|
2440
|
-
return /* @__PURE__ */ E.createElement(
|
|
2440
|
+
return /* @__PURE__ */ E.createElement(Io, {
|
|
2441
2441
|
item: d
|
|
2442
2442
|
});
|
|
2443
2443
|
default:
|
|
2444
2444
|
throw new Error("Unsupported node type in TableHeader: " + d.type);
|
|
2445
2445
|
}
|
|
2446
2446
|
}, [])
|
|
2447
|
-
}), o = G("thead"), { rowGroupProps: i } =
|
|
2447
|
+
}), o = G("thead"), { rowGroupProps: i } = Pl(), { hoverProps: a, isHovered: u } = Pe({
|
|
2448
2448
|
onHoverStart: t.onHoverStart,
|
|
2449
2449
|
onHoverChange: t.onHoverChange,
|
|
2450
2450
|
onHoverEnd: t.onHoverEnd
|
|
@@ -2457,29 +2457,29 @@ const Bo = /* @__PURE__ */ _e(at, (t, e) => {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
});
|
|
2459
2459
|
return /* @__PURE__ */ E.createElement(o, {
|
|
2460
|
-
...O(
|
|
2460
|
+
...O(le(t, {
|
|
2461
2461
|
global: !0
|
|
2462
2462
|
}), i, a),
|
|
2463
2463
|
...s,
|
|
2464
2464
|
ref: e,
|
|
2465
2465
|
"data-hovered": u || void 0
|
|
2466
2466
|
}, n);
|
|
2467
|
-
}, (t) => /* @__PURE__ */ E.createElement(
|
|
2467
|
+
}, (t) => /* @__PURE__ */ E.createElement(Ae, {
|
|
2468
2468
|
dependencies: t.dependencies,
|
|
2469
2469
|
items: t.columns
|
|
2470
2470
|
}, t.children));
|
|
2471
|
-
function
|
|
2472
|
-
let e =
|
|
2471
|
+
function Io({ item: t }) {
|
|
2472
|
+
let e = M(null), l = B(ie), { isVirtualized: n, CollectionBranch: o } = B(te), { rowProps: i } = fo({
|
|
2473
2473
|
node: t,
|
|
2474
2474
|
isVirtualized: n
|
|
2475
|
-
}, l, e), { checkboxProps: a } =
|
|
2475
|
+
}, l, e), { checkboxProps: a } = bo(l), u = G("tr");
|
|
2476
2476
|
return /* @__PURE__ */ E.createElement(u, {
|
|
2477
2477
|
...i,
|
|
2478
2478
|
ref: e
|
|
2479
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2479
|
+
}, /* @__PURE__ */ E.createElement(Ue, {
|
|
2480
2480
|
values: [
|
|
2481
2481
|
[
|
|
2482
|
-
|
|
2482
|
+
It,
|
|
2483
2483
|
{
|
|
2484
2484
|
slots: {
|
|
2485
2485
|
selection: a
|
|
@@ -2492,15 +2492,15 @@ function No({ item: t }) {
|
|
|
2492
2492
|
parent: t
|
|
2493
2493
|
})));
|
|
2494
2494
|
}
|
|
2495
|
-
class
|
|
2495
|
+
class Vl extends Ge {
|
|
2496
2496
|
}
|
|
2497
|
-
|
|
2498
|
-
const
|
|
2497
|
+
Vl.type = "column";
|
|
2498
|
+
const Vo = /* @__PURE__ */ Ot(Vl, (t, e, l) => {
|
|
2499
2499
|
var n, o;
|
|
2500
|
-
let i = Q(e), a = B(
|
|
2500
|
+
let i = Q(e), a = B(ie), { isVirtualized: u } = B(te), { columnHeaderProps: s } = so({
|
|
2501
2501
|
node: l,
|
|
2502
2502
|
isVirtualized: u
|
|
2503
|
-
}, a, i), { isFocused: d, isFocusVisible: c, focusProps: r } = Ce(), p = B(
|
|
2503
|
+
}, a, i), { isFocused: d, isFocusVisible: c, focusProps: r } = Ce(), p = B(at), f = !1;
|
|
2504
2504
|
if (p) f = p.resizingColumn === l.key;
|
|
2505
2505
|
else if (process.env.NODE_ENV !== "production")
|
|
2506
2506
|
for (let D in [
|
|
@@ -2509,7 +2509,7 @@ const Ko = /* @__PURE__ */ Ht(Fl, (t, e, l) => {
|
|
|
2509
2509
|
"minWidth",
|
|
2510
2510
|
"maxWidth"
|
|
2511
2511
|
]) D in l.props && console.warn(`The ${D} 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.`);
|
|
2512
|
-
let { hoverProps: m, isHovered: h } =
|
|
2512
|
+
let { hoverProps: m, isHovered: h } = Pe({
|
|
2513
2513
|
isDisabled: !t.allowsSorting
|
|
2514
2514
|
}), y = ce({
|
|
2515
2515
|
...t,
|
|
@@ -2532,18 +2532,18 @@ const Ko = /* @__PURE__ */ Ht(Fl, (t, e, l) => {
|
|
|
2532
2532
|
a.sort(l.key, D);
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
|
-
}),
|
|
2536
|
-
p && (
|
|
2537
|
-
...
|
|
2535
|
+
}), v = y.style;
|
|
2536
|
+
p && (v = {
|
|
2537
|
+
...v,
|
|
2538
2538
|
width: p.getColumnWidth(l.key)
|
|
2539
2539
|
});
|
|
2540
|
-
let $ = G("th"),
|
|
2540
|
+
let $ = G("th"), b = le(t, {
|
|
2541
2541
|
global: !0
|
|
2542
2542
|
});
|
|
2543
|
-
return delete
|
|
2544
|
-
...O(
|
|
2543
|
+
return delete b.id, /* @__PURE__ */ E.createElement($, {
|
|
2544
|
+
...O(b, s, r, m),
|
|
2545
2545
|
...y,
|
|
2546
|
-
style:
|
|
2546
|
+
style: v,
|
|
2547
2547
|
ref: i,
|
|
2548
2548
|
"data-hovered": h || void 0,
|
|
2549
2549
|
"data-focused": d || void 0,
|
|
@@ -2551,40 +2551,40 @@ const Ko = /* @__PURE__ */ Ht(Fl, (t, e, l) => {
|
|
|
2551
2551
|
"data-resizing": f || void 0,
|
|
2552
2552
|
"data-allows-sorting": l.props.allowsSorting || void 0,
|
|
2553
2553
|
"data-sort-direction": ((o = a.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? a.sortDescriptor.direction : void 0
|
|
2554
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2554
|
+
}, /* @__PURE__ */ E.createElement(Ue, {
|
|
2555
2555
|
values: [
|
|
2556
2556
|
[
|
|
2557
|
-
|
|
2557
|
+
Wl,
|
|
2558
2558
|
{
|
|
2559
2559
|
column: l,
|
|
2560
2560
|
triggerRef: i
|
|
2561
2561
|
}
|
|
2562
2562
|
],
|
|
2563
2563
|
[
|
|
2564
|
-
|
|
2565
|
-
|
|
2564
|
+
te,
|
|
2565
|
+
Ht
|
|
2566
2566
|
]
|
|
2567
2567
|
]
|
|
2568
2568
|
}, y.children));
|
|
2569
|
-
}),
|
|
2570
|
-
let n = B(
|
|
2569
|
+
}), Wl = /* @__PURE__ */ de(null), Wo = /* @__PURE__ */ je(function(e, l) {
|
|
2570
|
+
let n = B(at);
|
|
2571
2571
|
if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2572
|
-
let o =
|
|
2572
|
+
let o = Me(Ao(Sn), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: u } = B(rt), { column: s, triggerRef: d } = B(Wl), c = M(null), { resizerProps: r, inputProps: p, isResizing: f } = vo({
|
|
2573
2573
|
column: s,
|
|
2574
2574
|
"aria-label": e["aria-label"] || o.format("tableResizer"),
|
|
2575
2575
|
onResizeStart: i,
|
|
2576
2576
|
onResize: a,
|
|
2577
2577
|
onResizeEnd: u,
|
|
2578
2578
|
triggerRef: d
|
|
2579
|
-
}, n, c), { focusProps: m, isFocused: h, isFocusVisible: y } = Ce(), { hoverProps:
|
|
2580
|
-
|
|
2581
|
-
let
|
|
2582
|
-
|
|
2583
|
-
if (!
|
|
2584
|
-
let K = window.getComputedStyle(
|
|
2585
|
-
|
|
2579
|
+
}, n, c), { focusProps: m, isFocused: h, isFocusVisible: y } = Ce(), { hoverProps: v, isHovered: $ } = Pe(e), b = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), D = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: g } = Se(), C = "both";
|
|
2580
|
+
b ? C = g === "rtl" ? "right" : "left" : D ? C = g === "rtl" ? "left" : "right" : C = "both";
|
|
2581
|
+
let w = Q(l), [T, P] = q("");
|
|
2582
|
+
se(() => {
|
|
2583
|
+
if (!w.current) return;
|
|
2584
|
+
let K = window.getComputedStyle(w.current);
|
|
2585
|
+
P(K.cursor);
|
|
2586
2586
|
}, [
|
|
2587
|
-
|
|
2587
|
+
w,
|
|
2588
2588
|
C
|
|
2589
2589
|
]);
|
|
2590
2590
|
let z = ce({
|
|
@@ -2597,19 +2597,19 @@ const Ko = /* @__PURE__ */ Ht(Fl, (t, e, l) => {
|
|
|
2597
2597
|
isHovered: $,
|
|
2598
2598
|
resizableDirection: C
|
|
2599
2599
|
}
|
|
2600
|
-
}), [
|
|
2600
|
+
}), [F, H] = q(!1), j = (K) => {
|
|
2601
2601
|
K.pointerType === "mouse" && H(!0);
|
|
2602
2602
|
};
|
|
2603
|
-
!f &&
|
|
2604
|
-
let
|
|
2603
|
+
!f && F && H(!1);
|
|
2604
|
+
let I = le(e, {
|
|
2605
2605
|
global: !0
|
|
2606
2606
|
});
|
|
2607
2607
|
return /* @__PURE__ */ E.createElement("div", {
|
|
2608
|
-
ref:
|
|
2608
|
+
ref: w,
|
|
2609
2609
|
role: "presentation",
|
|
2610
|
-
...O(
|
|
2610
|
+
...O(I, z, r, {
|
|
2611
2611
|
onPointerDown: j
|
|
2612
|
-
},
|
|
2612
|
+
}, v),
|
|
2613
2613
|
"data-hovered": $ || void 0,
|
|
2614
2614
|
"data-focused": h || void 0,
|
|
2615
2615
|
"data-focus-visible": y || void 0,
|
|
@@ -2618,22 +2618,22 @@ const Ko = /* @__PURE__ */ Ht(Fl, (t, e, l) => {
|
|
|
2618
2618
|
}, z.children, /* @__PURE__ */ E.createElement("input", {
|
|
2619
2619
|
ref: c,
|
|
2620
2620
|
...O(p, m)
|
|
2621
|
-
}), f &&
|
|
2621
|
+
}), f && F && /* @__PURE__ */ Nn.createPortal(/* @__PURE__ */ E.createElement("div", {
|
|
2622
2622
|
style: {
|
|
2623
2623
|
position: "fixed",
|
|
2624
2624
|
top: 0,
|
|
2625
2625
|
left: 0,
|
|
2626
2626
|
bottom: 0,
|
|
2627
2627
|
right: 0,
|
|
2628
|
-
cursor:
|
|
2628
|
+
cursor: T
|
|
2629
2629
|
}
|
|
2630
2630
|
}), document.body));
|
|
2631
2631
|
});
|
|
2632
|
-
class
|
|
2632
|
+
class st extends An {
|
|
2633
2633
|
}
|
|
2634
|
-
|
|
2635
|
-
const
|
|
2636
|
-
let l = B(
|
|
2634
|
+
st.type = "tablebody";
|
|
2635
|
+
const Ho = /* @__PURE__ */ et(st, (t, e) => {
|
|
2636
|
+
let l = B(ie), { isVirtualized: n } = B(te), o = l.collection, { CollectionBranch: i } = B(te), { dragAndDropHooks: a, dropState: u } = B(we), s = !!a?.useDroppableCollectionState && !u?.isDisabled;
|
|
2637
2637
|
var d;
|
|
2638
2638
|
let c = s && !!u && ((d = u.isDropTarget({
|
|
2639
2639
|
type: "root"
|
|
@@ -2646,35 +2646,35 @@ const Io = /* @__PURE__ */ _e(ut, (t, e) => {
|
|
|
2646
2646
|
children: void 0,
|
|
2647
2647
|
defaultClassName: "react-aria-TableBody",
|
|
2648
2648
|
values: p
|
|
2649
|
-
}), m, h = G("tr"), y = G("td"),
|
|
2649
|
+
}), m, h = G("tr"), y = G("td"), v = o.columnCount;
|
|
2650
2650
|
if (r && t.renderEmptyState && l) {
|
|
2651
|
-
let
|
|
2652
|
-
n ? (C["aria-colspan"] =
|
|
2651
|
+
let g = {}, C = {}, w = {};
|
|
2652
|
+
n ? (C["aria-colspan"] = v, w = {
|
|
2653
2653
|
display: "contents"
|
|
2654
|
-
}) : C.colSpan =
|
|
2654
|
+
}) : C.colSpan = v, m = /* @__PURE__ */ E.createElement(h, {
|
|
2655
2655
|
role: "row",
|
|
2656
|
-
...
|
|
2657
|
-
style:
|
|
2656
|
+
...g,
|
|
2657
|
+
style: w
|
|
2658
2658
|
}, /* @__PURE__ */ E.createElement(y, {
|
|
2659
2659
|
role: "rowheader",
|
|
2660
2660
|
...C,
|
|
2661
|
-
style:
|
|
2661
|
+
style: w
|
|
2662
2662
|
}, t.renderEmptyState(p)));
|
|
2663
2663
|
}
|
|
2664
|
-
let { rowGroupProps: $ } =
|
|
2664
|
+
let { rowGroupProps: $ } = Pl(), b = G("tbody"), D = le(t, {
|
|
2665
2665
|
global: !0
|
|
2666
2666
|
});
|
|
2667
|
-
return /* @__PURE__ */ E.createElement(
|
|
2667
|
+
return /* @__PURE__ */ E.createElement(b, {
|
|
2668
2668
|
...O(D, f, $),
|
|
2669
2669
|
ref: e,
|
|
2670
2670
|
"data-empty": r || void 0
|
|
2671
|
-
}, s && /* @__PURE__ */ E.createElement(
|
|
2671
|
+
}, s && /* @__PURE__ */ E.createElement(Go, null), /* @__PURE__ */ E.createElement(i, {
|
|
2672
2672
|
collection: o,
|
|
2673
2673
|
parent: o.body,
|
|
2674
|
-
renderDropIndicator:
|
|
2674
|
+
renderDropIndicator: Dn(a, u)
|
|
2675
2675
|
}), m);
|
|
2676
2676
|
});
|
|
2677
|
-
class
|
|
2677
|
+
class Hl extends Ge {
|
|
2678
2678
|
filter(e, l, n) {
|
|
2679
2679
|
let o = e.getChildren(this.key);
|
|
2680
2680
|
for (let i of o) if (n(i.textValue, i)) {
|
|
@@ -2684,40 +2684,40 @@ class Vl extends Ue {
|
|
|
2684
2684
|
return null;
|
|
2685
2685
|
}
|
|
2686
2686
|
}
|
|
2687
|
-
|
|
2688
|
-
const
|
|
2689
|
-
let n = Q(e), o = B(
|
|
2687
|
+
Hl.type = "item";
|
|
2688
|
+
const At = /* @__PURE__ */ et(Hl, (t, e, l) => {
|
|
2689
|
+
let n = Q(e), o = B(ie), { dragAndDropHooks: i, dragState: a, dropState: u } = B(we), { isVirtualized: s, CollectionBranch: d } = B(te), { rowProps: c, ...r } = co({
|
|
2690
2690
|
node: l,
|
|
2691
2691
|
shouldSelectOnPressUp: !!a,
|
|
2692
2692
|
isVirtualized: s
|
|
2693
2693
|
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: m } = Ce(), { isFocusVisible: h, focusProps: y } = Ce({
|
|
2694
2694
|
within: !0
|
|
2695
|
-
}), { hoverProps:
|
|
2695
|
+
}), { hoverProps: v, isHovered: $ } = Pe({
|
|
2696
2696
|
isDisabled: !r.allowsSelection && !r.hasAction,
|
|
2697
2697
|
onHoverStart: t.onHoverStart,
|
|
2698
2698
|
onHoverChange: t.onHoverChange,
|
|
2699
2699
|
onHoverEnd: t.onHoverEnd
|
|
2700
|
-
}), { checkboxProps:
|
|
2700
|
+
}), { checkboxProps: b } = ho({
|
|
2701
2701
|
key: l.key
|
|
2702
2702
|
}, o), D;
|
|
2703
2703
|
a && i && (D = i.useDraggableItem({
|
|
2704
2704
|
key: l.key,
|
|
2705
2705
|
hasDragButton: !0
|
|
2706
2706
|
}, a));
|
|
2707
|
-
let
|
|
2708
|
-
u && i && (
|
|
2707
|
+
let g, C = M(null), { visuallyHiddenProps: w } = Ye();
|
|
2708
|
+
u && i && (g = i.useDropIndicator({
|
|
2709
2709
|
target: {
|
|
2710
2710
|
type: "item",
|
|
2711
2711
|
key: l.key,
|
|
2712
2712
|
dropPosition: "on"
|
|
2713
2713
|
}
|
|
2714
2714
|
}, u, C));
|
|
2715
|
-
let
|
|
2716
|
-
|
|
2717
|
-
a && !
|
|
2715
|
+
let T = M(null);
|
|
2716
|
+
se(() => {
|
|
2717
|
+
a && !T.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.');
|
|
2718
2718
|
}, []);
|
|
2719
|
-
let
|
|
2720
|
-
...
|
|
2719
|
+
let P = a && a.isDragging(l.key), { children: z, ...F } = t, H = ce({
|
|
2720
|
+
...F,
|
|
2721
2721
|
id: void 0,
|
|
2722
2722
|
defaultClassName: "react-aria-Row",
|
|
2723
2723
|
values: {
|
|
@@ -2727,20 +2727,20 @@ const Rt = /* @__PURE__ */ _e(Vl, (t, e, l) => {
|
|
|
2727
2727
|
isFocusVisible: f,
|
|
2728
2728
|
selectionMode: o.selectionManager.selectionMode,
|
|
2729
2729
|
selectionBehavior: o.selectionManager.selectionBehavior,
|
|
2730
|
-
isDragging:
|
|
2731
|
-
isDropTarget:
|
|
2730
|
+
isDragging: P,
|
|
2731
|
+
isDropTarget: g?.isDropTarget,
|
|
2732
2732
|
isFocusVisibleWithin: h,
|
|
2733
2733
|
id: l.key
|
|
2734
2734
|
}
|
|
2735
|
-
}), j = G("tr"),
|
|
2735
|
+
}), j = G("tr"), I = G("td"), K = le(t, {
|
|
2736
2736
|
global: !0
|
|
2737
2737
|
});
|
|
2738
|
-
return delete K.id, delete K.onClick, /* @__PURE__ */ E.createElement(E.Fragment, null,
|
|
2738
|
+
return delete K.id, delete K.onClick, /* @__PURE__ */ E.createElement(E.Fragment, null, g && !g.isHidden && /* @__PURE__ */ E.createElement(j, {
|
|
2739
2739
|
role: "row",
|
|
2740
2740
|
style: {
|
|
2741
2741
|
height: 0
|
|
2742
2742
|
}
|
|
2743
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2743
|
+
}, /* @__PURE__ */ E.createElement(I, {
|
|
2744
2744
|
role: "gridcell",
|
|
2745
2745
|
colSpan: o.collection.columnCount,
|
|
2746
2746
|
style: {
|
|
@@ -2748,11 +2748,11 @@ const Rt = /* @__PURE__ */ _e(Vl, (t, e, l) => {
|
|
|
2748
2748
|
}
|
|
2749
2749
|
}, /* @__PURE__ */ E.createElement("div", {
|
|
2750
2750
|
role: "button",
|
|
2751
|
-
...
|
|
2752
|
-
...
|
|
2751
|
+
...w,
|
|
2752
|
+
...g.dropIndicatorProps,
|
|
2753
2753
|
ref: C
|
|
2754
2754
|
}))), /* @__PURE__ */ E.createElement(j, {
|
|
2755
|
-
...O(K, H, c, m,
|
|
2755
|
+
...O(K, H, c, m, v, D?.dragProps, y),
|
|
2756
2756
|
ref: n,
|
|
2757
2757
|
"data-disabled": r.isDisabled || void 0,
|
|
2758
2758
|
"data-selected": r.isSelected || void 0,
|
|
@@ -2760,29 +2760,29 @@ const Rt = /* @__PURE__ */ _e(Vl, (t, e, l) => {
|
|
|
2760
2760
|
"data-focused": r.isFocused || void 0,
|
|
2761
2761
|
"data-focus-visible": f || void 0,
|
|
2762
2762
|
"data-pressed": r.isPressed || void 0,
|
|
2763
|
-
"data-dragging":
|
|
2764
|
-
"data-drop-target":
|
|
2763
|
+
"data-dragging": P || void 0,
|
|
2764
|
+
"data-drop-target": g?.isDropTarget || void 0,
|
|
2765
2765
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
2766
2766
|
"data-focus-visible-within": h || void 0
|
|
2767
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2767
|
+
}, /* @__PURE__ */ E.createElement(Ue, {
|
|
2768
2768
|
values: [
|
|
2769
2769
|
[
|
|
2770
|
-
|
|
2770
|
+
It,
|
|
2771
2771
|
{
|
|
2772
2772
|
slots: {
|
|
2773
|
-
[
|
|
2774
|
-
selection:
|
|
2773
|
+
[St]: {},
|
|
2774
|
+
selection: b
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
2777
|
],
|
|
2778
2778
|
[
|
|
2779
|
-
|
|
2779
|
+
Ft,
|
|
2780
2780
|
{
|
|
2781
2781
|
slots: {
|
|
2782
|
-
[
|
|
2782
|
+
[St]: {},
|
|
2783
2783
|
drag: {
|
|
2784
2784
|
...D?.dragButtonProps,
|
|
2785
|
-
ref:
|
|
2785
|
+
ref: T,
|
|
2786
2786
|
style: {
|
|
2787
2787
|
pointerEvents: "none"
|
|
2788
2788
|
}
|
|
@@ -2791,7 +2791,7 @@ const Rt = /* @__PURE__ */ _e(Vl, (t, e, l) => {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
],
|
|
2793
2793
|
[
|
|
2794
|
-
|
|
2794
|
+
kn,
|
|
2795
2795
|
{
|
|
2796
2796
|
isSelected: r.isSelected
|
|
2797
2797
|
}
|
|
@@ -2806,23 +2806,23 @@ const Rt = /* @__PURE__ */ _e(Vl, (t, e, l) => {
|
|
|
2806
2806
|
let e = [
|
|
2807
2807
|
t.value
|
|
2808
2808
|
].concat(t.dependencies);
|
|
2809
|
-
return /* @__PURE__ */ E.createElement(
|
|
2809
|
+
return /* @__PURE__ */ E.createElement(Ae, {
|
|
2810
2810
|
dependencies: e,
|
|
2811
2811
|
items: t.columns,
|
|
2812
2812
|
idScope: t.id
|
|
2813
2813
|
}, t.children);
|
|
2814
2814
|
});
|
|
2815
|
-
class
|
|
2815
|
+
class Ll extends Ge {
|
|
2816
2816
|
}
|
|
2817
|
-
|
|
2818
|
-
const
|
|
2819
|
-
let n = Q(e), o = B(
|
|
2817
|
+
Ll.type = "cell";
|
|
2818
|
+
const Lo = /* @__PURE__ */ Ot(Ll, (t, e, l) => {
|
|
2819
|
+
let n = Q(e), o = B(ie), { dragState: i } = B(we), { isVirtualized: a } = B(te);
|
|
2820
2820
|
l.column = o.collection.columns[l.index];
|
|
2821
|
-
let { gridCellProps: u, isPressed: s } =
|
|
2821
|
+
let { gridCellProps: u, isPressed: s } = po({
|
|
2822
2822
|
node: l,
|
|
2823
2823
|
shouldSelectOnPressUp: !!i,
|
|
2824
2824
|
isVirtualized: a
|
|
2825
|
-
}, o, n), { isFocused: d, isFocusVisible: c, focusProps: r } = Ce(), { hoverProps: p, isHovered: f } =
|
|
2825
|
+
}, o, n), { isFocused: d, isFocusVisible: c, focusProps: r } = Ce(), { hoverProps: p, isHovered: f } = Pe({}), m = ce({
|
|
2826
2826
|
...t,
|
|
2827
2827
|
id: void 0,
|
|
2828
2828
|
defaultClassName: "react-aria-Cell",
|
|
@@ -2833,7 +2833,7 @@ const Vo = /* @__PURE__ */ Ht(Wl, (t, e, l) => {
|
|
|
2833
2833
|
isHovered: f,
|
|
2834
2834
|
id: l.key
|
|
2835
2835
|
}
|
|
2836
|
-
}), h = G("td"), y =
|
|
2836
|
+
}), h = G("td"), y = le(t, {
|
|
2837
2837
|
global: !0
|
|
2838
2838
|
});
|
|
2839
2839
|
return delete y.id, /* @__PURE__ */ E.createElement(h, {
|
|
@@ -2842,14 +2842,14 @@ const Vo = /* @__PURE__ */ Ht(Wl, (t, e, l) => {
|
|
|
2842
2842
|
"data-focused": d || void 0,
|
|
2843
2843
|
"data-focus-visible": c || void 0,
|
|
2844
2844
|
"data-pressed": s || void 0
|
|
2845
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2846
|
-
value:
|
|
2845
|
+
}, /* @__PURE__ */ E.createElement(te.Provider, {
|
|
2846
|
+
value: Ht
|
|
2847
2847
|
}, m.children));
|
|
2848
2848
|
});
|
|
2849
|
-
function
|
|
2849
|
+
function Oo(t, e) {
|
|
2850
2850
|
e = Q(e);
|
|
2851
|
-
let { dragAndDropHooks: l, dropState: n } = B(we), o =
|
|
2852
|
-
return a ? null : /* @__PURE__ */ E.createElement(
|
|
2851
|
+
let { dragAndDropHooks: l, dropState: n } = B(we), o = M(null), { dropIndicatorProps: i, isHidden: a, isDropTarget: u } = l.useDropIndicator(t, n, o);
|
|
2852
|
+
return a ? null : /* @__PURE__ */ E.createElement(Uo, {
|
|
2853
2853
|
...t,
|
|
2854
2854
|
dropIndicatorProps: i,
|
|
2855
2855
|
isDropTarget: u,
|
|
@@ -2857,8 +2857,8 @@ function Wo(t, e) {
|
|
|
2857
2857
|
ref: e
|
|
2858
2858
|
});
|
|
2859
2859
|
}
|
|
2860
|
-
function
|
|
2861
|
-
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...i } = t, a = B(
|
|
2860
|
+
function jo(t, e) {
|
|
2861
|
+
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...i } = t, a = B(ie), { visuallyHiddenProps: u } = Ye(), s = ce({
|
|
2862
2862
|
...i,
|
|
2863
2863
|
defaultClassName: "react-aria-DropIndicator",
|
|
2864
2864
|
values: {
|
|
@@ -2866,7 +2866,7 @@ function Ho(t, e) {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
}), d = G("tr"), c = G("td");
|
|
2868
2868
|
return /* @__PURE__ */ E.createElement(d, {
|
|
2869
|
-
...
|
|
2869
|
+
...le(t, {
|
|
2870
2870
|
global: !0
|
|
2871
2871
|
}),
|
|
2872
2872
|
...s,
|
|
@@ -2886,15 +2886,15 @@ function Ho(t, e) {
|
|
|
2886
2886
|
ref: o
|
|
2887
2887
|
}), s.children));
|
|
2888
2888
|
}
|
|
2889
|
-
const
|
|
2890
|
-
function
|
|
2891
|
-
let t = B(
|
|
2889
|
+
const Uo = /* @__PURE__ */ je(jo);
|
|
2890
|
+
function Go() {
|
|
2891
|
+
let t = B(ie), { dragAndDropHooks: e, dropState: l } = B(we), n = M(null), { dropIndicatorProps: o } = e.useDropIndicator({
|
|
2892
2892
|
target: {
|
|
2893
2893
|
type: "root"
|
|
2894
2894
|
}
|
|
2895
2895
|
}, l, n), i = l.isDropTarget({
|
|
2896
2896
|
type: "root"
|
|
2897
|
-
}), { visuallyHiddenProps: a } =
|
|
2897
|
+
}), { visuallyHiddenProps: a } = Ye(), u = G("tr"), s = G("td");
|
|
2898
2898
|
return !i && o["aria-hidden"] ? null : /* @__PURE__ */ E.createElement(u, {
|
|
2899
2899
|
role: "row",
|
|
2900
2900
|
"aria-hidden": o["aria-hidden"],
|
|
@@ -2914,19 +2914,28 @@ function Oo() {
|
|
|
2914
2914
|
ref: n
|
|
2915
2915
|
})));
|
|
2916
2916
|
}
|
|
2917
|
-
const { withProvider:
|
|
2917
|
+
const { withProvider: Yo, withContext: Z } = /* @__PURE__ */ Jl({
|
|
2918
2918
|
key: "dataTable"
|
|
2919
|
-
}),
|
|
2920
|
-
|
|
2919
|
+
}), Xo = /* @__PURE__ */ Yo("div", "root"), qo = /* @__PURE__ */ Z("table", "table"), Zo = /* @__PURE__ */ Z("tr", "header"), Jo = /* @__PURE__ */ Z("th", "column"), Qo = /* @__PURE__ */ Z("tbody", "body"), Pt = /* @__PURE__ */ Z("tr", "row"), _o = /* @__PURE__ */ Z("td", "cell"), ei = /* @__PURE__ */ Z("footer", "footer"), ti = /* @__PURE__ */ Z("td", "selectionCell"), Ol = /* @__PURE__ */ Z("button", "expandButton"), li = /* @__PURE__ */ Z("span", "nestedIcon"), ni = /* @__PURE__ */ Z("span", "headerSortIcon"), oi = /* @__PURE__ */ Z("div", "columnResizer"), Xe = /* @__PURE__ */ de(null);
|
|
2920
|
+
Xe.displayName = "DataTable.Context";
|
|
2921
|
+
const dt = /* @__PURE__ */ de(null);
|
|
2922
|
+
dt.displayName = "CustomSettings.Context";
|
|
2921
2923
|
const fe = () => {
|
|
2922
2924
|
const t = B(
|
|
2923
|
-
|
|
2925
|
+
Xe
|
|
2924
2926
|
);
|
|
2925
2927
|
if (!t)
|
|
2926
2928
|
throw new Error("DataTable components must be used within DataTable.Root");
|
|
2927
2929
|
return t;
|
|
2930
|
+
}, ii = () => {
|
|
2931
|
+
const t = B(dt);
|
|
2932
|
+
if (!t)
|
|
2933
|
+
throw new Error(
|
|
2934
|
+
"CustomSettings components must be used within CustomSettings.Root"
|
|
2935
|
+
);
|
|
2936
|
+
return t;
|
|
2928
2937
|
};
|
|
2929
|
-
function
|
|
2938
|
+
function jl(t, e, l, n) {
|
|
2930
2939
|
if (!e) return t;
|
|
2931
2940
|
const o = e.toLowerCase();
|
|
2932
2941
|
return t.map((i) => {
|
|
@@ -2937,7 +2946,7 @@ function Ll(t, e, l, n) {
|
|
|
2937
2946
|
if (n && i[n]) {
|
|
2938
2947
|
let u = i[n];
|
|
2939
2948
|
if (Array.isArray(i[n])) {
|
|
2940
|
-
if (u =
|
|
2949
|
+
if (u = jl(
|
|
2941
2950
|
i[n],
|
|
2942
2951
|
e,
|
|
2943
2952
|
l,
|
|
@@ -2951,7 +2960,7 @@ function Ll(t, e, l, n) {
|
|
|
2951
2960
|
return a ? i : null;
|
|
2952
2961
|
}).filter(Boolean);
|
|
2953
2962
|
}
|
|
2954
|
-
function
|
|
2963
|
+
function Ul(t, e, l, n, o) {
|
|
2955
2964
|
const i = [], a = [];
|
|
2956
2965
|
t.forEach((d) => {
|
|
2957
2966
|
o?.has(d.id) ? i.push(d) : a.push(d);
|
|
@@ -2970,7 +2979,7 @@ function Ol(t, e, l, n, o) {
|
|
|
2970
2979
|
}
|
|
2971
2980
|
return [...i, ...u].map((d) => !n || !d[n] ? d : {
|
|
2972
2981
|
...d,
|
|
2973
|
-
[n]: Array.isArray(d[n]) ?
|
|
2982
|
+
[n]: Array.isArray(d[n]) ? Ul(
|
|
2974
2983
|
d[n],
|
|
2975
2984
|
e,
|
|
2976
2985
|
l,
|
|
@@ -2979,12 +2988,12 @@ function Ol(t, e, l, n, o) {
|
|
|
2979
2988
|
) : d[n]
|
|
2980
2989
|
});
|
|
2981
2990
|
}
|
|
2982
|
-
function
|
|
2991
|
+
function Gl(t, e) {
|
|
2983
2992
|
return e ? t.some(
|
|
2984
|
-
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) &&
|
|
2993
|
+
(l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && Gl(l[e], e)
|
|
2985
2994
|
) : !1;
|
|
2986
2995
|
}
|
|
2987
|
-
const
|
|
2996
|
+
const ct = function(e) {
|
|
2988
2997
|
const {
|
|
2989
2998
|
ref: l,
|
|
2990
2999
|
columns: n = [],
|
|
@@ -3001,89 +3010,90 @@ const st = function(e) {
|
|
|
3001
3010
|
disallowEmptySelection: m = !1,
|
|
3002
3011
|
allowsSorting: h = !1,
|
|
3003
3012
|
maxHeight: y,
|
|
3004
|
-
isTruncated:
|
|
3013
|
+
isTruncated: v = !1,
|
|
3005
3014
|
density: $ = "default",
|
|
3006
|
-
nestedKey:
|
|
3015
|
+
nestedKey: b,
|
|
3007
3016
|
onRowClick: D,
|
|
3008
|
-
onDetailsClick:
|
|
3017
|
+
onDetailsClick: g,
|
|
3009
3018
|
disabledKeys: C,
|
|
3010
|
-
onRowAction:
|
|
3011
|
-
isResizable:
|
|
3012
|
-
pinnedRows:
|
|
3019
|
+
onRowAction: w,
|
|
3020
|
+
isResizable: T,
|
|
3021
|
+
pinnedRows: P,
|
|
3013
3022
|
defaultPinnedRows: z,
|
|
3014
|
-
onPinToggle:
|
|
3023
|
+
onPinToggle: F,
|
|
3015
3024
|
onColumnsChange: H,
|
|
3016
3025
|
onSettingsChange: j,
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3026
|
+
customSettings: I,
|
|
3027
|
+
children: K,
|
|
3028
|
+
...Y
|
|
3029
|
+
} = e, U = M(null), ne = Q(Te(U, l)), [pe, me] = q(s), [_, k] = q({}), [S, V] = q(
|
|
3020
3030
|
() => z || /* @__PURE__ */ new Set()
|
|
3021
|
-
),
|
|
3031
|
+
), re = u ?? pe, Ne = P ?? S, ge = N(() => {
|
|
3022
3032
|
if (!i)
|
|
3023
3033
|
return n;
|
|
3024
3034
|
const X = new Map(n.map((J) => [J.id, J]));
|
|
3025
3035
|
return i.map((J) => X.get(J)).filter((J) => J !== void 0);
|
|
3026
|
-
}, [n, i]),
|
|
3027
|
-
() => a ?
|
|
3028
|
-
[o, a, ge,
|
|
3029
|
-
),
|
|
3030
|
-
() =>
|
|
3031
|
-
|
|
3032
|
-
|
|
3036
|
+
}, [n, i]), Ke = N(
|
|
3037
|
+
() => a ? jl(o, a, ge, b) : o,
|
|
3038
|
+
[o, a, ge, b]
|
|
3039
|
+
), qe = N(
|
|
3040
|
+
() => Ul(
|
|
3041
|
+
Ke,
|
|
3042
|
+
re,
|
|
3033
3043
|
ge,
|
|
3034
|
-
|
|
3035
|
-
|
|
3044
|
+
b,
|
|
3045
|
+
Ne
|
|
3036
3046
|
),
|
|
3037
|
-
[
|
|
3038
|
-
),
|
|
3039
|
-
(X) =>
|
|
3047
|
+
[Ke, re, ge, b, Ne]
|
|
3048
|
+
), gt = Gl(qe, b), vt = f !== "none", yt = W(
|
|
3049
|
+
(X) => k((J) => ({ ...J, [X]: !J[X] })),
|
|
3040
3050
|
[]
|
|
3041
|
-
),
|
|
3051
|
+
), $t = W(
|
|
3042
3052
|
(X) => {
|
|
3043
|
-
|
|
3044
|
-
const
|
|
3045
|
-
return
|
|
3053
|
+
F ? F(X) : V((J) => {
|
|
3054
|
+
const Fe = new Set(J);
|
|
3055
|
+
return Fe.has(X) ? Fe.delete(X) : Fe.add(X), Fe;
|
|
3046
3056
|
});
|
|
3047
3057
|
},
|
|
3048
|
-
[
|
|
3049
|
-
),
|
|
3058
|
+
[F]
|
|
3059
|
+
), xt = W(
|
|
3050
3060
|
(X) => {
|
|
3051
|
-
d ? d(X) :
|
|
3061
|
+
d ? d(X) : me(X);
|
|
3052
3062
|
},
|
|
3053
3063
|
[d]
|
|
3054
|
-
),
|
|
3064
|
+
), Xl = N(
|
|
3055
3065
|
() => ({
|
|
3056
3066
|
columns: n,
|
|
3057
3067
|
rows: o,
|
|
3058
3068
|
visibleColumns: i,
|
|
3059
3069
|
search: a,
|
|
3060
|
-
sortDescriptor:
|
|
3070
|
+
sortDescriptor: re,
|
|
3061
3071
|
selectedKeys: c,
|
|
3062
3072
|
defaultSelectedKeys: r,
|
|
3063
|
-
expanded:
|
|
3073
|
+
expanded: _,
|
|
3064
3074
|
allowsSorting: h,
|
|
3065
3075
|
selectionMode: f,
|
|
3066
3076
|
disallowEmptySelection: m,
|
|
3067
3077
|
maxHeight: y,
|
|
3068
|
-
isTruncated:
|
|
3078
|
+
isTruncated: v,
|
|
3069
3079
|
density: $,
|
|
3070
|
-
nestedKey:
|
|
3071
|
-
onSortChange:
|
|
3080
|
+
nestedKey: b,
|
|
3081
|
+
onSortChange: xt,
|
|
3072
3082
|
onSelectionChange: p,
|
|
3073
3083
|
onRowClick: D,
|
|
3074
|
-
onDetailsClick:
|
|
3075
|
-
toggleExpand:
|
|
3084
|
+
onDetailsClick: g,
|
|
3085
|
+
toggleExpand: yt,
|
|
3076
3086
|
activeColumns: ge,
|
|
3077
|
-
filteredRows:
|
|
3078
|
-
sortedRows:
|
|
3079
|
-
showExpandColumn:
|
|
3080
|
-
showSelectionColumn:
|
|
3081
|
-
isResizable:
|
|
3087
|
+
filteredRows: Ke,
|
|
3088
|
+
sortedRows: qe,
|
|
3089
|
+
showExpandColumn: gt,
|
|
3090
|
+
showSelectionColumn: vt,
|
|
3091
|
+
isResizable: T,
|
|
3082
3092
|
disabledKeys: C,
|
|
3083
|
-
onRowAction:
|
|
3084
|
-
pinnedRows:
|
|
3085
|
-
onPinToggle:
|
|
3086
|
-
togglePin:
|
|
3093
|
+
onRowAction: w,
|
|
3094
|
+
pinnedRows: Ne,
|
|
3095
|
+
onPinToggle: F,
|
|
3096
|
+
togglePin: $t,
|
|
3087
3097
|
onColumnsChange: H,
|
|
3088
3098
|
onSettingsChange: j
|
|
3089
3099
|
}),
|
|
@@ -3092,63 +3102,68 @@ const st = function(e) {
|
|
|
3092
3102
|
o,
|
|
3093
3103
|
i,
|
|
3094
3104
|
a,
|
|
3095
|
-
|
|
3105
|
+
re,
|
|
3096
3106
|
c,
|
|
3097
3107
|
r,
|
|
3098
|
-
|
|
3108
|
+
_,
|
|
3099
3109
|
h,
|
|
3100
3110
|
f,
|
|
3101
3111
|
m,
|
|
3102
3112
|
y,
|
|
3103
|
-
|
|
3113
|
+
v,
|
|
3104
3114
|
$,
|
|
3105
|
-
|
|
3106
|
-
|
|
3115
|
+
b,
|
|
3116
|
+
xt,
|
|
3107
3117
|
p,
|
|
3108
3118
|
D,
|
|
3109
|
-
|
|
3110
|
-
|
|
3119
|
+
g,
|
|
3120
|
+
yt,
|
|
3111
3121
|
ge,
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
bt,
|
|
3116
|
-
M,
|
|
3117
|
-
C,
|
|
3118
|
-
S,
|
|
3119
|
-
re,
|
|
3120
|
-
I,
|
|
3122
|
+
Ke,
|
|
3123
|
+
qe,
|
|
3124
|
+
gt,
|
|
3121
3125
|
vt,
|
|
3126
|
+
T,
|
|
3127
|
+
C,
|
|
3128
|
+
w,
|
|
3129
|
+
Ne,
|
|
3130
|
+
F,
|
|
3131
|
+
$t,
|
|
3122
3132
|
H,
|
|
3123
3133
|
j
|
|
3124
3134
|
]
|
|
3135
|
+
), ql = N(
|
|
3136
|
+
() => ({
|
|
3137
|
+
customSettings: I
|
|
3138
|
+
}),
|
|
3139
|
+
[I]
|
|
3125
3140
|
);
|
|
3126
3141
|
return /* @__PURE__ */ x(
|
|
3127
|
-
|
|
3142
|
+
Xo,
|
|
3128
3143
|
{
|
|
3129
|
-
ref:
|
|
3130
|
-
truncated:
|
|
3144
|
+
ref: ne,
|
|
3145
|
+
truncated: v,
|
|
3131
3146
|
density: $,
|
|
3132
3147
|
maxH: y,
|
|
3133
|
-
...
|
|
3148
|
+
...Y,
|
|
3134
3149
|
asChild: !0,
|
|
3135
|
-
children: /* @__PURE__ */ x(
|
|
3136
|
-
|
|
3150
|
+
children: /* @__PURE__ */ x(Mo, { children: /* @__PURE__ */ x(
|
|
3151
|
+
Xe.Provider,
|
|
3137
3152
|
{
|
|
3138
|
-
value:
|
|
3139
|
-
children:
|
|
3153
|
+
value: Xl,
|
|
3154
|
+
children: /* @__PURE__ */ x(dt.Provider, { value: ql, children: K })
|
|
3140
3155
|
}
|
|
3141
3156
|
) })
|
|
3142
3157
|
}
|
|
3143
3158
|
);
|
|
3144
3159
|
};
|
|
3145
|
-
|
|
3146
|
-
const
|
|
3160
|
+
ct.displayName = "DataTable.Root";
|
|
3161
|
+
const ft = function({
|
|
3147
3162
|
ref: e,
|
|
3148
3163
|
children: l,
|
|
3149
3164
|
...n
|
|
3150
3165
|
}) {
|
|
3151
|
-
const o =
|
|
3166
|
+
const o = M(null), i = Q(Te(o, e)), {
|
|
3152
3167
|
sortDescriptor: a,
|
|
3153
3168
|
onSortChange: u,
|
|
3154
3169
|
selectionMode: s,
|
|
@@ -3161,8 +3176,8 @@ const dt = function({
|
|
|
3161
3176
|
column: a.column,
|
|
3162
3177
|
direction: a.direction
|
|
3163
3178
|
} : void 0;
|
|
3164
|
-
return /* @__PURE__ */ x(
|
|
3165
|
-
|
|
3179
|
+
return /* @__PURE__ */ x(qo, { ...m, asChild: !0, children: /* @__PURE__ */ x(
|
|
3180
|
+
No,
|
|
3166
3181
|
{
|
|
3167
3182
|
ref: i,
|
|
3168
3183
|
sortDescriptor: y,
|
|
@@ -3184,8 +3199,8 @@ const dt = function({
|
|
|
3184
3199
|
}
|
|
3185
3200
|
) });
|
|
3186
3201
|
};
|
|
3187
|
-
|
|
3188
|
-
const R = /* @__PURE__ */
|
|
3202
|
+
ft.displayName = "DataTable.Table";
|
|
3203
|
+
const R = /* @__PURE__ */ Zl({
|
|
3189
3204
|
dataTable: {
|
|
3190
3205
|
id: "Nimbus.DataTable.dataTable",
|
|
3191
3206
|
description: "aria-label for the data table element",
|
|
@@ -3352,8 +3367,8 @@ const R = /* @__PURE__ */ Yl({
|
|
|
3352
3367
|
...u
|
|
3353
3368
|
}) => {
|
|
3354
3369
|
const s = be(), { sortDescriptor: d, isResizable: c } = fe(), r = d?.column === l?.id, p = l?.isResizable !== void 0 ? l?.isResizable : c, [f, m] = ke(u);
|
|
3355
|
-
return /* @__PURE__ */ x(
|
|
3356
|
-
|
|
3370
|
+
return /* @__PURE__ */ x(Jo, { ...f, asChild: !0, children: /* @__PURE__ */ x(
|
|
3371
|
+
Vo,
|
|
3357
3372
|
{
|
|
3358
3373
|
width: o,
|
|
3359
3374
|
minWidth: i,
|
|
@@ -3363,13 +3378,13 @@ const R = /* @__PURE__ */ Yl({
|
|
|
3363
3378
|
children: (h) => {
|
|
3364
3379
|
const { allowsSorting: y } = h;
|
|
3365
3380
|
return n ? typeof t == "function" ? t(h) : t : /* @__PURE__ */ A(
|
|
3366
|
-
|
|
3381
|
+
_n,
|
|
3367
3382
|
{
|
|
3368
3383
|
tabIndex: p || y ? -1 : 0,
|
|
3369
3384
|
className: "nimbus-data-table__column-container",
|
|
3370
3385
|
children: [
|
|
3371
3386
|
/* @__PURE__ */ x(
|
|
3372
|
-
|
|
3387
|
+
Nt,
|
|
3373
3388
|
{
|
|
3374
3389
|
orientation: "vertical",
|
|
3375
3390
|
className: "data-table-column-divider"
|
|
@@ -3377,24 +3392,24 @@ const R = /* @__PURE__ */ Yl({
|
|
|
3377
3392
|
),
|
|
3378
3393
|
typeof t == "function" ? t(h) : t,
|
|
3379
3394
|
y && /* @__PURE__ */ x(
|
|
3380
|
-
|
|
3395
|
+
ni,
|
|
3381
3396
|
{
|
|
3382
3397
|
"aria-hidden": "true",
|
|
3383
3398
|
"data-sort-active": r,
|
|
3384
3399
|
"data-sort-direction": r ? d?.direction : "none",
|
|
3385
|
-
children: /* @__PURE__ */ x(
|
|
3400
|
+
children: /* @__PURE__ */ x(Ql, {})
|
|
3386
3401
|
}
|
|
3387
3402
|
),
|
|
3388
3403
|
p && /* @__PURE__ */ x(
|
|
3389
|
-
|
|
3404
|
+
Wo,
|
|
3390
3405
|
{
|
|
3391
3406
|
"aria-label": s.formatMessage(R.resizeColumn),
|
|
3392
|
-
children: ({ isResizing:
|
|
3393
|
-
|
|
3407
|
+
children: ({ isResizing: v, isFocused: $, isHovered: b }) => /* @__PURE__ */ x(
|
|
3408
|
+
oi,
|
|
3394
3409
|
{
|
|
3395
|
-
"data-resizing":
|
|
3410
|
+
"data-resizing": v,
|
|
3396
3411
|
"data-focused": $,
|
|
3397
|
-
"data-hovered":
|
|
3412
|
+
"data-hovered": b
|
|
3398
3413
|
}
|
|
3399
3414
|
)
|
|
3400
3415
|
}
|
|
@@ -3407,13 +3422,13 @@ const R = /* @__PURE__ */ Yl({
|
|
|
3407
3422
|
) });
|
|
3408
3423
|
};
|
|
3409
3424
|
De.displayName = "DataTable.Column";
|
|
3410
|
-
const
|
|
3425
|
+
const pt = ({
|
|
3411
3426
|
ref: t,
|
|
3412
3427
|
...e
|
|
3413
3428
|
}) => {
|
|
3414
|
-
const l = be(), { activeColumns: n, allowsSorting: o, maxHeight: i, showExpandColumn: a } = fe(), { selectionBehavior: u, selectionMode: s } =
|
|
3415
|
-
return /* @__PURE__ */ x(
|
|
3416
|
-
|
|
3429
|
+
const l = be(), { activeColumns: n, allowsSorting: o, maxHeight: i, showExpandColumn: a } = fe(), { selectionBehavior: u, selectionMode: s } = Il(), [d, c] = ke(e);
|
|
3430
|
+
return /* @__PURE__ */ x(Zo, { ...d, asChild: !0, children: /* @__PURE__ */ A(
|
|
3431
|
+
Fo,
|
|
3417
3432
|
{
|
|
3418
3433
|
ref: t,
|
|
3419
3434
|
className: "data-table-header",
|
|
@@ -3430,7 +3445,7 @@ const ct = ({
|
|
|
3430
3445
|
minWidth: 72,
|
|
3431
3446
|
allowsSorting: !1,
|
|
3432
3447
|
isInternalColumn: !0,
|
|
3433
|
-
children: s === "multiple" && /* @__PURE__ */ x(
|
|
3448
|
+
children: s === "multiple" && /* @__PURE__ */ x(Gt, { slot: "selection" })
|
|
3434
3449
|
}
|
|
3435
3450
|
),
|
|
3436
3451
|
a && /* @__PURE__ */ x(
|
|
@@ -3442,10 +3457,10 @@ const ct = ({
|
|
|
3442
3457
|
allowsSorting: !1,
|
|
3443
3458
|
"aria-label": l.formatMessage(R.expandRows),
|
|
3444
3459
|
isInternalColumn: !0,
|
|
3445
|
-
children: /* @__PURE__ */ x(
|
|
3460
|
+
children: /* @__PURE__ */ x(Rt, { children: l.formatMessage(R.expandRows) })
|
|
3446
3461
|
}
|
|
3447
3462
|
),
|
|
3448
|
-
/* @__PURE__ */ x(
|
|
3463
|
+
/* @__PURE__ */ x(Ae, { items: n, children: (r) => /* @__PURE__ */ A(
|
|
3449
3464
|
De,
|
|
3450
3465
|
{
|
|
3451
3466
|
allowsSorting: (
|
|
@@ -3460,7 +3475,7 @@ const ct = ({
|
|
|
3460
3475
|
column: r,
|
|
3461
3476
|
children: [
|
|
3462
3477
|
/* @__PURE__ */ x("span", { "data-multiline-header": !0, children: r.header }),
|
|
3463
|
-
r.headerIcon && /* @__PURE__ */ x(
|
|
3478
|
+
r.headerIcon && /* @__PURE__ */ x(oe, { as: "span", ml: "200", children: r.headerIcon })
|
|
3464
3479
|
]
|
|
3465
3480
|
}
|
|
3466
3481
|
) }),
|
|
@@ -3474,39 +3489,39 @@ const ct = ({
|
|
|
3474
3489
|
allowsSorting: !1,
|
|
3475
3490
|
isInternalColumn: !0,
|
|
3476
3491
|
"aria-label": l.formatMessage(R.pinRows),
|
|
3477
|
-
children: /* @__PURE__ */ x(
|
|
3492
|
+
children: /* @__PURE__ */ x(Rt, { children: l.formatMessage(R.pinRows) })
|
|
3478
3493
|
}
|
|
3479
3494
|
)
|
|
3480
3495
|
]
|
|
3481
3496
|
}
|
|
3482
3497
|
) });
|
|
3483
3498
|
};
|
|
3484
|
-
|
|
3485
|
-
const
|
|
3499
|
+
pt.displayName = "DataTable.Header";
|
|
3500
|
+
const he = ({
|
|
3486
3501
|
ref: t,
|
|
3487
3502
|
children: e,
|
|
3488
3503
|
isDisabled: l,
|
|
3489
3504
|
...n
|
|
3490
3505
|
}) => {
|
|
3491
3506
|
const [o, i] = ke(n);
|
|
3492
|
-
return /* @__PURE__ */ x(
|
|
3507
|
+
return /* @__PURE__ */ x(_o, { asChild: !0, ...o, children: /* @__PURE__ */ x(Lo, { ref: t, ...i, children: (a) => /* @__PURE__ */ x(Ft.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(a) : e }) }) });
|
|
3493
3508
|
};
|
|
3494
|
-
|
|
3495
|
-
function
|
|
3509
|
+
he.displayName = "DataTable.Cell";
|
|
3510
|
+
function _e(t) {
|
|
3496
3511
|
return t.target?.closest(
|
|
3497
3512
|
'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
|
|
3498
3513
|
);
|
|
3499
3514
|
}
|
|
3500
|
-
function
|
|
3515
|
+
function ri(t) {
|
|
3501
3516
|
return t.target?.closest(
|
|
3502
3517
|
'[slot="selection"], [data-slot="selection"], [role="checkbox"]'
|
|
3503
3518
|
);
|
|
3504
3519
|
}
|
|
3505
|
-
function
|
|
3506
|
-
const e =
|
|
3520
|
+
function Mt(t) {
|
|
3521
|
+
const e = _e(t), l = ri(t);
|
|
3507
3522
|
(!e || e && !l) && t.stopPropagation();
|
|
3508
3523
|
}
|
|
3509
|
-
const
|
|
3524
|
+
const mt = ({
|
|
3510
3525
|
row: t,
|
|
3511
3526
|
ref: e,
|
|
3512
3527
|
...l
|
|
@@ -3525,66 +3540,66 @@ const ft = ({
|
|
|
3525
3540
|
onRowAction: m,
|
|
3526
3541
|
pinnedRows: h,
|
|
3527
3542
|
togglePin: y,
|
|
3528
|
-
sortedRows:
|
|
3529
|
-
} = fe(), [$,
|
|
3530
|
-
(
|
|
3543
|
+
sortedRows: v
|
|
3544
|
+
} = fe(), [$, b] = ke(l), g = ((S) => d ? d === "all" || t.isDisabled ? !0 : d.has(S) : !1)(t.id), C = M(null), w = W(
|
|
3545
|
+
(S) => {
|
|
3531
3546
|
if (!f) return;
|
|
3532
|
-
const
|
|
3533
|
-
!
|
|
3534
|
-
|
|
3547
|
+
const V = _e(S), re = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
|
|
3548
|
+
!V && !re && (C.current && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
|
|
3549
|
+
g ? m && m(t, "click") : f(t), C.current = null;
|
|
3535
3550
|
}, 300));
|
|
3536
3551
|
},
|
|
3537
|
-
[f, m, t,
|
|
3538
|
-
),
|
|
3539
|
-
|
|
3540
|
-
}, []),
|
|
3552
|
+
[f, m, t, g]
|
|
3553
|
+
), T = W((S) => {
|
|
3554
|
+
_e(S) || C.current && (window.clearTimeout(C.current), C.current = null);
|
|
3555
|
+
}, []), P = M({
|
|
3541
3556
|
count: 0,
|
|
3542
3557
|
node: void 0
|
|
3543
3558
|
}), z = W(
|
|
3544
|
-
(
|
|
3545
|
-
|
|
3559
|
+
(S) => {
|
|
3560
|
+
P.current.count += 1, P.current.count === 1 && S && (P.current.node = S, S.addEventListener(
|
|
3546
3561
|
// Use pointerdown event in order to capture event before it bubbles to react-aria's onPress handler
|
|
3547
3562
|
"pointerdown",
|
|
3548
|
-
|
|
3563
|
+
Mt,
|
|
3549
3564
|
{
|
|
3550
3565
|
capture: !0
|
|
3551
3566
|
}
|
|
3552
|
-
),
|
|
3567
|
+
), S.addEventListener("mouseup", w, { capture: !0 }), S.addEventListener("dblclick", T, {
|
|
3553
3568
|
capture: !0
|
|
3554
3569
|
}));
|
|
3555
3570
|
},
|
|
3556
|
-
[
|
|
3571
|
+
[w, T]
|
|
3557
3572
|
);
|
|
3558
|
-
|
|
3559
|
-
C.current && (window.clearTimeout(C.current), C.current = null),
|
|
3573
|
+
se(() => () => {
|
|
3574
|
+
C.current && (window.clearTimeout(C.current), C.current = null), P.current.count >= 1 && P.current.node && (P.current.node.removeEventListener(
|
|
3560
3575
|
"pointerdown",
|
|
3561
|
-
|
|
3562
|
-
),
|
|
3576
|
+
Mt
|
|
3577
|
+
), P.current.node.removeEventListener("mouseup", w), P.current.node.removeEventListener(
|
|
3563
3578
|
"dblclick",
|
|
3564
|
-
|
|
3579
|
+
T
|
|
3565
3580
|
));
|
|
3566
|
-
}, [
|
|
3567
|
-
const
|
|
3568
|
-
return /* @__PURE__ */ A(
|
|
3569
|
-
/* @__PURE__ */ x(
|
|
3570
|
-
|
|
3581
|
+
}, [w, T]);
|
|
3582
|
+
const F = Te(e, z), { selectionBehavior: H } = Il(), j = s && t[s] && (Array.isArray(t[s]) ? t[s].length > 0 : !0), I = a[t.id], K = h.has(t.id), Y = v.filter((S) => h.has(S.id)).map((S) => S.id), U = K ? Y.indexOf(t.id) : -1, ne = U === 0, pe = U === Y.length - 1, me = Y.length === 1 && K, _ = () => K ? me ? "data-table-row-pinned-single" : ne ? "data-table-row-pinned-first" : pe ? "data-table-row-pinned-last" : "" : "", k = (S) => i && typeof S == "string" ? /* @__PURE__ */ x(Qn, { query: i, ignoreCase: !0, matchAll: !0, children: S }) : S;
|
|
3583
|
+
return /* @__PURE__ */ A(Ee, { children: [
|
|
3584
|
+
/* @__PURE__ */ x(Pt, { asChild: !0, ...$, children: /* @__PURE__ */ A(
|
|
3585
|
+
At,
|
|
3571
3586
|
{
|
|
3572
|
-
isDisabled:
|
|
3587
|
+
isDisabled: g,
|
|
3573
3588
|
columns: o,
|
|
3574
|
-
ref:
|
|
3589
|
+
ref: F,
|
|
3575
3590
|
id: t.id,
|
|
3576
|
-
className: `data-table-row ${
|
|
3577
|
-
...
|
|
3578
|
-
dependencies: [
|
|
3591
|
+
className: `data-table-row ${g ? "data-table-row-disabled" : ""} ${K ? `data-table-row-pinned ${_()}` : ""}`,
|
|
3592
|
+
...b,
|
|
3593
|
+
dependencies: [I, i, p],
|
|
3579
3594
|
children: [
|
|
3580
3595
|
H === "toggle" && /* @__PURE__ */ x(
|
|
3581
|
-
|
|
3596
|
+
he,
|
|
3582
3597
|
{
|
|
3583
3598
|
className: "data-table-sticky-cell",
|
|
3584
3599
|
"data-slot": "selection",
|
|
3585
|
-
isDisabled:
|
|
3600
|
+
isDisabled: g,
|
|
3586
3601
|
children: /* @__PURE__ */ x(
|
|
3587
|
-
|
|
3602
|
+
oe,
|
|
3588
3603
|
{
|
|
3589
3604
|
display: "flex",
|
|
3590
3605
|
alignItems: "center",
|
|
@@ -3592,7 +3607,7 @@ const ft = ({
|
|
|
3592
3607
|
w: "100%",
|
|
3593
3608
|
h: "100%",
|
|
3594
3609
|
children: /* @__PURE__ */ x(
|
|
3595
|
-
|
|
3610
|
+
Gt,
|
|
3596
3611
|
{
|
|
3597
3612
|
name: "select-row",
|
|
3598
3613
|
slot: "selection",
|
|
@@ -3604,30 +3619,30 @@ const ft = ({
|
|
|
3604
3619
|
}
|
|
3605
3620
|
),
|
|
3606
3621
|
c && /* @__PURE__ */ x(
|
|
3607
|
-
|
|
3622
|
+
he,
|
|
3608
3623
|
{
|
|
3609
3624
|
className: "data-table-sticky-cell",
|
|
3610
3625
|
"data-slot": "expand",
|
|
3611
|
-
isDisabled:
|
|
3626
|
+
isDisabled: g,
|
|
3612
3627
|
children: j ? /* @__PURE__ */ x(
|
|
3613
|
-
|
|
3628
|
+
Ol,
|
|
3614
3629
|
{
|
|
3615
3630
|
w: "100%",
|
|
3616
3631
|
h: "100%",
|
|
3617
3632
|
cursor: "pointer",
|
|
3618
|
-
"aria-label":
|
|
3619
|
-
onClick: (
|
|
3620
|
-
|
|
3633
|
+
"aria-label": I ? "Collapse" : "Expand",
|
|
3634
|
+
onClick: (S) => {
|
|
3635
|
+
S.stopPropagation(), u(t.id);
|
|
3621
3636
|
},
|
|
3622
|
-
children:
|
|
3637
|
+
children: I ? /* @__PURE__ */ x(_l, {}) : /* @__PURE__ */ x(en, {})
|
|
3623
3638
|
}
|
|
3624
3639
|
) : null
|
|
3625
3640
|
}
|
|
3626
3641
|
),
|
|
3627
|
-
/* @__PURE__ */ x(
|
|
3628
|
-
const
|
|
3629
|
-
return /* @__PURE__ */ x(
|
|
3630
|
-
|
|
3642
|
+
/* @__PURE__ */ x(Ae, { items: o, children: (S) => {
|
|
3643
|
+
const V = S.accessor(t);
|
|
3644
|
+
return /* @__PURE__ */ x(he, { isDisabled: g, children: /* @__PURE__ */ x(
|
|
3645
|
+
oe,
|
|
3631
3646
|
{
|
|
3632
3647
|
className: p ? "truncated-cell" : "",
|
|
3633
3648
|
"data-truncated": p ? "true" : "false",
|
|
@@ -3637,41 +3652,41 @@ const ft = ({
|
|
|
3637
3652
|
maxW: "100%",
|
|
3638
3653
|
position: "relative",
|
|
3639
3654
|
overflow: "hidden",
|
|
3640
|
-
cursor:
|
|
3641
|
-
children:
|
|
3642
|
-
value: k(
|
|
3655
|
+
cursor: g ? "not-allowed" : "text",
|
|
3656
|
+
children: S.render ? S.render({
|
|
3657
|
+
value: k(V),
|
|
3643
3658
|
row: t,
|
|
3644
|
-
column:
|
|
3645
|
-
}) : k(
|
|
3659
|
+
column: S
|
|
3660
|
+
}) : k(V)
|
|
3646
3661
|
}
|
|
3647
|
-
) },
|
|
3662
|
+
) }, S.id);
|
|
3648
3663
|
} }),
|
|
3649
3664
|
/* @__PURE__ */ x(
|
|
3650
|
-
|
|
3665
|
+
he,
|
|
3651
3666
|
{
|
|
3652
3667
|
className: "data-table-sticky-cell",
|
|
3653
3668
|
"data-slot": "pin-row-cell",
|
|
3654
|
-
isDisabled:
|
|
3669
|
+
isDisabled: g,
|
|
3655
3670
|
children: /* @__PURE__ */ x(
|
|
3656
|
-
|
|
3671
|
+
oe,
|
|
3657
3672
|
{
|
|
3658
3673
|
"data-slot": K ? "nimbus-table-cell-pin-button-pinned" : "nimbus-table-cell-pin-button",
|
|
3659
|
-
children: /* @__PURE__ */ A(
|
|
3674
|
+
children: /* @__PURE__ */ A(Le.Root, { children: [
|
|
3660
3675
|
/* @__PURE__ */ x(
|
|
3661
|
-
|
|
3676
|
+
Kt,
|
|
3662
3677
|
{
|
|
3663
3678
|
size: "2xs",
|
|
3664
3679
|
variant: "ghost",
|
|
3665
3680
|
"aria-label": K ? "Unpin row" : "Pin row",
|
|
3666
3681
|
colorPalette: "primary",
|
|
3667
|
-
onClick: (
|
|
3668
|
-
|
|
3682
|
+
onClick: (S) => {
|
|
3683
|
+
S.stopPropagation(), y(t.id);
|
|
3669
3684
|
},
|
|
3670
|
-
children: /* @__PURE__ */ x(
|
|
3685
|
+
children: /* @__PURE__ */ x(tn, {})
|
|
3671
3686
|
},
|
|
3672
3687
|
"pin-btn"
|
|
3673
3688
|
),
|
|
3674
|
-
/* @__PURE__ */ x(
|
|
3689
|
+
/* @__PURE__ */ x(Le.Content, { placement: "top", children: K ? "Unpin row" : "Pin row" })
|
|
3675
3690
|
] })
|
|
3676
3691
|
}
|
|
3677
3692
|
)
|
|
@@ -3680,56 +3695,56 @@ const ft = ({
|
|
|
3680
3695
|
]
|
|
3681
3696
|
}
|
|
3682
3697
|
) }),
|
|
3683
|
-
c && /* @__PURE__ */ x(
|
|
3684
|
-
|
|
3698
|
+
c && /* @__PURE__ */ x(Pt, { ...$, asChild: !0, children: /* @__PURE__ */ x(
|
|
3699
|
+
At,
|
|
3685
3700
|
{
|
|
3686
|
-
"data-nested-row-expanded":
|
|
3687
|
-
dependencies: [
|
|
3701
|
+
"data-nested-row-expanded": I ? "true" : "false",
|
|
3702
|
+
dependencies: [I],
|
|
3688
3703
|
children: /* @__PURE__ */ x(
|
|
3689
|
-
|
|
3704
|
+
he,
|
|
3690
3705
|
{
|
|
3691
|
-
isDisabled:
|
|
3706
|
+
isDisabled: g,
|
|
3692
3707
|
colSpan: o.length + (c ? 1 : 0) + (r ? 1 : 0) + 1,
|
|
3693
3708
|
"data-nested-cell": !0,
|
|
3694
|
-
children:
|
|
3709
|
+
children: I ? s && Array.isArray(t[s]) ? `${t[s].length} nested items` : s && t[s] : null
|
|
3695
3710
|
}
|
|
3696
3711
|
)
|
|
3697
3712
|
}
|
|
3698
3713
|
) })
|
|
3699
3714
|
] });
|
|
3700
3715
|
};
|
|
3701
|
-
|
|
3702
|
-
const
|
|
3716
|
+
mt.displayName = "DataTable.Row";
|
|
3717
|
+
const ai = () => /* @__PURE__ */ x(oe, { w: "100%", p: "200", children: "No Data" }), ht = ({
|
|
3703
3718
|
ref: t,
|
|
3704
3719
|
...e
|
|
3705
3720
|
}) => {
|
|
3706
3721
|
const { sortedRows: l, activeColumns: n, renderEmptyState: o } = fe(), [i, a] = ke(e);
|
|
3707
|
-
return /* @__PURE__ */ x(
|
|
3708
|
-
|
|
3722
|
+
return /* @__PURE__ */ x(Qo, { asChild: !0, ...i, children: /* @__PURE__ */ x(
|
|
3723
|
+
Ho,
|
|
3709
3724
|
{
|
|
3710
3725
|
ref: t,
|
|
3711
3726
|
items: l,
|
|
3712
3727
|
dependencies: [n],
|
|
3713
|
-
renderEmptyState: o ??
|
|
3728
|
+
renderEmptyState: o ?? ai,
|
|
3714
3729
|
...a,
|
|
3715
|
-
children: (u) => /* @__PURE__ */ x(
|
|
3730
|
+
children: (u) => /* @__PURE__ */ x(mt, { row: u }, u.id)
|
|
3716
3731
|
}
|
|
3717
3732
|
) });
|
|
3718
3733
|
};
|
|
3719
|
-
|
|
3720
|
-
const
|
|
3734
|
+
ht.displayName = "DataTable.Body";
|
|
3735
|
+
const bt = function({
|
|
3721
3736
|
ref: e,
|
|
3722
3737
|
children: l,
|
|
3723
3738
|
...n
|
|
3724
3739
|
}) {
|
|
3725
|
-
const o =
|
|
3726
|
-
return /* @__PURE__ */ x(
|
|
3740
|
+
const o = M(null), i = Q(Te(o, e));
|
|
3741
|
+
return /* @__PURE__ */ x(ei, { ref: i, ...n, children: l });
|
|
3727
3742
|
};
|
|
3728
|
-
|
|
3729
|
-
function
|
|
3743
|
+
bt.displayName = "DataTable.Footer";
|
|
3744
|
+
function ui(t) {
|
|
3730
3745
|
return "onRemoveItem" in t && typeof t.onRemoveItem == "function";
|
|
3731
3746
|
}
|
|
3732
|
-
const
|
|
3747
|
+
const si = ({
|
|
3733
3748
|
hiddenItems: t,
|
|
3734
3749
|
visibleItems: e,
|
|
3735
3750
|
handleVisibleColumnsUpdate: l,
|
|
@@ -3744,18 +3759,18 @@ const ii = ({
|
|
|
3744
3759
|
i(r);
|
|
3745
3760
|
}, d = W(
|
|
3746
3761
|
(r) => {
|
|
3747
|
-
const p = new Set(t.map((
|
|
3748
|
-
r.map((
|
|
3762
|
+
const p = new Set(t.map((v) => v.id)), f = new Set(
|
|
3763
|
+
r.map((v) => v.id)
|
|
3749
3764
|
), m = t.filter(
|
|
3750
|
-
(
|
|
3765
|
+
(v) => !f.has(v.id)
|
|
3751
3766
|
), h = r.filter(
|
|
3752
|
-
(
|
|
3767
|
+
(v) => !p.has(v.id)
|
|
3753
3768
|
);
|
|
3754
3769
|
let y = [...e];
|
|
3755
3770
|
if (m.length > 0 && (y = [...y, ...m]), h.length > 0) {
|
|
3756
|
-
const
|
|
3771
|
+
const v = new Set(h.map(($) => $.id));
|
|
3757
3772
|
y = y.filter(
|
|
3758
|
-
($) => !
|
|
3773
|
+
($) => !v.has($.id)
|
|
3759
3774
|
);
|
|
3760
3775
|
}
|
|
3761
3776
|
l(y);
|
|
@@ -3767,15 +3782,15 @@ const ii = ({
|
|
|
3767
3782
|
},
|
|
3768
3783
|
[l]
|
|
3769
3784
|
);
|
|
3770
|
-
return /* @__PURE__ */ A(
|
|
3785
|
+
return /* @__PURE__ */ A(Ve, { mt: "800", children: [
|
|
3771
3786
|
/* @__PURE__ */ A(xe, { gap: "400", width: "100%", columns: 2, children: [
|
|
3772
|
-
/* @__PURE__ */ A(
|
|
3773
|
-
/* @__PURE__ */ A(
|
|
3774
|
-
/* @__PURE__ */ x(
|
|
3775
|
-
/* @__PURE__ */ x(
|
|
3787
|
+
/* @__PURE__ */ A(oe, { children: [
|
|
3788
|
+
/* @__PURE__ */ A(Ve, { direction: "row", alignItems: "center", mb: "200", children: [
|
|
3789
|
+
/* @__PURE__ */ x(ln, {}),
|
|
3790
|
+
/* @__PURE__ */ x(ze, { fontWeight: "700", fontSize: "sm", w: "full", children: a(R.hiddenColumns) })
|
|
3776
3791
|
] }),
|
|
3777
3792
|
/* @__PURE__ */ A(
|
|
3778
|
-
|
|
3793
|
+
Ve,
|
|
3779
3794
|
{
|
|
3780
3795
|
colorPalette: "primary",
|
|
3781
3796
|
border: "{sizes.25} solid",
|
|
@@ -3786,7 +3801,7 @@ const ii = ({
|
|
|
3786
3801
|
h: "lg",
|
|
3787
3802
|
children: [
|
|
3788
3803
|
/* @__PURE__ */ x(
|
|
3789
|
-
|
|
3804
|
+
pn,
|
|
3790
3805
|
{
|
|
3791
3806
|
w: "full",
|
|
3792
3807
|
size: "sm",
|
|
@@ -3799,7 +3814,7 @@ const ii = ({
|
|
|
3799
3814
|
}
|
|
3800
3815
|
),
|
|
3801
3816
|
/* @__PURE__ */ x(
|
|
3802
|
-
|
|
3817
|
+
Nt,
|
|
3803
3818
|
{
|
|
3804
3819
|
colorPalette: "primary",
|
|
3805
3820
|
border: "{sizes.25} solid",
|
|
@@ -3807,19 +3822,20 @@ const ii = ({
|
|
|
3807
3822
|
}
|
|
3808
3823
|
),
|
|
3809
3824
|
/* @__PURE__ */ x(
|
|
3810
|
-
|
|
3825
|
+
Ie.Root,
|
|
3811
3826
|
{
|
|
3812
3827
|
border: "none",
|
|
3813
3828
|
borderColor: "none",
|
|
3814
3829
|
h: "full",
|
|
3830
|
+
w: "full",
|
|
3815
3831
|
overflowY: "auto",
|
|
3816
3832
|
items: u,
|
|
3817
3833
|
onUpdateItems: d,
|
|
3818
3834
|
"aria-label": a(R.hiddenColumnsAriaLabel),
|
|
3819
3835
|
"data-testid": "hidden-columns-list",
|
|
3820
|
-
renderEmptyState: /* @__PURE__ */ x(
|
|
3836
|
+
renderEmptyState: /* @__PURE__ */ x(ze, { fontSize: "sm", color: "gray.9", children: a(R.noHiddenColumns) }),
|
|
3821
3837
|
children: (r) => /* @__PURE__ */ x(
|
|
3822
|
-
|
|
3838
|
+
Ie.Item,
|
|
3823
3839
|
{
|
|
3824
3840
|
py: "100",
|
|
3825
3841
|
id: r.id,
|
|
@@ -3834,13 +3850,13 @@ const ii = ({
|
|
|
3834
3850
|
}
|
|
3835
3851
|
)
|
|
3836
3852
|
] }),
|
|
3837
|
-
/* @__PURE__ */ A(
|
|
3838
|
-
/* @__PURE__ */ A(
|
|
3839
|
-
/* @__PURE__ */ x(
|
|
3840
|
-
/* @__PURE__ */ x(
|
|
3853
|
+
/* @__PURE__ */ A(oe, { children: [
|
|
3854
|
+
/* @__PURE__ */ A(Ve, { direction: "row", alignItems: "center", mb: "200", children: [
|
|
3855
|
+
/* @__PURE__ */ x(nn, {}),
|
|
3856
|
+
/* @__PURE__ */ x(ze, { fontWeight: "700", fontSize: "sm", children: a(R.visibleColumnsList) })
|
|
3841
3857
|
] }),
|
|
3842
3858
|
/* @__PURE__ */ x(
|
|
3843
|
-
|
|
3859
|
+
Ie.Root,
|
|
3844
3860
|
{
|
|
3845
3861
|
removableItems: !0,
|
|
3846
3862
|
p: "300",
|
|
@@ -3851,11 +3867,11 @@ const ii = ({
|
|
|
3851
3867
|
"aria-label": a(R.visibleColumnsAria),
|
|
3852
3868
|
"data-testid": "visible-columns-list",
|
|
3853
3869
|
children: (r) => /* @__PURE__ */ x(
|
|
3854
|
-
|
|
3870
|
+
Ie.Item,
|
|
3855
3871
|
{
|
|
3856
3872
|
py: "100",
|
|
3857
3873
|
id: r.id,
|
|
3858
|
-
onRemoveItem:
|
|
3874
|
+
onRemoveItem: ui(r) ? r.onRemoveItem : void 0,
|
|
3859
3875
|
"aria-label": r.label?.toString() ?? r.id,
|
|
3860
3876
|
children: r.label
|
|
3861
3877
|
},
|
|
@@ -3865,8 +3881,8 @@ const ii = ({
|
|
|
3865
3881
|
)
|
|
3866
3882
|
] })
|
|
3867
3883
|
] }),
|
|
3868
|
-
/* @__PURE__ */ x(
|
|
3869
|
-
|
|
3884
|
+
/* @__PURE__ */ x(oe, { children: /* @__PURE__ */ A(
|
|
3885
|
+
hn,
|
|
3870
3886
|
{
|
|
3871
3887
|
variant: "ghost",
|
|
3872
3888
|
colorPalette: "primary",
|
|
@@ -3874,22 +3890,22 @@ const ii = ({
|
|
|
3874
3890
|
onClick: n,
|
|
3875
3891
|
"aria-label": a(R.reset),
|
|
3876
3892
|
children: [
|
|
3877
|
-
/* @__PURE__ */ x(
|
|
3893
|
+
/* @__PURE__ */ x(on, {}),
|
|
3878
3894
|
a(R.reset)
|
|
3879
3895
|
]
|
|
3880
3896
|
}
|
|
3881
3897
|
) })
|
|
3882
3898
|
] });
|
|
3883
|
-
},
|
|
3899
|
+
}, Bt = {
|
|
3884
3900
|
TOGGLE_TEXT_VISIBILITY: "toggleTextVisibility",
|
|
3885
3901
|
TOGGLE_ROW_DENSITY: "toggleRowDensity"
|
|
3886
|
-
},
|
|
3902
|
+
}, di = ({
|
|
3887
3903
|
onSettingsChange: t
|
|
3888
3904
|
}) => {
|
|
3889
3905
|
const { formatMessage: e } = be(), l = fe(), n = l.isTruncated ?? !1, o = l.density === "condensed" ? "compact" : "comfortable", i = (u) => {
|
|
3890
|
-
Array.from(u)[0] && t?.(
|
|
3906
|
+
Array.from(u)[0] && t?.(Bt.TOGGLE_TEXT_VISIBILITY);
|
|
3891
3907
|
}, a = (u) => {
|
|
3892
|
-
Array.from(u)[0] && t?.(
|
|
3908
|
+
Array.from(u)[0] && t?.(Bt.TOGGLE_ROW_DENSITY);
|
|
3893
3909
|
};
|
|
3894
3910
|
return /* @__PURE__ */ A(
|
|
3895
3911
|
xe,
|
|
@@ -3900,9 +3916,9 @@ const ii = ({
|
|
|
3900
3916
|
mt: "800",
|
|
3901
3917
|
alignItems: "center",
|
|
3902
3918
|
children: [
|
|
3903
|
-
/* @__PURE__ */ x(xe.Item, { colSpan: 1, children: /* @__PURE__ */ x(
|
|
3904
|
-
/* @__PURE__ */ x(xe.Item, { colSpan: 3, children: /* @__PURE__ */ x(
|
|
3905
|
-
|
|
3919
|
+
/* @__PURE__ */ x(xe.Item, { colSpan: 1, children: /* @__PURE__ */ x(ze, { fontWeight: "500", children: e(R.textVisibility) }) }),
|
|
3920
|
+
/* @__PURE__ */ x(xe.Item, { colSpan: 3, children: /* @__PURE__ */ x(Dt, { orientation: "horizontal", variant: "outline", size: "xs", w: "full", children: /* @__PURE__ */ A(
|
|
3921
|
+
Ct.Root,
|
|
3906
3922
|
{
|
|
3907
3923
|
w: "full",
|
|
3908
3924
|
selectedKeys: n ? ["preview"] : ["full"],
|
|
@@ -3910,7 +3926,7 @@ const ii = ({
|
|
|
3910
3926
|
"aria-label": e(R.textVisibilityAriaLabel),
|
|
3911
3927
|
children: [
|
|
3912
3928
|
/* @__PURE__ */ A(
|
|
3913
|
-
|
|
3929
|
+
We,
|
|
3914
3930
|
{
|
|
3915
3931
|
id: "full",
|
|
3916
3932
|
size: "xs",
|
|
@@ -3919,13 +3935,13 @@ const ii = ({
|
|
|
3919
3935
|
px: "300",
|
|
3920
3936
|
flex: "1",
|
|
3921
3937
|
children: [
|
|
3922
|
-
/* @__PURE__ */ x(
|
|
3938
|
+
/* @__PURE__ */ x(rn, {}),
|
|
3923
3939
|
e(R.fullText)
|
|
3924
3940
|
]
|
|
3925
3941
|
}
|
|
3926
3942
|
),
|
|
3927
3943
|
/* @__PURE__ */ A(
|
|
3928
|
-
|
|
3944
|
+
We,
|
|
3929
3945
|
{
|
|
3930
3946
|
id: "preview",
|
|
3931
3947
|
size: "xs",
|
|
@@ -3934,7 +3950,7 @@ const ii = ({
|
|
|
3934
3950
|
px: "300",
|
|
3935
3951
|
flex: "1",
|
|
3936
3952
|
children: [
|
|
3937
|
-
/* @__PURE__ */ x(
|
|
3953
|
+
/* @__PURE__ */ x(an, {}),
|
|
3938
3954
|
e(R.TextPreviews)
|
|
3939
3955
|
]
|
|
3940
3956
|
}
|
|
@@ -3942,9 +3958,9 @@ const ii = ({
|
|
|
3942
3958
|
]
|
|
3943
3959
|
}
|
|
3944
3960
|
) }) }),
|
|
3945
|
-
/* @__PURE__ */ x(xe.Item, { colSpan: 1, children: /* @__PURE__ */ x(
|
|
3946
|
-
/* @__PURE__ */ x(xe.Item, { colSpan: 3, children: /* @__PURE__ */ x(
|
|
3947
|
-
|
|
3961
|
+
/* @__PURE__ */ x(xe.Item, { colSpan: 1, children: /* @__PURE__ */ x(ze, { fontWeight: "500", children: e(R.RowDensity) }) }),
|
|
3962
|
+
/* @__PURE__ */ x(xe.Item, { colSpan: 3, children: /* @__PURE__ */ x(Dt, { orientation: "horizontal", variant: "outline", size: "xs", w: "full", children: /* @__PURE__ */ A(
|
|
3963
|
+
Ct.Root,
|
|
3948
3964
|
{
|
|
3949
3965
|
w: "full",
|
|
3950
3966
|
colorPalette: "primary",
|
|
@@ -3953,7 +3969,7 @@ const ii = ({
|
|
|
3953
3969
|
"aria-label": e(R.RowDensityAriaLabel),
|
|
3954
3970
|
children: [
|
|
3955
3971
|
/* @__PURE__ */ A(
|
|
3956
|
-
|
|
3972
|
+
We,
|
|
3957
3973
|
{
|
|
3958
3974
|
id: "comfortable",
|
|
3959
3975
|
size: "xs",
|
|
@@ -3962,13 +3978,13 @@ const ii = ({
|
|
|
3962
3978
|
px: "300",
|
|
3963
3979
|
flex: "1",
|
|
3964
3980
|
children: [
|
|
3965
|
-
/* @__PURE__ */ x(
|
|
3981
|
+
/* @__PURE__ */ x(un, {}),
|
|
3966
3982
|
e(R.comfortable)
|
|
3967
3983
|
]
|
|
3968
3984
|
}
|
|
3969
3985
|
),
|
|
3970
3986
|
/* @__PURE__ */ A(
|
|
3971
|
-
|
|
3987
|
+
We,
|
|
3972
3988
|
{
|
|
3973
3989
|
id: "compact",
|
|
3974
3990
|
size: "xs",
|
|
@@ -3977,7 +3993,7 @@ const ii = ({
|
|
|
3977
3993
|
px: "300",
|
|
3978
3994
|
flex: "1",
|
|
3979
3995
|
children: [
|
|
3980
|
-
/* @__PURE__ */ x(
|
|
3996
|
+
/* @__PURE__ */ x(sn, {}),
|
|
3981
3997
|
e(R.compact)
|
|
3982
3998
|
]
|
|
3983
3999
|
}
|
|
@@ -3988,70 +4004,76 @@ const ii = ({
|
|
|
3988
4004
|
]
|
|
3989
4005
|
}
|
|
3990
4006
|
);
|
|
3991
|
-
},
|
|
3992
|
-
const [t, e] = q(!1), l = fe(), { formatMessage: n } = be(), {
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
4007
|
+
}, Yl = () => {
|
|
4008
|
+
const [t, e] = q(!1), l = fe(), { formatMessage: n } = be(), {
|
|
4009
|
+
columns: o,
|
|
4010
|
+
visibleColumns: i,
|
|
4011
|
+
onColumnsChange: a,
|
|
4012
|
+
onSettingsChange: u
|
|
4013
|
+
// customSettings,
|
|
4014
|
+
} = l, s = o.filter(
|
|
4015
|
+
($) => !i?.includes($.id)
|
|
4016
|
+
), { customSettings: d } = ii(), c = M(o);
|
|
4017
|
+
se(() => {
|
|
4018
|
+
c.current = o;
|
|
3997
4019
|
}, [o]);
|
|
3998
|
-
const
|
|
4020
|
+
const r = M(o), p = M(i), f = M(i || []);
|
|
3999
4021
|
if (!i || !s)
|
|
4000
4022
|
return null;
|
|
4001
|
-
const
|
|
4002
|
-
const
|
|
4003
|
-
if (!(
|
|
4004
|
-
(
|
|
4023
|
+
const m = N(() => ($) => {
|
|
4024
|
+
const b = $.map((w) => w.id);
|
|
4025
|
+
if (!(b.length !== f.current.length || b.some(
|
|
4026
|
+
(w, T) => w !== f.current[T]
|
|
4005
4027
|
)))
|
|
4006
4028
|
return;
|
|
4007
|
-
const
|
|
4008
|
-
(
|
|
4029
|
+
const g = new Map(c.current.map((w) => [w.id, w])), C = $.map((w) => g.get(w.id)).filter(
|
|
4030
|
+
(w) => w !== void 0
|
|
4009
4031
|
);
|
|
4010
|
-
|
|
4011
|
-
}, []),
|
|
4012
|
-
key:
|
|
4013
|
-
id:
|
|
4014
|
-
label:
|
|
4015
|
-
})), [i, o]),
|
|
4032
|
+
f.current = b, a && a(C);
|
|
4033
|
+
}, []), h = N(() => o.filter(($) => !i?.includes($.id)).map(($) => ({
|
|
4034
|
+
key: $.id,
|
|
4035
|
+
id: $.id,
|
|
4036
|
+
label: $.header
|
|
4037
|
+
})), [i, o]), y = N(() => {
|
|
4016
4038
|
if (!i || i.length === 0)
|
|
4017
4039
|
return [];
|
|
4018
|
-
const
|
|
4019
|
-
return i.map((
|
|
4020
|
-
const
|
|
4021
|
-
return
|
|
4022
|
-
key:
|
|
4023
|
-
id:
|
|
4024
|
-
label:
|
|
4040
|
+
const $ = new Map(o.map((b) => [b.id, b]));
|
|
4041
|
+
return i.map((b) => {
|
|
4042
|
+
const D = $.get(b);
|
|
4043
|
+
return D ? {
|
|
4044
|
+
key: D.id,
|
|
4045
|
+
id: D.id,
|
|
4046
|
+
label: D.header
|
|
4025
4047
|
} : null;
|
|
4026
|
-
}).filter((
|
|
4027
|
-
}, [o, i]),
|
|
4048
|
+
}).filter((b) => b !== null);
|
|
4049
|
+
}, [o, i]), v = W(() => {
|
|
4028
4050
|
if (a) {
|
|
4029
|
-
const
|
|
4030
|
-
if (
|
|
4031
|
-
const
|
|
4032
|
-
|
|
4033
|
-
),
|
|
4034
|
-
(
|
|
4051
|
+
const $ = p.current;
|
|
4052
|
+
if ($ && $.length > 0) {
|
|
4053
|
+
const b = new Map(
|
|
4054
|
+
r.current.map((g) => [g.id, g])
|
|
4055
|
+
), D = $.map((g) => b.get(g)).filter(
|
|
4056
|
+
(g) => g !== void 0
|
|
4035
4057
|
);
|
|
4036
|
-
|
|
4058
|
+
f.current = $, a(D);
|
|
4037
4059
|
} else
|
|
4038
|
-
|
|
4039
|
-
(
|
|
4040
|
-
), a(
|
|
4060
|
+
f.current = r.current.map(
|
|
4061
|
+
(b) => b.id
|
|
4062
|
+
), a(r.current);
|
|
4041
4063
|
}
|
|
4042
4064
|
}, [a]);
|
|
4043
|
-
return /* @__PURE__ */ A(
|
|
4044
|
-
/* @__PURE__ */ A(
|
|
4045
|
-
/* @__PURE__ */ x(
|
|
4065
|
+
return /* @__PURE__ */ A(Ee, { children: [
|
|
4066
|
+
/* @__PURE__ */ A(Le.Root, { children: [
|
|
4067
|
+
/* @__PURE__ */ x(Le.Content, { placement: "top", children: n(R.settings) }),
|
|
4046
4068
|
/* @__PURE__ */ x(
|
|
4047
|
-
|
|
4069
|
+
Kt,
|
|
4048
4070
|
{
|
|
4049
4071
|
variant: "ghost",
|
|
4050
4072
|
colorPalette: "primary",
|
|
4051
4073
|
size: "xs",
|
|
4052
4074
|
"aria-label": n(R.settings),
|
|
4053
4075
|
onClick: () => e(!0),
|
|
4054
|
-
children: /* @__PURE__ */ x(
|
|
4076
|
+
children: /* @__PURE__ */ x(dn, {})
|
|
4055
4077
|
}
|
|
4056
4078
|
)
|
|
4057
4079
|
] }),
|
|
@@ -4068,34 +4090,43 @@ const ii = ({
|
|
|
4068
4090
|
/* @__PURE__ */ x(ve.CloseTrigger, {})
|
|
4069
4091
|
] }),
|
|
4070
4092
|
/* @__PURE__ */ x(ve.Body, { children: /* @__PURE__ */ x(
|
|
4071
|
-
|
|
4093
|
+
bn.Root,
|
|
4072
4094
|
{
|
|
4073
4095
|
tabs: [
|
|
4074
4096
|
{
|
|
4075
4097
|
id: "visible-columns",
|
|
4076
|
-
tabLabel: /* @__PURE__ */ A(
|
|
4077
|
-
/* @__PURE__ */ x(
|
|
4098
|
+
tabLabel: /* @__PURE__ */ A(Ee, { children: [
|
|
4099
|
+
/* @__PURE__ */ x(cn, {}),
|
|
4078
4100
|
n(R.visibleColumns)
|
|
4079
4101
|
] }),
|
|
4080
4102
|
panelContent: /* @__PURE__ */ x(
|
|
4081
|
-
|
|
4103
|
+
si,
|
|
4082
4104
|
{
|
|
4083
|
-
hiddenItems:
|
|
4084
|
-
visibleItems:
|
|
4085
|
-
handleVisibleColumnsUpdate:
|
|
4086
|
-
handleResetColumns:
|
|
4105
|
+
hiddenItems: h,
|
|
4106
|
+
visibleItems: y,
|
|
4107
|
+
handleVisibleColumnsUpdate: m,
|
|
4108
|
+
handleResetColumns: v
|
|
4087
4109
|
}
|
|
4088
4110
|
)
|
|
4089
4111
|
},
|
|
4090
4112
|
{
|
|
4091
4113
|
id: "layout-settings",
|
|
4092
|
-
tabLabel: /* @__PURE__ */ A(
|
|
4093
|
-
/* @__PURE__ */ x(
|
|
4114
|
+
tabLabel: /* @__PURE__ */ A(Ee, { children: [
|
|
4115
|
+
/* @__PURE__ */ x(fn, {}),
|
|
4094
4116
|
n(R.layoutSettings)
|
|
4095
4117
|
] }),
|
|
4096
|
-
panelContent: /* @__PURE__ */ x(
|
|
4097
|
-
}
|
|
4098
|
-
|
|
4118
|
+
panelContent: /* @__PURE__ */ x(di, { onSettingsChange: u })
|
|
4119
|
+
},
|
|
4120
|
+
d ? {
|
|
4121
|
+
id: "custom-settings",
|
|
4122
|
+
tabLabel: /* @__PURE__ */ A(Ee, { children: [
|
|
4123
|
+
d?.icon ?? null,
|
|
4124
|
+
d?.label
|
|
4125
|
+
] }),
|
|
4126
|
+
panelContent: /* @__PURE__ */ x(oe, { mt: "800", children: d.panel })
|
|
4127
|
+
} : null
|
|
4128
|
+
// Filter out null values when no custom settings are provided
|
|
4129
|
+
].filter(($) => $ !== null)
|
|
4099
4130
|
}
|
|
4100
4131
|
) })
|
|
4101
4132
|
] })
|
|
@@ -4103,31 +4134,31 @@ const ii = ({
|
|
|
4103
4134
|
)
|
|
4104
4135
|
] });
|
|
4105
4136
|
};
|
|
4106
|
-
|
|
4107
|
-
const
|
|
4137
|
+
Yl.displayName = "DataTable.Manager";
|
|
4138
|
+
const ci = function({
|
|
4108
4139
|
ref: e,
|
|
4109
4140
|
footer: l,
|
|
4110
4141
|
...n
|
|
4111
4142
|
}) {
|
|
4112
|
-
const o = be(), i =
|
|
4113
|
-
return /* @__PURE__ */ A(
|
|
4114
|
-
/* @__PURE__ */ A(
|
|
4143
|
+
const o = be(), i = M(null), a = Q(Te(i, e));
|
|
4144
|
+
return /* @__PURE__ */ A(ct, { ref: a, ...n, children: [
|
|
4145
|
+
/* @__PURE__ */ A(ft, { "aria-label": o.formatMessage(R.dataTable), children: [
|
|
4115
4146
|
/* @__PURE__ */ x(
|
|
4116
|
-
|
|
4147
|
+
pt,
|
|
4117
4148
|
{
|
|
4118
4149
|
"aria-label": o.formatMessage(R.dataTableHeader)
|
|
4119
4150
|
}
|
|
4120
4151
|
),
|
|
4121
4152
|
/* @__PURE__ */ x(
|
|
4122
|
-
|
|
4153
|
+
ht,
|
|
4123
4154
|
{
|
|
4124
4155
|
"aria-label": o.formatMessage(R.dataTableBody)
|
|
4125
4156
|
}
|
|
4126
4157
|
)
|
|
4127
4158
|
] }),
|
|
4128
|
-
l && /* @__PURE__ */ x(
|
|
4159
|
+
l && /* @__PURE__ */ x(bt, { children: l })
|
|
4129
4160
|
] });
|
|
4130
|
-
},
|
|
4161
|
+
}, xr = /* @__PURE__ */ Object.assign(ci, {
|
|
4131
4162
|
/**
|
|
4132
4163
|
* # DataTable.Root
|
|
4133
4164
|
*
|
|
@@ -4144,7 +4175,7 @@ const ai = function({
|
|
|
4144
4175
|
* </DataTable.Root>
|
|
4145
4176
|
* ```
|
|
4146
4177
|
*/
|
|
4147
|
-
Root:
|
|
4178
|
+
Root: ct,
|
|
4148
4179
|
/**
|
|
4149
4180
|
* # DataTable.Table
|
|
4150
4181
|
*
|
|
@@ -4161,7 +4192,7 @@ const ai = function({
|
|
|
4161
4192
|
* </DataTable.Root>
|
|
4162
4193
|
* ```
|
|
4163
4194
|
*/
|
|
4164
|
-
Table:
|
|
4195
|
+
Table: ft,
|
|
4165
4196
|
/**
|
|
4166
4197
|
* # DataTable.Header
|
|
4167
4198
|
*
|
|
@@ -4178,7 +4209,7 @@ const ai = function({
|
|
|
4178
4209
|
* </DataTable.Root>
|
|
4179
4210
|
* ```
|
|
4180
4211
|
*/
|
|
4181
|
-
Header:
|
|
4212
|
+
Header: pt,
|
|
4182
4213
|
/**
|
|
4183
4214
|
* # DataTable.Column
|
|
4184
4215
|
*
|
|
@@ -4214,7 +4245,7 @@ const ai = function({
|
|
|
4214
4245
|
* </DataTable.Root>
|
|
4215
4246
|
* ```
|
|
4216
4247
|
*/
|
|
4217
|
-
Body:
|
|
4248
|
+
Body: ht,
|
|
4218
4249
|
/**
|
|
4219
4250
|
* # DataTable.Row
|
|
4220
4251
|
*
|
|
@@ -4233,7 +4264,7 @@ const ai = function({
|
|
|
4233
4264
|
* </DataTable.Root>
|
|
4234
4265
|
* ```
|
|
4235
4266
|
*/
|
|
4236
|
-
Row:
|
|
4267
|
+
Row: mt,
|
|
4237
4268
|
/**
|
|
4238
4269
|
* # DataTable.Cell
|
|
4239
4270
|
*
|
|
@@ -4254,7 +4285,7 @@ const ai = function({
|
|
|
4254
4285
|
* </DataTable.Root>
|
|
4255
4286
|
* ```
|
|
4256
4287
|
*/
|
|
4257
|
-
Cell:
|
|
4288
|
+
Cell: he,
|
|
4258
4289
|
/**
|
|
4259
4290
|
* # DataTable.Footer
|
|
4260
4291
|
*
|
|
@@ -4274,7 +4305,7 @@ const ai = function({
|
|
|
4274
4305
|
* </DataTable.Root>
|
|
4275
4306
|
* ```
|
|
4276
4307
|
*/
|
|
4277
|
-
Footer:
|
|
4308
|
+
Footer: bt,
|
|
4278
4309
|
/**
|
|
4279
4310
|
* # DataTable.Manager
|
|
4280
4311
|
*
|
|
@@ -4293,7 +4324,7 @@ const ai = function({
|
|
|
4293
4324
|
* </DataTable.Root>
|
|
4294
4325
|
* ```
|
|
4295
4326
|
*/
|
|
4296
|
-
Manager:
|
|
4327
|
+
Manager: Yl,
|
|
4297
4328
|
/**
|
|
4298
4329
|
* # DataTable.ExpandButton
|
|
4299
4330
|
*
|
|
@@ -4308,7 +4339,7 @@ const ai = function({
|
|
|
4308
4339
|
* />
|
|
4309
4340
|
* ```
|
|
4310
4341
|
*/
|
|
4311
|
-
ExpandButton:
|
|
4342
|
+
ExpandButton: Ol,
|
|
4312
4343
|
/**
|
|
4313
4344
|
* # DataTable.NestedIcon
|
|
4314
4345
|
*
|
|
@@ -4324,7 +4355,7 @@ const ai = function({
|
|
|
4324
4355
|
* />
|
|
4325
4356
|
* ```
|
|
4326
4357
|
*/
|
|
4327
|
-
NestedIcon:
|
|
4358
|
+
NestedIcon: li,
|
|
4328
4359
|
/**
|
|
4329
4360
|
* # DataTable.SelectionCell
|
|
4330
4361
|
*
|
|
@@ -4339,7 +4370,7 @@ const ai = function({
|
|
|
4339
4370
|
* />
|
|
4340
4371
|
* ```
|
|
4341
4372
|
*/
|
|
4342
|
-
SelectionCell:
|
|
4373
|
+
SelectionCell: ti,
|
|
4343
4374
|
/**
|
|
4344
4375
|
* # DataTable.Context
|
|
4345
4376
|
*
|
|
@@ -4351,7 +4382,7 @@ const ai = function({
|
|
|
4351
4382
|
* const context = useContext(DataTable.Context);
|
|
4352
4383
|
* ```
|
|
4353
4384
|
*/
|
|
4354
|
-
Context:
|
|
4385
|
+
Context: Xe,
|
|
4355
4386
|
/**
|
|
4356
4387
|
* # DataTable.useDataTableContext
|
|
4357
4388
|
*
|
|
@@ -4366,19 +4397,19 @@ const ai = function({
|
|
|
4366
4397
|
useDataTableContext: fe
|
|
4367
4398
|
});
|
|
4368
4399
|
export {
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4400
|
+
xr as D,
|
|
4401
|
+
Bt as U,
|
|
4402
|
+
ct as a,
|
|
4403
|
+
ft as b,
|
|
4404
|
+
pt as c,
|
|
4374
4405
|
De as d,
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4406
|
+
ht as e,
|
|
4407
|
+
mt as f,
|
|
4408
|
+
he as g,
|
|
4409
|
+
bt as h,
|
|
4410
|
+
Yl as i,
|
|
4411
|
+
Ol as j,
|
|
4412
|
+
li as k,
|
|
4413
|
+
ti as l
|
|
4383
4414
|
};
|
|
4384
|
-
//# sourceMappingURL=data-table-
|
|
4415
|
+
//# sourceMappingURL=data-table-B3Ch_C55.es.js.map
|