@mdspl/mds-shared-ui 0.1.0 → 0.1.1
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/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +210 -210
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import F, { useLayoutEffect as kr, useEffect as L, useRef as M, useMemo as A, useCallback as G, useState as re, createContext as
|
|
2
|
-
import { Menu as
|
|
3
|
-
import { unstable_batchedUpdates as
|
|
4
|
-
var
|
|
1
|
+
import F, { useLayoutEffect as kr, useEffect as L, useRef as M, useMemo as A, useCallback as G, useState as re, createContext as it, memo as Nr, useReducer as Lr, useContext as Ae, forwardRef as on, createElement as Kt } from "react";
|
|
2
|
+
import { Menu as st, Checkbox as ke, IconButton as Ve, Portal as sn, Table as ve, HStack as ge, createListCollection as Mr, Select as le, Pagination as Ct, Box as St, Text as Oe, ButtonGroup as Pr, Slider as at, VStack as Qe, Drawer as be, Tabs as It, Button as $t, CloseButton as zr } from "@chakra-ui/react";
|
|
3
|
+
import { unstable_batchedUpdates as vt, createPortal as $r } from "react-dom";
|
|
4
|
+
var gt = { exports: {} }, Ke = {};
|
|
5
5
|
var Cn;
|
|
6
6
|
function Vr() {
|
|
7
7
|
if (Cn) return Ke;
|
|
@@ -130,7 +130,7 @@ function Fr() {
|
|
|
130
130
|
}
|
|
131
131
|
function c() {
|
|
132
132
|
var v = e(this.type);
|
|
133
|
-
return
|
|
133
|
+
return W[v] || (W[v] = !0, console.error(
|
|
134
134
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
135
135
|
)), v = this.props.ref, v !== void 0 ? v : null;
|
|
136
136
|
}
|
|
@@ -185,7 +185,7 @@ function Fr() {
|
|
|
185
185
|
var X = Object.keys(y).filter(function(I) {
|
|
186
186
|
return I !== "key";
|
|
187
187
|
});
|
|
188
|
-
k = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
188
|
+
k = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", we[z + k] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
189
189
|
`A props object containing a "key" prop is being spread into JSX:
|
|
190
190
|
let props = %s;
|
|
191
191
|
<%s {...props} />
|
|
@@ -196,7 +196,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
196
196
|
z,
|
|
197
197
|
X,
|
|
198
198
|
z
|
|
199
|
-
),
|
|
199
|
+
), we[z + k] = !0);
|
|
200
200
|
}
|
|
201
201
|
if (z = null, T !== void 0 && (n(T), z = "" + T), s(y) && (n(y.key), z = "" + y.key), "key" in y) {
|
|
202
202
|
T = {};
|
|
@@ -229,10 +229,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
229
229
|
return v();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var je,
|
|
232
|
+
var je, W = {}, Ie = d.react_stack_bottom_frame.bind(
|
|
233
233
|
d,
|
|
234
234
|
i
|
|
235
|
-
)(), ie = me(r(i)),
|
|
235
|
+
)(), ie = me(r(i)), we = {};
|
|
236
236
|
Ze.Fragment = b, Ze.jsx = function(v, y, T) {
|
|
237
237
|
var k = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
238
238
|
return h(
|
|
@@ -258,11 +258,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
258
258
|
}
|
|
259
259
|
var Dn;
|
|
260
260
|
function Br() {
|
|
261
|
-
return Dn || (Dn = 1, process.env.NODE_ENV === "production" ?
|
|
261
|
+
return Dn || (Dn = 1, process.env.NODE_ENV === "production" ? gt.exports = Vr() : gt.exports = Fr()), gt.exports;
|
|
262
262
|
}
|
|
263
|
-
var u = Br(),
|
|
263
|
+
var u = Br(), pt = { exports: {} }, Vt = {}, bt = { exports: {} }, Ft = {};
|
|
264
264
|
var _n;
|
|
265
|
-
function
|
|
265
|
+
function Hr() {
|
|
266
266
|
if (_n) return Ft;
|
|
267
267
|
_n = 1;
|
|
268
268
|
var e = F;
|
|
@@ -304,7 +304,7 @@ function Wr() {
|
|
|
304
304
|
}
|
|
305
305
|
var Bt = {};
|
|
306
306
|
var On;
|
|
307
|
-
function
|
|
307
|
+
function Wr() {
|
|
308
308
|
return On || (On = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
309
309
|
function e(d, m) {
|
|
310
310
|
return d === m && (d !== 0 || 1 / d === 1 / m) || d !== d && m !== m;
|
|
@@ -358,7 +358,7 @@ function Hr() {
|
|
|
358
358
|
}
|
|
359
359
|
var Tn;
|
|
360
360
|
function Xn() {
|
|
361
|
-
return Tn || (Tn = 1, process.env.NODE_ENV === "production" ?
|
|
361
|
+
return Tn || (Tn = 1, process.env.NODE_ENV === "production" ? bt.exports = Hr() : bt.exports = Wr()), bt.exports;
|
|
362
362
|
}
|
|
363
363
|
var jn;
|
|
364
364
|
function Yr() {
|
|
@@ -411,7 +411,7 @@ function Yr() {
|
|
|
411
411
|
), c(b), b;
|
|
412
412
|
}, Vt;
|
|
413
413
|
}
|
|
414
|
-
var
|
|
414
|
+
var Ht = {};
|
|
415
415
|
var In;
|
|
416
416
|
function Ur() {
|
|
417
417
|
return In || (In = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -420,7 +420,7 @@ function Ur() {
|
|
|
420
420
|
}
|
|
421
421
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
422
422
|
var t = F, n = Xn(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, a = t.useMemo, c = t.useDebugValue;
|
|
423
|
-
|
|
423
|
+
Ht.useSyncExternalStoreWithSelector = function(l, h, f, p, d) {
|
|
424
424
|
var m = i(null);
|
|
425
425
|
if (m.current === null) {
|
|
426
426
|
var g = { hasValue: !1, value: null };
|
|
@@ -462,18 +462,18 @@ function Ur() {
|
|
|
462
462
|
[b]
|
|
463
463
|
), c(b), b;
|
|
464
464
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
465
|
-
})()),
|
|
465
|
+
})()), Ht;
|
|
466
466
|
}
|
|
467
467
|
var An;
|
|
468
468
|
function Gr() {
|
|
469
|
-
return An || (An = 1, process.env.NODE_ENV === "production" ?
|
|
469
|
+
return An || (An = 1, process.env.NODE_ENV === "production" ? pt.exports = Yr() : pt.exports = Ur()), pt.exports;
|
|
470
470
|
}
|
|
471
471
|
var qr = Gr();
|
|
472
472
|
const Zt = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Et = {
|
|
473
473
|
current: []
|
|
474
474
|
};
|
|
475
|
-
let
|
|
476
|
-
const
|
|
475
|
+
let Wt = !1;
|
|
476
|
+
const mt = /* @__PURE__ */ new Set(), kn = /* @__PURE__ */ new Map();
|
|
477
477
|
function Jn(e) {
|
|
478
478
|
for (const t of e) {
|
|
479
479
|
if (Et.current.includes(t))
|
|
@@ -504,11 +504,11 @@ function Kr(e) {
|
|
|
504
504
|
n(t);
|
|
505
505
|
}
|
|
506
506
|
function Zr(e) {
|
|
507
|
-
if (
|
|
507
|
+
if (mt.add(e), !Wt)
|
|
508
508
|
try {
|
|
509
|
-
for (
|
|
510
|
-
const t = Array.from(
|
|
511
|
-
|
|
509
|
+
for (Wt = !0; mt.size > 0; ) {
|
|
510
|
+
const t = Array.from(mt);
|
|
511
|
+
mt.clear();
|
|
512
512
|
for (const n of t) {
|
|
513
513
|
const r = kn.get(n) ?? n.prevState;
|
|
514
514
|
n.prevState = r, Jr(n);
|
|
@@ -525,7 +525,7 @@ function Zr(e) {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
} finally {
|
|
528
|
-
|
|
528
|
+
Wt = !1, Et.current = [], kn.clear();
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function Qr(e) {
|
|
@@ -547,7 +547,7 @@ class Kn {
|
|
|
547
547
|
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : Qr(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), Zr(this);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function lt(e, t = (r) => r, n = {}) {
|
|
551
551
|
const r = n.equal ?? eo;
|
|
552
552
|
return qr.useSyncExternalStoreWithSelector(
|
|
553
553
|
e.subscribe,
|
|
@@ -601,7 +601,7 @@ function to() {
|
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
603
|
const At = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
604
|
-
function
|
|
604
|
+
function He(e) {
|
|
605
605
|
const t = Object.prototype.toString.call(e);
|
|
606
606
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
607
607
|
t === "[object global]";
|
|
@@ -611,7 +611,7 @@ function an(e) {
|
|
|
611
611
|
}
|
|
612
612
|
function K(e) {
|
|
613
613
|
var t, n;
|
|
614
|
-
return e ?
|
|
614
|
+
return e ? He(e) ? e : an(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
615
615
|
}
|
|
616
616
|
function ln(e) {
|
|
617
617
|
const {
|
|
@@ -619,14 +619,14 @@ function ln(e) {
|
|
|
619
619
|
} = K(e);
|
|
620
620
|
return e instanceof t;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
622
|
+
function ct(e) {
|
|
623
|
+
return He(e) ? !1 : e instanceof K(e).HTMLElement;
|
|
624
624
|
}
|
|
625
625
|
function Zn(e) {
|
|
626
626
|
return e instanceof K(e).SVGElement;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return e ?
|
|
628
|
+
function We(e) {
|
|
629
|
+
return e ? He(e) ? e.document : an(e) ? ln(e) ? e : ct(e) || Zn(e) ? e.ownerDocument : document : document : document;
|
|
630
630
|
}
|
|
631
631
|
const pe = At ? kr : L;
|
|
632
632
|
function cn(e) {
|
|
@@ -647,14 +647,14 @@ function no() {
|
|
|
647
647
|
}, []);
|
|
648
648
|
return [t, n];
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function rt(e, t) {
|
|
651
651
|
t === void 0 && (t = [e]);
|
|
652
652
|
const n = M(e);
|
|
653
653
|
return pe(() => {
|
|
654
654
|
n.current !== e && (n.current = e);
|
|
655
655
|
}, t), n;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function ut(e, t) {
|
|
658
658
|
const n = M();
|
|
659
659
|
return A(
|
|
660
660
|
() => {
|
|
@@ -682,7 +682,7 @@ function Qt(e) {
|
|
|
682
682
|
}, [e]), t.current;
|
|
683
683
|
}
|
|
684
684
|
let Yt = {};
|
|
685
|
-
function
|
|
685
|
+
function dt(e, t) {
|
|
686
686
|
return A(() => {
|
|
687
687
|
if (t)
|
|
688
688
|
return t;
|
|
@@ -846,7 +846,7 @@ function co() {
|
|
|
846
846
|
announcement: e
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
const er = /* @__PURE__ */
|
|
849
|
+
const er = /* @__PURE__ */ it(null);
|
|
850
850
|
function uo(e) {
|
|
851
851
|
const t = Ae(er);
|
|
852
852
|
L(() => {
|
|
@@ -912,7 +912,7 @@ function go(e) {
|
|
|
912
912
|
const {
|
|
913
913
|
announce: i,
|
|
914
914
|
announcement: s
|
|
915
|
-
} = co(), a =
|
|
915
|
+
} = co(), a = dt("DndLiveRegion"), [c, l] = re(!1);
|
|
916
916
|
if (L(() => {
|
|
917
917
|
l(!0);
|
|
918
918
|
}, []), uo(A(() => ({
|
|
@@ -1231,7 +1231,7 @@ function dn(e, t) {
|
|
|
1231
1231
|
return n;
|
|
1232
1232
|
if (ln(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
|
|
1233
1233
|
return n.push(o.scrollingElement), n;
|
|
1234
|
-
if (!
|
|
1234
|
+
if (!ct(o) || Zn(o) || n.includes(o))
|
|
1235
1235
|
return n;
|
|
1236
1236
|
const i = K(e).getComputedStyle(o);
|
|
1237
1237
|
return o !== e && Ao(o, i) && n.push(o), Io(o, i) ? n : r(o.parentNode);
|
|
@@ -1243,13 +1243,13 @@ function rr(e) {
|
|
|
1243
1243
|
return t ?? null;
|
|
1244
1244
|
}
|
|
1245
1245
|
function Ut(e) {
|
|
1246
|
-
return !At || !e ? null :
|
|
1246
|
+
return !At || !e ? null : He(e) ? e : an(e) ? ln(e) || e === We(e).scrollingElement ? window : ct(e) ? e : null : null;
|
|
1247
1247
|
}
|
|
1248
1248
|
function or(e) {
|
|
1249
|
-
return
|
|
1249
|
+
return He(e) ? e.scrollX : e.scrollLeft;
|
|
1250
1250
|
}
|
|
1251
1251
|
function ir(e) {
|
|
1252
|
-
return
|
|
1252
|
+
return He(e) ? e.scrollY : e.scrollTop;
|
|
1253
1253
|
}
|
|
1254
1254
|
function tn(e) {
|
|
1255
1255
|
return {
|
|
@@ -1394,7 +1394,7 @@ class fn {
|
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
class
|
|
1397
|
+
class et {
|
|
1398
1398
|
constructor(t) {
|
|
1399
1399
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
1400
1400
|
this.listeners.forEach((n) => {
|
|
@@ -1412,7 +1412,7 @@ function Vo(e) {
|
|
|
1412
1412
|
const {
|
|
1413
1413
|
EventTarget: t
|
|
1414
1414
|
} = K(e);
|
|
1415
|
-
return e instanceof t ? e :
|
|
1415
|
+
return e instanceof t ? e : We(e);
|
|
1416
1416
|
}
|
|
1417
1417
|
function Gt(e, t) {
|
|
1418
1418
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
@@ -1471,7 +1471,7 @@ class ur {
|
|
|
1471
1471
|
target: n
|
|
1472
1472
|
}
|
|
1473
1473
|
} = t;
|
|
1474
|
-
this.props = t, this.listeners = new
|
|
1474
|
+
this.props = t, this.listeners = new et(We(n)), this.windowListeners = new et(K(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1475
1475
|
}
|
|
1476
1476
|
attach() {
|
|
1477
1477
|
this.handleStart(), this.windowListeners.add(ae.Resize, this.handleCancel), this.windowListeners.add(ae.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ae.Keydown, this.handleKeyDown));
|
|
@@ -1627,7 +1627,7 @@ class hn {
|
|
|
1627
1627
|
} = t, {
|
|
1628
1628
|
target: s
|
|
1629
1629
|
} = i;
|
|
1630
|
-
this.props = t, this.events = n, this.document =
|
|
1630
|
+
this.props = t, this.events = n, this.document = We(s), this.documentListeners = new et(this.document), this.listeners = new et(r), this.windowListeners = new et(K(s)), this.initialCoordinates = (o = en(i)) != null ? o : ce, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1631
1631
|
}
|
|
1632
1632
|
attach() {
|
|
1633
1633
|
const {
|
|
@@ -1730,7 +1730,7 @@ class hn {
|
|
|
1730
1730
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
const
|
|
1733
|
+
const Ho = {
|
|
1734
1734
|
cancel: {
|
|
1735
1735
|
name: "pointercancel"
|
|
1736
1736
|
},
|
|
@@ -1745,8 +1745,8 @@ class vn extends hn {
|
|
|
1745
1745
|
constructor(t) {
|
|
1746
1746
|
const {
|
|
1747
1747
|
event: n
|
|
1748
|
-
} = t, r =
|
|
1749
|
-
super(t,
|
|
1748
|
+
} = t, r = We(n.target);
|
|
1749
|
+
super(t, Ho, r);
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
vn.activators = [{
|
|
@@ -1762,7 +1762,7 @@ vn.activators = [{
|
|
|
1762
1762
|
}), !0);
|
|
1763
1763
|
}
|
|
1764
1764
|
}];
|
|
1765
|
-
const
|
|
1765
|
+
const Wo = {
|
|
1766
1766
|
move: {
|
|
1767
1767
|
name: "mousemove"
|
|
1768
1768
|
},
|
|
@@ -1776,7 +1776,7 @@ var nn;
|
|
|
1776
1776
|
})(nn || (nn = {}));
|
|
1777
1777
|
class Yo extends hn {
|
|
1778
1778
|
constructor(t) {
|
|
1779
|
-
super(t,
|
|
1779
|
+
super(t, Wo, We(t.event.target));
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
Yo.activators = [{
|
|
@@ -1834,10 +1834,10 @@ Uo.activators = [{
|
|
|
1834
1834
|
}), !0);
|
|
1835
1835
|
}
|
|
1836
1836
|
}];
|
|
1837
|
-
var
|
|
1837
|
+
var tt;
|
|
1838
1838
|
(function(e) {
|
|
1839
1839
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1840
|
-
})(
|
|
1840
|
+
})(tt || (tt = {}));
|
|
1841
1841
|
var Tt;
|
|
1842
1842
|
(function(e) {
|
|
1843
1843
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
@@ -1845,7 +1845,7 @@ var Tt;
|
|
|
1845
1845
|
function Go(e) {
|
|
1846
1846
|
let {
|
|
1847
1847
|
acceleration: t,
|
|
1848
|
-
activator: n =
|
|
1848
|
+
activator: n = tt.Pointer,
|
|
1849
1849
|
canScroll: r,
|
|
1850
1850
|
draggingRect: o,
|
|
1851
1851
|
enabled: i,
|
|
@@ -1868,14 +1868,14 @@ function Go(e) {
|
|
|
1868
1868
|
y: 0
|
|
1869
1869
|
}), w = A(() => {
|
|
1870
1870
|
switch (n) {
|
|
1871
|
-
case
|
|
1871
|
+
case tt.Pointer:
|
|
1872
1872
|
return c ? {
|
|
1873
1873
|
top: c.y,
|
|
1874
1874
|
bottom: c.y,
|
|
1875
1875
|
left: c.x,
|
|
1876
1876
|
right: c.x
|
|
1877
1877
|
} : null;
|
|
1878
|
-
case
|
|
1878
|
+
case tt.DraggableRect:
|
|
1879
1879
|
return o;
|
|
1880
1880
|
}
|
|
1881
1881
|
}, [n, o, c]), C = M(null), E = G(() => {
|
|
@@ -1953,7 +1953,7 @@ function Xo(e) {
|
|
|
1953
1953
|
disabled: n
|
|
1954
1954
|
} = e;
|
|
1955
1955
|
const r = Qt(t);
|
|
1956
|
-
return
|
|
1956
|
+
return ut((o) => {
|
|
1957
1957
|
if (n || !r || !o)
|
|
1958
1958
|
return qo;
|
|
1959
1959
|
const i = {
|
|
@@ -1974,7 +1974,7 @@ function Xo(e) {
|
|
|
1974
1974
|
}
|
|
1975
1975
|
function Jo(e, t) {
|
|
1976
1976
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
1977
|
-
return
|
|
1977
|
+
return ut((o) => {
|
|
1978
1978
|
var i;
|
|
1979
1979
|
return t == null ? null : (i = r ?? o) != null ? i : null;
|
|
1980
1980
|
}, [r, t]);
|
|
@@ -1990,10 +1990,10 @@ function Ko(e, t) {
|
|
|
1990
1990
|
return [...n, ...i];
|
|
1991
1991
|
}, []), [e, t]);
|
|
1992
1992
|
}
|
|
1993
|
-
var
|
|
1993
|
+
var ot;
|
|
1994
1994
|
(function(e) {
|
|
1995
1995
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1996
|
-
})(
|
|
1996
|
+
})(ot || (ot = {}));
|
|
1997
1997
|
var rn;
|
|
1998
1998
|
(function(e) {
|
|
1999
1999
|
e.Optimized = "optimized";
|
|
@@ -2009,9 +2009,9 @@ function Zo(e, t) {
|
|
|
2009
2009
|
frequency: a,
|
|
2010
2010
|
measure: c,
|
|
2011
2011
|
strategy: l
|
|
2012
|
-
} = o, h = M(e), f = b(), p =
|
|
2012
|
+
} = o, h = M(e), f = b(), p = rt(f), d = G(function(x) {
|
|
2013
2013
|
x === void 0 && (x = []), !p.current && s((w) => w === null ? x : w.concat(x.filter((C) => !w.includes(C))));
|
|
2014
|
-
}, [p]), m = M(null), g =
|
|
2014
|
+
}, [p]), m = M(null), g = ut((x) => {
|
|
2015
2015
|
if (f && !n)
|
|
2016
2016
|
return Fn;
|
|
2017
2017
|
if (!x || x === Fn || h.current !== e || i != null) {
|
|
@@ -2059,9 +2059,9 @@ function Zo(e, t) {
|
|
|
2059
2059
|
};
|
|
2060
2060
|
function b() {
|
|
2061
2061
|
switch (l) {
|
|
2062
|
-
case
|
|
2062
|
+
case ot.Always:
|
|
2063
2063
|
return !1;
|
|
2064
|
-
case
|
|
2064
|
+
case ot.BeforeDragging:
|
|
2065
2065
|
return n;
|
|
2066
2066
|
default:
|
|
2067
2067
|
return !n;
|
|
@@ -2069,7 +2069,7 @@ function Zo(e, t) {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
function dr(e, t) {
|
|
2072
|
-
return
|
|
2072
|
+
return ut((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
2073
2073
|
}
|
|
2074
2074
|
function Qo(e, t) {
|
|
2075
2075
|
return dr(e, t);
|
|
@@ -2154,9 +2154,9 @@ function ni(e) {
|
|
|
2154
2154
|
const t = dr(e);
|
|
2155
2155
|
return nr(e, t);
|
|
2156
2156
|
}
|
|
2157
|
-
const
|
|
2157
|
+
const Hn = [];
|
|
2158
2158
|
function ri(e) {
|
|
2159
|
-
const t = M(e), n =
|
|
2159
|
+
const t = M(e), n = ut((r) => e ? r && r !== Hn && e && t.current && e.parentNode === t.current.parentNode ? r : dn(e) : Hn, [e]);
|
|
2160
2160
|
return L(() => {
|
|
2161
2161
|
t.current = e;
|
|
2162
2162
|
}, [e]), n;
|
|
@@ -2189,7 +2189,7 @@ function oi(e) {
|
|
|
2189
2189
|
}
|
|
2190
2190
|
}, [o, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Fe(i, s), ce) : lr(e) : ce, [e, t]);
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Wn(e, t) {
|
|
2193
2193
|
t === void 0 && (t = []);
|
|
2194
2194
|
const n = M(null);
|
|
2195
2195
|
return L(
|
|
@@ -2263,7 +2263,7 @@ function li(e) {
|
|
|
2263
2263
|
if (e.children.length > 1)
|
|
2264
2264
|
return e;
|
|
2265
2265
|
const t = e.children[0];
|
|
2266
|
-
return
|
|
2266
|
+
return ct(t) ? t : e;
|
|
2267
2267
|
}
|
|
2268
2268
|
function ci(e) {
|
|
2269
2269
|
let {
|
|
@@ -2273,7 +2273,7 @@ function ci(e) {
|
|
|
2273
2273
|
for (const {
|
|
2274
2274
|
target: h
|
|
2275
2275
|
} of l)
|
|
2276
|
-
if (
|
|
2276
|
+
if (ct(h)) {
|
|
2277
2277
|
r((f) => {
|
|
2278
2278
|
const p = t(h);
|
|
2279
2279
|
return f ? {
|
|
@@ -2310,14 +2310,14 @@ const ui = [{
|
|
|
2310
2310
|
},
|
|
2311
2311
|
droppable: {
|
|
2312
2312
|
measure: Pn,
|
|
2313
|
-
strategy:
|
|
2313
|
+
strategy: ot.WhileDragging,
|
|
2314
2314
|
frequency: rn.Optimized
|
|
2315
2315
|
},
|
|
2316
2316
|
dragOverlay: {
|
|
2317
2317
|
measure: Ye
|
|
2318
2318
|
}
|
|
2319
2319
|
};
|
|
2320
|
-
class
|
|
2320
|
+
class nt extends Map {
|
|
2321
2321
|
get(t) {
|
|
2322
2322
|
var n;
|
|
2323
2323
|
return t != null && (n = super.get(t)) != null ? n : void 0;
|
|
@@ -2347,7 +2347,7 @@ const fi = {
|
|
|
2347
2347
|
containerNodeRect: null,
|
|
2348
2348
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2349
2349
|
droppableRects: /* @__PURE__ */ new Map(),
|
|
2350
|
-
droppableContainers: /* @__PURE__ */ new
|
|
2350
|
+
droppableContainers: /* @__PURE__ */ new nt(),
|
|
2351
2351
|
over: null,
|
|
2352
2352
|
dragOverlay: {
|
|
2353
2353
|
nodeRef: {
|
|
@@ -2374,7 +2374,7 @@ const fi = {
|
|
|
2374
2374
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2375
2375
|
over: null,
|
|
2376
2376
|
measureDroppableContainers: Ot
|
|
2377
|
-
}, Nt = /* @__PURE__ */
|
|
2377
|
+
}, Nt = /* @__PURE__ */ it(hi), hr = /* @__PURE__ */ it(fi);
|
|
2378
2378
|
function vi() {
|
|
2379
2379
|
return {
|
|
2380
2380
|
draggable: {
|
|
@@ -2390,7 +2390,7 @@ function vi() {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
},
|
|
2392
2392
|
droppable: {
|
|
2393
|
-
containers: new
|
|
2393
|
+
containers: new nt()
|
|
2394
2394
|
}
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
@@ -2438,7 +2438,7 @@ function gi(e, t) {
|
|
|
2438
2438
|
element: n
|
|
2439
2439
|
} = t, {
|
|
2440
2440
|
id: r
|
|
2441
|
-
} = n, o = new
|
|
2441
|
+
} = n, o = new nt(e.droppable.containers);
|
|
2442
2442
|
return o.set(r, n), {
|
|
2443
2443
|
...e,
|
|
2444
2444
|
droppable: {
|
|
@@ -2455,7 +2455,7 @@ function gi(e, t) {
|
|
|
2455
2455
|
} = t, i = e.droppable.containers.get(n);
|
|
2456
2456
|
if (!i || r !== i.key)
|
|
2457
2457
|
return e;
|
|
2458
|
-
const s = new
|
|
2458
|
+
const s = new nt(e.droppable.containers);
|
|
2459
2459
|
return s.set(n, {
|
|
2460
2460
|
...i,
|
|
2461
2461
|
disabled: o
|
|
@@ -2474,7 +2474,7 @@ function gi(e, t) {
|
|
|
2474
2474
|
} = t, o = e.droppable.containers.get(n);
|
|
2475
2475
|
if (!o || r !== o.key)
|
|
2476
2476
|
return e;
|
|
2477
|
-
const i = new
|
|
2477
|
+
const i = new nt(e.droppable.containers);
|
|
2478
2478
|
return i.delete(n), {
|
|
2479
2479
|
...e,
|
|
2480
2480
|
droppable: {
|
|
@@ -2587,15 +2587,15 @@ function xi(e) {
|
|
|
2587
2587
|
}
|
|
2588
2588
|
}, [t, s, a, r, n]);
|
|
2589
2589
|
}
|
|
2590
|
-
const vr = /* @__PURE__ */
|
|
2590
|
+
const vr = /* @__PURE__ */ it({
|
|
2591
2591
|
...ce,
|
|
2592
2592
|
scaleX: 1,
|
|
2593
2593
|
scaleY: 1
|
|
2594
2594
|
});
|
|
2595
|
-
var
|
|
2595
|
+
var _e;
|
|
2596
2596
|
(function(e) {
|
|
2597
2597
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2598
|
-
})(
|
|
2598
|
+
})(_e || (_e = {}));
|
|
2599
2599
|
const gr = /* @__PURE__ */ Nr(function(t) {
|
|
2600
2600
|
var n, r, o, i;
|
|
2601
2601
|
let {
|
|
@@ -2609,7 +2609,7 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2609
2609
|
modifiers: d,
|
|
2610
2610
|
...m
|
|
2611
2611
|
} = t;
|
|
2612
|
-
const g = Lr(gi, void 0, vi), [b, x] = g, [w, C] = fo(), [E, O] = re(
|
|
2612
|
+
const g = Lr(gi, void 0, vi), [b, x] = g, [w, C] = fo(), [E, O] = re(_e.Uninitialized), S = E === _e.Initialized, {
|
|
2613
2613
|
draggable: {
|
|
2614
2614
|
active: R,
|
|
2615
2615
|
nodes: D,
|
|
@@ -2629,7 +2629,7 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2629
2629
|
data: (U = N?.data) != null ? U : di,
|
|
2630
2630
|
rect: q
|
|
2631
2631
|
} : null;
|
|
2632
|
-
}, [R, N]), oe = M(null), [me, je] = re(null), [
|
|
2632
|
+
}, [R, N]), oe = M(null), [me, je] = re(null), [W, Ie] = re(null), ie = rt(m, Object.values(m)), we = dt("DndDescribedBy", s), v = A(() => $.getEnabled(), [$]), y = mi(p), {
|
|
2633
2633
|
droppableRects: T,
|
|
2634
2634
|
measureDroppableContainers: k,
|
|
2635
2635
|
measuringScheduled: ue
|
|
@@ -2637,7 +2637,7 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2637
2637
|
dragging: S,
|
|
2638
2638
|
dependencies: [P.x, P.y],
|
|
2639
2639
|
config: y.droppable
|
|
2640
|
-
}), Y = Jo(D, R), z = A(() =>
|
|
2640
|
+
}), Y = Jo(D, R), z = A(() => W ? en(W) : null, [W]), X = Ar(), Q = Qo(Y, y.draggable.measure);
|
|
2641
2641
|
xi({
|
|
2642
2642
|
activeNode: R != null ? D.get(R) : null,
|
|
2643
2643
|
config: X.layoutShiftCompensation,
|
|
@@ -2660,34 +2660,34 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2660
2660
|
scrollAdjustedTranslate: null
|
|
2661
2661
|
}), Ne = $.getNodeFor((n = de.current.over) == null ? void 0 : n.id), xe = ci({
|
|
2662
2662
|
measure: y.dragOverlay.measure
|
|
2663
|
-
}), Le = (r = xe.nodeRef.current) != null ? r : Y, Me = S ? (o = xe.rect) != null ? o : I : null, pn = !!(xe.nodeRef.current && xe.rect), bn = ni(pn ? null : I), Mt = fr(Le ? K(Le) : null),
|
|
2663
|
+
}), Le = (r = xe.nodeRef.current) != null ? r : Y, Me = S ? (o = xe.rect) != null ? o : I : null, pn = !!(xe.nodeRef.current && xe.rect), bn = ni(pn ? null : I), Mt = fr(Le ? K(Le) : null), Se = ri(S ? Ne ?? Y : null), ft = ai(Se), ht = bi(d, {
|
|
2664
2664
|
transform: {
|
|
2665
2665
|
x: P.x - bn.x,
|
|
2666
2666
|
y: P.y - bn.y,
|
|
2667
2667
|
scaleX: 1,
|
|
2668
2668
|
scaleY: 1
|
|
2669
2669
|
},
|
|
2670
|
-
activatorEvent:
|
|
2670
|
+
activatorEvent: W,
|
|
2671
2671
|
active: J,
|
|
2672
2672
|
activeNodeRect: I,
|
|
2673
2673
|
containerNodeRect: Ue,
|
|
2674
2674
|
draggingNodeRect: Me,
|
|
2675
2675
|
over: de.current.over,
|
|
2676
2676
|
overlayNodeRect: xe.rect,
|
|
2677
|
-
scrollableAncestors:
|
|
2678
|
-
scrollableAncestorRects:
|
|
2677
|
+
scrollableAncestors: Se,
|
|
2678
|
+
scrollableAncestorRects: ft,
|
|
2679
2679
|
windowRect: Mt
|
|
2680
|
-
}), mn = z ? Fe(z, P) : null, xn = oi(
|
|
2680
|
+
}), mn = z ? Fe(z, P) : null, xn = oi(Se), Er = Wn(xn), Dr = Wn(xn, [I]), Pe = Fe(ht, Er), ze = Me ? Do(Me, ht) : null, Ge = J && ze ? f({
|
|
2681
2681
|
active: J,
|
|
2682
2682
|
collisionRect: ze,
|
|
2683
2683
|
droppableRects: T,
|
|
2684
2684
|
droppableContainers: v,
|
|
2685
2685
|
pointerCoordinates: mn
|
|
2686
|
-
}) : null, yn = wo(Ge, "id"), [
|
|
2686
|
+
}) : null, yn = wo(Ge, "id"), [Re, wn] = re(null), _r = pn ? ht : Fe(ht, Dr), Or = Co(_r, (i = Re?.rect) != null ? i : null, I), Pt = M(null), Sn = G(
|
|
2687
2687
|
(U, ee) => {
|
|
2688
2688
|
let {
|
|
2689
2689
|
sensor: te,
|
|
2690
|
-
options:
|
|
2690
|
+
options: Ce
|
|
2691
2691
|
} = ee;
|
|
2692
2692
|
if (oe.current == null)
|
|
2693
2693
|
return;
|
|
@@ -2698,44 +2698,44 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2698
2698
|
active: oe.current,
|
|
2699
2699
|
activeNode: se,
|
|
2700
2700
|
event: ne,
|
|
2701
|
-
options:
|
|
2701
|
+
options: Ce,
|
|
2702
2702
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2703
2703
|
// otherwise they are frozen in time with the stale arguments
|
|
2704
2704
|
context: de,
|
|
2705
|
-
onAbort(
|
|
2706
|
-
if (!D.get(
|
|
2705
|
+
onAbort(H) {
|
|
2706
|
+
if (!D.get(H))
|
|
2707
2707
|
return;
|
|
2708
2708
|
const {
|
|
2709
2709
|
onDragAbort: he
|
|
2710
2710
|
} = ie.current, ye = {
|
|
2711
|
-
id:
|
|
2711
|
+
id: H
|
|
2712
2712
|
};
|
|
2713
2713
|
he?.(ye), w({
|
|
2714
2714
|
type: "onDragAbort",
|
|
2715
2715
|
event: ye
|
|
2716
2716
|
});
|
|
2717
2717
|
},
|
|
2718
|
-
onPending(
|
|
2719
|
-
if (!D.get(
|
|
2718
|
+
onPending(H, Ee, he, ye) {
|
|
2719
|
+
if (!D.get(H))
|
|
2720
2720
|
return;
|
|
2721
2721
|
const {
|
|
2722
2722
|
onDragPending: Xe
|
|
2723
|
-
} = ie.current,
|
|
2724
|
-
id:
|
|
2725
|
-
constraint:
|
|
2723
|
+
} = ie.current, De = {
|
|
2724
|
+
id: H,
|
|
2725
|
+
constraint: Ee,
|
|
2726
2726
|
initialCoordinates: he,
|
|
2727
2727
|
offset: ye
|
|
2728
2728
|
};
|
|
2729
|
-
Xe?.(
|
|
2729
|
+
Xe?.(De), w({
|
|
2730
2730
|
type: "onDragPending",
|
|
2731
|
-
event:
|
|
2731
|
+
event: De
|
|
2732
2732
|
});
|
|
2733
2733
|
},
|
|
2734
|
-
onStart(
|
|
2735
|
-
const
|
|
2736
|
-
if (
|
|
2734
|
+
onStart(H) {
|
|
2735
|
+
const Ee = oe.current;
|
|
2736
|
+
if (Ee == null)
|
|
2737
2737
|
return;
|
|
2738
|
-
const he = D.get(
|
|
2738
|
+
const he = D.get(Ee);
|
|
2739
2739
|
if (!he)
|
|
2740
2740
|
return;
|
|
2741
2741
|
const {
|
|
@@ -2743,33 +2743,33 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2743
2743
|
} = ie.current, qe = {
|
|
2744
2744
|
activatorEvent: ne,
|
|
2745
2745
|
active: {
|
|
2746
|
-
id:
|
|
2746
|
+
id: Ee,
|
|
2747
2747
|
data: he.data,
|
|
2748
2748
|
rect: q
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
|
-
|
|
2752
|
-
ye?.(qe), O(
|
|
2751
|
+
vt(() => {
|
|
2752
|
+
ye?.(qe), O(_e.Initializing), x({
|
|
2753
2753
|
type: V.DragStart,
|
|
2754
|
-
initialCoordinates:
|
|
2755
|
-
active:
|
|
2754
|
+
initialCoordinates: H,
|
|
2755
|
+
active: Ee
|
|
2756
2756
|
}), w({
|
|
2757
2757
|
type: "onDragStart",
|
|
2758
2758
|
event: qe
|
|
2759
2759
|
}), je(Pt.current), Ie(ne);
|
|
2760
2760
|
});
|
|
2761
2761
|
},
|
|
2762
|
-
onMove(
|
|
2762
|
+
onMove(H) {
|
|
2763
2763
|
x({
|
|
2764
2764
|
type: V.DragMove,
|
|
2765
|
-
coordinates:
|
|
2765
|
+
coordinates: H
|
|
2766
2766
|
});
|
|
2767
2767
|
},
|
|
2768
2768
|
onEnd: $e(V.DragEnd),
|
|
2769
2769
|
onCancel: $e(V.DragCancel)
|
|
2770
2770
|
});
|
|
2771
2771
|
Pt.current = fe;
|
|
2772
|
-
function $e(
|
|
2772
|
+
function $e(H) {
|
|
2773
2773
|
return async function() {
|
|
2774
2774
|
const {
|
|
2775
2775
|
active: he,
|
|
@@ -2777,29 +2777,29 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2777
2777
|
over: qe,
|
|
2778
2778
|
scrollAdjustedTranslate: Xe
|
|
2779
2779
|
} = de.current;
|
|
2780
|
-
let
|
|
2780
|
+
let De = null;
|
|
2781
2781
|
if (he && Xe) {
|
|
2782
2782
|
const {
|
|
2783
2783
|
cancelDrop: Je
|
|
2784
2784
|
} = ie.current;
|
|
2785
|
-
|
|
2785
|
+
De = {
|
|
2786
2786
|
activatorEvent: ne,
|
|
2787
2787
|
active: he,
|
|
2788
2788
|
collisions: ye,
|
|
2789
2789
|
delta: Xe,
|
|
2790
2790
|
over: qe
|
|
2791
|
-
},
|
|
2791
|
+
}, H === V.DragEnd && typeof Je == "function" && await Promise.resolve(Je(De)) && (H = V.DragCancel);
|
|
2792
2792
|
}
|
|
2793
|
-
oe.current = null,
|
|
2793
|
+
oe.current = null, vt(() => {
|
|
2794
2794
|
x({
|
|
2795
|
-
type:
|
|
2796
|
-
}), O(
|
|
2797
|
-
const Je =
|
|
2798
|
-
if (
|
|
2795
|
+
type: H
|
|
2796
|
+
}), O(_e.Uninitialized), wn(null), je(null), Ie(null), Pt.current = null;
|
|
2797
|
+
const Je = H === V.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2798
|
+
if (De) {
|
|
2799
2799
|
const zt = ie.current[Je];
|
|
2800
|
-
zt?.(
|
|
2800
|
+
zt?.(De), w({
|
|
2801
2801
|
type: Je,
|
|
2802
|
-
event:
|
|
2802
|
+
event: De
|
|
2803
2803
|
});
|
|
2804
2804
|
}
|
|
2805
2805
|
});
|
|
@@ -2808,8 +2808,8 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2808
2808
|
},
|
|
2809
2809
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2810
2810
|
[D]
|
|
2811
|
-
), Tr = G((U, ee) => (te,
|
|
2812
|
-
const se = te.nativeEvent, ne = D.get(
|
|
2811
|
+
), Tr = G((U, ee) => (te, Ce) => {
|
|
2812
|
+
const se = te.nativeEvent, ne = D.get(Ce);
|
|
2813
2813
|
if (
|
|
2814
2814
|
// Another sensor is already instantiating
|
|
2815
2815
|
oe.current !== null || // No active draggable
|
|
@@ -2822,10 +2822,10 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2822
2822
|
};
|
|
2823
2823
|
U(te, ee.options, fe) === !0 && (se.dndKit = {
|
|
2824
2824
|
capturedBy: ee.sensor
|
|
2825
|
-
}, oe.current =
|
|
2825
|
+
}, oe.current = Ce, Sn(te, ee));
|
|
2826
2826
|
}, [D, Sn]), Rn = Ko(h, Tr);
|
|
2827
2827
|
ii(h), pe(() => {
|
|
2828
|
-
I && E ===
|
|
2828
|
+
I && E === _e.Initializing && O(_e.Initialized);
|
|
2829
2829
|
}, [I, E]), L(
|
|
2830
2830
|
() => {
|
|
2831
2831
|
const {
|
|
@@ -2833,7 +2833,7 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2833
2833
|
} = ie.current, {
|
|
2834
2834
|
active: ee,
|
|
2835
2835
|
activatorEvent: te,
|
|
2836
|
-
collisions:
|
|
2836
|
+
collisions: Ce,
|
|
2837
2837
|
over: se
|
|
2838
2838
|
} = de.current;
|
|
2839
2839
|
if (!ee || !te)
|
|
@@ -2841,14 +2841,14 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2841
2841
|
const ne = {
|
|
2842
2842
|
active: ee,
|
|
2843
2843
|
activatorEvent: te,
|
|
2844
|
-
collisions:
|
|
2844
|
+
collisions: Ce,
|
|
2845
2845
|
delta: {
|
|
2846
2846
|
x: Pe.x,
|
|
2847
2847
|
y: Pe.y
|
|
2848
2848
|
},
|
|
2849
2849
|
over: se
|
|
2850
2850
|
};
|
|
2851
|
-
|
|
2851
|
+
vt(() => {
|
|
2852
2852
|
U?.(ne), w({
|
|
2853
2853
|
type: "onDragMove",
|
|
2854
2854
|
event: ne
|
|
@@ -2863,19 +2863,19 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2863
2863
|
active: U,
|
|
2864
2864
|
activatorEvent: ee,
|
|
2865
2865
|
collisions: te,
|
|
2866
|
-
droppableContainers:
|
|
2866
|
+
droppableContainers: Ce,
|
|
2867
2867
|
scrollAdjustedTranslate: se
|
|
2868
2868
|
} = de.current;
|
|
2869
2869
|
if (!U || oe.current == null || !ee || !se)
|
|
2870
2870
|
return;
|
|
2871
2871
|
const {
|
|
2872
2872
|
onDragOver: ne
|
|
2873
|
-
} = ie.current, fe =
|
|
2873
|
+
} = ie.current, fe = Ce.get(yn), $e = fe && fe.rect.current ? {
|
|
2874
2874
|
id: fe.id,
|
|
2875
2875
|
rect: fe.rect.current,
|
|
2876
2876
|
data: fe.data,
|
|
2877
2877
|
disabled: fe.disabled
|
|
2878
|
-
} : null,
|
|
2878
|
+
} : null, H = {
|
|
2879
2879
|
active: U,
|
|
2880
2880
|
activatorEvent: ee,
|
|
2881
2881
|
collisions: te,
|
|
@@ -2885,10 +2885,10 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2885
2885
|
},
|
|
2886
2886
|
over: $e
|
|
2887
2887
|
};
|
|
2888
|
-
|
|
2889
|
-
wn($e), ne?.(
|
|
2888
|
+
vt(() => {
|
|
2889
|
+
wn($e), ne?.(H), w({
|
|
2890
2890
|
type: "onDragOver",
|
|
2891
|
-
event:
|
|
2891
|
+
event: H
|
|
2892
2892
|
});
|
|
2893
2893
|
});
|
|
2894
2894
|
},
|
|
@@ -2896,7 +2896,7 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2896
2896
|
[yn]
|
|
2897
2897
|
), pe(() => {
|
|
2898
2898
|
de.current = {
|
|
2899
|
-
activatorEvent:
|
|
2899
|
+
activatorEvent: W,
|
|
2900
2900
|
active: J,
|
|
2901
2901
|
activeNode: Y,
|
|
2902
2902
|
collisionRect: ze,
|
|
@@ -2906,52 +2906,52 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2906
2906
|
draggingNode: Le,
|
|
2907
2907
|
draggingNodeRect: Me,
|
|
2908
2908
|
droppableContainers: $,
|
|
2909
|
-
over:
|
|
2910
|
-
scrollableAncestors:
|
|
2909
|
+
over: Re,
|
|
2910
|
+
scrollableAncestors: Se,
|
|
2911
2911
|
scrollAdjustedTranslate: Pe
|
|
2912
2912
|
}, q.current = {
|
|
2913
2913
|
initial: Me,
|
|
2914
2914
|
translated: ze
|
|
2915
2915
|
};
|
|
2916
|
-
}, [J, Y, Ge, ze, D, Le, Me, T, $,
|
|
2916
|
+
}, [J, Y, Ge, ze, D, Le, Me, T, $, Re, Se, Pe]), Go({
|
|
2917
2917
|
...X,
|
|
2918
2918
|
delta: P,
|
|
2919
2919
|
draggingRect: ze,
|
|
2920
2920
|
pointerCoordinates: mn,
|
|
2921
|
-
scrollableAncestors:
|
|
2922
|
-
scrollableAncestorRects:
|
|
2921
|
+
scrollableAncestors: Se,
|
|
2922
|
+
scrollableAncestorRects: ft
|
|
2923
2923
|
});
|
|
2924
2924
|
const jr = A(() => ({
|
|
2925
2925
|
active: J,
|
|
2926
2926
|
activeNode: Y,
|
|
2927
2927
|
activeNodeRect: I,
|
|
2928
|
-
activatorEvent:
|
|
2928
|
+
activatorEvent: W,
|
|
2929
2929
|
collisions: Ge,
|
|
2930
2930
|
containerNodeRect: Ue,
|
|
2931
2931
|
dragOverlay: xe,
|
|
2932
2932
|
draggableNodes: D,
|
|
2933
2933
|
droppableContainers: $,
|
|
2934
2934
|
droppableRects: T,
|
|
2935
|
-
over:
|
|
2935
|
+
over: Re,
|
|
2936
2936
|
measureDroppableContainers: k,
|
|
2937
|
-
scrollableAncestors:
|
|
2938
|
-
scrollableAncestorRects:
|
|
2937
|
+
scrollableAncestors: Se,
|
|
2938
|
+
scrollableAncestorRects: ft,
|
|
2939
2939
|
measuringConfiguration: y,
|
|
2940
2940
|
measuringScheduled: ue,
|
|
2941
2941
|
windowRect: Mt
|
|
2942
|
-
}), [J, Y, I,
|
|
2943
|
-
activatorEvent:
|
|
2942
|
+
}), [J, Y, I, W, Ge, Ue, xe, D, $, T, Re, k, Se, ft, y, ue, Mt]), Ir = A(() => ({
|
|
2943
|
+
activatorEvent: W,
|
|
2944
2944
|
activators: Rn,
|
|
2945
2945
|
active: J,
|
|
2946
2946
|
activeNodeRect: I,
|
|
2947
2947
|
ariaDescribedById: {
|
|
2948
|
-
draggable:
|
|
2948
|
+
draggable: we
|
|
2949
2949
|
},
|
|
2950
2950
|
dispatch: x,
|
|
2951
2951
|
draggableNodes: D,
|
|
2952
|
-
over:
|
|
2952
|
+
over: Re,
|
|
2953
2953
|
measureDroppableContainers: k
|
|
2954
|
-
}), [
|
|
2954
|
+
}), [W, Rn, J, I, x, we, D, Re, k]);
|
|
2955
2955
|
return F.createElement(er.Provider, {
|
|
2956
2956
|
value: C
|
|
2957
2957
|
}, F.createElement(Nt.Provider, {
|
|
@@ -2964,7 +2964,7 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2964
2964
|
disabled: a?.restoreFocus === !1
|
|
2965
2965
|
})), F.createElement(go, {
|
|
2966
2966
|
...a,
|
|
2967
|
-
hiddenTextDescribedById:
|
|
2967
|
+
hiddenTextDescribedById: we
|
|
2968
2968
|
}));
|
|
2969
2969
|
function Ar() {
|
|
2970
2970
|
const U = me?.autoScrollEnabled === !1, ee = typeof c == "object" ? c.enabled === !1 : c === !1, te = S && !U && !ee;
|
|
@@ -2975,7 +2975,7 @@ const gr = /* @__PURE__ */ Nr(function(t) {
|
|
|
2975
2975
|
enabled: te
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
|
-
}), yi = /* @__PURE__ */
|
|
2978
|
+
}), yi = /* @__PURE__ */ it(null), Un = "button", wi = "Draggable";
|
|
2979
2979
|
function Si(e) {
|
|
2980
2980
|
let {
|
|
2981
2981
|
id: t,
|
|
@@ -2983,7 +2983,7 @@ function Si(e) {
|
|
|
2983
2983
|
disabled: r = !1,
|
|
2984
2984
|
attributes: o
|
|
2985
2985
|
} = e;
|
|
2986
|
-
const i =
|
|
2986
|
+
const i = dt(wi), {
|
|
2987
2987
|
activators: s,
|
|
2988
2988
|
activatorEvent: a,
|
|
2989
2989
|
active: c,
|
|
@@ -2995,7 +2995,7 @@ function Si(e) {
|
|
|
2995
2995
|
role: d = Un,
|
|
2996
2996
|
roleDescription: m = "draggable",
|
|
2997
2997
|
tabIndex: g = 0
|
|
2998
|
-
} = o ?? {}, b = c?.id === t, x = Ae(b ? vr : yi), [w, C] = Dt(), [E, O] = Dt(), S = si(s, t), R =
|
|
2998
|
+
} = o ?? {}, b = c?.id === t, x = Ae(b ? vr : yi), [w, C] = Dt(), [E, O] = Dt(), S = si(s, t), R = rt(n);
|
|
2999
2999
|
pe(
|
|
3000
3000
|
() => (f.set(t, {
|
|
3001
3001
|
id: t,
|
|
@@ -3045,7 +3045,7 @@ function Di(e) {
|
|
|
3045
3045
|
id: r,
|
|
3046
3046
|
resizeObserverConfig: o
|
|
3047
3047
|
} = e;
|
|
3048
|
-
const i =
|
|
3048
|
+
const i = dt(Ci), {
|
|
3049
3049
|
active: s,
|
|
3050
3050
|
dispatch: a,
|
|
3051
3051
|
over: c,
|
|
@@ -3059,7 +3059,7 @@ function Di(e) {
|
|
|
3059
3059
|
} = {
|
|
3060
3060
|
...Ei,
|
|
3061
3061
|
...o
|
|
3062
|
-
}, x =
|
|
3062
|
+
}, x = rt(g ?? r), w = G(
|
|
3063
3063
|
() => {
|
|
3064
3064
|
if (!f.current) {
|
|
3065
3065
|
f.current = !0;
|
|
@@ -3076,7 +3076,7 @@ function Di(e) {
|
|
|
3076
3076
|
disabled: m || !s
|
|
3077
3077
|
}), E = G((D, P) => {
|
|
3078
3078
|
C && (P && (C.unobserve(P), f.current = !1), D && C.observe(D));
|
|
3079
|
-
}, [C]), [O, S] = Dt(E), R =
|
|
3079
|
+
}, [C]), [O, S] = Dt(E), R = rt(t);
|
|
3080
3080
|
return L(() => {
|
|
3081
3081
|
!C || !O.current || (C.disconnect(), f.current = !1, C.observe(O.current));
|
|
3082
3082
|
}, [O, C]), L(
|
|
@@ -3123,7 +3123,7 @@ function _i(e, t) {
|
|
|
3123
3123
|
return i && (n[o] = i), n;
|
|
3124
3124
|
}, Array(e.length));
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function xt(e) {
|
|
3127
3127
|
return e !== null && e >= 0;
|
|
3128
3128
|
}
|
|
3129
3129
|
function Oi(e, t) {
|
|
@@ -3142,7 +3142,7 @@ function Ti(e) {
|
|
|
3142
3142
|
droppable: e
|
|
3143
3143
|
} : e;
|
|
3144
3144
|
}
|
|
3145
|
-
const
|
|
3145
|
+
const yt = {
|
|
3146
3146
|
scaleX: 1,
|
|
3147
3147
|
scaleY: 1
|
|
3148
3148
|
}, ji = (e) => {
|
|
@@ -3163,21 +3163,21 @@ const wt = {
|
|
|
3163
3163
|
return l ? {
|
|
3164
3164
|
x: o < i ? l.left + l.width - (a.left + a.width) : l.left - a.left,
|
|
3165
3165
|
y: 0,
|
|
3166
|
-
...
|
|
3166
|
+
...yt
|
|
3167
3167
|
} : null;
|
|
3168
3168
|
}
|
|
3169
3169
|
return s > o && s <= i ? {
|
|
3170
3170
|
x: -a.width - c,
|
|
3171
3171
|
y: 0,
|
|
3172
|
-
...
|
|
3172
|
+
...yt
|
|
3173
3173
|
} : s < o && s >= i ? {
|
|
3174
3174
|
x: a.width + c,
|
|
3175
3175
|
y: 0,
|
|
3176
|
-
...
|
|
3176
|
+
...yt
|
|
3177
3177
|
} : {
|
|
3178
3178
|
x: 0,
|
|
3179
3179
|
y: 0,
|
|
3180
|
-
...
|
|
3180
|
+
...yt
|
|
3181
3181
|
};
|
|
3182
3182
|
};
|
|
3183
3183
|
function Ii(e, t, n) {
|
|
@@ -3198,7 +3198,7 @@ const pr = (e) => {
|
|
|
3198
3198
|
scaleX: a.width / s.width,
|
|
3199
3199
|
scaleY: a.height / s.height
|
|
3200
3200
|
};
|
|
3201
|
-
},
|
|
3201
|
+
}, wt = {
|
|
3202
3202
|
scaleX: 1,
|
|
3203
3203
|
scaleY: 1
|
|
3204
3204
|
}, Ai = (e) => {
|
|
@@ -3218,22 +3218,22 @@ const pr = (e) => {
|
|
|
3218
3218
|
return l ? {
|
|
3219
3219
|
x: 0,
|
|
3220
3220
|
y: n < s ? l.top + l.height - (a.top + a.height) : l.top - a.top,
|
|
3221
|
-
...
|
|
3221
|
+
...wt
|
|
3222
3222
|
} : null;
|
|
3223
3223
|
}
|
|
3224
3224
|
const c = ki(i, o, n);
|
|
3225
3225
|
return o > n && o <= s ? {
|
|
3226
3226
|
x: 0,
|
|
3227
3227
|
y: -a.height - c,
|
|
3228
|
-
...
|
|
3228
|
+
...wt
|
|
3229
3229
|
} : o < n && o >= s ? {
|
|
3230
3230
|
x: 0,
|
|
3231
3231
|
y: a.height + c,
|
|
3232
|
-
...
|
|
3232
|
+
...wt
|
|
3233
3233
|
} : {
|
|
3234
3234
|
x: 0,
|
|
3235
3235
|
y: 0,
|
|
3236
|
-
...
|
|
3236
|
+
...wt
|
|
3237
3237
|
};
|
|
3238
3238
|
};
|
|
3239
3239
|
function ki(e, t, n) {
|
|
@@ -3268,7 +3268,7 @@ function xr(e) {
|
|
|
3268
3268
|
droppableRects: c,
|
|
3269
3269
|
over: l,
|
|
3270
3270
|
measureDroppableContainers: h
|
|
3271
|
-
} = Ri(), f =
|
|
3271
|
+
} = Ri(), f = dt(br, n), p = a.rect !== null, d = A(() => r.map((S) => typeof S == "object" && "id" in S ? S.id : S), [r]), m = s != null, g = s ? d.indexOf(s.id) : -1, b = l ? d.indexOf(l.id) : -1, x = M(d), w = !Oi(d, x.current), C = b !== -1 && g === -1 || w, E = Ti(i);
|
|
3272
3272
|
pe(() => {
|
|
3273
3273
|
w && m && h(d);
|
|
3274
3274
|
}, [w, d, m, h]), L(() => {
|
|
@@ -3401,10 +3401,10 @@ function wr(e) {
|
|
|
3401
3401
|
attributes: oe,
|
|
3402
3402
|
setNodeRef: me,
|
|
3403
3403
|
listeners: je,
|
|
3404
|
-
isDragging:
|
|
3404
|
+
isDragging: W,
|
|
3405
3405
|
over: Ie,
|
|
3406
3406
|
setActivatorNodeRef: ie,
|
|
3407
|
-
transform:
|
|
3407
|
+
transform: we
|
|
3408
3408
|
} = Si({
|
|
3409
3409
|
id: s,
|
|
3410
3410
|
data: O,
|
|
@@ -3413,13 +3413,13 @@ function wr(e) {
|
|
|
3413
3413
|
...n
|
|
3414
3414
|
},
|
|
3415
3415
|
disabled: C.draggable
|
|
3416
|
-
}), v = to($, me), y = !!N, T = y && !m &&
|
|
3416
|
+
}), v = to($, me), y = !!N, T = y && !m && xt(p) && xt(b), k = !x && W, ue = k && T ? we : null, z = T ? ue ?? (a ?? w)({
|
|
3417
3417
|
rects: g,
|
|
3418
3418
|
activeNodeRect: J,
|
|
3419
3419
|
activeIndex: p,
|
|
3420
3420
|
overIndex: b,
|
|
3421
3421
|
index: E
|
|
3422
|
-
}) : null, X =
|
|
3422
|
+
}) : null, X = xt(p) && xt(b) ? i({
|
|
3423
3423
|
id: s,
|
|
3424
3424
|
items: h,
|
|
3425
3425
|
activeIndex: p,
|
|
@@ -3432,7 +3432,7 @@ function wr(e) {
|
|
|
3432
3432
|
}), Ue = h !== I.current.items, de = t({
|
|
3433
3433
|
active: N,
|
|
3434
3434
|
containerId: f,
|
|
3435
|
-
isDragging:
|
|
3435
|
+
isDragging: W,
|
|
3436
3436
|
isSorting: y,
|
|
3437
3437
|
id: s,
|
|
3438
3438
|
index: E,
|
|
@@ -3472,7 +3472,7 @@ function wr(e) {
|
|
|
3472
3472
|
items: h,
|
|
3473
3473
|
isOver: P,
|
|
3474
3474
|
isSorting: y,
|
|
3475
|
-
isDragging:
|
|
3475
|
+
isDragging: W,
|
|
3476
3476
|
listeners: je,
|
|
3477
3477
|
node: D,
|
|
3478
3478
|
overIndex: b,
|
|
@@ -3516,12 +3516,12 @@ const Fi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bi = (
|
|
|
3516
3516
|
), Gn = (e) => {
|
|
3517
3517
|
const t = Bi(e);
|
|
3518
3518
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3519
|
-
}, Sr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
3519
|
+
}, Sr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Hi = (e) => {
|
|
3520
3520
|
for (const t in e)
|
|
3521
3521
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3522
3522
|
return !0;
|
|
3523
3523
|
};
|
|
3524
|
-
var
|
|
3524
|
+
var Wi = {
|
|
3525
3525
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3526
3526
|
width: 24,
|
|
3527
3527
|
height: 24,
|
|
@@ -3546,13 +3546,13 @@ const Yi = on(
|
|
|
3546
3546
|
"svg",
|
|
3547
3547
|
{
|
|
3548
3548
|
ref: c,
|
|
3549
|
-
...
|
|
3549
|
+
...Wi,
|
|
3550
3550
|
width: t,
|
|
3551
3551
|
height: t,
|
|
3552
3552
|
stroke: e,
|
|
3553
3553
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3554
3554
|
className: Sr("lucide", o),
|
|
3555
|
-
...!i && !
|
|
3555
|
+
...!i && !Hi(a) && { "aria-hidden": "true" },
|
|
3556
3556
|
...a
|
|
3557
3557
|
},
|
|
3558
3558
|
[
|
|
@@ -3696,10 +3696,10 @@ function ys(e) {
|
|
|
3696
3696
|
};
|
|
3697
3697
|
});
|
|
3698
3698
|
}
|
|
3699
|
-
const ws = _(
|
|
3699
|
+
const ws = _(st.Trigger), Ss = _(st.Positioner), Rs = _(st.Content), Cs = _(st.Item), Es = _(ke.Label), Ds = _(ke.HiddenInput), _s = _(ke.Control);
|
|
3700
3700
|
function Os({ visibility: e, onToggle: t }) {
|
|
3701
|
-
const { sortebleColumns: n } =
|
|
3702
|
-
return /* @__PURE__ */ u.jsxs(
|
|
3701
|
+
const { sortebleColumns: n } = lt(Te);
|
|
3702
|
+
return /* @__PURE__ */ u.jsxs(st.Root, { closeOnSelect: !1, children: [
|
|
3703
3703
|
/* @__PURE__ */ u.jsx(ws, { asChild: !0, children: /* @__PURE__ */ u.jsx(Ve, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ u.jsx(is, { size: 18 }) }) }),
|
|
3704
3704
|
/* @__PURE__ */ u.jsx(sn, { children: /* @__PURE__ */ u.jsx(Ss, { children: /* @__PURE__ */ u.jsx(Rs, { minW: "220px", children: n.map((r) => {
|
|
3705
3705
|
const o = !!e[r.id];
|
|
@@ -3760,7 +3760,7 @@ function As({
|
|
|
3760
3760
|
);
|
|
3761
3761
|
}
|
|
3762
3762
|
function ks() {
|
|
3763
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortebleColumns: o } =
|
|
3763
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortebleColumns: o } = lt(Te);
|
|
3764
3764
|
console.log(e, "fomr header");
|
|
3765
3765
|
const i = e.map((a) => o.find((c) => c.id === a)).filter((a) => t[a.id]), s = (a) => {
|
|
3766
3766
|
const { active: c, over: l } = a;
|
|
@@ -3768,7 +3768,7 @@ function ks() {
|
|
|
3768
3768
|
const h = e.indexOf(c.id), f = e.indexOf(l.id);
|
|
3769
3769
|
Ts(Lt(e, h, f));
|
|
3770
3770
|
};
|
|
3771
|
-
return /* @__PURE__ */ u.jsx(ve.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ u.jsx(gr, { collisionDetection: tr, onDragEnd: s, children: /* @__PURE__ */ u.jsx(xr, { items: e, strategy: ji, children: /* @__PURE__ */ u.jsxs(ve.Row, { children: [
|
|
3771
|
+
return /* @__PURE__ */ u.jsx(ve.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ u.jsx(gr, { collisionDetection: tr, onDragEnd: s, children: /* @__PURE__ */ u.jsx(xr, { items: e, strategy: ji, children: /* @__PURE__ */ u.jsxs(ve.Row, { height: "28px", children: [
|
|
3772
3772
|
i.map((a, c) => {
|
|
3773
3773
|
const l = n === a?.id, h = c === i.length - 1;
|
|
3774
3774
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -3808,7 +3808,7 @@ const qn = Mr({
|
|
|
3808
3808
|
{ label: "50", value: "50" },
|
|
3809
3809
|
{ label: "100", value: "100" }
|
|
3810
3810
|
]
|
|
3811
|
-
}), Ns = _(le.Positioner), Ls = _(le.Content), Ms = _(le.Item), Ps = _(Ct.PrevTrigger), zs = _(Ct.NextTrigger), $s = _(le.HiddenSelect), Vs = _(le.Control), Fs = _(le.Trigger), Bs = _(le.ValueText),
|
|
3811
|
+
}), Ns = _(le.Positioner), Ls = _(le.Content), Ms = _(le.Item), Ps = _(Ct.PrevTrigger), zs = _(Ct.NextTrigger), $s = _(le.HiddenSelect), Vs = _(le.Control), Fs = _(le.Trigger), Bs = _(le.ValueText), Hs = _(le.IndicatorGroup), Ws = _(le.Indicator);
|
|
3812
3812
|
function Ys({
|
|
3813
3813
|
totalCount: e,
|
|
3814
3814
|
pageSize: t,
|
|
@@ -3817,9 +3817,9 @@ function Ys({
|
|
|
3817
3817
|
onPageSizeChange: o,
|
|
3818
3818
|
siblingCount: i = 2
|
|
3819
3819
|
}) {
|
|
3820
|
-
return /* @__PURE__ */ u.jsx(
|
|
3820
|
+
return /* @__PURE__ */ u.jsx(St, { width: "100%", children: /* @__PURE__ */ u.jsxs(ge, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3821
3821
|
/* @__PURE__ */ u.jsxs(ge, { children: [
|
|
3822
|
-
/* @__PURE__ */ u.jsx(
|
|
3822
|
+
/* @__PURE__ */ u.jsx(Oe, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3823
3823
|
/* @__PURE__ */ u.jsxs(
|
|
3824
3824
|
le.Root,
|
|
3825
3825
|
{
|
|
@@ -3832,7 +3832,7 @@ function Ys({
|
|
|
3832
3832
|
/* @__PURE__ */ u.jsx($s, {}),
|
|
3833
3833
|
/* @__PURE__ */ u.jsxs(Vs, { children: [
|
|
3834
3834
|
/* @__PURE__ */ u.jsx(Fs, { children: /* @__PURE__ */ u.jsx(Bs, { placeholder: "" }) }),
|
|
3835
|
-
/* @__PURE__ */ u.jsx(
|
|
3835
|
+
/* @__PURE__ */ u.jsx(Hs, { children: /* @__PURE__ */ u.jsx(Ws, {}) })
|
|
3836
3836
|
] }),
|
|
3837
3837
|
/* @__PURE__ */ u.jsx(sn, { children: /* @__PURE__ */ u.jsx(Ns, { children: /* @__PURE__ */ u.jsx(Ls, { children: qn.items.map((s) => /* @__PURE__ */ u.jsxs(Ms, { item: s.value, children: [
|
|
3838
3838
|
s.label,
|
|
@@ -3875,7 +3875,7 @@ function Ys({
|
|
|
3875
3875
|
function Us({
|
|
3876
3876
|
data: e = []
|
|
3877
3877
|
}) {
|
|
3878
|
-
const { columnOrder: t, visibility: n } =
|
|
3878
|
+
const { columnOrder: t, visibility: n } = lt(Te);
|
|
3879
3879
|
return /* @__PURE__ */ u.jsx(ve.Body, { children: e.map((r) => /* @__PURE__ */ u.jsxs(ve.Row, { children: [
|
|
3880
3880
|
t.filter((o) => n[o]).map((o) => /* @__PURE__ */ u.jsx(ve.Cell, { children: r[o] }, o)),
|
|
3881
3881
|
/* @__PURE__ */ u.jsxs(ve.Cell, { textAlign: "center", display: "flex", gap: 2, children: [
|
|
@@ -3901,7 +3901,7 @@ function wa({
|
|
|
3901
3901
|
A(() => {
|
|
3902
3902
|
ys(e);
|
|
3903
3903
|
}, [e]);
|
|
3904
|
-
const { sortColumn: f, sortDirection: p, data: d } =
|
|
3904
|
+
const { sortColumn: f, sortDirection: p, data: d } = lt(Te), m = A(() => {
|
|
3905
3905
|
const g = [...d];
|
|
3906
3906
|
f && g.sort(
|
|
3907
3907
|
(x, w) => p === "asc" ? String(x[f]).localeCompare(String(w[f])) : String(w[f]).localeCompare(String(x[f]))
|
|
@@ -3909,12 +3909,12 @@ function wa({
|
|
|
3909
3909
|
const b = (i - 1) * s;
|
|
3910
3910
|
return g.slice(b, b + s);
|
|
3911
3911
|
}, [i, s, f, p]);
|
|
3912
|
-
return /* @__PURE__ */ u.jsxs(
|
|
3913
|
-
/* @__PURE__ */ u.jsx(
|
|
3912
|
+
return /* @__PURE__ */ u.jsxs(St, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
3913
|
+
/* @__PURE__ */ u.jsx(St, { flex: "1", minHeight: 0, overflow: "auto", children: /* @__PURE__ */ u.jsxs(ve.Root, { variant: "outline", w: "100%", size: h, children: [
|
|
3914
3914
|
/* @__PURE__ */ u.jsx(ks, {}),
|
|
3915
3915
|
/* @__PURE__ */ u.jsx(Us, { data: m })
|
|
3916
|
-
] }) })
|
|
3917
|
-
/* @__PURE__ */ u.jsx(
|
|
3916
|
+
] }) }),
|
|
3917
|
+
/* @__PURE__ */ u.jsx(St, { mt: 0.5, children: /* @__PURE__ */ u.jsx(
|
|
3918
3918
|
Ys,
|
|
3919
3919
|
{
|
|
3920
3920
|
totalCount: e.length,
|
|
@@ -3955,7 +3955,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
3955
3955
|
}, Xs = (e, t) => {
|
|
3956
3956
|
const n = [t, ...gn(e)];
|
|
3957
3957
|
Cr(e, n);
|
|
3958
|
-
}, Js = _(ke.Root), Ks = _(ke.HiddenInput), Zs = _(ke.Control), Qs = _(
|
|
3958
|
+
}, Js = _(ke.Root), Ks = _(ke.HiddenInput), Zs = _(ke.Control), Qs = _(at.Root), ea = _(at.Track), ta = _(at.Range), na = _(at.Thumbs), ra = _(at.Control), oa = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
3959
3959
|
const { attributes: r, listeners: o, setNodeRef: i, transform: s, transition: a } = wr({
|
|
3960
3960
|
id: e.id
|
|
3961
3961
|
}), c = {
|
|
@@ -3964,7 +3964,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
3964
3964
|
cursor: "grab"
|
|
3965
3965
|
};
|
|
3966
3966
|
return /* @__PURE__ */ u.jsxs(
|
|
3967
|
-
|
|
3967
|
+
Qe,
|
|
3968
3968
|
{
|
|
3969
3969
|
ref: i,
|
|
3970
3970
|
style: c,
|
|
@@ -3977,9 +3977,9 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
3977
3977
|
...r,
|
|
3978
3978
|
...o,
|
|
3979
3979
|
children: [
|
|
3980
|
-
/* @__PURE__ */ u.jsx(
|
|
3980
|
+
/* @__PURE__ */ u.jsx(Oe, { fontWeight: "bold", children: e.label }),
|
|
3981
3981
|
/* @__PURE__ */ u.jsxs(ge, { justify: "space-between", children: [
|
|
3982
|
-
/* @__PURE__ */ u.jsx(
|
|
3982
|
+
/* @__PURE__ */ u.jsx(Oe, { fontSize: "sm", children: "Visible" }),
|
|
3983
3983
|
/* @__PURE__ */ u.jsxs(
|
|
3984
3984
|
Js,
|
|
3985
3985
|
{
|
|
@@ -3993,8 +3993,8 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
3993
3993
|
}
|
|
3994
3994
|
)
|
|
3995
3995
|
] }),
|
|
3996
|
-
/* @__PURE__ */ u.jsxs(
|
|
3997
|
-
/* @__PURE__ */ u.jsx(
|
|
3996
|
+
/* @__PURE__ */ u.jsxs(Qe, { align: "stretch", gap: 1, children: [
|
|
3997
|
+
/* @__PURE__ */ u.jsx(Oe, { fontSize: "sm", children: "Size" }),
|
|
3998
3998
|
/* @__PURE__ */ u.jsx(
|
|
3999
3999
|
Qs,
|
|
4000
4000
|
{
|
|
@@ -4026,7 +4026,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4026
4026
|
activePresetName: c,
|
|
4027
4027
|
onReorder: l
|
|
4028
4028
|
}) => {
|
|
4029
|
-
const f =
|
|
4029
|
+
const f = lt(jt)[i] ?? gn(i), p = () => {
|
|
4030
4030
|
const d = prompt("Preset name?");
|
|
4031
4031
|
d && Xs(i, {
|
|
4032
4032
|
id: crypto.randomUUID(),
|
|
@@ -4060,7 +4060,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4060
4060
|
] })
|
|
4061
4061
|
] }),
|
|
4062
4062
|
/* @__PURE__ */ u.jsx(Jt, { value: "view", children: o.filter((d) => d.visible).map((d) => /* @__PURE__ */ u.jsxs(
|
|
4063
|
-
|
|
4063
|
+
Qe,
|
|
4064
4064
|
{
|
|
4065
4065
|
align: "stretch",
|
|
4066
4066
|
border: "1px solid",
|
|
@@ -4069,7 +4069,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4069
4069
|
p: 3,
|
|
4070
4070
|
mb: 3,
|
|
4071
4071
|
children: [
|
|
4072
|
-
/* @__PURE__ */ u.jsx(
|
|
4072
|
+
/* @__PURE__ */ u.jsx(Oe, { fontWeight: "bold", children: d.label }),
|
|
4073
4073
|
d.customComponent
|
|
4074
4074
|
]
|
|
4075
4075
|
},
|
|
@@ -4103,9 +4103,9 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4103
4103
|
)
|
|
4104
4104
|
}
|
|
4105
4105
|
) }),
|
|
4106
|
-
/* @__PURE__ */ u.jsx(Jt, { value: "presets", children: /* @__PURE__ */ u.jsxs(
|
|
4106
|
+
/* @__PURE__ */ u.jsx(Jt, { value: "presets", children: /* @__PURE__ */ u.jsxs(Qe, { align: "stretch", mb: 3, children: [
|
|
4107
4107
|
/* @__PURE__ */ u.jsx($t, { size: "sm", colorScheme: "blue", onClick: p, children: "Save Current Filters" }),
|
|
4108
|
-
f.length === 0 && /* @__PURE__ */ u.jsx(
|
|
4108
|
+
f.length === 0 && /* @__PURE__ */ u.jsx(Oe, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4109
4109
|
f.map((d) => /* @__PURE__ */ u.jsxs(
|
|
4110
4110
|
ge,
|
|
4111
4111
|
{
|
|
@@ -4115,9 +4115,9 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4115
4115
|
rounded: "md",
|
|
4116
4116
|
p: 2,
|
|
4117
4117
|
children: [
|
|
4118
|
-
/* @__PURE__ */ u.jsxs(
|
|
4119
|
-
/* @__PURE__ */ u.jsx(
|
|
4120
|
-
/* @__PURE__ */ u.jsx(
|
|
4118
|
+
/* @__PURE__ */ u.jsxs(Qe, { align: "start", gap: 0, children: [
|
|
4119
|
+
/* @__PURE__ */ u.jsx(Oe, { fontWeight: "bold", fontSize: "sm", children: d.name }),
|
|
4120
|
+
/* @__PURE__ */ u.jsx(Oe, { fontSize: "xs", color: "gray.500", children: new Date(d.date).toLocaleDateString() })
|
|
4121
4121
|
] }),
|
|
4122
4122
|
/* @__PURE__ */ u.jsxs(ge, { children: [
|
|
4123
4123
|
/* @__PURE__ */ u.jsx(
|
|
@@ -4176,7 +4176,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4176
4176
|
activePresetName: h,
|
|
4177
4177
|
filterDrawerSize: f = "sm"
|
|
4178
4178
|
}) => /* @__PURE__ */ u.jsxs(ge, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4179
|
-
|
|
4179
|
+
e,
|
|
4180
4180
|
/* @__PURE__ */ u.jsxs(ge, { children: [
|
|
4181
4181
|
t.length > 0 && t.filter((p) => p.visible).map((p) => /* @__PURE__ */ u.jsx(ge, { children: p.customComponent }, p.id)),
|
|
4182
4182
|
/* @__PURE__ */ u.jsx(
|