munza-x-data-grid 1.5.7 → 1.5.9
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/contexts/GridContext.d.ts +4 -2
- package/dist/core/Grid.d.ts +1 -1
- package/dist/data-grid.cjs +1 -1
- package/dist/data-grid.js +306 -300
- package/dist/hooks/useGridState.d.ts +3 -0
- package/package.json +1 -1
package/dist/data-grid.js
CHANGED
|
@@ -77,7 +77,7 @@ function C(...t) {
|
|
|
77
77
|
/* @__NO_SIDE_EFFECTS__ */
|
|
78
78
|
function w(t) {
|
|
79
79
|
let n = /* @__PURE__ */ E(t), r = e.forwardRef((t, r) => {
|
|
80
|
-
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(
|
|
80
|
+
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(O);
|
|
81
81
|
if (s) {
|
|
82
82
|
let t = s.props.children, i = o.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
83
83
|
return /* @__PURE__ */ m(n, {
|
|
@@ -100,18 +100,18 @@ function E(t) {
|
|
|
100
100
|
let n = e.forwardRef((t, n) => {
|
|
101
101
|
let { children: r, ...i } = t;
|
|
102
102
|
if (e.isValidElement(r)) {
|
|
103
|
-
let t =
|
|
103
|
+
let t = A(r), a = k(i, r.props);
|
|
104
104
|
return r.type !== e.Fragment && (a.ref = n ? S(n, t) : t), e.cloneElement(r, a);
|
|
105
105
|
}
|
|
106
106
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
107
107
|
});
|
|
108
108
|
return n.displayName = `${t}.SlotClone`, n;
|
|
109
109
|
}
|
|
110
|
-
var
|
|
111
|
-
function
|
|
112
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
110
|
+
var D = Symbol("radix.slottable");
|
|
111
|
+
function O(t) {
|
|
112
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === D;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function k(e, t) {
|
|
115
115
|
let n = { ...t };
|
|
116
116
|
for (let r in t) {
|
|
117
117
|
let i = e[r], a = t[r];
|
|
@@ -128,13 +128,13 @@ function O(e, t) {
|
|
|
128
128
|
...n
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function A(e) {
|
|
132
132
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
133
133
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19_6we3rb4d7l2z7tnnbsxrcxem3i/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
137
|
-
var
|
|
137
|
+
var j = [
|
|
138
138
|
"a",
|
|
139
139
|
"button",
|
|
140
140
|
"div",
|
|
@@ -165,12 +165,12 @@ var A = [
|
|
|
165
165
|
[n]: i
|
|
166
166
|
};
|
|
167
167
|
}, {});
|
|
168
|
-
function
|
|
168
|
+
function M(e, t) {
|
|
169
169
|
e && d.flushSync(() => e.dispatchEvent(t));
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
173
|
-
function
|
|
173
|
+
function N(t, n = []) {
|
|
174
174
|
let r = [];
|
|
175
175
|
function i(n, i) {
|
|
176
176
|
let a = e.createContext(i), o = r.length;
|
|
@@ -201,9 +201,9 @@ function M(t, n = []) {
|
|
|
201
201
|
} }), [r, i]);
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
|
-
return a.scopeName = t, [i,
|
|
204
|
+
return a.scopeName = t, [i, P(a, ...n)];
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function P(...t) {
|
|
207
207
|
let n = t[0];
|
|
208
208
|
if (t.length === 1) return n;
|
|
209
209
|
let r = () => {
|
|
@@ -226,8 +226,8 @@ function N(...t) {
|
|
|
226
226
|
}
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@1_pv7yzoxya62w3eeztgexm5mdoe/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
229
|
-
function
|
|
230
|
-
let n = e + "CollectionProvider", [r, i] =
|
|
229
|
+
function ee(e) {
|
|
230
|
+
let n = e + "CollectionProvider", [r, i] = N(n), [a, o] = r(n, {
|
|
231
231
|
collectionRef: { current: null },
|
|
232
232
|
itemMap: /* @__PURE__ */ new Map()
|
|
233
233
|
}), s = (e) => {
|
|
@@ -280,14 +280,14 @@ function te(e) {
|
|
|
280
280
|
];
|
|
281
281
|
}
|
|
282
282
|
typeof window < "u" && window.document && window.document.createElement;
|
|
283
|
-
function
|
|
283
|
+
function F(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
284
284
|
return function(r) {
|
|
285
285
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
290
|
-
var
|
|
290
|
+
var te = globalThis?.document ? e.useLayoutEffect : () => {}, I = e.useInsertionEffect || te;
|
|
291
291
|
function ne({ prop: t, defaultProp: n, onChange: r = () => {}, caller: i }) {
|
|
292
292
|
let [a, o, s] = re({
|
|
293
293
|
defaultProp: n,
|
|
@@ -352,13 +352,13 @@ function ae(t) {
|
|
|
352
352
|
return e.useEffect(() => {
|
|
353
353
|
let e = z(i.current);
|
|
354
354
|
o.current = s === "mounted" ? e : "none";
|
|
355
|
-
}, [s]),
|
|
355
|
+
}, [s]), te(() => {
|
|
356
356
|
let e = i.current, n = a.current;
|
|
357
357
|
if (n !== t) {
|
|
358
358
|
let r = o.current, i = z(e);
|
|
359
359
|
t ? c("MOUNT") : i === "none" || e?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
360
360
|
}
|
|
361
|
-
}, [t, c]),
|
|
361
|
+
}, [t, c]), te(() => {
|
|
362
362
|
if (n) {
|
|
363
363
|
let e, t = n.ownerDocument.defaultView ?? window, r = (r) => {
|
|
364
364
|
let o = z(i.current).includes(CSS.escape(r.animationName));
|
|
@@ -394,13 +394,13 @@ function oe(e) {
|
|
|
394
394
|
var se = e.useId || (() => void 0), ce = 0;
|
|
395
395
|
function le(t) {
|
|
396
396
|
let [n, r] = e.useState(se());
|
|
397
|
-
return
|
|
397
|
+
return te(() => {
|
|
398
398
|
t || r((e) => e ?? String(ce++));
|
|
399
399
|
}, [t]), t || (n ? `radix-${n}` : "");
|
|
400
400
|
}
|
|
401
401
|
//#endregion
|
|
402
402
|
//#region node_modules/.pnpm/@radix-ui+react-collapsible@1.1.12_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_rsi34mrx73776x4lbaj2d2judq/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
403
|
-
var ue = "Collapsible", [de, fe] =
|
|
403
|
+
var ue = "Collapsible", [de, fe] = N(ue), [pe, me] = de(ue), he = e.forwardRef((t, n) => {
|
|
404
404
|
let { __scopeCollapsible: r, open: i, defaultOpen: a, disabled: o, onOpenChange: s, ...c } = t, [l, u] = ne({
|
|
405
405
|
prop: i,
|
|
406
406
|
defaultProp: a ?? !1,
|
|
@@ -413,7 +413,7 @@ var ue = "Collapsible", [de, fe] = M(ue), [pe, me] = de(ue), he = e.forwardRef((
|
|
|
413
413
|
contentId: le(),
|
|
414
414
|
open: l,
|
|
415
415
|
onOpenToggle: e.useCallback(() => u((e) => !e), [u]),
|
|
416
|
-
children: /* @__PURE__ */ m(
|
|
416
|
+
children: /* @__PURE__ */ m(j.div, {
|
|
417
417
|
"data-state": xe(l),
|
|
418
418
|
"data-disabled": o ? "" : void 0,
|
|
419
419
|
...c,
|
|
@@ -424,7 +424,7 @@ var ue = "Collapsible", [de, fe] = M(ue), [pe, me] = de(ue), he = e.forwardRef((
|
|
|
424
424
|
he.displayName = ue;
|
|
425
425
|
var ge = "CollapsibleTrigger", _e = e.forwardRef((e, t) => {
|
|
426
426
|
let { __scopeCollapsible: n, ...r } = e, i = me(ge, n);
|
|
427
|
-
return /* @__PURE__ */ m(
|
|
427
|
+
return /* @__PURE__ */ m(j.button, {
|
|
428
428
|
type: "button",
|
|
429
429
|
"aria-controls": i.contentId,
|
|
430
430
|
"aria-expanded": i.open || !1,
|
|
@@ -433,7 +433,7 @@ var ge = "CollapsibleTrigger", _e = e.forwardRef((e, t) => {
|
|
|
433
433
|
disabled: i.disabled,
|
|
434
434
|
...r,
|
|
435
435
|
ref: t,
|
|
436
|
-
onClick:
|
|
436
|
+
onClick: F(e.onClick, i.onOpenToggle)
|
|
437
437
|
});
|
|
438
438
|
});
|
|
439
439
|
_e.displayName = ge;
|
|
@@ -454,7 +454,7 @@ var be = e.forwardRef((t, n) => {
|
|
|
454
454
|
return e.useEffect(() => {
|
|
455
455
|
let e = requestAnimationFrame(() => v.current = !1);
|
|
456
456
|
return () => cancelAnimationFrame(e);
|
|
457
|
-
}, []),
|
|
457
|
+
}, []), te(() => {
|
|
458
458
|
let e = u.current;
|
|
459
459
|
if (e) {
|
|
460
460
|
y.current = y.current || {
|
|
@@ -464,7 +464,7 @@ var be = e.forwardRef((t, n) => {
|
|
|
464
464
|
let t = e.getBoundingClientRect();
|
|
465
465
|
f.current = t.height, h.current = t.width, v.current || (e.style.transitionDuration = y.current.transitionDuration, e.style.animationName = y.current.animationName), l(i);
|
|
466
466
|
}
|
|
467
|
-
}, [s.open, i]), /* @__PURE__ */ m(
|
|
467
|
+
}, [s.open, i]), /* @__PURE__ */ m(j.div, {
|
|
468
468
|
"data-state": xe(s.open),
|
|
469
469
|
"data-disabled": s.disabled ? "" : void 0,
|
|
470
470
|
id: s.contentId,
|
|
@@ -536,16 +536,16 @@ var De = "DismissableLayer", Oe = "dismissableLayer.update", ke = "dismissableLa
|
|
|
536
536
|
}, [d, u]), e.useEffect(() => {
|
|
537
537
|
let e = () => h({});
|
|
538
538
|
return document.addEventListener(Oe, e), () => document.removeEventListener(Oe, e);
|
|
539
|
-
}, []), /* @__PURE__ */ m(
|
|
539
|
+
}, []), /* @__PURE__ */ m(j.div, {
|
|
540
540
|
...l,
|
|
541
541
|
ref: g,
|
|
542
542
|
style: {
|
|
543
543
|
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
544
544
|
...t.style
|
|
545
545
|
},
|
|
546
|
-
onFocusCapture:
|
|
547
|
-
onBlurCapture:
|
|
548
|
-
onPointerDownCapture:
|
|
546
|
+
onFocusCapture: F(t.onFocusCapture, T.onFocusCapture),
|
|
547
|
+
onBlurCapture: F(t.onBlurCapture, T.onBlurCapture),
|
|
548
|
+
onPointerDownCapture: F(t.onPointerDownCapture, w.onPointerDownCapture)
|
|
549
549
|
});
|
|
550
550
|
});
|
|
551
551
|
Ne.displayName = De;
|
|
@@ -556,7 +556,7 @@ var Pe = "DismissableLayerBranch", Fe = e.forwardRef((t, n) => {
|
|
|
556
556
|
if (e) return r.branches.add(e), () => {
|
|
557
557
|
r.branches.delete(e);
|
|
558
558
|
};
|
|
559
|
-
}, [r.branches]), /* @__PURE__ */ m(
|
|
559
|
+
}, [r.branches]), /* @__PURE__ */ m(j.div, {
|
|
560
560
|
...t,
|
|
561
561
|
ref: a
|
|
562
562
|
});
|
|
@@ -603,7 +603,7 @@ function ze(e, t, n, { discrete: r }) {
|
|
|
603
603
|
cancelable: !0,
|
|
604
604
|
detail: n
|
|
605
605
|
});
|
|
606
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
606
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? M(i, a) : i.dispatchEvent(a);
|
|
607
607
|
}
|
|
608
608
|
//#endregion
|
|
609
609
|
//#region node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_us6nxggjgf4vtljrwo34kr3yfi/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
@@ -679,7 +679,7 @@ var Be = "focusScope.autoFocusOnMount", Ve = "focusScope.autoFocusOnUnmount", He
|
|
|
679
679
|
i,
|
|
680
680
|
h.paused
|
|
681
681
|
]);
|
|
682
|
-
return /* @__PURE__ */ m(
|
|
682
|
+
return /* @__PURE__ */ m(j.div, {
|
|
683
683
|
tabIndex: -1,
|
|
684
684
|
...s,
|
|
685
685
|
ref: p,
|
|
@@ -748,9 +748,9 @@ function tt(e) {
|
|
|
748
748
|
//#region node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19.2._4d5mj2wrmexuzotvlwc7gymk2u/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
749
749
|
var nt = "Portal", rt = e.forwardRef((t, n) => {
|
|
750
750
|
let { container: r, ...i } = t, [a, o] = e.useState(!1);
|
|
751
|
-
|
|
751
|
+
te(() => o(!0), []);
|
|
752
752
|
let s = r || a && globalThis?.document?.body;
|
|
753
|
-
return s ? f.createPortal(/* @__PURE__ */ m(
|
|
753
|
+
return s ? f.createPortal(/* @__PURE__ */ m(j.div, {
|
|
754
754
|
...i,
|
|
755
755
|
ref: n
|
|
756
756
|
}), s) : null;
|
|
@@ -1324,7 +1324,7 @@ function En(t) {
|
|
|
1324
1324
|
//#region node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
1325
1325
|
function Dn(t) {
|
|
1326
1326
|
let [n, r] = e.useState(void 0);
|
|
1327
|
-
return
|
|
1327
|
+
return te(() => {
|
|
1328
1328
|
if (t) {
|
|
1329
1329
|
r({
|
|
1330
1330
|
width: t.offsetWidth,
|
|
@@ -1348,7 +1348,7 @@ function Dn(t) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
//#endregion
|
|
1350
1350
|
//#region node_modules/.pnpm/@radix-ui+react-checkbox@1.3.3_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19._aum5rpydhlvj7moiq56s2hz3nu/node_modules/@radix-ui/react-checkbox/dist/index.mjs
|
|
1351
|
-
var On = "Checkbox", [kn, An] =
|
|
1351
|
+
var On = "Checkbox", [kn, An] = N(On), [jn, Mn] = kn(On);
|
|
1352
1352
|
function Nn(t) {
|
|
1353
1353
|
let { __scopeCheckbox: n, checked: r, children: i, defaultChecked: a, disabled: o, form: s, name: c, onCheckedChange: l, required: u, value: d = "on", internal_do_not_use_render: f } = t, [p, h] = ne({
|
|
1354
1354
|
prop: r,
|
|
@@ -1385,7 +1385,7 @@ var Pn = "CheckboxTrigger", Fn = e.forwardRef(({ __scopeCheckbox: t, onKeyDown:
|
|
|
1385
1385
|
let t = () => f(v.current);
|
|
1386
1386
|
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
1387
1387
|
}
|
|
1388
|
-
}, [o, f]), /* @__PURE__ */ m(
|
|
1388
|
+
}, [o, f]), /* @__PURE__ */ m(j.button, {
|
|
1389
1389
|
type: "button",
|
|
1390
1390
|
role: "checkbox",
|
|
1391
1391
|
"aria-checked": Hn(l) ? "mixed" : l,
|
|
@@ -1396,10 +1396,10 @@ var Pn = "CheckboxTrigger", Fn = e.forwardRef(({ __scopeCheckbox: t, onKeyDown:
|
|
|
1396
1396
|
value: s,
|
|
1397
1397
|
...i,
|
|
1398
1398
|
ref: _,
|
|
1399
|
-
onKeyDown:
|
|
1399
|
+
onKeyDown: F(n, (e) => {
|
|
1400
1400
|
e.key === "Enter" && e.preventDefault();
|
|
1401
1401
|
}),
|
|
1402
|
-
onClick:
|
|
1402
|
+
onClick: F(r, (e) => {
|
|
1403
1403
|
f((e) => Hn(e) ? !0 : !e), g && h && (p.current = e.isPropagationStopped(), p.current || e.stopPropagation());
|
|
1404
1404
|
})
|
|
1405
1405
|
});
|
|
@@ -1429,7 +1429,7 @@ var Ln = "CheckboxIndicator", Rn = e.forwardRef((e, t) => {
|
|
|
1429
1429
|
let { __scopeCheckbox: n, forceMount: r, ...i } = e, a = Mn(Ln, n);
|
|
1430
1430
|
return /* @__PURE__ */ m(ie, {
|
|
1431
1431
|
present: r || Hn(a.checked) || a.checked === !0,
|
|
1432
|
-
children: /* @__PURE__ */ m(
|
|
1432
|
+
children: /* @__PURE__ */ m(j.span, {
|
|
1433
1433
|
"data-state": Un(a.checked),
|
|
1434
1434
|
"data-disabled": a.disabled ? "" : void 0,
|
|
1435
1435
|
...i,
|
|
@@ -1459,7 +1459,7 @@ var zn = "CheckboxBubbleInput", Bn = e.forwardRef(({ __scopeCheckbox: t, ...n },
|
|
|
1459
1459
|
a
|
|
1460
1460
|
]);
|
|
1461
1461
|
let y = e.useRef(Hn(o) ? !1 : o);
|
|
1462
|
-
return /* @__PURE__ */ m(
|
|
1462
|
+
return /* @__PURE__ */ m(j.input, {
|
|
1463
1463
|
type: "checkbox",
|
|
1464
1464
|
"aria-hidden": !0,
|
|
1465
1465
|
defaultChecked: s ?? y.current,
|
|
@@ -1722,15 +1722,15 @@ var yr = 50, br = async (e, t, n) => {
|
|
|
1722
1722
|
y: r
|
|
1723
1723
|
}, p = rr(i), m = tr(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
1724
1724
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
1725
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Gn(d[_], T),
|
|
1725
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Gn(d[_], T), D = Gn(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Xn(O, A, k), M = !c.arrow && $n(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
|
|
1726
1726
|
return {
|
|
1727
|
-
[p]: f[p] +
|
|
1727
|
+
[p]: f[p] + N,
|
|
1728
1728
|
data: {
|
|
1729
|
-
[p]:
|
|
1730
|
-
centerOffset:
|
|
1731
|
-
...
|
|
1729
|
+
[p]: j,
|
|
1730
|
+
centerOffset: A - j - N,
|
|
1731
|
+
...M && { alignmentOffset: N }
|
|
1732
1732
|
},
|
|
1733
|
-
reset:
|
|
1733
|
+
reset: M
|
|
1734
1734
|
};
|
|
1735
1735
|
}
|
|
1736
1736
|
}), Sr = function(e) {
|
|
@@ -2423,19 +2423,19 @@ function Gi(t) {
|
|
|
2423
2423
|
e !== w.current && (w.current = e, _(e));
|
|
2424
2424
|
}, []), x = e.useCallback((e) => {
|
|
2425
2425
|
e !== T.current && (T.current = e, y(e));
|
|
2426
|
-
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(f),
|
|
2426
|
+
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(f), D = l != null, O = Wi(l), k = Wi(a), A = Wi(u), j = e.useCallback(() => {
|
|
2427
2427
|
if (!w.current || !T.current) return;
|
|
2428
2428
|
let e = {
|
|
2429
2429
|
placement: n,
|
|
2430
2430
|
strategy: r,
|
|
2431
2431
|
middleware: m
|
|
2432
2432
|
};
|
|
2433
|
-
|
|
2433
|
+
k.current && (e.platform = k.current), zi(w.current, T.current, e).then((e) => {
|
|
2434
2434
|
let t = {
|
|
2435
2435
|
...e,
|
|
2436
|
-
isPositioned:
|
|
2436
|
+
isPositioned: A.current !== !1
|
|
2437
2437
|
};
|
|
2438
|
-
|
|
2438
|
+
M.current && !Vi(E.current, t) && (E.current = t, d.flushSync(() => {
|
|
2439
2439
|
p(t);
|
|
2440
2440
|
}));
|
|
2441
2441
|
});
|
|
@@ -2443,8 +2443,8 @@ function Gi(t) {
|
|
|
2443
2443
|
m,
|
|
2444
2444
|
n,
|
|
2445
2445
|
r,
|
|
2446
|
-
|
|
2447
|
-
|
|
2446
|
+
k,
|
|
2447
|
+
A
|
|
2448
2448
|
]);
|
|
2449
2449
|
Bi(() => {
|
|
2450
2450
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
|
|
@@ -2452,41 +2452,41 @@ function Gi(t) {
|
|
|
2452
2452
|
isPositioned: !1
|
|
2453
2453
|
})));
|
|
2454
2454
|
}, [u]);
|
|
2455
|
-
let
|
|
2456
|
-
Bi(() => (
|
|
2457
|
-
|
|
2455
|
+
let M = e.useRef(!1);
|
|
2456
|
+
Bi(() => (M.current = !0, () => {
|
|
2457
|
+
M.current = !1;
|
|
2458
2458
|
}), []), Bi(() => {
|
|
2459
2459
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
2460
|
-
if (
|
|
2461
|
-
|
|
2460
|
+
if (O.current) return O.current(S, C, j);
|
|
2461
|
+
j();
|
|
2462
2462
|
}
|
|
2463
2463
|
}, [
|
|
2464
2464
|
S,
|
|
2465
2465
|
C,
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2466
|
+
j,
|
|
2467
|
+
O,
|
|
2468
|
+
D
|
|
2469
2469
|
]);
|
|
2470
|
-
let
|
|
2470
|
+
let N = e.useMemo(() => ({
|
|
2471
2471
|
reference: w,
|
|
2472
2472
|
floating: T,
|
|
2473
2473
|
setReference: b,
|
|
2474
2474
|
setFloating: x
|
|
2475
|
-
}), [b, x]),
|
|
2475
|
+
}), [b, x]), P = e.useMemo(() => ({
|
|
2476
2476
|
reference: S,
|
|
2477
2477
|
floating: C
|
|
2478
|
-
}), [S, C]),
|
|
2478
|
+
}), [S, C]), ee = e.useMemo(() => {
|
|
2479
2479
|
let e = {
|
|
2480
2480
|
position: r,
|
|
2481
2481
|
left: 0,
|
|
2482
2482
|
top: 0
|
|
2483
2483
|
};
|
|
2484
|
-
if (!
|
|
2485
|
-
let t = Ui(
|
|
2484
|
+
if (!P.floating) return e;
|
|
2485
|
+
let t = Ui(P.floating, f.x), n = Ui(P.floating, f.y);
|
|
2486
2486
|
return c ? {
|
|
2487
2487
|
...e,
|
|
2488
2488
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
2489
|
-
...Hi(
|
|
2489
|
+
...Hi(P.floating) >= 1.5 && { willChange: "transform" }
|
|
2490
2490
|
} : {
|
|
2491
2491
|
position: r,
|
|
2492
2492
|
left: t,
|
|
@@ -2495,22 +2495,22 @@ function Gi(t) {
|
|
|
2495
2495
|
}, [
|
|
2496
2496
|
r,
|
|
2497
2497
|
c,
|
|
2498
|
-
|
|
2498
|
+
P.floating,
|
|
2499
2499
|
f.x,
|
|
2500
2500
|
f.y
|
|
2501
2501
|
]);
|
|
2502
2502
|
return e.useMemo(() => ({
|
|
2503
2503
|
...f,
|
|
2504
|
-
update:
|
|
2505
|
-
refs:
|
|
2506
|
-
elements:
|
|
2507
|
-
floatingStyles:
|
|
2504
|
+
update: j,
|
|
2505
|
+
refs: N,
|
|
2506
|
+
elements: P,
|
|
2507
|
+
floatingStyles: ee
|
|
2508
2508
|
}), [
|
|
2509
2509
|
f,
|
|
2510
|
-
|
|
2511
|
-
M,
|
|
2510
|
+
j,
|
|
2512
2511
|
N,
|
|
2513
|
-
|
|
2512
|
+
P,
|
|
2513
|
+
ee
|
|
2514
2514
|
]);
|
|
2515
2515
|
}
|
|
2516
2516
|
var Ki = (e) => {
|
|
@@ -2578,7 +2578,7 @@ var Ki = (e) => {
|
|
|
2578
2578
|
};
|
|
2579
2579
|
}, ea = "Arrow", ta = e.forwardRef((e, t) => {
|
|
2580
2580
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
2581
|
-
return /* @__PURE__ */ m(
|
|
2581
|
+
return /* @__PURE__ */ m(j.svg, {
|
|
2582
2582
|
...a,
|
|
2583
2583
|
ref: t,
|
|
2584
2584
|
width: r,
|
|
@@ -2589,7 +2589,7 @@ var Ki = (e) => {
|
|
|
2589
2589
|
});
|
|
2590
2590
|
});
|
|
2591
2591
|
ta.displayName = ea;
|
|
2592
|
-
var na = ta, ra = "Popper", [ia, aa] =
|
|
2592
|
+
var na = ta, ra = "Popper", [ia, aa] = N(ra), [oa, sa] = ia(ra), ca = (t) => {
|
|
2593
2593
|
let { __scopePopper: n, children: r } = t, [i, a] = e.useState(null);
|
|
2594
2594
|
return /* @__PURE__ */ m(oa, {
|
|
2595
2595
|
scope: n,
|
|
@@ -2604,42 +2604,42 @@ var la = "PopperAnchor", ua = e.forwardRef((t, n) => {
|
|
|
2604
2604
|
return e.useEffect(() => {
|
|
2605
2605
|
let e = l.current;
|
|
2606
2606
|
l.current = i?.current || s.current, e !== l.current && o.onAnchorChange(l.current);
|
|
2607
|
-
}), i ? null : /* @__PURE__ */ m(
|
|
2607
|
+
}), i ? null : /* @__PURE__ */ m(j.div, {
|
|
2608
2608
|
...a,
|
|
2609
2609
|
ref: c
|
|
2610
2610
|
});
|
|
2611
2611
|
});
|
|
2612
2612
|
ua.displayName = la;
|
|
2613
2613
|
var da = "PopperContent", [fa, pa] = ia(da), ma = e.forwardRef((t, n) => {
|
|
2614
|
-
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = t, v = sa(da, r), [y, b] = e.useState(null), x = C(n, (e) => b(e)), [S, w] = e.useState(null), T = Dn(S), E = T?.width ?? 0,
|
|
2614
|
+
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = t, v = sa(da, r), [y, b] = e.useState(null), x = C(n, (e) => b(e)), [S, w] = e.useState(null), T = Dn(S), E = T?.width ?? 0, D = T?.height ?? 0, O = i + (o === "center" ? "" : "-" + o), k = typeof d == "number" ? d : {
|
|
2615
2615
|
top: 0,
|
|
2616
2616
|
right: 0,
|
|
2617
2617
|
bottom: 0,
|
|
2618
2618
|
left: 0,
|
|
2619
2619
|
...d
|
|
2620
|
-
},
|
|
2621
|
-
padding:
|
|
2622
|
-
boundary:
|
|
2623
|
-
altBoundary:
|
|
2624
|
-
}, { refs:
|
|
2620
|
+
}, A = Array.isArray(u) ? u : [u], M = A.length > 0, N = {
|
|
2621
|
+
padding: k,
|
|
2622
|
+
boundary: A.filter(va),
|
|
2623
|
+
altBoundary: M
|
|
2624
|
+
}, { refs: P, floatingStyles: ee, placement: F, isPositioned: I, middlewareData: ne } = Gi({
|
|
2625
2625
|
strategy: "fixed",
|
|
2626
|
-
placement:
|
|
2626
|
+
placement: O,
|
|
2627
2627
|
whileElementsMounted: (...e) => ji(...e, { animationFrame: h === "always" }),
|
|
2628
2628
|
elements: { reference: v.anchor },
|
|
2629
2629
|
middleware: [
|
|
2630
2630
|
qi({
|
|
2631
|
-
mainAxis: a +
|
|
2631
|
+
mainAxis: a + D,
|
|
2632
2632
|
alignmentAxis: s
|
|
2633
2633
|
}),
|
|
2634
2634
|
l && Ji({
|
|
2635
2635
|
mainAxis: !0,
|
|
2636
2636
|
crossAxis: !1,
|
|
2637
2637
|
limiter: f === "partial" ? Yi() : void 0,
|
|
2638
|
-
...
|
|
2638
|
+
...N
|
|
2639
2639
|
}),
|
|
2640
|
-
l && Xi({ ...
|
|
2640
|
+
l && Xi({ ...N }),
|
|
2641
2641
|
Zi({
|
|
2642
|
-
...
|
|
2642
|
+
...N,
|
|
2643
2643
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
2644
2644
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
2645
2645
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
@@ -2651,26 +2651,26 @@ var da = "PopperContent", [fa, pa] = ia(da), ma = e.forwardRef((t, n) => {
|
|
|
2651
2651
|
}),
|
|
2652
2652
|
ya({
|
|
2653
2653
|
arrowWidth: E,
|
|
2654
|
-
arrowHeight:
|
|
2654
|
+
arrowHeight: D
|
|
2655
2655
|
}),
|
|
2656
2656
|
p && Qi({
|
|
2657
2657
|
strategy: "referenceHidden",
|
|
2658
|
-
...
|
|
2658
|
+
...N
|
|
2659
2659
|
})
|
|
2660
2660
|
]
|
|
2661
|
-
}), [re, L] = ba(
|
|
2662
|
-
|
|
2661
|
+
}), [re, L] = ba(F), R = Te(g);
|
|
2662
|
+
te(() => {
|
|
2663
2663
|
I && R?.();
|
|
2664
2664
|
}, [I, R]);
|
|
2665
2665
|
let ie = ne.arrow?.x, ae = ne.arrow?.y, z = ne.arrow?.centerOffset !== 0, [oe, se] = e.useState();
|
|
2666
|
-
return
|
|
2666
|
+
return te(() => {
|
|
2667
2667
|
y && se(window.getComputedStyle(y).zIndex);
|
|
2668
2668
|
}, [y]), /* @__PURE__ */ m("div", {
|
|
2669
|
-
ref:
|
|
2669
|
+
ref: P.setFloating,
|
|
2670
2670
|
"data-radix-popper-content-wrapper": "",
|
|
2671
2671
|
style: {
|
|
2672
|
-
...
|
|
2673
|
-
transform: I ?
|
|
2672
|
+
...ee,
|
|
2673
|
+
transform: I ? ee.transform : "translate(0, -200%)",
|
|
2674
2674
|
minWidth: "max-content",
|
|
2675
2675
|
zIndex: oe,
|
|
2676
2676
|
"--radix-popper-transform-origin": [ne.transformOrigin?.x, ne.transformOrigin?.y].join(" "),
|
|
@@ -2687,7 +2687,7 @@ var da = "PopperContent", [fa, pa] = ia(da), ma = e.forwardRef((t, n) => {
|
|
|
2687
2687
|
arrowX: ie,
|
|
2688
2688
|
arrowY: ae,
|
|
2689
2689
|
shouldHideArrow: z,
|
|
2690
|
-
children: /* @__PURE__ */ m(
|
|
2690
|
+
children: /* @__PURE__ */ m(j.div, {
|
|
2691
2691
|
"data-side": re,
|
|
2692
2692
|
"data-align": L,
|
|
2693
2693
|
..._,
|
|
@@ -2765,7 +2765,7 @@ function ba(e) {
|
|
|
2765
2765
|
var xa = ca, Sa = ua, Ca = ma, wa = _a, Ta = "rovingFocusGroup.onEntryFocus", Ea = {
|
|
2766
2766
|
bubbles: !1,
|
|
2767
2767
|
cancelable: !0
|
|
2768
|
-
}, Da = "RovingFocusGroup", [Oa, ka, Aa] =
|
|
2768
|
+
}, Da = "RovingFocusGroup", [Oa, ka, Aa] = ee(Da), [ja, Ma] = N(Da, [Aa]), [Na, Pa] = ja(Da), Fa = e.forwardRef((e, t) => /* @__PURE__ */ m(Oa.Provider, {
|
|
2769
2769
|
scope: e.__scopeRovingFocusGroup,
|
|
2770
2770
|
children: /* @__PURE__ */ m(Oa.Slot, {
|
|
2771
2771
|
scope: e.__scopeRovingFocusGroup,
|
|
@@ -2796,7 +2796,7 @@ var Ia = e.forwardRef((t, n) => {
|
|
|
2796
2796
|
onItemShiftTab: e.useCallback(() => b(!0), []),
|
|
2797
2797
|
onFocusableItemAdd: e.useCallback(() => E((e) => e + 1), []),
|
|
2798
2798
|
onFocusableItemRemove: e.useCallback(() => E((e) => e - 1), []),
|
|
2799
|
-
children: /* @__PURE__ */ m(
|
|
2799
|
+
children: /* @__PURE__ */ m(j.div, {
|
|
2800
2800
|
tabIndex: y || T === 0 ? -1 : 0,
|
|
2801
2801
|
"data-orientation": i,
|
|
2802
2802
|
...f,
|
|
@@ -2805,10 +2805,10 @@ var Ia = e.forwardRef((t, n) => {
|
|
|
2805
2805
|
outline: "none",
|
|
2806
2806
|
...t.style
|
|
2807
2807
|
},
|
|
2808
|
-
onMouseDown:
|
|
2808
|
+
onMouseDown: F(t.onMouseDown, () => {
|
|
2809
2809
|
w.current = !0;
|
|
2810
2810
|
}),
|
|
2811
|
-
onFocus:
|
|
2811
|
+
onFocus: F(t.onFocus, (e) => {
|
|
2812
2812
|
let t = !w.current;
|
|
2813
2813
|
if (e.target === e.currentTarget && t && !y) {
|
|
2814
2814
|
let t = new CustomEvent(Ta, Ea);
|
|
@@ -2823,7 +2823,7 @@ var Ia = e.forwardRef((t, n) => {
|
|
|
2823
2823
|
}
|
|
2824
2824
|
w.current = !1;
|
|
2825
2825
|
}),
|
|
2826
|
-
onBlur:
|
|
2826
|
+
onBlur: F(t.onBlur, () => b(!1))
|
|
2827
2827
|
})
|
|
2828
2828
|
});
|
|
2829
2829
|
}), La = "RovingFocusGroupItem", Ra = e.forwardRef((t, n) => {
|
|
@@ -2839,16 +2839,16 @@ var Ia = e.forwardRef((t, n) => {
|
|
|
2839
2839
|
id: u,
|
|
2840
2840
|
focusable: i,
|
|
2841
2841
|
active: a,
|
|
2842
|
-
children: /* @__PURE__ */ m(
|
|
2842
|
+
children: /* @__PURE__ */ m(j.span, {
|
|
2843
2843
|
tabIndex: f ? 0 : -1,
|
|
2844
2844
|
"data-orientation": d.orientation,
|
|
2845
2845
|
...c,
|
|
2846
2846
|
ref: n,
|
|
2847
|
-
onMouseDown:
|
|
2847
|
+
onMouseDown: F(t.onMouseDown, (e) => {
|
|
2848
2848
|
i ? d.onItemFocus(u) : e.preventDefault();
|
|
2849
2849
|
}),
|
|
2850
|
-
onFocus:
|
|
2851
|
-
onKeyDown:
|
|
2850
|
+
onFocus: F(t.onFocus, () => d.onItemFocus(u)),
|
|
2851
|
+
onKeyDown: F(t.onKeyDown, (e) => {
|
|
2852
2852
|
if (e.key === "Tab" && e.shiftKey) {
|
|
2853
2853
|
d.onItemShiftTab();
|
|
2854
2854
|
return;
|
|
@@ -2914,7 +2914,7 @@ var Wa = Fa, Ga = Ra, Ka = ["Enter", " "], qa = [
|
|
|
2914
2914
|
}, Za = {
|
|
2915
2915
|
ltr: ["ArrowLeft"],
|
|
2916
2916
|
rtl: ["ArrowRight"]
|
|
2917
|
-
}, Qa = "Menu", [$a, eo, to] =
|
|
2917
|
+
}, Qa = "Menu", [$a, eo, to] = ee(Qa), [no, ro] = N(Qa, [
|
|
2918
2918
|
to,
|
|
2919
2919
|
aa,
|
|
2920
2920
|
Ma
|
|
@@ -3007,7 +3007,7 @@ var H = "MenuContent", [vo, yo] = no(H), bo = e.forwardRef((e, t) => {
|
|
|
3007
3007
|
trapFocus: r.open,
|
|
3008
3008
|
disableOutsidePointerEvents: r.open,
|
|
3009
3009
|
disableOutsideScroll: !0,
|
|
3010
|
-
onFocusOutside:
|
|
3010
|
+
onFocusOutside: F(t.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
3011
3011
|
onDismiss: () => r.onOpenChange(!1)
|
|
3012
3012
|
});
|
|
3013
3013
|
}), So = e.forwardRef((e, t) => {
|
|
@@ -3021,20 +3021,20 @@ var H = "MenuContent", [vo, yo] = no(H), bo = e.forwardRef((e, t) => {
|
|
|
3021
3021
|
onDismiss: () => n.onOpenChange(!1)
|
|
3022
3022
|
});
|
|
3023
3023
|
}), Co = /* @__PURE__ */ w("MenuContent.ScrollLock"), wo = e.forwardRef((t, n) => {
|
|
3024
|
-
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: h, disableOutsideScroll: g, ..._ } = t, v = so(H, r), y = lo(H, r), b = io(r), x = ao(r), S = eo(r), [w, T] = e.useState(null), E = e.useRef(null),
|
|
3024
|
+
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: h, disableOutsideScroll: g, ..._ } = t, v = so(H, r), y = lo(H, r), b = io(r), x = ao(r), S = eo(r), [w, T] = e.useState(null), E = e.useRef(null), D = C(n, E, v.onContentChange), O = e.useRef(0), k = e.useRef(""), A = e.useRef(0), j = e.useRef(null), M = e.useRef("right"), N = e.useRef(0), P = g ? gn : e.Fragment, ee = g ? {
|
|
3025
3025
|
as: Co,
|
|
3026
3026
|
allowPinchZoom: !0
|
|
3027
|
-
} : void 0,
|
|
3028
|
-
let t =
|
|
3027
|
+
} : void 0, te = (e) => {
|
|
3028
|
+
let t = k.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = cs(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
3029
3029
|
(function e(t) {
|
|
3030
|
-
|
|
3030
|
+
k.current = t, window.clearTimeout(O.current), t !== "" && (O.current = window.setTimeout(() => e(""), 1e3));
|
|
3031
3031
|
})(t), o && setTimeout(() => o.focus());
|
|
3032
3032
|
};
|
|
3033
|
-
e.useEffect(() => () => window.clearTimeout(
|
|
3034
|
-
let I = e.useCallback((e) =>
|
|
3033
|
+
e.useEffect(() => () => window.clearTimeout(O.current), []), at();
|
|
3034
|
+
let I = e.useCallback((e) => M.current === j.current?.side && us(e, j.current?.area), []);
|
|
3035
3035
|
return /* @__PURE__ */ m(vo, {
|
|
3036
3036
|
scope: r,
|
|
3037
|
-
searchRef:
|
|
3037
|
+
searchRef: k,
|
|
3038
3038
|
onItemEnter: e.useCallback((e) => {
|
|
3039
3039
|
I(e) && e.preventDefault();
|
|
3040
3040
|
}, [I]),
|
|
@@ -3044,16 +3044,16 @@ var H = "MenuContent", [vo, yo] = no(H), bo = e.forwardRef((e, t) => {
|
|
|
3044
3044
|
onTriggerLeave: e.useCallback((e) => {
|
|
3045
3045
|
I(e) && e.preventDefault();
|
|
3046
3046
|
}, [I]),
|
|
3047
|
-
pointerGraceTimerRef:
|
|
3047
|
+
pointerGraceTimerRef: A,
|
|
3048
3048
|
onPointerGraceIntentChange: e.useCallback((e) => {
|
|
3049
|
-
|
|
3049
|
+
j.current = e;
|
|
3050
3050
|
}, []),
|
|
3051
|
-
children: /* @__PURE__ */ m(
|
|
3052
|
-
...
|
|
3051
|
+
children: /* @__PURE__ */ m(P, {
|
|
3052
|
+
...ee,
|
|
3053
3053
|
children: /* @__PURE__ */ m(We, {
|
|
3054
3054
|
asChild: !0,
|
|
3055
3055
|
trapped: a,
|
|
3056
|
-
onMountAutoFocus:
|
|
3056
|
+
onMountAutoFocus: F(o, (e) => {
|
|
3057
3057
|
e.preventDefault(), E.current?.focus({ preventScroll: !0 });
|
|
3058
3058
|
}),
|
|
3059
3059
|
onUnmountAutoFocus: s,
|
|
@@ -3073,7 +3073,7 @@ var H = "MenuContent", [vo, yo] = no(H), bo = e.forwardRef((e, t) => {
|
|
|
3073
3073
|
loop: i,
|
|
3074
3074
|
currentTabStopId: w,
|
|
3075
3075
|
onCurrentTabStopIdChange: T,
|
|
3076
|
-
onEntryFocus:
|
|
3076
|
+
onEntryFocus: F(l, (e) => {
|
|
3077
3077
|
y.isUsingKeyboardRef.current || e.preventDefault();
|
|
3078
3078
|
}),
|
|
3079
3079
|
preventScrollOnEntryFocus: !0,
|
|
@@ -3085,26 +3085,26 @@ var H = "MenuContent", [vo, yo] = no(H), bo = e.forwardRef((e, t) => {
|
|
|
3085
3085
|
dir: y.dir,
|
|
3086
3086
|
...b,
|
|
3087
3087
|
..._,
|
|
3088
|
-
ref:
|
|
3088
|
+
ref: D,
|
|
3089
3089
|
style: {
|
|
3090
3090
|
outline: "none",
|
|
3091
3091
|
..._.style
|
|
3092
3092
|
},
|
|
3093
|
-
onKeyDown:
|
|
3093
|
+
onKeyDown: F(_.onKeyDown, (e) => {
|
|
3094
3094
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
3095
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
3095
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && te(e.key));
|
|
3096
3096
|
let i = E.current;
|
|
3097
3097
|
if (e.target !== i || !Ya.includes(e.key)) return;
|
|
3098
3098
|
e.preventDefault();
|
|
3099
3099
|
let a = S().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
3100
3100
|
Ja.includes(e.key) && a.reverse(), os(a);
|
|
3101
3101
|
}),
|
|
3102
|
-
onBlur:
|
|
3103
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(
|
|
3102
|
+
onBlur: F(t.onBlur, (e) => {
|
|
3103
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(O.current), k.current = "");
|
|
3104
3104
|
}),
|
|
3105
|
-
onPointerMove:
|
|
3106
|
-
let t = e.target, n =
|
|
3107
|
-
e.currentTarget.contains(t) && n && (
|
|
3105
|
+
onPointerMove: F(t.onPointerMove, ds((e) => {
|
|
3106
|
+
let t = e.target, n = N.current !== e.clientX;
|
|
3107
|
+
e.currentTarget.contains(t) && n && (M.current = e.clientX > N.current ? "right" : "left", N.current = e.clientX);
|
|
3108
3108
|
}))
|
|
3109
3109
|
})
|
|
3110
3110
|
})
|
|
@@ -3116,7 +3116,7 @@ var H = "MenuContent", [vo, yo] = no(H), bo = e.forwardRef((e, t) => {
|
|
|
3116
3116
|
bo.displayName = H;
|
|
3117
3117
|
var To = "MenuGroup", Eo = e.forwardRef((e, t) => {
|
|
3118
3118
|
let { __scopeMenu: n, ...r } = e;
|
|
3119
|
-
return /* @__PURE__ */ m(
|
|
3119
|
+
return /* @__PURE__ */ m(j.div, {
|
|
3120
3120
|
role: "group",
|
|
3121
3121
|
...r,
|
|
3122
3122
|
ref: t
|
|
@@ -3125,7 +3125,7 @@ var To = "MenuGroup", Eo = e.forwardRef((e, t) => {
|
|
|
3125
3125
|
Eo.displayName = To;
|
|
3126
3126
|
var Do = "MenuLabel", Oo = e.forwardRef((e, t) => {
|
|
3127
3127
|
let { __scopeMenu: n, ...r } = e;
|
|
3128
|
-
return /* @__PURE__ */ m(
|
|
3128
|
+
return /* @__PURE__ */ m(j.div, {
|
|
3129
3129
|
...r,
|
|
3130
3130
|
ref: t
|
|
3131
3131
|
});
|
|
@@ -3139,21 +3139,21 @@ var ko = "MenuItem", Ao = "menu.itemSelect", jo = e.forwardRef((t, n) => {
|
|
|
3139
3139
|
bubbles: !0,
|
|
3140
3140
|
cancelable: !0
|
|
3141
3141
|
});
|
|
3142
|
-
e.addEventListener(Ao, (e) => i?.(e), { once: !0 }),
|
|
3142
|
+
e.addEventListener(Ao, (e) => i?.(e), { once: !0 }), M(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
3143
3143
|
}
|
|
3144
3144
|
};
|
|
3145
3145
|
return /* @__PURE__ */ m(Mo, {
|
|
3146
3146
|
...a,
|
|
3147
3147
|
ref: l,
|
|
3148
3148
|
disabled: r,
|
|
3149
|
-
onClick:
|
|
3149
|
+
onClick: F(t.onClick, d),
|
|
3150
3150
|
onPointerDown: (e) => {
|
|
3151
3151
|
t.onPointerDown?.(e), u.current = !0;
|
|
3152
3152
|
},
|
|
3153
|
-
onPointerUp:
|
|
3153
|
+
onPointerUp: F(t.onPointerUp, (e) => {
|
|
3154
3154
|
u.current || e.currentTarget?.click();
|
|
3155
3155
|
}),
|
|
3156
|
-
onKeyDown:
|
|
3156
|
+
onKeyDown: F(t.onKeyDown, (e) => {
|
|
3157
3157
|
let t = c.searchRef.current !== "";
|
|
3158
3158
|
r || t && e.key === " " || Ka.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
3159
3159
|
})
|
|
@@ -3173,19 +3173,19 @@ var Mo = e.forwardRef((t, n) => {
|
|
|
3173
3173
|
asChild: !0,
|
|
3174
3174
|
...c,
|
|
3175
3175
|
focusable: !i,
|
|
3176
|
-
children: /* @__PURE__ */ m(
|
|
3176
|
+
children: /* @__PURE__ */ m(j.div, {
|
|
3177
3177
|
role: "menuitem",
|
|
3178
3178
|
"data-highlighted": d ? "" : void 0,
|
|
3179
3179
|
"aria-disabled": i || void 0,
|
|
3180
3180
|
"data-disabled": i ? "" : void 0,
|
|
3181
3181
|
...o,
|
|
3182
3182
|
ref: u,
|
|
3183
|
-
onPointerMove:
|
|
3183
|
+
onPointerMove: F(t.onPointerMove, ds((e) => {
|
|
3184
3184
|
i ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
3185
3185
|
})),
|
|
3186
|
-
onPointerLeave:
|
|
3187
|
-
onFocus:
|
|
3188
|
-
onBlur:
|
|
3186
|
+
onPointerLeave: F(t.onPointerLeave, ds((e) => s.onItemLeave(e))),
|
|
3187
|
+
onFocus: F(t.onFocus, () => f(!0)),
|
|
3188
|
+
onBlur: F(t.onBlur, () => f(!1))
|
|
3189
3189
|
})
|
|
3190
3190
|
})
|
|
3191
3191
|
});
|
|
@@ -3200,7 +3200,7 @@ var Mo = e.forwardRef((t, n) => {
|
|
|
3200
3200
|
...i,
|
|
3201
3201
|
ref: t,
|
|
3202
3202
|
"data-state": as(n),
|
|
3203
|
-
onSelect:
|
|
3203
|
+
onSelect: F(i.onSelect, () => r?.(is(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
3204
3204
|
})
|
|
3205
3205
|
});
|
|
3206
3206
|
});
|
|
@@ -3232,7 +3232,7 @@ var zo = "MenuRadioItem", Bo = e.forwardRef((e, t) => {
|
|
|
3232
3232
|
...r,
|
|
3233
3233
|
ref: t,
|
|
3234
3234
|
"data-state": as(a),
|
|
3235
|
-
onSelect:
|
|
3235
|
+
onSelect: F(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
3236
3236
|
})
|
|
3237
3237
|
});
|
|
3238
3238
|
});
|
|
@@ -3241,7 +3241,7 @@ var Vo = "MenuItemIndicator", [Ho, Uo] = no(Vo, { checked: !1 }), Wo = e.forward
|
|
|
3241
3241
|
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Uo(Vo, n);
|
|
3242
3242
|
return /* @__PURE__ */ m(ie, {
|
|
3243
3243
|
present: r || is(a.checked) || a.checked === !0,
|
|
3244
|
-
children: /* @__PURE__ */ m(
|
|
3244
|
+
children: /* @__PURE__ */ m(j.span, {
|
|
3245
3245
|
...i,
|
|
3246
3246
|
ref: t,
|
|
3247
3247
|
"data-state": as(a.checked)
|
|
@@ -3251,7 +3251,7 @@ var Vo = "MenuItemIndicator", [Ho, Uo] = no(Vo, { checked: !1 }), Wo = e.forward
|
|
|
3251
3251
|
Wo.displayName = Vo;
|
|
3252
3252
|
var Go = "MenuSeparator", Ko = e.forwardRef((e, t) => {
|
|
3253
3253
|
let { __scopeMenu: n, ...r } = e;
|
|
3254
|
-
return /* @__PURE__ */ m(
|
|
3254
|
+
return /* @__PURE__ */ m(j.div, {
|
|
3255
3255
|
role: "separator",
|
|
3256
3256
|
"aria-orientation": "horizontal",
|
|
3257
3257
|
...r,
|
|
@@ -3313,12 +3313,12 @@ var $o = "MenuSubTrigger", es = e.forwardRef((t, n) => {
|
|
|
3313
3313
|
onClick: (e) => {
|
|
3314
3314
|
t.onClick?.(e), !(t.disabled || e.defaultPrevented) && (e.currentTarget.focus(), r.open || r.onOpenChange(!0));
|
|
3315
3315
|
},
|
|
3316
|
-
onPointerMove:
|
|
3316
|
+
onPointerMove: F(t.onPointerMove, ds((e) => {
|
|
3317
3317
|
o.onItemEnter(e), !e.defaultPrevented && !t.disabled && !r.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
3318
3318
|
r.onOpenChange(!0), d();
|
|
3319
3319
|
}, 100));
|
|
3320
3320
|
})),
|
|
3321
|
-
onPointerLeave:
|
|
3321
|
+
onPointerLeave: F(t.onPointerLeave, ds((e) => {
|
|
3322
3322
|
d();
|
|
3323
3323
|
let t = r.content?.getBoundingClientRect();
|
|
3324
3324
|
if (t) {
|
|
@@ -3353,7 +3353,7 @@ var $o = "MenuSubTrigger", es = e.forwardRef((t, n) => {
|
|
|
3353
3353
|
o.onPointerGraceIntentChange(null);
|
|
3354
3354
|
}
|
|
3355
3355
|
})),
|
|
3356
|
-
onKeyDown:
|
|
3356
|
+
onKeyDown: F(t.onKeyDown, (e) => {
|
|
3357
3357
|
let n = o.searchRef.current !== "";
|
|
3358
3358
|
t.disabled || n && e.key === " " || Xa[i.dir].includes(e.key) && (r.onOpenChange(!0), r.content?.focus(), e.preventDefault());
|
|
3359
3359
|
})
|
|
@@ -3383,13 +3383,13 @@ var ts = "MenuSubContent", ns = e.forwardRef((t, n) => {
|
|
|
3383
3383
|
s.isUsingKeyboardRef.current && l.current?.focus(), e.preventDefault();
|
|
3384
3384
|
},
|
|
3385
3385
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3386
|
-
onFocusOutside:
|
|
3386
|
+
onFocusOutside: F(t.onFocusOutside, (e) => {
|
|
3387
3387
|
e.target !== c.trigger && o.onOpenChange(!1);
|
|
3388
3388
|
}),
|
|
3389
|
-
onEscapeKeyDown:
|
|
3389
|
+
onEscapeKeyDown: F(t.onEscapeKeyDown, (e) => {
|
|
3390
3390
|
s.onClose(), e.preventDefault();
|
|
3391
3391
|
}),
|
|
3392
|
-
onKeyDown:
|
|
3392
|
+
onKeyDown: F(t.onKeyDown, (e) => {
|
|
3393
3393
|
let t = e.currentTarget.contains(e.target), n = Za[s.dir].includes(e.key);
|
|
3394
3394
|
t && n && (o.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
|
|
3395
3395
|
})
|
|
@@ -3438,7 +3438,7 @@ function us(e, t) {
|
|
|
3438
3438
|
function ds(e) {
|
|
3439
3439
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
3440
3440
|
}
|
|
3441
|
-
var fs = uo, ps = po, ms = _o, hs = bo, gs = Eo, _s = Oo, vs = jo, ys = Po, bs = Ro, xs = Bo, Ss = Wo, Cs = Ko, ws = Jo, Ts = es, Es = ns, Ds = "DropdownMenu", [Os, ks] =
|
|
3441
|
+
var fs = uo, ps = po, ms = _o, hs = bo, gs = Eo, _s = Oo, vs = jo, ys = Po, bs = Ro, xs = Bo, Ss = Wo, Cs = Ko, ws = Jo, Ts = es, Es = ns, Ds = "DropdownMenu", [Os, ks] = N(Ds, [ro]), U = ro(), [As, js] = Os(Ds), Ms = (t) => {
|
|
3442
3442
|
let { __scopeDropdownMenu: n, children: r, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = t, l = U(n), u = e.useRef(null), [d, f] = ne({
|
|
3443
3443
|
prop: a,
|
|
3444
3444
|
defaultProp: o ?? !1,
|
|
@@ -3470,7 +3470,7 @@ var Ns = "DropdownMenuTrigger", Ps = e.forwardRef((e, t) => {
|
|
|
3470
3470
|
return /* @__PURE__ */ m(ps, {
|
|
3471
3471
|
asChild: !0,
|
|
3472
3472
|
...U(n),
|
|
3473
|
-
children: /* @__PURE__ */ m(
|
|
3473
|
+
children: /* @__PURE__ */ m(j.button, {
|
|
3474
3474
|
type: "button",
|
|
3475
3475
|
id: a.triggerId,
|
|
3476
3476
|
"aria-haspopup": "menu",
|
|
@@ -3481,10 +3481,10 @@ var Ns = "DropdownMenuTrigger", Ps = e.forwardRef((e, t) => {
|
|
|
3481
3481
|
disabled: r,
|
|
3482
3482
|
...i,
|
|
3483
3483
|
ref: S(t, a.triggerRef),
|
|
3484
|
-
onPointerDown:
|
|
3484
|
+
onPointerDown: F(e.onPointerDown, (e) => {
|
|
3485
3485
|
!r && e.button === 0 && e.ctrlKey === !1 && (a.onOpenToggle(), a.open || e.preventDefault());
|
|
3486
3486
|
}),
|
|
3487
|
-
onKeyDown:
|
|
3487
|
+
onKeyDown: F(e.onKeyDown, (e) => {
|
|
3488
3488
|
r || (["Enter", " "].includes(e.key) && a.onOpenToggle(), e.key === "ArrowDown" && a.onOpenChange(!0), [
|
|
3489
3489
|
"Enter",
|
|
3490
3490
|
" ",
|
|
@@ -3511,10 +3511,10 @@ var Ls = "DropdownMenuContent", Rs = e.forwardRef((t, n) => {
|
|
|
3511
3511
|
...o,
|
|
3512
3512
|
...i,
|
|
3513
3513
|
ref: n,
|
|
3514
|
-
onCloseAutoFocus:
|
|
3514
|
+
onCloseAutoFocus: F(t.onCloseAutoFocus, (e) => {
|
|
3515
3515
|
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
3516
3516
|
}),
|
|
3517
|
-
onInteractOutside:
|
|
3517
|
+
onInteractOutside: F(t.onInteractOutside, (e) => {
|
|
3518
3518
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
3519
3519
|
(!a.modal || r) && (s.current = !0);
|
|
3520
3520
|
}),
|
|
@@ -3636,7 +3636,7 @@ var ac = "DropdownMenuSubContent", oc = e.forwardRef((e, t) => {
|
|
|
3636
3636
|
});
|
|
3637
3637
|
});
|
|
3638
3638
|
oc.displayName = ac;
|
|
3639
|
-
var sc = Ms, cc = Ps, lc = Is, uc = Rs, dc = Bs, fc = Ws, pc = ec, mc = "Label", hc = e.forwardRef((e, t) => /* @__PURE__ */ m(
|
|
3639
|
+
var sc = Ms, cc = Ps, lc = Is, uc = Rs, dc = Bs, fc = Ws, pc = ec, mc = "Label", hc = e.forwardRef((e, t) => /* @__PURE__ */ m(j.label, {
|
|
3640
3640
|
...e,
|
|
3641
3641
|
ref: t,
|
|
3642
3642
|
onMouseDown: (t) => {
|
|
@@ -3649,7 +3649,7 @@ var gc = hc, _c = "Separator", vc = "horizontal", yc = ["horizontal", "vertical"
|
|
|
3649
3649
|
"aria-orientation": o,
|
|
3650
3650
|
role: "separator"
|
|
3651
3651
|
};
|
|
3652
|
-
return /* @__PURE__ */ m(
|
|
3652
|
+
return /* @__PURE__ */ m(j.div, {
|
|
3653
3653
|
"data-orientation": a,
|
|
3654
3654
|
...s,
|
|
3655
3655
|
...i,
|
|
@@ -3938,7 +3938,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
3938
3938
|
"subgrid",
|
|
3939
3939
|
q,
|
|
3940
3940
|
K
|
|
3941
|
-
],
|
|
3941
|
+
], D = () => [
|
|
3942
3942
|
"auto",
|
|
3943
3943
|
{ span: [
|
|
3944
3944
|
"full",
|
|
@@ -3949,19 +3949,19 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
3949
3949
|
ul,
|
|
3950
3950
|
q,
|
|
3951
3951
|
K
|
|
3952
|
-
],
|
|
3952
|
+
], O = () => [
|
|
3953
3953
|
ul,
|
|
3954
3954
|
"auto",
|
|
3955
3955
|
q,
|
|
3956
3956
|
K
|
|
3957
|
-
],
|
|
3957
|
+
], k = () => [
|
|
3958
3958
|
"auto",
|
|
3959
3959
|
"min",
|
|
3960
3960
|
"max",
|
|
3961
3961
|
"fr",
|
|
3962
3962
|
q,
|
|
3963
3963
|
K
|
|
3964
|
-
],
|
|
3964
|
+
], A = () => [
|
|
3965
3965
|
"start",
|
|
3966
3966
|
"end",
|
|
3967
3967
|
"center",
|
|
@@ -3972,14 +3972,14 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
3972
3972
|
"baseline",
|
|
3973
3973
|
"center-safe",
|
|
3974
3974
|
"end-safe"
|
|
3975
|
-
],
|
|
3975
|
+
], j = () => [
|
|
3976
3976
|
"start",
|
|
3977
3977
|
"end",
|
|
3978
3978
|
"center",
|
|
3979
3979
|
"stretch",
|
|
3980
3980
|
"center-safe",
|
|
3981
3981
|
"end-safe"
|
|
3982
|
-
],
|
|
3982
|
+
], M = () => ["auto", ...w()], N = () => [
|
|
3983
3983
|
ll,
|
|
3984
3984
|
"auto",
|
|
3985
3985
|
"full",
|
|
@@ -3993,7 +3993,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
3993
3993
|
"max",
|
|
3994
3994
|
"fit",
|
|
3995
3995
|
...w()
|
|
3996
|
-
],
|
|
3996
|
+
], P = () => [
|
|
3997
3997
|
ll,
|
|
3998
3998
|
"screen",
|
|
3999
3999
|
"full",
|
|
@@ -4004,7 +4004,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4004
4004
|
"max",
|
|
4005
4005
|
"fit",
|
|
4006
4006
|
...w()
|
|
4007
|
-
],
|
|
4007
|
+
], ee = () => [
|
|
4008
4008
|
ll,
|
|
4009
4009
|
"screen",
|
|
4010
4010
|
"full",
|
|
@@ -4016,11 +4016,11 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4016
4016
|
"max",
|
|
4017
4017
|
"fit",
|
|
4018
4018
|
...w()
|
|
4019
|
-
],
|
|
4019
|
+
], F = () => [
|
|
4020
4020
|
e,
|
|
4021
4021
|
q,
|
|
4022
4022
|
K
|
|
4023
|
-
],
|
|
4023
|
+
], te = () => [
|
|
4024
4024
|
...b(),
|
|
4025
4025
|
kl,
|
|
4026
4026
|
wl,
|
|
@@ -4331,13 +4331,13 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4331
4331
|
K
|
|
4332
4332
|
] }],
|
|
4333
4333
|
"grid-cols": [{ "grid-cols": E() }],
|
|
4334
|
-
"col-start-end": [{ col:
|
|
4335
|
-
"col-start": [{ "col-start":
|
|
4336
|
-
"col-end": [{ "col-end":
|
|
4334
|
+
"col-start-end": [{ col: D() }],
|
|
4335
|
+
"col-start": [{ "col-start": O() }],
|
|
4336
|
+
"col-end": [{ "col-end": O() }],
|
|
4337
4337
|
"grid-rows": [{ "grid-rows": E() }],
|
|
4338
|
-
"row-start-end": [{ row:
|
|
4339
|
-
"row-start": [{ "row-start":
|
|
4340
|
-
"row-end": [{ "row-end":
|
|
4338
|
+
"row-start-end": [{ row: D() }],
|
|
4339
|
+
"row-start": [{ "row-start": O() }],
|
|
4340
|
+
"row-end": [{ "row-end": O() }],
|
|
4341
4341
|
"grid-flow": [{ "grid-flow": [
|
|
4342
4342
|
"row",
|
|
4343
4343
|
"col",
|
|
@@ -4345,24 +4345,24 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4345
4345
|
"row-dense",
|
|
4346
4346
|
"col-dense"
|
|
4347
4347
|
] }],
|
|
4348
|
-
"auto-cols": [{ "auto-cols":
|
|
4349
|
-
"auto-rows": [{ "auto-rows":
|
|
4348
|
+
"auto-cols": [{ "auto-cols": k() }],
|
|
4349
|
+
"auto-rows": [{ "auto-rows": k() }],
|
|
4350
4350
|
gap: [{ gap: w() }],
|
|
4351
4351
|
"gap-x": [{ "gap-x": w() }],
|
|
4352
4352
|
"gap-y": [{ "gap-y": w() }],
|
|
4353
|
-
"justify-content": [{ justify: [...
|
|
4354
|
-
"justify-items": [{ "justify-items": [...
|
|
4355
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
4356
|
-
"align-content": [{ content: ["normal", ...
|
|
4357
|
-
"align-items": [{ items: [...
|
|
4353
|
+
"justify-content": [{ justify: [...A(), "normal"] }],
|
|
4354
|
+
"justify-items": [{ "justify-items": [...j(), "normal"] }],
|
|
4355
|
+
"justify-self": [{ "justify-self": ["auto", ...j()] }],
|
|
4356
|
+
"align-content": [{ content: ["normal", ...A()] }],
|
|
4357
|
+
"align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
|
|
4358
4358
|
"align-self": [{ self: [
|
|
4359
4359
|
"auto",
|
|
4360
|
-
...
|
|
4360
|
+
...j(),
|
|
4361
4361
|
{ baseline: ["", "last"] }
|
|
4362
4362
|
] }],
|
|
4363
|
-
"place-content": [{ "place-content":
|
|
4364
|
-
"place-items": [{ "place-items": [...
|
|
4365
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
4363
|
+
"place-content": [{ "place-content": A() }],
|
|
4364
|
+
"place-items": [{ "place-items": [...j(), "baseline"] }],
|
|
4365
|
+
"place-self": [{ "place-self": ["auto", ...j()] }],
|
|
4366
4366
|
p: [{ p: w() }],
|
|
4367
4367
|
px: [{ px: w() }],
|
|
4368
4368
|
py: [{ py: w() }],
|
|
@@ -4374,38 +4374,38 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4374
4374
|
pr: [{ pr: w() }],
|
|
4375
4375
|
pb: [{ pb: w() }],
|
|
4376
4376
|
pl: [{ pl: w() }],
|
|
4377
|
-
m: [{ m:
|
|
4378
|
-
mx: [{ mx:
|
|
4379
|
-
my: [{ my:
|
|
4380
|
-
ms: [{ ms:
|
|
4381
|
-
me: [{ me:
|
|
4382
|
-
mbs: [{ mbs:
|
|
4383
|
-
mbe: [{ mbe:
|
|
4384
|
-
mt: [{ mt:
|
|
4385
|
-
mr: [{ mr:
|
|
4386
|
-
mb: [{ mb:
|
|
4387
|
-
ml: [{ ml:
|
|
4377
|
+
m: [{ m: M() }],
|
|
4378
|
+
mx: [{ mx: M() }],
|
|
4379
|
+
my: [{ my: M() }],
|
|
4380
|
+
ms: [{ ms: M() }],
|
|
4381
|
+
me: [{ me: M() }],
|
|
4382
|
+
mbs: [{ mbs: M() }],
|
|
4383
|
+
mbe: [{ mbe: M() }],
|
|
4384
|
+
mt: [{ mt: M() }],
|
|
4385
|
+
mr: [{ mr: M() }],
|
|
4386
|
+
mb: [{ mb: M() }],
|
|
4387
|
+
ml: [{ ml: M() }],
|
|
4388
4388
|
"space-x": [{ "space-x": w() }],
|
|
4389
4389
|
"space-x-reverse": ["space-x-reverse"],
|
|
4390
4390
|
"space-y": [{ "space-y": w() }],
|
|
4391
4391
|
"space-y-reverse": ["space-y-reverse"],
|
|
4392
|
-
size: [{ size:
|
|
4393
|
-
"inline-size": [{ inline: ["auto", ...
|
|
4394
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
4395
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
4396
|
-
"block-size": [{ block: ["auto", ...
|
|
4397
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
4398
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
4392
|
+
size: [{ size: N() }],
|
|
4393
|
+
"inline-size": [{ inline: ["auto", ...P()] }],
|
|
4394
|
+
"min-inline-size": [{ "min-inline": ["auto", ...P()] }],
|
|
4395
|
+
"max-inline-size": [{ "max-inline": ["none", ...P()] }],
|
|
4396
|
+
"block-size": [{ block: ["auto", ...ee()] }],
|
|
4397
|
+
"min-block-size": [{ "min-block": ["auto", ...ee()] }],
|
|
4398
|
+
"max-block-size": [{ "max-block": ["none", ...ee()] }],
|
|
4399
4399
|
w: [{ w: [
|
|
4400
4400
|
s,
|
|
4401
4401
|
"screen",
|
|
4402
|
-
...
|
|
4402
|
+
...N()
|
|
4403
4403
|
] }],
|
|
4404
4404
|
"min-w": [{ "min-w": [
|
|
4405
4405
|
s,
|
|
4406
4406
|
"screen",
|
|
4407
4407
|
"none",
|
|
4408
|
-
...
|
|
4408
|
+
...N()
|
|
4409
4409
|
] }],
|
|
4410
4410
|
"max-w": [{ "max-w": [
|
|
4411
4411
|
s,
|
|
@@ -4413,23 +4413,23 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4413
4413
|
"none",
|
|
4414
4414
|
"prose",
|
|
4415
4415
|
{ screen: [o] },
|
|
4416
|
-
...
|
|
4416
|
+
...N()
|
|
4417
4417
|
] }],
|
|
4418
4418
|
h: [{ h: [
|
|
4419
4419
|
"screen",
|
|
4420
4420
|
"lh",
|
|
4421
|
-
...
|
|
4421
|
+
...N()
|
|
4422
4422
|
] }],
|
|
4423
4423
|
"min-h": [{ "min-h": [
|
|
4424
4424
|
"screen",
|
|
4425
4425
|
"lh",
|
|
4426
4426
|
"none",
|
|
4427
|
-
...
|
|
4427
|
+
...N()
|
|
4428
4428
|
] }],
|
|
4429
4429
|
"max-h": [{ "max-h": [
|
|
4430
4430
|
"screen",
|
|
4431
4431
|
"lh",
|
|
4432
|
-
...
|
|
4432
|
+
...N()
|
|
4433
4433
|
] }],
|
|
4434
4434
|
"font-size": [{ text: [
|
|
4435
4435
|
"base",
|
|
@@ -4502,8 +4502,8 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4502
4502
|
"start",
|
|
4503
4503
|
"end"
|
|
4504
4504
|
] }],
|
|
4505
|
-
"placeholder-color": [{ placeholder:
|
|
4506
|
-
"text-color": [{ text:
|
|
4505
|
+
"placeholder-color": [{ placeholder: F() }],
|
|
4506
|
+
"text-color": [{ text: F() }],
|
|
4507
4507
|
"text-decoration": [
|
|
4508
4508
|
"underline",
|
|
4509
4509
|
"overline",
|
|
@@ -4518,7 +4518,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4518
4518
|
q,
|
|
4519
4519
|
bl
|
|
4520
4520
|
] }],
|
|
4521
|
-
"text-decoration-color": [{ decoration:
|
|
4521
|
+
"text-decoration-color": [{ decoration: F() }],
|
|
4522
4522
|
"underline-offset": [{ "underline-offset": [
|
|
4523
4523
|
G,
|
|
4524
4524
|
"auto",
|
|
@@ -4600,7 +4600,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4600
4600
|
"padding",
|
|
4601
4601
|
"content"
|
|
4602
4602
|
] }],
|
|
4603
|
-
"bg-position": [{ bg:
|
|
4603
|
+
"bg-position": [{ bg: te() }],
|
|
4604
4604
|
"bg-repeat": [{ bg: I() }],
|
|
4605
4605
|
"bg-size": [{ bg: ne() }],
|
|
4606
4606
|
"bg-image": [{ bg: [
|
|
@@ -4635,13 +4635,13 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4635
4635
|
jl,
|
|
4636
4636
|
Tl
|
|
4637
4637
|
] }],
|
|
4638
|
-
"bg-color": [{ bg:
|
|
4638
|
+
"bg-color": [{ bg: F() }],
|
|
4639
4639
|
"gradient-from-pos": [{ from: re() }],
|
|
4640
4640
|
"gradient-via-pos": [{ via: re() }],
|
|
4641
4641
|
"gradient-to-pos": [{ to: re() }],
|
|
4642
|
-
"gradient-from": [{ from:
|
|
4643
|
-
"gradient-via": [{ via:
|
|
4644
|
-
"gradient-to": [{ to:
|
|
4642
|
+
"gradient-from": [{ from: F() }],
|
|
4643
|
+
"gradient-via": [{ via: F() }],
|
|
4644
|
+
"gradient-to": [{ to: F() }],
|
|
4645
4645
|
rounded: [{ rounded: L() }],
|
|
4646
4646
|
"rounded-s": [{ "rounded-s": L() }],
|
|
4647
4647
|
"rounded-e": [{ "rounded-e": L() }],
|
|
@@ -4682,18 +4682,18 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4682
4682
|
"hidden",
|
|
4683
4683
|
"none"
|
|
4684
4684
|
] }],
|
|
4685
|
-
"border-color": [{ border:
|
|
4686
|
-
"border-color-x": [{ "border-x":
|
|
4687
|
-
"border-color-y": [{ "border-y":
|
|
4688
|
-
"border-color-s": [{ "border-s":
|
|
4689
|
-
"border-color-e": [{ "border-e":
|
|
4690
|
-
"border-color-bs": [{ "border-bs":
|
|
4691
|
-
"border-color-be": [{ "border-be":
|
|
4692
|
-
"border-color-t": [{ "border-t":
|
|
4693
|
-
"border-color-r": [{ "border-r":
|
|
4694
|
-
"border-color-b": [{ "border-b":
|
|
4695
|
-
"border-color-l": [{ "border-l":
|
|
4696
|
-
"divide-color": [{ divide:
|
|
4685
|
+
"border-color": [{ border: F() }],
|
|
4686
|
+
"border-color-x": [{ "border-x": F() }],
|
|
4687
|
+
"border-color-y": [{ "border-y": F() }],
|
|
4688
|
+
"border-color-s": [{ "border-s": F() }],
|
|
4689
|
+
"border-color-e": [{ "border-e": F() }],
|
|
4690
|
+
"border-color-bs": [{ "border-bs": F() }],
|
|
4691
|
+
"border-color-be": [{ "border-be": F() }],
|
|
4692
|
+
"border-color-t": [{ "border-t": F() }],
|
|
4693
|
+
"border-color-r": [{ "border-r": F() }],
|
|
4694
|
+
"border-color-b": [{ "border-b": F() }],
|
|
4695
|
+
"border-color-l": [{ "border-l": F() }],
|
|
4696
|
+
"divide-color": [{ divide: F() }],
|
|
4697
4697
|
"outline-style": [{ outline: [
|
|
4698
4698
|
...ie(),
|
|
4699
4699
|
"none",
|
|
@@ -4710,7 +4710,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4710
4710
|
Dl,
|
|
4711
4711
|
bl
|
|
4712
4712
|
] }],
|
|
4713
|
-
"outline-color": [{ outline:
|
|
4713
|
+
"outline-color": [{ outline: F() }],
|
|
4714
4714
|
shadow: [{ shadow: [
|
|
4715
4715
|
"",
|
|
4716
4716
|
"none",
|
|
@@ -4718,28 +4718,28 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4718
4718
|
Ml,
|
|
4719
4719
|
El
|
|
4720
4720
|
] }],
|
|
4721
|
-
"shadow-color": [{ shadow:
|
|
4721
|
+
"shadow-color": [{ shadow: F() }],
|
|
4722
4722
|
"inset-shadow": [{ "inset-shadow": [
|
|
4723
4723
|
"none",
|
|
4724
4724
|
d,
|
|
4725
4725
|
Ml,
|
|
4726
4726
|
El
|
|
4727
4727
|
] }],
|
|
4728
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
4728
|
+
"inset-shadow-color": [{ "inset-shadow": F() }],
|
|
4729
4729
|
"ring-w": [{ ring: R() }],
|
|
4730
4730
|
"ring-w-inset": ["ring-inset"],
|
|
4731
|
-
"ring-color": [{ ring:
|
|
4731
|
+
"ring-color": [{ ring: F() }],
|
|
4732
4732
|
"ring-offset-w": [{ "ring-offset": [G, bl] }],
|
|
4733
|
-
"ring-offset-color": [{ "ring-offset":
|
|
4733
|
+
"ring-offset-color": [{ "ring-offset": F() }],
|
|
4734
4734
|
"inset-ring-w": [{ "inset-ring": R() }],
|
|
4735
|
-
"inset-ring-color": [{ "inset-ring":
|
|
4735
|
+
"inset-ring-color": [{ "inset-ring": F() }],
|
|
4736
4736
|
"text-shadow": [{ "text-shadow": [
|
|
4737
4737
|
"none",
|
|
4738
4738
|
f,
|
|
4739
4739
|
Ml,
|
|
4740
4740
|
El
|
|
4741
4741
|
] }],
|
|
4742
|
-
"text-shadow-color": [{ "text-shadow":
|
|
4742
|
+
"text-shadow-color": [{ "text-shadow": F() }],
|
|
4743
4743
|
opacity: [{ opacity: [
|
|
4744
4744
|
G,
|
|
4745
4745
|
q,
|
|
@@ -4768,37 +4768,37 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4768
4768
|
"mask-image-linear-pos": [{ "mask-linear": [G] }],
|
|
4769
4769
|
"mask-image-linear-from-pos": [{ "mask-linear-from": z() }],
|
|
4770
4770
|
"mask-image-linear-to-pos": [{ "mask-linear-to": z() }],
|
|
4771
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
4772
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
4771
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
|
|
4772
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": F() }],
|
|
4773
4773
|
"mask-image-t-from-pos": [{ "mask-t-from": z() }],
|
|
4774
4774
|
"mask-image-t-to-pos": [{ "mask-t-to": z() }],
|
|
4775
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
4776
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
4775
|
+
"mask-image-t-from-color": [{ "mask-t-from": F() }],
|
|
4776
|
+
"mask-image-t-to-color": [{ "mask-t-to": F() }],
|
|
4777
4777
|
"mask-image-r-from-pos": [{ "mask-r-from": z() }],
|
|
4778
4778
|
"mask-image-r-to-pos": [{ "mask-r-to": z() }],
|
|
4779
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
4780
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
4779
|
+
"mask-image-r-from-color": [{ "mask-r-from": F() }],
|
|
4780
|
+
"mask-image-r-to-color": [{ "mask-r-to": F() }],
|
|
4781
4781
|
"mask-image-b-from-pos": [{ "mask-b-from": z() }],
|
|
4782
4782
|
"mask-image-b-to-pos": [{ "mask-b-to": z() }],
|
|
4783
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
4784
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
4783
|
+
"mask-image-b-from-color": [{ "mask-b-from": F() }],
|
|
4784
|
+
"mask-image-b-to-color": [{ "mask-b-to": F() }],
|
|
4785
4785
|
"mask-image-l-from-pos": [{ "mask-l-from": z() }],
|
|
4786
4786
|
"mask-image-l-to-pos": [{ "mask-l-to": z() }],
|
|
4787
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
4788
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
4787
|
+
"mask-image-l-from-color": [{ "mask-l-from": F() }],
|
|
4788
|
+
"mask-image-l-to-color": [{ "mask-l-to": F() }],
|
|
4789
4789
|
"mask-image-x-from-pos": [{ "mask-x-from": z() }],
|
|
4790
4790
|
"mask-image-x-to-pos": [{ "mask-x-to": z() }],
|
|
4791
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
4792
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
4791
|
+
"mask-image-x-from-color": [{ "mask-x-from": F() }],
|
|
4792
|
+
"mask-image-x-to-color": [{ "mask-x-to": F() }],
|
|
4793
4793
|
"mask-image-y-from-pos": [{ "mask-y-from": z() }],
|
|
4794
4794
|
"mask-image-y-to-pos": [{ "mask-y-to": z() }],
|
|
4795
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
4796
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
4795
|
+
"mask-image-y-from-color": [{ "mask-y-from": F() }],
|
|
4796
|
+
"mask-image-y-to-color": [{ "mask-y-to": F() }],
|
|
4797
4797
|
"mask-image-radial": [{ "mask-radial": [q, K] }],
|
|
4798
4798
|
"mask-image-radial-from-pos": [{ "mask-radial-from": z() }],
|
|
4799
4799
|
"mask-image-radial-to-pos": [{ "mask-radial-to": z() }],
|
|
4800
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
4801
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
4800
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
|
|
4801
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": F() }],
|
|
4802
4802
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
4803
4803
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
4804
4804
|
closest: ["side", "corner"],
|
|
@@ -4808,8 +4808,8 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4808
4808
|
"mask-image-conic-pos": [{ "mask-conic": [G] }],
|
|
4809
4809
|
"mask-image-conic-from-pos": [{ "mask-conic-from": z() }],
|
|
4810
4810
|
"mask-image-conic-to-pos": [{ "mask-conic-to": z() }],
|
|
4811
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
4812
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
4811
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
|
|
4812
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": F() }],
|
|
4813
4813
|
"mask-mode": [{ mask: [
|
|
4814
4814
|
"alpha",
|
|
4815
4815
|
"luminance",
|
|
@@ -4823,7 +4823,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4823
4823
|
"stroke",
|
|
4824
4824
|
"view"
|
|
4825
4825
|
] }],
|
|
4826
|
-
"mask-position": [{ mask:
|
|
4826
|
+
"mask-position": [{ mask: te() }],
|
|
4827
4827
|
"mask-repeat": [{ mask: I() }],
|
|
4828
4828
|
"mask-size": [{ mask: ne() }],
|
|
4829
4829
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
@@ -4856,7 +4856,7 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
4856
4856
|
Ml,
|
|
4857
4857
|
El
|
|
4858
4858
|
] }],
|
|
4859
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
4859
|
+
"drop-shadow-color": [{ "drop-shadow": F() }],
|
|
4860
4860
|
grayscale: [{ grayscale: [
|
|
4861
4861
|
"",
|
|
4862
4862
|
G,
|
|
@@ -5011,9 +5011,9 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
5011
5011
|
"translate-y": [{ "translate-y": ue() }],
|
|
5012
5012
|
"translate-z": [{ "translate-z": ue() }],
|
|
5013
5013
|
"translate-none": ["translate-none"],
|
|
5014
|
-
accent: [{ accent:
|
|
5014
|
+
accent: [{ accent: F() }],
|
|
5015
5015
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
5016
|
-
"caret-color": [{ caret:
|
|
5016
|
+
"caret-color": [{ caret: F() }],
|
|
5017
5017
|
"color-scheme": [{ scheme: [
|
|
5018
5018
|
"normal",
|
|
5019
5019
|
"dark",
|
|
@@ -5137,14 +5137,14 @@ var Sc = bc, Cc = (e, t) => {
|
|
|
5137
5137
|
q,
|
|
5138
5138
|
K
|
|
5139
5139
|
] }],
|
|
5140
|
-
fill: [{ fill: ["none", ...
|
|
5140
|
+
fill: [{ fill: ["none", ...F()] }],
|
|
5141
5141
|
"stroke-w": [{ stroke: [
|
|
5142
5142
|
G,
|
|
5143
5143
|
Dl,
|
|
5144
5144
|
bl,
|
|
5145
5145
|
xl
|
|
5146
5146
|
] }],
|
|
5147
|
-
stroke: [{ stroke: ["none", ...
|
|
5147
|
+
stroke: [{ stroke: ["none", ...F()] }],
|
|
5148
5148
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
5149
5149
|
},
|
|
5150
5150
|
conflictingClassGroups: {
|
|
@@ -7105,60 +7105,62 @@ var Kd = ({ refs: e, axis: t = "both" }) => {
|
|
|
7105
7105
|
i.current.clear(), n.current !== null && (cancelAnimationFrame(n.current), n.current = null);
|
|
7106
7106
|
};
|
|
7107
7107
|
}, [e, t]);
|
|
7108
|
-
}, qd = n(void 0), Jd = ({ children: e, payload: n, columns: r, state: i = {}, onColumnFiltersChange: a, onPaginationChange: o, onSortingChange: s,
|
|
7109
|
-
let [
|
|
7108
|
+
}, qd = n(void 0), Jd = ({ children: e, payload: n, columns: r, state: i = {}, onColumnFiltersChange: a, onPaginationChange: o, onSortingChange: s, onRowSelectionChange: u, setGlobalFilter: d, manualPagination: f = !1, enableRowSelection: p = !0, isError: h, isLoading: g, isFetching: _, refetch: v, getRowCanExpand: y, renderSubComponent: b }) => {
|
|
7109
|
+
let [x, S] = t.useState({}), [C, w] = t.useState({}), T = Gd({
|
|
7110
7110
|
data: n?.data ?? [],
|
|
7111
7111
|
columns: r,
|
|
7112
7112
|
state: {
|
|
7113
7113
|
...i,
|
|
7114
|
-
columnPinning:
|
|
7115
|
-
expanded:
|
|
7114
|
+
columnPinning: x,
|
|
7115
|
+
expanded: C
|
|
7116
7116
|
},
|
|
7117
7117
|
getSubRows: (e) => e.subRows,
|
|
7118
|
-
getRowCanExpand:
|
|
7118
|
+
getRowCanExpand: y,
|
|
7119
7119
|
onColumnFiltersChange: a,
|
|
7120
|
+
onRowSelectionChange: u,
|
|
7120
7121
|
getCoreRowModel: Id(),
|
|
7121
7122
|
getFacetedUniqueValues: Bd(),
|
|
7122
7123
|
getFacetedMinMaxValues: zd(),
|
|
7123
7124
|
getExpandedRowModel: Ld(),
|
|
7124
7125
|
onPaginationChange: o,
|
|
7125
7126
|
onSortingChange: s,
|
|
7126
|
-
onColumnPinningChange:
|
|
7127
|
-
onGlobalFilterChange:
|
|
7128
|
-
onExpandedChange:
|
|
7129
|
-
manualPagination:
|
|
7127
|
+
onColumnPinningChange: S,
|
|
7128
|
+
onGlobalFilterChange: d,
|
|
7129
|
+
onExpandedChange: w,
|
|
7130
|
+
manualPagination: f,
|
|
7131
|
+
enableRowSelection: p,
|
|
7130
7132
|
rowCount: n?.total,
|
|
7131
7133
|
defaultColumn: { minSize: 180 }
|
|
7132
|
-
}),
|
|
7134
|
+
}), E = l(null), D = l(null);
|
|
7133
7135
|
Kd({
|
|
7134
|
-
refs: [
|
|
7136
|
+
refs: [E, D],
|
|
7135
7137
|
axis: "x"
|
|
7136
7138
|
});
|
|
7137
|
-
let
|
|
7138
|
-
paneRef1:
|
|
7139
|
-
paneRef2:
|
|
7140
|
-
isError:
|
|
7141
|
-
isLoading:
|
|
7142
|
-
isFetching:
|
|
7143
|
-
refetch:
|
|
7139
|
+
let O = c(() => ({
|
|
7140
|
+
paneRef1: E,
|
|
7141
|
+
paneRef2: D,
|
|
7142
|
+
isError: h,
|
|
7143
|
+
isLoading: g,
|
|
7144
|
+
isFetching: _,
|
|
7145
|
+
refetch: v,
|
|
7144
7146
|
globalFilter: i.globalFilter,
|
|
7145
|
-
setGlobalFilter:
|
|
7146
|
-
renderSubComponent:
|
|
7147
|
+
setGlobalFilter: d,
|
|
7148
|
+
renderSubComponent: b
|
|
7147
7149
|
}), [
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
f,
|
|
7151
|
-
p,
|
|
7150
|
+
E,
|
|
7151
|
+
D,
|
|
7152
7152
|
h,
|
|
7153
7153
|
g,
|
|
7154
|
+
_,
|
|
7155
|
+
v,
|
|
7154
7156
|
i.globalFilter,
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
+
d,
|
|
7158
|
+
b
|
|
7157
7159
|
]);
|
|
7158
7160
|
return /* @__PURE__ */ m(qd.Provider, {
|
|
7159
7161
|
value: {
|
|
7160
|
-
...
|
|
7161
|
-
table:
|
|
7162
|
+
...O,
|
|
7163
|
+
table: T
|
|
7162
7164
|
},
|
|
7163
7165
|
children: e
|
|
7164
7166
|
});
|
|
@@ -7940,7 +7942,7 @@ var Uf = ({ column: e }) => {
|
|
|
7940
7942
|
})
|
|
7941
7943
|
]
|
|
7942
7944
|
});
|
|
7943
|
-
}, Gf = ({ columns: e, payload: t, state: n, onColumnFiltersChange: r, onPaginationChange: i, onSortingChange: a, isLoading: o, isError: s, setGlobalFilter: c, getRowCanExpand: l, renderSubComponent: u, manualPagination: d,
|
|
7945
|
+
}, Gf = ({ columns: e, payload: t, state: n, onColumnFiltersChange: r, onPaginationChange: i, onSortingChange: a, isLoading: o, isError: s, setGlobalFilter: c, getRowCanExpand: l, renderSubComponent: u, manualPagination: d, enableRowSelection: f, isFetching: p, refetch: g }) => /* @__PURE__ */ m(Jd, {
|
|
7944
7946
|
payload: t,
|
|
7945
7947
|
columns: e,
|
|
7946
7948
|
state: n,
|
|
@@ -7953,8 +7955,9 @@ var Uf = ({ column: e }) => {
|
|
|
7953
7955
|
getRowCanExpand: l,
|
|
7954
7956
|
renderSubComponent: u,
|
|
7955
7957
|
manualPagination: d,
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
+
enableRowSelection: f,
|
|
7959
|
+
isFetching: p,
|
|
7960
|
+
refetch: g,
|
|
7958
7961
|
children: /* @__PURE__ */ m("div", {
|
|
7959
7962
|
className: "mun:relative",
|
|
7960
7963
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -7988,23 +7991,26 @@ var Uf = ({ column: e }) => {
|
|
|
7988
7991
|
})
|
|
7989
7992
|
})
|
|
7990
7993
|
}), Kf = () => {
|
|
7991
|
-
let [e, n] = t.useState([]), [r, i] = t.useState(""), [a, o] = t.useState({
|
|
7994
|
+
let [e, n] = t.useState([]), [r, i] = t.useState(""), [a, o] = t.useState({}), [s, c] = t.useState({
|
|
7992
7995
|
pageIndex: 0,
|
|
7993
7996
|
pageSize: 20
|
|
7994
|
-
}), [
|
|
7997
|
+
}), [l, u] = t.useState([]);
|
|
7995
7998
|
return {
|
|
7996
7999
|
state: {
|
|
7997
8000
|
columnFilters: e,
|
|
7998
8001
|
globalFilter: r,
|
|
7999
|
-
pagination:
|
|
8000
|
-
sorting:
|
|
8002
|
+
pagination: s,
|
|
8003
|
+
sorting: l,
|
|
8004
|
+
rowSelection: a
|
|
8001
8005
|
},
|
|
8002
8006
|
handlers: {
|
|
8003
8007
|
onColumnFiltersChange: n,
|
|
8004
|
-
onPaginationChange:
|
|
8005
|
-
onSortingChange:
|
|
8006
|
-
setGlobalFilter: i
|
|
8007
|
-
|
|
8008
|
+
onPaginationChange: c,
|
|
8009
|
+
onSortingChange: u,
|
|
8010
|
+
setGlobalFilter: i,
|
|
8011
|
+
onRowSelectionChange: o
|
|
8012
|
+
},
|
|
8013
|
+
rowSelection: a
|
|
8008
8014
|
};
|
|
8009
8015
|
}, qf = (e) => new URLSearchParams(e.flatMap(({ id: e, value: t }) => {
|
|
8010
8016
|
let n = e.replace(/_/g, ".");
|