@synnaxlabs/pluto 0.32.1 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Animated-m1d-q2MY.js → Animated-BJ0Om9zo.js} +2 -2
- package/dist/{Animated-vgeFXXXh.cjs → Animated-CmYpn592.cjs} +1 -1
- package/dist/{Item-CzgByHQ2.cjs → Item-CPt4Umh0.cjs} +1 -1
- package/dist/{Item-AKMko1DZ.js → Item-JN1-gBEw.js} +5 -5
- package/dist/{Keyboard-Dy7Q9I4w.cjs → Keyboard-BwzZPKjx.cjs} +1 -1
- package/dist/{Keyboard-DWCElMA3.js → Keyboard-CBvQle7r.js} +2 -2
- package/dist/{LinePlot-CCzgiKg5.js → LinePlot-CgkhTRJT.js} +3531 -3360
- package/dist/LinePlot-oIHuM9Jz.cjs +66 -0
- package/dist/Link-mthAKDPf.cjs +1 -0
- package/dist/Link-my2OWRXu.js +14 -0
- package/dist/{List-CVxaH1Gv.js → List-B1BAwLaq.js} +2 -2
- package/dist/{List-C8Cd_qEK.cjs → List-C3bjnukf.cjs} +1 -1
- package/dist/{Pack-BrxYNh7B.js → Pack-CxtceW7N.js} +1 -1
- package/dist/{Pack-C_SrDA3a.cjs → Pack-uflj5a28.cjs} +1 -1
- package/dist/{Text-DwK7WZwz.cjs → Text-BvzGtwCB.cjs} +1 -1
- package/dist/{Text-ZWBNDAJX.js → Text-SLn1Qwzw.js} +5 -5
- package/dist/{Toggle-BQtgHKds.js → Toggle-CqrGlCW8.js} +14481 -14361
- package/dist/Toggle-GvJ5CkHq.cjs +143 -0
- package/dist/{Video-DR3tjTFZ.cjs → Video-DKosAU7v.cjs} +1 -1
- package/dist/{Video-DdIv_1Yq.js → Video-o34bcpwh.js} +1 -1
- package/dist/{aggregator-f5OfPmNc.js → aggregator-B36SA-20.js} +5061 -4512
- package/dist/aggregator-CU9VgdUJ.cjs +67 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/css-4MXuPP5v.cjs +1 -0
- package/dist/css-C8qHWSpT.js +1085 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +53 -51
- package/dist/{external-BGO9o6o7.js → external-B0o5Z8wI.js} +17 -17
- package/dist/external-B5jyXhgU.cjs +1 -0
- package/dist/external-B7W7NBGN.cjs +1 -0
- package/dist/{external-CR7eRU7I.cjs → external-BBGGwc9H.cjs} +1 -1
- package/dist/{external-0qSQW-rW.js → external-BKx-fjB8.js} +2 -2
- package/dist/{external-CCY3TmGe.cjs → external-BLnPpmeS.cjs} +1 -1
- package/dist/{external-DNl6ut74.cjs → external-BQMz5fJB.cjs} +1 -1
- package/dist/{external-BswSNc0P.js → external-BTFW7AEo.js} +2 -2
- package/dist/{external-CyqJB_UP.js → external-BT_oycNI.js} +64 -64
- package/dist/{external-BVWCSwPk.cjs → external-BvoBhRW8.cjs} +1 -1
- package/dist/external-C-xh9EwI.cjs +1 -0
- package/dist/{external-2HiPz4gN.cjs → external-CLKqHc4s.cjs} +1 -1
- package/dist/{external-Cl_evqYY.cjs → external-CPTY4-IY.cjs} +1 -1
- package/dist/{external-Bcj4ayXg.cjs → external-Cb_NFNiX.cjs} +1 -1
- package/dist/{external-n_t7VfzS.js → external-Cc1Bqjmm.js} +1 -1
- package/dist/{external-BxSZ_pLZ.js → external-Cewuz6Gm.js} +20 -20
- package/dist/{external-Cqh9AY74.cjs → external-Crturtt-.cjs} +1 -1
- package/dist/{external-BAqZitjw.cjs → external-D6YTf7Kx.cjs} +1 -1
- package/dist/{external-CWLnWzN8.js → external-DVhxMa2A.js} +38 -38
- package/dist/{external-B22Cd5L_.js → external-DYwzKoQ6.js} +2 -2
- package/dist/external-DqwISR2q.js +1191 -0
- package/dist/{external-Co3i1qex.js → external-GxvuofB_.js} +12 -12
- package/dist/{external-BIcOl3QR.js → external-euVgbl49.js} +4 -4
- package/dist/{external-BiVAfJDo.js → external-f7xyI5mJ.js} +4 -4
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2309 -2214
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/aether/main.d.ts +1 -0
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +8 -2
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Link.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/form/Form.d.ts +2 -2
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +1 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/memo/proxyMemo.d.ts +1 -1
- package/dist/src/memo/proxyMemo.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts.map +1 -1
- package/dist/src/override/factory.d.ts +3 -0
- package/dist/src/override/factory.d.ts.map +1 -0
- package/dist/src/override/index.d.ts +2 -0
- package/dist/src/override/index.d.ts.map +1 -0
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/select/Button.d.ts +1 -1
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/status/Aggregator.d.ts +2 -6
- package/dist/src/status/Aggregator.d.ts.map +1 -1
- package/dist/src/status/Circle.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/types.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +8 -8
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/telem/aether/convertSeries.d.ts +2 -2
- package/dist/src/telem/aether/convertSeries.d.ts.map +1 -1
- package/dist/src/telem/aether/noop.d.ts +2 -1
- package/dist/src/telem/aether/noop.d.ts.map +1 -1
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +2 -2
- package/dist/src/telem/client/cache/cache.d.ts +1 -1
- package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
- package/dist/src/telem/client/cache/dynamic.d.ts +3 -3
- package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
- package/dist/src/telem/client/cache/static.d.ts +1 -1
- package/dist/src/telem/client/cache/static.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +5846 -3
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/fontString.d.ts +1 -1
- package/dist/src/theming/core/fontString.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +9 -0
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/theming/css.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +2 -1
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +0 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/draw2d/index.d.ts +2 -1
- package/dist/src/vis/draw2d/index.d.ts.map +1 -1
- package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +3 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
- package/dist/src/vis/log/Log.d.ts +12 -0
- package/dist/src/vis/log/Log.d.ts.map +1 -0
- package/dist/src/vis/log/aether/Log.d.ts +556 -0
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -0
- package/dist/src/vis/log/aether/index.d.ts +2 -0
- package/dist/src/vis/log/aether/index.d.ts.map +1 -0
- package/dist/src/vis/log/index.d.ts +2 -0
- package/dist/src/vis/log/index.d.ts.map +1 -0
- package/dist/src/vis/render/context.d.ts +3 -1
- package/dist/src/vis/render/context.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +2 -2
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +1 -0
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-CnA_yWxx.js → units-CmWU_YzJ.js} +1 -1
- package/dist/{units-CMXTKjnN.cjs → units-DbfWaeE2.cjs} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +23 -25
- package/dist/LinePlot-BcVyfdeK.cjs +0 -66
- package/dist/Link-BLs4o2WZ.js +0 -11
- package/dist/Link-DAjbmQEI.cjs +0 -1
- package/dist/Toggle-Cu_t9VPe.cjs +0 -143
- package/dist/aggregator-q0CY7-QS.cjs +0 -67
- package/dist/css-B8RwzK24.js +0 -1042
- package/dist/css-LxkguM_s.cjs +0 -1
- package/dist/external-1AgJfGUo.cjs +0 -1
- package/dist/external-BSbQ1fB2.js +0 -1169
- package/dist/external-COZBfuIe.cjs +0 -1
- package/dist/external-CV8q9dy8.cjs +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { C as E, L as A,
|
|
2
|
-
import { aa as _, ab as C, a5 as v, a6 as O, $ as w, a9 as B, ac as z, B as L, X as H, ad as K, ae as X, af as $, ag as F, a2 as I, h as R, i as U, ah as V, a8 as Z, a7 as W, ai as q, aj as G } from "./Toggle-
|
|
3
|
-
import { K as J } from "./Keyboard-
|
|
4
|
-
import { j as
|
|
1
|
+
import { C as E, L as A, h as M, i as T, j as N, s as P } from "./aggregator-B36SA-20.js";
|
|
2
|
+
import { aa as _, ab as C, a5 as v, a6 as O, $ as w, a9 as B, ac as z, B as L, X as H, ad as K, ae as X, af as $, ag as F, a2 as I, h as R, i as U, ah as V, a8 as Z, a7 as W, ai as q, aj as G } from "./Toggle-CqrGlCW8.js";
|
|
3
|
+
import { K as J } from "./Keyboard-CBvQle7r.js";
|
|
4
|
+
import { j as l } from "./jsx-runtime-B6kdoens.js";
|
|
5
5
|
import { useState as Q, useEffect as Y, useCallback as ee } from "react";
|
|
6
|
-
import { P as g } from "./Pack-
|
|
7
|
-
import { A as se } from "./Animated-
|
|
8
|
-
import { C as p } from "./css-
|
|
9
|
-
import { L as
|
|
10
|
-
const
|
|
6
|
+
import { P as g } from "./Pack-CxtceW7N.js";
|
|
7
|
+
import { A as se } from "./Animated-BJ0Om9zo.js";
|
|
8
|
+
import { C as p } from "./css-C8qHWSpT.js";
|
|
9
|
+
import { L as le } from "./List-B1BAwLaq.js";
|
|
10
|
+
const te = [], ne = ({
|
|
11
11
|
data: e,
|
|
12
12
|
emptyContent: s,
|
|
13
|
-
value:
|
|
13
|
+
value: t,
|
|
14
14
|
onChange: n,
|
|
15
15
|
allowMultiple: i,
|
|
16
16
|
allowNone: c,
|
|
17
|
-
hideColumnHeader:
|
|
18
|
-
columns: y =
|
|
17
|
+
hideColumnHeader: o = !1,
|
|
18
|
+
columns: y = te,
|
|
19
19
|
visible: m,
|
|
20
20
|
itemHeight: u = C.itemHeight,
|
|
21
21
|
listItem: f = B(C.Item),
|
|
22
|
-
replaceOnSingle:
|
|
22
|
+
replaceOnSingle: r,
|
|
23
23
|
omit: h,
|
|
24
24
|
autoSelectOnNone: S,
|
|
25
25
|
trigger: j,
|
|
@@ -27,18 +27,18 @@ const le = [], ne = ({
|
|
|
27
27
|
variant: d = "connected",
|
|
28
28
|
...x
|
|
29
29
|
}) => {
|
|
30
|
-
let b = /* @__PURE__ */
|
|
30
|
+
let b = /* @__PURE__ */ l.jsxs(_, { disabled: !m, children: [
|
|
31
31
|
k,
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ l.jsx(
|
|
33
33
|
C.Header,
|
|
34
34
|
{
|
|
35
|
-
hide:
|
|
35
|
+
hide: o || f != null,
|
|
36
36
|
columns: y,
|
|
37
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ l.jsx(v.Virtual, { itemHeight: u, children: f })
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] });
|
|
41
|
-
return d !== "connected" && (b = /* @__PURE__ */
|
|
41
|
+
return d !== "connected" && (b = /* @__PURE__ */ l.jsx(
|
|
42
42
|
g,
|
|
43
43
|
{
|
|
44
44
|
direction: "y",
|
|
@@ -46,16 +46,16 @@ const le = [], ne = ({
|
|
|
46
46
|
className: p.B("select-dialog-content"),
|
|
47
47
|
children: b
|
|
48
48
|
}
|
|
49
|
-
)), /* @__PURE__ */
|
|
49
|
+
)), /* @__PURE__ */ l.jsx(le, { data: e, emptyContent: s, omit: h, children: /* @__PURE__ */ l.jsx(
|
|
50
50
|
O,
|
|
51
51
|
{
|
|
52
|
-
value:
|
|
52
|
+
value: t,
|
|
53
53
|
onChange: n,
|
|
54
54
|
allowMultiple: i,
|
|
55
55
|
allowNone: c,
|
|
56
|
-
replaceOnSingle:
|
|
56
|
+
replaceOnSingle: r,
|
|
57
57
|
autoSelectOnNone: S,
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ l.jsxs(
|
|
59
59
|
w,
|
|
60
60
|
{
|
|
61
61
|
visible: m,
|
|
@@ -72,13 +72,13 @@ const le = [], ne = ({
|
|
|
72
72
|
}
|
|
73
73
|
) });
|
|
74
74
|
}, oe = ({
|
|
75
|
-
children: e =
|
|
75
|
+
children: e = re,
|
|
76
76
|
value: s,
|
|
77
|
-
onChange:
|
|
77
|
+
onChange: t,
|
|
78
78
|
entryRenderKey: n = "key",
|
|
79
79
|
allowNone: i = !1,
|
|
80
80
|
allowMultiple: c = !1,
|
|
81
|
-
data:
|
|
81
|
+
data: o,
|
|
82
82
|
replaceOnSingle: y,
|
|
83
83
|
className: m,
|
|
84
84
|
...u
|
|
@@ -87,91 +87,91 @@ const le = [], ne = ({
|
|
|
87
87
|
allowMultiple: c,
|
|
88
88
|
allowNone: i,
|
|
89
89
|
replaceOnSingle: y,
|
|
90
|
-
data:
|
|
90
|
+
data: o,
|
|
91
91
|
value: s,
|
|
92
|
-
onChange:
|
|
92
|
+
onChange: t
|
|
93
93
|
});
|
|
94
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ l.jsx(
|
|
95
95
|
g,
|
|
96
96
|
{
|
|
97
97
|
borderShade: 4,
|
|
98
98
|
className: p(p.B("select-button"), m),
|
|
99
99
|
...u,
|
|
100
|
-
children:
|
|
101
|
-
key:
|
|
102
|
-
onClick: () => f(
|
|
103
|
-
selected:
|
|
104
|
-
entry:
|
|
105
|
-
title:
|
|
100
|
+
children: o == null ? void 0 : o.map((r) => e({
|
|
101
|
+
key: r.key,
|
|
102
|
+
onClick: () => f(r.key),
|
|
103
|
+
selected: r.key === s,
|
|
104
|
+
entry: r,
|
|
105
|
+
title: r[n]
|
|
106
106
|
}))
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
},
|
|
109
|
+
}, re = ({
|
|
110
110
|
entry: e,
|
|
111
111
|
onClick: s,
|
|
112
|
-
selected:
|
|
112
|
+
selected: t,
|
|
113
113
|
title: n
|
|
114
|
-
}) => /* @__PURE__ */
|
|
114
|
+
}) => /* @__PURE__ */ l.jsx(
|
|
115
115
|
L,
|
|
116
116
|
{
|
|
117
117
|
onClick: s,
|
|
118
|
-
variant:
|
|
118
|
+
variant: t ? "filled" : "outlined",
|
|
119
119
|
children: n
|
|
120
120
|
},
|
|
121
121
|
e.key
|
|
122
|
-
),
|
|
122
|
+
), ae = ({
|
|
123
123
|
selected: e,
|
|
124
124
|
renderKey: s,
|
|
125
|
-
toggle:
|
|
125
|
+
toggle: t,
|
|
126
126
|
visible: n,
|
|
127
127
|
children: i,
|
|
128
128
|
...c
|
|
129
|
-
}) => /* @__PURE__ */
|
|
129
|
+
}) => /* @__PURE__ */ l.jsx(
|
|
130
130
|
L,
|
|
131
131
|
{
|
|
132
132
|
className: p.B("select-dropdown-button"),
|
|
133
|
-
onClick:
|
|
133
|
+
onClick: t,
|
|
134
134
|
variant: "outlined",
|
|
135
|
-
endIcon: /* @__PURE__ */
|
|
135
|
+
endIcon: /* @__PURE__ */ l.jsx(se, { enabledLoc: "bottom", disabledLoc: "left", enabled: n }),
|
|
136
136
|
...c,
|
|
137
137
|
children: i ?? (e == null ? void 0 : e[s])
|
|
138
138
|
}
|
|
139
|
-
), ie = B(
|
|
139
|
+
), ie = B(ae), xe = ({
|
|
140
140
|
data: e,
|
|
141
141
|
value: s,
|
|
142
|
-
columns:
|
|
142
|
+
columns: t = [],
|
|
143
143
|
children: n = ie,
|
|
144
144
|
entryRenderKey: i = "key",
|
|
145
145
|
allowNone: c = !1,
|
|
146
|
-
onChange:
|
|
146
|
+
onChange: o,
|
|
147
147
|
disabled: y,
|
|
148
148
|
hideColumnHeader: m = !0,
|
|
149
149
|
variant: u,
|
|
150
150
|
dropdownVariant: f,
|
|
151
|
-
...
|
|
151
|
+
...r
|
|
152
152
|
}) => {
|
|
153
153
|
const { close: h, visible: S, toggle: j } = H(), [k, d] = Q(
|
|
154
|
-
(e == null ? void 0 : e.find((
|
|
154
|
+
(e == null ? void 0 : e.find((a) => a.key === s)) ?? null
|
|
155
155
|
);
|
|
156
156
|
Y(() => {
|
|
157
|
-
d((e == null ? void 0 : e.find((
|
|
157
|
+
d((e == null ? void 0 : e.find((a) => a.key === s)) ?? null);
|
|
158
158
|
}, [e, s]);
|
|
159
159
|
const x = ee(
|
|
160
|
-
(
|
|
161
|
-
if (!(Array.isArray(
|
|
162
|
-
if (h(),
|
|
163
|
-
return d(null),
|
|
164
|
-
d(D.entries[0]), a
|
|
160
|
+
(a, D) => {
|
|
161
|
+
if (!(Array.isArray(a) || a === null)) {
|
|
162
|
+
if (h(), a == null)
|
|
163
|
+
return d(null), o(s);
|
|
164
|
+
d(D.entries[0]), o(a);
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
-
[
|
|
167
|
+
[o, s, h, d]
|
|
168
168
|
), b = {
|
|
169
169
|
selected: k,
|
|
170
170
|
renderKey: i,
|
|
171
171
|
toggle: j,
|
|
172
172
|
visible: S
|
|
173
173
|
};
|
|
174
|
-
return u != null && (b.variant = u), /* @__PURE__ */
|
|
174
|
+
return u != null && (b.variant = u), /* @__PURE__ */ l.jsx(
|
|
175
175
|
ne,
|
|
176
176
|
{
|
|
177
177
|
close: h,
|
|
@@ -181,11 +181,11 @@ const le = [], ne = ({
|
|
|
181
181
|
onChange: x,
|
|
182
182
|
allowMultiple: !1,
|
|
183
183
|
allowNone: c,
|
|
184
|
-
columns:
|
|
184
|
+
columns: t,
|
|
185
185
|
hideColumnHeader: m,
|
|
186
186
|
variant: f,
|
|
187
|
-
trigger: /* @__PURE__ */
|
|
188
|
-
...
|
|
187
|
+
trigger: /* @__PURE__ */ l.jsx(l.Fragment, { children: n(b) }),
|
|
188
|
+
...r
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
}, ce = [
|
|
@@ -212,20 +212,20 @@ const le = [], ne = ({
|
|
|
212
212
|
], de = ({
|
|
213
213
|
key: e,
|
|
214
214
|
entry: s,
|
|
215
|
-
onClick:
|
|
215
|
+
onClick: t,
|
|
216
216
|
selected: n
|
|
217
|
-
}) => /* @__PURE__ */
|
|
217
|
+
}) => /* @__PURE__ */ l.jsx(
|
|
218
218
|
L,
|
|
219
219
|
{
|
|
220
220
|
variant: n ? "filled" : "outlined",
|
|
221
|
-
onClick:
|
|
221
|
+
onClick: t,
|
|
222
222
|
children: s.label
|
|
223
223
|
},
|
|
224
224
|
e
|
|
225
225
|
), me = ({
|
|
226
226
|
children: e = de,
|
|
227
227
|
...s
|
|
228
|
-
}) => /* @__PURE__ */
|
|
228
|
+
}) => /* @__PURE__ */ l.jsx(oe, { ...s, data: ce, children: e }), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
229
229
|
__proto__: null,
|
|
230
230
|
ComponentSizeLevels: E,
|
|
231
231
|
CoreDateTime: K,
|
|
@@ -253,7 +253,7 @@ export {
|
|
|
253
253
|
ne as C,
|
|
254
254
|
xe as D,
|
|
255
255
|
me as S,
|
|
256
|
-
|
|
256
|
+
ae as a,
|
|
257
257
|
ie as d,
|
|
258
258
|
Ce as e
|
|
259
259
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./Toggle-GvJ5CkHq.cjs"),M=require("./jsx-runtime-Cek9Ww4S.cjs"),u=require("react");require("./aggregator-CU9VgdUJ.cjs");const o=require("./css-4MXuPP5v.cjs");require("./Pack-uflj5a28.cjs");const f=require("./Text-BvzGtwCB.cjs"),S=t=>{const{listen:i}=e.useContext$1(),[a,l]=u.useState([]);return u.useEffect(()=>i(({next:[r]})=>l(r??[])),[i,l]),M.jsxRuntimeExports.jsx(e.Text,{...t,children:a.join(" ")})},E=({onDrag:t,triggers:i=[["MouseLeft"],["MouseRight"]],bound:a,loose:l=!1})=>{const r=u.useRef(null),g=u.useRef(o.q.ZERO),d=u.useCallback(s=>{const n=o.q.construct(s);if(r.current===null)return;const{triggers:c}=r.current;t({box:o.Eo.construct(g.current,n),cursor:n,triggers:c,stage:"during"})},[t]),m=u.useCallback(s=>{const{stage:n,cursor:c}=s;n==="start"?(t({box:o.Eo.construct(c),...s}),window.addEventListener("mousemove",d),r.current=s,g.current=c):n==="end"&&r.current!=null&&(t({box:o.Eo.construct(g.current,c),...s}),window.removeEventListener("mousemove",d),r.current=null,g.current=o.q.ZERO)},[t]);e.use$1({triggers:i,callback:m,region:a,loose:l})},x=Object.freeze(Object.defineProperty({__proto__:null,ALPHANUMERIC_KEYS:e.ALPHANUMERIC_KEYS,ALPHANUMERIC_KEYS_SET:e.ALPHANUMERIC_KEYS_SET,KEYS:e.KEYS,MOUSE_KEYS:e.MOUSE_KEYS,Provider:e.Provider$1,Status:S,Text:f.Text,compareModeConfigs:e.compareModeConfigs,determineMode:e.determineMode,diff:e.diff,eventKey:e.eventKey,filter:e.filter,flattenConfig:e.flattenConfig,keyZ:e.keyZ,keyboardKey:e.keyboardKey,match:e.match,matchCallback:e.matchCallback,mouseKey:e.mouseKey,mouseKeyZ:e.mouseKeyZ,purge:e.purge,purgeMouse:e.purgeMouse,toSymbols:f.toSymbols,triggerZ:e.triggerZ,use:e.use$1,useContext:e.useContext$1,useDrag:E,useFlattenedMemoConfig:e.useFlattenedMemoConfig,useHeld:e.useHeld,useHeldRef:e.useHeldRef},Symbol.toStringTag,{value:"Module"}));exports.external=x;exports.useDrag=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-CU9VgdUJ.cjs"),c=require("react"),S=require("./Pack-uflj5a28.cjs"),a=require("./Toggle-GvJ5CkHq.cjs"),o=require("./css-4MXuPP5v.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(E,{index:t,level:r,divided:e,children:n},t))})},E=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,key:C,...h}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...h},C??s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},R=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},g=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:R,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./aggregator-
|
|
1
|
+
"use strict";const r=require("./aggregator-CU9VgdUJ.cjs"),e=require("./Toggle-GvJ5CkHq.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,get Theming(){return t},themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:e.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Pack-
|
|
1
|
+
"use strict";const e=require("./Pack-uflj5a28.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-GvJ5CkHq.cjs"),s=require("./jsx-runtime-Cek9Ww4S.cjs"),j=require("./aggregator-CU9VgdUJ.cjs"),h=require("react"),l=require("./css-4MXuPP5v.cjs"),E=require("./Pack-uflj5a28.cjs"),C=({value:r,onChange:n,onBlur:e,onlyChangeOnBlur:a,...d})=>{const[m,c]=h.useState(null),x=(i,p=!1)=>{let u=i.toString();c(u);let o=new j.m(i,"UTC");u.length<23&&(u+=".000"),o=o.add(BigInt(j.m.now().date().getTimezoneOffset()-o.date().getTimezoneOffset())*j.y.MINUTE.valueOf());let T=!1;try{T=o.fString("ISO","local").slice(0,-1)===u}catch(y){console.error(y)}T&&!a&&(n(Number(o.valueOf())),c(null)),p&&(T&&n(Number(o.valueOf())),c(null))},g=i=>{x(i.target.value,!0),c(null),e==null||e(i)},S=i=>{a&&i.key==="Enter"&&i.currentTarget.blur()},f=new j.m(r,"UTC").fString("ISO","local").slice(0,-1);return s.jsxRuntimeExports.jsx(t.Text$1,{type:"datetime-local",onBlur:g,required:!1,onKeyDown:S,value:m??f,onChange:x,...d})},R=({className:r,variant:n="error",...e})=>s.jsxRuntimeExports.jsx(t.Text,{className:l.CSS(l.CSS.B("input-help-text"),l.CSS.BM("input-help-text",n),r),level:"small",...e}),D=({className:r,required:n=!1,children:e,...a})=>s.jsxRuntimeExports.jsxs("label",{className:l.CSS(l.CSS.B("input-label"),r),...a,children:[e," ",n&&s.jsxRuntimeExports.jsx("span",{className:l.CSS.B("required-indicator"),children:"*"})]}),v=(r,n="x")=>r??(l.g.construct(n)==="y"?"stretch":"center"),b=({label:r,showLabel:n=!0,helpText:e,direction:a="y",className:d,children:m,required:c,align:x,size:g="small",padHelpText:S=!1,helpTextVariant:f,showHelpText:i=!0,...p})=>{let u;return i===!1&&n===!1?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:m}):(a==="x"?u=s.jsxRuntimeExports.jsxs(E.Space,{direction:"y",size:"small",children:[m,(S||e!=null&&e.length>0)&&s.jsxRuntimeExports.jsx(R,{variant:f,children:e})]}):u=s.jsxRuntimeExports.jsxs(E.Space,{direction:"y",size:1/3,children:[m,(S||e!=null&&e.length>0)&&s.jsxRuntimeExports.jsx(R,{variant:f,children:e})]}),s.jsxRuntimeExports.jsxs(E.Space,{className:l.CSS(l.CSS.B("input-item"),d),direction:a,size:g,align:v(x,a),...p,children:[n&&s.jsxRuntimeExports.jsx(D,{required:c,children:r}),u]}))},N=Object.freeze(Object.defineProperty({__proto__:null,Date:t.Date,DateTime:C,DragButton:t.DragButton,HelpText:R,Item:b,Label:D,Numeric:t.Numeric,Switch:t.Switch$1,Text:t.Text$1,TextArea:t.TextArea,Time:t.Time,combineDateAndTimeValue:t.combineDateAndTimeValue,useDate:t.useDate,useTime:t.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=b;exports.external=N;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-
|
|
1
|
+
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-CxtceW7N.js";
|
|
2
2
|
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
ALIGNMENTS: e,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { A as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { S as m } from "./Pack-
|
|
5
|
-
import { I as
|
|
6
|
-
import { C as a } from "./css-
|
|
7
|
-
const x =
|
|
2
|
+
import { A as v, h as d } from "./aggregator-B36SA-20.js";
|
|
3
|
+
import { createContext as h, useContext as j, isValidElement as f, Fragment as B } from "react";
|
|
4
|
+
import { S as m } from "./Pack-CxtceW7N.js";
|
|
5
|
+
import { I as C, m as S, B as b, ah as z } from "./Toggle-CqrGlCW8.js";
|
|
6
|
+
import { C as a } from "./css-C8qHWSpT.js";
|
|
7
|
+
const x = h({
|
|
8
8
|
divided: !1,
|
|
9
9
|
level: "h1"
|
|
10
10
|
}), i = () => j(x), g = ({
|
|
@@ -28,7 +28,7 @@ const x = v({
|
|
|
28
28
|
...t,
|
|
29
29
|
children: s
|
|
30
30
|
}
|
|
31
|
-
) }),
|
|
31
|
+
) }), y = ({ children: s = [] }) => {
|
|
32
32
|
const { level: r, divided: e } = i();
|
|
33
33
|
return /* @__PURE__ */ n.jsx(
|
|
34
34
|
m,
|
|
@@ -37,27 +37,27 @@ const x = v({
|
|
|
37
37
|
size: "small",
|
|
38
38
|
align: "center",
|
|
39
39
|
className: a.BE("header", "actions"),
|
|
40
|
-
children:
|
|
40
|
+
children: v(s).map((o, t) => /* @__PURE__ */ n.jsx(A, { index: t, level: r, divided: e, children: o }, t))
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}, A = ({ index: s, level: r, children: e, divided: o }) => {
|
|
44
44
|
let t = e;
|
|
45
45
|
if (!f(e)) {
|
|
46
|
-
const { onClick: l,
|
|
46
|
+
const { onClick: l, key: p, ...u } = e;
|
|
47
47
|
t = /* @__PURE__ */ n.jsx(
|
|
48
|
-
|
|
48
|
+
C,
|
|
49
49
|
{
|
|
50
50
|
onClick: (c) => {
|
|
51
51
|
c.stopPropagation(), c.preventDefault(), l == null || l(c);
|
|
52
52
|
},
|
|
53
53
|
size: d[r],
|
|
54
|
-
...
|
|
54
|
+
...u
|
|
55
55
|
},
|
|
56
|
-
s
|
|
56
|
+
p ?? s
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
return /* @__PURE__ */ n.jsxs(
|
|
60
|
-
o && /* @__PURE__ */ n.jsx(
|
|
59
|
+
return /* @__PURE__ */ n.jsxs(B, { children: [
|
|
60
|
+
o && /* @__PURE__ */ n.jsx(S, {}),
|
|
61
61
|
t
|
|
62
62
|
] }, s);
|
|
63
63
|
}, E = ({
|
|
@@ -68,7 +68,7 @@ const x = v({
|
|
|
68
68
|
}) => {
|
|
69
69
|
const { level: t } = i();
|
|
70
70
|
return /* @__PURE__ */ n.jsx(
|
|
71
|
-
|
|
71
|
+
b,
|
|
72
72
|
{
|
|
73
73
|
variant: "text",
|
|
74
74
|
size: d[t],
|
|
@@ -86,7 +86,7 @@ const x = v({
|
|
|
86
86
|
}) => {
|
|
87
87
|
const { level: o, divided: t } = i();
|
|
88
88
|
return /* @__PURE__ */ n.jsx(
|
|
89
|
-
|
|
89
|
+
z,
|
|
90
90
|
{
|
|
91
91
|
className: a(a.BE("header", "text"), s),
|
|
92
92
|
level: r ?? o,
|
|
@@ -95,17 +95,17 @@ const x = v({
|
|
|
95
95
|
...e
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
|
-
},
|
|
98
|
+
}, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
99
99
|
__proto__: null,
|
|
100
|
-
Actions:
|
|
100
|
+
Actions: y,
|
|
101
101
|
ButtonTitle: E,
|
|
102
102
|
Header: g,
|
|
103
103
|
Title: N,
|
|
104
104
|
useContext: i
|
|
105
105
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
y as A,
|
|
108
108
|
E as B,
|
|
109
109
|
g as H,
|
|
110
|
-
|
|
110
|
+
M as e
|
|
111
111
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-GvJ5CkHq.cjs"),e=require("./Item-CPt4Umh0.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_SELECTED:t.CONTEXT_SELECTED,CONTEXT_TARGET:t.CONTEXT_TARGET,ContextMenu:t.ContextMenu,CoreItem:e.CoreItem,Divider:e.Divider,Item:e.Item,ItemIcon:e.ItemIcon,ItemLink:e.ItemLink,Menu:e.Menu,MenuContext:e.MenuContext,useContextMenu:t.useContextMenu,useMenuContext:e.useMenuContext},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./Toggle-GvJ5CkHq.cjs"),o=require("./Link-mthAKDPf.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { F as re, A as k,
|
|
1
|
+
import { F as re, A as k, g as ae, n as se } from "./aggregator-B36SA-20.js";
|
|
2
2
|
import { j as N } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { a0 as le, a1 as oe,
|
|
3
|
+
import { a0 as le, a1 as oe, Q as ie, _ as ce, d as de, C as fe, a2 as ue, a3 as he, a4 as pe, V as me, B as ge, a5 as W, a6 as xe, a7 as ye, a8 as Ce, a9 as Ee } from "./Toggle-CqrGlCW8.js";
|
|
4
4
|
import { memo as Ne, useState as be, useCallback as b, useMemo as Te } from "react";
|
|
5
|
-
import { L as _e } from "./Link-
|
|
6
|
-
import { A as ve } from "./Animated-
|
|
7
|
-
import { C as u } from "./css-
|
|
8
|
-
import "./Pack-
|
|
9
|
-
import { L as Ie } from "./List-
|
|
10
|
-
const
|
|
5
|
+
import { L as _e } from "./Link-my2OWRXu.js";
|
|
6
|
+
import { A as ve } from "./Animated-BJ0Om9zo.js";
|
|
7
|
+
import { C as u } from "./css-C8qHWSpT.js";
|
|
8
|
+
import "./Pack-CxtceW7N.js";
|
|
9
|
+
import { L as Ie } from "./List-B1BAwLaq.js";
|
|
10
|
+
const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
11
11
|
t && e.sort((n, a) => re.stringsWithNumbers(n.name, a.name));
|
|
12
12
|
let r = !1;
|
|
13
13
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -15,7 +15,7 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
15
15
|
a.forcePosition != null && n !== a.forcePosition && (r = !0, e.splice(n, 1), e.splice(a.forcePosition, 0, a));
|
|
16
16
|
}
|
|
17
17
|
return r ? H(e, !1) : e;
|
|
18
|
-
},
|
|
18
|
+
}, K = ({
|
|
19
19
|
nodes: e,
|
|
20
20
|
expanded: t,
|
|
21
21
|
depth: r = 0,
|
|
@@ -24,15 +24,15 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
24
24
|
r === 0 && n && (e = e.sort((s, o) => s.name.localeCompare(o.name)));
|
|
25
25
|
const a = [];
|
|
26
26
|
return e.forEach((s, o) => {
|
|
27
|
-
const i =
|
|
27
|
+
const i = X(s, t);
|
|
28
28
|
a.push({ ...s, depth: r, expanded: i, index: o }), i && s.children != null && (s.children = H(s.children, n), a.push(
|
|
29
|
-
...
|
|
29
|
+
...K({ nodes: s.children, expanded: t, depth: r + 1, sort: n })
|
|
30
30
|
));
|
|
31
31
|
}), a;
|
|
32
32
|
}, Se = ({ tree: e, destination: t, keys: r }) => (r = k(r), r.forEach((n) => {
|
|
33
33
|
const a = T({ tree: e, key: n });
|
|
34
|
-
a != null && (
|
|
35
|
-
}), e),
|
|
34
|
+
a != null && (Y({ tree: e, keys: n }), z({ tree: e, destination: t, additions: a }));
|
|
35
|
+
}), e), Y = ({ tree: e, keys: t }) => {
|
|
36
36
|
t = k(t);
|
|
37
37
|
const r = e.map((n) => n.key);
|
|
38
38
|
return t.forEach((n) => {
|
|
@@ -44,7 +44,7 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
44
44
|
o != null && (o.children = (s = o.children) == null ? void 0 : s.filter((i) => i.key !== n));
|
|
45
45
|
}
|
|
46
46
|
}), e;
|
|
47
|
-
},
|
|
47
|
+
}, z = ({ tree: e, destination: t, additions: r }) => {
|
|
48
48
|
r = k(r);
|
|
49
49
|
const n = T({ tree: e, key: t });
|
|
50
50
|
if (n == null) throw new Error(`Could not find node with key ${t}`);
|
|
@@ -121,10 +121,10 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
121
121
|
if (n != null) return n;
|
|
122
122
|
}
|
|
123
123
|
return null;
|
|
124
|
-
},
|
|
124
|
+
}, q = (e) => e.map((t) => ({ ...t, children: q(t.children ?? []) })), J = (...e) => {
|
|
125
125
|
const t = [];
|
|
126
126
|
return e.forEach((r) => {
|
|
127
|
-
t.push(r), r.children != null && t.push(...
|
|
127
|
+
t.push(r), r.children != null && t.push(...J(...r.children));
|
|
128
128
|
}), t;
|
|
129
129
|
}, M = "tree-item", Pe = [["Shift"]], Re = (e) => {
|
|
130
130
|
const {
|
|
@@ -138,7 +138,7 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
138
138
|
initial: [],
|
|
139
139
|
value: s,
|
|
140
140
|
onChange: o
|
|
141
|
-
}), v = Te(() =>
|
|
141
|
+
}), v = Te(() => K({ nodes: r, expanded: i, sort: a }), [r, i, a]), I = pe(v), L = me({ triggers: Pe }), R = b(
|
|
142
142
|
(f, { clicked: d }) => {
|
|
143
143
|
_(f);
|
|
144
144
|
const g = I.current.find((E) => E.key === d);
|
|
@@ -168,7 +168,7 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
168
168
|
nodes: v,
|
|
169
169
|
clearExpanded: S
|
|
170
170
|
};
|
|
171
|
-
},
|
|
171
|
+
}, G = Ne(
|
|
172
172
|
({
|
|
173
173
|
entry: e,
|
|
174
174
|
selected: t,
|
|
@@ -198,7 +198,7 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
198
198
|
), L != null && w.push(L);
|
|
199
199
|
const C = [];
|
|
200
200
|
i && C.push(/* @__PURE__ */ N.jsx(ie.Loading, { className: u.B("loading-indicator") }));
|
|
201
|
-
const [E, O] = be(!1), { startDrag:
|
|
201
|
+
const [E, O] = be(!1), { startDrag: U, ...Z } = ce({
|
|
202
202
|
type: "Tree.Item",
|
|
203
203
|
key: c,
|
|
204
204
|
canDrop: b(({ items: p, source: A }) => {
|
|
@@ -212,16 +212,16 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
212
212
|
(m) => p.includes(m.key)
|
|
213
213
|
);
|
|
214
214
|
if (p.includes(c)) {
|
|
215
|
-
const m = A.map(({ key: P, haulItems: B, depth:
|
|
216
|
-
{ type: M, key: P, data: { depth:
|
|
217
|
-
...(B == null ? void 0 : B.map((
|
|
218
|
-
...
|
|
219
|
-
data: { ...
|
|
215
|
+
const m = A.map(({ key: P, haulItems: B, depth: Q }) => [
|
|
216
|
+
{ type: M, key: P, data: { depth: Q } },
|
|
217
|
+
...(B == null ? void 0 : B.map((V) => ({
|
|
218
|
+
...V,
|
|
219
|
+
data: { ...V.data, depth: Q }
|
|
220
220
|
}))) ?? []
|
|
221
221
|
]).flat();
|
|
222
|
-
return
|
|
222
|
+
return U(m, (P) => s == null ? void 0 : s(c, P));
|
|
223
223
|
}
|
|
224
|
-
|
|
224
|
+
U(
|
|
225
225
|
[
|
|
226
226
|
{ type: M, key: c, data: { depth: h } },
|
|
227
227
|
...f.map((m) => ({ ...m, data: { ...m.data, depth: h } }))
|
|
@@ -276,8 +276,8 @@ const Y = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
276
276
|
) });
|
|
277
277
|
}
|
|
278
278
|
);
|
|
279
|
-
|
|
280
|
-
const $e = Ee(
|
|
279
|
+
G.displayName = "Tree.Item";
|
|
280
|
+
const $e = Ee(G), Oe = ({
|
|
281
281
|
nodes: e,
|
|
282
282
|
selected: t = [],
|
|
283
283
|
onSelect: r,
|
|
@@ -298,7 +298,7 @@ const $e = Ee(K), Oe = ({
|
|
|
298
298
|
loading: j,
|
|
299
299
|
...S
|
|
300
300
|
}) => {
|
|
301
|
-
const f = v ?
|
|
301
|
+
const f = v ? W.Virtual : W;
|
|
302
302
|
return /* @__PURE__ */ N.jsx(Ie, { data: e, emptyContent: h, children: /* @__PURE__ */ N.jsx(
|
|
303
303
|
xe,
|
|
304
304
|
{
|
|
@@ -326,22 +326,22 @@ const $e = Ee(K), Oe = ({
|
|
|
326
326
|
)
|
|
327
327
|
}
|
|
328
328
|
) });
|
|
329
|
-
}, Ae = (e, t) => ye(`text-${e}`, t), Be = (e) => Ce(`text-${e}`),
|
|
329
|
+
}, Ae = (e, t) => ye(`text-${e}`, t), Be = (e) => Ce(`text-${e}`), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
330
330
|
__proto__: null,
|
|
331
|
-
DefaultItem:
|
|
331
|
+
DefaultItem: G,
|
|
332
332
|
HAUL_TYPE: M,
|
|
333
333
|
Tree: Oe,
|
|
334
334
|
asyncRename: Be,
|
|
335
|
-
deepCopy:
|
|
335
|
+
deepCopy: q,
|
|
336
336
|
findNode: T,
|
|
337
337
|
findNodeParent: $,
|
|
338
338
|
findNodes: je,
|
|
339
|
-
flatten:
|
|
340
|
-
getDescendants:
|
|
339
|
+
flatten: K,
|
|
340
|
+
getDescendants: J,
|
|
341
341
|
moveNode: Se,
|
|
342
|
-
removeNode:
|
|
343
|
-
setNode:
|
|
344
|
-
shouldExpand:
|
|
342
|
+
removeNode: Y,
|
|
343
|
+
setNode: z,
|
|
344
|
+
shouldExpand: X,
|
|
345
345
|
sortAndSplice: H,
|
|
346
346
|
startRenaming: Ae,
|
|
347
347
|
updateNode: we,
|
|
@@ -349,5 +349,5 @@ const $e = Ee(K), Oe = ({
|
|
|
349
349
|
use: Re
|
|
350
350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
351
351
|
export {
|
|
352
|
-
|
|
352
|
+
We as e
|
|
353
353
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, d as t, e as o, f as a } from "./Toggle-
|
|
2
|
-
import { C as n, D as s, I as r, a as u, b as C, M as m, c as T, u as i } from "./Item-
|
|
1
|
+
import { C as e, d as t, e as o, f as a } from "./Toggle-CqrGlCW8.js";
|
|
2
|
+
import { C as n, D as s, I as r, a as u, b as C, M as m, c as T, u as i } from "./Item-JN1-gBEw.js";
|
|
3
3
|
const x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
CONTEXT_SELECTED: e,
|