@mdspl/mds-shared-ui 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +345 -342
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,9 +34,9 @@ function Br() {
|
|
|
34
34
|
return v.$$typeof === L ? null : v.displayName || v.name || null;
|
|
35
35
|
if (typeof v == "string") return v;
|
|
36
36
|
switch (v) {
|
|
37
|
-
case
|
|
37
|
+
case m:
|
|
38
38
|
return "Fragment";
|
|
39
|
-
case
|
|
39
|
+
case y:
|
|
40
40
|
return "Profiler";
|
|
41
41
|
case x:
|
|
42
42
|
return "StrictMode";
|
|
@@ -58,14 +58,14 @@ function Br() {
|
|
|
58
58
|
case R:
|
|
59
59
|
return (v._context.displayName || "Context") + ".Consumer";
|
|
60
60
|
case O:
|
|
61
|
-
var
|
|
62
|
-
return v = v.displayName, v || (v =
|
|
61
|
+
var w = v.render;
|
|
62
|
+
return v = v.displayName, v || (v = w.displayName || w.name || "", v = v !== "" ? "ForwardRef(" + v + ")" : "ForwardRef"), v;
|
|
63
63
|
case _:
|
|
64
|
-
return
|
|
64
|
+
return w = v.displayName || null, w !== null ? w : e(v.type) || "Memo";
|
|
65
65
|
case P:
|
|
66
|
-
|
|
66
|
+
w = v._payload, v = v._init;
|
|
67
67
|
try {
|
|
68
|
-
return e(v(
|
|
68
|
+
return e(v(w));
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -77,27 +77,27 @@ function Br() {
|
|
|
77
77
|
function n(v) {
|
|
78
78
|
try {
|
|
79
79
|
t(v);
|
|
80
|
-
var
|
|
80
|
+
var w = !1;
|
|
81
81
|
} catch {
|
|
82
|
-
|
|
82
|
+
w = !0;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
var T =
|
|
84
|
+
if (w) {
|
|
85
|
+
w = console;
|
|
86
|
+
var T = w.error, k = typeof Symbol == "function" && Symbol.toStringTag && v[Symbol.toStringTag] || v.constructor.name || "Object";
|
|
87
87
|
return T.call(
|
|
88
|
-
|
|
88
|
+
w,
|
|
89
89
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
90
|
k
|
|
91
91
|
), t(v);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
function r(v) {
|
|
95
|
-
if (v ===
|
|
95
|
+
if (v === m) return "<>";
|
|
96
96
|
if (typeof v == "object" && v !== null && v.$$typeof === P)
|
|
97
97
|
return "<...>";
|
|
98
98
|
try {
|
|
99
|
-
var
|
|
100
|
-
return
|
|
99
|
+
var w = e(v);
|
|
100
|
+
return w ? "<" + w + ">" : "<...>";
|
|
101
101
|
} catch {
|
|
102
102
|
return "<...>";
|
|
103
103
|
}
|
|
@@ -111,16 +111,16 @@ function Br() {
|
|
|
111
111
|
}
|
|
112
112
|
function s(v) {
|
|
113
113
|
if (J.call(v, "key")) {
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
114
|
+
var w = Object.getOwnPropertyDescriptor(v, "key").get;
|
|
115
|
+
if (w && w.isReactWarning) return !1;
|
|
116
116
|
}
|
|
117
117
|
return v.key !== void 0;
|
|
118
118
|
}
|
|
119
|
-
function a(v,
|
|
119
|
+
function a(v, w) {
|
|
120
120
|
function T() {
|
|
121
121
|
Ie || (Ie = !0, console.error(
|
|
122
122
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
123
|
-
|
|
123
|
+
w
|
|
124
124
|
));
|
|
125
125
|
}
|
|
126
126
|
T.isReactWarning = !0, Object.defineProperty(v, "key", {
|
|
@@ -134,12 +134,12 @@ function Br() {
|
|
|
134
134
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
135
135
|
)), v = this.props.ref, v !== void 0 ? v : null;
|
|
136
136
|
}
|
|
137
|
-
function c(v,
|
|
137
|
+
function c(v, w, T, k, de, Y) {
|
|
138
138
|
var z = T.ref;
|
|
139
139
|
return v = {
|
|
140
|
-
$$typeof:
|
|
140
|
+
$$typeof: b,
|
|
141
141
|
type: v,
|
|
142
|
-
key:
|
|
142
|
+
key: w,
|
|
143
143
|
props: T,
|
|
144
144
|
_owner: k
|
|
145
145
|
}, (z !== void 0 ? z : null) !== null ? Object.defineProperty(v, "ref", {
|
|
@@ -167,8 +167,8 @@ function Br() {
|
|
|
167
167
|
value: Y
|
|
168
168
|
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
169
169
|
}
|
|
170
|
-
function f(v,
|
|
171
|
-
var z =
|
|
170
|
+
function f(v, w, T, k, de, Y) {
|
|
171
|
+
var z = w.children;
|
|
172
172
|
if (z !== void 0)
|
|
173
173
|
if (k)
|
|
174
174
|
if (oe(z)) {
|
|
@@ -180,9 +180,9 @@ function Br() {
|
|
|
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(z);
|
|
183
|
-
if (J.call(
|
|
183
|
+
if (J.call(w, "key")) {
|
|
184
184
|
z = e(v);
|
|
185
|
-
var q = Object.keys(
|
|
185
|
+
var q = Object.keys(w).filter(function(I) {
|
|
186
186
|
return I !== "key";
|
|
187
187
|
});
|
|
188
188
|
k = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", Re[z + k] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -198,11 +198,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
198
198
|
z
|
|
199
199
|
), Re[z + k] = !0);
|
|
200
200
|
}
|
|
201
|
-
if (z = null, T !== void 0 && (n(T), z = "" + T), s(
|
|
201
|
+
if (z = null, T !== void 0 && (n(T), z = "" + T), s(w) && (n(w.key), z = "" + w.key), "key" in w) {
|
|
202
202
|
T = {};
|
|
203
|
-
for (var Z in
|
|
204
|
-
Z !== "key" && (T[Z] =
|
|
205
|
-
} else T =
|
|
203
|
+
for (var Z in w)
|
|
204
|
+
Z !== "key" && (T[Z] = w[Z]);
|
|
205
|
+
} else T = w;
|
|
206
206
|
return z && a(
|
|
207
207
|
T,
|
|
208
208
|
typeof v == "function" ? v.displayName || v.name || "Unknown" : v
|
|
@@ -219,35 +219,35 @@ React keys must be passed directly to JSX without using spread:
|
|
|
219
219
|
g(v) ? v._store && (v._store.validated = 1) : typeof v == "object" && v !== null && v.$$typeof === P && (v._payload.status === "fulfilled" ? g(v._payload.value) && v._payload.value._store && (v._payload.value._store.validated = 1) : v._store && (v._store.validated = 1));
|
|
220
220
|
}
|
|
221
221
|
function g(v) {
|
|
222
|
-
return typeof v == "object" && v !== null && v.$$typeof ===
|
|
222
|
+
return typeof v == "object" && v !== null && v.$$typeof === b;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var u = F, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), C = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), X = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, oe = Array.isArray, ye = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
|
-
|
|
227
|
+
u = {
|
|
228
228
|
react_stack_bottom_frame: function(v) {
|
|
229
229
|
return v();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var Ie, H = {}, Ae =
|
|
233
|
-
|
|
232
|
+
var Ie, H = {}, Ae = u.react_stack_bottom_frame.bind(
|
|
233
|
+
u,
|
|
234
234
|
i
|
|
235
235
|
)(), ie = ye(r(i)), Re = {};
|
|
236
|
-
et.Fragment =
|
|
236
|
+
et.Fragment = m, et.jsx = function(v, w, T) {
|
|
237
237
|
var k = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
238
238
|
return f(
|
|
239
239
|
v,
|
|
240
|
-
|
|
240
|
+
w,
|
|
241
241
|
T,
|
|
242
242
|
!1,
|
|
243
243
|
k ? Error("react-stack-top-frame") : Ae,
|
|
244
244
|
k ? ye(r(v)) : ie
|
|
245
245
|
);
|
|
246
|
-
}, et.jsxs = function(v,
|
|
246
|
+
}, et.jsxs = function(v, w, T) {
|
|
247
247
|
var k = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
248
248
|
return f(
|
|
249
249
|
v,
|
|
250
|
-
|
|
250
|
+
w,
|
|
251
251
|
T,
|
|
252
252
|
!0,
|
|
253
253
|
k ? Error("react-stack-top-frame") : Ae,
|
|
@@ -260,7 +260,7 @@ var Dn;
|
|
|
260
260
|
function Wr() {
|
|
261
261
|
return Dn || (Dn = 1, process.env.NODE_ENV === "production" ? pt.exports = Fr() : pt.exports = Br()), pt.exports;
|
|
262
262
|
}
|
|
263
|
-
var
|
|
263
|
+
var d = Wr(), bt = { exports: {} }, Ft = {}, mt = { exports: {} }, Bt = {};
|
|
264
264
|
var _n;
|
|
265
265
|
function Hr() {
|
|
266
266
|
if (_n) return Bt;
|
|
@@ -271,27 +271,27 @@ function Hr() {
|
|
|
271
271
|
}
|
|
272
272
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, s = e.useDebugValue;
|
|
273
273
|
function a(h, g) {
|
|
274
|
-
var
|
|
274
|
+
var u = g(), b = r({ inst: { value: u, getSnapshot: g } }), p = b[0].inst, m = b[1];
|
|
275
275
|
return i(
|
|
276
276
|
function() {
|
|
277
|
-
p.value =
|
|
277
|
+
p.value = u, p.getSnapshot = g, l(p) && m({ inst: p });
|
|
278
278
|
},
|
|
279
|
-
[h,
|
|
279
|
+
[h, u, g]
|
|
280
280
|
), o(
|
|
281
281
|
function() {
|
|
282
|
-
return l(p) &&
|
|
283
|
-
l(p) &&
|
|
282
|
+
return l(p) && m({ inst: p }), h(function() {
|
|
283
|
+
l(p) && m({ inst: p });
|
|
284
284
|
});
|
|
285
285
|
},
|
|
286
286
|
[h]
|
|
287
|
-
), s(
|
|
287
|
+
), s(u), u;
|
|
288
288
|
}
|
|
289
289
|
function l(h) {
|
|
290
290
|
var g = h.getSnapshot;
|
|
291
291
|
h = h.value;
|
|
292
292
|
try {
|
|
293
|
-
var
|
|
294
|
-
return !n(h,
|
|
293
|
+
var u = g();
|
|
294
|
+
return !n(h, u);
|
|
295
295
|
} catch {
|
|
296
296
|
return !0;
|
|
297
297
|
}
|
|
@@ -306,50 +306,50 @@ var Wt = {};
|
|
|
306
306
|
var On;
|
|
307
307
|
function Yr() {
|
|
308
308
|
return On || (On = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
309
|
-
function e(
|
|
310
|
-
return
|
|
309
|
+
function e(u, b) {
|
|
310
|
+
return u === b && (u !== 0 || 1 / u === 1 / b) || u !== u && b !== b;
|
|
311
311
|
}
|
|
312
|
-
function t(
|
|
312
|
+
function t(u, b) {
|
|
313
313
|
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
314
314
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
315
315
|
));
|
|
316
|
-
var p =
|
|
316
|
+
var p = b();
|
|
317
317
|
if (!h) {
|
|
318
|
-
var
|
|
319
|
-
i(p,
|
|
318
|
+
var m = b();
|
|
319
|
+
i(p, m) || (console.error(
|
|
320
320
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
321
321
|
), h = !0);
|
|
322
322
|
}
|
|
323
|
-
|
|
324
|
-
inst: { value: p, getSnapshot:
|
|
323
|
+
m = s({
|
|
324
|
+
inst: { value: p, getSnapshot: b }
|
|
325
325
|
});
|
|
326
|
-
var x =
|
|
326
|
+
var x = m[0].inst, y = m[1];
|
|
327
327
|
return l(
|
|
328
328
|
function() {
|
|
329
|
-
x.value = p, x.getSnapshot =
|
|
329
|
+
x.value = p, x.getSnapshot = b, n(x) && y({ inst: x });
|
|
330
330
|
},
|
|
331
|
-
[
|
|
331
|
+
[u, p, b]
|
|
332
332
|
), a(
|
|
333
333
|
function() {
|
|
334
|
-
return n(x) &&
|
|
335
|
-
n(x) &&
|
|
334
|
+
return n(x) && y({ inst: x }), u(function() {
|
|
335
|
+
n(x) && y({ inst: x });
|
|
336
336
|
});
|
|
337
337
|
},
|
|
338
|
-
[
|
|
338
|
+
[u]
|
|
339
339
|
), c(p), p;
|
|
340
340
|
}
|
|
341
|
-
function n(
|
|
342
|
-
var
|
|
343
|
-
|
|
341
|
+
function n(u) {
|
|
342
|
+
var b = u.getSnapshot;
|
|
343
|
+
u = u.value;
|
|
344
344
|
try {
|
|
345
|
-
var p =
|
|
346
|
-
return !i(
|
|
345
|
+
var p = b();
|
|
346
|
+
return !i(u, p);
|
|
347
347
|
} catch {
|
|
348
348
|
return !0;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
function r(
|
|
352
|
-
return
|
|
351
|
+
function r(u, b) {
|
|
352
|
+
return b();
|
|
353
353
|
}
|
|
354
354
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
355
355
|
var o = F, i = typeof Object.is == "function" ? Object.is : e, s = o.useState, a = o.useEffect, l = o.useLayoutEffect, c = o.useDebugValue, f = !1, h = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
@@ -369,28 +369,28 @@ function Ur() {
|
|
|
369
369
|
return c === f && (c !== 0 || 1 / c === 1 / f) || c !== c && f !== f;
|
|
370
370
|
}
|
|
371
371
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, s = e.useEffect, a = e.useMemo, l = e.useDebugValue;
|
|
372
|
-
return Ft.useSyncExternalStoreWithSelector = function(c, f, h, g,
|
|
373
|
-
var
|
|
374
|
-
if (
|
|
372
|
+
return Ft.useSyncExternalStoreWithSelector = function(c, f, h, g, u) {
|
|
373
|
+
var b = i(null);
|
|
374
|
+
if (b.current === null) {
|
|
375
375
|
var p = { hasValue: !1, value: null };
|
|
376
|
-
|
|
377
|
-
} else p =
|
|
378
|
-
|
|
376
|
+
b.current = p;
|
|
377
|
+
} else p = b.current;
|
|
378
|
+
b = a(
|
|
379
379
|
function() {
|
|
380
380
|
function x(S) {
|
|
381
|
-
if (!
|
|
382
|
-
if (
|
|
381
|
+
if (!y) {
|
|
382
|
+
if (y = !0, R = S, S = g(S), u !== void 0 && p.hasValue) {
|
|
383
383
|
var C = p.value;
|
|
384
|
-
if (
|
|
384
|
+
if (u(C, S))
|
|
385
385
|
return D = C;
|
|
386
386
|
}
|
|
387
387
|
return D = S;
|
|
388
388
|
}
|
|
389
389
|
if (C = D, r(R, S)) return C;
|
|
390
390
|
var _ = g(S);
|
|
391
|
-
return
|
|
391
|
+
return u !== void 0 && u(C, _) ? (R = S, C) : (R = S, D = _);
|
|
392
392
|
}
|
|
393
|
-
var
|
|
393
|
+
var y = !1, R, D, O = h === void 0 ? null : h;
|
|
394
394
|
return [
|
|
395
395
|
function() {
|
|
396
396
|
return x(f());
|
|
@@ -400,15 +400,15 @@ function Ur() {
|
|
|
400
400
|
}
|
|
401
401
|
];
|
|
402
402
|
},
|
|
403
|
-
[f, h, g,
|
|
403
|
+
[f, h, g, u]
|
|
404
404
|
);
|
|
405
|
-
var
|
|
405
|
+
var m = o(c, b[0], b[1]);
|
|
406
406
|
return s(
|
|
407
407
|
function() {
|
|
408
|
-
p.hasValue = !0, p.value =
|
|
408
|
+
p.hasValue = !0, p.value = m;
|
|
409
409
|
},
|
|
410
|
-
[
|
|
411
|
-
), l(
|
|
410
|
+
[m]
|
|
411
|
+
), l(m), m;
|
|
412
412
|
}, Ft;
|
|
413
413
|
}
|
|
414
414
|
var Ht = {};
|
|
@@ -420,19 +420,19 @@ function Gr() {
|
|
|
420
420
|
}
|
|
421
421
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
422
422
|
var t = F, n = qn(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, a = t.useMemo, l = t.useDebugValue;
|
|
423
|
-
Ht.useSyncExternalStoreWithSelector = function(c, f, h, g,
|
|
424
|
-
var
|
|
425
|
-
if (
|
|
423
|
+
Ht.useSyncExternalStoreWithSelector = function(c, f, h, g, u) {
|
|
424
|
+
var b = i(null);
|
|
425
|
+
if (b.current === null) {
|
|
426
426
|
var p = { hasValue: !1, value: null };
|
|
427
|
-
|
|
428
|
-
} else p =
|
|
429
|
-
|
|
427
|
+
b.current = p;
|
|
428
|
+
} else p = b.current;
|
|
429
|
+
b = a(
|
|
430
430
|
function() {
|
|
431
431
|
function x(S) {
|
|
432
|
-
if (!
|
|
433
|
-
if (
|
|
432
|
+
if (!y) {
|
|
433
|
+
if (y = !0, R = S, S = g(S), u !== void 0 && p.hasValue) {
|
|
434
434
|
var C = p.value;
|
|
435
|
-
if (
|
|
435
|
+
if (u(C, S))
|
|
436
436
|
return D = C;
|
|
437
437
|
}
|
|
438
438
|
return D = S;
|
|
@@ -440,9 +440,9 @@ function Gr() {
|
|
|
440
440
|
if (C = D, r(R, S))
|
|
441
441
|
return C;
|
|
442
442
|
var _ = g(S);
|
|
443
|
-
return
|
|
443
|
+
return u !== void 0 && u(C, _) ? (R = S, C) : (R = S, D = _);
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var y = !1, R, D, O = h === void 0 ? null : h;
|
|
446
446
|
return [
|
|
447
447
|
function() {
|
|
448
448
|
return x(f());
|
|
@@ -452,15 +452,15 @@ function Gr() {
|
|
|
452
452
|
}
|
|
453
453
|
];
|
|
454
454
|
},
|
|
455
|
-
[f, h, g,
|
|
455
|
+
[f, h, g, u]
|
|
456
456
|
);
|
|
457
|
-
var
|
|
457
|
+
var m = o(c, b[0], b[1]);
|
|
458
458
|
return s(
|
|
459
459
|
function() {
|
|
460
|
-
p.hasValue = !0, p.value =
|
|
460
|
+
p.hasValue = !0, p.value = m;
|
|
461
461
|
},
|
|
462
|
-
[
|
|
463
|
-
), l(
|
|
462
|
+
[m]
|
|
463
|
+
), l(m), m;
|
|
464
464
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
465
465
|
})()), Ht;
|
|
466
466
|
}
|
|
@@ -927,41 +927,41 @@ function po(e) {
|
|
|
927
927
|
onDragMove(h) {
|
|
928
928
|
let {
|
|
929
929
|
active: g,
|
|
930
|
-
over:
|
|
930
|
+
over: u
|
|
931
931
|
} = h;
|
|
932
932
|
t.onDragMove && i(t.onDragMove({
|
|
933
933
|
active: g,
|
|
934
|
-
over:
|
|
934
|
+
over: u
|
|
935
935
|
}));
|
|
936
936
|
},
|
|
937
937
|
onDragOver(h) {
|
|
938
938
|
let {
|
|
939
939
|
active: g,
|
|
940
|
-
over:
|
|
940
|
+
over: u
|
|
941
941
|
} = h;
|
|
942
942
|
i(t.onDragOver({
|
|
943
943
|
active: g,
|
|
944
|
-
over:
|
|
944
|
+
over: u
|
|
945
945
|
}));
|
|
946
946
|
},
|
|
947
947
|
onDragEnd(h) {
|
|
948
948
|
let {
|
|
949
949
|
active: g,
|
|
950
|
-
over:
|
|
950
|
+
over: u
|
|
951
951
|
} = h;
|
|
952
952
|
i(t.onDragEnd({
|
|
953
953
|
active: g,
|
|
954
|
-
over:
|
|
954
|
+
over: u
|
|
955
955
|
}));
|
|
956
956
|
},
|
|
957
957
|
onDragCancel(h) {
|
|
958
958
|
let {
|
|
959
959
|
active: g,
|
|
960
|
-
over:
|
|
960
|
+
over: u
|
|
961
961
|
} = h;
|
|
962
962
|
i(t.onDragCancel({
|
|
963
963
|
active: g,
|
|
964
|
-
over:
|
|
964
|
+
over: u
|
|
965
965
|
}));
|
|
966
966
|
}
|
|
967
967
|
}), [i, t])), !l)
|
|
@@ -1304,19 +1304,19 @@ function Lo(e, t, n, r, o) {
|
|
|
1304
1304
|
isBottom: f,
|
|
1305
1305
|
isLeft: h,
|
|
1306
1306
|
isRight: g
|
|
1307
|
-
} = ar(e),
|
|
1307
|
+
} = ar(e), u = {
|
|
1308
1308
|
x: 0,
|
|
1309
1309
|
y: 0
|
|
1310
|
-
},
|
|
1310
|
+
}, b = {
|
|
1311
1311
|
x: 0,
|
|
1312
1312
|
y: 0
|
|
1313
1313
|
}, p = {
|
|
1314
1314
|
height: t.height * o.y,
|
|
1315
1315
|
width: t.width * o.x
|
|
1316
1316
|
};
|
|
1317
|
-
return !c && i <= t.top + p.height ? (
|
|
1318
|
-
direction:
|
|
1319
|
-
speed:
|
|
1317
|
+
return !c && i <= t.top + p.height ? (u.y = B.Backward, b.y = r * Math.abs((t.top + p.height - i) / p.height)) : !f && l >= t.bottom - p.height && (u.y = B.Forward, b.y = r * Math.abs((t.bottom - p.height - l) / p.height)), !g && a >= t.right - p.width ? (u.x = B.Forward, b.x = r * Math.abs((t.right - p.width - a) / p.width)) : !h && s <= t.left + p.width && (u.x = B.Backward, b.x = r * Math.abs((t.left + p.width - s) / p.width)), {
|
|
1318
|
+
direction: u,
|
|
1319
|
+
speed: b
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
1322
|
function Mo(e) {
|
|
@@ -1517,26 +1517,26 @@ class ur {
|
|
|
1517
1517
|
currentCoordinates: f
|
|
1518
1518
|
});
|
|
1519
1519
|
if (h) {
|
|
1520
|
-
const g = _t(h, f),
|
|
1520
|
+
const g = _t(h, f), u = {
|
|
1521
1521
|
x: 0,
|
|
1522
1522
|
y: 0
|
|
1523
1523
|
}, {
|
|
1524
|
-
scrollableAncestors:
|
|
1524
|
+
scrollableAncestors: b
|
|
1525
1525
|
} = r.current;
|
|
1526
|
-
for (const p of
|
|
1527
|
-
const
|
|
1526
|
+
for (const p of b) {
|
|
1527
|
+
const m = t.code, {
|
|
1528
1528
|
isTop: x,
|
|
1529
|
-
isRight:
|
|
1529
|
+
isRight: y,
|
|
1530
1530
|
isLeft: R,
|
|
1531
1531
|
isBottom: D,
|
|
1532
1532
|
maxScroll: O,
|
|
1533
1533
|
minScroll: S
|
|
1534
1534
|
} = ar(p), C = Mo(p), _ = {
|
|
1535
|
-
x: Math.min(
|
|
1536
|
-
y: Math.min(
|
|
1537
|
-
}, P =
|
|
1535
|
+
x: Math.min(m === j.Right ? C.right - C.width / 2 : C.right, Math.max(m === j.Right ? C.left : C.left + C.width / 2, h.x)),
|
|
1536
|
+
y: Math.min(m === j.Down ? C.bottom - C.height / 2 : C.bottom, Math.max(m === j.Down ? C.top : C.top + C.height / 2, h.y))
|
|
1537
|
+
}, P = m === j.Right && !y || m === j.Left && !R, $ = m === j.Down && !D || m === j.Up && !x;
|
|
1538
1538
|
if (P && _.x !== h.x) {
|
|
1539
|
-
const L = p.scrollLeft + g.x, X =
|
|
1539
|
+
const L = p.scrollLeft + g.x, X = m === j.Right && L <= O.x || m === j.Left && L >= S.x;
|
|
1540
1540
|
if (X && !g.y) {
|
|
1541
1541
|
p.scrollTo({
|
|
1542
1542
|
left: L,
|
|
@@ -1544,13 +1544,13 @@ class ur {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
return;
|
|
1546
1546
|
}
|
|
1547
|
-
X ?
|
|
1548
|
-
left: -
|
|
1547
|
+
X ? u.x = p.scrollLeft - L : u.x = m === j.Right ? p.scrollLeft - O.x : p.scrollLeft - S.x, u.x && p.scrollBy({
|
|
1548
|
+
left: -u.x,
|
|
1549
1549
|
behavior: a
|
|
1550
1550
|
});
|
|
1551
1551
|
break;
|
|
1552
1552
|
} else if ($ && _.y !== h.y) {
|
|
1553
|
-
const L = p.scrollTop + g.y, X =
|
|
1553
|
+
const L = p.scrollTop + g.y, X = m === j.Down && L <= O.y || m === j.Up && L >= S.y;
|
|
1554
1554
|
if (X && !g.x) {
|
|
1555
1555
|
p.scrollTo({
|
|
1556
1556
|
top: L,
|
|
@@ -1558,14 +1558,14 @@ class ur {
|
|
|
1558
1558
|
});
|
|
1559
1559
|
return;
|
|
1560
1560
|
}
|
|
1561
|
-
X ?
|
|
1562
|
-
top: -
|
|
1561
|
+
X ? u.y = p.scrollTop - L : u.y = m === j.Down ? p.scrollTop - O.y : p.scrollTop - S.y, u.y && p.scrollBy({
|
|
1562
|
+
top: -u.y,
|
|
1563
1563
|
behavior: a
|
|
1564
1564
|
});
|
|
1565
1565
|
break;
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
this.handleMove(t, We(_t(h, this.referenceCoordinates),
|
|
1568
|
+
this.handleMove(t, We(_t(h, this.referenceCoordinates), u));
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
@@ -1857,16 +1857,16 @@ function Xo(e) {
|
|
|
1857
1857
|
delta: h,
|
|
1858
1858
|
threshold: g
|
|
1859
1859
|
} = e;
|
|
1860
|
-
const
|
|
1860
|
+
const u = Jo({
|
|
1861
1861
|
delta: h,
|
|
1862
1862
|
disabled: !i
|
|
1863
|
-
}), [
|
|
1863
|
+
}), [b, p] = ro(), m = M({
|
|
1864
1864
|
x: 0,
|
|
1865
1865
|
y: 0
|
|
1866
1866
|
}), x = M({
|
|
1867
1867
|
x: 0,
|
|
1868
1868
|
y: 0
|
|
1869
|
-
}),
|
|
1869
|
+
}), y = N(() => {
|
|
1870
1870
|
switch (n) {
|
|
1871
1871
|
case rt.Pointer:
|
|
1872
1872
|
return l ? {
|
|
@@ -1882,12 +1882,12 @@ function Xo(e) {
|
|
|
1882
1882
|
const S = R.current;
|
|
1883
1883
|
if (!S)
|
|
1884
1884
|
return;
|
|
1885
|
-
const C =
|
|
1885
|
+
const C = m.current.x * x.current.x, _ = m.current.y * x.current.y;
|
|
1886
1886
|
S.scrollBy(C, _);
|
|
1887
1887
|
}, []), O = N(() => a === Tt.TreeOrder ? [...c].reverse() : c, [a, c]);
|
|
1888
1888
|
A(
|
|
1889
1889
|
() => {
|
|
1890
|
-
if (!i || !c.length || !
|
|
1890
|
+
if (!i || !c.length || !y) {
|
|
1891
1891
|
p();
|
|
1892
1892
|
return;
|
|
1893
1893
|
}
|
|
@@ -1900,15 +1900,15 @@ function Xo(e) {
|
|
|
1900
1900
|
const {
|
|
1901
1901
|
direction: P,
|
|
1902
1902
|
speed: $
|
|
1903
|
-
} = Lo(S, _,
|
|
1903
|
+
} = Lo(S, _, y, t, g);
|
|
1904
1904
|
for (const L of ["x", "y"])
|
|
1905
|
-
|
|
1905
|
+
u[L][P[L]] || ($[L] = 0, P[L] = 0);
|
|
1906
1906
|
if ($.x > 0 || $.y > 0) {
|
|
1907
|
-
p(), R.current = S,
|
|
1907
|
+
p(), R.current = S, b(D, s), m.current = $, x.current = P;
|
|
1908
1908
|
return;
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
|
|
1911
|
+
m.current = {
|
|
1912
1912
|
x: 0,
|
|
1913
1913
|
y: 0
|
|
1914
1914
|
}, x.current = {
|
|
@@ -1925,10 +1925,10 @@ function Xo(e) {
|
|
|
1925
1925
|
i,
|
|
1926
1926
|
s,
|
|
1927
1927
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1928
|
-
JSON.stringify(
|
|
1928
|
+
JSON.stringify(y),
|
|
1929
1929
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1930
|
-
JSON.stringify(
|
|
1931
|
-
|
|
1930
|
+
JSON.stringify(u),
|
|
1931
|
+
b,
|
|
1932
1932
|
c,
|
|
1933
1933
|
O,
|
|
1934
1934
|
f,
|
|
@@ -2009,24 +2009,24 @@ function Qo(e, t) {
|
|
|
2009
2009
|
frequency: a,
|
|
2010
2010
|
measure: l,
|
|
2011
2011
|
strategy: c
|
|
2012
|
-
} = o, f = M(e), h =
|
|
2013
|
-
x === void 0 && (x = []), !g.current && s((
|
|
2014
|
-
}, [g]),
|
|
2012
|
+
} = o, f = M(e), h = m(), g = it(h), u = G(function(x) {
|
|
2013
|
+
x === void 0 && (x = []), !g.current && s((y) => y === null ? x : y.concat(x.filter((R) => !y.includes(R))));
|
|
2014
|
+
}, [g]), b = M(null), p = dt((x) => {
|
|
2015
2015
|
if (h && !n)
|
|
2016
2016
|
return Fn;
|
|
2017
2017
|
if (!x || x === Fn || f.current !== e || i != null) {
|
|
2018
|
-
const
|
|
2018
|
+
const y = /* @__PURE__ */ new Map();
|
|
2019
2019
|
for (let R of e) {
|
|
2020
2020
|
if (!R)
|
|
2021
2021
|
continue;
|
|
2022
2022
|
if (i && i.length > 0 && !i.includes(R.id) && R.rect.current) {
|
|
2023
|
-
|
|
2023
|
+
y.set(R.id, R.rect.current);
|
|
2024
2024
|
continue;
|
|
2025
2025
|
}
|
|
2026
2026
|
const D = R.node.current, O = D ? new fn(l(D), D) : null;
|
|
2027
|
-
R.rect.current = O, O &&
|
|
2027
|
+
R.rect.current = O, O && y.set(R.id, O);
|
|
2028
2028
|
}
|
|
2029
|
-
return
|
|
2029
|
+
return y;
|
|
2030
2030
|
}
|
|
2031
2031
|
return x;
|
|
2032
2032
|
}, [e, i, n, h, l]);
|
|
@@ -2034,7 +2034,7 @@ function Qo(e, t) {
|
|
|
2034
2034
|
f.current = e;
|
|
2035
2035
|
}, [e]), A(
|
|
2036
2036
|
() => {
|
|
2037
|
-
h ||
|
|
2037
|
+
h || u();
|
|
2038
2038
|
},
|
|
2039
2039
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2040
2040
|
[n, h]
|
|
@@ -2046,18 +2046,18 @@ function Qo(e, t) {
|
|
|
2046
2046
|
[JSON.stringify(i)]
|
|
2047
2047
|
), A(
|
|
2048
2048
|
() => {
|
|
2049
|
-
h || typeof a != "number" ||
|
|
2050
|
-
|
|
2049
|
+
h || typeof a != "number" || b.current !== null || (b.current = setTimeout(() => {
|
|
2050
|
+
u(), b.current = null;
|
|
2051
2051
|
}, a));
|
|
2052
2052
|
},
|
|
2053
2053
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2054
|
-
[a, h,
|
|
2054
|
+
[a, h, u, ...r]
|
|
2055
2055
|
), {
|
|
2056
2056
|
droppableRects: p,
|
|
2057
|
-
measureDroppableContainers:
|
|
2057
|
+
measureDroppableContainers: u,
|
|
2058
2058
|
measuringScheduled: i != null
|
|
2059
2059
|
};
|
|
2060
|
-
function
|
|
2060
|
+
function m() {
|
|
2061
2061
|
switch (c) {
|
|
2062
2062
|
case st.Always:
|
|
2063
2063
|
return !1;
|
|
@@ -2606,10 +2606,10 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2606
2606
|
sensors: f = di,
|
|
2607
2607
|
collisionDetection: h = Co,
|
|
2608
2608
|
measuring: g,
|
|
2609
|
-
modifiers:
|
|
2610
|
-
...
|
|
2609
|
+
modifiers: u,
|
|
2610
|
+
...b
|
|
2611
2611
|
} = t;
|
|
2612
|
-
const p = Mr(pi, void 0, gi), [
|
|
2612
|
+
const p = Mr(pi, void 0, gi), [m, x] = p, [y, R] = ho(), [D, O] = ne(Te.Uninitialized), S = D === Te.Initialized, {
|
|
2613
2613
|
draggable: {
|
|
2614
2614
|
active: C,
|
|
2615
2615
|
nodes: _,
|
|
@@ -2618,7 +2618,7 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2618
2618
|
droppable: {
|
|
2619
2619
|
containers: $
|
|
2620
2620
|
}
|
|
2621
|
-
} =
|
|
2621
|
+
} = m, L = C != null ? _.get(C) : null, X = M({
|
|
2622
2622
|
initial: null,
|
|
2623
2623
|
translated: null
|
|
2624
2624
|
}), J = N(() => {
|
|
@@ -2629,22 +2629,22 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2629
2629
|
data: (U = L?.data) != null ? U : fi,
|
|
2630
2630
|
rect: X
|
|
2631
2631
|
} : null;
|
|
2632
|
-
}, [C, L]), oe = M(null), [ye, Ie] = ne(null), [H, Ae] = ne(null), ie = it(
|
|
2632
|
+
}, [C, L]), oe = M(null), [ye, Ie] = ne(null), [H, Ae] = ne(null), ie = it(b, Object.values(b)), Re = ft("DndDescribedBy", s), v = N(() => $.getEnabled(), [$]), w = xi(g), {
|
|
2633
2633
|
droppableRects: T,
|
|
2634
2634
|
measureDroppableContainers: k,
|
|
2635
2635
|
measuringScheduled: de
|
|
2636
2636
|
} = Qo(v, {
|
|
2637
2637
|
dragging: S,
|
|
2638
2638
|
dependencies: [P.x, P.y],
|
|
2639
|
-
config:
|
|
2640
|
-
}), Y = Ko(_, C), z = N(() => H ? tn(H) : null, [H]), q = kr(), Z = ei(Y,
|
|
2639
|
+
config: w.droppable
|
|
2640
|
+
}), Y = Ko(_, C), z = N(() => H ? tn(H) : null, [H]), q = kr(), Z = ei(Y, w.draggable.measure);
|
|
2641
2641
|
yi({
|
|
2642
2642
|
activeNode: C != null ? _.get(C) : null,
|
|
2643
2643
|
config: q.layoutShiftCompensation,
|
|
2644
2644
|
initialRect: Z,
|
|
2645
|
-
measure:
|
|
2645
|
+
measure: w.draggable.measure
|
|
2646
2646
|
});
|
|
2647
|
-
const I = Bn(Y,
|
|
2647
|
+
const I = Bn(Y, w.draggable.measure, Z), Xe = Bn(Y ? Y.parentElement : null), fe = M({
|
|
2648
2648
|
activatorEvent: null,
|
|
2649
2649
|
active: null,
|
|
2650
2650
|
activeNode: Y,
|
|
@@ -2659,8 +2659,8 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2659
2659
|
scrollableAncestors: [],
|
|
2660
2660
|
scrollAdjustedTranslate: null
|
|
2661
2661
|
}), Me = $.getNodeFor((n = fe.current.over) == null ? void 0 : n.id), we = ui({
|
|
2662
|
-
measure:
|
|
2663
|
-
}), Pe = (r = we.nodeRef.current) != null ? r : Y, ze = S ? (o = we.rect) != null ? o : I : null, pn = !!(we.nodeRef.current && we.rect), bn = ri(pn ? null : I), Pt = fr(Pe ? K(Pe) : null), Ce = oi(S ? Me ?? Y : null), ht = li(Ce), vt = mi(
|
|
2662
|
+
measure: w.dragOverlay.measure
|
|
2663
|
+
}), Pe = (r = we.nodeRef.current) != null ? r : Y, ze = S ? (o = we.rect) != null ? o : I : null, pn = !!(we.nodeRef.current && we.rect), bn = ri(pn ? null : I), Pt = fr(Pe ? K(Pe) : null), Ce = oi(S ? Me ?? Y : null), ht = li(Ce), vt = mi(u, {
|
|
2664
2664
|
transform: {
|
|
2665
2665
|
x: P.x - bn.x,
|
|
2666
2666
|
y: P.y - bn.y,
|
|
@@ -2710,7 +2710,7 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2710
2710
|
} = ie.current, Se = {
|
|
2711
2711
|
id: W
|
|
2712
2712
|
};
|
|
2713
|
-
ve?.(Se),
|
|
2713
|
+
ve?.(Se), y({
|
|
2714
2714
|
type: "onDragAbort",
|
|
2715
2715
|
event: Se
|
|
2716
2716
|
});
|
|
@@ -2726,7 +2726,7 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2726
2726
|
initialCoordinates: ve,
|
|
2727
2727
|
offset: Se
|
|
2728
2728
|
};
|
|
2729
|
-
Ke?.(Oe),
|
|
2729
|
+
Ke?.(Oe), y({
|
|
2730
2730
|
type: "onDragPending",
|
|
2731
2731
|
event: Oe
|
|
2732
2732
|
});
|
|
@@ -2753,7 +2753,7 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2753
2753
|
type: V.DragStart,
|
|
2754
2754
|
initialCoordinates: W,
|
|
2755
2755
|
active: _e
|
|
2756
|
-
}),
|
|
2756
|
+
}), y({
|
|
2757
2757
|
type: "onDragStart",
|
|
2758
2758
|
event: Je
|
|
2759
2759
|
}), Ie(zt.current), Ae(te);
|
|
@@ -2797,7 +2797,7 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2797
2797
|
const Ze = W === V.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2798
2798
|
if (Oe) {
|
|
2799
2799
|
const $t = ie.current[Ze];
|
|
2800
|
-
$t?.(Oe),
|
|
2800
|
+
$t?.(Oe), y({
|
|
2801
2801
|
type: Ze,
|
|
2802
2802
|
event: Oe
|
|
2803
2803
|
});
|
|
@@ -2849,7 +2849,7 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2849
2849
|
over: se
|
|
2850
2850
|
};
|
|
2851
2851
|
gt(() => {
|
|
2852
|
-
U?.(te),
|
|
2852
|
+
U?.(te), y({
|
|
2853
2853
|
type: "onDragMove",
|
|
2854
2854
|
event: te
|
|
2855
2855
|
});
|
|
@@ -2886,7 +2886,7 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2886
2886
|
over: Fe
|
|
2887
2887
|
};
|
|
2888
2888
|
gt(() => {
|
|
2889
|
-
wn(Fe), te?.(W),
|
|
2889
|
+
wn(Fe), te?.(W), y({
|
|
2890
2890
|
type: "onDragOver",
|
|
2891
2891
|
event: W
|
|
2892
2892
|
});
|
|
@@ -2936,10 +2936,10 @@ const gr = /* @__PURE__ */ Lr(function(t) {
|
|
|
2936
2936
|
measureDroppableContainers: k,
|
|
2937
2937
|
scrollableAncestors: Ce,
|
|
2938
2938
|
scrollableAncestorRects: ht,
|
|
2939
|
-
measuringConfiguration:
|
|
2939
|
+
measuringConfiguration: w,
|
|
2940
2940
|
measuringScheduled: de,
|
|
2941
2941
|
windowRect: Pt
|
|
2942
|
-
}), [J, Y, I, H, qe, Xe, we, _, $, T, Ee, k, Ce, ht,
|
|
2942
|
+
}), [J, Y, I, H, qe, Xe, we, _, $, T, Ee, k, Ce, ht, w, de, Pt]), Ar = N(() => ({
|
|
2943
2943
|
activatorEvent: H,
|
|
2944
2944
|
activators: Rn,
|
|
2945
2945
|
active: J,
|
|
@@ -2992,15 +2992,15 @@ function Ri(e) {
|
|
|
2992
2992
|
draggableNodes: h,
|
|
2993
2993
|
over: g
|
|
2994
2994
|
} = Ne(Lt), {
|
|
2995
|
-
role:
|
|
2996
|
-
roleDescription:
|
|
2995
|
+
role: u = Un,
|
|
2996
|
+
roleDescription: b = "draggable",
|
|
2997
2997
|
tabIndex: p = 0
|
|
2998
|
-
} = o ?? {},
|
|
2998
|
+
} = o ?? {}, m = l?.id === t, x = Ne(m ? vr : wi), [y, R] = Dt(), [D, O] = Dt(), S = ai(s, t), C = it(n);
|
|
2999
2999
|
be(
|
|
3000
3000
|
() => (h.set(t, {
|
|
3001
3001
|
id: t,
|
|
3002
3002
|
key: i,
|
|
3003
|
-
node:
|
|
3003
|
+
node: y,
|
|
3004
3004
|
activatorNode: D,
|
|
3005
3005
|
data: C
|
|
3006
3006
|
}), () => {
|
|
@@ -3011,21 +3011,21 @@ function Ri(e) {
|
|
|
3011
3011
|
[h, t]
|
|
3012
3012
|
);
|
|
3013
3013
|
const _ = N(() => ({
|
|
3014
|
-
role:
|
|
3014
|
+
role: u,
|
|
3015
3015
|
tabIndex: p,
|
|
3016
3016
|
"aria-disabled": r,
|
|
3017
|
-
"aria-pressed":
|
|
3018
|
-
"aria-roledescription":
|
|
3017
|
+
"aria-pressed": m && u === Un ? !0 : void 0,
|
|
3018
|
+
"aria-roledescription": b,
|
|
3019
3019
|
"aria-describedby": f.draggable
|
|
3020
|
-
}), [r,
|
|
3020
|
+
}), [r, u, p, m, b, f.draggable]);
|
|
3021
3021
|
return {
|
|
3022
3022
|
active: l,
|
|
3023
3023
|
activatorEvent: a,
|
|
3024
3024
|
activeNodeRect: c,
|
|
3025
3025
|
attributes: _,
|
|
3026
|
-
isDragging:
|
|
3026
|
+
isDragging: m,
|
|
3027
3027
|
listeners: r ? void 0 : S,
|
|
3028
|
-
node:
|
|
3028
|
+
node: y,
|
|
3029
3029
|
over: g,
|
|
3030
3030
|
setNodeRef: R,
|
|
3031
3031
|
setActivatorNodeRef: O,
|
|
@@ -3052,28 +3052,28 @@ function _i(e) {
|
|
|
3052
3052
|
measureDroppableContainers: c
|
|
3053
3053
|
} = Ne(Lt), f = M({
|
|
3054
3054
|
disabled: n
|
|
3055
|
-
}), h = M(!1), g = M(null),
|
|
3056
|
-
disabled:
|
|
3055
|
+
}), h = M(!1), g = M(null), u = M(null), {
|
|
3056
|
+
disabled: b,
|
|
3057
3057
|
updateMeasurementsFor: p,
|
|
3058
|
-
timeout:
|
|
3058
|
+
timeout: m
|
|
3059
3059
|
} = {
|
|
3060
3060
|
...Di,
|
|
3061
3061
|
...o
|
|
3062
|
-
}, x = it(p ?? r),
|
|
3062
|
+
}, x = it(p ?? r), y = G(
|
|
3063
3063
|
() => {
|
|
3064
3064
|
if (!h.current) {
|
|
3065
3065
|
h.current = !0;
|
|
3066
3066
|
return;
|
|
3067
3067
|
}
|
|
3068
|
-
|
|
3069
|
-
c(Array.isArray(x.current) ? x.current : [x.current]),
|
|
3070
|
-
},
|
|
3068
|
+
u.current != null && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
3069
|
+
c(Array.isArray(x.current) ? x.current : [x.current]), u.current = null;
|
|
3070
|
+
}, m);
|
|
3071
3071
|
},
|
|
3072
3072
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3073
|
-
[
|
|
3073
|
+
[m]
|
|
3074
3074
|
), R = Nt({
|
|
3075
|
-
callback:
|
|
3076
|
-
disabled:
|
|
3075
|
+
callback: y,
|
|
3076
|
+
disabled: b || !s
|
|
3077
3077
|
}), D = G((_, P) => {
|
|
3078
3078
|
R && (P && (R.unobserve(P), h.current = !1), _ && R.observe(_));
|
|
3079
3079
|
}, [R]), [O, S] = Dt(D), C = it(t);
|
|
@@ -3268,26 +3268,26 @@ function xr(e) {
|
|
|
3268
3268
|
droppableRects: l,
|
|
3269
3269
|
over: c,
|
|
3270
3270
|
measureDroppableContainers: f
|
|
3271
|
-
} = Ci(), h = ft(br, n), g = a.rect !== null,
|
|
3271
|
+
} = Ci(), h = ft(br, n), g = a.rect !== null, u = N(() => r.map((S) => typeof S == "object" && "id" in S ? S.id : S), [r]), b = s != null, p = s ? u.indexOf(s.id) : -1, m = c ? u.indexOf(c.id) : -1, x = M(u), y = !Ti(u, x.current), R = m !== -1 && p === -1 || y, D = ji(i);
|
|
3272
3272
|
be(() => {
|
|
3273
|
-
|
|
3274
|
-
}, [
|
|
3275
|
-
x.current =
|
|
3276
|
-
}, [
|
|
3273
|
+
y && b && f(u);
|
|
3274
|
+
}, [y, u, b, f]), A(() => {
|
|
3275
|
+
x.current = u;
|
|
3276
|
+
}, [u]);
|
|
3277
3277
|
const O = N(
|
|
3278
3278
|
() => ({
|
|
3279
3279
|
activeIndex: p,
|
|
3280
3280
|
containerId: h,
|
|
3281
3281
|
disabled: D,
|
|
3282
3282
|
disableTransforms: R,
|
|
3283
|
-
items:
|
|
3284
|
-
overIndex:
|
|
3283
|
+
items: u,
|
|
3284
|
+
overIndex: m,
|
|
3285
3285
|
useDragOverlay: g,
|
|
3286
|
-
sortedRects: Oi(
|
|
3286
|
+
sortedRects: Oi(u, l),
|
|
3287
3287
|
strategy: o
|
|
3288
3288
|
}),
|
|
3289
3289
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3290
|
-
[p, h, D.draggable, D.droppable, R,
|
|
3290
|
+
[p, h, D.draggable, D.droppable, R, u, m, l, g, o]
|
|
3291
3291
|
);
|
|
3292
3292
|
return F.createElement(mr.Provider, {
|
|
3293
3293
|
value: O
|
|
@@ -3368,13 +3368,13 @@ function wr(e) {
|
|
|
3368
3368
|
items: f,
|
|
3369
3369
|
containerId: h,
|
|
3370
3370
|
activeIndex: g,
|
|
3371
|
-
disabled:
|
|
3372
|
-
disableTransforms:
|
|
3371
|
+
disabled: u,
|
|
3372
|
+
disableTransforms: b,
|
|
3373
3373
|
sortedRects: p,
|
|
3374
|
-
overIndex:
|
|
3374
|
+
overIndex: m,
|
|
3375
3375
|
useDragOverlay: x,
|
|
3376
|
-
strategy:
|
|
3377
|
-
} = Ne(mr), R = Fi(r,
|
|
3376
|
+
strategy: y
|
|
3377
|
+
} = Ne(mr), R = Fi(r, u), D = f.indexOf(s), O = N(() => ({
|
|
3378
3378
|
sortable: {
|
|
3379
3379
|
containerId: h,
|
|
3380
3380
|
index: D,
|
|
@@ -3413,17 +3413,17 @@ function wr(e) {
|
|
|
3413
3413
|
...n
|
|
3414
3414
|
},
|
|
3415
3415
|
disabled: R.draggable
|
|
3416
|
-
}), v = no($, ye),
|
|
3416
|
+
}), v = no($, ye), w = !!L, T = w && !b && yt(g) && yt(m), k = !x && H, de = k && T ? Re : null, z = T ? de ?? (a ?? y)({
|
|
3417
3417
|
rects: p,
|
|
3418
3418
|
activeNodeRect: J,
|
|
3419
3419
|
activeIndex: g,
|
|
3420
|
-
overIndex:
|
|
3420
|
+
overIndex: m,
|
|
3421
3421
|
index: D
|
|
3422
|
-
}) : null, q = yt(g) && yt(
|
|
3422
|
+
}) : null, q = yt(g) && yt(m) ? i({
|
|
3423
3423
|
id: s,
|
|
3424
3424
|
items: f,
|
|
3425
3425
|
activeIndex: g,
|
|
3426
|
-
overIndex:
|
|
3426
|
+
overIndex: m
|
|
3427
3427
|
}) : D, Z = L?.id, I = M({
|
|
3428
3428
|
activeId: Z,
|
|
3429
3429
|
items: f,
|
|
@@ -3433,7 +3433,7 @@ function wr(e) {
|
|
|
3433
3433
|
active: L,
|
|
3434
3434
|
containerId: h,
|
|
3435
3435
|
isDragging: H,
|
|
3436
|
-
isSorting:
|
|
3436
|
+
isSorting: w,
|
|
3437
3437
|
id: s,
|
|
3438
3438
|
index: D,
|
|
3439
3439
|
items: f,
|
|
@@ -3449,8 +3449,8 @@ function wr(e) {
|
|
|
3449
3449
|
rect: C
|
|
3450
3450
|
});
|
|
3451
3451
|
return A(() => {
|
|
3452
|
-
|
|
3453
|
-
}, [
|
|
3452
|
+
w && 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
|
+
}, [w, q, h, f]), A(() => {
|
|
3454
3454
|
if (Z === I.current.activeId)
|
|
3455
3455
|
return;
|
|
3456
3456
|
if (Z != null && I.current.activeId == null) {
|
|
@@ -3471,11 +3471,11 @@ function wr(e) {
|
|
|
3471
3471
|
newIndex: q,
|
|
3472
3472
|
items: f,
|
|
3473
3473
|
isOver: P,
|
|
3474
|
-
isSorting:
|
|
3474
|
+
isSorting: w,
|
|
3475
3475
|
isDragging: H,
|
|
3476
3476
|
listeners: Ie,
|
|
3477
3477
|
node: _,
|
|
3478
|
-
overIndex:
|
|
3478
|
+
overIndex: m,
|
|
3479
3479
|
over: Ae,
|
|
3480
3480
|
setNodeRef: v,
|
|
3481
3481
|
setActivatorNodeRef: ie,
|
|
@@ -3491,7 +3491,7 @@ function wr(e) {
|
|
|
3491
3491
|
Xe && I.current.newIndex === D
|
|
3492
3492
|
)
|
|
3493
3493
|
return zi;
|
|
3494
|
-
if (!(k && !un(X) || !c) && (
|
|
3494
|
+
if (!(k && !un(X) || !c) && (w || fe))
|
|
3495
3495
|
return He.Transition.toString({
|
|
3496
3496
|
...c,
|
|
3497
3497
|
property: yr
|
|
@@ -3656,7 +3656,7 @@ function E(e) {
|
|
|
3656
3656
|
const { children: r, ...o } = t;
|
|
3657
3657
|
return (
|
|
3658
3658
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3659
|
-
/* @__PURE__ */
|
|
3659
|
+
/* @__PURE__ */ d.jsx(e, { ref: n, ...o, children: r })
|
|
3660
3660
|
);
|
|
3661
3661
|
});
|
|
3662
3662
|
}
|
|
@@ -3722,14 +3722,14 @@ function Rs(e) {
|
|
|
3722
3722
|
const Cs = E(me.Trigger), Es = E(me.Positioner), Ds = E(me.Content), _s = E(me.Item), Os = E(Le.Label), Ts = E(Le.HiddenInput), js = E(Le.Control);
|
|
3723
3723
|
function Is({ visibility: e, onToggle: t }) {
|
|
3724
3724
|
const { sortableColumns: n } = ct(le);
|
|
3725
|
-
return /* @__PURE__ */
|
|
3726
|
-
/* @__PURE__ */
|
|
3727
|
-
/* @__PURE__ */
|
|
3725
|
+
return /* @__PURE__ */ d.jsxs(me.Root, { closeOnSelect: !1, children: [
|
|
3726
|
+
/* @__PURE__ */ d.jsx(Cs, { asChild: !0, children: /* @__PURE__ */ d.jsx(ke, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ d.jsx(ss, { size: 18 }) }) }),
|
|
3727
|
+
/* @__PURE__ */ d.jsx(It, { children: /* @__PURE__ */ d.jsx(Es, { children: /* @__PURE__ */ d.jsx(Ds, { minW: "220px", children: n.map((r) => {
|
|
3728
3728
|
const o = !!e[r.id];
|
|
3729
|
-
return /* @__PURE__ */
|
|
3730
|
-
/* @__PURE__ */
|
|
3731
|
-
/* @__PURE__ */
|
|
3732
|
-
/* @__PURE__ */
|
|
3729
|
+
return /* @__PURE__ */ d.jsx(_s, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ d.jsxs(Le.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3730
|
+
/* @__PURE__ */ d.jsx(Ts, {}),
|
|
3731
|
+
/* @__PURE__ */ d.jsx(js, {}),
|
|
3732
|
+
/* @__PURE__ */ d.jsx(Os, { children: r.label })
|
|
3733
3733
|
] }) }, r.id);
|
|
3734
3734
|
}) }) }) })
|
|
3735
3735
|
] });
|
|
@@ -3743,7 +3743,7 @@ function As({
|
|
|
3743
3743
|
borderRightColor: i
|
|
3744
3744
|
}) {
|
|
3745
3745
|
const { setNodeRef: s, attributes: a, listeners: l, transform: c, transition: f } = wr({ id: e });
|
|
3746
|
-
return /* @__PURE__ */
|
|
3746
|
+
return /* @__PURE__ */ d.jsx(
|
|
3747
3747
|
ge.ColumnHeader,
|
|
3748
3748
|
{
|
|
3749
3749
|
ref: s,
|
|
@@ -3757,9 +3757,9 @@ function As({
|
|
|
3757
3757
|
borderRightColor: i
|
|
3758
3758
|
},
|
|
3759
3759
|
...a,
|
|
3760
|
-
children: /* @__PURE__ */
|
|
3760
|
+
children: /* @__PURE__ */ d.jsxs(pe, { justify: "space-between", children: [
|
|
3761
3761
|
t,
|
|
3762
|
-
/* @__PURE__ */
|
|
3762
|
+
/* @__PURE__ */ d.jsx("span", { ...l, children: /* @__PURE__ */ d.jsx(vs, { size: 12 }) })
|
|
3763
3763
|
] })
|
|
3764
3764
|
}
|
|
3765
3765
|
);
|
|
@@ -3768,25 +3768,25 @@ function ks() {
|
|
|
3768
3768
|
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = ct(le), i = e.map((a) => o.find((l) => l.id === a.id)).filter((a) => a !== void 0).filter((a) => t[a.id]), s = (a) => {
|
|
3769
3769
|
const { active: l, over: c } = a;
|
|
3770
3770
|
if (!c || l.id === c.id) return;
|
|
3771
|
-
const f = e.findIndex((
|
|
3771
|
+
const f = e.findIndex((u) => u.id === l.id), h = e.findIndex((u) => u.id === c.id), g = Mt(e, f, h);
|
|
3772
3772
|
xs(g);
|
|
3773
3773
|
};
|
|
3774
|
-
return /* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ d.jsx(ge.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ d.jsx(gr, { collisionDetection: tr, onDragEnd: s, children: /* @__PURE__ */ d.jsx(
|
|
3775
3775
|
xr,
|
|
3776
3776
|
{
|
|
3777
3777
|
items: e.map((a) => a.id),
|
|
3778
3778
|
strategy: Ii,
|
|
3779
|
-
children: /* @__PURE__ */
|
|
3779
|
+
children: /* @__PURE__ */ d.jsxs(ge.Row, { height: "28px", children: [
|
|
3780
3780
|
i.map((a, l) => {
|
|
3781
3781
|
const c = n === a?.id;
|
|
3782
|
-
return /* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ d.jsx(
|
|
3783
3783
|
As,
|
|
3784
3784
|
{
|
|
3785
3785
|
id: a?.id,
|
|
3786
3786
|
onClick: () => a?.sortable && ws(a?.id),
|
|
3787
3787
|
cursor: a?.sortable ? "pointer" : "default",
|
|
3788
3788
|
borderRight: "2px solid #dcdcdc",
|
|
3789
|
-
children: /* @__PURE__ */
|
|
3789
|
+
children: /* @__PURE__ */ d.jsxs(
|
|
3790
3790
|
"span",
|
|
3791
3791
|
{
|
|
3792
3792
|
style: {
|
|
@@ -3797,7 +3797,7 @@ function ks() {
|
|
|
3797
3797
|
},
|
|
3798
3798
|
children: [
|
|
3799
3799
|
a?.label,
|
|
3800
|
-
a?.sortable && (c ? r === "asc" ? /* @__PURE__ */
|
|
3800
|
+
a?.sortable && (c ? r === "asc" ? /* @__PURE__ */ d.jsx(Zi, { size: 14 }) : /* @__PURE__ */ d.jsx(Xi, { size: 14 }) : /* @__PURE__ */ d.jsx(Ji, { size: 14, opacity: 0.4 }))
|
|
3801
3801
|
]
|
|
3802
3802
|
}
|
|
3803
3803
|
)
|
|
@@ -3805,8 +3805,8 @@ function ks() {
|
|
|
3805
3805
|
a?.id
|
|
3806
3806
|
);
|
|
3807
3807
|
}),
|
|
3808
|
-
/* @__PURE__ */
|
|
3809
|
-
/* @__PURE__ */
|
|
3808
|
+
/* @__PURE__ */ d.jsx(ge.ColumnHeader, { borderRight: "2px solid #dcdcdc", children: "Actions" }),
|
|
3809
|
+
/* @__PURE__ */ d.jsx(ge.ColumnHeader, { boxSize: "0.5", children: /* @__PURE__ */ d.jsx(Is, { visibility: t, onToggle: ys }) })
|
|
3810
3810
|
] })
|
|
3811
3811
|
}
|
|
3812
3812
|
) }) });
|
|
@@ -3827,10 +3827,10 @@ function Ys({
|
|
|
3827
3827
|
onPageSizeChange: o,
|
|
3828
3828
|
siblingCount: i = 2
|
|
3829
3829
|
}) {
|
|
3830
|
-
return /* @__PURE__ */
|
|
3831
|
-
/* @__PURE__ */
|
|
3832
|
-
/* @__PURE__ */
|
|
3833
|
-
/* @__PURE__ */
|
|
3830
|
+
return /* @__PURE__ */ d.jsx(Be, { width: "100%", children: /* @__PURE__ */ d.jsxs(pe, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3831
|
+
/* @__PURE__ */ d.jsxs(pe, { children: [
|
|
3832
|
+
/* @__PURE__ */ d.jsx(je, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3833
|
+
/* @__PURE__ */ d.jsxs(
|
|
3834
3834
|
ce.Root,
|
|
3835
3835
|
{
|
|
3836
3836
|
collection: Xn,
|
|
@@ -3839,20 +3839,20 @@ function Ys({
|
|
|
3839
3839
|
onValueChange: (s) => o && o(Number(s.items[0].value)),
|
|
3840
3840
|
value: [String(t)],
|
|
3841
3841
|
children: [
|
|
3842
|
-
/* @__PURE__ */
|
|
3843
|
-
/* @__PURE__ */
|
|
3844
|
-
/* @__PURE__ */
|
|
3845
|
-
/* @__PURE__ */
|
|
3842
|
+
/* @__PURE__ */ d.jsx($s, {}),
|
|
3843
|
+
/* @__PURE__ */ d.jsxs(Vs, { children: [
|
|
3844
|
+
/* @__PURE__ */ d.jsx(Fs, { children: /* @__PURE__ */ d.jsx(Bs, { placeholder: "" }) }),
|
|
3845
|
+
/* @__PURE__ */ d.jsx(Ws, { children: /* @__PURE__ */ d.jsx(Hs, {}) })
|
|
3846
3846
|
] }),
|
|
3847
|
-
/* @__PURE__ */
|
|
3847
|
+
/* @__PURE__ */ d.jsx(It, { children: /* @__PURE__ */ d.jsx(Ns, { children: /* @__PURE__ */ d.jsx(Ls, { children: Xn.items.map((s) => /* @__PURE__ */ d.jsxs(Ms, { item: s.value, children: [
|
|
3848
3848
|
s.label,
|
|
3849
|
-
/* @__PURE__ */
|
|
3849
|
+
/* @__PURE__ */ d.jsx(ce.ItemIndicator, {})
|
|
3850
3850
|
] }, s.value)) }) }) })
|
|
3851
3851
|
]
|
|
3852
3852
|
}
|
|
3853
3853
|
)
|
|
3854
3854
|
] }),
|
|
3855
|
-
/* @__PURE__ */
|
|
3855
|
+
/* @__PURE__ */ d.jsx(
|
|
3856
3856
|
Ct.Root,
|
|
3857
3857
|
{
|
|
3858
3858
|
count: e,
|
|
@@ -3860,12 +3860,12 @@ function Ys({
|
|
|
3860
3860
|
page: n,
|
|
3861
3861
|
siblingCount: i,
|
|
3862
3862
|
onPageChange: (s) => r && r(s.page),
|
|
3863
|
-
children: /* @__PURE__ */
|
|
3864
|
-
/* @__PURE__ */
|
|
3865
|
-
/* @__PURE__ */
|
|
3863
|
+
children: /* @__PURE__ */ d.jsxs(zr, { size: "sm", variant: "ghost", children: [
|
|
3864
|
+
/* @__PURE__ */ d.jsx(Ps, { asChild: !0, children: /* @__PURE__ */ d.jsx(ke, { "aria-label": "Previous page", children: /* @__PURE__ */ d.jsx(ns, { size: 18 }) }) }),
|
|
3865
|
+
/* @__PURE__ */ d.jsx(
|
|
3866
3866
|
Ct.Items,
|
|
3867
3867
|
{
|
|
3868
|
-
render: (s) => /* @__PURE__ */
|
|
3868
|
+
render: (s) => /* @__PURE__ */ d.jsx(
|
|
3869
3869
|
ke,
|
|
3870
3870
|
{
|
|
3871
3871
|
variant: s.type === "page" && s.value === n ? "outline" : "ghost",
|
|
@@ -3876,7 +3876,7 @@ function Ys({
|
|
|
3876
3876
|
)
|
|
3877
3877
|
}
|
|
3878
3878
|
),
|
|
3879
|
-
/* @__PURE__ */
|
|
3879
|
+
/* @__PURE__ */ d.jsx(zs, { asChild: !0, children: /* @__PURE__ */ d.jsx(ke, { "aria-label": "Next page", children: /* @__PURE__ */ d.jsx(os, { size: 18 }) }) })
|
|
3880
3880
|
] })
|
|
3881
3881
|
}
|
|
3882
3882
|
)
|
|
@@ -3888,11 +3888,11 @@ function Js({
|
|
|
3888
3888
|
actions: t = []
|
|
3889
3889
|
}) {
|
|
3890
3890
|
const { columnOrder: n, visibility: r } = ct(le);
|
|
3891
|
-
return /* @__PURE__ */
|
|
3892
|
-
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */
|
|
3893
|
-
/* @__PURE__ */
|
|
3894
|
-
/* @__PURE__ */
|
|
3895
|
-
/* @__PURE__ */
|
|
3891
|
+
return /* @__PURE__ */ d.jsx(ge.Body, { children: e.map((o) => /* @__PURE__ */ d.jsxs(ge.Row, { children: [
|
|
3892
|
+
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ d.jsx(ge.Cell, { children: o[i.id] }, i.id)),
|
|
3893
|
+
/* @__PURE__ */ d.jsx(ge.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ d.jsxs(me.Root, { children: [
|
|
3894
|
+
/* @__PURE__ */ d.jsx(qs, { asChild: !0, children: /* @__PURE__ */ d.jsx(ke, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ d.jsx(us, { size: 16 }) }) }),
|
|
3895
|
+
/* @__PURE__ */ d.jsx(It, { children: /* @__PURE__ */ d.jsx(Xs, { children: /* @__PURE__ */ d.jsx(Gs, { children: t.map((i) => /* @__PURE__ */ d.jsxs(
|
|
3896
3896
|
Us,
|
|
3897
3897
|
{
|
|
3898
3898
|
onClick: () => i.onClick(o),
|
|
@@ -3920,35 +3920,38 @@ function Ea({
|
|
|
3920
3920
|
onPageChange: l,
|
|
3921
3921
|
onPageSizeChange: c,
|
|
3922
3922
|
density: f = "sm",
|
|
3923
|
-
totalCount: h = 0
|
|
3923
|
+
totalCount: h = 0,
|
|
3924
|
+
paginationMode: g = "client"
|
|
3924
3925
|
}) {
|
|
3925
3926
|
A(() => {
|
|
3926
3927
|
Rs(e);
|
|
3927
3928
|
}, [e]), A(() => {
|
|
3928
3929
|
Ss(t, n);
|
|
3929
3930
|
}, [t, n]);
|
|
3930
|
-
const { sortColumn:
|
|
3931
|
-
const
|
|
3932
|
-
|
|
3933
|
-
(
|
|
3934
|
-
)
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3931
|
+
const { sortColumn: u, sortDirection: b, data: p } = ct(le), m = N(() => {
|
|
3932
|
+
const x = [...p];
|
|
3933
|
+
if (u && x.sort(
|
|
3934
|
+
(y, R) => b === "asc" ? String(y[u]).localeCompare(String(R[u])) : String(R[u]).localeCompare(String(y[u]))
|
|
3935
|
+
), g === "client") {
|
|
3936
|
+
const y = s * a;
|
|
3937
|
+
return x.slice(y, y + a);
|
|
3938
|
+
}
|
|
3939
|
+
return x;
|
|
3940
|
+
}, [p, u, b, s, a, g]);
|
|
3941
|
+
return /* @__PURE__ */ d.jsxs(Be, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
3942
|
+
/* @__PURE__ */ d.jsx(Be, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ d.jsx(Be, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : m.length === 0 ? /* @__PURE__ */ d.jsx(Be, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ d.jsxs(ge.Root, { variant: "outline", w: "100%", size: f, children: [
|
|
3943
|
+
/* @__PURE__ */ d.jsx(ks, {}),
|
|
3944
|
+
/* @__PURE__ */ d.jsx(Js, { data: m, actions: i })
|
|
3942
3945
|
] }) }),
|
|
3943
|
-
/* @__PURE__ */
|
|
3946
|
+
/* @__PURE__ */ d.jsx(Be, { mt: 0.5, children: /* @__PURE__ */ d.jsx(
|
|
3944
3947
|
Ys,
|
|
3945
3948
|
{
|
|
3946
3949
|
totalCount: h,
|
|
3947
3950
|
pageSize: a,
|
|
3948
3951
|
currentPage: s,
|
|
3949
3952
|
onPageChange: l,
|
|
3950
|
-
onPageSizeChange: (
|
|
3951
|
-
c && c(
|
|
3953
|
+
onPageSizeChange: (x) => {
|
|
3954
|
+
c && c(x), s > 1 && l && l(1);
|
|
3952
3955
|
}
|
|
3953
3956
|
}
|
|
3954
3957
|
) })
|
|
@@ -3989,7 +3992,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
3989
3992
|
transition: a,
|
|
3990
3993
|
cursor: "grab"
|
|
3991
3994
|
};
|
|
3992
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ d.jsxs(
|
|
3993
3996
|
tt,
|
|
3994
3997
|
{
|
|
3995
3998
|
ref: i,
|
|
@@ -4003,25 +4006,25 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4003
4006
|
...r,
|
|
4004
4007
|
...o,
|
|
4005
4008
|
children: [
|
|
4006
|
-
/* @__PURE__ */
|
|
4007
|
-
/* @__PURE__ */
|
|
4008
|
-
/* @__PURE__ */
|
|
4009
|
-
/* @__PURE__ */
|
|
4009
|
+
/* @__PURE__ */ d.jsx(je, { fontWeight: "bold", children: e.label }),
|
|
4010
|
+
/* @__PURE__ */ d.jsxs(pe, { justify: "space-between", children: [
|
|
4011
|
+
/* @__PURE__ */ d.jsx(je, { fontSize: "sm", children: "Visible" }),
|
|
4012
|
+
/* @__PURE__ */ d.jsxs(
|
|
4010
4013
|
ea,
|
|
4011
4014
|
{
|
|
4012
4015
|
checked: e.visible,
|
|
4013
4016
|
onCheckedChange: (c) => t && t(e.id, !!c),
|
|
4014
4017
|
size: "sm",
|
|
4015
4018
|
children: [
|
|
4016
|
-
/* @__PURE__ */
|
|
4017
|
-
/* @__PURE__ */
|
|
4019
|
+
/* @__PURE__ */ d.jsx(ta, {}),
|
|
4020
|
+
/* @__PURE__ */ d.jsx(na, {})
|
|
4018
4021
|
]
|
|
4019
4022
|
}
|
|
4020
4023
|
)
|
|
4021
4024
|
] }),
|
|
4022
|
-
/* @__PURE__ */
|
|
4023
|
-
/* @__PURE__ */
|
|
4024
|
-
/* @__PURE__ */
|
|
4025
|
+
/* @__PURE__ */ d.jsxs(tt, { align: "stretch", gap: 1, children: [
|
|
4026
|
+
/* @__PURE__ */ d.jsx(je, { fontSize: "sm", children: "Size" }),
|
|
4027
|
+
/* @__PURE__ */ d.jsx(
|
|
4025
4028
|
ra,
|
|
4026
4029
|
{
|
|
4027
4030
|
width: "200px",
|
|
@@ -4030,9 +4033,9 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4030
4033
|
step: 0.5,
|
|
4031
4034
|
value: [e.size ?? 1],
|
|
4032
4035
|
onChange: (c) => n && n(e.id, c[0]),
|
|
4033
|
-
children: /* @__PURE__ */
|
|
4034
|
-
/* @__PURE__ */
|
|
4035
|
-
/* @__PURE__ */
|
|
4036
|
+
children: /* @__PURE__ */ d.jsxs(aa, { children: [
|
|
4037
|
+
/* @__PURE__ */ d.jsx(oa, { children: /* @__PURE__ */ d.jsx(ia, {}) }),
|
|
4038
|
+
/* @__PURE__ */ d.jsx(sa, {})
|
|
4036
4039
|
] })
|
|
4037
4040
|
}
|
|
4038
4041
|
)
|
|
@@ -4053,39 +4056,39 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4053
4056
|
onReorder: c
|
|
4054
4057
|
}) => {
|
|
4055
4058
|
const h = ct(jt)[i] ?? gn(i), g = () => {
|
|
4056
|
-
const
|
|
4057
|
-
|
|
4059
|
+
const u = prompt("Preset name?");
|
|
4060
|
+
u && Qs(i, {
|
|
4058
4061
|
id: crypto.randomUUID(),
|
|
4059
|
-
name:
|
|
4062
|
+
name: u,
|
|
4060
4063
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4061
4064
|
filters: s
|
|
4062
4065
|
});
|
|
4063
4066
|
};
|
|
4064
|
-
return /* @__PURE__ */
|
|
4065
|
-
/* @__PURE__ */
|
|
4066
|
-
/* @__PURE__ */
|
|
4067
|
+
return /* @__PURE__ */ d.jsx(pe, { wrap: "wrap", children: /* @__PURE__ */ d.jsxs(ca, { size: e, children: [
|
|
4068
|
+
/* @__PURE__ */ d.jsx(ua, { asChild: !0, children: /* @__PURE__ */ d.jsxs(ke, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4069
|
+
/* @__PURE__ */ d.jsx(fs, { size: 16 }),
|
|
4067
4070
|
"Filters"
|
|
4068
4071
|
] }) }),
|
|
4069
|
-
/* @__PURE__ */
|
|
4070
|
-
/* @__PURE__ */
|
|
4071
|
-
/* @__PURE__ */
|
|
4072
|
-
/* @__PURE__ */
|
|
4073
|
-
/* @__PURE__ */
|
|
4074
|
-
/* @__PURE__ */
|
|
4075
|
-
/* @__PURE__ */
|
|
4076
|
-
/* @__PURE__ */
|
|
4072
|
+
/* @__PURE__ */ d.jsxs(It, { children: [
|
|
4073
|
+
/* @__PURE__ */ d.jsx(da, {}),
|
|
4074
|
+
/* @__PURE__ */ d.jsx(fa, { children: /* @__PURE__ */ d.jsxs(ha, { children: [
|
|
4075
|
+
/* @__PURE__ */ d.jsx(va, { children: /* @__PURE__ */ d.jsx(ga, { children: "Filters" }) }),
|
|
4076
|
+
/* @__PURE__ */ d.jsx(pa, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ d.jsxs(xa, { defaultValue: "view", children: [
|
|
4077
|
+
/* @__PURE__ */ d.jsxs(ya, { mb: 4, children: [
|
|
4078
|
+
/* @__PURE__ */ d.jsxs(Jt, { value: "view", children: [
|
|
4079
|
+
/* @__PURE__ */ d.jsx(ps, { size: 16 }),
|
|
4077
4080
|
"Edit"
|
|
4078
4081
|
] }),
|
|
4079
|
-
/* @__PURE__ */
|
|
4080
|
-
/* @__PURE__ */
|
|
4082
|
+
/* @__PURE__ */ d.jsxs(Jt, { value: "settings", children: [
|
|
4083
|
+
/* @__PURE__ */ d.jsx(ms, { size: 16 }),
|
|
4081
4084
|
"Settings"
|
|
4082
4085
|
] }),
|
|
4083
|
-
/* @__PURE__ */
|
|
4084
|
-
/* @__PURE__ */
|
|
4086
|
+
/* @__PURE__ */ d.jsxs(Jt, { value: "presets", children: [
|
|
4087
|
+
/* @__PURE__ */ d.jsx(es, { size: 16 }),
|
|
4085
4088
|
"Presets"
|
|
4086
4089
|
] })
|
|
4087
4090
|
] }),
|
|
4088
|
-
/* @__PURE__ */
|
|
4091
|
+
/* @__PURE__ */ d.jsx(Kt, { value: "view", children: o.filter((u) => u.visible).map((u) => /* @__PURE__ */ d.jsxs(
|
|
4089
4092
|
tt,
|
|
4090
4093
|
{
|
|
4091
4094
|
align: "stretch",
|
|
@@ -4095,85 +4098,85 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4095
4098
|
p: 3,
|
|
4096
4099
|
mb: 3,
|
|
4097
4100
|
children: [
|
|
4098
|
-
/* @__PURE__ */
|
|
4099
|
-
|
|
4101
|
+
/* @__PURE__ */ d.jsx(je, { fontWeight: "bold", children: u.label }),
|
|
4102
|
+
u.customComponent
|
|
4100
4103
|
]
|
|
4101
4104
|
},
|
|
4102
|
-
|
|
4105
|
+
u.id
|
|
4103
4106
|
)) }),
|
|
4104
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ d.jsx(Kt, { value: "settings", children: /* @__PURE__ */ d.jsx(
|
|
4105
4108
|
gr,
|
|
4106
4109
|
{
|
|
4107
4110
|
sensors: mo(bo(vn)),
|
|
4108
4111
|
collisionDetection: tr,
|
|
4109
|
-
onDragEnd: ({ active:
|
|
4110
|
-
if (!
|
|
4111
|
-
const p = o.findIndex((
|
|
4112
|
+
onDragEnd: ({ active: u, over: b }) => {
|
|
4113
|
+
if (!b || u.id === b.id) return;
|
|
4114
|
+
const p = o.findIndex((y) => y.id === u.id), m = o.findIndex((y) => y.id === b.id), x = Mt(o, p, m);
|
|
4112
4115
|
console.log(x), c?.(x);
|
|
4113
4116
|
},
|
|
4114
|
-
children: /* @__PURE__ */
|
|
4117
|
+
children: /* @__PURE__ */ d.jsx(
|
|
4115
4118
|
xr,
|
|
4116
4119
|
{
|
|
4117
|
-
items: o.map((
|
|
4120
|
+
items: o.map((u) => u.id),
|
|
4118
4121
|
strategy: ki,
|
|
4119
|
-
children: o.map((
|
|
4122
|
+
children: o.map((u) => /* @__PURE__ */ d.jsx(
|
|
4120
4123
|
la,
|
|
4121
4124
|
{
|
|
4122
|
-
filter:
|
|
4125
|
+
filter: u,
|
|
4123
4126
|
onVisibilityChange: t,
|
|
4124
4127
|
onSizeChange: n
|
|
4125
4128
|
},
|
|
4126
|
-
|
|
4129
|
+
u.id
|
|
4127
4130
|
))
|
|
4128
4131
|
}
|
|
4129
4132
|
)
|
|
4130
4133
|
}
|
|
4131
4134
|
) }),
|
|
4132
|
-
/* @__PURE__ */
|
|
4133
|
-
/* @__PURE__ */
|
|
4134
|
-
h.length === 0 && /* @__PURE__ */
|
|
4135
|
-
h.map((
|
|
4135
|
+
/* @__PURE__ */ d.jsx(Kt, { value: "presets", children: /* @__PURE__ */ d.jsxs(tt, { align: "stretch", mb: 3, children: [
|
|
4136
|
+
/* @__PURE__ */ d.jsx(Vt, { size: "sm", colorScheme: "blue", onClick: g, children: "Save Current Filters" }),
|
|
4137
|
+
h.length === 0 && /* @__PURE__ */ d.jsx(je, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4138
|
+
h.map((u) => /* @__PURE__ */ d.jsxs(
|
|
4136
4139
|
pe,
|
|
4137
4140
|
{
|
|
4138
4141
|
justify: "space-between",
|
|
4139
4142
|
border: "1px solid",
|
|
4140
|
-
borderColor: l ===
|
|
4143
|
+
borderColor: l === u.name ? "blue.300" : "gray.200",
|
|
4141
4144
|
rounded: "md",
|
|
4142
4145
|
p: 2,
|
|
4143
4146
|
children: [
|
|
4144
|
-
/* @__PURE__ */
|
|
4145
|
-
/* @__PURE__ */
|
|
4146
|
-
/* @__PURE__ */
|
|
4147
|
+
/* @__PURE__ */ d.jsxs(tt, { align: "start", gap: 0, children: [
|
|
4148
|
+
/* @__PURE__ */ d.jsx(je, { fontWeight: "bold", fontSize: "sm", children: u.name }),
|
|
4149
|
+
/* @__PURE__ */ d.jsx(je, { fontSize: "xs", color: "gray.500", children: new Date(u.date).toLocaleDateString() })
|
|
4147
4150
|
] }),
|
|
4148
|
-
/* @__PURE__ */
|
|
4149
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ d.jsxs(pe, { children: [
|
|
4152
|
+
/* @__PURE__ */ d.jsx(
|
|
4150
4153
|
Vt,
|
|
4151
4154
|
{
|
|
4152
4155
|
size: "xs",
|
|
4153
4156
|
variant: "ghost",
|
|
4154
|
-
onClick: () => a?.(
|
|
4157
|
+
onClick: () => a?.(u.filters, u.name),
|
|
4155
4158
|
children: "Load"
|
|
4156
4159
|
}
|
|
4157
4160
|
),
|
|
4158
|
-
/* @__PURE__ */
|
|
4161
|
+
/* @__PURE__ */ d.jsx(
|
|
4159
4162
|
ke,
|
|
4160
4163
|
{
|
|
4161
4164
|
size: "xs",
|
|
4162
4165
|
"aria-label": "Delete preset",
|
|
4163
4166
|
variant: "ghost",
|
|
4164
|
-
onClick: () => Zs(i,
|
|
4165
|
-
children: /* @__PURE__ */
|
|
4167
|
+
onClick: () => Zs(i, u.id),
|
|
4168
|
+
children: /* @__PURE__ */ d.jsx(ls, { size: 14 })
|
|
4166
4169
|
}
|
|
4167
4170
|
)
|
|
4168
4171
|
] })
|
|
4169
4172
|
]
|
|
4170
4173
|
},
|
|
4171
|
-
|
|
4174
|
+
u.id
|
|
4172
4175
|
))
|
|
4173
4176
|
] }) })
|
|
4174
4177
|
] }) }),
|
|
4175
|
-
/* @__PURE__ */
|
|
4176
|
-
/* @__PURE__ */
|
|
4178
|
+
/* @__PURE__ */ d.jsxs(ba, { justify: "space-between", children: [
|
|
4179
|
+
/* @__PURE__ */ d.jsx(
|
|
4177
4180
|
Vt,
|
|
4178
4181
|
{
|
|
4179
4182
|
size: "sm",
|
|
@@ -4183,7 +4186,7 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4183
4186
|
children: "Clear All"
|
|
4184
4187
|
}
|
|
4185
4188
|
),
|
|
4186
|
-
/* @__PURE__ */
|
|
4189
|
+
/* @__PURE__ */ d.jsx(ma, { asChild: !0, children: /* @__PURE__ */ d.jsx($r, {}) })
|
|
4187
4190
|
] })
|
|
4188
4191
|
] }) })
|
|
4189
4192
|
] })
|
|
@@ -4201,17 +4204,17 @@ const jt = new Kn({}), gn = (e) => {
|
|
|
4201
4204
|
onLoadPreset: c,
|
|
4202
4205
|
activePresetName: f,
|
|
4203
4206
|
filterDrawerSize: h = "sm"
|
|
4204
|
-
}) => /* @__PURE__ */
|
|
4207
|
+
}) => /* @__PURE__ */ d.jsxs(pe, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4205
4208
|
e,
|
|
4206
|
-
/* @__PURE__ */
|
|
4207
|
-
t.length > 0 && t.filter((g) => g.visible).map((g) => /* @__PURE__ */
|
|
4208
|
-
/* @__PURE__ */
|
|
4209
|
+
/* @__PURE__ */ d.jsxs(pe, { children: [
|
|
4210
|
+
t.length > 0 && t.filter((g) => g.visible).map((g) => /* @__PURE__ */ d.jsx(pe, { children: g.customComponent }, g.id)),
|
|
4211
|
+
/* @__PURE__ */ d.jsx(
|
|
4209
4212
|
wa,
|
|
4210
4213
|
{
|
|
4211
4214
|
filterDrawerSize: h,
|
|
4212
|
-
onVisibilityChange: n ? (g,
|
|
4215
|
+
onVisibilityChange: n ? (g, u) => n(g, u) : void 0,
|
|
4213
4216
|
onReorder: r,
|
|
4214
|
-
onSizeChange: o ? (g,
|
|
4217
|
+
onSizeChange: o ? (g, u) => o(g, u) : void 0,
|
|
4215
4218
|
onClear: i,
|
|
4216
4219
|
maxToolbarUnits: s,
|
|
4217
4220
|
pageKey: a,
|