@synnaxlabs/pluto 0.33.1 → 0.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Animated-CmYpn592.cjs → Animated-C7iWxEah.cjs} +1 -1
- package/dist/{Animated-BJ0Om9zo.js → Animated-VpxahF8t.js} +2 -2
- package/dist/{Item-CPt4Umh0.cjs → Item-C1_OE8IF.cjs} +1 -1
- package/dist/{Item-JN1-gBEw.js → Item-Dpra-3n6.js} +5 -5
- package/dist/{Keyboard-BwzZPKjx.cjs → Keyboard-BBOcinRN.cjs} +1 -1
- package/dist/{Keyboard-CBvQle7r.js → Keyboard-CpJQuX-J.js} +2 -2
- package/dist/LinePlot-Bwz2fEc0.cjs +34 -0
- package/dist/LinePlot-DHy70Cb7.js +6256 -0
- package/dist/{Link-my2OWRXu.js → Link-Ctlz9WUQ.js} +1 -1
- package/dist/{Link-mthAKDPf.cjs → Link-Cxj-3A6p.cjs} +1 -1
- package/dist/{List-C3bjnukf.cjs → List-CcTL6wlO.cjs} +1 -1
- package/dist/{List-B1BAwLaq.js → List-DF0kzXpr.js} +2 -2
- package/dist/{Pack-CxtceW7N.js → Pack-BAJwD-n2.js} +1 -1
- package/dist/{Pack-uflj5a28.cjs → Pack-DBtBeGnj.cjs} +1 -1
- package/dist/{Text-SLn1Qwzw.js → Text-D5o4o3OI.js} +5 -5
- package/dist/{Text-BvzGtwCB.cjs → Text-GGA7QNwA.cjs} +1 -1
- package/dist/{Toggle-CqrGlCW8.js → Toggle-CTjPdq8o.js} +953 -929
- package/dist/Toggle-Dim0E2D2.cjs +143 -0
- package/dist/{Video-DKosAU7v.cjs → Video-B3geSdOZ.cjs} +1 -1
- package/dist/{Video-o34bcpwh.js → Video-CXccd2Jl.js} +1 -1
- package/dist/{aggregator-CU9VgdUJ.cjs → aggregator-D6Mmsfj4.cjs} +21 -21
- package/dist/{aggregator-B36SA-20.js → aggregator-QFq5XDjf.js} +997 -961
- 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 → css-CvXvQo39.cjs} +1 -1
- package/dist/{css-C8qHWSpT.js → css-DqBChhqm.js} +27 -5
- 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 +5 -5
- package/dist/{external-GxvuofB_.js → external-BNMsCMKL.js} +11 -11
- package/dist/{external-BLnPpmeS.cjs → external-BPnNv3RZ.cjs} +1 -1
- package/dist/{external-B5jyXhgU.cjs → external-BZpriFW_.cjs} +1 -1
- package/dist/{external-BvoBhRW8.cjs → external-Bksh4jhY.cjs} +1 -1
- package/dist/{external-euVgbl49.js → external-Bm3VKQxs.js} +4 -4
- package/dist/{external-D6YTf7Kx.cjs → external-C2YHV6Dz.cjs} +1 -1
- package/dist/{external-BT_oycNI.js → external-CI2s6wrc.js} +90 -88
- package/dist/external-CK8msIo3.js +96 -0
- package/dist/{external-DYwzKoQ6.js → external-CKp_fJJC.js} +2 -2
- package/dist/{external-Cb_NFNiX.cjs → external-CKuO-iHz.cjs} +1 -1
- package/dist/{external-Crturtt-.cjs → external-CUwDGrme.cjs} +1 -1
- package/dist/{external-B0o5Z8wI.js → external-CfOulkkd.js} +5 -5
- package/dist/{external-CPTY4-IY.cjs → external-ClRKAhnQ.cjs} +1 -1
- package/dist/{external-BKx-fjB8.js → external-Ct326ec4.js} +2 -2
- package/dist/{external-BTFW7AEo.js → external-DT1bMgJw.js} +2 -2
- package/dist/{external-C-xh9EwI.cjs → external-DYc6fMZC.cjs} +1 -1
- package/dist/external-Dhg4bEfF.cjs +1 -0
- package/dist/{external-Cewuz6Gm.js → external-DmLFwKtu.js} +4 -4
- package/dist/{external-DqwISR2q.js → external-DyAGPLil.js} +5 -5
- package/dist/{external-Cc1Bqjmm.js → external-EHlrAzYc.js} +1 -1
- package/dist/external-X9NMQ2Zh.cjs +1 -0
- package/dist/{external-CLKqHc4s.cjs → external-aTGyndBd.cjs} +1 -1
- package/dist/{external-BBGGwc9H.cjs → external-e143l3cy.cjs} +1 -1
- package/dist/{external-DVhxMa2A.js → external-mRJloDDi.js} +7 -7
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +33 -1
- package/dist/index.js +9765 -4790
- 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/color/Swatch/Swatch.d.ts +2 -1
- package/dist/src/color/Swatch/Swatch.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts +2 -0
- package/dist/src/text/core/types.d.ts.map +1 -1
- package/dist/src/theming/core/fontString.d.ts +7 -1
- package/dist/src/theming/core/fontString.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts +1 -0
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +0 -2
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/render/loop.d.ts +7 -4
- package/dist/src/vis/render/loop.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +2 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +11 -9
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +1 -0
- 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-DbfWaeE2.cjs → units-6W_8ukD-.cjs} +1 -1
- package/dist/{units-CmWU_YzJ.js → units-BHSMvrYX.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +3 -3
- package/dist/LinePlot-CgkhTRJT.js +0 -11256
- package/dist/LinePlot-oIHuM9Jz.cjs +0 -66
- package/dist/Toggle-GvJ5CkHq.cjs +0 -143
- package/dist/external-B7W7NBGN.cjs +0 -1
- package/dist/external-BQMz5fJB.cjs +0 -1
- package/dist/external-f7xyI5mJ.js +0 -94
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { C as E, L as A, h as
|
|
2
|
-
import { aa as
|
|
3
|
-
import { K as
|
|
1
|
+
import { C as E, L as A, h as v, i as M, j as T, k as N, s as P, m as _ } from "./aggregator-QFq5XDjf.js";
|
|
2
|
+
import { aa as w, ab as C, a5 as O, a6 as z, $ as H, a9 as B, ac as K, B as L, X, ad as $, ae as F, af as I, ag as R, a2 as U, h as V, i as Z, ah as W, a8 as q, a7 as G, ai as J, aj as Q } from "./Toggle-CTjPdq8o.js";
|
|
3
|
+
import { K as Y } from "./Keyboard-CpJQuX-J.js";
|
|
4
4
|
import { j as l } from "./jsx-runtime-B6kdoens.js";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { P as g } from "./Pack-
|
|
7
|
-
import { A as
|
|
8
|
-
import { C as p } from "./css-
|
|
9
|
-
import { L as
|
|
10
|
-
const
|
|
5
|
+
import { useState as ee, useEffect as se, useCallback as le } from "react";
|
|
6
|
+
import { P as g } from "./Pack-BAJwD-n2.js";
|
|
7
|
+
import { A as ne } from "./Animated-VpxahF8t.js";
|
|
8
|
+
import { C as p } from "./css-DqBChhqm.js";
|
|
9
|
+
import { L as te } from "./List-DF0kzXpr.js";
|
|
10
|
+
const oe = [], re = ({
|
|
11
11
|
data: e,
|
|
12
12
|
emptyContent: s,
|
|
13
|
-
value:
|
|
14
|
-
onChange:
|
|
13
|
+
value: n,
|
|
14
|
+
onChange: t,
|
|
15
15
|
allowMultiple: i,
|
|
16
16
|
allowNone: c,
|
|
17
17
|
hideColumnHeader: o = !1,
|
|
18
|
-
columns: y =
|
|
18
|
+
columns: y = oe,
|
|
19
19
|
visible: m,
|
|
20
20
|
itemHeight: u = C.itemHeight,
|
|
21
21
|
listItem: f = B(C.Item),
|
|
22
22
|
replaceOnSingle: r,
|
|
23
|
-
omit:
|
|
23
|
+
omit: b,
|
|
24
24
|
autoSelectOnNone: S,
|
|
25
25
|
trigger: j,
|
|
26
26
|
extraDialogContent: k,
|
|
27
27
|
variant: d = "connected",
|
|
28
28
|
...x
|
|
29
29
|
}) => {
|
|
30
|
-
let
|
|
30
|
+
let h = /* @__PURE__ */ l.jsxs(w, { disabled: !m, children: [
|
|
31
31
|
k,
|
|
32
32
|
/* @__PURE__ */ l.jsx(
|
|
33
33
|
C.Header,
|
|
34
34
|
{
|
|
35
35
|
hide: o || f != null,
|
|
36
36
|
columns: y,
|
|
37
|
-
children: /* @__PURE__ */ l.jsx(
|
|
37
|
+
children: /* @__PURE__ */ l.jsx(O.Virtual, { itemHeight: u, children: f })
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] });
|
|
41
|
-
return d !== "connected" && (
|
|
41
|
+
return d !== "connected" && (h = /* @__PURE__ */ l.jsx(
|
|
42
42
|
g,
|
|
43
43
|
{
|
|
44
44
|
direction: "y",
|
|
45
45
|
borderShade: 4,
|
|
46
46
|
className: p.B("select-dialog-content"),
|
|
47
|
-
children:
|
|
47
|
+
children: h
|
|
48
48
|
}
|
|
49
|
-
)), /* @__PURE__ */ l.jsx(
|
|
50
|
-
|
|
49
|
+
)), /* @__PURE__ */ l.jsx(te, { data: e, emptyContent: s, omit: b, children: /* @__PURE__ */ l.jsx(
|
|
50
|
+
z,
|
|
51
51
|
{
|
|
52
|
-
value:
|
|
53
|
-
onChange:
|
|
52
|
+
value: n,
|
|
53
|
+
onChange: t,
|
|
54
54
|
allowMultiple: i,
|
|
55
55
|
allowNone: c,
|
|
56
56
|
replaceOnSingle: r,
|
|
57
57
|
autoSelectOnNone: S,
|
|
58
58
|
children: /* @__PURE__ */ l.jsxs(
|
|
59
|
-
|
|
59
|
+
H,
|
|
60
60
|
{
|
|
61
61
|
visible: m,
|
|
62
62
|
className: p.B("select"),
|
|
@@ -65,17 +65,17 @@ const te = [], ne = ({
|
|
|
65
65
|
...x,
|
|
66
66
|
children: [
|
|
67
67
|
j,
|
|
68
|
-
|
|
68
|
+
h
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
}
|
|
73
73
|
) });
|
|
74
|
-
},
|
|
75
|
-
children: e =
|
|
74
|
+
}, ae = ({
|
|
75
|
+
children: e = ie,
|
|
76
76
|
value: s,
|
|
77
|
-
onChange:
|
|
78
|
-
entryRenderKey:
|
|
77
|
+
onChange: n,
|
|
78
|
+
entryRenderKey: t = "key",
|
|
79
79
|
allowNone: i = !1,
|
|
80
80
|
allowMultiple: c = !1,
|
|
81
81
|
data: o,
|
|
@@ -83,13 +83,13 @@ const te = [], ne = ({
|
|
|
83
83
|
className: m,
|
|
84
84
|
...u
|
|
85
85
|
}) => {
|
|
86
|
-
const { onSelect: f } =
|
|
86
|
+
const { onSelect: f } = K({
|
|
87
87
|
allowMultiple: c,
|
|
88
88
|
allowNone: i,
|
|
89
89
|
replaceOnSingle: y,
|
|
90
90
|
data: o,
|
|
91
91
|
value: s,
|
|
92
|
-
onChange:
|
|
92
|
+
onChange: n
|
|
93
93
|
});
|
|
94
94
|
return /* @__PURE__ */ l.jsx(
|
|
95
95
|
g,
|
|
@@ -102,45 +102,45 @@ const te = [], ne = ({
|
|
|
102
102
|
onClick: () => f(r.key),
|
|
103
103
|
selected: r.key === s,
|
|
104
104
|
entry: r,
|
|
105
|
-
title: r[
|
|
105
|
+
title: r[t]
|
|
106
106
|
}))
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
},
|
|
109
|
+
}, ie = ({
|
|
110
110
|
entry: e,
|
|
111
111
|
onClick: s,
|
|
112
|
-
selected:
|
|
113
|
-
title:
|
|
112
|
+
selected: n,
|
|
113
|
+
title: t
|
|
114
114
|
}) => /* @__PURE__ */ l.jsx(
|
|
115
115
|
L,
|
|
116
116
|
{
|
|
117
117
|
onClick: s,
|
|
118
|
-
variant:
|
|
119
|
-
children:
|
|
118
|
+
variant: n ? "filled" : "outlined",
|
|
119
|
+
children: t
|
|
120
120
|
},
|
|
121
121
|
e.key
|
|
122
|
-
),
|
|
122
|
+
), ce = ({
|
|
123
123
|
selected: e,
|
|
124
124
|
renderKey: s,
|
|
125
|
-
toggle:
|
|
126
|
-
visible:
|
|
125
|
+
toggle: n,
|
|
126
|
+
visible: t,
|
|
127
127
|
children: i,
|
|
128
128
|
...c
|
|
129
129
|
}) => /* @__PURE__ */ l.jsx(
|
|
130
130
|
L,
|
|
131
131
|
{
|
|
132
132
|
className: p.B("select-dropdown-button"),
|
|
133
|
-
onClick:
|
|
133
|
+
onClick: n,
|
|
134
134
|
variant: "outlined",
|
|
135
|
-
endIcon: /* @__PURE__ */ l.jsx(
|
|
135
|
+
endIcon: /* @__PURE__ */ l.jsx(ne, { enabledLoc: "bottom", disabledLoc: "left", enabled: t }),
|
|
136
136
|
...c,
|
|
137
137
|
children: i ?? (e == null ? void 0 : e[s])
|
|
138
138
|
}
|
|
139
|
-
),
|
|
139
|
+
), de = B(ce), Le = ({
|
|
140
140
|
data: e,
|
|
141
141
|
value: s,
|
|
142
|
-
columns:
|
|
143
|
-
children:
|
|
142
|
+
columns: n = [],
|
|
143
|
+
children: t = de,
|
|
144
144
|
entryRenderKey: i = "key",
|
|
145
145
|
allowNone: c = !1,
|
|
146
146
|
onChange: o,
|
|
@@ -150,45 +150,45 @@ const te = [], ne = ({
|
|
|
150
150
|
dropdownVariant: f,
|
|
151
151
|
...r
|
|
152
152
|
}) => {
|
|
153
|
-
const { close:
|
|
153
|
+
const { close: b, visible: S, toggle: j } = X(), [k, d] = ee(
|
|
154
154
|
(e == null ? void 0 : e.find((a) => a.key === s)) ?? null
|
|
155
155
|
);
|
|
156
|
-
|
|
156
|
+
se(() => {
|
|
157
157
|
d((e == null ? void 0 : e.find((a) => a.key === s)) ?? null);
|
|
158
158
|
}, [e, s]);
|
|
159
|
-
const x =
|
|
159
|
+
const x = le(
|
|
160
160
|
(a, D) => {
|
|
161
161
|
if (!(Array.isArray(a) || a === null)) {
|
|
162
|
-
if (
|
|
162
|
+
if (b(), a == null)
|
|
163
163
|
return d(null), o(s);
|
|
164
164
|
d(D.entries[0]), o(a);
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
-
[o, s,
|
|
168
|
-
),
|
|
167
|
+
[o, s, b, d]
|
|
168
|
+
), h = {
|
|
169
169
|
selected: k,
|
|
170
170
|
renderKey: i,
|
|
171
171
|
toggle: j,
|
|
172
172
|
visible: S
|
|
173
173
|
};
|
|
174
|
-
return u != null && (
|
|
175
|
-
|
|
174
|
+
return u != null && (h.variant = u), /* @__PURE__ */ l.jsx(
|
|
175
|
+
re,
|
|
176
176
|
{
|
|
177
|
-
close:
|
|
177
|
+
close: b,
|
|
178
178
|
data: e,
|
|
179
179
|
visible: S,
|
|
180
180
|
value: s,
|
|
181
181
|
onChange: x,
|
|
182
182
|
allowMultiple: !1,
|
|
183
183
|
allowNone: c,
|
|
184
|
-
columns:
|
|
184
|
+
columns: n,
|
|
185
185
|
hideColumnHeader: m,
|
|
186
186
|
variant: f,
|
|
187
|
-
trigger: /* @__PURE__ */ l.jsx(l.Fragment, { children:
|
|
187
|
+
trigger: /* @__PURE__ */ l.jsx(l.Fragment, { children: t(h) }),
|
|
188
188
|
...r
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
|
-
},
|
|
191
|
+
}, me = [
|
|
192
192
|
{
|
|
193
193
|
key: "h2",
|
|
194
194
|
label: "XL"
|
|
@@ -202,58 +202,60 @@ const te = [], ne = ({
|
|
|
202
202
|
label: "M"
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
|
-
key: "
|
|
205
|
+
key: "h5",
|
|
206
206
|
label: "S"
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
key: "small",
|
|
210
210
|
label: "XS"
|
|
211
211
|
}
|
|
212
|
-
],
|
|
212
|
+
], ue = ({
|
|
213
213
|
key: e,
|
|
214
214
|
entry: s,
|
|
215
|
-
onClick:
|
|
216
|
-
selected:
|
|
215
|
+
onClick: n,
|
|
216
|
+
selected: t
|
|
217
217
|
}) => /* @__PURE__ */ l.jsx(
|
|
218
218
|
L,
|
|
219
219
|
{
|
|
220
|
-
variant:
|
|
221
|
-
onClick:
|
|
220
|
+
variant: t ? "filled" : "outlined",
|
|
221
|
+
onClick: n,
|
|
222
222
|
children: s.label
|
|
223
223
|
},
|
|
224
224
|
e
|
|
225
|
-
),
|
|
226
|
-
children: e =
|
|
225
|
+
), fe = ({
|
|
226
|
+
children: e = ue,
|
|
227
227
|
...s
|
|
228
|
-
}) => /* @__PURE__ */ l.jsx(
|
|
228
|
+
}) => /* @__PURE__ */ l.jsx(ae, { ...s, data: me, children: e }), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
229
229
|
__proto__: null,
|
|
230
230
|
ComponentSizeLevels: E,
|
|
231
|
-
CoreDateTime:
|
|
232
|
-
DateTime:
|
|
233
|
-
Editable:
|
|
234
|
-
Keyboard:
|
|
231
|
+
CoreDateTime: $,
|
|
232
|
+
DateTime: F,
|
|
233
|
+
Editable: I,
|
|
234
|
+
Keyboard: Y,
|
|
235
235
|
LEVELS: A,
|
|
236
|
-
LevelComponentSizes:
|
|
237
|
-
Link:
|
|
238
|
-
MaybeEditable:
|
|
239
|
-
SelectLevel:
|
|
240
|
-
Symbols:
|
|
241
|
-
Text:
|
|
242
|
-
WithIcon:
|
|
243
|
-
asyncEdit:
|
|
244
|
-
dimensions:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
236
|
+
LevelComponentSizes: v,
|
|
237
|
+
Link: R,
|
|
238
|
+
MaybeEditable: U,
|
|
239
|
+
SelectLevel: fe,
|
|
240
|
+
Symbols: V,
|
|
241
|
+
Text: Z,
|
|
242
|
+
WithIcon: W,
|
|
243
|
+
asyncEdit: q,
|
|
244
|
+
dimensions: M,
|
|
245
|
+
downLevel: T,
|
|
246
|
+
edit: G,
|
|
247
|
+
evalColor: J,
|
|
248
|
+
formatChildren: Q,
|
|
248
249
|
levelZ: N,
|
|
249
|
-
specZ: P
|
|
250
|
+
specZ: P,
|
|
251
|
+
upLevel: _
|
|
250
252
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
251
253
|
export {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
ae as B,
|
|
255
|
+
re as C,
|
|
256
|
+
Le as D,
|
|
257
|
+
fe as S,
|
|
258
|
+
ce as a,
|
|
259
|
+
de as d,
|
|
260
|
+
Be as e
|
|
259
261
|
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { C as t, a as n, Z as f, c as h, b as E, f as T, t as Z } from "./css-DqBChhqm.js";
|
|
2
|
+
import { j as c } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
+
import { W as A, X as H, u as M, Y as N, Z as g, _ as O, B as R, i as z, $ as L } from "./Toggle-CTjPdq8o.js";
|
|
4
|
+
import { useCallback as Y } from "react";
|
|
5
|
+
import "./aggregator-QFq5XDjf.js";
|
|
6
|
+
import "./Pack-BAJwD-n2.js";
|
|
7
|
+
const k = ({ value: r, onChange: o, ...p }) => {
|
|
8
|
+
const l = (e) => {
|
|
9
|
+
e.hex === "transparent" && o(f), o(new n(e.hex, e.rgb.a));
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ c.jsx(
|
|
12
|
+
A,
|
|
13
|
+
{
|
|
14
|
+
className: t.B("color-picker"),
|
|
15
|
+
color: new n(r).hex,
|
|
16
|
+
onChange: l,
|
|
17
|
+
presetColors: [],
|
|
18
|
+
...p
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}, d = "color", $ = ({
|
|
22
|
+
value: r,
|
|
23
|
+
onChange: o,
|
|
24
|
+
className: p,
|
|
25
|
+
size: l = "medium",
|
|
26
|
+
onVisibleChange: e,
|
|
27
|
+
initialVisible: S,
|
|
28
|
+
allowChange: b = !0,
|
|
29
|
+
draggable: y = !0,
|
|
30
|
+
...w
|
|
31
|
+
}) => {
|
|
32
|
+
const { visible: j, open: D, close: B } = H({ onVisibleChange: e, initialVisible: S }), _ = M().colors.gray.l0, s = new n(r), C = N(), x = Y(
|
|
33
|
+
({ items: i }) => {
|
|
34
|
+
const [a] = g(d, i);
|
|
35
|
+
return a != null && a.key !== s.hex;
|
|
36
|
+
},
|
|
37
|
+
[s.hex]
|
|
38
|
+
), { startDrag: P, ...v } = O({
|
|
39
|
+
type: "Color.Swatch",
|
|
40
|
+
onDrop: ({ items: i }) => {
|
|
41
|
+
const a = g(d, i);
|
|
42
|
+
return i.length > 0 && (o == null || o(new n(a[0].key))), a;
|
|
43
|
+
},
|
|
44
|
+
canDrop: x
|
|
45
|
+
}), u = o != null && b, m = /* @__PURE__ */ c.jsx(
|
|
46
|
+
R,
|
|
47
|
+
{
|
|
48
|
+
className: t(
|
|
49
|
+
t.B("color-swatch"),
|
|
50
|
+
t.size(l),
|
|
51
|
+
s.contrast(_) > 1.5 && s.a > 0.5 && t.M("no-border"),
|
|
52
|
+
t.dropRegion(x(C)),
|
|
53
|
+
p
|
|
54
|
+
),
|
|
55
|
+
disabled: !u,
|
|
56
|
+
draggable: y,
|
|
57
|
+
onDragStart: () => P([{ type: d, key: s.hex }]),
|
|
58
|
+
style: { backgroundColor: h(r) },
|
|
59
|
+
variant: "text",
|
|
60
|
+
onClick: D,
|
|
61
|
+
size: l,
|
|
62
|
+
tooltip: u ? /* @__PURE__ */ c.jsx(z, { level: "small", children: "Click to change color" }) : void 0,
|
|
63
|
+
...v,
|
|
64
|
+
...w
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
return u ? /* @__PURE__ */ c.jsxs(
|
|
68
|
+
L,
|
|
69
|
+
{
|
|
70
|
+
close: B,
|
|
71
|
+
visible: j,
|
|
72
|
+
className: t.BE("color-swatch", "dropdown"),
|
|
73
|
+
keepMounted: !1,
|
|
74
|
+
variant: "floating",
|
|
75
|
+
zIndex: 100,
|
|
76
|
+
children: [
|
|
77
|
+
m,
|
|
78
|
+
/* @__PURE__ */ c.jsx(k, { value: r, onChange: o })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
) : m;
|
|
82
|
+
}, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83
|
+
__proto__: null,
|
|
84
|
+
Color: n,
|
|
85
|
+
Picker: k,
|
|
86
|
+
Swatch: $,
|
|
87
|
+
ZERO: f,
|
|
88
|
+
crudeZ: E,
|
|
89
|
+
cssString: h,
|
|
90
|
+
fromHSLA: T,
|
|
91
|
+
toHex: Z
|
|
92
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
93
|
+
export {
|
|
94
|
+
$ as S,
|
|
95
|
+
G as e
|
|
96
|
+
};
|
|
@@ -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-CTjPdq8o.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-Dpra-3n6.js";
|
|
3
3
|
const x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
CONTEXT_SELECTED: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-Dim0E2D2.cjs"),s=require("./jsx-runtime-Cek9Ww4S.cjs"),j=require("./aggregator-D6Mmsfj4.cjs"),h=require("react"),l=require("./css-CvXvQo39.cjs"),E=require("./Pack-DBtBeGnj.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 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-Dim0E2D2.cjs"),e=require("./Item-C1_OE8IF.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,10 +1,10 @@
|
|
|
1
|
-
import { n as d, i as x, o as E, A as M, p as b, K as S, M as y, q as R, r as K, s as C, v as T, w as _, x as v, y as L, z as j, E as O, F as h, G as k, H as w, J as A, L as H, N as Z, O as P, R as U, U as Y, V as N } from "./Toggle-
|
|
1
|
+
import { n as d, i as x, o as E, A as M, p as b, K as S, M as y, q as R, r as K, s as C, v as T, w as _, x as v, y as L, z as j, E as O, F as h, G as k, H as w, J as A, L as H, N as Z, O as P, R as U, U as Y, V as N } from "./Toggle-CTjPdq8o.js";
|
|
2
2
|
import { j as q } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useState as z, useEffect as F, useRef as g, useCallback as f } from "react";
|
|
4
|
-
import "./aggregator-
|
|
5
|
-
import { q as i, E as l } from "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { T as I, t as G } from "./Text-
|
|
4
|
+
import "./aggregator-QFq5XDjf.js";
|
|
5
|
+
import { q as i, E as l } from "./css-DqBChhqm.js";
|
|
6
|
+
import "./Pack-BAJwD-n2.js";
|
|
7
|
+
import { T as I, t as G } from "./Text-D5o4o3OI.js";
|
|
8
8
|
const J = (e) => {
|
|
9
9
|
const { listen: a } = d(), [c, n] = z([]);
|
|
10
10
|
return F(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Pack-
|
|
1
|
+
"use strict";const e=require("./Pack-DBtBeGnj.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,5 +1,5 @@
|
|
|
1
|
-
import { S as e, a as t, b as a, t as r } from "./aggregator-
|
|
2
|
-
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-
|
|
1
|
+
import { S as e, a as t, b as a, t as r } from "./aggregator-QFq5XDjf.js";
|
|
2
|
+
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-CTjPdq8o.js";
|
|
3
3
|
const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Provider: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as o, I as e, T as t, g as r } from "./Toggle-
|
|
2
|
-
import { L as a } from "./Link-
|
|
1
|
+
import { B as o, I as e, T as t, g as r } from "./Toggle-CTjPdq8o.js";
|
|
2
|
+
import { L as a } from "./Link-Ctlz9WUQ.js";
|
|
3
3
|
const g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Button: o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-D6Mmsfj4.cjs"),c=require("react"),S=require("./Pack-DBtBeGnj.cjs"),a=require("./Toggle-Dim0E2D2.cjs"),o=require("./css-CvXvQo39.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./css-CvXvQo39.cjs"),l=require("./jsx-runtime-Cek9Ww4S.cjs"),r=require("./Toggle-Dim0E2D2.cjs"),q=require("react");require("./aggregator-D6Mmsfj4.cjs");require("./Pack-DBtBeGnj.cjs");const g=({value:o,onChange:t,...u})=>{const a=s=>{s.hex==="transparent"&&t(e.ZERO),t(new e.Color(s.hex,s.rgb.a))};return l.jsxRuntimeExports.jsx(r.SketchPicker,{className:e.CSS.B("color-picker"),color:new e.Color(o).hex,onChange:a,presetColors:[],...u})},S="color",h=({value:o,onChange:t,className:u,size:a="medium",onVisibleChange:s,initialVisible:C,allowChange:m=!0,draggable:j=!0,...k})=>{const{visible:y,open:f,close:w}=r.use$2({onVisibleChange:s,initialVisible:C}),R=r.use().colors.gray.l0,n=new e.Color(o),b=r.useDraggingState(),p=q.useCallback(({items:i})=>{const[c]=r.filterByType(S,i);return c!=null&&c.key!==n.hex},[n.hex]),{startDrag:E,...D}=r.useDragAndDrop({type:"Color.Swatch",onDrop:({items:i})=>{const c=r.filterByType(S,i);return i.length>0&&(t==null||t(new e.Color(c[0].key))),c},canDrop:p}),x=t!=null&&m,d=l.jsxRuntimeExports.jsx(r.Button,{className:e.CSS(e.CSS.B("color-swatch"),e.CSS.size(a),n.contrast(R)>1.5&&n.a>.5&&e.CSS.M("no-border"),e.CSS.dropRegion(p(b)),u),disabled:!x,draggable:j,onDragStart:()=>E([{type:S,key:n.hex}]),style:{backgroundColor:e.cssString(o)},variant:"text",onClick:f,size:a,tooltip:x?l.jsxRuntimeExports.jsx(r.Text,{level:"small",children:"Click to change color"}):void 0,...D,...k});return x?l.jsxRuntimeExports.jsxs(r.Dialog,{close:w,visible:y,className:e.CSS.BE("color-swatch","dropdown"),keepMounted:!1,variant:"floating",zIndex:100,children:[d,l.jsxRuntimeExports.jsx(g,{value:o,onChange:t})]}):d},B=Object.freeze(Object.defineProperty({__proto__:null,Color:e.Color,Picker:g,Swatch:h,ZERO:e.ZERO,crudeZ:e.crudeZ,cssString:e.cssString,fromHSLA:e.fromHSLA,toHex:e.toHex},Symbol.toStringTag,{value:"Module"}));exports.Swatch=h;exports.external=B;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { A as v, h as d } from "./aggregator-
|
|
2
|
+
import { A as v, h as d } from "./aggregator-QFq5XDjf.js";
|
|
3
3
|
import { createContext as h, useContext as j, isValidElement as f, Fragment as B } from "react";
|
|
4
|
-
import { S as m } from "./Pack-
|
|
5
|
-
import { I as C, m as S, B as b, ah as z } from "./Toggle-
|
|
6
|
-
import { C as a } from "./css-
|
|
4
|
+
import { S as m } from "./Pack-BAJwD-n2.js";
|
|
5
|
+
import { I as C, m as S, B as b, ah as z } from "./Toggle-CTjPdq8o.js";
|
|
6
|
+
import { C as a } from "./css-DqBChhqm.js";
|
|
7
7
|
const x = h({
|
|
8
8
|
divided: !1,
|
|
9
9
|
level: "h1"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a1 as fe, au as Pe, ak as ke, ab as ve, av as Te, a5 as Ce, l as Fe, aa as Ne, aw as $e, ax as je, a6 as De, ay as Ke, az as Ye, aA as We, aB as ze, aC as He, ac as Be, aD as Ve, aE as Ue, a0 as Ge, aF as Je, aG as Qe, aH as Xe } from "./Toggle-
|
|
1
|
+
import { a1 as fe, au as Pe, ak as ke, ab as ve, av as Te, a5 as Ce, l as Fe, aa as Ne, aw as $e, ax as je, a6 as De, ay as Ke, az as Ye, aA as We, aB as ze, aC as He, ac as Be, aD as Ve, aE as Ue, a0 as Ge, aF as Je, aG as Qe, aH as Xe } from "./Toggle-CTjPdq8o.js";
|
|
2
2
|
import { j as Ze } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useCallback as qe } from "react";
|
|
4
|
-
import { w as et,
|
|
5
|
-
import "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { L as st } from "./List-
|
|
4
|
+
import { w as et, p as tt } from "./aggregator-QFq5XDjf.js";
|
|
5
|
+
import "./css-DqBChhqm.js";
|
|
6
|
+
import "./Pack-BAJwD-n2.js";
|
|
7
|
+
import { L as st } from "./List-DF0kzXpr.js";
|
|
8
8
|
const de = Symbol(), q = Symbol(), v = "a", N = "w";
|
|
9
9
|
let rt = (t, e) => new Proxy(t, e);
|
|
10
10
|
const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) => t && (ne.has(t) ? ne.get(t) : H(t) === Object.prototype || H(t) === Array.prototype), ie = (t) => typeof t == "object" && t !== null, ce = /* @__PURE__ */ new WeakMap(), ge = (t) => t[q] || t, pe = (t, e, s) => {
|
|
@@ -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-BAJwD-n2.js";
|
|
2
2
|
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
ALIGNMENTS: e,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./aggregator-D6Mmsfj4.cjs"),e=require("./Toggle-Dim0E2D2.cjs"),A=require("./Keyboard-BBOcinRN.cjs"),o=require("./jsx-runtime-Cek9Ww4S.cjs"),k=require("react"),R=require("./Pack-DBtBeGnj.cjs"),M=require("./Animated-C7iWxEah.cjs"),y=require("./css-CvXvQo39.cjs"),P=require("./List-CcTL6wlO.cjs"),w=[],B=({data:t,emptyContent:n,value:s,onChange:l,allowMultiple:d,allowNone:a,hideColumnHeader:r=!1,columns:E=w,visible:m,itemHeight:p=e.Column.itemHeight,listItem:j=e.componentRenderProp(e.Column.Item),replaceOnSingle:i,omit:b,autoSelectOnNone:h,trigger:C,extraDialogContent:f,variant:x="connected",...L})=>{let S=o.jsxRuntimeExports.jsxs(e.Hover,{disabled:!m,children:[f,o.jsxRuntimeExports.jsx(e.Column.Header,{hide:r||j!=null,columns:E,children:o.jsxRuntimeExports.jsx(e.Core.Virtual,{itemHeight:p,children:j})})]});return x!=="connected"&&(S=o.jsxRuntimeExports.jsx(R.Pack,{direction:"y",borderShade:4,className:y.CSS.B("select-dialog-content"),children:S})),o.jsxRuntimeExports.jsx(P.List,{data:t,emptyContent:n,omit:b,children:o.jsxRuntimeExports.jsx(e.Selector,{value:s,onChange:l,allowMultiple:d,allowNone:a,replaceOnSingle:i,autoSelectOnNone:h,children:o.jsxRuntimeExports.jsxs(e.Dialog,{visible:m,className:y.CSS.B("select"),keepMounted:!1,variant:x,...L,children:[C,S]})})})},g=({children:t=z,value:n,onChange:s,entryRenderKey:l="key",allowNone:d=!1,allowMultiple:a=!1,data:r,replaceOnSingle:E,className:m,...p})=>{const{onSelect:j}=e.useSelect({allowMultiple:a,allowNone:d,replaceOnSingle:E,data:r,value:n,onChange:s});return o.jsxRuntimeExports.jsx(R.Pack,{borderShade:4,className:y.CSS(y.CSS.B("select-button"),m),...p,children:r==null?void 0:r.map(i=>t({key:i.key,onClick:()=>j(i.key),selected:i.key===n,entry:i,title:i[l]}))})},z=({entry:t,onClick:n,selected:s,title:l})=>o.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:s?"filled":"outlined",children:l},t.key),v=({selected:t,renderKey:n,toggle:s,visible:l,children:d,...a})=>o.jsxRuntimeExports.jsx(e.Button,{className:y.CSS.B("select-dropdown-button"),onClick:s,variant:"outlined",endIcon:o.jsxRuntimeExports.jsx(M.Animated,{enabledLoc:"bottom",disabledLoc:"left",enabled:l}),...a,children:d??(t==null?void 0:t[n])}),D=e.componentRenderProp(v),N=({data:t,value:n,columns:s=[],children:l=D,entryRenderKey:d="key",allowNone:a=!1,onChange:r,disabled:E,hideColumnHeader:m=!0,variant:p,dropdownVariant:j,...i})=>{const{close:b,visible:h,toggle:C}=e.use$2(),[f,x]=k.useState((t==null?void 0:t.find(c=>c.key===n))??null);k.useEffect(()=>{x((t==null?void 0:t.find(c=>c.key===n))??null)},[t,n]);const L=k.useCallback((c,q)=>{if(!(Array.isArray(c)||c===null)){if(b(),c==null)return x(null),r(n);x(q.entries[0]),r(c)}},[r,n,b,x]),S={selected:f,renderKey:d,toggle:C,visible:h};return p!=null&&(S.variant=p),o.jsxRuntimeExports.jsx(B,{close:b,data:t,visible:h,value:n,onChange:L,allowMultiple:!1,allowNone:a,columns:s,hideColumnHeader:m,variant:j,trigger:o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:l(S)}),...i})},_=[{key:"h2",label:"XL"},{key:"h3",label:"L"},{key:"h4",label:"M"},{key:"h5",label:"S"},{key:"small",label:"XS"}],K=({key:t,entry:n,onClick:s,selected:l})=>o.jsxRuntimeExports.jsx(e.Button,{variant:l?"filled":"outlined",onClick:s,children:n.label},t),T=({children:t=K,...n})=>o.jsxRuntimeExports.jsx(g,{...n,data:_,children:t}),O=Object.freeze(Object.defineProperty({__proto__:null,ComponentSizeLevels:u.ComponentSizeLevels,CoreDateTime:e.CoreDateTime,DateTime:e.DateTime,Editable:e.Editable,Keyboard:A.Keyboard,LEVELS:u.LEVELS,LevelComponentSizes:u.LevelComponentSizes,Link:e.Link,MaybeEditable:e.MaybeEditable,SelectLevel:T,Symbols:e.Symbols,Text:e.Text,WithIcon:e.WithIcon,asyncEdit:e.asyncEdit,dimensions:u.dimensions,downLevel:u.downLevel,edit:e.edit,evalColor:e.evalColor,formatChildren:e.formatChildren,levelZ:u.levelZ,specZ:u.specZ,upLevel:u.upLevel},Symbol.toStringTag,{value:"Module"}));exports.BaseButton=v;exports.Button=g;exports.Core=B;exports.DropdownButton=N;exports.SelectLevel=T;exports.defaultButton=D;exports.external=O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./aggregator-
|
|
1
|
+
"use strict";const r=require("./aggregator-D6Mmsfj4.cjs"),e=require("./Toggle-Dim0E2D2.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 k=require("./aggregator-
|
|
1
|
+
"use strict";const k=require("./aggregator-D6Mmsfj4.cjs"),R=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./Toggle-Dim0E2D2.cjs"),x=require("react"),re=require("./Link-Cxj-3A6p.cjs"),se=require("./Animated-C7iWxEah.cjs"),h=require("./css-CvXvQo39.cjs");require("./Pack-DBtBeGnj.cjs");const le=require("./List-CcTL6wlO.cjs"),Y=(e,t)=>t.includes(e.key),H=(e,t)=>{t&&e.sort((n,s)=>k.F.stringsWithNumbers(n.name,s.name));let r=!1;for(let n=0;n<e.length;n++){const s=e[n];s.forcePosition!=null&&n!==s.forcePosition&&(r=!0,e.splice(n,1),e.splice(s.forcePosition,0,s))}return r?H(e,!1):e},K=({nodes:e,expanded:t,depth:r=0,sort:n=!0})=>{r===0&&n&&(e=e.sort((l,i)=>l.name.localeCompare(i.name)));const s=[];return e.forEach((l,i)=>{const o=Y(l,t);s.push({...l,depth:r,expanded:o,index:i}),o&&l.children!=null&&(l.children=H(l.children,n),s.push(...K({nodes:l.children,expanded:t,depth:r+1,sort:n})))}),s},ae=({tree:e,destination:t,keys:r})=>(r=k.A(r),r.forEach(n=>{const s=j({tree:e,key:n});s!=null&&(z({tree:e,keys:n}),Q({tree:e,destination:t,additions:s}))}),e),z=({tree:e,keys:t})=>{t=k.A(t);const r=e.map(n=>n.key);return t.forEach(n=>{var l;const s=r.indexOf(n);if(s!==-1)e.splice(s,1);else{const i=q({tree:e,key:n});i!=null&&(i.children=(l=i.children)==null?void 0:l.filter(o=>o.key!==n))}}),e},Q=({tree:e,destination:t,additions:r})=>{r=k.A(r);const n=j({tree:e,key:t});if(n==null)throw new Error(`Could not find node with key ${t}`);n.children==null&&(n.children=[]);const s=r.map(l=>l.key);return n.children=[...r,...n.children.filter(l=>!s.includes(l.key))],e},ie=({tree:e,key:t,updater:r,throwOnMissing:n=!0})=>{var i,o;const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}const l=q({tree:e,key:t});if(l!=null){const a=(i=l.children)==null?void 0:i.findIndex(S=>S.key===t);a!=null&&a!==-1&&((o=l.children)==null||o.splice(a,1,r(s)))}else e.splice(e.findIndex(a=>a.key===t),1,r(s));return e},oe=({tree:e,parent:t,updater:r,throwOnMissing:n=!0})=>{const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}return s.children=r(s.children??[]),e},j=({tree:e,key:t,depth:r=0})=>{for(let n=0;n<e.length;n++){const s=e[n];if(s.key===t){const l=s;return l.depth=r,l.position=n,l}if(s.children!=null){const l=j({tree:s.children,key:t,depth:r+1});if(l!=null)return l}}return null},ce=({tree:e,keys:t})=>{const r=[];for(const n of t){const s=j({tree:e,key:n});s!=null&&r.push(s)}return r},q=({tree:e,key:t})=>{for(const r of e)if(r.children!=null){if(r.children.some(s=>s.key===t))return r;const n=q({tree:r.children,key:t});if(n!=null)return n}return null},V=e=>e.map(t=>({...t,children:V(t.children??[])})),J=(...e)=>{const t=[];return e.forEach(r=>{t.push(r),r.children!=null&&t.push(...J(...r.children))}),t},M="tree-item",de=[["Shift"]],ue=e=>{const{onExpand:t,nodes:r,initialExpanded:n=[],sort:s=!0,selected:l,onSelectedChange:i}=e??{},[o,a,S]=d.useCombinedStateAndRef(n),[c,N]=k.usePassthrough({initial:[],value:l,onChange:i}),T=x.useMemo(()=>K({nodes:r,expanded:o,sort:s}),[r,o,s]),v=d.useSyncedRef(T),w=d.useHeldRef({triggers:de}),P=x.useCallback((f,{clicked:u})=>{N(f);const C=v.current.find(b=>b.key===u);if((C==null?void 0:C.hasChildren)===!1||u==null||w.current.held)return;const E=S.current,I=E.some(b=>b===u)?"contract":"expand";let y=E;I==="contract"?y=E.filter(b=>b!==u):y=[...E,u],a(y),t==null||t({current:y,action:I,clicked:u})},[t,v,a,N]),p=x.useCallback(f=>{a(u=>k.n([...u,f])),t==null||t({current:o,action:"expand",clicked:f})},[a]),L=x.useCallback(f=>{a(u=>u.filter(C=>C!==f)),t==null||t({current:o,action:"contract",clicked:f})},[a]),_=x.useCallback(()=>a([]),[a]);return{onSelect:P,selected:c,expanded:o,contract:L,expand:p,nodes:T,clearExpanded:_}},G=x.memo(({entry:e,selected:t,onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:i,loading:o=!1,useMargin:a=!0,translate:S})=>{const{key:c,hasChildren:N=!1,allowRename:T=!1,children:v,icon:w,name:P,depth:p,expanded:L,href:_,haulItems:f=[]}=e,{getSelected:u}=d.useSelectionUtils(),{getSourceData:C}=d.useDataUtilContext(),E=N||v!=null&&v.length>0,I=[];E&&I.push(R.jsxRuntimeExports.jsx(se.Animated,{enabled:L,enabledLoc:"bottom",disabledLoc:"right"})),w!=null&&I.push(w);const y=[];o&&y.push(R.jsxRuntimeExports.jsx(d.Qt.Loading,{className:h.CSS.B("loading-indicator")}));const[b,O]=x.useState(!1),{startDrag:U,...Z}=d.useDragAndDrop({type:"Tree.Item",key:c,canDrop:x.useCallback(({items:m,source:$})=>{const g=m.map(A=>A.key);return O(!1),$.type==="Tree.Item"&&!g.includes(c)},[]),onDrop:x.useCallback(m=>(n==null?void 0:n(c,m))??[],[c,n]),onDragOver:x.useCallback(()=>O(!0),[])}),D=()=>{const m=u(),$=C().filter(g=>m.includes(g.key));if(m.includes(c)){const g=$.map(({key:A,haulItems:B,depth:W})=>[{type:M,key:A,data:{depth:W}},...(B==null?void 0:B.map(X=>({...X,data:{...X.data,depth:W}})))??[]]).flat();return U(g,A=>l==null?void 0:l(c,A))}U([{type:M,key:c,data:{depth:p}},...f.map(g=>({...g,data:{...g.data,depth:p}}))],g=>l==null?void 0:l(c,g))},ee=a?"marginLeft":"paddingLeft";let F=p*2+1;E&&a&&(F-=1);const te={id:c,variant:"text",draggable:f.length>0,className:h.CSS(h.CSS.BE("list","item"),d.CONTEXT_TARGET,b&&h.CSS.M("dragging-over"),t&&d.CONTEXT_SELECTED,h.CSS.selected(t),E&&h.CSS.M("has-children"),h.CSS.BM("depth",p.toString())),onDragLeave:()=>O(!1),onDragStart:D,onClick:()=>r==null?void 0:r(c),style:{border:"none",position:S!=null?"absolute":"relative",transform:`translateY(${S}px)`,[ee]:`${F}rem`,"--pluto-tree-indicator-offset":`${p*1.5+(p===0?0:.5)}rem`},startIcon:I,iconSpacing:"small",noWrap:!0,endIcon:y,onDoubleClick:m=>i==null?void 0:i(c,m),href:_,...Z},ne=_!=null?re.Link:d.Button;return R.jsxRuntimeExports.jsx(ne,{className:h.CSS.BE("list","item"),...te,children:R.jsxRuntimeExports.jsx(d.MaybeEditable,{id:`text-${c}`,level:"p",allowDoubleClick:!1,value:P,disabled:!T,onChange:m=>s==null?void 0:s(c,m)})})});G.displayName="Tree.Item";const fe=d.componentRenderProp(G),he=({nodes:e,selected:t=[],onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:i,className:o,children:a=fe,itemHeight:S=27,useMargin:c=!1,showRules:N=!1,virtual:T=!0,clearExpanded:v,expand:w,contract:P,emptyContent:p,loading:L,..._})=>{const f=T?d.Core.Virtual:d.Core;return R.jsxRuntimeExports.jsx(le.List,{data:e,emptyContent:p,children:R.jsxRuntimeExports.jsx(d.Selector,{value:t,onChange:r,allowMultiple:!0,replaceOnSingle:!0,children:R.jsxRuntimeExports.jsx(f,{itemHeight:S,className:h.CSS(o,h.CSS.B("tree"),N&&h.CSS.M("rules")),..._,children:({key:u,...C})=>a({...C,key:u,loading:L===u,useMargin:c,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:i})})})})},pe=(e,t)=>d.edit(`text-${e}`,t),me=e=>d.asyncEdit(`text-${e}`),ge=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:G,HAUL_TYPE:M,Tree:he,asyncRename:me,deepCopy:V,findNode:j,findNodeParent:q,findNodes:ce,flatten:K,getDescendants:J,moveNode:ae,removeNode:z,setNode:Q,shouldExpand:Y,sortAndSplice:H,startRenaming:pe,updateNode:ie,updateNodeChildren:oe,use:ue},Symbol.toStringTag,{value:"Module"}));exports.external=ge;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as re, A as k, g as ae, n as se } from "./aggregator-
|
|
1
|
+
import { F as re, A as k, g as ae, n as se } from "./aggregator-QFq5XDjf.js";
|
|
2
2
|
import { j as N } from "./jsx-runtime-B6kdoens.js";
|
|
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-
|
|
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-CTjPdq8o.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-
|
|
5
|
+
import { L as _e } from "./Link-Ctlz9WUQ.js";
|
|
6
|
+
import { A as ve } from "./Animated-VpxahF8t.js";
|
|
7
|
+
import { C as u } from "./css-DqBChhqm.js";
|
|
8
|
+
import "./Pack-BAJwD-n2.js";
|
|
9
|
+
import { L as Ie } from "./List-DF0kzXpr.js";
|
|
10
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;
|
package/dist/header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DYc6fMZC.cjs");exports.Header=e.external;
|