@synnaxlabs/pluto 0.34.1 → 0.35.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-CnvOerW9.js → Animated-C7JTBH0T.js} +6 -6
- package/dist/{Animated-Ck87AGOu.cjs → Animated-D4IT49PS.cjs} +1 -1
- package/dist/{Item--wCat2DH.js → Item-4yG7GmwK.js} +23 -23
- package/dist/{Item-DuNQFmgk.cjs → Item-DuYEON-n.cjs} +1 -1
- package/dist/{Keyboard-DPs95Etp.cjs → Keyboard-BPoxRive.cjs} +1 -1
- package/dist/{Keyboard-Dh_Fhwg4.js → Keyboard-Csje8Cyn.js} +2 -2
- package/dist/LinePlot-DbXPZbQH.cjs +34 -0
- package/dist/{LinePlot-DN8KOMtR.js → LinePlot-DqoSTxNs.js} +2630 -2365
- package/dist/{Link-BHtl4aby.cjs → Link-BRv9hhIc.cjs} +1 -1
- package/dist/{Link-CDG2-g6A.js → Link-Crud0q_J.js} +1 -1
- package/dist/{List-BjimX8fM.js → List-Cuz80sgI.js} +6 -6
- package/dist/{List-C8vXIE2j.cjs → List-Pyj0u9YT.cjs} +1 -1
- package/dist/{Pack-D6eMgf33.js → Pack-BzCJQZ58.js} +1 -1
- package/dist/{Pack-DijAGcm_.cjs → Pack-Dvf8sQVK.cjs} +1 -1
- package/dist/Text-BJ2Pml4B.cjs +1 -0
- package/dist/{Text-CzgVM_22.js → Text-DMMYBs-R.js} +12 -12
- package/dist/{Toggle-Cdu7WaiC.js → Toggle-CLkPIiQK.js} +10438 -10080
- package/dist/Toggle-DnW_7Wr_.cjs +143 -0
- package/dist/{Video-DYSz9XOF.js → Video-BGyV37o3.js} +1 -1
- package/dist/{Video-BgDjKMJx.cjs → Video-CGe5Hscl.cjs} +1 -1
- package/dist/{aggregator-DzdAnRwI.js → aggregator-23mu0FOF.js} +2322 -2177
- package/dist/aggregator-y-jNJhKX.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-BghghSL0.cjs +1 -0
- package/dist/css-DJCM-h5_.js +1178 -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 +75 -62
- package/dist/{external-k3Jbrj0m.js → external-0a9KHHwz.js} +13 -13
- package/dist/external-3DAfrFCZ.cjs +1 -0
- package/dist/{external-eI1p10Vf.cjs → external-B7Vpq1ol.cjs} +1 -1
- package/dist/{external-DRHWURjA.cjs → external-BV_9eXZJ.cjs} +1 -1
- package/dist/{external-lgZ2Gmbx.js → external-BZwFy-XX.js} +16 -16
- package/dist/{external-CoQwrjWl.js → external-CIH3tMhP.js} +29 -29
- package/dist/{external-BOIjtEGO.js → external-Cf5a9Ia8.js} +2 -2
- package/dist/{external-FVIwMFDr.js → external-CgpiH-10.js} +102 -102
- package/dist/{external-B_-ZrYaG.js → external-Cgq0p0a8.js} +42 -42
- package/dist/{external-D9Q5Xjko.js → external-Ci-UP3Vu.js} +2 -2
- package/dist/external-CqLAQBcO.cjs +1 -0
- package/dist/{external-Cc9o20Al.cjs → external-Ctvxtwfh.cjs} +1 -1
- package/dist/{external-CAIE4G3V.cjs → external-D-PsJ1E5.cjs} +1 -1
- package/dist/external-D7FmaiqY.js +248 -0
- package/dist/{external-DvRQ7lJU.js → external-DAbicix6.js} +2 -2
- package/dist/external-DVF3ZJ4z.js +32 -0
- package/dist/external-De9tKPlO.js +76 -0
- package/dist/{external-CYsmC4uZ.cjs → external-Dk1cXh1i.cjs} +1 -1
- package/dist/{external-mtlL4Z3a.cjs → external-DtnrBHvV.cjs} +1 -1
- package/dist/{external-DVlGiTKE.cjs → external-ZxIaRZdb.cjs} +1 -1
- package/dist/{external-BbS4QDTb.cjs → external-iiNZw96o.cjs} +1 -1
- package/dist/{external-DsKRFJxV.cjs → external-t43feeRt.cjs} +1 -1
- package/dist/{external-mE-a2ecU.js → external-xhGCeglf.js} +1 -1
- package/dist/{external-CjmMj11F.cjs → external-xtDHiIUX.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +7487 -7082
- 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/breadcrumb/Breadcrumb.d.ts +10 -2
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +2 -0
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +2 -0
- package/dist/src/button/Icon.d.ts.map +1 -1
- package/dist/src/color/GradientPicker.d.ts +10 -0
- package/dist/src/color/GradientPicker.d.ts.map +1 -0
- package/dist/src/color/Picker.d.ts +9 -0
- package/dist/src/color/Picker.d.ts.map +1 -0
- package/dist/src/color/Provider.d.ts +139 -0
- package/dist/src/color/Provider.d.ts.map +1 -0
- package/dist/src/color/Swatch.d.ts +13 -0
- package/dist/src/color/Swatch.d.ts.map +1 -0
- package/dist/src/color/core/external.d.ts +4 -0
- package/dist/src/color/core/external.d.ts.map +1 -0
- package/dist/src/color/core/gradient.d.ts +58 -0
- package/dist/src/color/core/gradient.d.ts.map +1 -0
- package/dist/src/color/core/index.d.ts +1 -2
- package/dist/src/color/core/index.d.ts.map +1 -1
- package/dist/src/color/core/palette.d.ts +74 -0
- package/dist/src/color/core/palette.d.ts.map +1 -0
- package/dist/src/color/external.d.ts +4 -1
- package/dist/src/color/external.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts +0 -1
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/useDelayedState.d.ts +11 -0
- package/dist/src/hooks/useDelayedState.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/nav/Drawer.d.ts.map +1 -1
- package/dist/src/notation/Select.d.ts +8 -0
- package/dist/src/notation/Select.d.ts.map +1 -0
- package/dist/src/notation/external.d.ts +3 -0
- package/dist/src/notation/external.d.ts.map +1 -0
- package/dist/src/notation/index.d.ts +2 -0
- package/dist/src/notation/index.d.ts.map +1 -0
- package/dist/src/notation/notation.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts +3 -1
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/select/Button.d.ts +5 -3
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/Direction.d.ts +2 -1
- package/dist/src/select/Direction.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts +1 -1
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/status/Circle.d.ts +1 -1
- package/dist/src/status/Circle.d.ts.map +1 -1
- package/dist/src/table/Table.d.ts +30 -0
- package/dist/src/table/Table.d.ts.map +1 -0
- package/dist/src/table/aether/Table.d.ts +493 -0
- package/dist/src/table/aether/Table.d.ts.map +1 -0
- package/dist/src/table/aether/index.d.ts +2 -0
- package/dist/src/table/aether/index.d.ts.map +1 -0
- package/dist/src/table/cells/Cells.d.ts +191 -0
- package/dist/src/table/cells/Cells.d.ts.map +1 -0
- package/dist/src/table/cells/Forms.d.ts +7 -0
- package/dist/src/table/cells/Forms.d.ts.map +1 -0
- package/dist/src/table/cells/index.d.ts +2 -0
- package/dist/src/table/cells/index.d.ts.map +1 -0
- package/dist/src/table/cells/registry.d.ts +17 -0
- package/dist/src/table/cells/registry.d.ts.map +1 -0
- package/dist/src/table/external.d.ts +2 -0
- package/dist/src/table/external.d.ts.map +1 -0
- package/dist/src/table/index.d.ts +2 -0
- package/dist/src/table/index.d.ts.map +1 -0
- package/dist/src/telem/aether/pipeline.d.ts +35 -24
- package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
- package/dist/src/telem/aether/provider.d.ts +7 -6
- package/dist/src/telem/aether/provider.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +22 -1
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +217 -2
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts +2 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Select.d.ts +19 -0
- package/dist/src/text/Select.d.ts.map +1 -0
- package/dist/src/text/core/types.d.ts +2 -1
- package/dist/src/text/core/types.d.ts.map +1 -1
- package/dist/src/text/external.d.ts +1 -1
- package/dist/src/text/external.d.ts.map +1 -1
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +375 -0
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +127 -0
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/vis/axis/canvas.d.ts +11 -0
- package/dist/src/vis/axis/canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts +2 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +17 -0
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/Edge.d.ts +3 -2
- package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/paths.d.ts +20 -0
- package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -0
- package/dist/src/vis/diagram/external.d.ts +1 -0
- package/dist/src/vis/diagram/external.d.ts.map +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts +19 -0
- package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/render/context.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +1 -0
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Grid.d.ts +16 -0
- package/dist/src/vis/schematic/Grid.d.ts.map +1 -0
- package/dist/src/vis/schematic/Symbols.d.ts +255 -415
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +16 -12
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +2 -2
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/value/Form.d.ts +9 -0
- package/dist/src/vis/value/Form.d.ts.map +1 -0
- package/dist/src/vis/value/aether/value.d.ts +167 -0
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/external.d.ts +1 -0
- package/dist/src/vis/value/external.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +56 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/src/workMain.d.ts +2 -0
- package/dist/src/workMain.d.ts.map +1 -0
- 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-CR-P9eLW.cjs → units-9h1yAbxY.cjs} +1 -1
- package/dist/{units-rb5QAWjs.js → units-D19WggGS.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +8 -7
- package/dist/LinePlot-44K5K51b.cjs +0 -34
- package/dist/Text-Cg0q7seY.cjs +0 -1
- package/dist/Toggle-CP9KtybX.cjs +0 -143
- package/dist/aggregator-C0Ab25_o.cjs +0 -67
- package/dist/css-B4FcyECk.js +0 -1112
- package/dist/css-Dh7n0EGs.cjs +0 -1
- package/dist/external-B72rRj4o.js +0 -76
- package/dist/external-CsqyDUsJ.js +0 -96
- package/dist/external-Dm2-owlq.cjs +0 -1
- package/dist/external-Yf8Lv9AU.js +0 -248
- package/dist/external-gz4sf3pG.cjs +0 -1
- package/dist/src/color/Picker/Picker.d.ts +0 -7
- package/dist/src/color/Picker/Picker.d.ts.map +0 -1
- package/dist/src/color/Picker/index.d.ts +0 -2
- package/dist/src/color/Picker/index.d.ts.map +0 -1
- package/dist/src/color/Swatch/Swatch.d.ts +0 -10
- package/dist/src/color/Swatch/Swatch.d.ts.map +0 -1
- package/dist/src/color/Swatch/index.d.ts +0 -2
- package/dist/src/color/Swatch/index.d.ts.map +0 -1
- package/dist/src/notation/SelectNotation.d.ts +0 -12
- package/dist/src/notation/SelectNotation.d.ts.map +0 -1
- package/dist/src/text/SelectLevel.d.ts +0 -12
- package/dist/src/text/SelectLevel.d.ts.map +0 -1
- package/dist/src/vis/schematic/Labeled.d.ts +0 -17
- package/dist/src/vis/schematic/Labeled.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { F as re, A as k,
|
|
1
|
+
import { F as re, A as k, u as ae, n as se } from "./aggregator-23mu0FOF.js";
|
|
2
2
|
import { j as N } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a8 as le, a9 as oe, h as ie, aa as ce, d as de, C as fe, ab as ue, ac as he, ad as pe, a7 as me, B as ge, ae as Y, af as xe, ag as ye, ah as Ce, ai as Ee } from "./Toggle-CLkPIiQK.js";
|
|
4
4
|
import { memo as Ne, useState as be, useCallback as b, useMemo as Te } from "react";
|
|
5
|
-
import { L as
|
|
6
|
-
import { A as
|
|
7
|
-
import { C as h } from "./css-
|
|
8
|
-
import "./Pack-
|
|
9
|
-
import { L as Ie } from "./List-
|
|
10
|
-
const
|
|
5
|
+
import { L as ve } from "./Link-Crud0q_J.js";
|
|
6
|
+
import { A as _e } from "./Animated-C7JTBH0T.js";
|
|
7
|
+
import { C as h } from "./css-DJCM-h5_.js";
|
|
8
|
+
import "./Pack-BzCJQZ58.js";
|
|
9
|
+
import { L as Ie } from "./List-Cuz80sgI.js";
|
|
10
|
+
const z = (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++) {
|
|
@@ -25,7 +25,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
25
25
|
r === 0 && n && (e = e.sort((l, i) => l.name.localeCompare(i.name)));
|
|
26
26
|
const s = [];
|
|
27
27
|
return e.forEach((l, i) => {
|
|
28
|
-
const o = `${a}${l.key}/`, u =
|
|
28
|
+
const o = `${a}${l.key}/`, u = z(l, t);
|
|
29
29
|
s.push({ ...l, depth: r, expanded: u, index: i, path: o }), u && l.children != null && (l.children = H(l.children, n), s.push(
|
|
30
30
|
...K({
|
|
31
31
|
nodes: l.children,
|
|
@@ -38,8 +38,8 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
38
38
|
}), s;
|
|
39
39
|
}, Se = ({ tree: e, destination: t, keys: r }) => (r = k(r), r.forEach((n) => {
|
|
40
40
|
const a = T({ tree: e, key: n });
|
|
41
|
-
a != null && (
|
|
42
|
-
}), e),
|
|
41
|
+
a != null && (V({ tree: e, keys: n }), q({ tree: e, destination: t, additions: a }));
|
|
42
|
+
}), e), V = ({ tree: e, keys: t }) => {
|
|
43
43
|
t = k(t);
|
|
44
44
|
const r = e.map((n) => n.key);
|
|
45
45
|
return t.forEach((n) => {
|
|
@@ -51,7 +51,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
51
51
|
l != null && (l.children = (s = l.children) == null ? void 0 : s.filter((i) => i.key !== n));
|
|
52
52
|
}
|
|
53
53
|
}), e;
|
|
54
|
-
},
|
|
54
|
+
}, q = ({ tree: e, destination: t, additions: r }) => {
|
|
55
55
|
r = k(r);
|
|
56
56
|
const n = T({ tree: e, key: t });
|
|
57
57
|
if (n == null) throw new Error(`Could not find node with key ${t}`);
|
|
@@ -128,10 +128,10 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
128
128
|
if (n != null) return n;
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
|
-
},
|
|
131
|
+
}, J = (e) => e.map((t) => ({ ...t, children: J(t.children ?? []) })), Q = (...e) => {
|
|
132
132
|
const t = [];
|
|
133
133
|
return e.forEach((r) => {
|
|
134
|
-
t.push(r), r.children != null && t.push(...
|
|
134
|
+
t.push(r), r.children != null && t.push(...Q(...r.children));
|
|
135
135
|
}), t;
|
|
136
136
|
}, M = "tree-item", je = [["Shift"]], Pe = (e) => {
|
|
137
137
|
const {
|
|
@@ -141,23 +141,23 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
141
141
|
sort: a = !0,
|
|
142
142
|
selected: s,
|
|
143
143
|
onSelectedChange: l
|
|
144
|
-
} = e ?? {}, [i, o, u] = he(n), [c,
|
|
144
|
+
} = e ?? {}, [i, o, u] = he(n), [c, v] = ae({
|
|
145
145
|
initial: [],
|
|
146
146
|
value: s,
|
|
147
147
|
onChange: l
|
|
148
|
-
}),
|
|
148
|
+
}), _ = Te(
|
|
149
149
|
() => K({ nodes: r, expanded: i, sort: a }),
|
|
150
150
|
[r, i, a]
|
|
151
|
-
), I = pe(
|
|
151
|
+
), I = pe(_), L = me({ triggers: je }), P = b(
|
|
152
152
|
(f, { clicked: d }) => {
|
|
153
|
-
|
|
153
|
+
v(f);
|
|
154
154
|
const x = I.current.find((E) => E.key === d);
|
|
155
155
|
if ((x == null ? void 0 : x.hasChildren) === !1 || d == null || L.current.held) return;
|
|
156
156
|
const y = u.current, w = y.some((E) => E === d) ? "contract" : "expand";
|
|
157
157
|
let C;
|
|
158
158
|
w === "contract" ? C = y.filter((E) => E !== d) : C = [...y, d], o(C), t == null || t({ current: C, action: w, clicked: d });
|
|
159
159
|
},
|
|
160
|
-
[t, I, o,
|
|
160
|
+
[t, I, o, v]
|
|
161
161
|
), p = b(
|
|
162
162
|
(f) => {
|
|
163
163
|
o((d) => se([...d, f])), t == null || t({ current: i, action: "expand", clicked: f });
|
|
@@ -175,7 +175,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
175
175
|
expanded: i,
|
|
176
176
|
contract: $,
|
|
177
177
|
expand: p,
|
|
178
|
-
nodes:
|
|
178
|
+
nodes: _,
|
|
179
179
|
clearExpanded: S
|
|
180
180
|
};
|
|
181
181
|
}, G = Ne(
|
|
@@ -193,8 +193,8 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
193
193
|
}) => {
|
|
194
194
|
const {
|
|
195
195
|
key: c,
|
|
196
|
-
hasChildren:
|
|
197
|
-
allowRename:
|
|
196
|
+
hasChildren: v = !1,
|
|
197
|
+
allowRename: _ = !1,
|
|
198
198
|
children: I,
|
|
199
199
|
icon: L,
|
|
200
200
|
name: P,
|
|
@@ -202,9 +202,9 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
202
202
|
expanded: $,
|
|
203
203
|
href: S,
|
|
204
204
|
haulItems: f = []
|
|
205
|
-
} = e, { getSelected: d } = le(), { getSourceData: x } = oe(), y =
|
|
205
|
+
} = e, { getSelected: d } = le(), { getSourceData: x } = oe(), y = v || I != null && I.length > 0, w = [];
|
|
206
206
|
y && w.push(
|
|
207
|
-
/* @__PURE__ */ N.jsx(
|
|
207
|
+
/* @__PURE__ */ N.jsx(_e, { enabled: $, enabledLoc: "bottom", disabledLoc: "right" })
|
|
208
208
|
), L != null && w.push(L);
|
|
209
209
|
const C = [];
|
|
210
210
|
i && C.push(/* @__PURE__ */ N.jsx(ie.Loading, { className: h.B("loading-indicator") }));
|
|
@@ -222,11 +222,11 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
222
222
|
(g) => m.includes(g.key)
|
|
223
223
|
);
|
|
224
224
|
if (m.includes(c)) {
|
|
225
|
-
const g = A.map(({ key: j, haulItems: B, depth:
|
|
226
|
-
{ type: M, key: j, data: { depth:
|
|
227
|
-
...(B == null ? void 0 : B.map((
|
|
228
|
-
...
|
|
229
|
-
data: { ...
|
|
225
|
+
const g = A.map(({ key: j, haulItems: B, depth: W }) => [
|
|
226
|
+
{ type: M, key: j, data: { depth: W } },
|
|
227
|
+
...(B == null ? void 0 : B.map((X) => ({
|
|
228
|
+
...X,
|
|
229
|
+
data: { ...X.data, depth: W }
|
|
230
230
|
}))) ?? []
|
|
231
231
|
]).flat();
|
|
232
232
|
return U(g, (j) => s == null ? void 0 : s(c, j));
|
|
@@ -272,7 +272,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
272
272
|
onDoubleClick: (m) => l == null ? void 0 : l(c, m),
|
|
273
273
|
href: S,
|
|
274
274
|
...Z
|
|
275
|
-
}, ne = S != null ?
|
|
275
|
+
}, ne = S != null ? ve : ge;
|
|
276
276
|
return /* @__PURE__ */ N.jsx(ne, { className: h.BE("list", "item"), ...te, children: /* @__PURE__ */ N.jsx(
|
|
277
277
|
ue,
|
|
278
278
|
{
|
|
@@ -280,7 +280,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
|
280
280
|
level: "p",
|
|
281
281
|
allowDoubleClick: !1,
|
|
282
282
|
value: P,
|
|
283
|
-
disabled: !
|
|
283
|
+
disabled: !_,
|
|
284
284
|
onChange: (m) => a == null ? void 0 : a(c, m)
|
|
285
285
|
}
|
|
286
286
|
) });
|
|
@@ -299,8 +299,8 @@ const Re = Ee(G), Oe = ({
|
|
|
299
299
|
children: o = Re,
|
|
300
300
|
itemHeight: u = 27,
|
|
301
301
|
useMargin: c = !1,
|
|
302
|
-
showRules:
|
|
303
|
-
virtual:
|
|
302
|
+
showRules: v = !1,
|
|
303
|
+
virtual: _ = !0,
|
|
304
304
|
clearExpanded: I,
|
|
305
305
|
expand: L,
|
|
306
306
|
contract: P,
|
|
@@ -308,7 +308,7 @@ const Re = Ee(G), Oe = ({
|
|
|
308
308
|
loading: $,
|
|
309
309
|
...S
|
|
310
310
|
}) => {
|
|
311
|
-
const f =
|
|
311
|
+
const f = _ ? Y.Virtual : Y;
|
|
312
312
|
return /* @__PURE__ */ N.jsx(Ie, { data: e, emptyContent: p, children: /* @__PURE__ */ N.jsx(
|
|
313
313
|
xe,
|
|
314
314
|
{
|
|
@@ -320,7 +320,7 @@ const Re = Ee(G), Oe = ({
|
|
|
320
320
|
f,
|
|
321
321
|
{
|
|
322
322
|
itemHeight: u,
|
|
323
|
-
className: h(i, h.B("tree"),
|
|
323
|
+
className: h(i, h.B("tree"), v && h.M("rules")),
|
|
324
324
|
...S,
|
|
325
325
|
children: ({ key: d, ...x }) => o({
|
|
326
326
|
...x,
|
|
@@ -336,22 +336,22 @@ const Re = Ee(G), Oe = ({
|
|
|
336
336
|
)
|
|
337
337
|
}
|
|
338
338
|
) });
|
|
339
|
-
}, Ae = (e, t) => ye(`text-${e}`, t), Be = (e) => Ce(`text-${e}`),
|
|
339
|
+
}, Ae = (e, t) => ye(`text-${e}`, t), Be = (e) => Ce(`text-${e}`), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
340
340
|
__proto__: null,
|
|
341
341
|
DefaultItem: G,
|
|
342
342
|
HAUL_TYPE: M,
|
|
343
343
|
Tree: Oe,
|
|
344
344
|
asyncRename: Be,
|
|
345
|
-
deepCopy:
|
|
345
|
+
deepCopy: J,
|
|
346
346
|
findNode: T,
|
|
347
347
|
findNodeParent: R,
|
|
348
348
|
findNodes: $e,
|
|
349
349
|
flatten: K,
|
|
350
|
-
getDescendants:
|
|
350
|
+
getDescendants: Q,
|
|
351
351
|
moveNode: Se,
|
|
352
|
-
removeNode:
|
|
353
|
-
setNode:
|
|
354
|
-
shouldExpand:
|
|
352
|
+
removeNode: V,
|
|
353
|
+
setNode: q,
|
|
354
|
+
shouldExpand: z,
|
|
355
355
|
sortAndSplice: H,
|
|
356
356
|
startRenaming: Ae,
|
|
357
357
|
updateNode: we,
|
|
@@ -359,5 +359,5 @@ const Re = Ee(G), Oe = ({
|
|
|
359
359
|
use: Pe
|
|
360
360
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
361
361
|
export {
|
|
362
|
-
|
|
362
|
+
Ye as e
|
|
363
363
|
};
|
|
@@ -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-CLkPIiQK.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-4yG7GmwK.js";
|
|
3
3
|
const x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
CONTEXT_SELECTED: e,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./css-BghghSL0.cjs"),e=require("./Toggle-DnW_7Wr_.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,Color:t.Color,GradientPicker:e.GradientPicker,Picker:e.Picker,Provider:e.Provider$1,Swatch:e.Swatch,ZERO:t.ZERO,ZERO_CONTEXT_STATE:e.ZERO_CONTEXT_STATE,contextStateZ:e.contextStateZ,crudeZ:t.crudeZ,cssString:t.cssString,frequentZ:e.frequentZ,fromGradient:t.fromGradient,fromHSLA:t.fromHSLA,gradientZ:t.gradientZ,paletteZ:t.paletteZ,recalculate:e.recalculate,relevancyZ:e.relevancyZ,stopZ:t.stopZ,toHex:t.toHex,useContext:e.useContext$1,useFrequent:e.useFrequent,useFrequentUpdater:e.useFrequentUpdater,usePalette:e.usePalette,useRequiredPalette:e.useRequiredPalette},Symbol.toStringTag,{value:"Module"}));exports.external=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const y=require("./Toggle-CP9KtybX.cjs"),Fe=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),de=require("./aggregator-C0Ab25_o.cjs");require("./css-Dh7n0EGs.cjs");require("./Pack-DijAGcm_.cjs");const Ne=require("./List-C8vXIE2j.cjs"),ge=Symbol(),ee=Symbol(),T="a",N="w";let De=(t,e)=>new Proxy(t,e);const U=Object.getPrototypeOf,ie=new WeakMap,te=t=>t&&(ie.has(t)?ie.get(t):U(t)===Object.prototype||U(t)===Array.prototype),ce=t=>typeof t=="object"&&t!==null,oe=new WeakMap,pe=t=>t[ee]||t,me=(t,e,s)=>{if(!te(t))return t;const r=pe(t),i=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let n=s&&s.get(r);return n&&n[1].f===i||(n=((c,o)=>{const a={f:o};let h=!1;const l=(f,g)=>{if(!h){let p=a[T].get(c);if(p||(p={},a[T].set(c,p)),f===N)p[N]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(g)}}},u={get:(f,g)=>g===ee?c:(l("k",g),me(Reflect.get(f,g),a[T],a.c)),has:(f,g)=>g===ge?(h=!0,a[T].delete(c),!0):(l("h",g),Reflect.has(f,g)),getOwnPropertyDescriptor:(f,g)=>(l("o",g),Reflect.getOwnPropertyDescriptor(f,g)),ownKeys:f=>(l(N),Reflect.ownKeys(f))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,i),n[1].p=De(i?(c=>{let o=oe.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(U(c),a)}oe.set(c,o)}return o})(r):r,n[0]),s&&s.set(r,n)),n[1][T]=e,n[1].c=s,n[1].p},ye=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!ce(t)||!ce(e))return!0;const i=s.get(pe(t));if(!i)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let n=null;try{for(const c of i.h||[])if(n=Reflect.has(t,c)!==Reflect.has(e,c),n)return n;if(i[N]===!0){if(n=((c,o)=>{const a=Reflect.ownKeys(c),h=Reflect.ownKeys(o);return a.length!==h.length||a.some((l,u)=>l!==h[u])})(t,e),n)return n}else for(const c of i.o||[])if(n=!!Reflect.getOwnPropertyDescriptor(t,c)!=!!Reflect.getOwnPropertyDescriptor(e,c),n)return n;for(const c of i.k||[])if(n=ye(t[c],e[c],s,r),n)return n;return n===null&&(n=!0),n}finally{r&&r.set(t,{n:e,g:n})}},je=t=>!!te(t)&&ge in t,Me=t=>te(t)&&t[ee]||null,Ke="h",Ye="w",We="o",ze="k",V=t=>typeof t=="object"&&t!==null,Ee=(t,e)=>{if(!V(t))return t;const s=Me(t);return s!==null?(je(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,i])=>{const n=Ee(i,e);Object.is(n,i)||(t[r]=n)})),t)},B=(t,e,s)=>{var r,i,n;if(!V(t)||!V(e))return;const c=s.get(Me(e)||e);c&&((r=c[Ke])==null||r.forEach(o=>{Reflect.has(t,o)}),c[Ye]===!0&&Reflect.ownKeys(t),(i=c[We])==null||i.forEach(o=>{Reflect.getOwnPropertyDescriptor(t,o)}),(n=c[ze])==null||n.forEach(o=>{B(t[o],e[o],s)}))},Y="o",W="r",z="a";function He(t,e){var s;let r=0;const i=(s=e==null?void 0:e.size)!=null?s:1,n=[],c=e!=null&&e.noWeakMap?null:new WeakMap;return a=>{const h=c==null?void 0:c.get(a);if(h)return h[W];for(let p=0;p<i;p+=1){const m=n[(r+p)%i];if(!m)break;if(!ye(m[Y],a,m[z],new WeakMap))return B(a,m[Y],m[z]),c==null||c.set(a,m),m[W]}const l=new WeakMap,u=me(a,l),f=Ee(t(u),new Set);B(a,a,l);const g={[Y]:a,[W]:f,[z]:l};return r=(r-1+i)%i,n[r]=g,c==null||c.set(a,g),f}}const _e=(t,e)=>de.w.RUNTIME==="browser"?He(t,e):t;function R(t){return Array.isArray?Array.isArray(t):Re(t)==="[object Array]"}const Ue=1/0;function Ve(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ue?"-0":e}function Be(t){return t==null?"":Ve(t)}function S(t){return typeof t=="string"}function Se(t){return typeof t=="number"}function Ge(t){return t===!0||t===!1||Je(t)&&Re(t)=="[object Boolean]"}function xe(t){return typeof t=="object"}function Je(t){return xe(t)&&t!==null}function M(t){return t!=null}function H(t){return!t.trim().length}function Re(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Qe="Incorrect 'index' type",Xe=t=>`Invalid value for key ${t}`,Ze=t=>`Pattern length exceeds max of ${t}.`,qe=t=>`Missing ${t} property in key`,et=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class tt{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let i=Oe(r);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Oe(t){let e=null,s=null,r=null,i=1,n=null;if(S(t)||R(t))r=t,e=le(t),s=G(t);else{if(!ae.call(t,"name"))throw new Error(qe("name"));const c=t.name;if(r=c,ae.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(et(c));e=le(c),s=G(c),n=t.getFn}return{path:e,id:s,weight:i,src:r,getFn:n}}function le(t){return R(t)?t:t.split(".")}function G(t){return R(t)?t.join("."):t}function st(t,e){let s=[],r=!1;const i=(n,c,o)=>{if(M(n))if(!c[o])s.push(n);else{let a=c[o];const h=n[a];if(!M(h))return;if(o===c.length-1&&(S(h)||Se(h)||Ge(h)))s.push(Be(h));else if(R(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)i(h[l],c,o+1)}else c.length&&i(h,c,o+1)}};return i(t,S(e)?e.split("."):e,0),r?s:s[0]}const rt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},it={location:0,threshold:.6,distance:100},ct={useExtendedSearch:!1,getFn:st,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...nt,...rt,...it,...ct};const ot=/[^ ]+/g;function at(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(i){const n=i.match(ot).length;if(s.has(n))return s.get(n);const c=1/Math.pow(n,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(n,o),o},clear(){s.clear()}}}class se{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=at(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,S(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();S(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!M(e)||H(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((i,n)=>{let c=i.getFn?i.getFn(e):this.getFn(e,i.path);if(M(c)){if(R(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(M(l))if(S(l)&&!H(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else R(l)&&l.forEach((u,f)=>{a.push({nestedArrIndex:f,value:u})})}r.$[n]=o}else if(S(c)&&!H(c)){let o={v:c,n:this.norm.get(c)};r.$[n]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function we(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const i=new se({getFn:s,fieldNormWeight:r});return i.setKeys(t.map(Oe)),i.setSources(e),i.create(),i}function lt(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:i}=t,n=new se({getFn:e,fieldNormWeight:s});return n.setKeys(r),n.setIndexRecords(i),n}function $(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:i=d.distance,ignoreLocation:n=d.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(r-s);return i?c+o/i:o?1:c}function ht(t=[],e=d.minMatchCharLength){let s=[],r=-1,i=-1,n=0;for(let c=t.length;n<c;n+=1){let o=t[n];o&&r===-1?r=n:!o&&r!==-1&&(i=n-1,i-r+1>=e&&s.push([r,i]),r=-1)}return t[n-1]&&n-r>=e&&s.push([r,n-1]),s}const L=32;function ut(t,e,s,{location:r=d.location,distance:i=d.distance,threshold:n=d.threshold,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,includeMatches:a=d.includeMatches,ignoreLocation:h=d.ignoreLocation}={}){if(e.length>L)throw new Error(Ze(L));const l=e.length,u=t.length,f=Math.max(0,Math.min(r,u));let g=n,p=f;const m=o>1||a,A=m?Array(u):[];let x;for(;(x=t.indexOf(e,p))>-1;){let E=$(e,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:h});if(g=Math.min(E,g),p=x+l,m){let O=0;for(;O<l;)A[x+O]=1,O+=1}}p=-1;let P=[],b=1,v=l+u;const ve=1<<l-1;for(let E=0;E<l;E+=1){let O=0,w=v;for(;O<w;)$(e,{errors:E,currentLocation:f+w,expectedLocation:f,distance:i,ignoreLocation:h})<=g?O=w:v=w,w=Math.floor((v-O)/2+O);v=w;let re=Math.max(1,f-w+1),K=c?u:Math.min(f+w,u)+l,C=Array(K+2);C[K+1]=(1<<E)-1;for(let _=K;_>=re;_-=1){let F=_-1,ne=s[t.charAt(F)];if(m&&(A[F]=+!!ne),C[_]=(C[_+1]<<1|1)&ne,E&&(C[_]|=(P[_+1]|P[_])<<1|1|P[_+1]),C[_]&ve&&(b=$(e,{errors:E,currentLocation:F,expectedLocation:f,distance:i,ignoreLocation:h}),b<=g)){if(g=b,p=F,p<=f)break;re=Math.max(1,2*f-p)}}if($(e,{errors:E+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:h})>g)break;P=C}const j={isMatch:p>=0,score:Math.max(.001,b)};if(m){const E=ht(A,o);E.length?a&&(j.indices=E):j.isMatch=!1}return j}function ft(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const i=t.charAt(s);e[i]=(e[i]||0)|1<<r-s-1}return e}class Ie{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(f,g)=>{this.chunks.push({pattern:f,alphabet:ft(f),startIndex:g})},u=this.pattern.length;if(u>L){let f=0;const g=u%L,p=u-g;for(;f<p;)l(this.pattern.substr(f,L),f),f+=L;if(g){const m=u-L;l(this.pattern.substr(m),m)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:i,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:m,startIndex:A})=>{const{isMatch:x,score:P,indices:b}=ut(e,p,m,{location:i+A,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});x&&(f=!0),u+=P,x&&b&&(l=[...l,...b])});let g={isMatch:f,score:f?u/this.chunks.length:1};return f&&r&&(g.indices=l),g}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return he(e,this.multiRegex)}static isSingleMatch(e){return he(e,this.singleRegex)}search(){}}function he(t,e){const s=t.match(e);return s?s[1]:null}class dt extends I{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class gt extends I{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class pt extends I{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class mt extends I{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class yt extends I{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Mt extends I{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ae extends I{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class be extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const i=[],n=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+n,i.push([r,s-1]);const c=!!i.length;return{isMatch:c,score:c?0:1,indices:i}}}const J=[dt,be,pt,mt,Mt,yt,gt,Ae],ue=J.length,Et=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,_t="|";function St(t,e={}){return t.split(_t).map(s=>{let r=s.trim().split(Et).filter(n=>n&&!!n.trim()),i=[];for(let n=0,c=r.length;n<c;n+=1){const o=r[n];let a=!1,h=-1;for(;!a&&++h<ue;){const l=J[h];let u=l.isMultiMatch(o);u&&(i.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ue;){const l=J[h];let u=l.isSingleMatch(o);if(u){i.push(new l(u,e));break}}}return i})}const xt=new Set([Ae.type,be.type]);class Rt{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,includeMatches:r=d.includeMatches,minMatchCharLength:i=d.minMatchCharLength,ignoreLocation:n=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:a=d.threshold,distance:h=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:i,findAllMatches:c,ignoreLocation:n,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=St(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let n=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,n=0;for(let u=0,f=l.length;u<f;u+=1){const g=l[u],{isMatch:p,indices:m,score:A}=g.search(e);if(p){if(n+=1,o+=A,r){const x=g.constructor.type;xt.has(x)?c=[...c,...m]:c.push(m)}}else{o=0,n=0,c.length=0;break}}if(n){let u={isMatch:!0,score:o/n};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const Q=[];function Ot(...t){Q.push(...t)}function X(t,e){for(let s=0,r=Q.length;s<r;s+=1){let i=Q[s];if(i.condition(t,e))return new i(t,e)}return new Ie(t,e)}const D={AND:"$and",OR:"$or"},Z={PATH:"$path",PATTERN:"$val"},q=t=>!!(t[D.AND]||t[D.OR]),wt=t=>!!t[Z.PATH],It=t=>!R(t)&&xe(t)&&!q(t),fe=t=>({[D.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Le(t,e,{auto:s=!0}={}){const r=i=>{let n=Object.keys(i);const c=wt(i);if(!c&&n.length>1&&!q(i))return r(fe(i));if(It(i)){const a=c?i[Z.PATH]:n[0],h=c?i[Z.PATTERN]:i[a];if(!S(h))throw new Error(Xe(a));const l={keyId:G(a),pattern:h};return s&&(l.searcher=X(h,e)),l}let o={children:[],operator:n[0]};return n.forEach(a=>{const h=i[a];R(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return q(t)||(t=fe(t)),r(t)}function At(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:i,norm:n,score:c})=>{const o=i?i.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:n))}),s.score=r})}function bt(t,e){const s=t.matches;e.matches=[],M(s)&&s.forEach(r=>{if(!M(r.indices)||!r.indices.length)return;const{indices:i,value:n}=r;let c={indices:i,value:n};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function Lt(t,e){e.score=t.score}function Pt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const i=[];return s&&i.push(bt),r&&i.push(Lt),t.map(n=>{const{idx:c}=n,o={item:e[c],refIndex:c};return i.length&&i.forEach(a=>{a(n,o)}),o})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new tt(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof se))throw new Error(Qe);this._myIndex=s||we(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){M(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,i=this._docs.length;r<i;r+=1){const n=this._docs[r];e(n,r)&&(this.removeAt(r),r-=1,i-=1,s.push(n))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:n,sortFn:c,ignoreFieldNorm:o}=this.options;let a=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return At(a,{ignoreFieldNorm:o}),n&&a.sort(c),Se(s)&&s>-1&&(a=a.slice(0,s)),Pt(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const s=X(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=s.searchIn(n);a&&i.push({item:n,idx:c,matches:[{score:h,value:n,norm:o,indices:l}]})}),i}_searchLogical(e){const s=Le(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:f}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:f});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,f=o.children.length;u<f;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===D.AND)return[]}return l},i=this._myIndex.records,n={},c=[];return i.forEach(({$:o,i:a})=>{if(M(o)){let h=r(s,o,a);h.length&&(n[a]||(n[a]={idx:a,item:o,matches:[]},c.push(n[a])),h.forEach(({matches:l})=>{n[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=X(e,this.options),{keys:r,records:i}=this._myIndex,n=[];return i.forEach(({$:c,i:o})=>{if(!M(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&n.push({idx:o,item:c,matches:a})}),n}_findMatches({key:e,value:s,searcher:r}){if(!M(s))return[];let i=[];if(R(s))s.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=r.searchIn(n);a&&i.push({score:h,key:e,value:n,idx:c,norm:o,indices:l})});else{const{v:n,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(n);o&&i.push({score:a,key:e,value:n,norm:c,indices:h})}return i}}k.version="7.0.0";k.createIndex=we;k.parseIndex=lt;k.config=d;k.parseQuery=Le;Ot(Rt);const Ct={threshold:.3},Pe=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Ct,...t});return{type:"fuse",page:(r,i)=>e.slice(r*i,(r+1)*i),search:r=>s.search(r).map(({item:i})=>i),retrieve:r=>e.filter(i=>r.includes(i.key))}},kt=Pe(),Ce=({term:t,searcher:e=kt})=>_e(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[i,n]=de.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=y.useDataUtilContext(),a=y.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{n(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Ce({term:l})))},[n,r]);return{value:i,onChange:h}},Te=({children:t=s=>Fe.jsxRuntimeExports.jsx(y.Text$1,{placeholder:"Filter",...s}),...e})=>t(ke(e)),Tt=Object.freeze(Object.defineProperty({__proto__:null,Column:y.Column,ColumnContext:y.ColumnContext,Core:y.Core,DataProvider:y.DataProvider,Filter:Te,Hover:y.Hover,ItemFrame:y.ItemFrame,List:Ne.List,Search:y.Search,Selector:y.Selector,selectValueIsZero:y.selectValueIsZero,useDataContext:y.useDataContext,useDataUtilContext:y.useDataUtilContext,useFilter:ke,useGetTransformedData:y.useGetTransformedData,useHoverContext:y.useHoverContext,useSearch:y.useSearch,useSelect:y.useSelect,useSelection:y.useSelection,useSelectionContext:y.useSelectionContext,useSelectionUtils:y.useSelectionUtils,useSetSourceData:y.useSetSourceData,useSourceData:y.useSourceData,useTransformedData:y.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Te;exports.createFilterTransform=Ce;exports.external=Tt;exports.fuseFilter=Pe;exports.proxyMemo=_e;
|
|
1
|
+
"use strict";const y=require("./Toggle-DnW_7Wr_.cjs"),Fe=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),de=require("./aggregator-y-jNJhKX.cjs");require("./css-BghghSL0.cjs");require("./Pack-Dvf8sQVK.cjs");const Ne=require("./List-Pyj0u9YT.cjs"),ge=Symbol(),ee=Symbol(),T="a",N="w";let De=(t,e)=>new Proxy(t,e);const U=Object.getPrototypeOf,ie=new WeakMap,te=t=>t&&(ie.has(t)?ie.get(t):U(t)===Object.prototype||U(t)===Array.prototype),ce=t=>typeof t=="object"&&t!==null,oe=new WeakMap,pe=t=>t[ee]||t,me=(t,e,s)=>{if(!te(t))return t;const r=pe(t),i=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let n=s&&s.get(r);return n&&n[1].f===i||(n=((c,o)=>{const a={f:o};let h=!1;const l=(f,g)=>{if(!h){let p=a[T].get(c);if(p||(p={},a[T].set(c,p)),f===N)p[N]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(g)}}},u={get:(f,g)=>g===ee?c:(l("k",g),me(Reflect.get(f,g),a[T],a.c)),has:(f,g)=>g===ge?(h=!0,a[T].delete(c),!0):(l("h",g),Reflect.has(f,g)),getOwnPropertyDescriptor:(f,g)=>(l("o",g),Reflect.getOwnPropertyDescriptor(f,g)),ownKeys:f=>(l(N),Reflect.ownKeys(f))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,i),n[1].p=De(i?(c=>{let o=oe.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(U(c),a)}oe.set(c,o)}return o})(r):r,n[0]),s&&s.set(r,n)),n[1][T]=e,n[1].c=s,n[1].p},ye=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!ce(t)||!ce(e))return!0;const i=s.get(pe(t));if(!i)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let n=null;try{for(const c of i.h||[])if(n=Reflect.has(t,c)!==Reflect.has(e,c),n)return n;if(i[N]===!0){if(n=((c,o)=>{const a=Reflect.ownKeys(c),h=Reflect.ownKeys(o);return a.length!==h.length||a.some((l,u)=>l!==h[u])})(t,e),n)return n}else for(const c of i.o||[])if(n=!!Reflect.getOwnPropertyDescriptor(t,c)!=!!Reflect.getOwnPropertyDescriptor(e,c),n)return n;for(const c of i.k||[])if(n=ye(t[c],e[c],s,r),n)return n;return n===null&&(n=!0),n}finally{r&&r.set(t,{n:e,g:n})}},je=t=>!!te(t)&&ge in t,Me=t=>te(t)&&t[ee]||null,Ke="h",Ye="w",We="o",ze="k",V=t=>typeof t=="object"&&t!==null,Ee=(t,e)=>{if(!V(t))return t;const s=Me(t);return s!==null?(je(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,i])=>{const n=Ee(i,e);Object.is(n,i)||(t[r]=n)})),t)},B=(t,e,s)=>{var r,i,n;if(!V(t)||!V(e))return;const c=s.get(Me(e)||e);c&&((r=c[Ke])==null||r.forEach(o=>{Reflect.has(t,o)}),c[Ye]===!0&&Reflect.ownKeys(t),(i=c[We])==null||i.forEach(o=>{Reflect.getOwnPropertyDescriptor(t,o)}),(n=c[ze])==null||n.forEach(o=>{B(t[o],e[o],s)}))},Y="o",W="r",z="a";function He(t,e){var s;let r=0;const i=(s=e==null?void 0:e.size)!=null?s:1,n=[],c=e!=null&&e.noWeakMap?null:new WeakMap;return a=>{const h=c==null?void 0:c.get(a);if(h)return h[W];for(let p=0;p<i;p+=1){const m=n[(r+p)%i];if(!m)break;if(!ye(m[Y],a,m[z],new WeakMap))return B(a,m[Y],m[z]),c==null||c.set(a,m),m[W]}const l=new WeakMap,u=me(a,l),f=Ee(t(u),new Set);B(a,a,l);const g={[Y]:a,[W]:f,[z]:l};return r=(r-1+i)%i,n[r]=g,c==null||c.set(a,g),f}}const _e=(t,e)=>de.w.RUNTIME==="browser"?He(t,e):t;function R(t){return Array.isArray?Array.isArray(t):Re(t)==="[object Array]"}const Ue=1/0;function Ve(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ue?"-0":e}function Be(t){return t==null?"":Ve(t)}function S(t){return typeof t=="string"}function Se(t){return typeof t=="number"}function Ge(t){return t===!0||t===!1||Je(t)&&Re(t)=="[object Boolean]"}function xe(t){return typeof t=="object"}function Je(t){return xe(t)&&t!==null}function M(t){return t!=null}function H(t){return!t.trim().length}function Re(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Qe="Incorrect 'index' type",Xe=t=>`Invalid value for key ${t}`,Ze=t=>`Pattern length exceeds max of ${t}.`,qe=t=>`Missing ${t} property in key`,et=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class tt{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let i=Oe(r);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Oe(t){let e=null,s=null,r=null,i=1,n=null;if(S(t)||R(t))r=t,e=le(t),s=G(t);else{if(!ae.call(t,"name"))throw new Error(qe("name"));const c=t.name;if(r=c,ae.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(et(c));e=le(c),s=G(c),n=t.getFn}return{path:e,id:s,weight:i,src:r,getFn:n}}function le(t){return R(t)?t:t.split(".")}function G(t){return R(t)?t.join("."):t}function st(t,e){let s=[],r=!1;const i=(n,c,o)=>{if(M(n))if(!c[o])s.push(n);else{let a=c[o];const h=n[a];if(!M(h))return;if(o===c.length-1&&(S(h)||Se(h)||Ge(h)))s.push(Be(h));else if(R(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)i(h[l],c,o+1)}else c.length&&i(h,c,o+1)}};return i(t,S(e)?e.split("."):e,0),r?s:s[0]}const rt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},it={location:0,threshold:.6,distance:100},ct={useExtendedSearch:!1,getFn:st,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...nt,...rt,...it,...ct};const ot=/[^ ]+/g;function at(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(i){const n=i.match(ot).length;if(s.has(n))return s.get(n);const c=1/Math.pow(n,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(n,o),o},clear(){s.clear()}}}class se{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=at(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,S(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();S(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!M(e)||H(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((i,n)=>{let c=i.getFn?i.getFn(e):this.getFn(e,i.path);if(M(c)){if(R(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(M(l))if(S(l)&&!H(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else R(l)&&l.forEach((u,f)=>{a.push({nestedArrIndex:f,value:u})})}r.$[n]=o}else if(S(c)&&!H(c)){let o={v:c,n:this.norm.get(c)};r.$[n]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function we(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const i=new se({getFn:s,fieldNormWeight:r});return i.setKeys(t.map(Oe)),i.setSources(e),i.create(),i}function lt(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:i}=t,n=new se({getFn:e,fieldNormWeight:s});return n.setKeys(r),n.setIndexRecords(i),n}function $(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:i=d.distance,ignoreLocation:n=d.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(r-s);return i?c+o/i:o?1:c}function ht(t=[],e=d.minMatchCharLength){let s=[],r=-1,i=-1,n=0;for(let c=t.length;n<c;n+=1){let o=t[n];o&&r===-1?r=n:!o&&r!==-1&&(i=n-1,i-r+1>=e&&s.push([r,i]),r=-1)}return t[n-1]&&n-r>=e&&s.push([r,n-1]),s}const L=32;function ut(t,e,s,{location:r=d.location,distance:i=d.distance,threshold:n=d.threshold,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,includeMatches:a=d.includeMatches,ignoreLocation:h=d.ignoreLocation}={}){if(e.length>L)throw new Error(Ze(L));const l=e.length,u=t.length,f=Math.max(0,Math.min(r,u));let g=n,p=f;const m=o>1||a,A=m?Array(u):[];let x;for(;(x=t.indexOf(e,p))>-1;){let E=$(e,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:h});if(g=Math.min(E,g),p=x+l,m){let O=0;for(;O<l;)A[x+O]=1,O+=1}}p=-1;let P=[],b=1,v=l+u;const ve=1<<l-1;for(let E=0;E<l;E+=1){let O=0,w=v;for(;O<w;)$(e,{errors:E,currentLocation:f+w,expectedLocation:f,distance:i,ignoreLocation:h})<=g?O=w:v=w,w=Math.floor((v-O)/2+O);v=w;let re=Math.max(1,f-w+1),K=c?u:Math.min(f+w,u)+l,C=Array(K+2);C[K+1]=(1<<E)-1;for(let _=K;_>=re;_-=1){let F=_-1,ne=s[t.charAt(F)];if(m&&(A[F]=+!!ne),C[_]=(C[_+1]<<1|1)&ne,E&&(C[_]|=(P[_+1]|P[_])<<1|1|P[_+1]),C[_]&ve&&(b=$(e,{errors:E,currentLocation:F,expectedLocation:f,distance:i,ignoreLocation:h}),b<=g)){if(g=b,p=F,p<=f)break;re=Math.max(1,2*f-p)}}if($(e,{errors:E+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:h})>g)break;P=C}const j={isMatch:p>=0,score:Math.max(.001,b)};if(m){const E=ht(A,o);E.length?a&&(j.indices=E):j.isMatch=!1}return j}function ft(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const i=t.charAt(s);e[i]=(e[i]||0)|1<<r-s-1}return e}class Ie{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(f,g)=>{this.chunks.push({pattern:f,alphabet:ft(f),startIndex:g})},u=this.pattern.length;if(u>L){let f=0;const g=u%L,p=u-g;for(;f<p;)l(this.pattern.substr(f,L),f),f+=L;if(g){const m=u-L;l(this.pattern.substr(m),m)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:i,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:m,startIndex:A})=>{const{isMatch:x,score:P,indices:b}=ut(e,p,m,{location:i+A,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});x&&(f=!0),u+=P,x&&b&&(l=[...l,...b])});let g={isMatch:f,score:f?u/this.chunks.length:1};return f&&r&&(g.indices=l),g}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return he(e,this.multiRegex)}static isSingleMatch(e){return he(e,this.singleRegex)}search(){}}function he(t,e){const s=t.match(e);return s?s[1]:null}class dt extends I{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class gt extends I{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class pt extends I{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class mt extends I{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class yt extends I{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Mt extends I{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ae extends I{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class be extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const i=[],n=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+n,i.push([r,s-1]);const c=!!i.length;return{isMatch:c,score:c?0:1,indices:i}}}const J=[dt,be,pt,mt,Mt,yt,gt,Ae],ue=J.length,Et=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,_t="|";function St(t,e={}){return t.split(_t).map(s=>{let r=s.trim().split(Et).filter(n=>n&&!!n.trim()),i=[];for(let n=0,c=r.length;n<c;n+=1){const o=r[n];let a=!1,h=-1;for(;!a&&++h<ue;){const l=J[h];let u=l.isMultiMatch(o);u&&(i.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ue;){const l=J[h];let u=l.isSingleMatch(o);if(u){i.push(new l(u,e));break}}}return i})}const xt=new Set([Ae.type,be.type]);class Rt{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,includeMatches:r=d.includeMatches,minMatchCharLength:i=d.minMatchCharLength,ignoreLocation:n=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:a=d.threshold,distance:h=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:i,findAllMatches:c,ignoreLocation:n,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=St(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let n=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,n=0;for(let u=0,f=l.length;u<f;u+=1){const g=l[u],{isMatch:p,indices:m,score:A}=g.search(e);if(p){if(n+=1,o+=A,r){const x=g.constructor.type;xt.has(x)?c=[...c,...m]:c.push(m)}}else{o=0,n=0,c.length=0;break}}if(n){let u={isMatch:!0,score:o/n};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const Q=[];function Ot(...t){Q.push(...t)}function X(t,e){for(let s=0,r=Q.length;s<r;s+=1){let i=Q[s];if(i.condition(t,e))return new i(t,e)}return new Ie(t,e)}const D={AND:"$and",OR:"$or"},Z={PATH:"$path",PATTERN:"$val"},q=t=>!!(t[D.AND]||t[D.OR]),wt=t=>!!t[Z.PATH],It=t=>!R(t)&&xe(t)&&!q(t),fe=t=>({[D.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Le(t,e,{auto:s=!0}={}){const r=i=>{let n=Object.keys(i);const c=wt(i);if(!c&&n.length>1&&!q(i))return r(fe(i));if(It(i)){const a=c?i[Z.PATH]:n[0],h=c?i[Z.PATTERN]:i[a];if(!S(h))throw new Error(Xe(a));const l={keyId:G(a),pattern:h};return s&&(l.searcher=X(h,e)),l}let o={children:[],operator:n[0]};return n.forEach(a=>{const h=i[a];R(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return q(t)||(t=fe(t)),r(t)}function At(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:i,norm:n,score:c})=>{const o=i?i.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:n))}),s.score=r})}function bt(t,e){const s=t.matches;e.matches=[],M(s)&&s.forEach(r=>{if(!M(r.indices)||!r.indices.length)return;const{indices:i,value:n}=r;let c={indices:i,value:n};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function Lt(t,e){e.score=t.score}function Pt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const i=[];return s&&i.push(bt),r&&i.push(Lt),t.map(n=>{const{idx:c}=n,o={item:e[c],refIndex:c};return i.length&&i.forEach(a=>{a(n,o)}),o})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new tt(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof se))throw new Error(Qe);this._myIndex=s||we(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){M(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,i=this._docs.length;r<i;r+=1){const n=this._docs[r];e(n,r)&&(this.removeAt(r),r-=1,i-=1,s.push(n))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:n,sortFn:c,ignoreFieldNorm:o}=this.options;let a=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return At(a,{ignoreFieldNorm:o}),n&&a.sort(c),Se(s)&&s>-1&&(a=a.slice(0,s)),Pt(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const s=X(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=s.searchIn(n);a&&i.push({item:n,idx:c,matches:[{score:h,value:n,norm:o,indices:l}]})}),i}_searchLogical(e){const s=Le(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:f}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:f});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,f=o.children.length;u<f;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===D.AND)return[]}return l},i=this._myIndex.records,n={},c=[];return i.forEach(({$:o,i:a})=>{if(M(o)){let h=r(s,o,a);h.length&&(n[a]||(n[a]={idx:a,item:o,matches:[]},c.push(n[a])),h.forEach(({matches:l})=>{n[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=X(e,this.options),{keys:r,records:i}=this._myIndex,n=[];return i.forEach(({$:c,i:o})=>{if(!M(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&n.push({idx:o,item:c,matches:a})}),n}_findMatches({key:e,value:s,searcher:r}){if(!M(s))return[];let i=[];if(R(s))s.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=r.searchIn(n);a&&i.push({score:h,key:e,value:n,idx:c,norm:o,indices:l})});else{const{v:n,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(n);o&&i.push({score:a,key:e,value:n,norm:c,indices:h})}return i}}k.version="7.0.0";k.createIndex=we;k.parseIndex=lt;k.config=d;k.parseQuery=Le;Ot(Rt);const Ct={threshold:.3},Pe=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Ct,...t});return{type:"fuse",page:(r,i)=>e.slice(r*i,(r+1)*i),search:r=>s.search(r).map(({item:i})=>i),retrieve:r=>e.filter(i=>r.includes(i.key))}},kt=Pe(),Ce=({term:t,searcher:e=kt})=>_e(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[i,n]=de.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=y.useDataUtilContext(),a=y.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{n(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Ce({term:l})))},[n,r]);return{value:i,onChange:h}},Te=({children:t=s=>Fe.jsxRuntimeExports.jsx(y.Text$1,{placeholder:"Filter",...s}),...e})=>t(ke(e)),Tt=Object.freeze(Object.defineProperty({__proto__:null,Column:y.Column,ColumnContext:y.ColumnContext,Core:y.Core,DataProvider:y.DataProvider,Filter:Te,Hover:y.Hover,ItemFrame:y.ItemFrame,List:Ne.List,Search:y.Search,Selector:y.Selector,selectValueIsZero:y.selectValueIsZero,useDataContext:y.useDataContext,useDataUtilContext:y.useDataUtilContext,useFilter:ke,useGetTransformedData:y.useGetTransformedData,useHoverContext:y.useHoverContext,useSearch:y.useSearch,useSelect:y.useSelect,useSelection:y.useSelection,useSelectionContext:y.useSelectionContext,useSelectionUtils:y.useSelectionUtils,useSetSourceData:y.useSetSourceData,useSourceData:y.useSourceData,useTransformedData:y.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Te;exports.createFilterTransform=Ce;exports.external=Tt;exports.fuseFilter=Pe;exports.proxyMemo=_e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./jsx-runtime-Cek9Ww4S.cjs"),u=require("./Toggle-
|
|
1
|
+
"use strict";const l=require("./jsx-runtime-Cek9Ww4S.cjs"),u=require("./Toggle-DnW_7Wr_.cjs"),S=require("react"),_=require("./Pack-Dvf8sQVK.cjs"),r=require("./css-BghghSL0.cjs"),z=require("./aggregator-y-jNJhKX.cjs");require("./Item-DuYEON-n.cjs");const j=require("zod"),N=(n,s)=>S.cloneElement(n,{className:r.CSS(n.props.className,r.CSS.B("sub"),r.CSS.M(s))}),k=({topRight:n,topLeft:s,bottomLeft:e,bottomRight:o,children:t,className:c,...i})=>l.jsxRuntimeExports.jsxs("div",{className:r.CSS(c,r.CSS.B("icon")),...i,children:[n&&N(n,"topRight"),s&&N(s,"topLeft"),e&&N(e,"bottomLeft"),o&&N(o,"bottomRight"),t]}),X=n=>l.jsxRuntimeExports.jsx(k,{topRight:l.jsxRuntimeExports.jsx(u.e4.Add,{}),...n}),$=n=>l.jsxRuntimeExports.jsx(k,{topRight:l.jsxRuntimeExports.jsx(u.e4.Import,{}),...n}),y=(n,s)=>{if(n!=null){if(typeof n=="string"){const e=z._.get(u.e4,n);return l.jsxRuntimeExports.jsx(e,{...s})}return S.cloneElement(n,s)}},G=Object.freeze(Object.defineProperty({__proto__:null,Create:X,Icon:k,Import:$,resolve:y},Symbol.toStringTag,{value:"Module"})),I=(n="",s=[])=>{var e;if(s.length!==0)return s.find(o=>o.tabKey===n)!=null?n:(e=s[s.length-1])==null?void 0:e.tabKey},M=(n,s,e)=>{if(s=s.trim(),s.length===0)return e;const o=e.find(t=>t.tabKey===n);return o==null||o.name===s?e:e.map(t=>t.tabKey===n?{...t,name:s}:t)},O=({tabs:n,content:s,selected:e,onSelect:o})=>{var x;const[t,c]=z.usePurePassthrough({initial:e??((x=n[0])==null?void 0:x.tabKey)??"",value:e,onChange:o}),i=u.useSyncedRef(e??t),a=S.useCallback(p=>{c(p),i.current==null&&(o==null||o(p))},[t,o]);return{tabs:n,selected:t,content:s,onSelect:a}},P=S.createContext({tabs:[]}),w=P.Provider,q=()=>S.useContext(P),L=({id:n,content:s,children:e,onSelect:o,selected:t,selectedAltColor:c,closable:i,tabs:a,onClose:x,onDragStart:p,onDragEnd:b,onCreate:C,onRename:g,emptyContent:v,className:B,onDragOver:f,onDrop:R,contextMenu:m,size:E="medium",direction:T="y",...h})=>l.jsxRuntimeExports.jsx(_.Space,{id:n,empty:!0,className:r.CSS(r.CSS.B("tabs"),B),onDragOver:f,onDrop:R,direction:T,...h,children:l.jsxRuntimeExports.jsxs(w,{value:{tabs:a,emptyContent:v,selected:t,closable:i,content:e??s,onSelect:o,onClose:x,onDragStart:p,onDragEnd:b,onRename:g,onCreate:C,onDrop:R},children:[l.jsxRuntimeExports.jsx(V,{size:E,direction:r.g.swap(T),altColor:c,contextMenu:m}),l.jsxRuntimeExports.jsx(A,{})]})}),A=()=>{const{tabs:n,selected:s,content:e,emptyContent:o,onSelect:t}=q();let c=null;const i=n.find(a=>a.tabKey===s);return s==null||i==null?o??null:(e!=null?typeof e=="function"?c=e(i):c=e:i.content!=null&&(c=i.content),l.jsxRuntimeExports.jsx("div",{className:r.CSS.B("tabs-content"),onClick:()=>t==null?void 0:t(s),children:c}))},d="tabs-selector",V=({className:n,altColor:s=!1,size:e="medium",direction:o="x",contextMenu:t,...c})=>{const{tabs:i,selected:a,onSelect:x,onClose:p,closable:b,onDragEnd:C,onDragStart:g,onDrop:v,onRename:B,onCreate:f}=q(),R=u.useContextMenu(),m=l.jsxRuntimeExports.jsxs(_.Space,{className:r.CSS(r.CSS.B(d),r.CSS.size(e),n),align:"center",justify:"spaceBetween",onDrop:v,empty:!0,direction:o,...c,children:[l.jsxRuntimeExports.jsx(_.Space,{direction:o,className:r.CSS.BE(d,"tabs"),empty:!0,children:i.map(E=>l.jsxRuntimeExports.jsx(F,{selected:a,altColor:s,onSelect:x,onClose:p,onDragStart:g,onDragEnd:C,onRename:B,closable:E.closable??b,size:e,...E},E.tabKey))}),f!=null&&l.jsxRuntimeExports.jsx(_.Space,{className:r.CSS.BE(d,"actions"),children:l.jsxRuntimeExports.jsx(u.Icon,{size:e,sharp:!0,onClick:f,children:l.jsxRuntimeExports.jsx(u.e4.Add,{})})})]});return t!=null?l.jsxRuntimeExports.jsx(u.ContextMenu,{style:{height:"fit-content"},...R,menu:t,children:m}):m},F=({selected:n,altColor:s=!1,onSelect:e,onClose:o,tabKey:t,name:c,onDragStart:i,onDragEnd:a,onRename:x,closable:p=!0,icon:b,size:C,editable:g=!0})=>{const v=S.useCallback(h=>i==null?void 0:i(h,{tabKey:t,name:c}),[i,t,c]),B=S.useCallback(h=>a==null?void 0:a(h,{tabKey:t,name:c}),[a,t,c]),f=S.useCallback(h=>{h.stopPropagation(),o==null||o(t)},[o,t]),R=S.useCallback(()=>e==null?void 0:e(t),[e,t]),m=n===t,E=b!=null,T=z.ComponentSizeLevels[C];return l.jsxRuntimeExports.jsxs(_.Pack,{size:C,id:t,className:r.CSS(r.CSS.BE(d,"btn"),u.CONTEXT_TARGET,x==null&&r.CSS.BEM(d,"btn","uneditable"),m&&u.CONTEXT_SELECTED,r.CSS.selected(m),r.CSS.altColor(s),p&&o!=null&&r.CSS.BEM(d,"btn","closable"),E&&r.CSS.BEM(d,"btn","has-icon")),draggable:!0,direction:"x",justify:"center",align:"center",onClick:R,onDragStart:v,onDragEnd:B,bordered:!1,rounded:!1,children:[y(b,{className:r.CSS.BE(d,"icon"),style:{color:r.CSS.shadeVar(7),height:r.CSS.levelSizeVar(T),width:r.CSS.levelSizeVar(T)}}),l.jsxRuntimeExports.jsx(H,{name:c,tabKey:t,onRename:x,editable:g,level:z.ComponentSizeLevels[C]}),p&&o!=null&&l.jsxRuntimeExports.jsx(u.Icon,{onClick:f,children:l.jsxRuntimeExports.jsx(u.e4.Close,{"aria-label":"pluto-tabs__close"})})]})},H=({onRename:n,name:s,tabKey:e,editable:o=!0,...t})=>n==null||!o?l.jsxRuntimeExports.jsx(u.Text,{noWrap:!0,...t,children:s}):l.jsxRuntimeExports.jsx(u.Editable,{id:r.CSS.B(`tab-${e}`),onChange:c=>n(e,c),value:s,noWrap:!0,...t}),Z=j.z.object({tabKey:j.z.string(),name:j.z.string(),closable:j.z.boolean().optional(),icon:j.z.unknown().optional(),editable:j.z.boolean().optional(),visible:j.z.boolean().optional()}),W=Z.extend({content:j.z.unknown().optional()}),J=Object.freeze(Object.defineProperty({__proto__:null,Content:A,Context:P,Provider:w,Selector:V,Tabs:L,rename:M,resetSelection:I,specZ:Z,tabZ:W,useContext:q,useStatic:O},Symbol.toStringTag,{value:"Module"}));exports.Icon=G;exports.Tabs=L;exports.external=J;exports.rename=M;exports.resetSelection=I;exports.resolve=y;exports.tabZ=W;exports.useStatic=O;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { C as D, L as T, c as M, d as w, e as N, l as _, s as v, f as K, w as P } from "./aggregator-23mu0FOF.js";
|
|
2
|
+
import { aj as H, ak as x, ae as O, af as R, al as z, ai as C, am as I, B as g, an as W, ao as Z, ap as F, aq as U, ar as V, ab as X, i as $, j as q, as as G, ah as J, ag as Q, at as Y, au as ee } from "./Toggle-CLkPIiQK.js";
|
|
3
|
+
import { K as se } from "./Keyboard-Csje8Cyn.js";
|
|
4
|
+
import { j as l } from "./jsx-runtime-B6kdoens.js";
|
|
5
|
+
import { useState as le, useEffect as oe, useCallback as te } from "react";
|
|
6
|
+
import { P as B } from "./Pack-BzCJQZ58.js";
|
|
7
|
+
import { A as ne } from "./Animated-C7JTBH0T.js";
|
|
8
|
+
import { C as p } from "./css-DJCM-h5_.js";
|
|
9
|
+
import { L as ae } from "./List-Cuz80sgI.js";
|
|
10
|
+
const re = [], ie = ({
|
|
11
|
+
data: e,
|
|
12
|
+
emptyContent: s,
|
|
13
|
+
value: n,
|
|
14
|
+
onChange: a,
|
|
15
|
+
allowMultiple: i,
|
|
16
|
+
allowNone: c,
|
|
17
|
+
hideColumnHeader: t = !1,
|
|
18
|
+
columns: b = re,
|
|
19
|
+
visible: u,
|
|
20
|
+
itemHeight: d = x.itemHeight,
|
|
21
|
+
listItem: f = C(x.Item),
|
|
22
|
+
replaceOnSingle: h,
|
|
23
|
+
omit: o,
|
|
24
|
+
autoSelectOnNone: k,
|
|
25
|
+
trigger: S,
|
|
26
|
+
extraDialogContent: j,
|
|
27
|
+
variant: m = "connected",
|
|
28
|
+
...L
|
|
29
|
+
}) => {
|
|
30
|
+
let y = /* @__PURE__ */ l.jsxs(H, { disabled: !u, children: [
|
|
31
|
+
j,
|
|
32
|
+
/* @__PURE__ */ l.jsx(
|
|
33
|
+
x.Header,
|
|
34
|
+
{
|
|
35
|
+
hide: t || f != null,
|
|
36
|
+
columns: b,
|
|
37
|
+
children: /* @__PURE__ */ l.jsx(O.Virtual, { itemHeight: d, children: f })
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] });
|
|
41
|
+
return m !== "connected" && (y = /* @__PURE__ */ l.jsx(
|
|
42
|
+
B,
|
|
43
|
+
{
|
|
44
|
+
direction: "y",
|
|
45
|
+
borderShade: 4,
|
|
46
|
+
className: p.B("select-dialog-content"),
|
|
47
|
+
children: y
|
|
48
|
+
}
|
|
49
|
+
)), /* @__PURE__ */ l.jsx(ae, { data: e, emptyContent: s, omit: o, children: /* @__PURE__ */ l.jsx(
|
|
50
|
+
R,
|
|
51
|
+
{
|
|
52
|
+
value: n,
|
|
53
|
+
onChange: a,
|
|
54
|
+
allowMultiple: i,
|
|
55
|
+
allowNone: c,
|
|
56
|
+
replaceOnSingle: h,
|
|
57
|
+
autoSelectOnNone: k,
|
|
58
|
+
children: /* @__PURE__ */ l.jsxs(
|
|
59
|
+
z,
|
|
60
|
+
{
|
|
61
|
+
visible: u,
|
|
62
|
+
className: p.B("select"),
|
|
63
|
+
keepMounted: !1,
|
|
64
|
+
variant: m,
|
|
65
|
+
...L,
|
|
66
|
+
children: [
|
|
67
|
+
S,
|
|
68
|
+
y
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
) });
|
|
74
|
+
}, A = ({
|
|
75
|
+
children: e = ce,
|
|
76
|
+
value: s,
|
|
77
|
+
onChange: n,
|
|
78
|
+
entryRenderKey: a = "key",
|
|
79
|
+
allowNone: i = !1,
|
|
80
|
+
allowMultiple: c = !1,
|
|
81
|
+
data: t,
|
|
82
|
+
replaceOnSingle: b,
|
|
83
|
+
className: u,
|
|
84
|
+
size: d = "small",
|
|
85
|
+
...f
|
|
86
|
+
}) => {
|
|
87
|
+
const { onSelect: h } = I({
|
|
88
|
+
allowMultiple: c,
|
|
89
|
+
allowNone: i,
|
|
90
|
+
replaceOnSingle: b,
|
|
91
|
+
data: t,
|
|
92
|
+
value: s,
|
|
93
|
+
onChange: n
|
|
94
|
+
});
|
|
95
|
+
return /* @__PURE__ */ l.jsx(
|
|
96
|
+
B,
|
|
97
|
+
{
|
|
98
|
+
borderShade: 4,
|
|
99
|
+
className: p(p.B("select-button"), u),
|
|
100
|
+
size: d,
|
|
101
|
+
...f,
|
|
102
|
+
children: t == null ? void 0 : t.map(
|
|
103
|
+
(o) => e({
|
|
104
|
+
key: o.key,
|
|
105
|
+
onClick: () => h(o.key),
|
|
106
|
+
size: d,
|
|
107
|
+
selected: o.key === s,
|
|
108
|
+
entry: o,
|
|
109
|
+
title: o[a]
|
|
110
|
+
})
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}, ce = ({
|
|
115
|
+
key: e,
|
|
116
|
+
onClick: s,
|
|
117
|
+
selected: n,
|
|
118
|
+
title: a
|
|
119
|
+
}) => /* @__PURE__ */ l.jsx(
|
|
120
|
+
g,
|
|
121
|
+
{
|
|
122
|
+
onClick: s,
|
|
123
|
+
variant: n ? "filled" : "outlined",
|
|
124
|
+
size: "small",
|
|
125
|
+
children: a
|
|
126
|
+
},
|
|
127
|
+
e
|
|
128
|
+
), de = ({
|
|
129
|
+
selected: e,
|
|
130
|
+
renderKey: s,
|
|
131
|
+
toggle: n,
|
|
132
|
+
visible: a,
|
|
133
|
+
children: i,
|
|
134
|
+
...c
|
|
135
|
+
}) => /* @__PURE__ */ l.jsx(
|
|
136
|
+
g,
|
|
137
|
+
{
|
|
138
|
+
className: p.B("select-dropdown-button"),
|
|
139
|
+
onClick: n,
|
|
140
|
+
variant: "outlined",
|
|
141
|
+
endIcon: /* @__PURE__ */ l.jsx(ne, { enabledLoc: "bottom", disabledLoc: "left", enabled: a }),
|
|
142
|
+
...c,
|
|
143
|
+
children: i ?? (e == null ? void 0 : e[s])
|
|
144
|
+
}
|
|
145
|
+
), me = C(de), Be = ({
|
|
146
|
+
data: e,
|
|
147
|
+
value: s,
|
|
148
|
+
columns: n = [],
|
|
149
|
+
children: a = me,
|
|
150
|
+
entryRenderKey: i = "key",
|
|
151
|
+
allowNone: c = !1,
|
|
152
|
+
onChange: t,
|
|
153
|
+
disabled: b,
|
|
154
|
+
hideColumnHeader: u = !0,
|
|
155
|
+
variant: d,
|
|
156
|
+
dropdownVariant: f,
|
|
157
|
+
...h
|
|
158
|
+
}) => {
|
|
159
|
+
const { close: o, visible: k, toggle: S } = W(), [j, m] = le(
|
|
160
|
+
(e == null ? void 0 : e.find((r) => r.key === s)) ?? null
|
|
161
|
+
);
|
|
162
|
+
oe(() => {
|
|
163
|
+
m((e == null ? void 0 : e.find((r) => r.key === s)) ?? null);
|
|
164
|
+
}, [e, s]);
|
|
165
|
+
const L = te(
|
|
166
|
+
(r, E) => {
|
|
167
|
+
if (!(Array.isArray(r) || r === null)) {
|
|
168
|
+
if (o(), r == null)
|
|
169
|
+
return m(null), t(s);
|
|
170
|
+
m(E.entries[0]), t(r);
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
[t, s, o, m]
|
|
174
|
+
), y = {
|
|
175
|
+
selected: j,
|
|
176
|
+
renderKey: i,
|
|
177
|
+
toggle: S,
|
|
178
|
+
visible: k,
|
|
179
|
+
disabled: b
|
|
180
|
+
};
|
|
181
|
+
return d != null && (y.variant = d), /* @__PURE__ */ l.jsx(
|
|
182
|
+
ie,
|
|
183
|
+
{
|
|
184
|
+
close: o,
|
|
185
|
+
data: e,
|
|
186
|
+
visible: k,
|
|
187
|
+
value: s,
|
|
188
|
+
onChange: L,
|
|
189
|
+
allowMultiple: !1,
|
|
190
|
+
allowNone: c,
|
|
191
|
+
columns: n,
|
|
192
|
+
hideColumnHeader: u,
|
|
193
|
+
variant: f,
|
|
194
|
+
trigger: /* @__PURE__ */ l.jsx(l.Fragment, { children: a(y) }),
|
|
195
|
+
...h
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
}, ue = [
|
|
199
|
+
{ key: "h2", label: "XL" },
|
|
200
|
+
{ key: "h3", label: "L" },
|
|
201
|
+
{ key: "h4", label: "M" },
|
|
202
|
+
{ key: "h5", label: "S" },
|
|
203
|
+
{ key: "small", label: "XS" }
|
|
204
|
+
], fe = ({ children: e, ...s }) => /* @__PURE__ */ l.jsx(A, { ...s, data: ue, entryRenderKey: "label", children: e }), ye = [
|
|
205
|
+
{ key: 600, label: "Bold" },
|
|
206
|
+
{ key: 500, label: "Medium" },
|
|
207
|
+
{ key: 400, label: "Normal" },
|
|
208
|
+
{ key: 250, label: "Light" }
|
|
209
|
+
], be = ({
|
|
210
|
+
children: e,
|
|
211
|
+
...s
|
|
212
|
+
}) => /* @__PURE__ */ l.jsx(A, { ...s, data: ye, entryRenderKey: "label", children: e }), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
213
|
+
__proto__: null,
|
|
214
|
+
ComponentSizeLevels: D,
|
|
215
|
+
CoreDateTime: Z,
|
|
216
|
+
DateTime: F,
|
|
217
|
+
Editable: U,
|
|
218
|
+
Keyboard: se,
|
|
219
|
+
LEVELS: T,
|
|
220
|
+
LevelComponentSizes: M,
|
|
221
|
+
Link: V,
|
|
222
|
+
MaybeEditable: X,
|
|
223
|
+
SelectLevel: fe,
|
|
224
|
+
SelectWeight: be,
|
|
225
|
+
Symbols: $,
|
|
226
|
+
Text: q,
|
|
227
|
+
WithIcon: G,
|
|
228
|
+
asyncEdit: J,
|
|
229
|
+
dimensions: w,
|
|
230
|
+
downLevel: N,
|
|
231
|
+
edit: Q,
|
|
232
|
+
evalColor: Y,
|
|
233
|
+
formatChildren: ee,
|
|
234
|
+
levelZ: _,
|
|
235
|
+
specZ: v,
|
|
236
|
+
upLevel: K,
|
|
237
|
+
weightZ: P
|
|
238
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
239
|
+
export {
|
|
240
|
+
A as B,
|
|
241
|
+
ie as C,
|
|
242
|
+
Be as D,
|
|
243
|
+
fe as S,
|
|
244
|
+
de as a,
|
|
245
|
+
be as b,
|
|
246
|
+
me as d,
|
|
247
|
+
Ae as e
|
|
248
|
+
};
|
|
@@ -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-23mu0FOF.js";
|
|
2
|
+
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-CLkPIiQK.js";
|
|
3
3
|
const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Provider: s,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { a as e, Z as a, c as s, b as t, f as r, d as o, g as n, p as u, s as c, t as l } from "./css-DJCM-h5_.js";
|
|
2
|
+
import { G as i, n as Z, o as d, p, Z as f, q as m, r as S, s as x, v as P, w as _, x as g, y as q, z as O, A as T } from "./Toggle-CLkPIiQK.js";
|
|
3
|
+
const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
Color: e,
|
|
6
|
+
GradientPicker: i,
|
|
7
|
+
Picker: Z,
|
|
8
|
+
Provider: d,
|
|
9
|
+
Swatch: p,
|
|
10
|
+
ZERO: a,
|
|
11
|
+
ZERO_CONTEXT_STATE: f,
|
|
12
|
+
contextStateZ: m,
|
|
13
|
+
crudeZ: s,
|
|
14
|
+
cssString: t,
|
|
15
|
+
frequentZ: S,
|
|
16
|
+
fromGradient: r,
|
|
17
|
+
fromHSLA: o,
|
|
18
|
+
gradientZ: n,
|
|
19
|
+
paletteZ: u,
|
|
20
|
+
recalculate: x,
|
|
21
|
+
relevancyZ: P,
|
|
22
|
+
stopZ: c,
|
|
23
|
+
toHex: l,
|
|
24
|
+
useContext: _,
|
|
25
|
+
useFrequent: g,
|
|
26
|
+
useFrequentUpdater: q,
|
|
27
|
+
usePalette: O,
|
|
28
|
+
useRequiredPalette: T
|
|
29
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
30
|
+
export {
|
|
31
|
+
y as e
|
|
32
|
+
};
|