@synnaxlabs/pluto 0.42.0 → 0.42.3
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/{Center-CNcAEDgS.js → Center-D0JeI7Ta.js} +2 -2
- package/dist/{Center-Map6aflE.cjs → Center-DuI3XH-Q.cjs} +1 -1
- package/dist/{ContextMenu-fLU0wr9S.js → ContextMenu-BiNr7Gxv.js} +3 -3
- package/dist/{ContextMenu-DmRPxhnI.cjs → ContextMenu-HpMLd1Ht.cjs} +1 -1
- package/dist/{DateTime-CP3OmEGY.cjs → DateTime-BsjSfOY-.cjs} +1 -1
- package/dist/{DateTime-CWAcEwXO.js → DateTime-r6hocEmI.js} +2 -2
- package/dist/{Divider-BTLn5ucU.js → Divider-DqEkzRIY.js} +1 -1
- package/dist/{Divider-Dvb6dsgX.cjs → Divider-Dut8qPee.cjs} +2 -2
- package/dist/{Dropdown-CaGzfZRa.cjs → Dropdown-BSSe1E1e.cjs} +1 -1
- package/dist/{Dropdown-nw8kRSbl.js → Dropdown-BrFL1eSc.js} +38 -38
- package/dist/{Haul-B8zGWk0I.cjs → Haul-C6i2oI7z.cjs} +1 -1
- package/dist/{Haul-Cnuzk7Z-.js → Haul-CEFSvdy9.js} +1 -1
- package/dist/{Item-FmwC-twg.js → Item-C5SQraZM.js} +6 -6
- package/dist/{Item-BzrQqxRC.cjs → Item-DSBs9VLu.cjs} +1 -1
- package/dist/{Keyboard-BfvjkBgh.cjs → Keyboard-Ca7TAAHK.cjs} +1 -1
- package/dist/{Keyboard-Cevv7vrQ.js → Keyboard-Duo41pJL.js} +2 -2
- package/dist/{Link-DI7BZ5dL.cjs → Link-B9ZGvoBU.cjs} +1 -1
- package/dist/{Link-Dljdu4e9.js → Link-C9GeoB0w.js} +1 -1
- package/dist/{Pack-to0DG2iP.js → Pack-BozAEHBp.js} +2 -2
- package/dist/{Pack-lJqoOmHx.cjs → Pack-DeZUUdJM.cjs} +1 -1
- package/dist/{Provider-C_B463cg.js → Provider-B86QO9NT.js} +5 -5
- package/dist/{Provider-BlM1x1cF.cjs → Provider-Cw0mSr2D.cjs} +1 -1
- package/dist/{Space-C2oZDkE1.js → Space-CyTH97CN.js} +1 -1
- package/dist/{Space-DfcVsxz8.cjs → Space-DvalhzRj.cjs} +1 -1
- package/dist/{Text-BiYpGaEZ.js → Text-8ps3Uw4T.js} +3 -3
- package/dist/{Text-CWiPrDI1.js → Text-BR4FW9Hy.js} +12 -12
- package/dist/{Text-BjHlLKsp.cjs → Text-C8GBHl-F.cjs} +1 -1
- package/dist/{Text-ZJqK1cI3.cjs → Text-CMTkSEWx.cjs} +2 -2
- package/dist/{Text-DrIBbnml.cjs → Text-DkA06TeT.cjs} +1 -1
- package/dist/{Text-BXADoWYY.js → Text-sH_NOelc.js} +41 -41
- package/dist/{Toggle-CeUVv58o.js → Toggle-BRuUrO2N.js} +29 -29
- package/dist/{Toggle-CfwYy9fe.cjs → Toggle-C0lZDyeo.cjs} +1 -1
- package/dist/{Video-BZ1XTEez.js → Video-DWStbcmD.js} +1 -1
- package/dist/{Video-C7YoF37-.cjs → Video-DgjuFLiE.cjs} +1 -1
- package/dist/{WithIcon-DG7VJxsE.cjs → WithIcon-BgS5shNZ.cjs} +1 -1
- package/dist/{WithIcon-pBZ7H9Lq.js → WithIcon-BhR6nwRh.js} +3 -3
- 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-hg3QdDDt.cjs → css-9iEiTRNL.cjs} +8 -8
- package/dist/{css-B7c7_G5h.js → css-Cnb9DQMD.js} +612 -611
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/deep-BNa3STCp.cjs +1 -0
- package/dist/deep-P35D0Sz7.js +112 -0
- package/dist/{dimensions-DcjW7X3n.js → dimensions-B6qmnzv3.js} +1 -1
- package/dist/{dimensions-Cz-q0Mok.cjs → dimensions-By-vgVks.cjs} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-BOx6Xhwn.cjs → eraser-BkqFgBRY.cjs} +2 -2
- package/dist/{eraser-Bsb4kKS3.js → eraser-CK8SwEJa.js} +8 -8
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +7 -7
- package/dist/{external-CEfSeJMr.js → external-B1YsdhS4.js} +9 -9
- package/dist/{external-DeCeUbqe.js → external-B7NxSklQ.js} +6 -6
- package/dist/{external-CLTPcWrI.cjs → external-B8uaUKhb.cjs} +1 -1
- package/dist/{external-DDD_nc3x.js → external-BA_VOnV-.js} +41 -41
- package/dist/{external-Ck1rVwUu.js → external-BDkqwq72.js} +17 -17
- package/dist/{external-BdVuZd3H.cjs → external-BGBgNbe2.cjs} +1 -1
- package/dist/{external-1KJXZcr9.js → external-BOMdfX8_.js} +2 -2
- package/dist/{external-hgzjVlDR.js → external-Bl8q9UBF.js} +11 -11
- package/dist/{external-DgSaeiBz.js → external-BnK4UIFe.js} +3 -3
- package/dist/{external-Cfj1plcw.cjs → external-BwUa_5Vs.cjs} +1 -1
- package/dist/{external-DCcp3sQD.js → external-C0X4mXVG.js} +4 -4
- package/dist/{external-qwaFowDe.js → external-C7yPkamb.js} +5 -5
- package/dist/{external-Cni9ftkW.cjs → external-CTc1n-JC.cjs} +1 -1
- package/dist/{external-DCfs7IFi.cjs → external-CUgPP-JD.cjs} +1 -1
- package/dist/{external-C75Z9Zbn.cjs → external-CzTBFiv_.cjs} +1 -1
- package/dist/{external-BiBhgCdz.cjs → external-DGJ8YAe-.cjs} +1 -1
- package/dist/{external-DhfASB4W.cjs → external-DQwznOyH.cjs} +1 -1
- package/dist/{external-DNT-gmZx.cjs → external-DiLZ1dEk.cjs} +1 -1
- package/dist/{external-bkwgRzLc.js → external-DissGp_3.js} +7 -7
- package/dist/{external-BHHC7TQ_.cjs → external-DmryCcwg.cjs} +1 -1
- package/dist/{external-pUEPQrp_.cjs → external-Dq8-cbf3.cjs} +1 -1
- package/dist/{external-sUHGRdqd.js → external-_8qdWaAg.js} +2 -2
- package/dist/{external-CRNR1bD0.js → external-bSUra-q7.js} +4 -4
- package/dist/{external-BLEs2AYM.cjs → external-zbKPQ9ls.cjs} +2 -2
- package/dist/{font-Crn-D_ua.js → font-CjYcjBiv.js} +2 -2
- package/dist/{font-BFTKtIQk.cjs → font-XlUAG1-r.cjs} +1 -1
- package/dist/{fontString-DjnDxFrE.js → fontString-BN1kd1AP.js} +1 -1
- package/dist/{fontString-DQLaRHQV.cjs → fontString-Ddza50DF.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/{hooks-CTKCi-OE.cjs → hooks-B5aLaWzS.cjs} +1 -1
- package/dist/{hooks-CM9HWxYc.js → hooks-DjznxGgm.js} +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.js +513 -513
- 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/{provider-XPRFhwnl.cjs → provider-aWtsGnV8.cjs} +24 -24
- package/dist/{provider-BDFfcHVT.js → provider-r5Ly36FI.js} +1569 -1566
- package/dist/src/color/Provider.d.ts +5 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +2 -2
- package/dist/src/status/aether/types.d.ts +2 -2
- package/dist/src/table/cells/Cells.d.ts +6 -2
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +6 -2
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +12 -6
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +2 -2
- package/dist/src/telem/control/aether/indicator.d.ts +12 -4
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +10 -2
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +5 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +660 -132
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +478 -126
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +10 -2
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +9 -3
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +5 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +10 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +40 -8
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +15 -3
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +40 -8
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +10 -2
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +15 -3
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +5 -1
- package/dist/src/vis/value/use.d.ts.map +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-CX_coN92.cjs +1 -0
- package/dist/{units-a8CggrTe.js → units-Ct3Xl5nK.js} +1 -1
- package/dist/{useClickOutside-CPAEkvf8.cjs → useClickOutside-CSff8yb-.cjs} +1 -1
- package/dist/{useClickOutside-CKMnqdvH.js → useClickOutside-DDCP7Fh-.js} +24 -24
- package/dist/{useDebouncedCallback-Cyd6pZ59.js → useDebouncedCallback-BG4I7mbT.js} +1 -1
- package/dist/{useDebouncedCallback-DsKlBI86.cjs → useDebouncedCallback-DnwYZzjR.cjs} +1 -1
- package/dist/{useMemoCompare-B930TM0g.js → useMemoCompare-BViQehyd.js} +2 -2
- package/dist/{useMemoCompare-DprA41gC.cjs → useMemoCompare-C2X7Mzx8.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-Cvp93Pya.cjs → useVirtualCursorDragWebKit-DDmXE4RW.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-BrSOJpYY.js → useVirtualCursorDragWebKit-DTU2tUmp.js} +3 -3
- package/dist/{value-BdZLWVof.js → value-B6OlPXe1.js} +404 -404
- package/dist/value-Bq1w9UY8.cjs +57 -0
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +5 -5
- package/dist/deep-B1etRzze.cjs +0 -1
- package/dist/deep-BytImVW-.js +0 -102
- package/dist/units-CKKNRQlP.cjs +0 -1
- package/dist/value-B7u8K1CW.cjs +0 -57
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { y, T as U, E as q, d as H } from "./Divider-
|
|
3
|
-
import { C as r, $ as I, J as Q,
|
|
4
|
-
import { cloneElement as L, createContext as ee, use as te, useState as R, useCallback as
|
|
2
|
+
import { y, T as U, E as q, d as H } from "./Divider-DqEkzRIY.js";
|
|
3
|
+
import { C as r, $ as I, J as Q, v as Y, g as K } from "./css-Cnb9DQMD.js";
|
|
4
|
+
import { cloneElement as L, createContext as ee, use as te, useState as R, useCallback as C } from "react";
|
|
5
5
|
import "./Stack-D50qN0Vu.js";
|
|
6
|
-
import { S as P } from "./Space-
|
|
7
|
-
import { P as ne } from "./Pack-
|
|
8
|
-
import { I as D } from "./Toggle-
|
|
9
|
-
import {
|
|
10
|
-
import { u as oe, b as le, a as re, C as ae } from "./ContextMenu-
|
|
11
|
-
import "./Item-
|
|
6
|
+
import { S as P } from "./Space-CyTH97CN.js";
|
|
7
|
+
import { P as ne } from "./Pack-BozAEHBp.js";
|
|
8
|
+
import { I as D } from "./Toggle-BRuUrO2N.js";
|
|
9
|
+
import { x as se } from "./deep-P35D0Sz7.js";
|
|
10
|
+
import { u as oe, b as le, a as re, C as ae } from "./ContextMenu-BiNr7Gxv.js";
|
|
11
|
+
import "./Item-C5SQraZM.js";
|
|
12
12
|
import { C as $, c as ce } from "./state-CjGemC7S.js";
|
|
13
13
|
import { z as p } from "zod";
|
|
14
14
|
const S = (t, n) => L(t, {
|
|
@@ -60,20 +60,20 @@ const S = (t, n) => L(t, {
|
|
|
60
60
|
tabs: i,
|
|
61
61
|
selected: f,
|
|
62
62
|
onSelect: m,
|
|
63
|
-
onClose:
|
|
63
|
+
onClose: O,
|
|
64
64
|
closable: j,
|
|
65
65
|
onDragEnd: E,
|
|
66
|
-
onDragStart:
|
|
66
|
+
onDragStart: T,
|
|
67
67
|
onDrop: N,
|
|
68
68
|
onRename: g,
|
|
69
69
|
onCreate: b
|
|
70
|
-
} = M(),
|
|
70
|
+
} = M(), v = oe(), [_, x] = R(!1);
|
|
71
71
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
72
72
|
s != null && /* @__PURE__ */ o.jsx(
|
|
73
73
|
le,
|
|
74
74
|
{
|
|
75
75
|
style: { height: "fit-content" },
|
|
76
|
-
...
|
|
76
|
+
...v,
|
|
77
77
|
menu: s
|
|
78
78
|
}
|
|
79
79
|
),
|
|
@@ -84,14 +84,14 @@ const S = (t, n) => L(t, {
|
|
|
84
84
|
r.B(B),
|
|
85
85
|
r.size(e),
|
|
86
86
|
t,
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
v.className,
|
|
88
|
+
_ && r.M("drag-over")
|
|
89
89
|
),
|
|
90
90
|
align: "center",
|
|
91
91
|
justify: "spaceBetween",
|
|
92
92
|
empty: !0,
|
|
93
93
|
direction: l,
|
|
94
|
-
onContextMenu:
|
|
94
|
+
onContextMenu: v.open,
|
|
95
95
|
onDrop: N,
|
|
96
96
|
...c,
|
|
97
97
|
children: [
|
|
@@ -102,8 +102,8 @@ const S = (t, n) => L(t, {
|
|
|
102
102
|
selected: f,
|
|
103
103
|
altColor: n,
|
|
104
104
|
onSelect: m,
|
|
105
|
-
onClose:
|
|
106
|
-
onDragStart:
|
|
105
|
+
onClose: O,
|
|
106
|
+
onDragStart: T,
|
|
107
107
|
onDragEnd: E,
|
|
108
108
|
onRename: g,
|
|
109
109
|
closable: d.closable ?? j,
|
|
@@ -157,30 +157,30 @@ const S = (t, n) => L(t, {
|
|
|
157
157
|
onDragEnd: i,
|
|
158
158
|
onRename: f,
|
|
159
159
|
closable: m = !0,
|
|
160
|
-
icon:
|
|
160
|
+
icon: O,
|
|
161
161
|
size: j,
|
|
162
162
|
editable: E = !0,
|
|
163
|
-
unsavedChanges:
|
|
163
|
+
unsavedChanges: T = !1,
|
|
164
164
|
loading: N = !1,
|
|
165
165
|
onDrop: g
|
|
166
166
|
}) => {
|
|
167
|
-
const b =
|
|
167
|
+
const b = C(
|
|
168
168
|
(u) => c == null ? void 0 : c(u, { tabKey: s, name: a }),
|
|
169
169
|
[c, s, a]
|
|
170
|
-
),
|
|
170
|
+
), v = C(
|
|
171
171
|
(u) => i == null ? void 0 : i(u, { tabKey: s, name: a }),
|
|
172
172
|
[i, s, a]
|
|
173
|
-
),
|
|
173
|
+
), _ = C(
|
|
174
174
|
(u) => {
|
|
175
175
|
u.preventDefault(), u.stopPropagation(), l == null || l(s);
|
|
176
176
|
},
|
|
177
177
|
[l, s]
|
|
178
|
-
), x =
|
|
178
|
+
), x = C(() => e == null ? void 0 : e(s), [e, s]), [d, h] = R(null), Z = C(
|
|
179
179
|
(u) => {
|
|
180
180
|
h(pe(u));
|
|
181
181
|
},
|
|
182
182
|
[h, g]
|
|
183
|
-
), G =
|
|
183
|
+
), G = C(
|
|
184
184
|
(u) => {
|
|
185
185
|
g == null || g(u), h(null);
|
|
186
186
|
},
|
|
@@ -212,12 +212,12 @@ const S = (t, n) => L(t, {
|
|
|
212
212
|
onDragLeave: () => h(null),
|
|
213
213
|
onDragStart: b,
|
|
214
214
|
onDragEnd: (u) => {
|
|
215
|
-
h(null),
|
|
215
|
+
h(null), v(u);
|
|
216
216
|
},
|
|
217
217
|
bordered: !1,
|
|
218
218
|
rounded: !1,
|
|
219
219
|
children: [
|
|
220
|
-
/* @__PURE__ */ o.jsx(fe, { loading: N, icon:
|
|
220
|
+
/* @__PURE__ */ o.jsx(fe, { loading: N, icon: O, level: J }),
|
|
221
221
|
/* @__PURE__ */ o.jsx(
|
|
222
222
|
ge,
|
|
223
223
|
{
|
|
@@ -232,9 +232,9 @@ const S = (t, n) => L(t, {
|
|
|
232
232
|
D,
|
|
233
233
|
{
|
|
234
234
|
"aria-label": "pluto-tabs__close",
|
|
235
|
-
onClick:
|
|
235
|
+
onClick: _,
|
|
236
236
|
className: r.E("close"),
|
|
237
|
-
children: /* @__PURE__ */ o.jsx(de, { unsavedChanges:
|
|
237
|
+
children: /* @__PURE__ */ o.jsx(de, { unsavedChanges: T })
|
|
238
238
|
}
|
|
239
239
|
)
|
|
240
240
|
]
|
|
@@ -274,7 +274,7 @@ const S = (t, n) => L(t, {
|
|
|
274
274
|
initial: e ?? ((f = t[0]) == null ? void 0 : f.tabKey) ?? "",
|
|
275
275
|
value: e,
|
|
276
276
|
onChange: l
|
|
277
|
-
}), c = H(e ?? s), i =
|
|
277
|
+
}), c = H(e ?? s), i = C(
|
|
278
278
|
(m) => {
|
|
279
279
|
a(m), c.current == null && (l == null || l(m));
|
|
280
280
|
},
|
|
@@ -297,15 +297,15 @@ const S = (t, n) => L(t, {
|
|
|
297
297
|
tabs: i,
|
|
298
298
|
onClose: f,
|
|
299
299
|
onDragStart: m,
|
|
300
|
-
onDragEnd:
|
|
300
|
+
onDragEnd: O,
|
|
301
301
|
onCreate: j,
|
|
302
302
|
onRename: E,
|
|
303
|
-
emptyContent:
|
|
303
|
+
emptyContent: T,
|
|
304
304
|
className: N,
|
|
305
305
|
onDragOver: g,
|
|
306
306
|
onDrop: b,
|
|
307
|
-
contextMenu:
|
|
308
|
-
addTooltip:
|
|
307
|
+
contextMenu: v,
|
|
308
|
+
addTooltip: _,
|
|
309
309
|
size: x = "medium",
|
|
310
310
|
direction: d = "y",
|
|
311
311
|
...h
|
|
@@ -324,14 +324,14 @@ const S = (t, n) => L(t, {
|
|
|
324
324
|
{
|
|
325
325
|
value: {
|
|
326
326
|
tabs: i,
|
|
327
|
-
emptyContent:
|
|
327
|
+
emptyContent: T,
|
|
328
328
|
selected: s,
|
|
329
329
|
closable: c,
|
|
330
330
|
content: e ?? n,
|
|
331
331
|
onSelect: l,
|
|
332
332
|
onClose: f,
|
|
333
333
|
onDragStart: m,
|
|
334
|
-
onDragEnd:
|
|
334
|
+
onDragEnd: O,
|
|
335
335
|
onRename: E,
|
|
336
336
|
onCreate: j,
|
|
337
337
|
onDrop: b
|
|
@@ -343,8 +343,8 @@ const S = (t, n) => L(t, {
|
|
|
343
343
|
size: x,
|
|
344
344
|
direction: K.swap(d),
|
|
345
345
|
altColor: a,
|
|
346
|
-
contextMenu:
|
|
347
|
-
addTooltip:
|
|
346
|
+
contextMenu: v,
|
|
347
|
+
addTooltip: _
|
|
348
348
|
}
|
|
349
349
|
),
|
|
350
350
|
/* @__PURE__ */ o.jsx(W, {})
|
|
@@ -373,7 +373,7 @@ const S = (t, n) => L(t, {
|
|
|
373
373
|
visible: p.boolean().optional(),
|
|
374
374
|
unsavedChanges: p.boolean().optional(),
|
|
375
375
|
loading: p.boolean().optional()
|
|
376
|
-
}),
|
|
376
|
+
}), ve = X.extend({
|
|
377
377
|
content: p.unknown().optional()
|
|
378
378
|
}), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
379
379
|
__proto__: null,
|
|
@@ -384,7 +384,7 @@ const S = (t, n) => L(t, {
|
|
|
384
384
|
rename: he,
|
|
385
385
|
resetSelection: xe,
|
|
386
386
|
specZ: X,
|
|
387
|
-
tabZ:
|
|
387
|
+
tabZ: ve,
|
|
388
388
|
useContext: M,
|
|
389
389
|
useStatic: je
|
|
390
390
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -395,6 +395,6 @@ export {
|
|
|
395
395
|
he as b,
|
|
396
396
|
$e as e,
|
|
397
397
|
z as r,
|
|
398
|
-
|
|
398
|
+
ve as t,
|
|
399
399
|
je as u
|
|
400
400
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { j as Se } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { J as As, $ as on, C as st, m as Jt,
|
|
2
|
+
import { J as As, $ as on, C as st, m as Jt, H as fo, K as zc, g as Rf, O as Ua } from "./css-Cnb9DQMD.js";
|
|
3
3
|
import { useRef as ch, useMemo as fh, useCallback as Ka, useLayoutEffect as IN, useEffect as zN, useState as Lf } from "react";
|
|
4
|
-
import { y as _i, f as mh, d as dh, T as ti } from "./Divider-
|
|
5
|
-
import { I as Wa, c as Rb, B as jN } from "./Toggle-
|
|
6
|
-
import { u as qN, g as rd, a as RN } from "./useVirtualCursorDragWebKit-
|
|
7
|
-
import { T as Yo } from "./Text-
|
|
8
|
-
import { C as LN } from "./Center-
|
|
9
|
-
import { P as Bi } from "./Pack-
|
|
10
|
-
import { S as Rn, p as HN } from "./Space-
|
|
4
|
+
import { y as _i, f as mh, d as dh, T as ti } from "./Divider-DqEkzRIY.js";
|
|
5
|
+
import { I as Wa, c as Rb, B as jN } from "./Toggle-BRuUrO2N.js";
|
|
6
|
+
import { u as qN, g as rd, a as RN } from "./useVirtualCursorDragWebKit-DTU2tUmp.js";
|
|
7
|
+
import { T as Yo } from "./Text-sH_NOelc.js";
|
|
8
|
+
import { C as LN } from "./Center-D0JeI7Ta.js";
|
|
9
|
+
import { P as Bi } from "./Pack-BozAEHBp.js";
|
|
10
|
+
import { S as Rn, p as HN } from "./Space-CyTH97CN.js";
|
|
11
11
|
import "./Stack-D50qN0Vu.js";
|
|
12
|
-
import { b as GN, a as VN } from "./Dropdown-
|
|
13
|
-
import { e as UN } from "./hooks-
|
|
12
|
+
import { b as GN, a as VN } from "./Dropdown-BrFL1eSc.js";
|
|
13
|
+
import { e as UN } from "./hooks-DjznxGgm.js";
|
|
14
14
|
import "./state-CjGemC7S.js";
|
|
15
|
-
import { L as Lb, S as Hb, C as Gb, H as WN, I as Vb } from "./Text-
|
|
16
|
-
import "./provider-
|
|
17
|
-
import { D as JN } from "./DateTime-
|
|
18
|
-
import { W as hh } from "./WithIcon-
|
|
19
|
-
import { T as KN } from "./Text-
|
|
20
|
-
import { i as YN } from "./Provider-
|
|
21
|
-
import "./eraser-
|
|
15
|
+
import { L as Lb, S as Hb, C as Gb, H as WN, I as Vb } from "./Text-BR4FW9Hy.js";
|
|
16
|
+
import "./provider-r5Ly36FI.js";
|
|
17
|
+
import { D as JN } from "./DateTime-r6hocEmI.js";
|
|
18
|
+
import { W as hh } from "./WithIcon-BhR6nwRh.js";
|
|
19
|
+
import { T as KN } from "./Text-8ps3Uw4T.js";
|
|
20
|
+
import { i as YN } from "./Provider-B86QO9NT.js";
|
|
21
|
+
import "./eraser-CK8SwEJa.js";
|
|
22
22
|
const ZN = (e) => e.preventDefault(), aoe = (e) => e.stopPropagation(), Ub = "cursor-style", ph = (e, t = document.head) => {
|
|
23
23
|
Wb();
|
|
24
24
|
const r = document.createElement("style");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./Center-
|
|
1
|
+
"use strict";const a=require("./Center-DuI3XH-Q.cjs"),i=require("./Pack-DeZUUdJM.cjs"),e=require("./Space-DvalhzRj.cjs"),r=require("./jsx-runtime-CITbqOLs.cjs");require("./Stack-BbwDtaE6.cjs");const u=require("./css-9iEiTRNL.cjs"),S=require("./toArray-BvVYuN_b.cjs"),l=({className:p,children:t,...s})=>{const c=S.A(t);return r.jsxRuntimeExports.jsxs(e.Space,{x:!0,className:u.CSS.B("stack"),...s,children:[r.jsxRuntimeExports.jsx("div",{}),c.map((n,o)=>r.jsxRuntimeExports.jsx("div",{children:n},o))]})},x=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:a.Center,Core:e.Core,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:i.Pack,Space:e.Space,Stack:l,parseDirection:e.parseDirection,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as o, I as e, T as t, a as r } from "./Toggle-
|
|
2
|
-
import { L as a } from "./Link-
|
|
1
|
+
import { B as o, I as e, T as t, a as r } from "./Toggle-BRuUrO2N.js";
|
|
2
|
+
import { L as a } from "./Link-C9GeoB0w.js";
|
|
3
3
|
const s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Button: o,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { j as X } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { J as xt, $ as Fe,
|
|
2
|
+
import { J as xt, $ as Fe, D as te, C as J, m as Dc, v as rh, L as th, a3 as nh } from "./css-Cnb9DQMD.js";
|
|
3
3
|
import f, { useCallback as Ae, isValidElement as ah, PureComponent as jr, Component as Fr, createContext as ih, use as oh, useMemo as Bc, useRef as _t } from "react";
|
|
4
4
|
import "./Stack-D50qN0Vu.js";
|
|
5
|
-
import { S as qr } from "./Space-
|
|
6
|
-
import { B as sh, I as uh } from "./Toggle-
|
|
7
|
-
import { b as lh, f as Io, u as ch } from "./Haul-
|
|
8
|
-
import { u as fh } from "./Provider-
|
|
9
|
-
import "./provider-
|
|
5
|
+
import { S as qr } from "./Space-CyTH97CN.js";
|
|
6
|
+
import { B as sh, I as uh } from "./Toggle-BRuUrO2N.js";
|
|
7
|
+
import { b as lh, f as Io, u as ch } from "./Haul-CEFSvdy9.js";
|
|
8
|
+
import { u as fh } from "./Provider-B86QO9NT.js";
|
|
9
|
+
import "./provider-r5Ly36FI.js";
|
|
10
10
|
import "./state-CjGemC7S.js";
|
|
11
|
-
import { d as $c, T as Lc, y as hh, E as ph } from "./Divider-
|
|
12
|
-
import { c as zr, g as nt } from "./useVirtualCursorDragWebKit-
|
|
11
|
+
import { d as $c, T as Lc, y as hh, E as ph } from "./Divider-DqEkzRIY.js";
|
|
12
|
+
import { c as zr, g as nt } from "./useVirtualCursorDragWebKit-DTU2tUmp.js";
|
|
13
13
|
import { z as de } from "zod";
|
|
14
|
-
import { u as dh } from "./useDebouncedCallback-
|
|
15
|
-
import { b as gh, a as vh } from "./Dropdown-
|
|
16
|
-
import { n as bh, a as yh } from "./hooks-
|
|
14
|
+
import { u as dh } from "./useDebouncedCallback-BG4I7mbT.js";
|
|
15
|
+
import { b as gh, a as vh } from "./Dropdown-BrFL1eSc.js";
|
|
16
|
+
import { n as bh, a as yh } from "./hooks-DjznxGgm.js";
|
|
17
17
|
const mh = ({
|
|
18
18
|
onMove: r,
|
|
19
19
|
onStart: e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as e, a, b as o, t as r } from "./provider-
|
|
2
|
-
import { P as t, S as s, t as S, u, a as i, b as m } from "./Provider-
|
|
3
|
-
import { u as p } from "./font-
|
|
1
|
+
import { S as e, a, b as o, t as r } from "./provider-r5Ly36FI.js";
|
|
2
|
+
import { P as t, S as s, t as S, u, a as i, b as m } from "./Provider-B86QO9NT.js";
|
|
3
|
+
import { u as p } from "./font-CjYcjBiv.js";
|
|
4
4
|
const N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
5
|
__proto__: null,
|
|
6
6
|
Provider: t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./provider-
|
|
1
|
+
"use strict";const r=require("./provider-aWtsGnV8.cjs"),e=require("./Provider-Cw0mSr2D.cjs"),t=require("./font-XlUAG1-r.cjs"),o=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,themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:t.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=o;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as i } from "./Center-
|
|
2
|
-
import { P as p } from "./Pack-
|
|
3
|
-
import { S as e, A as c, C as n, J as l, p as S, s as f } from "./Space-
|
|
1
|
+
import { C as i } from "./Center-D0JeI7Ta.js";
|
|
2
|
+
import { P as p } from "./Pack-BozAEHBp.js";
|
|
3
|
+
import { S as e, A as c, C as n, J as l, p as S, s as f } from "./Space-CyTH97CN.js";
|
|
4
4
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
5
5
|
import "./Stack-D50qN0Vu.js";
|
|
6
|
-
import { C as x } from "./css-
|
|
6
|
+
import { C as x } from "./css-Cnb9DQMD.js";
|
|
7
7
|
import { A as d } from "./toArray-B7nD2CTw.js";
|
|
8
8
|
const j = ({ className: u, children: s, ...o }) => {
|
|
9
9
|
const t = d(s);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { C as r } from "./css-
|
|
2
|
+
import { C as r } from "./css-Cnb9DQMD.js";
|
|
3
3
|
import { createContext as f, use as v, isValidElement as j, Fragment as h } from "react";
|
|
4
4
|
import "./Stack-D50qN0Vu.js";
|
|
5
|
-
import { S as m } from "./Space-
|
|
6
|
-
import { I as B, B as S } from "./Toggle-
|
|
7
|
-
import { D as b, W as z } from "./WithIcon-
|
|
8
|
-
import "./Divider-
|
|
5
|
+
import { S as m } from "./Space-CyTH97CN.js";
|
|
6
|
+
import { I as B, B as S } from "./Toggle-BRuUrO2N.js";
|
|
7
|
+
import { D as b, W as z } from "./WithIcon-BhR6nwRh.js";
|
|
8
|
+
import "./Divider-DqEkzRIY.js";
|
|
9
9
|
import { a as d } from "./state-CjGemC7S.js";
|
|
10
10
|
import { A as C } from "./toArray-B7nD2CTw.js";
|
|
11
11
|
const p = f({ divided: !1, level: "h1" }), l = () => v(p), g = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./css-
|
|
1
|
+
"use strict";const u=require("./css-9iEiTRNL.cjs"),G=require("./toArray-BvVYuN_b.cjs"),b=require("./jsx-runtime-CITbqOLs.cjs"),E=require("./Divider-Dut8qPee.cjs"),m=require("react"),D=require("./Toggle-C0lZDyeo.cjs"),pe=require("./Link-B9ZGvoBU.cjs"),ge=require("./Haul-C6i2oI7z.cjs"),A=require("./Text-CMTkSEWx.cjs");require("./Stack-BbwDtaE6.cjs");const xe=require("./state-_FFrG5nH.cjs"),Z=require("./ContextMenu-HpMLd1Ht.cjs");require("./provider-aWtsGnV8.cjs");const Ce=require("./hooks-B5aLaWzS.cjs"),K=({className:e,enabledLoc:t,disabledLoc:n,enabled:r,...l})=>b.jsxRuntimeExports.jsx(E.y4.Caret.Up,{className:u.CSS(u.CSS.B("caret-animated"),u.CSS.loc(r?t:n),e),...l}),Se=Object.freeze(Object.defineProperty({__proto__:null,Animated:K},Symbol.toStringTag,{value:"Module"})),ee=(e,t)=>t.includes(e.key),te=(e,t)=>u.F.stringsWithNumbers(e.name,t.name),z=(e,t=te)=>{typeof t=="function"&&e.sort(t);let n=!1;for(let r=0;r<e.length;r++){const l=e[r];l.forcePosition!=null&&r!==l.forcePosition&&(n=!0,e.splice(r,1),e.splice(l.forcePosition,0,l))}return n?z(e,!1):e},F=({nodes:e,expanded:t,depth:n=0,sort:r,path:l=""})=>{n===0&&r!=!1&&(e=e.sort((i,c)=>i.name.localeCompare(c.name)));const s=[];return e.forEach((i,c)=>{const d=`${l}${i.key}/`,f=ee(i,t);s.push({...i,depth:n,expanded:f,index:c,path:d}),f&&i.children!=null&&(i.children=z(i.children,r),s.push(...F({nodes:i.children,expanded:t,depth:n+1,sort:r,path:d})))}),s},ye=({tree:e,destination:t,keys:n})=>(n=G.A(n),t==null?[...le({tree:e,keys:n}),...e.filter(l=>!n.includes(l.key))]:(n.forEach(r=>{const l=N({tree:e,key:r});l!=null&&(ne({tree:e,keys:r}),re({tree:e,destination:t,additions:l}))}),e)),ne=({tree:e,keys:t})=>(t=G.A(t),t.forEach(n=>{var l;const r=e.findIndex(s=>s.key===n);if(r!==-1)e.splice(r,1);else{const s=_({tree:e,key:n});s!=null&&(s.children=(l=s.children)==null?void 0:l.filter(i=>i.key!==n))}}),e),re=({tree:e,destination:t,additions:n})=>{n=G.A(n);const r=u.c$1.by(n,i=>i.key,!1),l=r.map(i=>i.key);if(t==null)return[...r,...e.filter(i=>!l.includes(i.key))];const s=N({tree:e,key:t});if(s==null)throw new Error(`Could not find node with key ${t}`);return s.children??(s.children=[]),s.children=[...r,...s.children.filter(i=>!l.includes(i.key))],e},be=({tree:e,key:t,updater:n,throwOnMissing:r=!0})=>{var i,c;const l=N({tree:e,key:t});if(l==null){if(r)throw new Error(`Could not find node with key ${t}`);return e}const s=_({tree:e,key:t});if(s!=null){const d=(i=s.children)==null?void 0:i.findIndex(f=>f.key===t);d!=null&&d!==-1&&((c=s.children)==null||c.splice(d,1,n(l)))}else e.splice(e.findIndex(d=>d.key===t),1,n(l));return e},je=({tree:e,parent:t,updater:n,throwOnMissing:r=!0})=>{const l=N({tree:e,key:t});if(l==null){if(r)throw new Error(`Could not find node with key ${t}`);return e}return l.children=n(l.children??[]),e},N=({tree:e,key:t,depth:n=0})=>{for(let r=0;r<e.length;r++){const l=e[r];if(l.key===t){const s=l;return s.depth=n,s.position=r,s}if(l.children!=null){const s=N({tree:l.children,key:t,depth:n+1});if(s!=null)return s}}return null},le=({tree:e,keys:t})=>{const n=[];for(const r of t){const l=N({tree:e,key:r});l!=null&&n.push(l)}return n},_=({tree:e,key:t})=>{for(const n of e)if(n.children!=null){if(n.children.some(l=>l.key===t))return n;const r=_({tree:n.children,key:t});if(r!=null)return r}return null},se=e=>e.map(t=>({...t,children:se(t.children??[])})),ie=(...e)=>{const t=[];return e.forEach(n=>{t.push(n),n.children!=null&&t.push(...ie(...n.children))}),t},Ee=e=>{if(e.length===0)return[];let t=1/0;for(const{depth:n}of e)n<t&&(t=n);return e.filter(({depth:n})=>n===t)},U="tree-item",Ne=[["Shift"]],Te=({onExpand:e,nodes:t,initialExpanded:n=[],sort:r,selected:l,onSelectedChange:s})=>{const[i,c,d]=E.useCombinedStateAndRef(n),[f,j]=xe.usePassthrough({initial:[],value:l,onChange:s}),T=m.useMemo(()=>F({nodes:t,expanded:i,sort:r}),[t,i,r]),R=E.useSyncedRef(T),$=Ce.useHeldRef({triggers:Ne}),k=m.useCallback((h,{clicked:o})=>{j(h);const p=R.current.find(y=>y.key===o);if((p==null?void 0:p.hasChildren)===!1||o==null||$.current.held)return;const S=d.current,C=S.some(y=>y===o)?"contract":"expand";let v;C==="contract"?v=S.filter(y=>y!==o):v=[...S,o],c(v),e==null||e({current:v,action:C,clicked:o})},[e,R,c,j]),w=m.useCallback(h=>{c(o=>u.c$1.unique([...o,h])),e==null||e({current:i,action:"expand",clicked:h})},[c]),a=m.useCallback((...h)=>{c(o=>o.filter(p=>!h.includes(p))),h.forEach(o=>{e==null||e({current:i,action:"contract",clicked:o})})},[c]),q=m.useCallback(()=>c([]),[c]);return{onSelect:k,selected:f,expanded:i,contract:a,expand:w,nodes:T,clearExpanded:q}},W=m.memo(({entry:e,selected:t,onSelect:n,onDrop:r,onRename:l,onSuccessfulDrop:s,onDoubleClick:i,loading:c=!1,useMargin:d=!0,translate:f,children:j,index:T,sourceIndex:R,className:$,hovered:k,...w})=>{const{key:a,hasChildren:q=!1,allowRename:h=!1,children:o,icon:p,name:S,depth:C,expanded:v,href:y,haulItems:X=[]}=e,{getSelected:ce}=A.useSelectionUtils(),{getSourceData:ae}=A.useDataUtils(),L=q||o!=null&&o.length>0,O=[];L&&O.push(b.jsxRuntimeExports.jsx(K,{enabled:v,enabledLoc:"bottom",disabledLoc:"right"},"caret")),p!=null&&O.push(p);const Y=[];c&&Y.push(b.jsxRuntimeExports.jsx(E.y4.Loading,{className:u.CSS.B("loading-indicator")},"loading-indicator"));const[oe,P]=m.useState(!1),{startDrag:V,...de}=ge.useDragAndDrop({type:"Tree.Item",key:a,canDrop:m.useCallback(({items:g,source:B})=>{const x=g.map(I=>I.key);return P(!1),B.type==="Tree.Item"&&!x.includes(a)},[]),onDrop:m.useCallback(g=>(r==null?void 0:r(a,g))??[],[a,r]),onDragOver:m.useCallback(()=>P(!0),[])}),ue=()=>{const g=ce(),B=ae().filter(x=>g.includes(x.key));if(g.includes(a)){const x=B.map(({key:I,haulItems:H,depth:J})=>[{type:U,key:I,data:{depth:J}},...(H==null?void 0:H.map(Q=>({...Q,data:{...Q.data,depth:J}})))??[]]).flat();return V(x,I=>s==null?void 0:s(a,I))}V([{type:U,key:a,data:{depth:C}},...X.map(x=>({...x,data:{...x.data,depth:C}}))],x=>s==null?void 0:s(a,x))},fe=d?"marginLeft":"paddingLeft";let M=C*2.5+1.5;L&&(M-=.5);const he={id:a,variant:"text",draggable:X.length>0,className:u.CSS(u.CSS.BE("list","item"),Z.CONTEXT_TARGET,oe&&u.CSS.M("dragging-over"),t&&Z.CONTEXT_SELECTED,u.CSS.selected(t),L&&u.CSS.M("has-children"),u.CSS.BM("depth",C.toString()),$),onDragLeave:()=>P(!1),onDragStart:ue,onClick:()=>n==null?void 0:n(a),style:{border:"none",position:f!=null?"absolute":"relative",transform:`translateY(${f}px)`,[fe]:`${M}rem`,"--pluto-tree-indicator-offset":`${M-1.5}rem`},startIcon:O,iconSpacing:"small",noWrap:!0,endIcon:Y,onDoubleClick:g=>i==null?void 0:i(a,g),href:y,...de},me=y!=null?pe.Link:D.Button;return b.jsxRuntimeExports.jsx(me,{...he,align:"center",...w,children:j!=null?j({key:a,loading:c,useMargin:d,onDrop:r,onRename:l,onSuccessfulDrop:s,onDoubleClick:i,entry:e,selected:t,onSelect:n,index:T,sourceIndex:R,hovered:k}):b.jsxRuntimeExports.jsx(E.MaybeEditable,{id:`text-${a}`,level:"p",allowDoubleClick:!1,value:S,disabled:!h,onChange:g=>l==null?void 0:l(a,g)})})});W.displayName="Tree.Item";const Re=D.componentRenderProp(W),qe=({nodes:e,selected:t=[],onSelect:n,onDrop:r,onRename:l,onSuccessfulDrop:s,onDoubleClick:i,className:c,children:d=Re,itemHeight:f=27,useMargin:j=!1,showRules:T=!1,virtual:R=!0,clearExpanded:$,expand:k,contract:w,emptyContent:a,loading:q,...h})=>{const o=R?A.Core.Virtual:A.Core,p=m.useCallback(({key:S,...C})=>d({...C,key:S,loading:q===S,useMargin:j,onDrop:r,onRename:l,onSuccessfulDrop:s,onDoubleClick:i}),[d,q,r,i,l,s]);return b.jsxRuntimeExports.jsx(A.List,{data:e,emptyContent:a,children:b.jsxRuntimeExports.jsx(A.Selector,{value:t,onChange:n,allowMultiple:!0,replaceOnSingle:!0,children:b.jsxRuntimeExports.jsx(o,{itemHeight:f,className:u.CSS(c,u.CSS.B("tree"),T&&u.CSS.M("rules")),...h,children:p})})})},ve=(e,t)=>E.edit(`text-${e}`,t),Ae=e=>E.asyncEdit(`text-${e}`),Ie=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:W,HAUL_TYPE:U,Tree:qe,asyncRename:Ae,deepCopy:se,defaultSort:te,findNode:N,findNodeParent:_,findNodes:le,flatten:F,getAllNodesOfMinDepth:Ee,getDescendants:ie,moveNode:ye,removeNode:ne,setNode:re,shouldExpand:ee,sortAndSplice:z,startRenaming:ve,updateNode:be,updateNodeChildren:je,use:Te},Symbol.toStringTag,{value:"Module"}));exports.Animated=K;exports.Animated$1=Se;exports.external=Ie;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./ContextMenu-
|
|
1
|
+
"use strict";const t=require("./ContextMenu-HpMLd1Ht.cjs"),e=require("./Item-DSBs9VLu.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,useContext:e.useContext,useContextMenu:t.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),n=require("./css-
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),n=require("./css-9iEiTRNL.cjs"),a=require("react");require("./Stack-BbwDtaE6.cjs");const x=require("./Space-DvalhzRj.cjs"),d=require("./Toggle-C0lZDyeo.cjs"),S=require("./WithIcon-BgS5shNZ.cjs");require("./Divider-Dut8qPee.cjs");const j=require("./state-_FFrG5nH.cjs"),R=require("./toArray-BvVYuN_b.cjs"),m=a.createContext({divided:!1,level:"h1"}),l=()=>a.use(m),p=({className:t,level:s="h1",divided:e=!1,...r})=>o.jsxRuntimeExports.jsx(m,{value:{level:s,divided:e},children:o.jsxRuntimeExports.jsx(x.Space,{el:"header",x:!0,justify:"spaceBetween",className:n.CSS(n.CSS.B("header"),n.CSS.bordered("bottom"),e&&n.CSS.BM("header","divided"),t),...r})}),v=({children:t=[],...s})=>{const{level:e,divided:r}=l();return o.jsxRuntimeExports.jsx(x.Space,{x:!0,size:"small",align:"center",className:n.CSS.BE("header","actions"),...s,children:R.A(t).map((i,c)=>o.jsxRuntimeExports.jsx(q,{index:c,level:e,divided:r,children:i},c))})},q=({index:t,level:s,children:e,divided:r})=>{let i=e;if(!a.isValidElement(e)){const{onClick:c,key:h,...E}=e;i=o.jsxRuntimeExports.jsx(d.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),c==null||c(u)},size:j.LevelComponentSizes[s],...E},h??t)}return o.jsxRuntimeExports.jsxs(a.Fragment,{children:[r&&o.jsxRuntimeExports.jsx(S.Divider,{}),i]},t)},C=({children:t="",className:s,onClick:e,...r})=>{const{level:i}=l();return o.jsxRuntimeExports.jsx(d.Button,{variant:"text",size:j.LevelComponentSizes[i],onClick:e,className:n.CSS(n.CSS.B("header-button-title"),s),sharp:!0,...r,children:t})},B=({className:t,level:s,...e})=>{const{level:r,divided:i}=l();return o.jsxRuntimeExports.jsx(S.WithIcon,{className:n.CSS(n.CSS.BE("header","text"),t),level:s??r,divided:i,size:1.5,...e})},f=Object.freeze(Object.defineProperty({__proto__:null,Actions:v,ButtonTitle:C,Header:p,Title:B,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=v;exports.ButtonTitle=C;exports.Header=p;exports.external=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),j=require("./Divider-
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),j=require("./Divider-Dut8qPee.cjs"),r=require("./css-9iEiTRNL.cjs"),i=require("react");require("./Stack-BbwDtaE6.cjs");const O=require("./Space-DvalhzRj.cjs"),Q=require("./Pack-DeZUUdJM.cjs"),M=require("./Toggle-C0lZDyeo.cjs"),Y=require("./deep-BNa3STCp.cjs"),q=require("./ContextMenu-HpMLd1Ht.cjs");require("./Item-DSBs9VLu.cjs");const z=require("./state-_FFrG5nH.cjs"),S=require("zod"),_=(t,s)=>i.cloneElement(t,{className:r.CSS(t.props.className,r.CSS.B("sub"),r.CSS.M(s))}),P=({topRight:t,topLeft:s,bottomLeft:e,bottomRight:l,children:n,className:c,...u})=>o.jsxRuntimeExports.jsxs("div",{className:r.CSS(c,r.CSS.B("icon")),...u,children:[t&&_(t,"topRight"),s&&_(s,"topLeft"),e&&_(e,"bottomLeft"),l&&_(l,"bottomRight"),n]}),K=t=>o.jsxRuntimeExports.jsx(P,{topRight:o.jsxRuntimeExports.jsx(j.y4.Add,{}),...t}),ee=t=>o.jsxRuntimeExports.jsx(P,{topRight:o.jsxRuntimeExports.jsx(j.y4.Import,{}),...t}),B=(t,s)=>{if(t!=null){if(typeof t=="string")try{const e=Y.x.get(j.y4,t);return o.jsxRuntimeExports.jsx(e,{...s})}catch{throw new Error(`Unable to find icon with path ${t} in registry`)}return i.cloneElement(t,s)}},te=Object.freeze(Object.defineProperty({__proto__:null,Create:K,Icon:P,Import:ee,resolve:B},Symbol.toStringTag,{value:"Module"})),L=i.createContext({tabs:[]}),$=L,I=()=>i.use(L),T="tabs-selector",D=({className:t,altColor:s=!1,size:e="medium",direction:l="x",contextMenu:n,addTooltip:c,...u})=>{const{tabs:a,selected:m,onSelect:d,onClose:y,closable:h,onDragEnd:b,onDragStart:N,onDrop:v,onRename:C,onCreate:f}=I(),R=q.useContextMenu(),[k,g]=i.useState(!1);return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[n!=null&&o.jsxRuntimeExports.jsx(q.ContextMenu,{style:{height:"fit-content"},...R,menu:n}),o.jsxRuntimeExports.jsxs(O.Space,{className:r.CSS(r.CSS.B(T),r.CSS.size(e),t,R.className,k&&r.CSS.M("drag-over")),align:"center",justify:"spaceBetween",empty:!0,direction:l,onContextMenu:R.open,onDrop:v,...u,children:[o.jsxRuntimeExports.jsxs(O.Space,{direction:l,className:r.CSS.BE(T,"tabs"),empty:!0,children:[a.map(p=>o.jsxRuntimeExports.jsx(oe,{selected:m,altColor:s,onSelect:d,onClose:y,onDragStart:N,onDragEnd:b,onRename:C,closable:p.closable??h,size:e,...p},p.tabKey)),v!=null&&o.jsxRuntimeExports.jsx(O.Space,{onDragOver:()=>g(!0),onDragLeave:()=>g(!1),onDragEnd:()=>g(!1),onDrop:()=>g(!1),grow:!0})]}),f!=null&&o.jsxRuntimeExports.jsx(O.Space,{className:r.CSS.BE(T,"actions"),children:o.jsxRuntimeExports.jsx(M.Icon,{size:e,sharp:!0,onClick:f,tooltip:c,children:o.jsxRuntimeExports.jsx(j.y4.Add,{})})})]})]})},se=({unsavedChanges:t,...s})=>{const e=o.jsxRuntimeExports.jsx(j.y4.Close,{...s});return t?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(j.y4.Circle,{}),e]}):e},ne=t=>{const s=r.$t.construct(t.target.closest(".pluto-tabs-selector__btn")),e=r.J.construct(t);return r.b.Scale.scale(r.$t.left(s),r.$t.right(s)).scale(0,1).pos(e.x)<.5?"left":"right"},re=({loading:t,icon:s,level:e="p"})=>(t&&(s=o.jsxRuntimeExports.jsx(j.y4.Loading,{})),B(s,{className:r.CSS.BE(T,"icon"),style:{color:r.CSS.shadeVar(9),height:r.CSS.levelSizeVar(e),width:r.CSS.levelSizeVar(e)}})),oe=({selected:t,altColor:s=!1,onSelect:e,onClose:l,tabKey:n,name:c,onDragStart:u,onDragEnd:a,onRename:m,closable:d=!0,icon:y,size:h,editable:b=!0,unsavedChanges:N=!1,loading:v=!1,onDrop:C})=>{const f=i.useCallback(x=>u==null?void 0:u(x,{tabKey:n,name:c}),[u,n,c]),R=i.useCallback(x=>a==null?void 0:a(x,{tabKey:n,name:c}),[a,n,c]),k=i.useCallback(x=>{x.preventDefault(),x.stopPropagation(),l==null||l(n)},[l,n]),g=i.useCallback(()=>e==null?void 0:e(n),[e,n]),[p,E]=i.useState(null),J=i.useCallback(x=>{E(ne(x))},[E,C]),U=i.useCallback(x=>{C==null||C(x),E(null)},[C,E]),w=t===n,H=z.ComponentSizeLevels[h];return o.jsxRuntimeExports.jsxs(Q.Pack,{size:h,id:n,className:r.CSS(r.CSS.BE(T,"btn"),q.CONTEXT_TARGET,w&&q.CONTEXT_SELECTED,r.CSS.selected(w),r.CSS.altColor(s),d&&l!=null&&r.CSS.M("closable"),r.CSS.editable(b&&m!=null),p!=null&&r.CSS.M("drag-over"),p!=null&&r.CSS.loc(p)),draggable:!0,x:!0,justify:"center",align:"center",onClick:g,onDragOver:J,onDrop:U,onDragLeave:()=>E(null),onDragStart:f,onDragEnd:x=>{E(null),R(x)},bordered:!1,rounded:!1,children:[o.jsxRuntimeExports.jsx(re,{loading:v,icon:y,level:H}),o.jsxRuntimeExports.jsx(le,{name:c,tabKey:n,onRename:m,editable:b,level:z.ComponentSizeLevels[h]}),d&&l!=null&&o.jsxRuntimeExports.jsx(M.Icon,{"aria-label":"pluto-tabs__close",onClick:k,className:r.CSS.E("close"),children:o.jsxRuntimeExports.jsx(se,{unsavedChanges:N})})]})},le=({onRename:t,name:s,tabKey:e,editable:l=!0,...n})=>t==null||!l?o.jsxRuntimeExports.jsx(j.Text,{noWrap:!0,...n,children:s}):o.jsxRuntimeExports.jsx(j.Editable,{id:r.CSS.B(`tab-${e}`),onChange:c=>t(e,c),value:s,noWrap:!0,...n}),A=(t="",s=[])=>{var e;if(s.length!==0)return s.find(l=>l.tabKey===t)!=null?t:(e=s[s.length-1])==null?void 0:e.tabKey},V=(t,s,e)=>{if(s=s.trim(),s.length===0)return e;const l=e.find(n=>n.tabKey===t);return l==null||l.name===s?e:e.map(n=>n.tabKey===t?{...n,name:s}:n)},Z=({tabs:t,content:s,selected:e,onSelect:l})=>{var m;const[n,c]=z.usePurePassthrough({initial:e??((m=t[0])==null?void 0:m.tabKey)??"",value:e,onChange:l}),u=j.useSyncedRef(e??n),a=i.useCallback(d=>{c(d),u.current==null&&(l==null||l(d))},[n,l]);return{tabs:t,selected:n,content:s,onSelect:a}},F=({id:t,content:s,children:e,onSelect:l,selected:n,selectedAltColor:c,closable:u,tabs:a,onClose:m,onDragStart:d,onDragEnd:y,onCreate:h,onRename:b,emptyContent:N,className:v,onDragOver:C,onDrop:f,contextMenu:R,addTooltip:k,size:g="medium",direction:p="y",...E})=>o.jsxRuntimeExports.jsx(O.Space,{id:t,empty:!0,className:r.CSS(r.CSS.B("tabs"),v),onDragOver:C,onDrop:f,direction:p,...E,children:o.jsxRuntimeExports.jsxs($,{value:{tabs:a,emptyContent:N,selected:n,closable:u,content:e??s,onSelect:l,onClose:m,onDragStart:d,onDragEnd:y,onRename:b,onCreate:h,onDrop:f},children:[o.jsxRuntimeExports.jsx(D,{size:g,direction:r.g.swap(p),altColor:c,contextMenu:R,addTooltip:k}),o.jsxRuntimeExports.jsx(W,{})]})}),W=()=>{const{tabs:t,selected:s,content:e,emptyContent:l,onSelect:n}=I();let c=null;const u=t.find(a=>a.tabKey===s);return s==null||u==null?c=l??null:e!=null?typeof e=="function"?c=e(u):c=e:u.content!=null&&(c=u.content),o.jsxRuntimeExports.jsx("div",{className:r.CSS.B("tabs-content"),onClick:()=>s!=null&&(n==null?void 0:n(s)),children:c})},X=S.z.object({tabKey:S.z.string(),name:S.z.string(),closable:S.z.boolean().optional(),icon:S.z.unknown().optional(),editable:S.z.boolean().optional(),visible:S.z.boolean().optional(),unsavedChanges:S.z.boolean().optional(),loading:S.z.boolean().optional()}),G=X.extend({content:S.z.unknown().optional()}),ce=Object.freeze(Object.defineProperty({__proto__:null,Content:W,Provider:$,Selector:D,Tabs:F,rename:V,resetSelection:A,specZ:X,tabZ:G,useContext:I,useStatic:Z},Symbol.toStringTag,{value:"Module"}));exports.Icon=te;exports.Tabs=F;exports.external=ce;exports.rename=V;exports.resetSelection=A;exports.resolve=B;exports.tabZ=G;exports.useStatic=Z;
|