@nxgt/material 3.48.0 → 3.49.0
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/CHANGELOG.md +10 -0
- package/README.md +2 -2
- package/dist/{button-yaltbQmC.js → button-DJgaQbBD.js} +49 -49
- package/dist/charts.js +144 -144
- package/dist/{chip-BqWbbr1b.js → chip-DN44R1vW.js} +56 -56
- package/dist/{code-editor-C9qBNoYb.js → code-editor-BJ9ewxSC.js} +307 -307
- package/dist/code-editor.js +46 -46
- package/dist/{code-language-items-DAHtfQ7W.js → code-language-items-BJE3VuQg.js} +1 -1
- package/dist/components/components.css +1 -0
- package/dist/components/ui/actions/action-card/action-card-indicator.css +48 -0
- package/dist/components/ui/actions/action-card/action-card-modes.css +4 -1
- package/dist/components/ui/actions/action-card/action-card-tile.css +141 -0
- package/dist/components/ui/actions/action-card/action-card.css +33 -3
- package/dist/{components-Ox6FHmpx.js → components-AtBccCir.js} +17842 -17879
- package/dist/components.js +23 -23
- package/dist/{dialog-CCCcnTIx.js → dialog-ODql4vH7.js} +15 -15
- package/dist/{tooltip-CkttDIab.js → dist-B61_o9Mg.js} +69 -66
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-Df8785nt.js → dropdown-menu-DRXYP9ta.js} +274 -274
- package/dist/editor.js +1027 -1027
- package/dist/{empty-state-DcF4TBzi.js → empty-state-C9QqvBU1.js} +36 -36
- package/dist/{escape-owner-C4W_sOAU.js → escape-owner-DCrlERLM.js} +1 -1
- package/dist/{field-blur-CJHzVSh9.js → field-blur-DYGyIdfD.js} +1 -1
- package/dist/{field-blur-context-Cft9s7Hg.js → field-blur-context-B-fSpl1H.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-C0fw2kLK.js → hover-card-EO_CckIx.js} +19 -19
- package/dist/{icon-badge-aJ22mKGh.js → icon-badge-BQYj_LE6.js} +3 -3
- package/dist/{icon-button-CN9r5TNE.js → icon-button-B481L2TP.js} +20 -20
- package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +25 -2
- package/dist/lib/components/ui/actions/action-card/action-card.d.ts +18 -2
- package/dist/lib/components/ui/actions/action-card/partials/action-card-icon.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-meta.d.ts +15 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-status.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +20 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-title-button.d.ts +14 -0
- package/dist/lib/components/ui/actions/action-card/partials/action-card-trail.d.ts +6 -0
- package/dist/lib/components/ui/actions/action-card/use-action-card-names.d.ts +22 -0
- package/dist/lib/components/ui/actions/action-card/use-reveal.d.ts +23 -0
- package/dist/lib/components/ui/actions/button/button.variants.d.ts +1 -1
- package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
- package/dist/lib/components/ui/collections/row-menu/row-menu.d.ts +1 -1
- package/dist/lib/components/ui/dates/duration-field/partials/use-duration-box.d.ts +1 -1
- package/dist/lib/components/ui/display/badge/badge.d.ts +1 -1
- package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +1 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/slider/split-slider-props.d.ts +20 -20
- package/dist/lib/components/ui/fields/slider/use-slider-control.d.ts +20 -20
- package/dist/lib/components/ui/layout/app-shell/route-transition.d.ts +1 -1
- package/dist/lib/components/ui/media/carousel/use-carousel-engine.d.ts +1 -1
- package/dist/lib/components/ui/media/media-player/engine/use-queue-actions.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-reader/pdf-reader.slice.d.ts +1 -1
- package/dist/lib/components/ui/selection/choice-group/use-choice-group-field.d.ts +34 -34
- package/dist/lib/components/ui/widgets/chat/chat-message.variants.d.ts +2 -2
- package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +1 -1
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/main.js +30 -30
- package/dist/map.js +78 -78
- package/dist/material.css +1 -1
- package/dist/nxgt-theme-ivgNca3z.js +37 -0
- package/dist/pdf-reader.js +1 -1
- package/dist/{public-zVb_Nq_D.js → public-CZBz4JVu.js} +70 -70
- package/dist/{rich-code-block-DMWZZJma.js → rich-code-block-597e0_Qm.js} +51 -51
- package/dist/{sortable-provider-DstbgMVf.js → sortable-provider-CK_xAk2H.js} +217 -217
- package/dist/{spinner-C4CgDEYm.js → spinner-BhuZuHK1.js} +1 -1
- package/dist/theme-picker.js +45 -45
- package/dist/{theme-store-CSl51uNH.js → theme-store-BdPp43cV.js} +13 -13
- package/dist/{theme-toggle-CGW2_K54.js → theme-toggle-Dnjn83TJ.js} +15 -15
- package/dist/themes.js +17 -17
- package/dist/{toggle-group-BMJNcFAC.js → toggle-group-BkH23Jk4.js} +11 -11
- package/dist/{toolbar-items-CsLGJMEJ.js → toolbar-items-CCwIu7fE.js} +426 -426
- package/dist/{use-chat-composer-Brcb5f7r.js → use-chat-composer-Ot5XUbdn.js} +5138 -4908
- package/dist/{use-theme-DMcyJ52N.js → use-theme-BCLireTd.js} +1 -1
- package/docs/components/buttons-and-actions.md +62 -4
- package/docs/components/data-table-filter-and-lists.md +1 -1
- package/docs/guides/cards-and-tiles.md +60 -0
- package/docs/roadmap.md +11 -0
- package/lib/components/components.css +1 -0
- package/lib/components/ui/actions/action-card/action-card-indicator.css +48 -0
- package/lib/components/ui/actions/action-card/action-card-modes.css +4 -1
- package/lib/components/ui/actions/action-card/action-card-tile.css +141 -0
- package/lib/components/ui/actions/action-card/action-card.css +33 -3
- package/package.json +1 -1
- package/dist/nxgt-theme-ZS945iMP.js +0 -37
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DVRQkaTK.js";
|
|
3
3
|
import { t as n } from "./use-material-translation-DOkTaWK_.js";
|
|
4
|
-
import { t as r } from "./icon-button-
|
|
4
|
+
import { t as r } from "./icon-button-B481L2TP.js";
|
|
5
5
|
import { t as i } from "./compose-refs-DZ0iIVF-.js";
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import a, { cloneElement as o, createContext as s, forwardRef as c, memo as l, useCallback as u, useContext as d, useEffect as f, useId as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _, useState as v } from "react";
|
|
7
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
8
|
+
import { createPortal as b, unstable_batchedUpdates as x } from "react-dom";
|
|
9
|
+
import { GripVertical as S } from "lucide-react";
|
|
10
10
|
//#region ../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js
|
|
11
11
|
function C() {
|
|
12
12
|
var e = [...arguments];
|
|
13
|
-
return
|
|
13
|
+
return h(() => (t) => {
|
|
14
14
|
e.forEach((e) => e(t));
|
|
15
15
|
}, e);
|
|
16
16
|
}
|
|
@@ -38,53 +38,53 @@ function ee(e) {
|
|
|
38
38
|
function A(e) {
|
|
39
39
|
return e ? T(e) ? e.document : E(e) ? O(e) ? e : k(e) || ee(e) ? e.ownerDocument : document : document : document;
|
|
40
40
|
}
|
|
41
|
-
var j = w ?
|
|
41
|
+
var j = w ? m : f;
|
|
42
42
|
function M(e) {
|
|
43
|
-
let t =
|
|
43
|
+
let t = _(e);
|
|
44
44
|
return j(() => {
|
|
45
45
|
t.current = e;
|
|
46
|
-
}),
|
|
46
|
+
}), u(function() {
|
|
47
47
|
var e = [...arguments];
|
|
48
48
|
return t.current == null ? void 0 : t.current(...e);
|
|
49
49
|
}, []);
|
|
50
50
|
}
|
|
51
51
|
function N() {
|
|
52
|
-
let e =
|
|
53
|
-
return [
|
|
52
|
+
let e = _(null);
|
|
53
|
+
return [u((t, n) => {
|
|
54
54
|
e.current = setInterval(t, n);
|
|
55
|
-
}, []),
|
|
55
|
+
}, []), u(() => {
|
|
56
56
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
57
57
|
}, [])];
|
|
58
58
|
}
|
|
59
59
|
function te(e, t) {
|
|
60
60
|
t === void 0 && (t = [e]);
|
|
61
|
-
let n =
|
|
61
|
+
let n = _(e);
|
|
62
62
|
return j(() => {
|
|
63
63
|
n.current !== e && (n.current = e);
|
|
64
64
|
}, t), n;
|
|
65
65
|
}
|
|
66
66
|
function P(e, t) {
|
|
67
|
-
let n =
|
|
68
|
-
return
|
|
67
|
+
let n = _();
|
|
68
|
+
return h(() => {
|
|
69
69
|
let t = e(n.current);
|
|
70
70
|
return n.current = t, t;
|
|
71
71
|
}, [...t]);
|
|
72
72
|
}
|
|
73
73
|
function ne(e) {
|
|
74
|
-
let t = M(e), n =
|
|
75
|
-
return [n,
|
|
74
|
+
let t = M(e), n = _(null);
|
|
75
|
+
return [n, u((e) => {
|
|
76
76
|
e !== n.current && t?.(e, n.current), n.current = e;
|
|
77
77
|
}, [])];
|
|
78
78
|
}
|
|
79
79
|
function F(e) {
|
|
80
|
-
let t =
|
|
81
|
-
return
|
|
80
|
+
let t = _();
|
|
81
|
+
return f(() => {
|
|
82
82
|
t.current = e;
|
|
83
83
|
}, [e]), t.current;
|
|
84
84
|
}
|
|
85
85
|
var re = {};
|
|
86
86
|
function ie(e, t) {
|
|
87
|
-
return
|
|
87
|
+
return h(() => {
|
|
88
88
|
if (t) return t;
|
|
89
89
|
let n = re[e] == null ? 0 : re[e] + 1;
|
|
90
90
|
return re[e] = n, e + "-" + n;
|
|
@@ -164,14 +164,14 @@ function H(e) {
|
|
|
164
164
|
var U = { display: "none" };
|
|
165
165
|
function ce(e) {
|
|
166
166
|
let { id: t, value: n } = e;
|
|
167
|
-
return
|
|
167
|
+
return a.createElement("div", {
|
|
168
168
|
id: t,
|
|
169
169
|
style: U
|
|
170
170
|
}, n);
|
|
171
171
|
}
|
|
172
172
|
function le(e) {
|
|
173
173
|
let { id: t, announcement: n, ariaLiveType: r = "assertive" } = e;
|
|
174
|
-
return
|
|
174
|
+
return a.createElement("div", {
|
|
175
175
|
id: t,
|
|
176
176
|
style: {
|
|
177
177
|
position: "fixed",
|
|
@@ -193,9 +193,9 @@ function le(e) {
|
|
|
193
193
|
}, n);
|
|
194
194
|
}
|
|
195
195
|
function W() {
|
|
196
|
-
let [e, t] =
|
|
196
|
+
let [e, t] = v("");
|
|
197
197
|
return {
|
|
198
|
-
announce:
|
|
198
|
+
announce: u((e) => {
|
|
199
199
|
e != null && t(e);
|
|
200
200
|
}, []),
|
|
201
201
|
announcement: e
|
|
@@ -203,17 +203,17 @@ function W() {
|
|
|
203
203
|
}
|
|
204
204
|
//#endregion
|
|
205
205
|
//#region ../../node_modules/@dnd-kit/core/dist/core.esm.js
|
|
206
|
-
var ue = /*#__PURE__*/
|
|
206
|
+
var ue = /*#__PURE__*/ s(null);
|
|
207
207
|
function de(e) {
|
|
208
|
-
let t =
|
|
209
|
-
|
|
208
|
+
let t = d(ue);
|
|
209
|
+
f(() => {
|
|
210
210
|
if (!t) throw Error("useDndMonitor must be used within a children of <DndContext>");
|
|
211
211
|
return t(e);
|
|
212
212
|
}, [e, t]);
|
|
213
213
|
}
|
|
214
214
|
function fe() {
|
|
215
|
-
let [e] =
|
|
216
|
-
return [
|
|
215
|
+
let [e] = v(() => /* @__PURE__ */ new Set()), t = u((t) => (e.add(t), () => e.delete(t)), [e]);
|
|
216
|
+
return [u((t) => {
|
|
217
217
|
let { type: n, event: r } = t;
|
|
218
218
|
e.forEach((e) => e[n]?.call(e, r));
|
|
219
219
|
}, [e]), t];
|
|
@@ -237,51 +237,51 @@ var G = { draggable: "\n To pick up a draggable item, press the space bar.\n
|
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
function me(e) {
|
|
240
|
-
let { announcements: t = pe, container: n, hiddenTextDescribedById: r, screenReaderInstructions: i = G } = e, { announce:
|
|
241
|
-
if (
|
|
240
|
+
let { announcements: t = pe, container: n, hiddenTextDescribedById: r, screenReaderInstructions: i = G } = e, { announce: o, announcement: s } = W(), c = ie("DndLiveRegion"), [l, u] = v(!1);
|
|
241
|
+
if (f(() => {
|
|
242
242
|
u(!0);
|
|
243
|
-
}, []), de(
|
|
243
|
+
}, []), de(h(() => ({
|
|
244
244
|
onDragStart(e) {
|
|
245
245
|
let { active: n } = e;
|
|
246
|
-
|
|
246
|
+
o(t.onDragStart({ active: n }));
|
|
247
247
|
},
|
|
248
248
|
onDragMove(e) {
|
|
249
249
|
let { active: n, over: r } = e;
|
|
250
|
-
t.onDragMove &&
|
|
250
|
+
t.onDragMove && o(t.onDragMove({
|
|
251
251
|
active: n,
|
|
252
252
|
over: r
|
|
253
253
|
}));
|
|
254
254
|
},
|
|
255
255
|
onDragOver(e) {
|
|
256
256
|
let { active: n, over: r } = e;
|
|
257
|
-
|
|
257
|
+
o(t.onDragOver({
|
|
258
258
|
active: n,
|
|
259
259
|
over: r
|
|
260
260
|
}));
|
|
261
261
|
},
|
|
262
262
|
onDragEnd(e) {
|
|
263
263
|
let { active: n, over: r } = e;
|
|
264
|
-
|
|
264
|
+
o(t.onDragEnd({
|
|
265
265
|
active: n,
|
|
266
266
|
over: r
|
|
267
267
|
}));
|
|
268
268
|
},
|
|
269
269
|
onDragCancel(e) {
|
|
270
270
|
let { active: n, over: r } = e;
|
|
271
|
-
|
|
271
|
+
o(t.onDragCancel({
|
|
272
272
|
active: n,
|
|
273
273
|
over: r
|
|
274
274
|
}));
|
|
275
275
|
}
|
|
276
|
-
}), [
|
|
277
|
-
let d =
|
|
276
|
+
}), [o, t])), !l) return null;
|
|
277
|
+
let d = a.createElement(a.Fragment, null, a.createElement(ce, {
|
|
278
278
|
id: r,
|
|
279
279
|
value: i.draggable
|
|
280
|
-
}),
|
|
280
|
+
}), a.createElement(le, {
|
|
281
281
|
id: c,
|
|
282
282
|
announcement: s
|
|
283
283
|
}));
|
|
284
|
-
return n ?
|
|
284
|
+
return n ? b(d, n) : d;
|
|
285
285
|
}
|
|
286
286
|
var K;
|
|
287
287
|
(function(e) {
|
|
@@ -289,14 +289,14 @@ var K;
|
|
|
289
289
|
})(K ||= {});
|
|
290
290
|
function q() {}
|
|
291
291
|
function he(e, t) {
|
|
292
|
-
return
|
|
292
|
+
return h(() => ({
|
|
293
293
|
sensor: e,
|
|
294
294
|
options: t ?? {}
|
|
295
295
|
}), [e, t]);
|
|
296
296
|
}
|
|
297
297
|
function ge() {
|
|
298
298
|
var e = [...arguments];
|
|
299
|
-
return
|
|
299
|
+
return h(() => [...e].filter((e) => e != null), [...e]);
|
|
300
300
|
}
|
|
301
301
|
var J = /*#__PURE__*/ Object.freeze({
|
|
302
302
|
x: 0,
|
|
@@ -979,16 +979,16 @@ var xt;
|
|
|
979
979
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
980
980
|
})(xt ||= {});
|
|
981
981
|
function St(e) {
|
|
982
|
-
let { acceleration: t, activator: n = bt.Pointer, canScroll: r, draggingRect: i, enabled: a, interval: o = 5, order: s = xt.TreeOrder, pointerCoordinates: c, scrollableAncestors: l, scrollableAncestorRects:
|
|
983
|
-
delta:
|
|
982
|
+
let { acceleration: t, activator: n = bt.Pointer, canScroll: r, draggingRect: i, enabled: a, interval: o = 5, order: s = xt.TreeOrder, pointerCoordinates: c, scrollableAncestors: l, scrollableAncestorRects: d, delta: p, threshold: m } = e, g = wt({
|
|
983
|
+
delta: p,
|
|
984
984
|
disabled: !a
|
|
985
|
-
}), [
|
|
985
|
+
}), [v, y] = N(), b = _({
|
|
986
986
|
x: 0,
|
|
987
987
|
y: 0
|
|
988
|
-
}), x =
|
|
988
|
+
}), x = _({
|
|
989
989
|
x: 0,
|
|
990
990
|
y: 0
|
|
991
|
-
}), S =
|
|
991
|
+
}), S = h(() => {
|
|
992
992
|
switch (n) {
|
|
993
993
|
case bt.Pointer: return c ? {
|
|
994
994
|
top: c.y,
|
|
@@ -1002,25 +1002,25 @@ function St(e) {
|
|
|
1002
1002
|
n,
|
|
1003
1003
|
i,
|
|
1004
1004
|
c
|
|
1005
|
-
]), C =
|
|
1005
|
+
]), C = _(null), w = u(() => {
|
|
1006
1006
|
let e = C.current;
|
|
1007
1007
|
if (!e) return;
|
|
1008
1008
|
let t = b.current.x * x.current.x, n = b.current.y * x.current.y;
|
|
1009
1009
|
e.scrollBy(t, n);
|
|
1010
|
-
}, []), T =
|
|
1011
|
-
|
|
1010
|
+
}, []), T = h(() => s === xt.TreeOrder ? [...l].reverse() : l, [s, l]);
|
|
1011
|
+
f(() => {
|
|
1012
1012
|
if (!a || !l.length || !S) {
|
|
1013
1013
|
y();
|
|
1014
1014
|
return;
|
|
1015
1015
|
}
|
|
1016
1016
|
for (let e of T) {
|
|
1017
1017
|
if (r?.(e) === !1) continue;
|
|
1018
|
-
let n = l.indexOf(e), i =
|
|
1018
|
+
let n = l.indexOf(e), i = d[n];
|
|
1019
1019
|
if (!i) continue;
|
|
1020
1020
|
let { direction: a, speed: s } = Je(e, i, S, t, m);
|
|
1021
|
-
for (let e of ["x", "y"])
|
|
1021
|
+
for (let e of ["x", "y"]) g[e][a[e]] || (s[e] = 0, a[e] = 0);
|
|
1022
1022
|
if (s.x > 0 || s.y > 0) {
|
|
1023
|
-
y(), C.current = e,
|
|
1023
|
+
y(), C.current = e, v(w, o), b.current = s, x.current = a;
|
|
1024
1024
|
return;
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
@@ -1039,11 +1039,11 @@ function St(e) {
|
|
|
1039
1039
|
a,
|
|
1040
1040
|
o,
|
|
1041
1041
|
JSON.stringify(S),
|
|
1042
|
-
JSON.stringify(
|
|
1043
|
-
|
|
1042
|
+
JSON.stringify(g),
|
|
1043
|
+
v,
|
|
1044
1044
|
l,
|
|
1045
1045
|
T,
|
|
1046
|
-
|
|
1046
|
+
d,
|
|
1047
1047
|
JSON.stringify(m)
|
|
1048
1048
|
]);
|
|
1049
1049
|
}
|
|
@@ -1086,7 +1086,7 @@ function Tt(e, t) {
|
|
|
1086
1086
|
return P((e) => t == null ? null : r ?? e ?? null, [r, t]);
|
|
1087
1087
|
}
|
|
1088
1088
|
function Et(e, t) {
|
|
1089
|
-
return
|
|
1089
|
+
return h(() => e.reduce((e, n) => {
|
|
1090
1090
|
let { sensor: r } = n, i = r.activators.map((e) => ({
|
|
1091
1091
|
eventName: e.eventName,
|
|
1092
1092
|
handler: t(e.handler, n)
|
|
@@ -1104,11 +1104,11 @@ var Ot;
|
|
|
1104
1104
|
})(Ot ||= {});
|
|
1105
1105
|
var kt = /*#__PURE__*/ new Map();
|
|
1106
1106
|
function At(e, t) {
|
|
1107
|
-
let { dragging: n, dependencies: r, config: i } = t, [a, o] =
|
|
1107
|
+
let { dragging: n, dependencies: r, config: i } = t, [a, o] = v(null), { frequency: s, measure: c, strategy: l } = i, d = _(e), p = b(), m = te(p), h = u(function(e) {
|
|
1108
1108
|
e === void 0 && (e = []), !m.current && o((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
|
|
1109
|
-
}, [m]), g =
|
|
1110
|
-
if (
|
|
1111
|
-
if (!t || t === kt ||
|
|
1109
|
+
}, [m]), g = _(null), y = P((t) => {
|
|
1110
|
+
if (p && !n) return kt;
|
|
1111
|
+
if (!t || t === kt || d.current !== e || a != null) {
|
|
1112
1112
|
let t = /* @__PURE__ */ new Map();
|
|
1113
1113
|
for (let n of e) {
|
|
1114
1114
|
if (!n) continue;
|
|
@@ -1126,26 +1126,26 @@ function At(e, t) {
|
|
|
1126
1126
|
e,
|
|
1127
1127
|
a,
|
|
1128
1128
|
n,
|
|
1129
|
-
|
|
1129
|
+
p,
|
|
1130
1130
|
c
|
|
1131
1131
|
]);
|
|
1132
|
-
return
|
|
1133
|
-
|
|
1134
|
-
}, [e]),
|
|
1135
|
-
|
|
1136
|
-
}, [n,
|
|
1132
|
+
return f(() => {
|
|
1133
|
+
d.current = e;
|
|
1134
|
+
}, [e]), f(() => {
|
|
1135
|
+
p || h();
|
|
1136
|
+
}, [n, p]), f(() => {
|
|
1137
1137
|
a && a.length > 0 && o(null);
|
|
1138
|
-
}, [JSON.stringify(a)]),
|
|
1139
|
-
|
|
1138
|
+
}, [JSON.stringify(a)]), f(() => {
|
|
1139
|
+
p || typeof s != "number" || g.current !== null || (g.current = setTimeout(() => {
|
|
1140
1140
|
h(), g.current = null;
|
|
1141
1141
|
}, s));
|
|
1142
1142
|
}, [
|
|
1143
1143
|
s,
|
|
1144
|
-
|
|
1144
|
+
p,
|
|
1145
1145
|
h,
|
|
1146
1146
|
...r
|
|
1147
1147
|
]), {
|
|
1148
|
-
droppableRects:
|
|
1148
|
+
droppableRects: y,
|
|
1149
1149
|
measureDroppableContainers: h,
|
|
1150
1150
|
measuringScheduled: a != null
|
|
1151
1151
|
};
|
|
@@ -1164,27 +1164,27 @@ function Mt(e, t) {
|
|
|
1164
1164
|
return jt(e, t);
|
|
1165
1165
|
}
|
|
1166
1166
|
function Nt(e) {
|
|
1167
|
-
let { callback: t, disabled: n } = e, r = M(t), i =
|
|
1167
|
+
let { callback: t, disabled: n } = e, r = M(t), i = h(() => {
|
|
1168
1168
|
if (n || typeof window > "u" || window.MutationObserver === void 0) return;
|
|
1169
1169
|
let { MutationObserver: e } = window;
|
|
1170
1170
|
return new e(r);
|
|
1171
1171
|
}, [r, n]);
|
|
1172
|
-
return
|
|
1172
|
+
return f(() => () => i?.disconnect(), [i]), i;
|
|
1173
1173
|
}
|
|
1174
1174
|
function Pt(e) {
|
|
1175
|
-
let { callback: t, disabled: n } = e, r = M(t), i =
|
|
1175
|
+
let { callback: t, disabled: n } = e, r = M(t), i = h(() => {
|
|
1176
1176
|
if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
|
|
1177
1177
|
let { ResizeObserver: e } = window;
|
|
1178
1178
|
return new e(r);
|
|
1179
1179
|
}, [n]);
|
|
1180
|
-
return
|
|
1180
|
+
return f(() => () => i?.disconnect(), [i]), i;
|
|
1181
1181
|
}
|
|
1182
1182
|
function Ft(e) {
|
|
1183
1183
|
return new tt(Pe(e), e);
|
|
1184
1184
|
}
|
|
1185
1185
|
function It(e, t, n) {
|
|
1186
1186
|
t === void 0 && (t = Ft);
|
|
1187
|
-
let [r, i] =
|
|
1187
|
+
let [r, i] = v(null);
|
|
1188
1188
|
function a() {
|
|
1189
1189
|
i((r) => {
|
|
1190
1190
|
if (!e) return null;
|
|
@@ -1214,17 +1214,17 @@ function Lt(e) {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
var Rt = [];
|
|
1216
1216
|
function zt(e) {
|
|
1217
|
-
let t =
|
|
1218
|
-
return
|
|
1217
|
+
let t = _(e), n = P((n) => e ? n && n !== Rt && e && t.current && e.parentNode === t.current.parentNode ? n : ze(e) : Rt, [e]);
|
|
1218
|
+
return f(() => {
|
|
1219
1219
|
t.current = e;
|
|
1220
1220
|
}, [e]), n;
|
|
1221
1221
|
}
|
|
1222
1222
|
function Bt(e) {
|
|
1223
|
-
let [t, n] =
|
|
1223
|
+
let [t, n] = v(null), r = _(e), i = u((e) => {
|
|
1224
1224
|
let t = Ve(e.target);
|
|
1225
1225
|
t && n((e) => e ? (e.set(t, We(t)), new Map(e)) : null);
|
|
1226
1226
|
}, []);
|
|
1227
|
-
return
|
|
1227
|
+
return f(() => {
|
|
1228
1228
|
let t = r.current;
|
|
1229
1229
|
if (e !== t) {
|
|
1230
1230
|
a(t);
|
|
@@ -1242,20 +1242,20 @@ function Bt(e) {
|
|
|
1242
1242
|
Ve(e)?.removeEventListener("scroll", i);
|
|
1243
1243
|
});
|
|
1244
1244
|
}
|
|
1245
|
-
}, [i, e]),
|
|
1245
|
+
}, [i, e]), h(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => ae(e, t), J) : Xe(e) : J, [e, t]);
|
|
1246
1246
|
}
|
|
1247
1247
|
function Vt(e, t) {
|
|
1248
1248
|
t === void 0 && (t = []);
|
|
1249
|
-
let n =
|
|
1250
|
-
return
|
|
1249
|
+
let n = _(null);
|
|
1250
|
+
return f(() => {
|
|
1251
1251
|
n.current = null;
|
|
1252
|
-
}, t),
|
|
1252
|
+
}, t), f(() => {
|
|
1253
1253
|
let t = e !== J;
|
|
1254
1254
|
t && !n.current && (n.current = e), !t && n.current && (n.current = null);
|
|
1255
1255
|
}, [e]), n.current ? L(e, n.current) : J;
|
|
1256
1256
|
}
|
|
1257
1257
|
function Ht(e) {
|
|
1258
|
-
|
|
1258
|
+
f(() => {
|
|
1259
1259
|
if (!w) return;
|
|
1260
1260
|
let t = e.map((e) => {
|
|
1261
1261
|
let { sensor: t } = e;
|
|
@@ -1270,7 +1270,7 @@ function Ht(e) {
|
|
|
1270
1270
|
}));
|
|
1271
1271
|
}
|
|
1272
1272
|
function Ut(e, t) {
|
|
1273
|
-
return
|
|
1273
|
+
return h(() => e.reduce((e, n) => {
|
|
1274
1274
|
let { eventName: r, handler: i } = n;
|
|
1275
1275
|
return e[r] = (e) => {
|
|
1276
1276
|
i(e, t);
|
|
@@ -1278,12 +1278,12 @@ function Ut(e, t) {
|
|
|
1278
1278
|
}, {}), [e, t]);
|
|
1279
1279
|
}
|
|
1280
1280
|
function Wt(e) {
|
|
1281
|
-
return
|
|
1281
|
+
return h(() => e ? Ie(e) : null, [e]);
|
|
1282
1282
|
}
|
|
1283
1283
|
var Gt = [];
|
|
1284
1284
|
function Kt(e, t) {
|
|
1285
1285
|
t === void 0 && (t = Pe);
|
|
1286
|
-
let [n] = e, r = Wt(n ? D(n) : null), [i, a] =
|
|
1286
|
+
let [n] = e, r = Wt(n ? D(n) : null), [i, a] = v(Gt);
|
|
1287
1287
|
function o() {
|
|
1288
1288
|
a(() => e.length ? e.map((e) => Ge(e) ? r : new tt(t(e), e)) : Gt);
|
|
1289
1289
|
}
|
|
@@ -1299,7 +1299,7 @@ function qt(e) {
|
|
|
1299
1299
|
return k(t) ? t : e;
|
|
1300
1300
|
}
|
|
1301
1301
|
function Jt(e) {
|
|
1302
|
-
let { measure: t } = e, [n, r] =
|
|
1302
|
+
let { measure: t } = e, [n, r] = v(null), i = Pt({ callback: u((e) => {
|
|
1303
1303
|
for (let { target: n } of e) if (k(n)) {
|
|
1304
1304
|
r((e) => {
|
|
1305
1305
|
let r = t(n);
|
|
@@ -1311,11 +1311,11 @@ function Jt(e) {
|
|
|
1311
1311
|
});
|
|
1312
1312
|
break;
|
|
1313
1313
|
}
|
|
1314
|
-
}, [t]) }), [a, o] = ne(
|
|
1314
|
+
}, [t]) }), [a, o] = ne(u((e) => {
|
|
1315
1315
|
let n = qt(e);
|
|
1316
1316
|
i?.disconnect(), n && i?.observe(n), r(n ? t(n) : null);
|
|
1317
1317
|
}, [t, i]));
|
|
1318
|
-
return
|
|
1318
|
+
return h(() => ({
|
|
1319
1319
|
nodeRef: a,
|
|
1320
1320
|
rect: n,
|
|
1321
1321
|
setRef: o
|
|
@@ -1387,7 +1387,7 @@ var Yt = [{
|
|
|
1387
1387
|
draggableNodes: /*#__PURE__*/ new Map(),
|
|
1388
1388
|
over: null,
|
|
1389
1389
|
measureDroppableContainers: q
|
|
1390
|
-
}, tn = /*#__PURE__*/
|
|
1390
|
+
}, tn = /*#__PURE__*/ s(en), nn = /*#__PURE__*/ s($t);
|
|
1391
1391
|
function rn() {
|
|
1392
1392
|
return {
|
|
1393
1393
|
draggable: {
|
|
@@ -1482,8 +1482,8 @@ function an(e, t) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
function on(e) {
|
|
1485
|
-
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } =
|
|
1486
|
-
return
|
|
1485
|
+
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = d(tn), a = F(r), o = F(n?.id);
|
|
1486
|
+
return f(() => {
|
|
1487
1487
|
if (!t && !r && a && o != null) {
|
|
1488
1488
|
if (!R(a) || document.activeElement === a.target) return;
|
|
1489
1489
|
let e = i.get(o);
|
|
@@ -1517,7 +1517,7 @@ function sn(e, t) {
|
|
|
1517
1517
|
}), n) : n;
|
|
1518
1518
|
}
|
|
1519
1519
|
function cn(e) {
|
|
1520
|
-
return
|
|
1520
|
+
return h(() => ({
|
|
1521
1521
|
draggable: {
|
|
1522
1522
|
...Zt.draggable,
|
|
1523
1523
|
...e?.draggable
|
|
@@ -1537,7 +1537,7 @@ function cn(e) {
|
|
|
1537
1537
|
]);
|
|
1538
1538
|
}
|
|
1539
1539
|
function ln(e) {
|
|
1540
|
-
let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a =
|
|
1540
|
+
let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = _(!1), { x: o, y: s } = typeof i == "boolean" ? {
|
|
1541
1541
|
x: i,
|
|
1542
1542
|
y: i
|
|
1543
1543
|
} : i;
|
|
@@ -1565,7 +1565,7 @@ function ln(e) {
|
|
|
1565
1565
|
n
|
|
1566
1566
|
]);
|
|
1567
1567
|
}
|
|
1568
|
-
var un = /*#__PURE__*/
|
|
1568
|
+
var un = /*#__PURE__*/ s({
|
|
1569
1569
|
...J,
|
|
1570
1570
|
scaleX: 1,
|
|
1571
1571
|
scaleY: 1
|
|
@@ -1573,26 +1573,26 @@ var un = /*#__PURE__*/ c({
|
|
|
1573
1573
|
(function(e) {
|
|
1574
1574
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
1575
1575
|
})(dn ||= {});
|
|
1576
|
-
var fn = /*#__PURE__*/
|
|
1577
|
-
let { id: t, accessibility: n, autoScroll: r = !0, children: i, sensors:
|
|
1576
|
+
var fn = /*#__PURE__*/ l(function(e) {
|
|
1577
|
+
let { id: t, accessibility: n, autoScroll: r = !0, children: i, sensors: o = Yt, collisionDetection: s = Te, measuring: c, modifiers: l, ...d } = e, [p, m] = g(an, void 0, rn), [y, b] = fe(), [S, C] = v(dn.Uninitialized), w = S === dn.Initialized, { draggable: { active: T, nodes: E, translate: O }, droppable: { containers: k } } = p, ee = T == null ? null : E.get(T), A = _({
|
|
1578
1578
|
initial: null,
|
|
1579
1579
|
translated: null
|
|
1580
|
-
}), M =
|
|
1580
|
+
}), M = h(() => T == null ? null : {
|
|
1581
1581
|
id: T,
|
|
1582
1582
|
data: ee?.data ?? Xt,
|
|
1583
1583
|
rect: A
|
|
1584
|
-
}, [T, ee]), N =
|
|
1584
|
+
}, [T, ee]), N = _(null), [P, ne] = v(null), [F, re] = v(null), I = te(d, Object.values(d)), L = ie("DndDescribedBy", t), oe = h(() => k.getEnabled(), [k]), R = cn(c), { droppableRects: z, measureDroppableContainers: B, measuringScheduled: V } = At(oe, {
|
|
1585
1585
|
dragging: w,
|
|
1586
1586
|
dependencies: [O.x, O.y],
|
|
1587
1587
|
config: R.droppable
|
|
1588
|
-
}), H = Tt(E, T), U =
|
|
1588
|
+
}), H = Tt(E, T), U = h(() => F ? se(F) : null, [F]), ce = Be(), le = Mt(H, R.draggable.measure);
|
|
1589
1589
|
ln({
|
|
1590
1590
|
activeNode: T == null ? null : E.get(T),
|
|
1591
1591
|
config: ce.layoutShiftCompensation,
|
|
1592
1592
|
initialRect: le,
|
|
1593
1593
|
measure: R.draggable.measure
|
|
1594
1594
|
});
|
|
1595
|
-
let W = It(H, R.draggable.measure, le), de = It(H ? H.parentElement : null), G =
|
|
1595
|
+
let W = It(H, R.draggable.measure, le), de = It(H ? H.parentElement : null), G = _({
|
|
1596
1596
|
activatorEvent: null,
|
|
1597
1597
|
active: null,
|
|
1598
1598
|
activeNode: H,
|
|
@@ -1629,7 +1629,7 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1629
1629
|
droppableRects: z,
|
|
1630
1630
|
droppableContainers: oe,
|
|
1631
1631
|
pointerCoordinates: Se
|
|
1632
|
-
}) : null, je = xe(ke, "id"), [Me, Ne] =
|
|
1632
|
+
}) : null, je = xe(ke, "id"), [Me, Ne] = v(null), Pe = Oe(J ? be : ae(be, Ee), Me?.rect ?? null, W), Fe = _(null), Ie = u((e, t) => {
|
|
1633
1633
|
let { sensor: n, options: r } = t;
|
|
1634
1634
|
if (N.current == null) return;
|
|
1635
1635
|
let i = E.get(N.current);
|
|
@@ -1643,7 +1643,7 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1643
1643
|
onAbort(e) {
|
|
1644
1644
|
if (!E.get(e)) return;
|
|
1645
1645
|
let { onDragAbort: t } = I.current, n = { id: e };
|
|
1646
|
-
t?.(n),
|
|
1646
|
+
t?.(n), y({
|
|
1647
1647
|
type: "onDragAbort",
|
|
1648
1648
|
event: n
|
|
1649
1649
|
});
|
|
@@ -1656,7 +1656,7 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1656
1656
|
initialCoordinates: n,
|
|
1657
1657
|
offset: r
|
|
1658
1658
|
};
|
|
1659
|
-
i?.(a),
|
|
1659
|
+
i?.(a), y({
|
|
1660
1660
|
type: "onDragPending",
|
|
1661
1661
|
event: a
|
|
1662
1662
|
});
|
|
@@ -1674,12 +1674,12 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1674
1674
|
rect: A
|
|
1675
1675
|
}
|
|
1676
1676
|
};
|
|
1677
|
-
|
|
1677
|
+
x(() => {
|
|
1678
1678
|
r?.(i), C(dn.Initializing), m({
|
|
1679
1679
|
type: K.DragStart,
|
|
1680
1680
|
initialCoordinates: e,
|
|
1681
1681
|
active: t
|
|
1682
|
-
}),
|
|
1682
|
+
}), y({
|
|
1683
1683
|
type: "onDragStart",
|
|
1684
1684
|
event: i
|
|
1685
1685
|
}), ne(Fe.current), re(a);
|
|
@@ -1708,12 +1708,12 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1708
1708
|
over: r
|
|
1709
1709
|
}, e === K.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = K.DragCancel);
|
|
1710
1710
|
}
|
|
1711
|
-
N.current = null,
|
|
1711
|
+
N.current = null, x(() => {
|
|
1712
1712
|
m({ type: e }), C(dn.Uninitialized), Ne(null), ne(null), re(null), Fe.current = null;
|
|
1713
1713
|
let t = e === K.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
1714
1714
|
if (o) {
|
|
1715
1715
|
let e = I.current[t];
|
|
1716
|
-
e?.(o),
|
|
1716
|
+
e?.(o), y({
|
|
1717
1717
|
type: t,
|
|
1718
1718
|
event: o
|
|
1719
1719
|
});
|
|
@@ -1721,15 +1721,15 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1721
1721
|
});
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
1724
|
-
}, [E]), Le = Et(
|
|
1724
|
+
}, [E]), Le = Et(o, u((e, t) => (n, r) => {
|
|
1725
1725
|
let i = n.nativeEvent, a = E.get(r);
|
|
1726
1726
|
if (N.current !== null || !a || i.dndKit || i.defaultPrevented) return;
|
|
1727
1727
|
let o = { active: a };
|
|
1728
1728
|
e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, N.current = r, Ie(n, t));
|
|
1729
1729
|
}, [E, Ie]));
|
|
1730
|
-
Ht(
|
|
1731
|
-
W &&
|
|
1732
|
-
}, [W,
|
|
1730
|
+
Ht(o), j(() => {
|
|
1731
|
+
W && S === dn.Initializing && C(dn.Initialized);
|
|
1732
|
+
}, [W, S]), f(() => {
|
|
1733
1733
|
let { onDragMove: e } = I.current, { active: t, activatorEvent: n, collisions: r, over: i } = G.current;
|
|
1734
1734
|
if (!t || !n) return;
|
|
1735
1735
|
let a = {
|
|
@@ -1742,13 +1742,13 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1742
1742
|
},
|
|
1743
1743
|
over: i
|
|
1744
1744
|
};
|
|
1745
|
-
|
|
1746
|
-
e?.(a),
|
|
1745
|
+
x(() => {
|
|
1746
|
+
e?.(a), y({
|
|
1747
1747
|
type: "onDragMove",
|
|
1748
1748
|
event: a
|
|
1749
1749
|
});
|
|
1750
1750
|
});
|
|
1751
|
-
}, [De.x, De.y]),
|
|
1751
|
+
}, [De.x, De.y]), f(() => {
|
|
1752
1752
|
let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = G.current;
|
|
1753
1753
|
if (!e || N.current == null || !t || !i) return;
|
|
1754
1754
|
let { onDragOver: a } = I.current, o = r.get(je), s = o && o.rect.current ? {
|
|
@@ -1766,8 +1766,8 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1766
1766
|
},
|
|
1767
1767
|
over: s
|
|
1768
1768
|
};
|
|
1769
|
-
|
|
1770
|
-
Ne(s), a?.(c),
|
|
1769
|
+
x(() => {
|
|
1770
|
+
Ne(s), a?.(c), y({
|
|
1771
1771
|
type: "onDragOver",
|
|
1772
1772
|
event: c
|
|
1773
1773
|
});
|
|
@@ -1812,7 +1812,7 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1812
1812
|
scrollableAncestors: Y,
|
|
1813
1813
|
scrollableAncestorRects: ye
|
|
1814
1814
|
});
|
|
1815
|
-
let Re =
|
|
1815
|
+
let Re = h(() => ({
|
|
1816
1816
|
active: M,
|
|
1817
1817
|
activeNode: H,
|
|
1818
1818
|
activeNodeRect: W,
|
|
@@ -1848,7 +1848,7 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1848
1848
|
R,
|
|
1849
1849
|
V,
|
|
1850
1850
|
ve
|
|
1851
|
-
]), ze =
|
|
1851
|
+
]), ze = h(() => ({
|
|
1852
1852
|
activatorEvent: F,
|
|
1853
1853
|
activators: Le,
|
|
1854
1854
|
active: M,
|
|
@@ -1869,7 +1869,7 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1869
1869
|
Me,
|
|
1870
1870
|
B
|
|
1871
1871
|
]);
|
|
1872
|
-
return
|
|
1872
|
+
return a.createElement(ue.Provider, { value: b }, a.createElement(tn.Provider, { value: ze }, a.createElement(nn.Provider, { value: Re }, a.createElement(un.Provider, { value: Pe }, i)), a.createElement(on, { disabled: n?.restoreFocus === !1 })), a.createElement(me, {
|
|
1873
1873
|
...n,
|
|
1874
1874
|
hiddenTextDescribedById: L
|
|
1875
1875
|
}));
|
|
@@ -1880,35 +1880,35 @@ var fn = /*#__PURE__*/ u(function(e) {
|
|
|
1880
1880
|
enabled: n
|
|
1881
1881
|
} : { enabled: n };
|
|
1882
1882
|
}
|
|
1883
|
-
}), pn = /*#__PURE__*/
|
|
1883
|
+
}), pn = /*#__PURE__*/ s(null), mn = "button", hn = "Draggable";
|
|
1884
1884
|
function gn(e) {
|
|
1885
|
-
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = ie(hn), { activators: o, activatorEvent: s, active: c, activeNodeRect: l, ariaDescribedById: u, draggableNodes:
|
|
1886
|
-
return j(() => (
|
|
1885
|
+
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = ie(hn), { activators: o, activatorEvent: s, active: c, activeNodeRect: l, ariaDescribedById: u, draggableNodes: f, over: p } = d(tn), { role: m = mn, roleDescription: g = "draggable", tabIndex: _ = 0 } = i ?? {}, v = c?.id === t, y = d(v ? un : pn), [b, x] = ne(), [S, C] = ne(), w = Ut(o, t), T = te(n);
|
|
1886
|
+
return j(() => (f.set(t, {
|
|
1887
1887
|
id: t,
|
|
1888
1888
|
key: a,
|
|
1889
1889
|
node: b,
|
|
1890
1890
|
activatorNode: S,
|
|
1891
1891
|
data: T
|
|
1892
1892
|
}), () => {
|
|
1893
|
-
let e =
|
|
1894
|
-
e && e.key === a &&
|
|
1895
|
-
}), [
|
|
1893
|
+
let e = f.get(t);
|
|
1894
|
+
e && e.key === a && f.delete(t);
|
|
1895
|
+
}), [f, t]), {
|
|
1896
1896
|
active: c,
|
|
1897
1897
|
activatorEvent: s,
|
|
1898
1898
|
activeNodeRect: l,
|
|
1899
|
-
attributes:
|
|
1899
|
+
attributes: h(() => ({
|
|
1900
1900
|
role: m,
|
|
1901
1901
|
tabIndex: _,
|
|
1902
1902
|
"aria-disabled": r,
|
|
1903
1903
|
"aria-pressed": v && m === mn ? !0 : void 0,
|
|
1904
|
-
"aria-roledescription":
|
|
1904
|
+
"aria-roledescription": g,
|
|
1905
1905
|
"aria-describedby": u.draggable
|
|
1906
1906
|
}), [
|
|
1907
1907
|
r,
|
|
1908
1908
|
m,
|
|
1909
1909
|
_,
|
|
1910
1910
|
v,
|
|
1911
|
-
|
|
1911
|
+
g,
|
|
1912
1912
|
u.draggable
|
|
1913
1913
|
]),
|
|
1914
1914
|
isDragging: v,
|
|
@@ -1921,15 +1921,15 @@ function gn(e) {
|
|
|
1921
1921
|
};
|
|
1922
1922
|
}
|
|
1923
1923
|
function _n() {
|
|
1924
|
-
return
|
|
1924
|
+
return d(nn);
|
|
1925
1925
|
}
|
|
1926
1926
|
var vn = "Droppable", yn = { timeout: 25 };
|
|
1927
1927
|
function bn(e) {
|
|
1928
|
-
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a = ie(vn), { active: o, dispatch: s, over: c, measureDroppableContainers: l } =
|
|
1928
|
+
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a = ie(vn), { active: o, dispatch: s, over: c, measureDroppableContainers: l } = d(tn), p = _({ disabled: n }), m = _(!1), h = _(null), g = _(null), { disabled: v, updateMeasurementsFor: y, timeout: b } = {
|
|
1929
1929
|
...yn,
|
|
1930
1930
|
...i
|
|
1931
1931
|
}, x = te(y ?? r), S = Pt({
|
|
1932
|
-
callback:
|
|
1932
|
+
callback: u(() => {
|
|
1933
1933
|
if (!m.current) {
|
|
1934
1934
|
m.current = !0;
|
|
1935
1935
|
return;
|
|
@@ -1938,13 +1938,13 @@ function bn(e) {
|
|
|
1938
1938
|
l(Array.isArray(x.current) ? x.current : [x.current]), g.current = null;
|
|
1939
1939
|
}, b);
|
|
1940
1940
|
}, [b]),
|
|
1941
|
-
disabled:
|
|
1942
|
-
}), [C, w] = ne(
|
|
1941
|
+
disabled: v || !o
|
|
1942
|
+
}), [C, w] = ne(u((e, t) => {
|
|
1943
1943
|
S && (t && (S.unobserve(t), m.current = !1), e && S.observe(e));
|
|
1944
1944
|
}, [S])), T = te(t);
|
|
1945
|
-
return
|
|
1945
|
+
return f(() => {
|
|
1946
1946
|
!S || !C.current || (S.disconnect(), m.current = !1, S.observe(C.current));
|
|
1947
|
-
}, [C, S]),
|
|
1947
|
+
}, [C, S]), f(() => (s({
|
|
1948
1948
|
type: K.RegisterDroppable,
|
|
1949
1949
|
element: {
|
|
1950
1950
|
id: r,
|
|
@@ -1958,13 +1958,13 @@ function bn(e) {
|
|
|
1958
1958
|
type: K.UnregisterDroppable,
|
|
1959
1959
|
key: a,
|
|
1960
1960
|
id: r
|
|
1961
|
-
})), [r]),
|
|
1962
|
-
n !==
|
|
1961
|
+
})), [r]), f(() => {
|
|
1962
|
+
n !== p.current.disabled && (s({
|
|
1963
1963
|
type: K.SetDroppableDisabled,
|
|
1964
1964
|
id: r,
|
|
1965
1965
|
key: a,
|
|
1966
1966
|
disabled: n
|
|
1967
|
-
}),
|
|
1967
|
+
}), p.current.disabled = n);
|
|
1968
1968
|
}, [
|
|
1969
1969
|
r,
|
|
1970
1970
|
a,
|
|
@@ -1980,22 +1980,22 @@ function bn(e) {
|
|
|
1980
1980
|
};
|
|
1981
1981
|
}
|
|
1982
1982
|
function xn(e) {
|
|
1983
|
-
let { animation: t, children: n } = e, [r, i] =
|
|
1983
|
+
let { animation: t, children: n } = e, [r, i] = v(null), [s, c] = v(null), l = F(n);
|
|
1984
1984
|
return !n && !r && l && i(l), j(() => {
|
|
1985
|
-
if (!
|
|
1985
|
+
if (!s) return;
|
|
1986
1986
|
let e = r?.key, n = r?.props.id;
|
|
1987
1987
|
if (e == null || n == null) {
|
|
1988
1988
|
i(null);
|
|
1989
1989
|
return;
|
|
1990
1990
|
}
|
|
1991
|
-
Promise.resolve(t(n,
|
|
1991
|
+
Promise.resolve(t(n, s)).then(() => {
|
|
1992
1992
|
i(null);
|
|
1993
1993
|
});
|
|
1994
1994
|
}, [
|
|
1995
1995
|
t,
|
|
1996
1996
|
r,
|
|
1997
|
-
|
|
1998
|
-
]),
|
|
1997
|
+
s
|
|
1998
|
+
]), a.createElement(a.Fragment, null, n, r ? o(r, { ref: c }) : null);
|
|
1999
1999
|
}
|
|
2000
2000
|
var Sn = {
|
|
2001
2001
|
x: 0,
|
|
@@ -2005,13 +2005,13 @@ var Sn = {
|
|
|
2005
2005
|
};
|
|
2006
2006
|
function Cn(e) {
|
|
2007
2007
|
let { children: t } = e;
|
|
2008
|
-
return
|
|
2008
|
+
return a.createElement(tn.Provider, { value: en }, a.createElement(un.Provider, { value: Sn }, t));
|
|
2009
2009
|
}
|
|
2010
2010
|
var wn = {
|
|
2011
2011
|
position: "fixed",
|
|
2012
2012
|
touchAction: "none"
|
|
2013
|
-
}, Tn = (e) => R(e) ? "transform 250ms ease" : void 0, En = /*#__PURE__*/
|
|
2014
|
-
let { as: n, activatorEvent: r, adjustScale: i, children:
|
|
2013
|
+
}, Tn = (e) => R(e) ? "transform 250ms ease" : void 0, En = /*#__PURE__*/ c((e, t) => {
|
|
2014
|
+
let { as: n, activatorEvent: r, adjustScale: i, children: o, className: s, rect: c, style: l, transform: u, transition: d = Tn } = e;
|
|
2015
2015
|
if (!c) return null;
|
|
2016
2016
|
let f = i ? u : {
|
|
2017
2017
|
...u,
|
|
@@ -2028,11 +2028,11 @@ var wn = {
|
|
|
2028
2028
|
transition: typeof d == "function" ? d(r) : d,
|
|
2029
2029
|
...l
|
|
2030
2030
|
};
|
|
2031
|
-
return
|
|
2031
|
+
return a.createElement(n, {
|
|
2032
2032
|
className: s,
|
|
2033
2033
|
style: p,
|
|
2034
2034
|
ref: t
|
|
2035
|
-
},
|
|
2035
|
+
}, o);
|
|
2036
2036
|
}), Dn = {
|
|
2037
2037
|
duration: 250,
|
|
2038
2038
|
easing: "ease",
|
|
@@ -2127,13 +2127,13 @@ function kn(e) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
var An = 0;
|
|
2129
2129
|
function jn(e) {
|
|
2130
|
-
return
|
|
2130
|
+
return h(() => {
|
|
2131
2131
|
if (e != null) return An++, An;
|
|
2132
2132
|
}, [e]);
|
|
2133
2133
|
}
|
|
2134
|
-
var Mn = /*#__PURE__*/
|
|
2135
|
-
let { adjustScale: t = !1, children: n, dropAnimation: r, style: i, transition:
|
|
2136
|
-
activatorEvent:
|
|
2134
|
+
var Mn = /*#__PURE__*/ a.memo((e) => {
|
|
2135
|
+
let { adjustScale: t = !1, children: n, dropAnimation: r, style: i, transition: o, modifiers: s, wrapperElement: c = "div", className: l, zIndex: u = 999 } = e, { activatorEvent: f, active: p, activeNodeRect: m, containerNodeRect: h, draggableNodes: g, droppableContainers: _, dragOverlay: v, over: y, measuringConfiguration: b, scrollableAncestors: x, scrollableAncestorRects: S, windowRect: C } = _n(), w = d(un), T = jn(p?.id), E = sn(s, {
|
|
2136
|
+
activatorEvent: f,
|
|
2137
2137
|
active: p,
|
|
2138
2138
|
activeNodeRect: m,
|
|
2139
2139
|
containerNodeRect: h,
|
|
@@ -2150,15 +2150,15 @@ var Mn = /*#__PURE__*/ o.memo((e) => {
|
|
|
2150
2150
|
droppableContainers: _,
|
|
2151
2151
|
measuringConfiguration: b
|
|
2152
2152
|
}), k = D ? v.setRef : void 0;
|
|
2153
|
-
return
|
|
2153
|
+
return a.createElement(Cn, null, a.createElement(xn, { animation: O }, p && T ? a.createElement(En, {
|
|
2154
2154
|
key: T,
|
|
2155
2155
|
id: p.id,
|
|
2156
2156
|
ref: k,
|
|
2157
2157
|
as: c,
|
|
2158
|
-
activatorEvent:
|
|
2158
|
+
activatorEvent: f,
|
|
2159
2159
|
adjustScale: t,
|
|
2160
2160
|
className: l,
|
|
2161
|
-
transition:
|
|
2161
|
+
transition: o,
|
|
2162
2162
|
rect: D,
|
|
2163
2163
|
style: {
|
|
2164
2164
|
zIndex: u,
|
|
@@ -2268,7 +2268,7 @@ function Wn(e, t, n) {
|
|
|
2268
2268
|
let r = e[t], i = e[t - 1], a = e[t + 1];
|
|
2269
2269
|
return r ? n < t ? i ? r.top - (i.top + i.height) : a ? a.top - (r.top + r.height) : 0 : a ? a.top - (r.top + r.height) : i ? r.top - (i.top + i.height) : 0 : 0;
|
|
2270
2270
|
}
|
|
2271
|
-
var Gn = "Sortable", Kn = /*#__PURE__*/
|
|
2271
|
+
var Gn = "Sortable", Kn = /*#__PURE__*/ a.createContext({
|
|
2272
2272
|
activeIndex: -1,
|
|
2273
2273
|
containerId: Gn,
|
|
2274
2274
|
disableTransforms: !1,
|
|
@@ -2283,40 +2283,40 @@ var Gn = "Sortable", Kn = /*#__PURE__*/ o.createContext({
|
|
|
2283
2283
|
}
|
|
2284
2284
|
});
|
|
2285
2285
|
function qn(e) {
|
|
2286
|
-
let { children: t, id: n, items: r, strategy: i = Vn, disabled:
|
|
2286
|
+
let { children: t, id: n, items: r, strategy: i = Vn, disabled: o = !1 } = e, { active: s, dragOverlay: c, droppableRects: l, over: u, measureDroppableContainers: d } = _n(), p = ie(Gn, n), m = c.rect !== null, g = h(() => r.map((e) => typeof e == "object" && "id" in e ? e.id : e), [r]), v = s != null, y = s ? g.indexOf(s.id) : -1, b = u ? g.indexOf(u.id) : -1, x = _(g), S = !In(g, x.current), C = b !== -1 && y === -1 || S, w = Ln(o);
|
|
2287
2287
|
j(() => {
|
|
2288
|
-
S &&
|
|
2288
|
+
S && v && d(g);
|
|
2289
2289
|
}, [
|
|
2290
2290
|
S,
|
|
2291
|
-
|
|
2292
|
-
|
|
2291
|
+
g,
|
|
2292
|
+
v,
|
|
2293
2293
|
d
|
|
2294
|
-
]),
|
|
2295
|
-
x.current =
|
|
2296
|
-
}, [
|
|
2297
|
-
let T =
|
|
2294
|
+
]), f(() => {
|
|
2295
|
+
x.current = g;
|
|
2296
|
+
}, [g]);
|
|
2297
|
+
let T = h(() => ({
|
|
2298
2298
|
activeIndex: y,
|
|
2299
|
-
containerId:
|
|
2299
|
+
containerId: p,
|
|
2300
2300
|
disabled: w,
|
|
2301
2301
|
disableTransforms: C,
|
|
2302
|
-
items:
|
|
2302
|
+
items: g,
|
|
2303
2303
|
overIndex: b,
|
|
2304
2304
|
useDragOverlay: m,
|
|
2305
|
-
sortedRects: Pn(
|
|
2305
|
+
sortedRects: Pn(g, l),
|
|
2306
2306
|
strategy: i
|
|
2307
2307
|
}), [
|
|
2308
2308
|
y,
|
|
2309
|
-
|
|
2309
|
+
p,
|
|
2310
2310
|
w.draggable,
|
|
2311
2311
|
w.droppable,
|
|
2312
2312
|
C,
|
|
2313
|
-
|
|
2313
|
+
g,
|
|
2314
2314
|
b,
|
|
2315
2315
|
l,
|
|
2316
2316
|
m,
|
|
2317
2317
|
i
|
|
2318
2318
|
]);
|
|
2319
|
-
return
|
|
2319
|
+
return a.createElement(Kn.Provider, { value: T }, t);
|
|
2320
2320
|
}
|
|
2321
2321
|
var Jn = (e) => {
|
|
2322
2322
|
let { id: t, items: n, activeIndex: r, overIndex: i } = e;
|
|
@@ -2333,7 +2333,7 @@ var Jn = (e) => {
|
|
|
2333
2333
|
easing: "linear"
|
|
2334
2334
|
}), $n = { roleDescription: "sortable" };
|
|
2335
2335
|
function er(e) {
|
|
2336
|
-
let { disabled: t, index: n, node: r, rect: i } = e, [a, o] =
|
|
2336
|
+
let { disabled: t, index: n, node: r, rect: i } = e, [a, o] = v(null), s = _(n);
|
|
2337
2337
|
return j(() => {
|
|
2338
2338
|
if (!t && n !== s.current && r.current) {
|
|
2339
2339
|
let e = i.current;
|
|
@@ -2353,24 +2353,24 @@ function er(e) {
|
|
|
2353
2353
|
n,
|
|
2354
2354
|
r,
|
|
2355
2355
|
i
|
|
2356
|
-
]),
|
|
2356
|
+
]), f(() => {
|
|
2357
2357
|
a && o(null);
|
|
2358
2358
|
}, [a]), a;
|
|
2359
2359
|
}
|
|
2360
2360
|
function tr(e) {
|
|
2361
|
-
let { animateLayoutChanges: t = Yn, attributes: n, disabled: r, data: i, getNewIndex: a = Jn, id: o, strategy: s, resizeObserverConfig: c, transition: l = Xn } = e, { items: u, containerId:
|
|
2361
|
+
let { animateLayoutChanges: t = Yn, attributes: n, disabled: r, data: i, getNewIndex: a = Jn, id: o, strategy: s, resizeObserverConfig: c, transition: l = Xn } = e, { items: u, containerId: p, activeIndex: m, disabled: g, disableTransforms: v, sortedRects: y, overIndex: b, useDragOverlay: x, strategy: S } = d(Kn), w = nr(r, g), T = u.indexOf(o), E = h(() => ({
|
|
2362
2362
|
sortable: {
|
|
2363
|
-
containerId:
|
|
2363
|
+
containerId: p,
|
|
2364
2364
|
index: T,
|
|
2365
2365
|
items: u
|
|
2366
2366
|
},
|
|
2367
2367
|
...i
|
|
2368
2368
|
}), [
|
|
2369
|
-
|
|
2369
|
+
p,
|
|
2370
2370
|
i,
|
|
2371
2371
|
T,
|
|
2372
2372
|
u
|
|
2373
|
-
]), D =
|
|
2373
|
+
]), D = h(() => u.slice(u.indexOf(o)), [u, o]), { rect: O, node: k, isOver: ee, setNodeRef: A } = bn({
|
|
2374
2374
|
id: o,
|
|
2375
2375
|
data: E,
|
|
2376
2376
|
disabled: w.droppable,
|
|
@@ -2386,7 +2386,7 @@ function tr(e) {
|
|
|
2386
2386
|
...n
|
|
2387
2387
|
},
|
|
2388
2388
|
disabled: w.draggable
|
|
2389
|
-
}), ae = C(A, P), L = !!j, oe = L && !
|
|
2389
|
+
}), ae = C(A, P), L = !!j, oe = L && !v && Fn(m) && Fn(b), z = !x && F, se = oe ? (z && oe ? I : null) ?? (s ?? S)({
|
|
2390
2390
|
rects: y,
|
|
2391
2391
|
activeNodeRect: N,
|
|
2392
2392
|
activeIndex: m,
|
|
@@ -2397,14 +2397,14 @@ function tr(e) {
|
|
|
2397
2397
|
items: u,
|
|
2398
2398
|
activeIndex: m,
|
|
2399
2399
|
overIndex: b
|
|
2400
|
-
}) : T, H = j?.id, U =
|
|
2400
|
+
}) : T, H = j?.id, U = _({
|
|
2401
2401
|
activeId: H,
|
|
2402
2402
|
items: u,
|
|
2403
2403
|
newIndex: V,
|
|
2404
|
-
containerId:
|
|
2404
|
+
containerId: p
|
|
2405
2405
|
}), ce = u !== U.current.items, le = t({
|
|
2406
2406
|
active: j,
|
|
2407
|
-
containerId:
|
|
2407
|
+
containerId: p,
|
|
2408
2408
|
isDragging: F,
|
|
2409
2409
|
isSorting: L,
|
|
2410
2410
|
id: o,
|
|
@@ -2421,14 +2421,14 @@ function tr(e) {
|
|
|
2421
2421
|
node: k,
|
|
2422
2422
|
rect: O
|
|
2423
2423
|
});
|
|
2424
|
-
return
|
|
2425
|
-
L && U.current.newIndex !== V && (U.current.newIndex = V),
|
|
2424
|
+
return f(() => {
|
|
2425
|
+
L && U.current.newIndex !== V && (U.current.newIndex = V), p !== U.current.containerId && (U.current.containerId = p), u !== U.current.items && (U.current.items = u);
|
|
2426
2426
|
}, [
|
|
2427
2427
|
L,
|
|
2428
2428
|
V,
|
|
2429
|
-
|
|
2429
|
+
p,
|
|
2430
2430
|
u
|
|
2431
|
-
]),
|
|
2431
|
+
]), f(() => {
|
|
2432
2432
|
if (H === U.current.activeId) return;
|
|
2433
2433
|
if (H != null && U.current.activeId == null) {
|
|
2434
2434
|
U.current.activeId = H;
|
|
@@ -2481,9 +2481,9 @@ function nr(e, t) {
|
|
|
2481
2481
|
$.Down, $.Right, $.Up, $.Left;
|
|
2482
2482
|
//#endregion
|
|
2483
2483
|
//#region lib/components/ui/collections/dnd/dnd-item-context.ts
|
|
2484
|
-
var rr =
|
|
2484
|
+
var rr = s(null), ir = rr.Provider;
|
|
2485
2485
|
function ar() {
|
|
2486
|
-
return
|
|
2486
|
+
return d(rr);
|
|
2487
2487
|
}
|
|
2488
2488
|
//#endregion
|
|
2489
2489
|
//#region lib/components/ui/collections/dnd/use-dnd-active-id.ts
|
|
@@ -2495,7 +2495,7 @@ function or() {
|
|
|
2495
2495
|
//#region lib/components/ui/collections/dnd/dnd-overlay.tsx
|
|
2496
2496
|
function sr({ children: e, dropAnimation: t }) {
|
|
2497
2497
|
let n = or();
|
|
2498
|
-
return /* @__PURE__ */
|
|
2498
|
+
return /* @__PURE__ */ y(Mn, {
|
|
2499
2499
|
dropAnimation: t,
|
|
2500
2500
|
children: typeof e == "function" ? e(n) : e
|
|
2501
2501
|
});
|
|
@@ -2503,8 +2503,8 @@ function sr({ children: e, dropAnimation: t }) {
|
|
|
2503
2503
|
//#endregion
|
|
2504
2504
|
//#region lib/components/ui/collections/dnd/dnd-provider.tsx
|
|
2505
2505
|
function cr({ disabled: e = !1, children: t, sensors: n, collisionDetection: r = Ce, ...i }) {
|
|
2506
|
-
let a = `DndDescribedBy-${
|
|
2507
|
-
return /* @__PURE__ */
|
|
2506
|
+
let a = `DndDescribedBy-${p()}`, o = ge(he(mt, { activationConstraint: { distance: 6 } }));
|
|
2507
|
+
return /* @__PURE__ */ y(fn, {
|
|
2508
2508
|
id: a,
|
|
2509
2509
|
sensors: e ? [] : n ?? o,
|
|
2510
2510
|
collisionDetection: r,
|
|
@@ -2514,30 +2514,30 @@ function cr({ disabled: e = !1, children: t, sensors: n, collisionDetection: r =
|
|
|
2514
2514
|
}
|
|
2515
2515
|
//#endregion
|
|
2516
2516
|
//#region lib/components/ui/collections/dnd/drag-handle.tsx
|
|
2517
|
-
function lr({ label: i, asSlot:
|
|
2518
|
-
let { t:
|
|
2519
|
-
return
|
|
2520
|
-
ref:
|
|
2517
|
+
function lr({ label: i, asSlot: a = !1, className: o, onClick: s, ...c }) {
|
|
2518
|
+
let { t: l } = n(), u = i ?? l("material.dnd.drag", "Drag"), d = ar(), f = d?.listeners, p = d?.attributes, m = d?.setActivatorNodeRef;
|
|
2519
|
+
return a ? /* @__PURE__ */ y(t, {
|
|
2520
|
+
ref: m,
|
|
2521
2521
|
"data-slot": "drag-handle",
|
|
2522
|
-
className: e("cursor-pointer",
|
|
2523
|
-
...m,
|
|
2522
|
+
className: e("cursor-pointer", o),
|
|
2524
2523
|
...p,
|
|
2525
|
-
...
|
|
2526
|
-
|
|
2527
|
-
|
|
2524
|
+
...f,
|
|
2525
|
+
...c
|
|
2526
|
+
}) : /* @__PURE__ */ y(r, {
|
|
2527
|
+
ref: m,
|
|
2528
2528
|
type: "button",
|
|
2529
2529
|
variant: "ghost",
|
|
2530
|
-
tooltip:
|
|
2531
|
-
"aria-label":
|
|
2530
|
+
tooltip: u,
|
|
2531
|
+
"aria-label": u,
|
|
2532
2532
|
"data-slot": "drag-handle",
|
|
2533
|
-
className: e("size-7 cursor-pointer",
|
|
2533
|
+
className: e("size-7 cursor-pointer", o),
|
|
2534
2534
|
onClick: (e) => {
|
|
2535
|
-
e.stopPropagation(),
|
|
2535
|
+
e.stopPropagation(), s?.(e);
|
|
2536
2536
|
},
|
|
2537
|
-
...m,
|
|
2538
2537
|
...p,
|
|
2539
|
-
...
|
|
2540
|
-
|
|
2538
|
+
...f,
|
|
2539
|
+
...c,
|
|
2540
|
+
children: /* @__PURE__ */ y(S, {})
|
|
2541
2541
|
});
|
|
2542
2542
|
}
|
|
2543
2543
|
//#endregion
|
|
@@ -2549,14 +2549,14 @@ function ur({ id: n, data: r, disabled: i, asSlot: a = !1, className: o, style:
|
|
|
2549
2549
|
disabled: i,
|
|
2550
2550
|
attributes: c.role ? { role: c.role } : void 0
|
|
2551
2551
|
});
|
|
2552
|
-
return /* @__PURE__ */
|
|
2552
|
+
return /* @__PURE__ */ y(ir, {
|
|
2553
2553
|
value: {
|
|
2554
2554
|
attributes: l,
|
|
2555
2555
|
listeners: u,
|
|
2556
2556
|
isDragging: m,
|
|
2557
2557
|
setActivatorNodeRef: f
|
|
2558
2558
|
},
|
|
2559
|
-
children: /* @__PURE__ */
|
|
2559
|
+
children: /* @__PURE__ */ y(a ? t : "div", {
|
|
2560
2560
|
ref: d,
|
|
2561
2561
|
"data-slot": "draggable",
|
|
2562
2562
|
"data-dragging": m || void 0,
|
|
@@ -2584,14 +2584,14 @@ function dr({ id: n, data: r, disabled: a, asSlot: o = !1, className: s, style:
|
|
|
2584
2584
|
data: r,
|
|
2585
2585
|
disabled: a
|
|
2586
2586
|
}), f = o ? t : "div";
|
|
2587
|
-
return /* @__PURE__ */
|
|
2587
|
+
return /* @__PURE__ */ y(ir, {
|
|
2588
2588
|
value: {
|
|
2589
2589
|
attributes: u.attributes,
|
|
2590
2590
|
listeners: u.listeners,
|
|
2591
2591
|
isDragging: u.isDragging,
|
|
2592
2592
|
setActivatorNodeRef: u.setActivatorNodeRef
|
|
2593
2593
|
},
|
|
2594
|
-
children: /* @__PURE__ */
|
|
2594
|
+
children: /* @__PURE__ */ y(f, {
|
|
2595
2595
|
ref: i(u.setNodeRef, d.setNodeRef),
|
|
2596
2596
|
"data-slot": "draggable-droppable",
|
|
2597
2597
|
"data-dragging": u.isDragging || void 0,
|
|
@@ -2616,7 +2616,7 @@ function fr({ id: n, data: r, disabled: i, asSlot: a = !1, className: o, ...s })
|
|
|
2616
2616
|
data: r,
|
|
2617
2617
|
disabled: i
|
|
2618
2618
|
});
|
|
2619
|
-
return /* @__PURE__ */
|
|
2619
|
+
return /* @__PURE__ */ y(a ? t : "div", {
|
|
2620
2620
|
ref: c,
|
|
2621
2621
|
"data-slot": "droppable",
|
|
2622
2622
|
"data-over": l || void 0,
|
|
@@ -2644,14 +2644,14 @@ function mr({ id: n, data: r, disabled: i, asSlot: a = !1, handleOnly: o = !1, c
|
|
|
2644
2644
|
data: r,
|
|
2645
2645
|
disabled: i
|
|
2646
2646
|
}), d = a ? t : "div";
|
|
2647
|
-
return /* @__PURE__ */
|
|
2647
|
+
return /* @__PURE__ */ y(ir, {
|
|
2648
2648
|
value: {
|
|
2649
2649
|
attributes: u.attributes,
|
|
2650
2650
|
listeners: u.listeners,
|
|
2651
2651
|
isDragging: u.isDragging,
|
|
2652
2652
|
setActivatorNodeRef: u.setActivatorNodeRef
|
|
2653
2653
|
},
|
|
2654
|
-
children: /* @__PURE__ */
|
|
2654
|
+
children: /* @__PURE__ */ y(d, {
|
|
2655
2655
|
ref: u.setNodeRef,
|
|
2656
2656
|
"data-slot": "sortable",
|
|
2657
2657
|
"data-dragging": u.isDragging || void 0,
|
|
@@ -2671,7 +2671,7 @@ function mr({ id: n, data: r, disabled: i, asSlot: a = !1, handleOnly: o = !1, c
|
|
|
2671
2671
|
//#endregion
|
|
2672
2672
|
//#region lib/components/ui/collections/dnd/sortable-provider.tsx
|
|
2673
2673
|
function hr({ items: e, strategy: t = Un, children: n }) {
|
|
2674
|
-
return /* @__PURE__ */
|
|
2674
|
+
return /* @__PURE__ */ y(qn, {
|
|
2675
2675
|
items: e,
|
|
2676
2676
|
strategy: t,
|
|
2677
2677
|
children: n
|