@mdspl/mds-shared-ui 0.3.0 → 0.3.2
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 +3 -3
- package/dist/index.d.ts +19 -12
- package/dist/index.js +539 -468
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Menu as
|
|
1
|
+
import B, { useLayoutEffect as Qr, useEffect as A, useRef as N, useMemo as M, useCallback as J, useState as G, createContext as ht, memo as eo, useReducer as to, useContext as ze, forwardRef as hn, createElement as sn } from "react";
|
|
2
|
+
import { Menu as Ce, Checkbox as pe, IconButton as we, Portal as gt, Table as ye, HStack as ne, createListCollection as cr, Select as z, Pagination as At, Box as Ge, Text as U, ButtonGroup as no, Popover as zt, InputGroup as ur, InputElement as An, PopoverArrow as ro, VStack as _e, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Re, Tabs as Ft, Button as Tt, CloseButton as oo } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as St, createPortal as so } from "react-dom";
|
|
4
4
|
var Ct = { exports: {} }, ot = {};
|
|
5
|
-
var
|
|
5
|
+
var Mn;
|
|
6
6
|
function io() {
|
|
7
|
-
if (
|
|
8
|
-
|
|
7
|
+
if (Mn) return ot;
|
|
8
|
+
Mn = 1;
|
|
9
9
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
10
10
|
function n(r, o, s) {
|
|
11
11
|
var i = null;
|
|
@@ -25,9 +25,9 @@ function io() {
|
|
|
25
25
|
return ot.Fragment = t, ot.jsx = n, ot.jsxs = n, ot;
|
|
26
26
|
}
|
|
27
27
|
var st = {};
|
|
28
|
-
var
|
|
28
|
+
var Nn;
|
|
29
29
|
function ao() {
|
|
30
|
-
return
|
|
30
|
+
return Nn || (Nn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
31
31
|
function e(p) {
|
|
32
32
|
if (p == null) return null;
|
|
33
33
|
if (typeof p == "function")
|
|
@@ -110,7 +110,7 @@ function ao() {
|
|
|
110
110
|
return Error("react-stack-top-frame");
|
|
111
111
|
}
|
|
112
112
|
function i(p) {
|
|
113
|
-
if (
|
|
113
|
+
if (te.call(p, "key")) {
|
|
114
114
|
var R = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
115
115
|
if (R && R.isReactWarning) return !1;
|
|
116
116
|
}
|
|
@@ -130,11 +130,11 @@ function ao() {
|
|
|
130
130
|
}
|
|
131
131
|
function c() {
|
|
132
132
|
var p = e(this.type);
|
|
133
|
-
return
|
|
133
|
+
return X[p] || (X[p] = !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
|
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
136
136
|
}
|
|
137
|
-
function u(p, R, O, k, ve,
|
|
137
|
+
function u(p, R, O, k, ve, q) {
|
|
138
138
|
var P = O.ref;
|
|
139
139
|
return p = {
|
|
140
140
|
$$typeof: v,
|
|
@@ -164,10 +164,10 @@ function ao() {
|
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
writable: !0,
|
|
167
|
-
value:
|
|
167
|
+
value: q
|
|
168
168
|
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
169
169
|
}
|
|
170
|
-
function f(p, R, O, k, ve,
|
|
170
|
+
function f(p, R, O, k, ve, q) {
|
|
171
171
|
var P = R.children;
|
|
172
172
|
if (P !== void 0)
|
|
173
173
|
if (k)
|
|
@@ -180,7 +180,7 @@ function ao() {
|
|
|
180
180
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
181
181
|
);
|
|
182
182
|
else h(P);
|
|
183
|
-
if (
|
|
183
|
+
if (te.call(R, "key")) {
|
|
184
184
|
P = e(p);
|
|
185
185
|
var Q = Object.keys(R).filter(function(I) {
|
|
186
186
|
return I !== "key";
|
|
@@ -200,8 +200,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
200
200
|
}
|
|
201
201
|
if (P = null, O !== void 0 && (n(O), P = "" + O), i(R) && (n(R.key), P = "" + R.key), "key" in R) {
|
|
202
202
|
O = {};
|
|
203
|
-
for (var
|
|
204
|
-
|
|
203
|
+
for (var oe in R)
|
|
204
|
+
oe !== "key" && (O[oe] = R[oe]);
|
|
205
205
|
} else O = R;
|
|
206
206
|
return P && l(
|
|
207
207
|
O,
|
|
@@ -212,7 +212,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
212
212
|
O,
|
|
213
213
|
o(),
|
|
214
214
|
ve,
|
|
215
|
-
|
|
215
|
+
q
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
function h(p) {
|
|
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
221
221
|
function m(p) {
|
|
222
222
|
return typeof p == "object" && p !== null && p.$$typeof === v;
|
|
223
223
|
}
|
|
224
|
-
var g =
|
|
224
|
+
var g = B, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, le = Array.isArray, De = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
227
|
g = {
|
|
@@ -229,10 +229,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
229
229
|
return p();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var $e,
|
|
232
|
+
var $e, X = {}, Pe = g.react_stack_bottom_frame.bind(
|
|
233
233
|
g,
|
|
234
234
|
s
|
|
235
|
-
)(), ce =
|
|
235
|
+
)(), ce = De(r(s)), Oe = {};
|
|
236
236
|
st.Fragment = b, st.jsx = function(p, R, O) {
|
|
237
237
|
var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
238
238
|
return f(
|
|
@@ -241,7 +241,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
241
241
|
O,
|
|
242
242
|
!1,
|
|
243
243
|
k ? Error("react-stack-top-frame") : Pe,
|
|
244
|
-
k ?
|
|
244
|
+
k ? De(r(p)) : ce
|
|
245
245
|
);
|
|
246
246
|
}, st.jsxs = function(p, R, O) {
|
|
247
247
|
var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
O,
|
|
252
252
|
!0,
|
|
253
253
|
k ? Error("react-stack-top-frame") : Pe,
|
|
254
|
-
k ?
|
|
254
|
+
k ? De(r(p)) : ce
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
257
|
})()), st;
|
|
@@ -265,7 +265,7 @@ var $n;
|
|
|
265
265
|
function co() {
|
|
266
266
|
if ($n) return qt;
|
|
267
267
|
$n = 1;
|
|
268
|
-
var e =
|
|
268
|
+
var e = B;
|
|
269
269
|
function t(h, m) {
|
|
270
270
|
return h === m && (h !== 0 || 1 / h === 1 / m) || h !== h && m !== m;
|
|
271
271
|
}
|
|
@@ -352,7 +352,7 @@ function uo() {
|
|
|
352
352
|
return v();
|
|
353
353
|
}
|
|
354
354
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
355
|
-
var o =
|
|
355
|
+
var o = B, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, f = !1, h = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
356
356
|
Kt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
357
357
|
})()), Kt;
|
|
358
358
|
}
|
|
@@ -364,7 +364,7 @@ var Fn;
|
|
|
364
364
|
function fo() {
|
|
365
365
|
if (Fn) return Xt;
|
|
366
366
|
Fn = 1;
|
|
367
|
-
var e =
|
|
367
|
+
var e = B, t = fr();
|
|
368
368
|
function n(u, f) {
|
|
369
369
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
370
370
|
}
|
|
@@ -419,7 +419,7 @@ function ho() {
|
|
|
419
419
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
420
420
|
}
|
|
421
421
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
422
|
-
var t =
|
|
422
|
+
var t = B, n = fr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, i = t.useEffect, l = t.useMemo, c = t.useDebugValue;
|
|
423
423
|
Jt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
|
|
424
424
|
var v = s(null);
|
|
425
425
|
if (v.current === null) {
|
|
@@ -469,16 +469,16 @@ function go() {
|
|
|
469
469
|
return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? Rt.exports = fo() : Rt.exports = ho()), Rt.exports;
|
|
470
470
|
}
|
|
471
471
|
var po = go();
|
|
472
|
-
const an = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(),
|
|
472
|
+
const an = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), kt = {
|
|
473
473
|
current: []
|
|
474
474
|
};
|
|
475
475
|
let Zt = !1;
|
|
476
|
-
const Et = /* @__PURE__ */ new Set(),
|
|
476
|
+
const Et = /* @__PURE__ */ new Set(), Bn = /* @__PURE__ */ new Map();
|
|
477
477
|
function hr(e) {
|
|
478
478
|
for (const t of e) {
|
|
479
|
-
if (
|
|
479
|
+
if (kt.current.includes(t))
|
|
480
480
|
continue;
|
|
481
|
-
|
|
481
|
+
kt.current.push(t), t.recompute();
|
|
482
482
|
const n = vo.get(t);
|
|
483
483
|
if (n)
|
|
484
484
|
for (const r of n) {
|
|
@@ -510,12 +510,12 @@ function xo(e) {
|
|
|
510
510
|
const t = Array.from(Et);
|
|
511
511
|
Et.clear();
|
|
512
512
|
for (const n of t) {
|
|
513
|
-
const r =
|
|
513
|
+
const r = Bn.get(n) ?? n.prevState;
|
|
514
514
|
n.prevState = r, bo(n);
|
|
515
515
|
}
|
|
516
516
|
for (const n of t) {
|
|
517
517
|
const r = an.get(n);
|
|
518
|
-
r && (
|
|
518
|
+
r && (kt.current.push(n), hr(r));
|
|
519
519
|
}
|
|
520
520
|
for (const n of t) {
|
|
521
521
|
const r = an.get(n);
|
|
@@ -525,7 +525,7 @@ function xo(e) {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
} finally {
|
|
528
|
-
Zt = !1,
|
|
528
|
+
Zt = !1, kt.current = [], Bn.clear();
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function yo(e) {
|
|
@@ -576,15 +576,15 @@ function wo(e, t) {
|
|
|
576
576
|
}
|
|
577
577
|
if (e instanceof Date && t instanceof Date)
|
|
578
578
|
return e.getTime() === t.getTime();
|
|
579
|
-
const n =
|
|
580
|
-
if (n.length !==
|
|
579
|
+
const n = Hn(e);
|
|
580
|
+
if (n.length !== Hn(t).length)
|
|
581
581
|
return !1;
|
|
582
582
|
for (let r = 0; r < n.length; r++)
|
|
583
583
|
if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]]))
|
|
584
584
|
return !1;
|
|
585
585
|
return !0;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Hn(e) {
|
|
588
588
|
return Object.keys(e).concat(
|
|
589
589
|
Object.getOwnPropertySymbols(e)
|
|
590
590
|
);
|
|
@@ -592,7 +592,7 @@ function Bn(e) {
|
|
|
592
592
|
function So() {
|
|
593
593
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
594
594
|
t[n] = arguments[n];
|
|
595
|
-
return
|
|
595
|
+
return M(
|
|
596
596
|
() => (r) => {
|
|
597
597
|
t.forEach((o) => o(r));
|
|
598
598
|
},
|
|
@@ -600,7 +600,7 @@ function So() {
|
|
|
600
600
|
t
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
|
-
const
|
|
603
|
+
const Vt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
604
604
|
function Ke(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]
|
|
@@ -609,29 +609,29 @@ function Ke(e) {
|
|
|
609
609
|
function gn(e) {
|
|
610
610
|
return "nodeType" in e;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function re(e) {
|
|
613
613
|
var t, n;
|
|
614
614
|
return e ? Ke(e) ? e : gn(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
615
615
|
}
|
|
616
616
|
function pn(e) {
|
|
617
617
|
const {
|
|
618
618
|
Document: t
|
|
619
|
-
} =
|
|
619
|
+
} = re(e);
|
|
620
620
|
return e instanceof t;
|
|
621
621
|
}
|
|
622
622
|
function bt(e) {
|
|
623
|
-
return Ke(e) ? !1 : e instanceof
|
|
623
|
+
return Ke(e) ? !1 : e instanceof re(e).HTMLElement;
|
|
624
624
|
}
|
|
625
625
|
function pr(e) {
|
|
626
|
-
return e instanceof
|
|
626
|
+
return e instanceof re(e).SVGElement;
|
|
627
627
|
}
|
|
628
628
|
function Je(e) {
|
|
629
629
|
return e ? Ke(e) ? e.document : gn(e) ? pn(e) ? e : bt(e) || pr(e) ? e.ownerDocument : document : document : document;
|
|
630
630
|
}
|
|
631
|
-
const
|
|
631
|
+
const Se = Vt ? Qr : A;
|
|
632
632
|
function vn(e) {
|
|
633
|
-
const t =
|
|
634
|
-
return
|
|
633
|
+
const t = N(e);
|
|
634
|
+
return Se(() => {
|
|
635
635
|
t.current = e;
|
|
636
636
|
}), J(function() {
|
|
637
637
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
@@ -640,7 +640,7 @@ function vn(e) {
|
|
|
640
640
|
}, []);
|
|
641
641
|
}
|
|
642
642
|
function Co() {
|
|
643
|
-
const e =
|
|
643
|
+
const e = N(null), t = J((r, o) => {
|
|
644
644
|
e.current = setInterval(r, o);
|
|
645
645
|
}, []), n = J(() => {
|
|
646
646
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
@@ -649,14 +649,14 @@ function Co() {
|
|
|
649
649
|
}
|
|
650
650
|
function dt(e, t) {
|
|
651
651
|
t === void 0 && (t = [e]);
|
|
652
|
-
const n =
|
|
653
|
-
return
|
|
652
|
+
const n = N(e);
|
|
653
|
+
return Se(() => {
|
|
654
654
|
n.current !== e && (n.current = e);
|
|
655
655
|
}, t), n;
|
|
656
656
|
}
|
|
657
657
|
function mt(e, t) {
|
|
658
|
-
const n =
|
|
659
|
-
return
|
|
658
|
+
const n = N();
|
|
659
|
+
return M(
|
|
660
660
|
() => {
|
|
661
661
|
const r = e(n.current);
|
|
662
662
|
return n.current = r, r;
|
|
@@ -665,8 +665,8 @@ function mt(e, t) {
|
|
|
665
665
|
[...t]
|
|
666
666
|
);
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
const t = vn(e), n =
|
|
668
|
+
function Mt(e) {
|
|
669
|
+
const t = vn(e), n = N(null), r = J(
|
|
670
670
|
(o) => {
|
|
671
671
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
672
672
|
},
|
|
@@ -676,14 +676,14 @@ function kt(e) {
|
|
|
676
676
|
return [n, r];
|
|
677
677
|
}
|
|
678
678
|
function ln(e) {
|
|
679
|
-
const t =
|
|
679
|
+
const t = N();
|
|
680
680
|
return A(() => {
|
|
681
681
|
t.current = e;
|
|
682
682
|
}, [e]), t.current;
|
|
683
683
|
}
|
|
684
684
|
let Qt = {};
|
|
685
685
|
function xt(e, t) {
|
|
686
|
-
return
|
|
686
|
+
return M(() => {
|
|
687
687
|
if (t)
|
|
688
688
|
return t;
|
|
689
689
|
const n = Qt[e] == null ? 0 : Qt[e] + 1;
|
|
@@ -715,7 +715,7 @@ function bn(e) {
|
|
|
715
715
|
return !1;
|
|
716
716
|
const {
|
|
717
717
|
KeyboardEvent: t
|
|
718
|
-
} =
|
|
718
|
+
} = re(e.target);
|
|
719
719
|
return t && e instanceof t;
|
|
720
720
|
}
|
|
721
721
|
function Do(e) {
|
|
@@ -723,7 +723,7 @@ function Do(e) {
|
|
|
723
723
|
return !1;
|
|
724
724
|
const {
|
|
725
725
|
TouchEvent: t
|
|
726
|
-
} =
|
|
726
|
+
} = re(e.target);
|
|
727
727
|
return t && e instanceof t;
|
|
728
728
|
}
|
|
729
729
|
function cn(e) {
|
|
@@ -804,7 +804,7 @@ function _o(e) {
|
|
|
804
804
|
id: t,
|
|
805
805
|
value: n
|
|
806
806
|
} = e;
|
|
807
|
-
return
|
|
807
|
+
return B.createElement("div", {
|
|
808
808
|
id: t,
|
|
809
809
|
style: jo
|
|
810
810
|
}, n);
|
|
@@ -829,7 +829,7 @@ function Oo(e) {
|
|
|
829
829
|
clipPath: "inset(100%)",
|
|
830
830
|
whiteSpace: "nowrap"
|
|
831
831
|
};
|
|
832
|
-
return
|
|
832
|
+
return B.createElement("div", {
|
|
833
833
|
id: t,
|
|
834
834
|
style: o,
|
|
835
835
|
role: "status",
|
|
@@ -838,7 +838,7 @@ function Oo(e) {
|
|
|
838
838
|
}, n);
|
|
839
839
|
}
|
|
840
840
|
function To() {
|
|
841
|
-
const [e, t] =
|
|
841
|
+
const [e, t] = G("");
|
|
842
842
|
return {
|
|
843
843
|
announce: J((r) => {
|
|
844
844
|
r != null && t(r);
|
|
@@ -856,7 +856,7 @@ function Io(e) {
|
|
|
856
856
|
}, [e, t]);
|
|
857
857
|
}
|
|
858
858
|
function Ao() {
|
|
859
|
-
const [e] =
|
|
859
|
+
const [e] = G(() => /* @__PURE__ */ new Set()), t = J((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
860
860
|
return [J((r) => {
|
|
861
861
|
let {
|
|
862
862
|
type: o,
|
|
@@ -874,7 +874,7 @@ const ko = {
|
|
|
874
874
|
While dragging, use the arrow keys to move the item.
|
|
875
875
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
876
876
|
`
|
|
877
|
-
},
|
|
877
|
+
}, Mo = {
|
|
878
878
|
onDragStart(e) {
|
|
879
879
|
let {
|
|
880
880
|
active: t
|
|
@@ -902,9 +902,9 @@ const ko = {
|
|
|
902
902
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
|
-
function
|
|
905
|
+
function No(e) {
|
|
906
906
|
let {
|
|
907
|
-
announcements: t =
|
|
907
|
+
announcements: t = Mo,
|
|
908
908
|
container: n,
|
|
909
909
|
hiddenTextDescribedById: r,
|
|
910
910
|
screenReaderInstructions: o = ko
|
|
@@ -912,10 +912,10 @@ function Mo(e) {
|
|
|
912
912
|
const {
|
|
913
913
|
announce: s,
|
|
914
914
|
announcement: i
|
|
915
|
-
} = To(), l = xt("DndLiveRegion"), [c, u] =
|
|
915
|
+
} = To(), l = xt("DndLiveRegion"), [c, u] = G(!1);
|
|
916
916
|
if (A(() => {
|
|
917
917
|
u(!0);
|
|
918
|
-
}, []), Io(
|
|
918
|
+
}, []), Io(M(() => ({
|
|
919
919
|
onDragStart(h) {
|
|
920
920
|
let {
|
|
921
921
|
active: m
|
|
@@ -966,10 +966,10 @@ function Mo(e) {
|
|
|
966
966
|
}
|
|
967
967
|
}), [s, t])), !c)
|
|
968
968
|
return null;
|
|
969
|
-
const f =
|
|
969
|
+
const f = B.createElement(B.Fragment, null, B.createElement(_o, {
|
|
970
970
|
id: r,
|
|
971
971
|
value: o.draggable
|
|
972
|
-
}),
|
|
972
|
+
}), B.createElement(Oo, {
|
|
973
973
|
id: l,
|
|
974
974
|
announcement: i
|
|
975
975
|
}));
|
|
@@ -979,10 +979,10 @@ var Y;
|
|
|
979
979
|
(function(e) {
|
|
980
980
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
981
981
|
})(Y || (Y = {}));
|
|
982
|
-
function
|
|
982
|
+
function Lt() {
|
|
983
983
|
}
|
|
984
984
|
function Lo(e, t) {
|
|
985
|
-
return
|
|
985
|
+
return M(
|
|
986
986
|
() => ({
|
|
987
987
|
sensor: e,
|
|
988
988
|
options: {}
|
|
@@ -994,7 +994,7 @@ function Lo(e, t) {
|
|
|
994
994
|
function $o() {
|
|
995
995
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
996
996
|
t[n] = arguments[n];
|
|
997
|
-
return
|
|
997
|
+
return M(
|
|
998
998
|
() => [...t].filter((r) => r != null),
|
|
999
999
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1000
1000
|
[...t]
|
|
@@ -1075,7 +1075,7 @@ function Yo(e, t) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
return 0;
|
|
1077
1077
|
}
|
|
1078
|
-
const
|
|
1078
|
+
const Bo = (e) => {
|
|
1079
1079
|
let {
|
|
1080
1080
|
collisionRect: t,
|
|
1081
1081
|
droppableRects: n,
|
|
@@ -1099,7 +1099,7 @@ const Ho = (e) => {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
return o.sort(Fo);
|
|
1101
1101
|
};
|
|
1102
|
-
function
|
|
1102
|
+
function Ho(e, t, n) {
|
|
1103
1103
|
return {
|
|
1104
1104
|
...e,
|
|
1105
1105
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -1177,7 +1177,7 @@ function Ze(e, t) {
|
|
|
1177
1177
|
const {
|
|
1178
1178
|
transform: u,
|
|
1179
1179
|
transformOrigin: f
|
|
1180
|
-
} =
|
|
1180
|
+
} = re(e).getComputedStyle(e);
|
|
1181
1181
|
u && (n = Xo(n, u, f));
|
|
1182
1182
|
}
|
|
1183
1183
|
const {
|
|
@@ -1214,10 +1214,10 @@ function Ko(e) {
|
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
1216
|
function Jo(e, t) {
|
|
1217
|
-
return t === void 0 && (t =
|
|
1217
|
+
return t === void 0 && (t = re(e).getComputedStyle(e)), t.position === "fixed";
|
|
1218
1218
|
}
|
|
1219
1219
|
function Zo(e, t) {
|
|
1220
|
-
t === void 0 && (t =
|
|
1220
|
+
t === void 0 && (t = re(e).getComputedStyle(e));
|
|
1221
1221
|
const n = /(auto|scroll|overlay)/;
|
|
1222
1222
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
1223
1223
|
const s = t[o];
|
|
@@ -1233,7 +1233,7 @@ function mn(e, t) {
|
|
|
1233
1233
|
return n.push(o.scrollingElement), n;
|
|
1234
1234
|
if (!bt(o) || pr(o) || n.includes(o))
|
|
1235
1235
|
return n;
|
|
1236
|
-
const s =
|
|
1236
|
+
const s = re(e).getComputedStyle(o);
|
|
1237
1237
|
return o !== e && Zo(o, s) && n.push(o), Jo(o, s) ? n : r(o.parentNode);
|
|
1238
1238
|
}
|
|
1239
1239
|
return e ? r(e) : n;
|
|
@@ -1243,7 +1243,7 @@ function yr(e) {
|
|
|
1243
1243
|
return t ?? null;
|
|
1244
1244
|
}
|
|
1245
1245
|
function en(e) {
|
|
1246
|
-
return !
|
|
1246
|
+
return !Vt || !e ? null : Ke(e) ? e : gn(e) ? pn(e) || e === Je(e).scrollingElement ? window : bt(e) ? e : null : null;
|
|
1247
1247
|
}
|
|
1248
1248
|
function wr(e) {
|
|
1249
1249
|
return Ke(e) ? e.scrollX : e.scrollLeft;
|
|
@@ -1257,12 +1257,12 @@ function un(e) {
|
|
|
1257
1257
|
y: Sr(e)
|
|
1258
1258
|
};
|
|
1259
1259
|
}
|
|
1260
|
-
var
|
|
1260
|
+
var H;
|
|
1261
1261
|
(function(e) {
|
|
1262
1262
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
1263
|
-
})(
|
|
1263
|
+
})(H || (H = {}));
|
|
1264
1264
|
function Cr(e) {
|
|
1265
|
-
return !
|
|
1265
|
+
return !Vt || !e ? !1 : e === document.scrollingElement;
|
|
1266
1266
|
}
|
|
1267
1267
|
function Rr(e) {
|
|
1268
1268
|
const t = {
|
|
@@ -1314,7 +1314,7 @@ function es(e, t, n, r, o) {
|
|
|
1314
1314
|
height: t.height * o.y,
|
|
1315
1315
|
width: t.width * o.x
|
|
1316
1316
|
};
|
|
1317
|
-
return !u && s <= t.top + d.height ? (g.y =
|
|
1317
|
+
return !u && s <= t.top + d.height ? (g.y = H.Backward, v.y = r * Math.abs((t.top + d.height - s) / d.height)) : !f && c >= t.bottom - d.height && (g.y = H.Forward, v.y = r * Math.abs((t.bottom - d.height - c) / d.height)), !m && l >= t.right - d.width ? (g.x = H.Forward, v.x = r * Math.abs((t.right - d.width - l) / d.width)) : !h && i <= t.left + d.width && (g.x = H.Backward, v.x = r * Math.abs((t.left + d.width - i) / d.width)), {
|
|
1318
1318
|
direction: g,
|
|
1319
1319
|
speed: v
|
|
1320
1320
|
};
|
|
@@ -1411,7 +1411,7 @@ class lt {
|
|
|
1411
1411
|
function is(e) {
|
|
1412
1412
|
const {
|
|
1413
1413
|
EventTarget: t
|
|
1414
|
-
} =
|
|
1414
|
+
} = re(e);
|
|
1415
1415
|
return e instanceof t ? e : Je(e);
|
|
1416
1416
|
}
|
|
1417
1417
|
function tn(e, t) {
|
|
@@ -1471,7 +1471,7 @@ class jr {
|
|
|
1471
1471
|
target: n
|
|
1472
1472
|
}
|
|
1473
1473
|
} = t;
|
|
1474
|
-
this.props = t, this.listeners = new lt(Je(n)), this.windowListeners = new lt(
|
|
1474
|
+
this.props = t, this.listeners = new lt(Je(n)), this.windowListeners = new lt(re(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(de.Resize, this.handleCancel), this.windowListeners.add(de.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(de.Keydown, this.handleKeyDown));
|
|
@@ -1627,7 +1627,7 @@ class yn {
|
|
|
1627
1627
|
} = t, {
|
|
1628
1628
|
target: i
|
|
1629
1629
|
} = s;
|
|
1630
|
-
this.props = t, this.events = n, this.document = Je(i), this.documentListeners = new lt(this.document), this.listeners = new lt(r), this.windowListeners = new lt(
|
|
1630
|
+
this.props = t, this.events = n, this.document = Je(i), this.documentListeners = new lt(this.document), this.listeners = new lt(r), this.windowListeners = new lt(re(i)), this.initialCoordinates = (o = cn(s)) != null ? o : ge, 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 {
|
|
@@ -1838,10 +1838,10 @@ var ct;
|
|
|
1838
1838
|
(function(e) {
|
|
1839
1839
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1840
1840
|
})(ct || (ct = {}));
|
|
1841
|
-
var
|
|
1841
|
+
var $t;
|
|
1842
1842
|
(function(e) {
|
|
1843
1843
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1844
|
-
})(
|
|
1844
|
+
})($t || ($t = {}));
|
|
1845
1845
|
function hs(e) {
|
|
1846
1846
|
let {
|
|
1847
1847
|
acceleration: t,
|
|
@@ -1850,7 +1850,7 @@ function hs(e) {
|
|
|
1850
1850
|
draggingRect: o,
|
|
1851
1851
|
enabled: s,
|
|
1852
1852
|
interval: i = 5,
|
|
1853
|
-
order: l =
|
|
1853
|
+
order: l = $t.TreeOrder,
|
|
1854
1854
|
pointerCoordinates: c,
|
|
1855
1855
|
scrollableAncestors: u,
|
|
1856
1856
|
scrollableAncestorRects: f,
|
|
@@ -1860,13 +1860,13 @@ function hs(e) {
|
|
|
1860
1860
|
const g = ps({
|
|
1861
1861
|
delta: h,
|
|
1862
1862
|
disabled: !s
|
|
1863
|
-
}), [v, d] = Co(), b =
|
|
1863
|
+
}), [v, d] = Co(), b = N({
|
|
1864
1864
|
x: 0,
|
|
1865
1865
|
y: 0
|
|
1866
|
-
}), x =
|
|
1866
|
+
}), x = N({
|
|
1867
1867
|
x: 0,
|
|
1868
1868
|
y: 0
|
|
1869
|
-
}), w =
|
|
1869
|
+
}), w = M(() => {
|
|
1870
1870
|
switch (n) {
|
|
1871
1871
|
case ct.Pointer:
|
|
1872
1872
|
return c ? {
|
|
@@ -1878,13 +1878,13 @@ function hs(e) {
|
|
|
1878
1878
|
case ct.DraggableRect:
|
|
1879
1879
|
return o;
|
|
1880
1880
|
}
|
|
1881
|
-
}, [n, o, c]), S =
|
|
1881
|
+
}, [n, o, c]), S = N(null), C = J(() => {
|
|
1882
1882
|
const D = S.current;
|
|
1883
1883
|
if (!D)
|
|
1884
1884
|
return;
|
|
1885
1885
|
const E = b.current.x * x.current.x, _ = b.current.y * x.current.y;
|
|
1886
1886
|
D.scrollBy(E, _);
|
|
1887
|
-
}, []), j =
|
|
1887
|
+
}, []), j = M(() => l === $t.TreeOrder ? [...u].reverse() : u, [l, u]);
|
|
1888
1888
|
A(
|
|
1889
1889
|
() => {
|
|
1890
1890
|
if (!s || !u.length || !w) {
|
|
@@ -1939,12 +1939,12 @@ function hs(e) {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
const gs = {
|
|
1941
1941
|
x: {
|
|
1942
|
-
[
|
|
1943
|
-
[
|
|
1942
|
+
[H.Backward]: !1,
|
|
1943
|
+
[H.Forward]: !1
|
|
1944
1944
|
},
|
|
1945
1945
|
y: {
|
|
1946
|
-
[
|
|
1947
|
-
[
|
|
1946
|
+
[H.Backward]: !1,
|
|
1947
|
+
[H.Forward]: !1
|
|
1948
1948
|
}
|
|
1949
1949
|
};
|
|
1950
1950
|
function ps(e) {
|
|
@@ -1962,12 +1962,12 @@ function ps(e) {
|
|
|
1962
1962
|
};
|
|
1963
1963
|
return {
|
|
1964
1964
|
x: {
|
|
1965
|
-
[
|
|
1966
|
-
[
|
|
1965
|
+
[H.Backward]: o.x[H.Backward] || s.x === -1,
|
|
1966
|
+
[H.Forward]: o.x[H.Forward] || s.x === 1
|
|
1967
1967
|
},
|
|
1968
1968
|
y: {
|
|
1969
|
-
[
|
|
1970
|
-
[
|
|
1969
|
+
[H.Backward]: o.y[H.Backward] || s.y === -1,
|
|
1970
|
+
[H.Forward]: o.y[H.Forward] || s.y === 1
|
|
1971
1971
|
}
|
|
1972
1972
|
};
|
|
1973
1973
|
}, [n, t, r]);
|
|
@@ -1980,7 +1980,7 @@ function vs(e, t) {
|
|
|
1980
1980
|
}, [r, t]);
|
|
1981
1981
|
}
|
|
1982
1982
|
function bs(e, t) {
|
|
1983
|
-
return
|
|
1983
|
+
return M(() => e.reduce((n, r) => {
|
|
1984
1984
|
const {
|
|
1985
1985
|
sensor: o
|
|
1986
1986
|
} = r, s = o.activators.map((i) => ({
|
|
@@ -2005,13 +2005,13 @@ function ms(e, t) {
|
|
|
2005
2005
|
dependencies: r,
|
|
2006
2006
|
config: o
|
|
2007
2007
|
} = t;
|
|
2008
|
-
const [s, i] =
|
|
2008
|
+
const [s, i] = G(null), {
|
|
2009
2009
|
frequency: l,
|
|
2010
2010
|
measure: c,
|
|
2011
2011
|
strategy: u
|
|
2012
|
-
} = o, f =
|
|
2012
|
+
} = o, f = N(e), h = b(), m = dt(h), g = J(function(x) {
|
|
2013
2013
|
x === void 0 && (x = []), !m.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
|
|
2014
|
-
}, [m]), v =
|
|
2014
|
+
}, [m]), v = N(null), d = mt((x) => {
|
|
2015
2015
|
if (h && !n)
|
|
2016
2016
|
return Jn;
|
|
2017
2017
|
if (!x || x === Jn || f.current !== e || s != null) {
|
|
@@ -2079,7 +2079,7 @@ function ys(e) {
|
|
|
2079
2079
|
callback: t,
|
|
2080
2080
|
disabled: n
|
|
2081
2081
|
} = e;
|
|
2082
|
-
const r = vn(t), o =
|
|
2082
|
+
const r = vn(t), o = M(() => {
|
|
2083
2083
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
2084
2084
|
return;
|
|
2085
2085
|
const {
|
|
@@ -2089,12 +2089,12 @@ function ys(e) {
|
|
|
2089
2089
|
}, [r, n]);
|
|
2090
2090
|
return A(() => () => o?.disconnect(), [o]), o;
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function Yt(e) {
|
|
2093
2093
|
let {
|
|
2094
2094
|
callback: t,
|
|
2095
2095
|
disabled: n
|
|
2096
2096
|
} = e;
|
|
2097
|
-
const r = vn(t), o =
|
|
2097
|
+
const r = vn(t), o = M(
|
|
2098
2098
|
() => {
|
|
2099
2099
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
2100
2100
|
return;
|
|
@@ -2113,7 +2113,7 @@ function ws(e) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
function Zn(e, t, n) {
|
|
2115
2115
|
t === void 0 && (t = ws);
|
|
2116
|
-
const [r, o] =
|
|
2116
|
+
const [r, o] = G(null);
|
|
2117
2117
|
function s() {
|
|
2118
2118
|
o((c) => {
|
|
2119
2119
|
if (!e)
|
|
@@ -2140,10 +2140,10 @@ function Zn(e, t, n) {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
2142
|
}
|
|
2143
|
-
}), l =
|
|
2143
|
+
}), l = Yt({
|
|
2144
2144
|
callback: s
|
|
2145
2145
|
});
|
|
2146
|
-
return
|
|
2146
|
+
return Se(() => {
|
|
2147
2147
|
s(), e ? (l?.observe(e), i?.observe(document.body, {
|
|
2148
2148
|
childList: !0,
|
|
2149
2149
|
subtree: !0
|
|
@@ -2156,13 +2156,13 @@ function Ss(e) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
const Qn = [];
|
|
2158
2158
|
function Cs(e) {
|
|
2159
|
-
const t =
|
|
2159
|
+
const t = N(e), n = mt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r : mn(e) : Qn, [e]);
|
|
2160
2160
|
return A(() => {
|
|
2161
2161
|
t.current = e;
|
|
2162
2162
|
}, [e]), n;
|
|
2163
2163
|
}
|
|
2164
2164
|
function Rs(e) {
|
|
2165
|
-
const [t, n] =
|
|
2165
|
+
const [t, n] = G(null), r = N(e), o = J((s) => {
|
|
2166
2166
|
const i = en(s.target);
|
|
2167
2167
|
i && n((l) => l ? (l.set(i, un(i)), new Map(l)) : null);
|
|
2168
2168
|
}, []);
|
|
@@ -2187,11 +2187,11 @@ function Rs(e) {
|
|
|
2187
2187
|
u?.removeEventListener("scroll", o);
|
|
2188
2188
|
});
|
|
2189
2189
|
}
|
|
2190
|
-
}, [o, e]),
|
|
2190
|
+
}, [o, e]), M(() => e.length ? t ? Array.from(t.values()).reduce((s, i) => Xe(s, i), ge) : Dr(e) : ge, [e, t]);
|
|
2191
2191
|
}
|
|
2192
2192
|
function er(e, t) {
|
|
2193
2193
|
t === void 0 && (t = []);
|
|
2194
|
-
const n =
|
|
2194
|
+
const n = N(null);
|
|
2195
2195
|
return A(
|
|
2196
2196
|
() => {
|
|
2197
2197
|
n.current = null;
|
|
@@ -2206,7 +2206,7 @@ function er(e, t) {
|
|
|
2206
2206
|
function Ds(e) {
|
|
2207
2207
|
A(
|
|
2208
2208
|
() => {
|
|
2209
|
-
if (!
|
|
2209
|
+
if (!Vt)
|
|
2210
2210
|
return;
|
|
2211
2211
|
const t = e.map((n) => {
|
|
2212
2212
|
let {
|
|
@@ -2230,7 +2230,7 @@ function Ds(e) {
|
|
|
2230
2230
|
);
|
|
2231
2231
|
}
|
|
2232
2232
|
function Es(e, t) {
|
|
2233
|
-
return
|
|
2233
|
+
return M(() => e.reduce((n, r) => {
|
|
2234
2234
|
let {
|
|
2235
2235
|
eventName: o,
|
|
2236
2236
|
handler: s
|
|
@@ -2241,19 +2241,19 @@ function Es(e, t) {
|
|
|
2241
2241
|
}, {}), [e, t]);
|
|
2242
2242
|
}
|
|
2243
2243
|
function Or(e) {
|
|
2244
|
-
return
|
|
2244
|
+
return M(() => e ? Ko(e) : null, [e]);
|
|
2245
2245
|
}
|
|
2246
2246
|
const tr = [];
|
|
2247
2247
|
function js(e, t) {
|
|
2248
2248
|
t === void 0 && (t = Ze);
|
|
2249
|
-
const [n] = e, r = Or(n ?
|
|
2249
|
+
const [n] = e, r = Or(n ? re(n) : null), [o, s] = G(tr);
|
|
2250
2250
|
function i() {
|
|
2251
2251
|
s(() => e.length ? e.map((c) => Cr(c) ? r : new xn(t(c), c)) : tr);
|
|
2252
2252
|
}
|
|
2253
|
-
const l =
|
|
2253
|
+
const l = Yt({
|
|
2254
2254
|
callback: i
|
|
2255
2255
|
});
|
|
2256
|
-
return
|
|
2256
|
+
return Se(() => {
|
|
2257
2257
|
l?.disconnect(), i(), e.forEach((c) => l?.observe(c));
|
|
2258
2258
|
}, [e]), o;
|
|
2259
2259
|
}
|
|
@@ -2269,7 +2269,7 @@ function Os(e) {
|
|
|
2269
2269
|
let {
|
|
2270
2270
|
measure: t
|
|
2271
2271
|
} = e;
|
|
2272
|
-
const [n, r] =
|
|
2272
|
+
const [n, r] = G(null), o = J((u) => {
|
|
2273
2273
|
for (const {
|
|
2274
2274
|
target: f
|
|
2275
2275
|
} of u)
|
|
@@ -2284,13 +2284,13 @@ function Os(e) {
|
|
|
2284
2284
|
});
|
|
2285
2285
|
break;
|
|
2286
2286
|
}
|
|
2287
|
-
}, [t]), s =
|
|
2287
|
+
}, [t]), s = Yt({
|
|
2288
2288
|
callback: o
|
|
2289
2289
|
}), i = J((u) => {
|
|
2290
2290
|
const f = _s(u);
|
|
2291
2291
|
s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
|
|
2292
|
-
}, [t, s]), [l, c] =
|
|
2293
|
-
return
|
|
2292
|
+
}, [t, s]), [l, c] = Mt(i);
|
|
2293
|
+
return M(() => ({
|
|
2294
2294
|
nodeRef: l,
|
|
2295
2295
|
rect: n,
|
|
2296
2296
|
setRef: c
|
|
@@ -2304,7 +2304,7 @@ const Ts = [{
|
|
|
2304
2304
|
options: {}
|
|
2305
2305
|
}], Is = {
|
|
2306
2306
|
current: {}
|
|
2307
|
-
},
|
|
2307
|
+
}, It = {
|
|
2308
2308
|
draggable: {
|
|
2309
2309
|
measure: Gn
|
|
2310
2310
|
},
|
|
@@ -2354,12 +2354,12 @@ const As = {
|
|
|
2354
2354
|
current: null
|
|
2355
2355
|
},
|
|
2356
2356
|
rect: null,
|
|
2357
|
-
setRef:
|
|
2357
|
+
setRef: Lt
|
|
2358
2358
|
},
|
|
2359
2359
|
scrollableAncestors: [],
|
|
2360
2360
|
scrollableAncestorRects: [],
|
|
2361
|
-
measuringConfiguration:
|
|
2362
|
-
measureDroppableContainers:
|
|
2361
|
+
measuringConfiguration: It,
|
|
2362
|
+
measureDroppableContainers: Lt,
|
|
2363
2363
|
windowRect: null,
|
|
2364
2364
|
measuringScheduled: !1
|
|
2365
2365
|
}, ks = {
|
|
@@ -2370,12 +2370,12 @@ const As = {
|
|
|
2370
2370
|
ariaDescribedById: {
|
|
2371
2371
|
draggable: ""
|
|
2372
2372
|
},
|
|
2373
|
-
dispatch:
|
|
2373
|
+
dispatch: Lt,
|
|
2374
2374
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2375
2375
|
over: null,
|
|
2376
|
-
measureDroppableContainers:
|
|
2377
|
-
},
|
|
2378
|
-
function
|
|
2376
|
+
measureDroppableContainers: Lt
|
|
2377
|
+
}, Bt = /* @__PURE__ */ ht(ks), Tr = /* @__PURE__ */ ht(As);
|
|
2378
|
+
function Ms() {
|
|
2379
2379
|
return {
|
|
2380
2380
|
draggable: {
|
|
2381
2381
|
active: null,
|
|
@@ -2394,7 +2394,7 @@ function Ns() {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Ns(e, t) {
|
|
2398
2398
|
switch (t.type) {
|
|
2399
2399
|
case Y.DragStart:
|
|
2400
2400
|
return {
|
|
@@ -2495,7 +2495,7 @@ function Ls(e) {
|
|
|
2495
2495
|
active: n,
|
|
2496
2496
|
activatorEvent: r,
|
|
2497
2497
|
draggableNodes: o
|
|
2498
|
-
} = ze(
|
|
2498
|
+
} = ze(Bt), s = ln(r), i = ln(n?.id);
|
|
2499
2499
|
return A(() => {
|
|
2500
2500
|
if (!t && !r && s && i != null) {
|
|
2501
2501
|
if (!bn(s) || document.activeElement === s.target)
|
|
@@ -2534,18 +2534,18 @@ function $s(e, t) {
|
|
|
2534
2534
|
}), n) : n;
|
|
2535
2535
|
}
|
|
2536
2536
|
function Ps(e) {
|
|
2537
|
-
return
|
|
2537
|
+
return M(
|
|
2538
2538
|
() => ({
|
|
2539
2539
|
draggable: {
|
|
2540
|
-
...
|
|
2540
|
+
...It.draggable,
|
|
2541
2541
|
...e?.draggable
|
|
2542
2542
|
},
|
|
2543
2543
|
droppable: {
|
|
2544
|
-
...
|
|
2544
|
+
...It.droppable,
|
|
2545
2545
|
...e?.droppable
|
|
2546
2546
|
},
|
|
2547
2547
|
dragOverlay: {
|
|
2548
|
-
...
|
|
2548
|
+
...It.dragOverlay,
|
|
2549
2549
|
...e?.dragOverlay
|
|
2550
2550
|
}
|
|
2551
2551
|
}),
|
|
@@ -2560,14 +2560,14 @@ function zs(e) {
|
|
|
2560
2560
|
initialRect: r,
|
|
2561
2561
|
config: o = !0
|
|
2562
2562
|
} = e;
|
|
2563
|
-
const s =
|
|
2563
|
+
const s = N(!1), {
|
|
2564
2564
|
x: i,
|
|
2565
2565
|
y: l
|
|
2566
2566
|
} = typeof o == "boolean" ? {
|
|
2567
2567
|
x: o,
|
|
2568
2568
|
y: o
|
|
2569
2569
|
} : o;
|
|
2570
|
-
|
|
2570
|
+
Se(() => {
|
|
2571
2571
|
if (!i && !l || !t) {
|
|
2572
2572
|
s.current = !1;
|
|
2573
2573
|
return;
|
|
@@ -2592,10 +2592,10 @@ const Ir = /* @__PURE__ */ ht({
|
|
|
2592
2592
|
scaleX: 1,
|
|
2593
2593
|
scaleY: 1
|
|
2594
2594
|
});
|
|
2595
|
-
var
|
|
2595
|
+
var Ne;
|
|
2596
2596
|
(function(e) {
|
|
2597
2597
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2598
|
-
})(
|
|
2598
|
+
})(Ne || (Ne = {}));
|
|
2599
2599
|
const Ar = /* @__PURE__ */ eo(function(t) {
|
|
2600
2600
|
var n, r, o, s;
|
|
2601
2601
|
let {
|
|
@@ -2604,12 +2604,12 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2604
2604
|
autoScroll: c = !0,
|
|
2605
2605
|
children: u,
|
|
2606
2606
|
sensors: f = Ts,
|
|
2607
|
-
collisionDetection: h =
|
|
2607
|
+
collisionDetection: h = Bo,
|
|
2608
2608
|
measuring: m,
|
|
2609
2609
|
modifiers: g,
|
|
2610
2610
|
...v
|
|
2611
2611
|
} = t;
|
|
2612
|
-
const d = to(
|
|
2612
|
+
const d = to(Ns, void 0, Ms), [b, x] = d, [w, S] = Ao(), [C, j] = G(Ne.Uninitialized), D = C === Ne.Initialized, {
|
|
2613
2613
|
draggable: {
|
|
2614
2614
|
active: E,
|
|
2615
2615
|
nodes: _,
|
|
@@ -2618,18 +2618,18 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2618
2618
|
droppable: {
|
|
2619
2619
|
containers: F
|
|
2620
2620
|
}
|
|
2621
|
-
} = b, L = E != null ? _.get(E) : null, Z =
|
|
2621
|
+
} = b, L = E != null ? _.get(E) : null, Z = N({
|
|
2622
2622
|
initial: null,
|
|
2623
2623
|
translated: null
|
|
2624
|
-
}),
|
|
2625
|
-
var
|
|
2624
|
+
}), te = M(() => {
|
|
2625
|
+
var K;
|
|
2626
2626
|
return E != null ? {
|
|
2627
2627
|
id: E,
|
|
2628
2628
|
// It's possible for the active node to unmount while dragging
|
|
2629
|
-
data: (
|
|
2629
|
+
data: (K = L?.data) != null ? K : Is,
|
|
2630
2630
|
rect: Z
|
|
2631
2631
|
} : null;
|
|
2632
|
-
}, [E, L]), le =
|
|
2632
|
+
}, [E, L]), le = N(null), [De, $e] = G(null), [X, Pe] = G(null), ce = dt(v, Object.values(v)), Oe = xt("DndDescribedBy", i), p = M(() => F.getEnabled(), [F]), R = Ps(m), {
|
|
2633
2633
|
droppableRects: O,
|
|
2634
2634
|
measureDroppableContainers: k,
|
|
2635
2635
|
measuringScheduled: ve
|
|
@@ -2637,17 +2637,17 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2637
2637
|
dragging: D,
|
|
2638
2638
|
dependencies: [$.x, $.y],
|
|
2639
2639
|
config: R.droppable
|
|
2640
|
-
}),
|
|
2640
|
+
}), q = vs(_, E), P = M(() => X ? cn(X) : null, [X]), Q = Zr(), oe = xs(q, R.draggable.measure);
|
|
2641
2641
|
zs({
|
|
2642
2642
|
activeNode: E != null ? _.get(E) : null,
|
|
2643
2643
|
config: Q.layoutShiftCompensation,
|
|
2644
|
-
initialRect:
|
|
2644
|
+
initialRect: oe,
|
|
2645
2645
|
measure: R.draggable.measure
|
|
2646
2646
|
});
|
|
2647
|
-
const I = Zn(
|
|
2647
|
+
const I = Zn(q, R.draggable.measure, oe), Qe = Zn(q ? q.parentElement : null), be = N({
|
|
2648
2648
|
activatorEvent: null,
|
|
2649
2649
|
active: null,
|
|
2650
|
-
activeNode:
|
|
2650
|
+
activeNode: q,
|
|
2651
2651
|
collisionRect: null,
|
|
2652
2652
|
collisions: null,
|
|
2653
2653
|
droppableRects: O,
|
|
@@ -2658,46 +2658,46 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2658
2658
|
over: null,
|
|
2659
2659
|
scrollableAncestors: [],
|
|
2660
2660
|
scrollAdjustedTranslate: null
|
|
2661
|
-
}), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id),
|
|
2661
|
+
}), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), Ee = Os({
|
|
2662
2662
|
measure: R.dragOverlay.measure
|
|
2663
|
-
}), Ye = (r =
|
|
2663
|
+
}), Ye = (r = Ee.nodeRef.current) != null ? r : q, Be = D ? (o = Ee.rect) != null ? o : I : null, Rn = !!(Ee.nodeRef.current && Ee.rect), Dn = Ss(Rn ? null : I), Wt = Or(Ye ? re(Ye) : null), Te = Cs(D ? Ve ?? q : null), yt = js(Te), wt = $s(g, {
|
|
2664
2664
|
transform: {
|
|
2665
2665
|
x: $.x - Dn.x,
|
|
2666
2666
|
y: $.y - Dn.y,
|
|
2667
2667
|
scaleX: 1,
|
|
2668
2668
|
scaleY: 1
|
|
2669
2669
|
},
|
|
2670
|
-
activatorEvent:
|
|
2671
|
-
active:
|
|
2670
|
+
activatorEvent: X,
|
|
2671
|
+
active: te,
|
|
2672
2672
|
activeNodeRect: I,
|
|
2673
2673
|
containerNodeRect: Qe,
|
|
2674
|
-
draggingNodeRect:
|
|
2674
|
+
draggingNodeRect: Be,
|
|
2675
2675
|
over: be.current.over,
|
|
2676
|
-
overlayNodeRect:
|
|
2676
|
+
overlayNodeRect: Ee.rect,
|
|
2677
2677
|
scrollableAncestors: Te,
|
|
2678
2678
|
scrollableAncestorRects: yt,
|
|
2679
|
-
windowRect:
|
|
2680
|
-
}), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]),
|
|
2681
|
-
active:
|
|
2679
|
+
windowRect: Wt
|
|
2680
|
+
}), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), He = Xe(wt, Wr), We = Be ? Uo(Be, wt) : null, et = te && We ? h({
|
|
2681
|
+
active: te,
|
|
2682
2682
|
collisionRect: We,
|
|
2683
2683
|
droppableRects: O,
|
|
2684
2684
|
droppableContainers: p,
|
|
2685
2685
|
pointerCoordinates: En
|
|
2686
|
-
}) : null, _n = Vo(et, "id"), [Ie, On] =
|
|
2687
|
-
(
|
|
2686
|
+
}) : null, _n = Vo(et, "id"), [Ie, On] = G(null), Gr = Rn ? wt : Xe(wt, Ur), Xr = Ho(Gr, (s = Ie?.rect) != null ? s : null, I), Ut = N(null), Tn = J(
|
|
2687
|
+
(K, se) => {
|
|
2688
2688
|
let {
|
|
2689
|
-
sensor:
|
|
2689
|
+
sensor: ie,
|
|
2690
2690
|
options: Ae
|
|
2691
|
-
} =
|
|
2691
|
+
} = se;
|
|
2692
2692
|
if (le.current == null)
|
|
2693
2693
|
return;
|
|
2694
2694
|
const ue = _.get(le.current);
|
|
2695
2695
|
if (!ue)
|
|
2696
2696
|
return;
|
|
2697
|
-
const
|
|
2697
|
+
const ae = K.nativeEvent, me = new ie({
|
|
2698
2698
|
active: le.current,
|
|
2699
2699
|
activeNode: ue,
|
|
2700
|
-
event:
|
|
2700
|
+
event: ae,
|
|
2701
2701
|
options: Ae,
|
|
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
|
|
@@ -2707,28 +2707,28 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2707
2707
|
return;
|
|
2708
2708
|
const {
|
|
2709
2709
|
onDragAbort: xe
|
|
2710
|
-
} = ce.current,
|
|
2710
|
+
} = ce.current, je = {
|
|
2711
2711
|
id: W
|
|
2712
2712
|
};
|
|
2713
|
-
xe?.(
|
|
2713
|
+
xe?.(je), w({
|
|
2714
2714
|
type: "onDragAbort",
|
|
2715
|
-
event:
|
|
2715
|
+
event: je
|
|
2716
2716
|
});
|
|
2717
2717
|
},
|
|
2718
|
-
onPending(W, ke, xe,
|
|
2718
|
+
onPending(W, ke, xe, je) {
|
|
2719
2719
|
if (!_.get(W))
|
|
2720
2720
|
return;
|
|
2721
2721
|
const {
|
|
2722
2722
|
onDragPending: nt
|
|
2723
|
-
} = ce.current,
|
|
2723
|
+
} = ce.current, Me = {
|
|
2724
2724
|
id: W,
|
|
2725
2725
|
constraint: ke,
|
|
2726
2726
|
initialCoordinates: xe,
|
|
2727
|
-
offset:
|
|
2727
|
+
offset: je
|
|
2728
2728
|
};
|
|
2729
|
-
nt?.(
|
|
2729
|
+
nt?.(Me), w({
|
|
2730
2730
|
type: "onDragPending",
|
|
2731
|
-
event:
|
|
2731
|
+
event: Me
|
|
2732
2732
|
});
|
|
2733
2733
|
},
|
|
2734
2734
|
onStart(W) {
|
|
@@ -2739,9 +2739,9 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2739
2739
|
if (!xe)
|
|
2740
2740
|
return;
|
|
2741
2741
|
const {
|
|
2742
|
-
onDragStart:
|
|
2742
|
+
onDragStart: je
|
|
2743
2743
|
} = ce.current, tt = {
|
|
2744
|
-
activatorEvent:
|
|
2744
|
+
activatorEvent: ae,
|
|
2745
2745
|
active: {
|
|
2746
2746
|
id: ke,
|
|
2747
2747
|
data: xe.data,
|
|
@@ -2749,14 +2749,14 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
2751
|
St(() => {
|
|
2752
|
-
|
|
2752
|
+
je?.(tt), j(Ne.Initializing), x({
|
|
2753
2753
|
type: Y.DragStart,
|
|
2754
2754
|
initialCoordinates: W,
|
|
2755
2755
|
active: ke
|
|
2756
2756
|
}), w({
|
|
2757
2757
|
type: "onDragStart",
|
|
2758
2758
|
event: tt
|
|
2759
|
-
}), $e(
|
|
2759
|
+
}), $e(Ut.current), Pe(ae);
|
|
2760
2760
|
});
|
|
2761
2761
|
},
|
|
2762
2762
|
onMove(W) {
|
|
@@ -2768,38 +2768,38 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2768
2768
|
onEnd: Ue(Y.DragEnd),
|
|
2769
2769
|
onCancel: Ue(Y.DragCancel)
|
|
2770
2770
|
});
|
|
2771
|
-
|
|
2771
|
+
Ut.current = me;
|
|
2772
2772
|
function Ue(W) {
|
|
2773
2773
|
return async function() {
|
|
2774
2774
|
const {
|
|
2775
2775
|
active: xe,
|
|
2776
|
-
collisions:
|
|
2776
|
+
collisions: je,
|
|
2777
2777
|
over: tt,
|
|
2778
2778
|
scrollAdjustedTranslate: nt
|
|
2779
2779
|
} = be.current;
|
|
2780
|
-
let
|
|
2780
|
+
let Me = null;
|
|
2781
2781
|
if (xe && nt) {
|
|
2782
2782
|
const {
|
|
2783
2783
|
cancelDrop: rt
|
|
2784
2784
|
} = ce.current;
|
|
2785
|
-
|
|
2786
|
-
activatorEvent:
|
|
2785
|
+
Me = {
|
|
2786
|
+
activatorEvent: ae,
|
|
2787
2787
|
active: xe,
|
|
2788
|
-
collisions:
|
|
2788
|
+
collisions: je,
|
|
2789
2789
|
delta: nt,
|
|
2790
2790
|
over: tt
|
|
2791
|
-
}, W === Y.DragEnd && typeof rt == "function" && await Promise.resolve(rt(
|
|
2791
|
+
}, W === Y.DragEnd && typeof rt == "function" && await Promise.resolve(rt(Me)) && (W = Y.DragCancel);
|
|
2792
2792
|
}
|
|
2793
2793
|
le.current = null, St(() => {
|
|
2794
2794
|
x({
|
|
2795
2795
|
type: W
|
|
2796
|
-
}), j(
|
|
2796
|
+
}), j(Ne.Uninitialized), On(null), $e(null), Pe(null), Ut.current = null;
|
|
2797
2797
|
const rt = W === Y.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2798
|
-
if (
|
|
2799
|
-
const
|
|
2800
|
-
|
|
2798
|
+
if (Me) {
|
|
2799
|
+
const Gt = ce.current[rt];
|
|
2800
|
+
Gt?.(Me), w({
|
|
2801
2801
|
type: rt,
|
|
2802
|
-
event:
|
|
2802
|
+
event: Me
|
|
2803
2803
|
});
|
|
2804
2804
|
}
|
|
2805
2805
|
});
|
|
@@ -2808,77 +2808,77 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2808
2808
|
},
|
|
2809
2809
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2810
2810
|
[_]
|
|
2811
|
-
), qr = J((
|
|
2812
|
-
const ue =
|
|
2811
|
+
), qr = J((K, se) => (ie, Ae) => {
|
|
2812
|
+
const ue = ie.nativeEvent, ae = _.get(Ae);
|
|
2813
2813
|
if (
|
|
2814
2814
|
// Another sensor is already instantiating
|
|
2815
2815
|
le.current !== null || // No active draggable
|
|
2816
|
-
!
|
|
2816
|
+
!ae || // Event has already been captured
|
|
2817
2817
|
ue.dndKit || ue.defaultPrevented
|
|
2818
2818
|
)
|
|
2819
2819
|
return;
|
|
2820
2820
|
const me = {
|
|
2821
|
-
active:
|
|
2821
|
+
active: ae
|
|
2822
2822
|
};
|
|
2823
|
-
|
|
2824
|
-
capturedBy:
|
|
2825
|
-
}, le.current = Ae, Tn(
|
|
2823
|
+
K(ie, se.options, me) === !0 && (ue.dndKit = {
|
|
2824
|
+
capturedBy: se.sensor
|
|
2825
|
+
}, le.current = Ae, Tn(ie, se));
|
|
2826
2826
|
}, [_, Tn]), In = bs(f, qr);
|
|
2827
|
-
Ds(f),
|
|
2828
|
-
I && C ===
|
|
2827
|
+
Ds(f), Se(() => {
|
|
2828
|
+
I && C === Ne.Initializing && j(Ne.Initialized);
|
|
2829
2829
|
}, [I, C]), A(
|
|
2830
2830
|
() => {
|
|
2831
2831
|
const {
|
|
2832
|
-
onDragMove:
|
|
2832
|
+
onDragMove: K
|
|
2833
2833
|
} = ce.current, {
|
|
2834
|
-
active:
|
|
2835
|
-
activatorEvent:
|
|
2834
|
+
active: se,
|
|
2835
|
+
activatorEvent: ie,
|
|
2836
2836
|
collisions: Ae,
|
|
2837
2837
|
over: ue
|
|
2838
2838
|
} = be.current;
|
|
2839
|
-
if (!
|
|
2839
|
+
if (!se || !ie)
|
|
2840
2840
|
return;
|
|
2841
|
-
const
|
|
2842
|
-
active:
|
|
2843
|
-
activatorEvent:
|
|
2841
|
+
const ae = {
|
|
2842
|
+
active: se,
|
|
2843
|
+
activatorEvent: ie,
|
|
2844
2844
|
collisions: Ae,
|
|
2845
2845
|
delta: {
|
|
2846
|
-
x:
|
|
2847
|
-
y:
|
|
2846
|
+
x: He.x,
|
|
2847
|
+
y: He.y
|
|
2848
2848
|
},
|
|
2849
2849
|
over: ue
|
|
2850
2850
|
};
|
|
2851
2851
|
St(() => {
|
|
2852
|
-
|
|
2852
|
+
K?.(ae), w({
|
|
2853
2853
|
type: "onDragMove",
|
|
2854
|
-
event:
|
|
2854
|
+
event: ae
|
|
2855
2855
|
});
|
|
2856
2856
|
});
|
|
2857
2857
|
},
|
|
2858
2858
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2859
|
-
[
|
|
2859
|
+
[He.x, He.y]
|
|
2860
2860
|
), A(
|
|
2861
2861
|
() => {
|
|
2862
2862
|
const {
|
|
2863
|
-
active:
|
|
2864
|
-
activatorEvent:
|
|
2865
|
-
collisions:
|
|
2863
|
+
active: K,
|
|
2864
|
+
activatorEvent: se,
|
|
2865
|
+
collisions: ie,
|
|
2866
2866
|
droppableContainers: Ae,
|
|
2867
2867
|
scrollAdjustedTranslate: ue
|
|
2868
2868
|
} = be.current;
|
|
2869
|
-
if (!
|
|
2869
|
+
if (!K || le.current == null || !se || !ue)
|
|
2870
2870
|
return;
|
|
2871
2871
|
const {
|
|
2872
|
-
onDragOver:
|
|
2872
|
+
onDragOver: ae
|
|
2873
2873
|
} = ce.current, me = Ae.get(_n), Ue = me && me.rect.current ? {
|
|
2874
2874
|
id: me.id,
|
|
2875
2875
|
rect: me.rect.current,
|
|
2876
2876
|
data: me.data,
|
|
2877
2877
|
disabled: me.disabled
|
|
2878
2878
|
} : null, W = {
|
|
2879
|
-
active:
|
|
2880
|
-
activatorEvent:
|
|
2881
|
-
collisions:
|
|
2879
|
+
active: K,
|
|
2880
|
+
activatorEvent: se,
|
|
2881
|
+
collisions: ie,
|
|
2882
2882
|
delta: {
|
|
2883
2883
|
x: ue.x,
|
|
2884
2884
|
y: ue.y
|
|
@@ -2886,7 +2886,7 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2886
2886
|
over: Ue
|
|
2887
2887
|
};
|
|
2888
2888
|
St(() => {
|
|
2889
|
-
On(Ue),
|
|
2889
|
+
On(Ue), ae?.(W), w({
|
|
2890
2890
|
type: "onDragOver",
|
|
2891
2891
|
event: W
|
|
2892
2892
|
});
|
|
@@ -2894,26 +2894,26 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2894
2894
|
},
|
|
2895
2895
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2896
2896
|
[_n]
|
|
2897
|
-
),
|
|
2897
|
+
), Se(() => {
|
|
2898
2898
|
be.current = {
|
|
2899
|
-
activatorEvent:
|
|
2900
|
-
active:
|
|
2901
|
-
activeNode:
|
|
2899
|
+
activatorEvent: X,
|
|
2900
|
+
active: te,
|
|
2901
|
+
activeNode: q,
|
|
2902
2902
|
collisionRect: We,
|
|
2903
2903
|
collisions: et,
|
|
2904
2904
|
droppableRects: O,
|
|
2905
2905
|
draggableNodes: _,
|
|
2906
2906
|
draggingNode: Ye,
|
|
2907
|
-
draggingNodeRect:
|
|
2907
|
+
draggingNodeRect: Be,
|
|
2908
2908
|
droppableContainers: F,
|
|
2909
2909
|
over: Ie,
|
|
2910
2910
|
scrollableAncestors: Te,
|
|
2911
|
-
scrollAdjustedTranslate:
|
|
2911
|
+
scrollAdjustedTranslate: He
|
|
2912
2912
|
}, Z.current = {
|
|
2913
|
-
initial:
|
|
2913
|
+
initial: Be,
|
|
2914
2914
|
translated: We
|
|
2915
2915
|
};
|
|
2916
|
-
}, [
|
|
2916
|
+
}, [te, q, et, We, _, Ye, Be, O, F, Ie, Te, He]), hs({
|
|
2917
2917
|
...Q,
|
|
2918
2918
|
delta: $,
|
|
2919
2919
|
draggingRect: We,
|
|
@@ -2921,14 +2921,14 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2921
2921
|
scrollableAncestors: Te,
|
|
2922
2922
|
scrollableAncestorRects: yt
|
|
2923
2923
|
});
|
|
2924
|
-
const Kr =
|
|
2925
|
-
active:
|
|
2926
|
-
activeNode:
|
|
2924
|
+
const Kr = M(() => ({
|
|
2925
|
+
active: te,
|
|
2926
|
+
activeNode: q,
|
|
2927
2927
|
activeNodeRect: I,
|
|
2928
|
-
activatorEvent:
|
|
2928
|
+
activatorEvent: X,
|
|
2929
2929
|
collisions: et,
|
|
2930
2930
|
containerNodeRect: Qe,
|
|
2931
|
-
dragOverlay:
|
|
2931
|
+
dragOverlay: Ee,
|
|
2932
2932
|
draggableNodes: _,
|
|
2933
2933
|
droppableContainers: F,
|
|
2934
2934
|
droppableRects: O,
|
|
@@ -2938,11 +2938,11 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2938
2938
|
scrollableAncestorRects: yt,
|
|
2939
2939
|
measuringConfiguration: R,
|
|
2940
2940
|
measuringScheduled: ve,
|
|
2941
|
-
windowRect:
|
|
2942
|
-
}), [
|
|
2943
|
-
activatorEvent:
|
|
2941
|
+
windowRect: Wt
|
|
2942
|
+
}), [te, q, I, X, et, Qe, Ee, _, F, O, Ie, k, Te, yt, R, ve, Wt]), Jr = M(() => ({
|
|
2943
|
+
activatorEvent: X,
|
|
2944
2944
|
activators: In,
|
|
2945
|
-
active:
|
|
2945
|
+
active: te,
|
|
2946
2946
|
activeNodeRect: I,
|
|
2947
2947
|
ariaDescribedById: {
|
|
2948
2948
|
draggable: Oe
|
|
@@ -2951,28 +2951,28 @@ const Ar = /* @__PURE__ */ eo(function(t) {
|
|
|
2951
2951
|
draggableNodes: _,
|
|
2952
2952
|
over: Ie,
|
|
2953
2953
|
measureDroppableContainers: k
|
|
2954
|
-
}), [
|
|
2955
|
-
return
|
|
2954
|
+
}), [X, In, te, I, x, Oe, _, Ie, k]);
|
|
2955
|
+
return B.createElement(br.Provider, {
|
|
2956
2956
|
value: S
|
|
2957
|
-
},
|
|
2957
|
+
}, B.createElement(Bt.Provider, {
|
|
2958
2958
|
value: Jr
|
|
2959
|
-
},
|
|
2959
|
+
}, B.createElement(Tr.Provider, {
|
|
2960
2960
|
value: Kr
|
|
2961
|
-
},
|
|
2961
|
+
}, B.createElement(Ir.Provider, {
|
|
2962
2962
|
value: Xr
|
|
2963
|
-
}, u)),
|
|
2963
|
+
}, u)), B.createElement(Ls, {
|
|
2964
2964
|
disabled: l?.restoreFocus === !1
|
|
2965
|
-
})),
|
|
2965
|
+
})), B.createElement(No, {
|
|
2966
2966
|
...l,
|
|
2967
2967
|
hiddenTextDescribedById: Oe
|
|
2968
2968
|
}));
|
|
2969
2969
|
function Zr() {
|
|
2970
|
-
const
|
|
2970
|
+
const K = De?.autoScrollEnabled === !1, se = typeof c == "object" ? c.enabled === !1 : c === !1, ie = D && !K && !se;
|
|
2971
2971
|
return typeof c == "object" ? {
|
|
2972
2972
|
...c,
|
|
2973
|
-
enabled:
|
|
2973
|
+
enabled: ie
|
|
2974
2974
|
} : {
|
|
2975
|
-
enabled:
|
|
2975
|
+
enabled: ie
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
2978
|
}), Fs = /* @__PURE__ */ ht(null), nr = "button", Vs = "Draggable";
|
|
@@ -2991,12 +2991,12 @@ function Ys(e) {
|
|
|
2991
2991
|
ariaDescribedById: f,
|
|
2992
2992
|
draggableNodes: h,
|
|
2993
2993
|
over: m
|
|
2994
|
-
} = ze(
|
|
2994
|
+
} = ze(Bt), {
|
|
2995
2995
|
role: g = nr,
|
|
2996
2996
|
roleDescription: v = "draggable",
|
|
2997
2997
|
tabIndex: d = 0
|
|
2998
|
-
} = o ?? {}, b = c?.id === t, x = ze(b ? Ir : Fs), [w, S] =
|
|
2999
|
-
|
|
2998
|
+
} = o ?? {}, b = c?.id === t, x = ze(b ? Ir : Fs), [w, S] = Mt(), [C, j] = Mt(), D = Es(i, t), E = dt(n);
|
|
2999
|
+
Se(
|
|
3000
3000
|
() => (h.set(t, {
|
|
3001
3001
|
id: t,
|
|
3002
3002
|
key: s,
|
|
@@ -3010,7 +3010,7 @@ function Ys(e) {
|
|
|
3010
3010
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3011
3011
|
[h, t]
|
|
3012
3012
|
);
|
|
3013
|
-
const _ =
|
|
3013
|
+
const _ = M(() => ({
|
|
3014
3014
|
role: g,
|
|
3015
3015
|
tabIndex: d,
|
|
3016
3016
|
"aria-disabled": r,
|
|
@@ -3032,10 +3032,10 @@ function Ys(e) {
|
|
|
3032
3032
|
transform: x
|
|
3033
3033
|
};
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3035
|
+
function Bs() {
|
|
3036
3036
|
return ze(Tr);
|
|
3037
3037
|
}
|
|
3038
|
-
const
|
|
3038
|
+
const Hs = "Droppable", Ws = {
|
|
3039
3039
|
timeout: 25
|
|
3040
3040
|
};
|
|
3041
3041
|
function Us(e) {
|
|
@@ -3045,14 +3045,14 @@ function Us(e) {
|
|
|
3045
3045
|
id: r,
|
|
3046
3046
|
resizeObserverConfig: o
|
|
3047
3047
|
} = e;
|
|
3048
|
-
const s = xt(
|
|
3048
|
+
const s = xt(Hs), {
|
|
3049
3049
|
active: i,
|
|
3050
3050
|
dispatch: l,
|
|
3051
3051
|
over: c,
|
|
3052
3052
|
measureDroppableContainers: u
|
|
3053
|
-
} = ze(
|
|
3053
|
+
} = ze(Bt), f = N({
|
|
3054
3054
|
disabled: n
|
|
3055
|
-
}), h =
|
|
3055
|
+
}), h = N(!1), m = N(null), g = N(null), {
|
|
3056
3056
|
disabled: v,
|
|
3057
3057
|
updateMeasurementsFor: d,
|
|
3058
3058
|
timeout: b
|
|
@@ -3071,12 +3071,12 @@ function Us(e) {
|
|
|
3071
3071
|
},
|
|
3072
3072
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3073
3073
|
[b]
|
|
3074
|
-
), S =
|
|
3074
|
+
), S = Yt({
|
|
3075
3075
|
callback: w,
|
|
3076
3076
|
disabled: v || !i
|
|
3077
3077
|
}), C = J((_, $) => {
|
|
3078
3078
|
S && ($ && (S.unobserve($), h.current = !1), _ && S.observe(_));
|
|
3079
|
-
}, [S]), [j, D] =
|
|
3079
|
+
}, [S]), [j, D] = Mt(C), E = dt(t);
|
|
3080
3080
|
return A(() => {
|
|
3081
3081
|
!S || !j.current || (S.disconnect(), h.current = !1, S.observe(j.current));
|
|
3082
3082
|
}, [j, S]), A(
|
|
@@ -3240,9 +3240,9 @@ function Qs(e, t, n) {
|
|
|
3240
3240
|
const r = e[t], o = e[t - 1], s = e[t + 1];
|
|
3241
3241
|
return r ? n < t ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
3242
3242
|
}
|
|
3243
|
-
const
|
|
3243
|
+
const Mr = "Sortable", Nr = /* @__PURE__ */ B.createContext({
|
|
3244
3244
|
activeIndex: -1,
|
|
3245
|
-
containerId:
|
|
3245
|
+
containerId: Mr,
|
|
3246
3246
|
disableTransforms: !1,
|
|
3247
3247
|
items: [],
|
|
3248
3248
|
overIndex: -1,
|
|
@@ -3268,13 +3268,13 @@ function Lr(e) {
|
|
|
3268
3268
|
droppableRects: c,
|
|
3269
3269
|
over: u,
|
|
3270
3270
|
measureDroppableContainers: f
|
|
3271
|
-
} =
|
|
3272
|
-
|
|
3271
|
+
} = Bs(), h = xt(Mr, n), m = l.rect !== null, g = M(() => r.map((D) => typeof D == "object" && "id" in D ? D.id : D), [r]), v = i != null, d = i ? g.indexOf(i.id) : -1, b = u ? g.indexOf(u.id) : -1, x = N(g), w = !Xs(g, x.current), S = b !== -1 && d === -1 || w, C = qs(s);
|
|
3272
|
+
Se(() => {
|
|
3273
3273
|
w && v && f(g);
|
|
3274
3274
|
}, [w, g, v, f]), A(() => {
|
|
3275
3275
|
x.current = g;
|
|
3276
3276
|
}, [g]);
|
|
3277
|
-
const j =
|
|
3277
|
+
const j = M(
|
|
3278
3278
|
() => ({
|
|
3279
3279
|
activeIndex: d,
|
|
3280
3280
|
containerId: h,
|
|
@@ -3289,7 +3289,7 @@ function Lr(e) {
|
|
|
3289
3289
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3290
3290
|
[d, h, C.draggable, C.droppable, S, g, b, c, m, o]
|
|
3291
3291
|
);
|
|
3292
|
-
return
|
|
3292
|
+
return B.createElement(Nr.Provider, {
|
|
3293
3293
|
value: j
|
|
3294
3294
|
}, t);
|
|
3295
3295
|
}
|
|
@@ -3331,8 +3331,8 @@ function si(e) {
|
|
|
3331
3331
|
node: r,
|
|
3332
3332
|
rect: o
|
|
3333
3333
|
} = e;
|
|
3334
|
-
const [s, i] =
|
|
3335
|
-
return
|
|
3334
|
+
const [s, i] = G(null), l = N(n);
|
|
3335
|
+
return Se(() => {
|
|
3336
3336
|
if (!t && n !== l.current && r.current) {
|
|
3337
3337
|
const c = o.current;
|
|
3338
3338
|
if (c) {
|
|
@@ -3374,14 +3374,14 @@ function Pr(e) {
|
|
|
3374
3374
|
overIndex: b,
|
|
3375
3375
|
useDragOverlay: x,
|
|
3376
3376
|
strategy: w
|
|
3377
|
-
} = ze(
|
|
3377
|
+
} = ze(Nr), S = ii(r, g), C = f.indexOf(i), j = M(() => ({
|
|
3378
3378
|
sortable: {
|
|
3379
3379
|
containerId: h,
|
|
3380
3380
|
index: C,
|
|
3381
3381
|
items: f
|
|
3382
3382
|
},
|
|
3383
3383
|
...o
|
|
3384
|
-
}), [h, o, C, f]), D =
|
|
3384
|
+
}), [h, o, C, f]), D = M(() => f.slice(f.indexOf(i)), [f, i]), {
|
|
3385
3385
|
rect: E,
|
|
3386
3386
|
node: _,
|
|
3387
3387
|
isOver: $,
|
|
@@ -3397,11 +3397,11 @@ function Pr(e) {
|
|
|
3397
3397
|
}), {
|
|
3398
3398
|
active: L,
|
|
3399
3399
|
activatorEvent: Z,
|
|
3400
|
-
activeNodeRect:
|
|
3400
|
+
activeNodeRect: te,
|
|
3401
3401
|
attributes: le,
|
|
3402
|
-
setNodeRef:
|
|
3402
|
+
setNodeRef: De,
|
|
3403
3403
|
listeners: $e,
|
|
3404
|
-
isDragging:
|
|
3404
|
+
isDragging: X,
|
|
3405
3405
|
over: Pe,
|
|
3406
3406
|
setActivatorNodeRef: ce,
|
|
3407
3407
|
transform: Oe
|
|
@@ -3413,9 +3413,9 @@ function Pr(e) {
|
|
|
3413
3413
|
...n
|
|
3414
3414
|
},
|
|
3415
3415
|
disabled: S.draggable
|
|
3416
|
-
}), p = So(F,
|
|
3416
|
+
}), p = So(F, De), R = !!L, O = R && !v && jt(m) && jt(b), k = !x && X, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
|
|
3417
3417
|
rects: d,
|
|
3418
|
-
activeNodeRect:
|
|
3418
|
+
activeNodeRect: te,
|
|
3419
3419
|
activeIndex: m,
|
|
3420
3420
|
overIndex: b,
|
|
3421
3421
|
index: C
|
|
@@ -3424,15 +3424,15 @@ function Pr(e) {
|
|
|
3424
3424
|
items: f,
|
|
3425
3425
|
activeIndex: m,
|
|
3426
3426
|
overIndex: b
|
|
3427
|
-
}) : C,
|
|
3428
|
-
activeId:
|
|
3427
|
+
}) : C, oe = L?.id, I = N({
|
|
3428
|
+
activeId: oe,
|
|
3429
3429
|
items: f,
|
|
3430
3430
|
newIndex: Q,
|
|
3431
3431
|
containerId: h
|
|
3432
3432
|
}), Qe = f !== I.current.items, be = t({
|
|
3433
3433
|
active: L,
|
|
3434
3434
|
containerId: h,
|
|
3435
|
-
isDragging:
|
|
3435
|
+
isDragging: X,
|
|
3436
3436
|
isSorting: R,
|
|
3437
3437
|
id: i,
|
|
3438
3438
|
index: C,
|
|
@@ -3451,17 +3451,17 @@ function Pr(e) {
|
|
|
3451
3451
|
return A(() => {
|
|
3452
3452
|
R && I.current.newIndex !== Q && (I.current.newIndex = Q), h !== I.current.containerId && (I.current.containerId = h), f !== I.current.items && (I.current.items = f);
|
|
3453
3453
|
}, [R, Q, h, f]), A(() => {
|
|
3454
|
-
if (
|
|
3454
|
+
if (oe === I.current.activeId)
|
|
3455
3455
|
return;
|
|
3456
|
-
if (
|
|
3457
|
-
I.current.activeId =
|
|
3456
|
+
if (oe != null && I.current.activeId == null) {
|
|
3457
|
+
I.current.activeId = oe;
|
|
3458
3458
|
return;
|
|
3459
3459
|
}
|
|
3460
3460
|
const Ye = setTimeout(() => {
|
|
3461
|
-
I.current.activeId =
|
|
3461
|
+
I.current.activeId = oe;
|
|
3462
3462
|
}, 50);
|
|
3463
3463
|
return () => clearTimeout(Ye);
|
|
3464
|
-
}, [
|
|
3464
|
+
}, [oe]), {
|
|
3465
3465
|
active: L,
|
|
3466
3466
|
activeIndex: m,
|
|
3467
3467
|
attributes: le,
|
|
@@ -3472,7 +3472,7 @@ function Pr(e) {
|
|
|
3472
3472
|
items: f,
|
|
3473
3473
|
isOver: $,
|
|
3474
3474
|
isSorting: R,
|
|
3475
|
-
isDragging:
|
|
3475
|
+
isDragging: X,
|
|
3476
3476
|
listeners: $e,
|
|
3477
3477
|
node: _,
|
|
3478
3478
|
overIndex: b,
|
|
@@ -3480,11 +3480,11 @@ function Pr(e) {
|
|
|
3480
3480
|
setNodeRef: p,
|
|
3481
3481
|
setActivatorNodeRef: ce,
|
|
3482
3482
|
setDroppableNodeRef: F,
|
|
3483
|
-
setDraggableNodeRef:
|
|
3483
|
+
setDraggableNodeRef: De,
|
|
3484
3484
|
transform: Ve ?? P,
|
|
3485
|
-
transition:
|
|
3485
|
+
transition: Ee()
|
|
3486
3486
|
};
|
|
3487
|
-
function
|
|
3487
|
+
function Ee() {
|
|
3488
3488
|
if (
|
|
3489
3489
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3490
3490
|
Ve || // Or to prevent items jumping to back to their "new" position when items change
|
|
@@ -3561,7 +3561,7 @@ const di = hn(
|
|
|
3561
3561
|
]
|
|
3562
3562
|
)
|
|
3563
3563
|
);
|
|
3564
|
-
const
|
|
3564
|
+
const ee = (e, t) => {
|
|
3565
3565
|
const n = hn(
|
|
3566
3566
|
({ className: r, ...o }, s) => sn(di, {
|
|
3567
3567
|
ref: s,
|
|
@@ -3579,32 +3579,32 @@ const ne = (e, t) => {
|
|
|
3579
3579
|
const fi = [
|
|
3580
3580
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3581
3581
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3582
|
-
], hi =
|
|
3582
|
+
], hi = ee("arrow-down", fi);
|
|
3583
3583
|
const gi = [
|
|
3584
3584
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
3585
3585
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
3586
3586
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3587
3587
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
3588
|
-
], pi =
|
|
3588
|
+
], pi = ee("arrow-up-down", gi);
|
|
3589
3589
|
const vi = [
|
|
3590
3590
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3591
3591
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3592
|
-
], bi =
|
|
3592
|
+
], bi = ee("arrow-up", vi);
|
|
3593
3593
|
const mi = [
|
|
3594
3594
|
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3595
|
-
], xi =
|
|
3595
|
+
], xi = ee("bookmark", mi);
|
|
3596
3596
|
const yi = [
|
|
3597
3597
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3598
3598
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3599
3599
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3600
3600
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3601
|
-
], or =
|
|
3602
|
-
const wi = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Si =
|
|
3603
|
-
const Ci = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ri =
|
|
3601
|
+
], or = ee("calendar", yi);
|
|
3602
|
+
const wi = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Si = ee("chevron-left", wi);
|
|
3603
|
+
const Ci = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ri = ee("chevron-right", Ci);
|
|
3604
3604
|
const Di = [
|
|
3605
3605
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3606
3606
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3607
|
-
], Ei =
|
|
3607
|
+
], Ei = ee("columns-2", Di);
|
|
3608
3608
|
const ji = [
|
|
3609
3609
|
[
|
|
3610
3610
|
"path",
|
|
@@ -3615,12 +3615,12 @@ const ji = [
|
|
|
3615
3615
|
],
|
|
3616
3616
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3617
3617
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3618
|
-
], _i =
|
|
3618
|
+
], _i = ee("delete", ji);
|
|
3619
3619
|
const Oi = [
|
|
3620
3620
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3621
3621
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3622
3622
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3623
|
-
], Ti =
|
|
3623
|
+
], Ti = ee("ellipsis", Oi);
|
|
3624
3624
|
const Ii = [
|
|
3625
3625
|
[
|
|
3626
3626
|
"path",
|
|
@@ -3629,7 +3629,7 @@ const Ii = [
|
|
|
3629
3629
|
key: "sc7q7i"
|
|
3630
3630
|
}
|
|
3631
3631
|
]
|
|
3632
|
-
], Ai =
|
|
3632
|
+
], Ai = ee("funnel", Ii);
|
|
3633
3633
|
const ki = [
|
|
3634
3634
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3635
3635
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
@@ -3637,8 +3637,8 @@ const ki = [
|
|
|
3637
3637
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3638
3638
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3639
3639
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3640
|
-
], Fr =
|
|
3641
|
-
const
|
|
3640
|
+
], Fr = ee("grip-vertical", ki);
|
|
3641
|
+
const Mi = [
|
|
3642
3642
|
[
|
|
3643
3643
|
"path",
|
|
3644
3644
|
{
|
|
@@ -3646,8 +3646,14 @@ const Ni = [
|
|
|
3646
3646
|
key: "1a8usu"
|
|
3647
3647
|
}
|
|
3648
3648
|
]
|
|
3649
|
-
],
|
|
3649
|
+
], Ni = ee("pen", Mi);
|
|
3650
3650
|
const Li = [
|
|
3651
|
+
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
3652
|
+
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
3653
|
+
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
3654
|
+
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
3655
|
+
], $i = ee("refresh-ccw", Li);
|
|
3656
|
+
const Pi = [
|
|
3651
3657
|
[
|
|
3652
3658
|
"path",
|
|
3653
3659
|
{
|
|
@@ -3656,7 +3662,7 @@ const Li = [
|
|
|
3656
3662
|
}
|
|
3657
3663
|
],
|
|
3658
3664
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3659
|
-
],
|
|
3665
|
+
], zi = ee("settings", Pi);
|
|
3660
3666
|
function y(e) {
|
|
3661
3667
|
return hn((t, n) => {
|
|
3662
3668
|
const { children: r, ...o } = t;
|
|
@@ -3666,19 +3672,19 @@ function y(e) {
|
|
|
3666
3672
|
);
|
|
3667
3673
|
});
|
|
3668
3674
|
}
|
|
3669
|
-
const Vr = (e) => `table_column_order_v1:${e}`,
|
|
3675
|
+
const Vr = (e) => `table_column_order_v1:${e}`, Fi = (e) => {
|
|
3670
3676
|
const { tableId: t } = fe.state;
|
|
3671
3677
|
localStorage.setItem(Vr(t), JSON.stringify(e.map((n) => n.id))), fe.setState((n) => ({
|
|
3672
3678
|
...n,
|
|
3673
3679
|
columnOrder: e
|
|
3674
3680
|
})), fe.setState((n) => ({ ...n, columnOrder: e }));
|
|
3675
|
-
},
|
|
3681
|
+
}, Vi = (e) => {
|
|
3676
3682
|
fe.setState((t) => ({
|
|
3677
3683
|
...t,
|
|
3678
3684
|
visibility: { ...t.visibility, [e]: !t.visibility[e] }
|
|
3679
3685
|
}));
|
|
3680
3686
|
};
|
|
3681
|
-
function
|
|
3687
|
+
function Yi(e) {
|
|
3682
3688
|
fe.setState((t) => t.sortColumn === e ? {
|
|
3683
3689
|
...t,
|
|
3684
3690
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
@@ -3698,7 +3704,7 @@ const fe = new gr({
|
|
|
3698
3704
|
sortableColumns: []
|
|
3699
3705
|
// ← FIXED
|
|
3700
3706
|
});
|
|
3701
|
-
function
|
|
3707
|
+
function Bi(e, t) {
|
|
3702
3708
|
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((c) => ({ id: c, label: c }))).filter(
|
|
3703
3709
|
(c) => Object.prototype.hasOwnProperty.call(n, c.id)
|
|
3704
3710
|
), { tableId: s } = fe.state, i = JSON.parse(
|
|
@@ -3719,28 +3725,28 @@ function Vi(e, t) {
|
|
|
3719
3725
|
}))
|
|
3720
3726
|
}));
|
|
3721
3727
|
}
|
|
3722
|
-
function
|
|
3728
|
+
function Hi(e) {
|
|
3723
3729
|
fe.setState((t) => ({
|
|
3724
3730
|
...t,
|
|
3725
3731
|
tableId: e
|
|
3726
3732
|
}));
|
|
3727
3733
|
}
|
|
3728
|
-
const
|
|
3729
|
-
function
|
|
3734
|
+
const Wi = y(Ce.Trigger), Ui = y(Ce.Positioner), Gi = y(Ce.Content), Xi = y(Ce.Item), qi = y(pe.Label), Ki = y(pe.HiddenInput), Ji = y(pe.Control);
|
|
3735
|
+
function Zi({ visibility: e, onToggle: t }) {
|
|
3730
3736
|
const { sortableColumns: n } = vt(fe);
|
|
3731
|
-
return /* @__PURE__ */ a.jsxs(
|
|
3732
|
-
/* @__PURE__ */ a.jsx(
|
|
3733
|
-
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(
|
|
3737
|
+
return /* @__PURE__ */ a.jsxs(Ce.Root, { closeOnSelect: !1, children: [
|
|
3738
|
+
/* @__PURE__ */ a.jsx(Wi, { asChild: !0, children: /* @__PURE__ */ a.jsx(we, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Ei, { size: 18 }) }) }),
|
|
3739
|
+
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(Ui, { children: /* @__PURE__ */ a.jsx(Gi, { minW: "220px", children: n.map((r) => {
|
|
3734
3740
|
const o = !!e[r.id];
|
|
3735
|
-
return /* @__PURE__ */ a.jsx(
|
|
3736
|
-
/* @__PURE__ */ a.jsx(
|
|
3737
|
-
/* @__PURE__ */ a.jsx(
|
|
3738
|
-
/* @__PURE__ */ a.jsx(
|
|
3741
|
+
return /* @__PURE__ */ a.jsx(Xi, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ a.jsxs(pe.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3742
|
+
/* @__PURE__ */ a.jsx(Ki, {}),
|
|
3743
|
+
/* @__PURE__ */ a.jsx(Ji, {}),
|
|
3744
|
+
/* @__PURE__ */ a.jsx(qi, { children: r.label })
|
|
3739
3745
|
] }) }, r.id);
|
|
3740
3746
|
}) }) }) })
|
|
3741
3747
|
] });
|
|
3742
3748
|
}
|
|
3743
|
-
function
|
|
3749
|
+
function Qi({
|
|
3744
3750
|
id: e,
|
|
3745
3751
|
children: t,
|
|
3746
3752
|
onClick: n,
|
|
@@ -3763,19 +3769,19 @@ function Ji({
|
|
|
3763
3769
|
borderRightColor: s
|
|
3764
3770
|
},
|
|
3765
3771
|
...l,
|
|
3766
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
3772
|
+
children: /* @__PURE__ */ a.jsxs(ne, { justify: "space-between", children: [
|
|
3767
3773
|
t,
|
|
3768
3774
|
/* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(Fr, { size: 12 }) })
|
|
3769
3775
|
] })
|
|
3770
3776
|
}
|
|
3771
3777
|
);
|
|
3772
3778
|
}
|
|
3773
|
-
function
|
|
3779
|
+
function ea() {
|
|
3774
3780
|
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = vt(fe), s = e.map((l) => o.find((c) => c.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), i = (l) => {
|
|
3775
3781
|
const { active: c, over: u } = l;
|
|
3776
3782
|
if (!u || c.id === u.id) return;
|
|
3777
3783
|
const f = e.findIndex((g) => g.id === c.id), h = e.findIndex((g) => g.id === u.id), m = Ht(e, f, h);
|
|
3778
|
-
|
|
3784
|
+
Fi(m);
|
|
3779
3785
|
};
|
|
3780
3786
|
return /* @__PURE__ */ a.jsx(ye.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ a.jsx(Ar, { collisionDetection: mr, onDragEnd: i, children: /* @__PURE__ */ a.jsx(
|
|
3781
3787
|
Lr,
|
|
@@ -3786,10 +3792,10 @@ function Zi() {
|
|
|
3786
3792
|
s.map((l, c) => {
|
|
3787
3793
|
const u = n === l?.id;
|
|
3788
3794
|
return /* @__PURE__ */ a.jsx(
|
|
3789
|
-
|
|
3795
|
+
Qi,
|
|
3790
3796
|
{
|
|
3791
3797
|
id: l?.id,
|
|
3792
|
-
onClick: () => l?.sortable &&
|
|
3798
|
+
onClick: () => l?.sortable && Yi(l?.id),
|
|
3793
3799
|
cursor: l?.sortable ? "pointer" : "default",
|
|
3794
3800
|
borderRight: "2px solid #dcdcdc",
|
|
3795
3801
|
children: /* @__PURE__ */ a.jsxs(
|
|
@@ -3812,7 +3818,7 @@ function Zi() {
|
|
|
3812
3818
|
);
|
|
3813
3819
|
}),
|
|
3814
3820
|
/* @__PURE__ */ a.jsx(ye.ColumnHeader, { borderRight: "2px solid #dcdcdc", children: "Actions" }),
|
|
3815
|
-
/* @__PURE__ */ a.jsx(ye.ColumnHeader, { boxSize: "0.5", children: /* @__PURE__ */ a.jsx(
|
|
3821
|
+
/* @__PURE__ */ a.jsx(ye.ColumnHeader, { boxSize: "0.5", children: /* @__PURE__ */ a.jsx(Zi, { visibility: t, onToggle: Vi }) })
|
|
3816
3822
|
] })
|
|
3817
3823
|
}
|
|
3818
3824
|
) }) });
|
|
@@ -3824,8 +3830,8 @@ const sr = cr({
|
|
|
3824
3830
|
{ label: "50", value: "50" },
|
|
3825
3831
|
{ label: "100", value: "100" }
|
|
3826
3832
|
]
|
|
3827
|
-
}),
|
|
3828
|
-
function
|
|
3833
|
+
}), ta = y(z.Positioner), na = y(z.Content), ra = y(z.Item), oa = y(At.PrevTrigger), sa = y(At.NextTrigger), ia = y(z.HiddenSelect), aa = y(z.Control), la = y(z.Trigger), ca = y(z.ValueText), ua = y(z.IndicatorGroup), da = y(z.Indicator);
|
|
3834
|
+
function fa({
|
|
3829
3835
|
totalCount: e,
|
|
3830
3836
|
pageSize: t,
|
|
3831
3837
|
currentPage: n,
|
|
@@ -3833,8 +3839,8 @@ function ua({
|
|
|
3833
3839
|
onPageSizeChange: o,
|
|
3834
3840
|
siblingCount: s = 2
|
|
3835
3841
|
}) {
|
|
3836
|
-
return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(
|
|
3837
|
-
/* @__PURE__ */ a.jsxs(
|
|
3842
|
+
return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(ne, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3843
|
+
/* @__PURE__ */ a.jsxs(ne, { children: [
|
|
3838
3844
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3839
3845
|
/* @__PURE__ */ a.jsxs(
|
|
3840
3846
|
z.Root,
|
|
@@ -3845,12 +3851,12 @@ function ua({
|
|
|
3845
3851
|
onValueChange: (i) => o && o(Number(i.items[0].value)),
|
|
3846
3852
|
value: [String(t)],
|
|
3847
3853
|
children: [
|
|
3848
|
-
/* @__PURE__ */ a.jsx(
|
|
3849
|
-
/* @__PURE__ */ a.jsxs(
|
|
3850
|
-
/* @__PURE__ */ a.jsx(
|
|
3851
|
-
/* @__PURE__ */ a.jsx(
|
|
3854
|
+
/* @__PURE__ */ a.jsx(ia, {}),
|
|
3855
|
+
/* @__PURE__ */ a.jsxs(aa, { children: [
|
|
3856
|
+
/* @__PURE__ */ a.jsx(la, { children: /* @__PURE__ */ a.jsx(ca, { placeholder: "" }) }),
|
|
3857
|
+
/* @__PURE__ */ a.jsx(ua, { children: /* @__PURE__ */ a.jsx(da, {}) })
|
|
3852
3858
|
] }),
|
|
3853
|
-
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(
|
|
3859
|
+
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ta, { children: /* @__PURE__ */ a.jsx(na, { children: sr.items.map((i) => /* @__PURE__ */ a.jsxs(ra, { item: i.value, children: [
|
|
3854
3860
|
i.label,
|
|
3855
3861
|
/* @__PURE__ */ a.jsx(z.ItemIndicator, {})
|
|
3856
3862
|
] }, i.value)) }) }) })
|
|
@@ -3859,7 +3865,7 @@ function ua({
|
|
|
3859
3865
|
)
|
|
3860
3866
|
] }),
|
|
3861
3867
|
/* @__PURE__ */ a.jsx(
|
|
3862
|
-
|
|
3868
|
+
At.Root,
|
|
3863
3869
|
{
|
|
3864
3870
|
count: e,
|
|
3865
3871
|
pageSize: t,
|
|
@@ -3867,12 +3873,12 @@ function ua({
|
|
|
3867
3873
|
siblingCount: s,
|
|
3868
3874
|
onPageChange: (i) => r && r(i.page),
|
|
3869
3875
|
children: /* @__PURE__ */ a.jsxs(no, { size: "sm", variant: "ghost", children: [
|
|
3870
|
-
/* @__PURE__ */ a.jsx(
|
|
3876
|
+
/* @__PURE__ */ a.jsx(oa, { asChild: !0, children: /* @__PURE__ */ a.jsx(we, { "aria-label": "Previous page", children: /* @__PURE__ */ a.jsx(Si, { size: 18 }) }) }),
|
|
3871
3877
|
/* @__PURE__ */ a.jsx(
|
|
3872
|
-
|
|
3878
|
+
At.Items,
|
|
3873
3879
|
{
|
|
3874
3880
|
render: (i) => /* @__PURE__ */ a.jsx(
|
|
3875
|
-
|
|
3881
|
+
we,
|
|
3876
3882
|
{
|
|
3877
3883
|
variant: i.type === "page" && i.value === n ? "outline" : "ghost",
|
|
3878
3884
|
"aria-current": i.type === "page" && i.value === n ? "page" : void 0,
|
|
@@ -3882,24 +3888,24 @@ function ua({
|
|
|
3882
3888
|
)
|
|
3883
3889
|
}
|
|
3884
3890
|
),
|
|
3885
|
-
/* @__PURE__ */ a.jsx(
|
|
3891
|
+
/* @__PURE__ */ a.jsx(sa, { asChild: !0, children: /* @__PURE__ */ a.jsx(we, { "aria-label": "Next page", children: /* @__PURE__ */ a.jsx(Ri, { size: 18 }) }) })
|
|
3886
3892
|
] })
|
|
3887
3893
|
}
|
|
3888
3894
|
)
|
|
3889
3895
|
] }) });
|
|
3890
3896
|
}
|
|
3891
|
-
const
|
|
3892
|
-
function
|
|
3897
|
+
const ha = y(Ce.Item), ga = y(Ce.Content), pa = y(Ce.Positioner), va = y(Ce.Trigger);
|
|
3898
|
+
function ba({
|
|
3893
3899
|
data: e = [],
|
|
3894
3900
|
actions: t = []
|
|
3895
3901
|
}) {
|
|
3896
3902
|
const { columnOrder: n, visibility: r } = vt(fe);
|
|
3897
3903
|
return /* @__PURE__ */ a.jsx(ye.Body, { children: e.map((o) => /* @__PURE__ */ a.jsxs(ye.Row, { children: [
|
|
3898
3904
|
n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ a.jsx(ye.Cell, { children: o[s.id] }, s.id)),
|
|
3899
|
-
/* @__PURE__ */ a.jsx(ye.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ a.jsxs(
|
|
3900
|
-
/* @__PURE__ */ a.jsx(
|
|
3901
|
-
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(
|
|
3902
|
-
|
|
3905
|
+
/* @__PURE__ */ a.jsx(ye.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ a.jsxs(Ce.Root, { children: [
|
|
3906
|
+
/* @__PURE__ */ a.jsx(va, { asChild: !0, children: /* @__PURE__ */ a.jsx(we, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ a.jsx(Ti, { size: 16 }) }) }),
|
|
3907
|
+
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(pa, { children: /* @__PURE__ */ a.jsx(ga, { children: t.map((s) => /* @__PURE__ */ a.jsxs(
|
|
3908
|
+
ha,
|
|
3903
3909
|
{
|
|
3904
3910
|
onClick: () => s.onClick(o),
|
|
3905
3911
|
colorScheme: s.colorScheme,
|
|
@@ -3914,7 +3920,7 @@ function pa({
|
|
|
3914
3920
|
] }) })
|
|
3915
3921
|
] }, o.id)) });
|
|
3916
3922
|
}
|
|
3917
|
-
function
|
|
3923
|
+
function Dl({
|
|
3918
3924
|
tableId: e,
|
|
3919
3925
|
data: t = [],
|
|
3920
3926
|
headers: n = [],
|
|
@@ -3930,11 +3936,11 @@ function Cl({
|
|
|
3930
3936
|
paginationMode: m = "client"
|
|
3931
3937
|
}) {
|
|
3932
3938
|
A(() => {
|
|
3933
|
-
|
|
3939
|
+
Hi(e);
|
|
3934
3940
|
}, [e]), A(() => {
|
|
3935
|
-
|
|
3941
|
+
Bi(t, n);
|
|
3936
3942
|
}, [t, n]);
|
|
3937
|
-
const { sortColumn: g, sortDirection: v, data: d } = vt(fe), b =
|
|
3943
|
+
const { sortColumn: g, sortDirection: v, data: d } = vt(fe), b = M(() => {
|
|
3938
3944
|
const x = [...d];
|
|
3939
3945
|
if (g && x.sort(
|
|
3940
3946
|
(w, S) => v === "asc" ? String(w[g]).localeCompare(String(S[g])) : String(S[g]).localeCompare(String(w[g]))
|
|
@@ -3946,11 +3952,11 @@ function Cl({
|
|
|
3946
3952
|
}, [d, g, v, i, l, m]);
|
|
3947
3953
|
return /* @__PURE__ */ a.jsxs(Ge, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
3948
3954
|
/* @__PURE__ */ a.jsx(Ge, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : b.length === 0 ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ a.jsxs(ye.Root, { variant: "outline", w: "100%", size: f, children: [
|
|
3949
|
-
/* @__PURE__ */ a.jsx(
|
|
3950
|
-
/* @__PURE__ */ a.jsx(
|
|
3955
|
+
/* @__PURE__ */ a.jsx(ea, {}),
|
|
3956
|
+
/* @__PURE__ */ a.jsx(ba, { data: b, actions: s })
|
|
3951
3957
|
] }) }),
|
|
3952
3958
|
/* @__PURE__ */ a.jsx(Ge, { mt: 0.5, children: /* @__PURE__ */ a.jsx(
|
|
3953
|
-
|
|
3959
|
+
fa,
|
|
3954
3960
|
{
|
|
3955
3961
|
totalCount: h,
|
|
3956
3962
|
pageSize: l,
|
|
@@ -3963,7 +3969,7 @@ function Cl({
|
|
|
3963
3969
|
) })
|
|
3964
3970
|
] });
|
|
3965
3971
|
}
|
|
3966
|
-
const
|
|
3972
|
+
const ma = y(pe.Root), xa = y(pe.HiddenInput), ya = y(pe.Control), wa = y(pe.Label), Sa = ({
|
|
3967
3973
|
value: e,
|
|
3968
3974
|
onChange: t,
|
|
3969
3975
|
size: n = "sm",
|
|
@@ -3972,10 +3978,10 @@ const va = y(pe.Root), ba = y(pe.HiddenInput), ma = y(pe.Control), xa = y(pe.Lab
|
|
|
3972
3978
|
isDisabled: s,
|
|
3973
3979
|
required: i,
|
|
3974
3980
|
errorText: l
|
|
3975
|
-
}) => /* @__PURE__ */ a.jsxs(
|
|
3976
|
-
/* @__PURE__ */ a.jsx(
|
|
3981
|
+
}) => /* @__PURE__ */ a.jsxs(ma, { value: e, onChange: t, size: n, children: [
|
|
3982
|
+
/* @__PURE__ */ a.jsx(xa, {}),
|
|
3977
3983
|
/* @__PURE__ */ a.jsx(
|
|
3978
|
-
|
|
3984
|
+
ya,
|
|
3979
3985
|
{
|
|
3980
3986
|
disabled: s,
|
|
3981
3987
|
required: i,
|
|
@@ -3983,7 +3989,7 @@ const va = y(pe.Root), ba = y(pe.HiddenInput), ma = y(pe.Control), xa = y(pe.Lab
|
|
|
3983
3989
|
helperText: o
|
|
3984
3990
|
}
|
|
3985
3991
|
),
|
|
3986
|
-
r && /* @__PURE__ */ a.jsx(
|
|
3992
|
+
r && /* @__PURE__ */ a.jsx(wa, { children: r })
|
|
3987
3993
|
] }), V = " to ", ir = 10, Le = {
|
|
3988
3994
|
DAY_MAX: 31,
|
|
3989
3995
|
MONTH_MAX: 12,
|
|
@@ -3999,10 +4005,10 @@ const va = y(pe.Root), ba = y(pe.HiddenInput), ma = y(pe.Control), xa = y(pe.Lab
|
|
|
3999
4005
|
}, ar = () => {
|
|
4000
4006
|
const { year: e, month: t, day: n } = Sn();
|
|
4001
4007
|
return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
|
|
4002
|
-
},
|
|
4008
|
+
}, Ca = () => {
|
|
4003
4009
|
const { year: e, month: t, day: n } = Sn();
|
|
4004
4010
|
return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
|
|
4005
|
-
},
|
|
4011
|
+
}, Ra = (e, t) => {
|
|
4006
4012
|
const n = e.length, r = parseInt(e);
|
|
4007
4013
|
if (!e || isNaN(r)) return t;
|
|
4008
4014
|
if (n === 4)
|
|
@@ -4018,12 +4024,12 @@ const va = y(pe.Root), ba = y(pe.HiddenInput), ma = y(pe.Control), xa = y(pe.Lab
|
|
|
4018
4024
|
if (n.length === 0) return null;
|
|
4019
4025
|
const { year: r, month: o, day: s } = Sn();
|
|
4020
4026
|
let i, l, c;
|
|
4021
|
-
return n.length === 1 ? (i = parseInt(n[0]) || s, l = o, c = r) : n.length === 2 ? (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c = r) : (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c =
|
|
4027
|
+
return n.length === 1 ? (i = parseInt(n[0]) || s, l = o, c = r) : n.length === 2 ? (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c = r) : (i = parseInt(n[0]) || s, l = parseInt(n[1]) || o, c = Ra(n[2], r)), l = Math.max(1, Math.min(Le.MONTH_MAX, l)), i = Math.max(1, Math.min(Le.DAY_MAX, i)), `${c}-${String(l).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
|
|
4022
4028
|
}, he = (e) => {
|
|
4023
4029
|
if (!e) return "";
|
|
4024
4030
|
const [t, n, r] = e.split("-");
|
|
4025
4031
|
return `${r}-${n}-${t}`;
|
|
4026
|
-
},
|
|
4032
|
+
}, Da = (e, t) => {
|
|
4027
4033
|
if (e[0]?.length > 0) {
|
|
4028
4034
|
const n = parseInt(e[0]);
|
|
4029
4035
|
if (isNaN(n) || n === 0 || e[0].length === 2 && n > Le.DAY_MAX)
|
|
@@ -4047,14 +4053,14 @@ const va = y(pe.Root), ba = y(pe.HiddenInput), ma = y(pe.Control), xa = y(pe.Lab
|
|
|
4047
4053
|
o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
|
|
4048
4054
|
}
|
|
4049
4055
|
const n = t.split("-");
|
|
4050
|
-
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, ir),
|
|
4051
|
-
},
|
|
4052
|
-
function
|
|
4056
|
+
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, ir), Da(n, e) || t;
|
|
4057
|
+
}, Ea = y(zt.Root), ja = y(zt.Trigger), _a = y(zt.Content), Oa = y(zt.Positioner);
|
|
4058
|
+
function Ta({
|
|
4053
4059
|
value: e,
|
|
4054
4060
|
onChange: t,
|
|
4055
4061
|
disabled: n = !1
|
|
4056
4062
|
}) {
|
|
4057
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [s, i] =
|
|
4063
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = G(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = G(!1), u = N(null);
|
|
4058
4064
|
A(() => {
|
|
4059
4065
|
const v = (d) => {
|
|
4060
4066
|
d.ctrlKey && d.key === "d" && !d.shiftKey && !d.metaKey && (d.preventDefault(), u.current?.focus());
|
|
@@ -4090,7 +4096,7 @@ function _a({
|
|
|
4090
4096
|
} else if (x && !b)
|
|
4091
4097
|
i(`${he(x)}${V}`), t(void 0);
|
|
4092
4098
|
else if (x && b) {
|
|
4093
|
-
const S =
|
|
4099
|
+
const S = Ca(), [C, j] = S < x ? [S, x] : [x, S], D = `${he(C)}${V}${he(
|
|
4094
4100
|
j
|
|
4095
4101
|
)}`;
|
|
4096
4102
|
i(D), t(`${C}|${j}`);
|
|
@@ -4131,15 +4137,15 @@ function _a({
|
|
|
4131
4137
|
};
|
|
4132
4138
|
return /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(An, { position: "revert", children: [
|
|
4133
4139
|
/* @__PURE__ */ a.jsxs(
|
|
4134
|
-
|
|
4140
|
+
Ea,
|
|
4135
4141
|
{
|
|
4136
4142
|
open: l,
|
|
4137
4143
|
onEscapeKeyDown: () => {
|
|
4138
4144
|
c(!1);
|
|
4139
4145
|
},
|
|
4140
4146
|
children: [
|
|
4141
|
-
/* @__PURE__ */ a.jsx(
|
|
4142
|
-
|
|
4147
|
+
/* @__PURE__ */ a.jsx(ja, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
4148
|
+
we,
|
|
4143
4149
|
{
|
|
4144
4150
|
size: "sm",
|
|
4145
4151
|
variant: "ghost",
|
|
@@ -4148,14 +4154,14 @@ function _a({
|
|
|
4148
4154
|
children: /* @__PURE__ */ a.jsx(or, { size: 16 })
|
|
4149
4155
|
}
|
|
4150
4156
|
) }),
|
|
4151
|
-
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(
|
|
4157
|
+
/* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(Oa, { children: /* @__PURE__ */ a.jsxs(_a, { p: 4, children: [
|
|
4152
4158
|
/* @__PURE__ */ a.jsx(ro, {}),
|
|
4153
|
-
/* @__PURE__ */ a.jsxs(
|
|
4154
|
-
/* @__PURE__ */ a.jsxs(
|
|
4159
|
+
/* @__PURE__ */ a.jsxs(_e, { align: "start", gap: 4, children: [
|
|
4160
|
+
/* @__PURE__ */ a.jsxs(ne, { children: [
|
|
4155
4161
|
/* @__PURE__ */ a.jsx(or, { size: 16 }),
|
|
4156
4162
|
/* @__PURE__ */ a.jsx(U, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4157
4163
|
] }),
|
|
4158
|
-
/* @__PURE__ */ a.jsxs(
|
|
4164
|
+
/* @__PURE__ */ a.jsxs(_e, { align: "start", gap: 1, children: [
|
|
4159
4165
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
|
|
4160
4166
|
/* @__PURE__ */ a.jsxs(U, { fontSize: "xs", color: "gray.600", children: [
|
|
4161
4167
|
"DD-MM-YYYY",
|
|
@@ -4163,16 +4169,16 @@ function _a({
|
|
|
4163
4169
|
"DD-MM-YYYY"
|
|
4164
4170
|
] })
|
|
4165
4171
|
] }),
|
|
4166
|
-
/* @__PURE__ */ a.jsxs(
|
|
4172
|
+
/* @__PURE__ */ a.jsxs(_e, { align: "start", gap: 1, children: [
|
|
4167
4173
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
|
|
4168
4174
|
/* @__PURE__ */ a.jsx(U, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
|
|
4169
4175
|
/* @__PURE__ */ a.jsx(U, { fontSize: "xs", children: "• Leave end blank → up to today" }),
|
|
4170
4176
|
/* @__PURE__ */ a.jsx(U, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
|
|
4171
4177
|
/* @__PURE__ */ a.jsx(U, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
|
|
4172
4178
|
] }),
|
|
4173
|
-
/* @__PURE__ */ a.jsxs(
|
|
4179
|
+
/* @__PURE__ */ a.jsxs(_e, { align: "start", gap: 1, children: [
|
|
4174
4180
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4175
|
-
/* @__PURE__ */ a.jsxs(
|
|
4181
|
+
/* @__PURE__ */ a.jsxs(ne, { children: [
|
|
4176
4182
|
/* @__PURE__ */ a.jsx(kn, { children: "Ctrl" }),
|
|
4177
4183
|
/* @__PURE__ */ a.jsx(U, { children: "+" }),
|
|
4178
4184
|
/* @__PURE__ */ a.jsx(kn, { children: "D" })
|
|
@@ -4199,7 +4205,7 @@ function _a({
|
|
|
4199
4205
|
}
|
|
4200
4206
|
),
|
|
4201
4207
|
s && /* @__PURE__ */ a.jsx(An, { children: /* @__PURE__ */ a.jsx(
|
|
4202
|
-
|
|
4208
|
+
we,
|
|
4203
4209
|
{
|
|
4204
4210
|
size: "sm",
|
|
4205
4211
|
variant: "ghost",
|
|
@@ -4210,7 +4216,7 @@ function _a({
|
|
|
4210
4216
|
) })
|
|
4211
4217
|
] }) }) });
|
|
4212
4218
|
}
|
|
4213
|
-
const
|
|
4219
|
+
const Ia = y(Fe.Root), Aa = y(Fe.Label), ka = y(Fe.HelperText), Ma = y(Fe.ErrorText), lr = ({
|
|
4214
4220
|
icon: e,
|
|
4215
4221
|
value: t,
|
|
4216
4222
|
onChange: n,
|
|
@@ -4224,8 +4230,8 @@ const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorT
|
|
|
4224
4230
|
required: f = !1,
|
|
4225
4231
|
errorText: h,
|
|
4226
4232
|
visible: m
|
|
4227
|
-
}) => /* @__PURE__ */ a.jsxs(
|
|
4228
|
-
m && /* @__PURE__ */ a.jsx(
|
|
4233
|
+
}) => /* @__PURE__ */ a.jsxs(Ia, { width: i, children: [
|
|
4234
|
+
m && /* @__PURE__ */ a.jsx(Aa, { children: l }),
|
|
4229
4235
|
/* @__PURE__ */ a.jsx(ur, { startElement: e, children: /* @__PURE__ */ a.jsx(
|
|
4230
4236
|
dr,
|
|
4231
4237
|
{
|
|
@@ -4238,9 +4244,9 @@ const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorT
|
|
|
4238
4244
|
required: f
|
|
4239
4245
|
}
|
|
4240
4246
|
) }),
|
|
4241
|
-
h && /* @__PURE__ */ a.jsx(
|
|
4242
|
-
c && /* @__PURE__ */ a.jsx(
|
|
4243
|
-
] }),
|
|
4247
|
+
h && /* @__PURE__ */ a.jsx(Ma, { fontSize: "xs", children: h }),
|
|
4248
|
+
c && /* @__PURE__ */ a.jsx(ka, { fontSize: "xs", children: c })
|
|
4249
|
+
] }), Na = y(Fe.Root), La = y(Fe.HelperText), $a = y(Fe.ErrorText), Pa = y(z.Root), za = y(z.Label), Fa = y(z.Control), Va = y(z.Trigger), Ya = y(z.ValueText), Ba = y(z.IndicatorGroup), Ha = y(z.Indicator), Wa = y(z.Content), Ua = y(z.Item), Ga = y(z.ItemIndicator), Xa = y(z.HiddenSelect), qa = y(z.Positioner), Ka = ({
|
|
4244
4250
|
options: e = [],
|
|
4245
4251
|
label: t,
|
|
4246
4252
|
value: n,
|
|
@@ -4258,9 +4264,9 @@ const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorT
|
|
|
4258
4264
|
const g = cr({
|
|
4259
4265
|
items: e
|
|
4260
4266
|
});
|
|
4261
|
-
return /* @__PURE__ */ a.jsxs(
|
|
4267
|
+
return /* @__PURE__ */ a.jsxs(Na, { disabled: u, required: f, children: [
|
|
4262
4268
|
/* @__PURE__ */ a.jsxs(
|
|
4263
|
-
|
|
4269
|
+
Pa,
|
|
4264
4270
|
{
|
|
4265
4271
|
collection: g,
|
|
4266
4272
|
variant: l,
|
|
@@ -4269,50 +4275,50 @@ const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorT
|
|
|
4269
4275
|
value: n ? [n] : [],
|
|
4270
4276
|
onValueChange: (v) => r?.(v.value[0]),
|
|
4271
4277
|
children: [
|
|
4272
|
-
/* @__PURE__ */ a.jsx(
|
|
4273
|
-
m && /* @__PURE__ */ a.jsx(
|
|
4274
|
-
/* @__PURE__ */ a.jsxs(
|
|
4275
|
-
/* @__PURE__ */ a.jsx(
|
|
4276
|
-
/* @__PURE__ */ a.jsx(
|
|
4278
|
+
/* @__PURE__ */ a.jsx(Xa, {}),
|
|
4279
|
+
m && /* @__PURE__ */ a.jsx(za, { children: t }),
|
|
4280
|
+
/* @__PURE__ */ a.jsxs(Fa, { children: [
|
|
4281
|
+
/* @__PURE__ */ a.jsx(Va, { children: /* @__PURE__ */ a.jsx(Ya, { placeholder: o }) }),
|
|
4282
|
+
/* @__PURE__ */ a.jsx(Ba, { children: /* @__PURE__ */ a.jsx(Ha, {}) })
|
|
4277
4283
|
] }),
|
|
4278
|
-
/* @__PURE__ */ a.jsx(
|
|
4284
|
+
/* @__PURE__ */ a.jsx(qa, { children: /* @__PURE__ */ a.jsx(Wa, { children: g.items.map((v) => /* @__PURE__ */ a.jsxs(Ua, { item: v, children: [
|
|
4279
4285
|
v.label,
|
|
4280
|
-
/* @__PURE__ */ a.jsx(
|
|
4286
|
+
/* @__PURE__ */ a.jsx(Ga, {})
|
|
4281
4287
|
] }, v.value)) }) })
|
|
4282
4288
|
]
|
|
4283
4289
|
}
|
|
4284
4290
|
),
|
|
4285
|
-
c && /* @__PURE__ */ a.jsx(
|
|
4286
|
-
h && /* @__PURE__ */ a.jsx(
|
|
4291
|
+
c && /* @__PURE__ */ a.jsx(La, { children: c }),
|
|
4292
|
+
h && /* @__PURE__ */ a.jsx($a, { children: h })
|
|
4287
4293
|
] });
|
|
4288
4294
|
}, Yr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
|
|
4289
|
-
function
|
|
4295
|
+
function Ja(e) {
|
|
4290
4296
|
try {
|
|
4291
4297
|
return JSON.parse(localStorage.getItem(Yr(e)) || "[]");
|
|
4292
4298
|
} catch {
|
|
4293
4299
|
return [];
|
|
4294
4300
|
}
|
|
4295
4301
|
}
|
|
4296
|
-
const
|
|
4297
|
-
const t =
|
|
4302
|
+
const Pt = new gr({}), Cn = (e) => {
|
|
4303
|
+
const t = Pt.state[e];
|
|
4298
4304
|
if (t) return t;
|
|
4299
|
-
const n =
|
|
4300
|
-
return
|
|
4305
|
+
const n = Ja(e);
|
|
4306
|
+
return Pt.setState((r) => ({
|
|
4301
4307
|
...r,
|
|
4302
4308
|
[e]: n
|
|
4303
4309
|
})), n;
|
|
4304
|
-
},
|
|
4305
|
-
|
|
4310
|
+
}, Br = (e, t) => {
|
|
4311
|
+
Pt.setState((n) => ({
|
|
4306
4312
|
...n,
|
|
4307
4313
|
[e]: t
|
|
4308
4314
|
})), localStorage.setItem(Yr(e), JSON.stringify(t));
|
|
4309
|
-
},
|
|
4315
|
+
}, Za = (e, t) => {
|
|
4310
4316
|
const n = Cn(e).filter((r) => r.id !== t);
|
|
4311
|
-
|
|
4312
|
-
},
|
|
4317
|
+
Br(e, n);
|
|
4318
|
+
}, Qa = (e, t) => {
|
|
4313
4319
|
const n = [t, ...Cn(e)];
|
|
4314
|
-
|
|
4315
|
-
},
|
|
4320
|
+
Br(e, n);
|
|
4321
|
+
}, el = y(pe.Root), tl = y(pe.HiddenInput), nl = y(pe.Control), rl = y(pt.Root), ol = y(pt.Track), sl = y(pt.Range), il = y(pt.Thumbs), al = y(pt.Control), ll = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4316
4322
|
const { attributes: r, listeners: o, setNodeRef: s, transform: i, transition: l } = Pr({
|
|
4317
4323
|
id: e.id
|
|
4318
4324
|
}), c = {
|
|
@@ -4320,7 +4326,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4320
4326
|
transition: l
|
|
4321
4327
|
};
|
|
4322
4328
|
return /* @__PURE__ */ a.jsxs(
|
|
4323
|
-
|
|
4329
|
+
_e,
|
|
4324
4330
|
{
|
|
4325
4331
|
ref: s,
|
|
4326
4332
|
style: c,
|
|
@@ -4332,38 +4338,38 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4332
4338
|
mb: 3,
|
|
4333
4339
|
bg: "white",
|
|
4334
4340
|
children: [
|
|
4335
|
-
/* @__PURE__ */ a.jsxs(
|
|
4341
|
+
/* @__PURE__ */ a.jsxs(ne, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
|
|
4336
4342
|
/* @__PURE__ */ a.jsx(Fr, { size: 16 }),
|
|
4337
4343
|
/* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
|
|
4338
4344
|
] }),
|
|
4339
|
-
/* @__PURE__ */ a.jsxs(
|
|
4345
|
+
/* @__PURE__ */ a.jsxs(ne, { justify: "space-between", children: [
|
|
4340
4346
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Visible" }),
|
|
4341
4347
|
/* @__PURE__ */ a.jsxs(
|
|
4342
|
-
|
|
4348
|
+
el,
|
|
4343
4349
|
{
|
|
4344
4350
|
checked: e.visible,
|
|
4345
4351
|
size: "sm",
|
|
4346
4352
|
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4347
4353
|
children: [
|
|
4348
|
-
/* @__PURE__ */ a.jsx(
|
|
4349
|
-
/* @__PURE__ */ a.jsx(
|
|
4354
|
+
/* @__PURE__ */ a.jsx(tl, {}),
|
|
4355
|
+
/* @__PURE__ */ a.jsx(nl, {})
|
|
4350
4356
|
]
|
|
4351
4357
|
}
|
|
4352
4358
|
)
|
|
4353
4359
|
] }),
|
|
4354
|
-
/* @__PURE__ */ a.jsxs(
|
|
4360
|
+
/* @__PURE__ */ a.jsxs(_e, { align: "stretch", gap: 1, children: [
|
|
4355
4361
|
/* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Size" }),
|
|
4356
4362
|
/* @__PURE__ */ a.jsx(
|
|
4357
|
-
|
|
4363
|
+
rl,
|
|
4358
4364
|
{
|
|
4359
4365
|
min: 1,
|
|
4360
4366
|
max: 5,
|
|
4361
4367
|
step: 0.5,
|
|
4362
4368
|
value: [e.size ?? 1],
|
|
4363
4369
|
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4364
|
-
children: /* @__PURE__ */ a.jsxs(
|
|
4365
|
-
/* @__PURE__ */ a.jsx(
|
|
4366
|
-
/* @__PURE__ */ a.jsx(
|
|
4370
|
+
children: /* @__PURE__ */ a.jsxs(al, { children: [
|
|
4371
|
+
/* @__PURE__ */ a.jsx(ol, { children: /* @__PURE__ */ a.jsx(sl, {}) }),
|
|
4372
|
+
/* @__PURE__ */ a.jsx(il, {})
|
|
4367
4373
|
] })
|
|
4368
4374
|
}
|
|
4369
4375
|
)
|
|
@@ -4371,7 +4377,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4371
4377
|
]
|
|
4372
4378
|
}
|
|
4373
4379
|
);
|
|
4374
|
-
},
|
|
4380
|
+
}, cl = y(Re.Root), ul = y(Re.Trigger), dl = y(Re.Backdrop), fl = y(Re.Positioner), hl = y(Re.Content), gl = y(Re.Header), pl = y(Re.Title), vl = y(Re.Body), bl = y(Re.Footer), ml = y(Re.CloseTrigger), xl = y(Ft.Root), yl = y(Ft.List), rn = y(Ft.Trigger), on = y(Ft.Content), Hr = (e, t) => {
|
|
4375
4381
|
if (e.customComponent)
|
|
4376
4382
|
return e.customComponent;
|
|
4377
4383
|
switch (e.type) {
|
|
@@ -4390,7 +4396,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4390
4396
|
return /* @__PURE__ */ a.jsx(lr, { label: e.label, value: e.value, onChange: e.onChange });
|
|
4391
4397
|
case "checkbox":
|
|
4392
4398
|
return /* @__PURE__ */ a.jsx(
|
|
4393
|
-
|
|
4399
|
+
Sa,
|
|
4394
4400
|
{
|
|
4395
4401
|
label: e.label,
|
|
4396
4402
|
value: e.value,
|
|
@@ -4399,7 +4405,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4399
4405
|
);
|
|
4400
4406
|
case "select":
|
|
4401
4407
|
return /* @__PURE__ */ a.jsx(
|
|
4402
|
-
|
|
4408
|
+
Ka,
|
|
4403
4409
|
{
|
|
4404
4410
|
label: e.label,
|
|
4405
4411
|
value: e.value,
|
|
@@ -4410,7 +4416,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4410
4416
|
);
|
|
4411
4417
|
case "date":
|
|
4412
4418
|
return /* @__PURE__ */ a.jsx(
|
|
4413
|
-
|
|
4419
|
+
Ta,
|
|
4414
4420
|
{
|
|
4415
4421
|
value: e.value,
|
|
4416
4422
|
onChange: e.onChange
|
|
@@ -4419,7 +4425,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4419
4425
|
default:
|
|
4420
4426
|
return null;
|
|
4421
4427
|
}
|
|
4422
|
-
},
|
|
4428
|
+
}, wl = ({
|
|
4423
4429
|
filterDrawerSize: e = "sm",
|
|
4424
4430
|
onVisibilityChange: t,
|
|
4425
4431
|
onSizeChange: n,
|
|
@@ -4433,32 +4439,32 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4433
4439
|
open: f,
|
|
4434
4440
|
onOpenChange: h
|
|
4435
4441
|
}) => {
|
|
4436
|
-
const g = vt(
|
|
4442
|
+
const g = vt(Pt)[s] ?? Cn(s), v = () => {
|
|
4437
4443
|
const d = prompt("Preset name?");
|
|
4438
|
-
d &&
|
|
4444
|
+
d && Qa(s, {
|
|
4439
4445
|
id: crypto.randomUUID(),
|
|
4440
4446
|
name: d,
|
|
4441
4447
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4442
4448
|
filters: i
|
|
4443
4449
|
});
|
|
4444
4450
|
};
|
|
4445
|
-
return /* @__PURE__ */ a.jsx(
|
|
4446
|
-
/* @__PURE__ */ a.jsx(
|
|
4451
|
+
return /* @__PURE__ */ a.jsx(ne, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(cl, { size: e, open: f, onOpenChange: h, children: [
|
|
4452
|
+
/* @__PURE__ */ a.jsx(ul, { asChild: !0, children: /* @__PURE__ */ a.jsxs(we, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4447
4453
|
/* @__PURE__ */ a.jsx(Ai, { size: 16 }),
|
|
4448
4454
|
"Filters"
|
|
4449
4455
|
] }) }),
|
|
4450
4456
|
/* @__PURE__ */ a.jsxs(gt, { children: [
|
|
4451
|
-
/* @__PURE__ */ a.jsx(
|
|
4452
|
-
/* @__PURE__ */ a.jsx(
|
|
4453
|
-
/* @__PURE__ */ a.jsx(
|
|
4454
|
-
/* @__PURE__ */ a.jsx(
|
|
4455
|
-
/* @__PURE__ */ a.jsxs(
|
|
4457
|
+
/* @__PURE__ */ a.jsx(dl, {}),
|
|
4458
|
+
/* @__PURE__ */ a.jsx(fl, { children: /* @__PURE__ */ a.jsxs(hl, { children: [
|
|
4459
|
+
/* @__PURE__ */ a.jsx(gl, { children: /* @__PURE__ */ a.jsx(pl, { children: "Filters" }) }),
|
|
4460
|
+
/* @__PURE__ */ a.jsx(vl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(xl, { defaultValue: "view", children: [
|
|
4461
|
+
/* @__PURE__ */ a.jsxs(yl, { mb: 4, children: [
|
|
4456
4462
|
/* @__PURE__ */ a.jsxs(rn, { value: "view", children: [
|
|
4457
|
-
/* @__PURE__ */ a.jsx(
|
|
4463
|
+
/* @__PURE__ */ a.jsx(Ni, { size: 16 }),
|
|
4458
4464
|
"Edit"
|
|
4459
4465
|
] }),
|
|
4460
4466
|
/* @__PURE__ */ a.jsxs(rn, { value: "settings", children: [
|
|
4461
|
-
/* @__PURE__ */ a.jsx(
|
|
4467
|
+
/* @__PURE__ */ a.jsx(zi, { size: 16 }),
|
|
4462
4468
|
"Settings"
|
|
4463
4469
|
] }),
|
|
4464
4470
|
/* @__PURE__ */ a.jsxs(rn, { value: "presets", children: [
|
|
@@ -4467,7 +4473,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4467
4473
|
] })
|
|
4468
4474
|
] }),
|
|
4469
4475
|
/* @__PURE__ */ a.jsx(on, { value: "view", children: o.filter((d) => d.visible).map((d) => /* @__PURE__ */ a.jsx(
|
|
4470
|
-
|
|
4476
|
+
_e,
|
|
4471
4477
|
{
|
|
4472
4478
|
align: "stretch",
|
|
4473
4479
|
border: "1px solid",
|
|
@@ -4477,7 +4483,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4477
4483
|
rounded: "md",
|
|
4478
4484
|
p: 3,
|
|
4479
4485
|
mb: 3,
|
|
4480
|
-
children:
|
|
4486
|
+
children: Hr(d, f)
|
|
4481
4487
|
},
|
|
4482
4488
|
d.id
|
|
4483
4489
|
)) }),
|
|
@@ -4497,7 +4503,7 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4497
4503
|
items: o.map((d) => d.id),
|
|
4498
4504
|
strategy: Zs,
|
|
4499
4505
|
children: o.map((d) => /* @__PURE__ */ a.jsx(
|
|
4500
|
-
|
|
4506
|
+
ll,
|
|
4501
4507
|
{
|
|
4502
4508
|
filter: d,
|
|
4503
4509
|
onVisibilityChange: t,
|
|
@@ -4509,11 +4515,11 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4509
4515
|
)
|
|
4510
4516
|
}
|
|
4511
4517
|
) }),
|
|
4512
|
-
/* @__PURE__ */ a.jsx(on, { value: "presets", children: /* @__PURE__ */ a.jsxs(
|
|
4513
|
-
/* @__PURE__ */ a.jsx(
|
|
4518
|
+
/* @__PURE__ */ a.jsx(on, { value: "presets", children: /* @__PURE__ */ a.jsxs(_e, { align: "stretch", mb: 3, children: [
|
|
4519
|
+
/* @__PURE__ */ a.jsx(Tt, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
|
|
4514
4520
|
g.length === 0 && /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4515
4521
|
g.map((d) => /* @__PURE__ */ a.jsxs(
|
|
4516
|
-
|
|
4522
|
+
ne,
|
|
4517
4523
|
{
|
|
4518
4524
|
justify: "space-between",
|
|
4519
4525
|
border: "1px solid",
|
|
@@ -4521,13 +4527,13 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4521
4527
|
rounded: "md",
|
|
4522
4528
|
p: 2,
|
|
4523
4529
|
children: [
|
|
4524
|
-
/* @__PURE__ */ a.jsxs(
|
|
4530
|
+
/* @__PURE__ */ a.jsxs(_e, { align: "start", gap: 0, children: [
|
|
4525
4531
|
/* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: d.name }),
|
|
4526
4532
|
/* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: new Date(d.date).toLocaleDateString() })
|
|
4527
4533
|
] }),
|
|
4528
|
-
/* @__PURE__ */ a.jsxs(
|
|
4534
|
+
/* @__PURE__ */ a.jsxs(ne, { children: [
|
|
4529
4535
|
/* @__PURE__ */ a.jsx(
|
|
4530
|
-
|
|
4536
|
+
Tt,
|
|
4531
4537
|
{
|
|
4532
4538
|
size: "xs",
|
|
4533
4539
|
variant: "ghost",
|
|
@@ -4536,12 +4542,12 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4536
4542
|
}
|
|
4537
4543
|
),
|
|
4538
4544
|
/* @__PURE__ */ a.jsx(
|
|
4539
|
-
|
|
4545
|
+
we,
|
|
4540
4546
|
{
|
|
4541
4547
|
size: "xs",
|
|
4542
4548
|
"aria-label": "Delete preset",
|
|
4543
4549
|
variant: "ghost",
|
|
4544
|
-
onClick: () =>
|
|
4550
|
+
onClick: () => Za(s, d.id),
|
|
4545
4551
|
children: /* @__PURE__ */ a.jsx(_i, { size: 14 })
|
|
4546
4552
|
}
|
|
4547
4553
|
)
|
|
@@ -4552,9 +4558,9 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4552
4558
|
))
|
|
4553
4559
|
] }) })
|
|
4554
4560
|
] }) }),
|
|
4555
|
-
/* @__PURE__ */ a.jsxs(
|
|
4561
|
+
/* @__PURE__ */ a.jsxs(bl, { justify: "space-between", children: [
|
|
4556
4562
|
/* @__PURE__ */ a.jsx(
|
|
4557
|
-
|
|
4563
|
+
Tt,
|
|
4558
4564
|
{
|
|
4559
4565
|
size: "sm",
|
|
4560
4566
|
variant: "ghost",
|
|
@@ -4563,12 +4569,12 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4563
4569
|
children: "Clear All"
|
|
4564
4570
|
}
|
|
4565
4571
|
),
|
|
4566
|
-
/* @__PURE__ */ a.jsx(
|
|
4572
|
+
/* @__PURE__ */ a.jsx(ml, { asChild: !0, children: /* @__PURE__ */ a.jsx(oo, {}) })
|
|
4567
4573
|
] })
|
|
4568
4574
|
] }) })
|
|
4569
4575
|
] })
|
|
4570
4576
|
] }) });
|
|
4571
|
-
},
|
|
4577
|
+
}, El = ({
|
|
4572
4578
|
title: e,
|
|
4573
4579
|
filters: t,
|
|
4574
4580
|
onVisibilityChange: n,
|
|
@@ -4582,22 +4588,22 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4582
4588
|
activePresetName: f,
|
|
4583
4589
|
filterDrawerSize: h = "sm"
|
|
4584
4590
|
}) => {
|
|
4585
|
-
const [m, g] =
|
|
4586
|
-
return /* @__PURE__ */ a.jsxs(
|
|
4591
|
+
const [m, g] = G(!1);
|
|
4592
|
+
return /* @__PURE__ */ a.jsxs(ne, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4587
4593
|
e,
|
|
4588
|
-
/* @__PURE__ */ a.jsxs(
|
|
4594
|
+
/* @__PURE__ */ a.jsxs(ne, { gapX: 1, children: [
|
|
4589
4595
|
t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(
|
|
4590
|
-
|
|
4596
|
+
ne,
|
|
4591
4597
|
{
|
|
4592
4598
|
flex: v.size ?? 1,
|
|
4593
4599
|
minW: `${(v.size ?? 1) * 100}px`,
|
|
4594
4600
|
alignItems: "center",
|
|
4595
|
-
children:
|
|
4601
|
+
children: Hr(v)
|
|
4596
4602
|
},
|
|
4597
4603
|
v.id
|
|
4598
4604
|
)),
|
|
4599
4605
|
/* @__PURE__ */ a.jsx(
|
|
4600
|
-
|
|
4606
|
+
wl,
|
|
4601
4607
|
{
|
|
4602
4608
|
filterDrawerSize: h,
|
|
4603
4609
|
onVisibilityChange: n,
|
|
@@ -4618,30 +4624,95 @@ const $t = new gr({}), Cn = (e) => {
|
|
|
4618
4624
|
)
|
|
4619
4625
|
] })
|
|
4620
4626
|
] });
|
|
4621
|
-
},
|
|
4627
|
+
}, jl = (e, t) => {
|
|
4622
4628
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4623
|
-
},
|
|
4629
|
+
}, _l = (e) => {
|
|
4624
4630
|
try {
|
|
4625
4631
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4626
4632
|
} catch {
|
|
4627
4633
|
return [];
|
|
4628
4634
|
}
|
|
4629
|
-
},
|
|
4630
|
-
|
|
4631
|
-
|
|
4635
|
+
}, Ol = ({
|
|
4636
|
+
onClick: e,
|
|
4637
|
+
size: t = "sm",
|
|
4638
|
+
variant: n = "solid",
|
|
4639
|
+
label: r,
|
|
4640
|
+
leftIcon: o,
|
|
4641
|
+
rightIcon: s,
|
|
4642
|
+
isDisabled: i,
|
|
4643
|
+
colorScheme: l,
|
|
4644
|
+
loading: c,
|
|
4645
|
+
loadingText: u,
|
|
4646
|
+
rounded: f
|
|
4647
|
+
}) => /* @__PURE__ */ a.jsx(
|
|
4648
|
+
Tt,
|
|
4649
|
+
{
|
|
4650
|
+
onClick: e,
|
|
4651
|
+
size: t,
|
|
4652
|
+
variant: n,
|
|
4653
|
+
disabled: i,
|
|
4654
|
+
colorPalette: l,
|
|
4655
|
+
loading: c,
|
|
4656
|
+
loadingText: u,
|
|
4657
|
+
rounded: f,
|
|
4658
|
+
children: /* @__PURE__ */ a.jsxs(ne, { gap: 1, children: [
|
|
4659
|
+
o,
|
|
4660
|
+
r,
|
|
4661
|
+
s
|
|
4662
|
+
] })
|
|
4663
|
+
}
|
|
4664
|
+
);
|
|
4665
|
+
function Tl({
|
|
4666
|
+
refetch: e,
|
|
4667
|
+
isLoading: t = !1,
|
|
4668
|
+
label: n = "Refresh"
|
|
4669
|
+
}) {
|
|
4670
|
+
const [r, o] = G(!1), s = async () => {
|
|
4671
|
+
o(!0);
|
|
4672
|
+
try {
|
|
4673
|
+
await e();
|
|
4674
|
+
} finally {
|
|
4675
|
+
setTimeout(() => o(!1), 300);
|
|
4676
|
+
}
|
|
4677
|
+
};
|
|
4678
|
+
return /* @__PURE__ */ a.jsx(
|
|
4679
|
+
we,
|
|
4680
|
+
{
|
|
4681
|
+
"aria-label": n,
|
|
4682
|
+
size: "xs",
|
|
4683
|
+
variant: "outline",
|
|
4684
|
+
disabled: t || r,
|
|
4685
|
+
onClick: s,
|
|
4686
|
+
ml: 2,
|
|
4687
|
+
children: /* @__PURE__ */ a.jsx(
|
|
4688
|
+
$i,
|
|
4689
|
+
{
|
|
4690
|
+
size: 14,
|
|
4691
|
+
style: {
|
|
4692
|
+
animation: r ? "spin 0.6s linear infinite" : void 0
|
|
4693
|
+
}
|
|
4694
|
+
}
|
|
4695
|
+
)
|
|
4696
|
+
}
|
|
4697
|
+
);
|
|
4698
|
+
}
|
|
4632
4699
|
export {
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4700
|
+
Dl as DataTable,
|
|
4701
|
+
El as Filters,
|
|
4702
|
+
Ol as MDSButton,
|
|
4703
|
+
Sa as MDSCheckbox,
|
|
4704
|
+
lr as MDSInput,
|
|
4705
|
+
Ka as MDSSelectBox,
|
|
4706
|
+
Tl as RefreshButton,
|
|
4707
|
+
Qa as addPreset,
|
|
4708
|
+
Za as deletePreset,
|
|
4638
4709
|
Cn as getPresets,
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4710
|
+
_l as loadOrder,
|
|
4711
|
+
Pt as presetStore,
|
|
4712
|
+
jl as saveOrder,
|
|
4713
|
+
Br as savePresets,
|
|
4714
|
+
Bi as setData,
|
|
4715
|
+
Hi as setTableId,
|
|
4645
4716
|
fe as tableStore,
|
|
4646
4717
|
y as withChildren
|
|
4647
4718
|
};
|