@synnaxlabs/pluto 0.44.6 → 0.44.8
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-BDoJWl9g.cjs → Animated-CyK_c82a.cjs} +1 -1
- package/dist/{Animated-fI-NFaha.js → Animated-fJsLX-Tt.js} +2 -2
- package/dist/Editable-B8pvBXQS.cjs +92 -0
- package/dist/{Editable-C1g_CFYk.js → Editable-MR16HLlJ.js} +11147 -11098
- package/dist/{LinePlot-YMJgGruk.js → LinePlot-BIZ1E3Rb.js} +208 -204
- package/dist/LinePlot-DslwDvAo.cjs +53 -0
- package/dist/{Toggle-DUKDeqpe.cjs → Toggle-Bqp97ujd.cjs} +1 -1
- package/dist/{Toggle-DEJ8Uvun.js → Toggle-BsP_WecR.js} +1 -1
- package/dist/{Video-B6tujjr8.js → Video-CMuBiBcp.js} +1 -1
- package/dist/{Video-BjRd9sFv.cjs → Video-CbaEeyGH.cjs} +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-DvIPI3Qm.js → css-BlHGoCgb.js} +578 -559
- package/dist/css-CZ_XGkIB.cjs +8 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{eraser-CnRJY__h.js → eraser-BstNvEkO.js} +1940 -1889
- package/dist/eraser-DiJNbabo.cjs +63 -0
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +13 -13
- package/dist/external-0zUBjsWc.cjs +1 -0
- package/dist/{external-BVDQNHbo.cjs → external-1ebWGBIY.cjs} +1 -1
- package/dist/{external-D98a3YQJ.cjs → external-B4A9qxs2.cjs} +1 -1
- package/dist/{external-B3dPSZUg.js → external-B5vTtpm8.js} +2 -2
- package/dist/{external-CAAPXpVr.cjs → external-BNagUgId.cjs} +1 -1
- package/dist/{external-Daage1AI.js → external-BWwSCjxj.js} +10 -10
- package/dist/{external-DwRvB5ZT.cjs → external-Bbrq8Uh2.cjs} +1 -1
- package/dist/{external-C2iqWGd2.js → external-BhMf86-b.js} +29 -29
- package/dist/{external-BenP6Hcm.cjs → external-BoI3SDJy.cjs} +1 -1
- package/dist/{external-Dfr7xymv.js → external-C1_CUNeZ.js} +3 -3
- package/dist/{external-DKh0JhWO.cjs → external-CbHi1R5M.cjs} +1 -1
- package/dist/{external-Blrrgnzw.cjs → external-Cd_bzIsx.cjs} +1 -1
- package/dist/{external-dew29Q0v.js → external-CuYkHdQ-.js} +2 -2
- package/dist/{external-CNF5TNBY.cjs → external-Cw9nrwGS.cjs} +1 -1
- package/dist/{external-GR-20z_c.js → external-CzyQFMzI.js} +20 -20
- package/dist/{external-BS9S-b49.cjs → external-D0FRmOeg.cjs} +1 -1
- package/dist/{external-CKhbbig_.js → external-D4Cbm19R.js} +12 -12
- package/dist/external-DHgpDWNu.cjs +1 -0
- package/dist/{external-Db9iKa8k.js → external-DVsTr26y.js} +3 -3
- package/dist/{external-R9a28aP6.js → external-DpjNdrhL.js} +31 -31
- package/dist/{external-DNO3FJLl.cjs → external-H1IGckxo.cjs} +1 -1
- package/dist/{external-D6hAP7eJ.js → external-IBOALZ2N.js} +7 -7
- package/dist/{external-DRuZ24L7.js → external-NISlPgIR.js} +6 -6
- package/dist/{external-BzV_PGNe.js → external-Poa7jfNM.js} +2 -2
- package/dist/external-YHSSoyM9.js +44 -0
- package/dist/{external-DOEaBrpz.cjs → external-lcuUe52o.cjs} +1 -1
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +1 -1
- package/dist/{fontString-CW0wLG5g.js → fontString-Ca1-oixk.js} +2 -2
- package/dist/{fontString-aK--tYMM.cjs → fontString-Cp4X6CqQ.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 +6519 -6409
- 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/pluto.css +1 -1
- package/dist/src/channel/LinePlot.d.ts +0 -4
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/channel/queries.d.ts +13 -13
- package/dist/src/channel/queries.d.ts.map +1 -1
- package/dist/src/dialog/Dialog.d.ts.map +1 -1
- package/dist/src/dialog/Frame.d.ts +13 -7
- package/dist/src/dialog/Frame.d.ts.map +1 -1
- package/dist/src/dialog/position.d.ts +22 -8
- package/dist/src/dialog/position.d.ts.map +1 -1
- package/dist/src/dialog/position.spec.d.ts +2 -0
- package/dist/src/dialog/position.spec.d.ts.map +1 -0
- package/dist/src/flux/core/store.d.ts +2 -0
- package/dist/src/flux/core/store.d.ts.map +1 -1
- package/dist/src/flux/list.d.ts +9 -2
- package/dist/src/flux/list.d.ts.map +1 -1
- package/dist/src/group/index.d.ts +2 -0
- package/dist/src/group/index.d.ts.map +1 -0
- package/dist/src/group/queries.d.ts +35 -0
- package/dist/src/group/queries.d.ts.map +1 -0
- package/dist/src/group/queries.spec.d.ts +2 -0
- package/dist/src/group/queries.spec.d.ts.map +1 -0
- package/dist/src/hardware/device/queries.d.ts +1 -1
- package/dist/src/hardware/device/queries.d.ts.map +1 -1
- package/dist/src/hardware/rack/queries.d.ts +1 -1
- package/dist/src/hardware/rack/queries.d.ts.map +1 -1
- package/dist/src/hardware/task/queries.d.ts +1 -1
- package/dist/src/hardware/task/queries.d.ts.map +1 -1
- package/dist/src/hooks/index.d.ts +0 -2
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/useDestructors.d.ts.map +1 -1
- package/dist/src/hooks/useDestructors.spec.d.ts +2 -0
- package/dist/src/hooks/useDestructors.spec.d.ts.map +1 -0
- package/dist/src/hooks/useResize.d.ts +1 -0
- package/dist/src/hooks/useResize.d.ts.map +1 -1
- package/dist/src/icon/registry.d.ts +1 -0
- package/dist/src/icon/registry.d.ts.map +1 -1
- package/dist/src/label/queries.d.ts +1 -1
- package/dist/src/label/queries.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +1 -1
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/ontology/queries.d.ts +2 -2
- package/dist/src/ontology/queries.d.ts.map +1 -1
- package/dist/src/pluto/Pluto.d.ts +2 -0
- package/dist/src/pluto/Pluto.d.ts.map +1 -1
- package/dist/src/ranger/aether/queries.d.ts +1 -1
- package/dist/src/ranger/aether/queries.d.ts.map +1 -1
- package/dist/src/ranger/queries.d.ts +2 -2
- package/dist/src/ranger/queries.d.ts.map +1 -1
- package/dist/src/state/state.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +2 -2
- package/dist/src/telem/control/aether/legend.d.ts +2 -2
- package/dist/src/testutil/Synnax.d.ts +1 -1
- package/dist/src/testutil/Synnax.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts +3 -29
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/legend/Entries.d.ts +22 -0
- package/dist/src/vis/legend/Entries.d.ts.map +1 -0
- package/dist/src/vis/legend/Grouped.d.ts +15 -0
- package/dist/src/vis/legend/Grouped.d.ts.map +1 -0
- package/dist/src/vis/legend/Simple.d.ts +5 -19
- package/dist/src/vis/legend/Simple.d.ts.map +1 -1
- package/dist/src/vis/legend/external.d.ts +1 -0
- package/dist/src/vis/legend/external.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts +3 -3
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Line.d.ts +2 -1
- package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +1 -0
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/workspace/queries.d.ts +1 -1
- package/dist/src/workspace/queries.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-WWUmv-rf.cjs → units-Cqxg-SBx.cjs} +1 -1
- package/dist/{units-Dh7MflIZ.js → units-D8blpqyN.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +7 -7
- package/dist/Editable-DUtJOqJ5.cjs +0 -92
- package/dist/LinePlot-DRbAPdEU.cjs +0 -53
- package/dist/css-DI0uCCGq.cjs +0 -8
- package/dist/eraser-B03ej59l.cjs +0 -63
- package/dist/external-BEd3F7zY.cjs +0 -1
- package/dist/external-D16M7vHB.js +0 -43
- package/dist/external-I_-aclFy.cjs +0 -1
- package/dist/src/hooks/useDelayedState.d.ts +0 -11
- package/dist/src/hooks/useDelayedState.d.ts.map +0 -1
- package/dist/src/hooks/useTransforms.d.ts +0 -16
- package/dist/src/hooks/useTransforms.d.ts.map +0 -1
package/dist/ether.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./eraser-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./eraser-DiJNbabo.cjs");require("./css-CZ_XGkIB.cjs");const e=require("./LinePlot-DslwDvAo.cjs");require("react");const S=require("./fontString-Cp4X6CqQ.cjs"),i=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontSpecZ:t.fontSpecZ,fontString:S.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),l=Object.freeze(Object.defineProperty({__proto__:null,Context:t.Context,GLProgram:t.GLProgram,Loop:t.Loop,control:e.control,request:e.request,useOptionalRequestor:e.useOptionalRequestor,useRequestor:e.useRequestor},Symbol.toStringTag,{value:"Module"})),s={[e.FLUX_STORE_KEY]:e.FLUX_STORE_CONFIG},u=()=>{const r=new t.d((n,R)=>postMessage(n,R));onmessage=r.handle.bind(r);const o={...t.REGISTRY$3,...e.REGISTRY$17,...e.REGISTRY$16,...e.REGISTRY$15,...e.REGISTRY$14,...t.REGISTRY$2,...e.REGISTRY$13,...e.REGISTRY$12,...e.REGISTRY$11,...e.REGISTRY$10,...e.REGISTRY$9,...e.REGISTRY$8,...e.REGISTRY$7,...t.REGISTRY$1,...e.REGISTRY$6,...e.REGISTRY$5,...t.REGISTRY,...e.REGISTRY$4,...e.REGISTRY$3,...e.REGISTRY$2,...e.REGISTRY$1,...e.REGISTRY,...e.createRegistry({storeConfig:s})};t.render({comms:r.route("vis"),registry:o,instrumentation:new t.O({logger:new t._({filters:[t.be("info")]})})})},a=Object.freeze(Object.defineProperty({__proto__:null,render:u},Symbol.toStringTag,{value:"Module"})),T=Object.freeze(Object.defineProperty({__proto__:null,BoundQuerier:e.BoundQuerier,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY$11,XAxis:e.XAxis,YAxis:e.YAxis,boundQuerierStateZ:e.boundQuerierStateZ,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=T;exports.pluto=a;exports.render=l;exports.theming=i;
|
package/dist/ether.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as R, R as s, S as n, e as S, f as i, h as l, t as T, u as E, j as G, G as u, k as Y, m, n as I, o as $, p, r as _, O as c, _ as f, q as g } from "./eraser-
|
|
2
|
-
import { v as me } from "./eraser-
|
|
3
|
-
import "./css-
|
|
4
|
-
import { c as d, r as b, u as O, a as x, R as y, b as j, d as v, e as P, f as A, g as
|
|
5
|
-
import {
|
|
1
|
+
import { P as R, R as s, S as n, e as S, f as i, h as l, t as T, u as E, j as G, G as u, k as Y, m, n as I, o as $, p, r as _, O as c, _ as f, q as g } from "./eraser-BstNvEkO.js";
|
|
2
|
+
import { v as me } from "./eraser-BstNvEkO.js";
|
|
3
|
+
import "./css-BlHGoCgb.js";
|
|
4
|
+
import { c as d, r as b, u as O, a as x, R as y, b as j, d as v, e as P, f as A, g as L, h as N, i as h, j as X, k as M, l as Z, m as a, n as q, o as w, p as z, q as C, s as F, t as k, v as H, F as K, w as B, G as D, L as Q, X as U, Y as J, H as V, I as W, J as ee, K as se } from "./LinePlot-BIZ1E3Rb.js";
|
|
5
|
+
import { z as $e, D as pe, B as _e, C as ce, x as fe, y as ge, A as de, E as be } from "./LinePlot-BIZ1E3Rb.js";
|
|
6
6
|
import "react";
|
|
7
|
-
import { f as ae } from "./fontString-
|
|
7
|
+
import { f as ae } from "./fontString-Ca1-oixk.js";
|
|
8
8
|
const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
9
|
__proto__: null,
|
|
10
10
|
Provider: R,
|
|
@@ -26,7 +26,7 @@ const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
26
26
|
useOptionalRequestor: O,
|
|
27
27
|
useRequestor: x
|
|
28
28
|
}, Symbol.toStringTag, { value: "Module" })), te = {
|
|
29
|
-
[
|
|
29
|
+
[B]: K
|
|
30
30
|
}, oe = () => {
|
|
31
31
|
const e = new m((o, r) => postMessage(o, r));
|
|
32
32
|
onmessage = e.handle.bind(e);
|
|
@@ -41,12 +41,12 @@ const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41
41
|
...q,
|
|
42
42
|
...a,
|
|
43
43
|
...Z,
|
|
44
|
-
...X,
|
|
45
44
|
...M,
|
|
46
|
-
...
|
|
47
|
-
...I,
|
|
45
|
+
...X,
|
|
48
46
|
...h,
|
|
47
|
+
...I,
|
|
49
48
|
...N,
|
|
49
|
+
...L,
|
|
50
50
|
...s,
|
|
51
51
|
...A,
|
|
52
52
|
...P,
|
|
@@ -67,11 +67,11 @@ const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
67
67
|
render: oe
|
|
68
68
|
}, Symbol.toStringTag, { value: "Module" })), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
69
69
|
__proto__: null,
|
|
70
|
-
BoundQuerier:
|
|
70
|
+
BoundQuerier: D,
|
|
71
71
|
LinePlot: Q,
|
|
72
72
|
REGISTRY: a,
|
|
73
|
-
XAxis:
|
|
74
|
-
YAxis:
|
|
73
|
+
XAxis: U,
|
|
74
|
+
YAxis: J,
|
|
75
75
|
boundQuerierStateZ: V,
|
|
76
76
|
linePlotStateZ: W,
|
|
77
77
|
xAxisStateZ: ee,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./Editable-B8pvBXQS.cjs"),t=require("./Toggle-Bqp97ujd.cjs"),o=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Toggle:t.Toggle},Symbol.toStringTag,{value:"Module"}));exports.external=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./css-
|
|
1
|
+
"use strict";const i=require("./css-CZ_XGkIB.cjs"),_=require("./eraser-DiJNbabo.cjs"),m=require("./jsx-runtime-CITbqOLs.cjs"),B=require("./Animated-CyK_c82a.cjs"),a=require("./Editable-B8pvBXQS.cjs"),x=require("react");require("react-dom");const L=(e,n)=>n.includes(e.key),v=({nodes:e,expanded:n,sort:t,depth:s=0})=>{const r={keys:[],nodes:[]};return t!=null&&e.sort(t),e.forEach(o=>{const l=L(o,n);if(r.keys.push(o.key),r.nodes.push({depth:s,expanded:l,hasChildren:o.children!=null}),l&&o.children!=null){const{keys:c,nodes:h}=v({nodes:o.children,expanded:n,sort:t,depth:s+1});r.keys.push(...c),r.nodes.push(...h)}}),r},F=({tree:e,destination:n,keys:t})=>(t=_.t.toArray(t),n==null?[...D({tree:e,keys:t}),...e.filter(r=>!t.includes(r.key))]:(t.forEach(s=>{const r=f({tree:e,key:s});r!=null&&(T({tree:e,keys:s}),$({tree:e,destination:n,additions:r}))}),e)),T=({tree:e,keys:n})=>(n=_.t.toArray(n),n.forEach(t=>{const s=e.findIndex(r=>r.key===t);if(s!==-1)e.splice(s,1);else{const r=g({tree:e,key:t});r!=null&&(r.children=r.children?.filter(o=>o.key!==t))}}),e),$=({tree:e,destination:n,additions:t,throwOnMissing:s=!0})=>{t=_.t.toArray(t);const r=i.c.by(t,c=>c.key,!1),o=r.map(c=>c.key);if(n==null)return[...r,...e.filter(c=>!o.includes(c.key))];const l=f({tree:e,key:n});if(l==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return l.children??=[],l.children=[...r,...l.children.filter(c=>!o.includes(c.key))],e},G=({tree:e,key:n,updater:t,throwOnMissing:s=!0})=>{const r=f({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}const o=g({tree:e,key:n});if(o!=null){const l=o.children?.findIndex(c=>c.key===n);l!=null&&l!==-1&&o.children?.splice(l,1,t(r))}else e.splice(e.findIndex(l=>l.key===n),1,t(r));return e},z=({tree:e,parent:n,updater:t,throwOnMissing:s=!0})=>{const r=f({tree:e,key:n});if(r==null){if(s)throw new Error(`Could not find node with key ${n}`);return e}return r.children=t(r.children??[]),e},f=({tree:e,key:n,depth:t=0})=>{for(let s=0;s<e.length;s++){const r=e[s];if(r.key===n)return r;if(r.children!=null){const o=f({tree:r.children,key:n,depth:t+1});if(o!=null)return o}}return null},D=({tree:e,keys:n})=>{const t=[];for(const s of n){const r=f({tree:e,key:s});r!=null&&t.push(r)}return t},g=({tree:e,key:n})=>{for(const t of e)if(t.children!=null){if(t.children.some(r=>r.key===n))return t;const s=g({tree:t.children,key:n});if(s!=null)return s}return null},H=e=>e.map(n=>({...n,children:n.children!=null?H(n.children):void 0})),O=(...e)=>{const n=[];return e.forEach(t=>{n.push(t),t.children!=null&&n.push(...O(...t.children))}),n},K=(e,n)=>{const t={keys:[],nodes:[]};return e.keys.forEach((s,r)=>{n(s,e.nodes[r].depth)&&(t.keys.push(s),t.nodes.push(e.nodes[r]))}),t},U=e=>{const n=Math.min(...e.nodes.map(t=>t.depth));return e.keys.filter((t,s)=>e.nodes[s].depth===n)},Y=(e,n)=>{const t=n.keys.findIndex(s=>s===e);return n.nodes[t].depth},P=(e,n)=>{const t=e.keys.findIndex(s=>s===n);return e.nodes[t]},J=({depth:e,hasChildren:n,expanded:t,children:s,style:r,className:o,loading:l,useMargin:c=!1,offsetMultiplier:h=2.5,...S})=>m.jsxRuntimeExports.jsxs(a.ListItem,{className:i.CSS(i.CSS.BE("tree","item"),e!==0&&i.CSS.M("show-rules"),c&&i.CSS.M("margin"),o),style:{[i.CSS.var("tree-item-offset")]:`${e*h+1.5}rem`,...r},gap:"small",align:"center",...S,children:[n&&m.jsxRuntimeExports.jsx(B.Animated,{className:i.CSS.BE("tree","expansion-indicator"),enabled:t,enabledLoc:"bottom",disabledLoc:"right"},"caret"),s,l&&m.jsxRuntimeExports.jsx(a.Loading,{})]}),Q="tree-item",V=[["Shift"]],W=({onExpand:e,nodes:n,initialExpanded:t=[],selected:s,onSelectedChange:r,sort:o})=>{const[l,c,h]=a.useCombinedStateAndRef(t),[S,R]=_.usePassthrough({initial:[],value:s,onChange:r}),N=x.useMemo(()=>v({nodes:n,expanded:l,sort:o}),[n,l,o]),b=a.useSyncedRef(n),j=a.useSyncedRef(N),k=a.useHeldRef({triggers:V}),I=x.useCallback((u,{clicked:d})=>{if(R(p=>u.length===0&&p.length>0?p.slice(0,1):u),d==null||k.current.held)return;const C=P(j.current,d);if(C==null||!C.hasChildren)return;const A=h.current,M=A.some(p=>p===d)?"contract":"expand";let E;M==="contract"?E=A.filter(p=>p!==d):E=[...A,d],c(E),e?.({current:E,action:M,clicked:d})},[e,b,c,R]),w=x.useCallback(u=>{c(d=>i.c.unique([...d,u])),e?.({current:l,action:"expand",clicked:u})},[c]),y=x.useCallback((...u)=>{c(d=>d.filter(C=>!u.includes(C))),u.forEach(d=>{e?.({current:l,action:"contract",clicked:d})})},[c]),q=x.useCallback(()=>c([]),[c]);return{selected:S,expanded:l,contract:y,expand:w,clearExpanded:q,shape:N,onSelect:I}},X=({shape:e,children:n,selected:t,onSelect:s,getItem:r,subscribe:o,className:l,contract:c,expand:h,expanded:S,className:R,clearExpanded:N,showRules:b=!1,virtual:j=!1,...k})=>{const{keys:I,nodes:w}=e;return m.jsxRuntimeExports.jsx(a.Frame$1,{multiple:!0,value:t,replaceOnSingle:!0,data:I,onChange:s,getItem:r,subscribe:o,itemHeight:27,virtual:j,children:m.jsxRuntimeExports.jsx(a.Items,{className:i.CSS(i.CSS.B("tree"),l,b&&i.CSS.M("show-rules")),...k,displayItems:1/0,children:({index:y,...q})=>n({index:y,...w[y],...q})})})},Z=Object.freeze(Object.defineProperty({__proto__:null,HAUL_TYPE:Q,Item:J,Tree:X,deepCopy:H,filterShape:K,findNode:f,findNodeParent:g,findNodes:D,flatten:v,getAllNodesOfMinDepth:U,getDepth:Y,getDescendants:O,getNodeShape:P,moveNode:F,removeNode:T,setNode:$,shouldExpand:L,updateNode:G,updateNodeChildren:z,use:W},Symbol.toStringTag,{value:"Module"}));exports.external=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Editable-
|
|
1
|
+
"use strict";const e=require("./Editable-B8pvBXQS.cjs"),S=require("./jsx-runtime-CITbqOLs.cjs"),t=require("./css-CZ_XGkIB.cjs"),_=({itemKey:n,className:o,onClick:s,size:r,...u})=>{const{onClick:C,selected:c,level:l="p",gap:T,background:i}=e.useContext$1(),E=a=>{C(n),s?.(a)},x=c===n;return S.jsxRuntimeExports.jsx(e.Button,{contrast:i,level:l,overflow:"nowrap",onClick:E,variant:"text",className:t.CSS(t.CSS.B("menu-item"),t.CSS.selected(x),o),size:r,gap:T,...u})},d=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_MENU_CLASS:e.CONTEXT_MENU_CLASS,CONTEXT_SELECTED:e.CONTEXT_SELECTED,CONTEXT_TARGET:e.CONTEXT_TARGET,ContextMenu:e.ContextMenu,Divider:e.Divider,Item:_,Menu:e.Menu,useContext:e.useContext$1,useContextMenu:e.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.external=d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, L as a, a as s, d as t, b as i, c as o, l as r, s as E, w as l } from "./eraser-
|
|
2
|
-
import { D as n, E as d, M as m, T as L, a as S, e as _, i as b } from "./Editable-
|
|
1
|
+
import { C as e, L as a, a as s, d as t, b as i, c as o, l as r, s as E, w as l } from "./eraser-BstNvEkO.js";
|
|
2
|
+
import { D as n, E as d, M as m, T as L, a as S, e as _, i as b } from "./Editable-MR16HLlJ.js";
|
|
3
3
|
const M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
COMPONENT_SIZE_LEVELS: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./Editable-
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./Editable-B8pvBXQS.cjs"),n=require("./css-CZ_XGkIB.cjs");require("./eraser-DiJNbabo.cjs");require("react");require("react-dom");const b=t=>r.jsxRuntimeExports.jsx(e.Boolean,{inputType:"checkbox",...t}),d=({className:t,variant:i="error",...s})=>r.jsxRuntimeExports.jsx(e.Text,{className:n.CSS(n.CSS.B("input-help-text"),n.CSS.BM("input-help-text",i),t),level:"small",...s}),R=({className:t,required:i=!1,children:s,...l})=>r.jsxRuntimeExports.jsxs("label",{className:n.CSS(n.CSS.B("input-label"),t),...l,children:[s," ",i&&r.jsxRuntimeExports.jsx("span",{className:n.CSS.B("required-indicator"),children:"*"})]}),T=(t,i="y")=>t??(n.p.construct(i)==="y"?"stretch":"center"),B=({label:t,showLabel:i=!0,helpText:s,direction:l,x:o,y:x,className:m,children:u,required:S,align:g,gap:C="small",padHelpText:c=!1,status:a,showHelpText:h=!0,...f})=>{const j=e.parseDirection(l,o,x,!1);let p;const D=h&&s!=null&&s.length>0,E=i&&t!=null&&t.length>0;return!D&&!E?r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:u}):(j==="x"?p=r.jsxRuntimeExports.jsxs(e.Box,{y:!0,gap:"small",children:[u,h&&(c||s!=null&&s.length>0)&&r.jsxRuntimeExports.jsx(d,{variant:a,children:s})]}):p=r.jsxRuntimeExports.jsxs(e.Box,{y:!0,gap:1/3,align:"stretch",children:[u,(c||s!=null&&s.length>0)&&r.jsxRuntimeExports.jsx(d,{variant:a,children:s})]}),r.jsxRuntimeExports.jsxs(e.Box,{className:n.CSS(n.CSS.BE("input","item"),m),direction:j,gap:C,align:T(g,j),...f,children:[E&&r.jsxRuntimeExports.jsx(R,{required:S,children:t}),p]}))},y=({ref:t,value:i,style:s,onChange:l,className:o,onFocus:x,selectOnFocus:m=!1,variant:u="outlined",sharp:S=!1,children:g,wrap:C,...c})=>r.jsxRuntimeExports.jsx("textarea",{style:s,className:n.CSS(n.CSS.B("textarea"),n.CSS.BM("textarea",u),n.CSS.sharp(S),o),ref:t,value:i,onChange:a=>l(a.target.value.replace(/\n/g,"")),onFocus:a=>{m&&a.target.select(),x?.(a)},...c}),q=Object.freeze(Object.defineProperty({__proto__:null,Calendar:e.Calendar,Checkbox:b,Date:e.Date,DateTime:e.DateTime$1,DragButton:e.DragButton,HelpText:d,Item:B,Label:R,Numeric:e.Numeric,Switch:e.Switch$1,Text:e.Text$2,TextArea:y,Time:e.Time,TimeSelector:e.TimeSelector,combineDateAndTimeValue:e.combineDateAndTimeValue,createTimeList:e.createTimeList,useDate:e.useDate,useTime:e.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=B;exports.external=q;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as u, v as c, w as p, x as j, A as m, y as i, J as d, z as S, G as f, H as g, I as h } from "./Editable-MR16HLlJ.js";
|
|
2
2
|
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
|
-
import "./css-
|
|
4
|
-
import { T as y } from "./Toggle-
|
|
3
|
+
import "./css-BlHGoCgb.js";
|
|
4
|
+
import { T as y } from "./Toggle-BsP_WecR.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { u as T } from "./useKeysData-B1kiZOOw.js";
|
|
7
|
-
import "./eraser-
|
|
7
|
+
import "./eraser-BstNvEkO.js";
|
|
8
8
|
import "react-dom";
|
|
9
|
-
const
|
|
9
|
+
const I = ({
|
|
10
10
|
keys: t,
|
|
11
11
|
value: s,
|
|
12
12
|
onChange: o,
|
|
@@ -43,10 +43,10 @@ const v = ({
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
},
|
|
46
|
+
}, v = ({
|
|
47
47
|
value: t,
|
|
48
48
|
...s
|
|
49
|
-
}) => /* @__PURE__ */ e.jsxs(
|
|
49
|
+
}) => /* @__PURE__ */ e.jsxs(I, { ...s, value: t, keys: m, children: [
|
|
50
50
|
/* @__PURE__ */ e.jsx(l, { itemKey: "start", children: /* @__PURE__ */ e.jsx(i.Left, {}) }),
|
|
51
51
|
/* @__PURE__ */ e.jsx(l, { itemKey: "center", children: /* @__PURE__ */ e.jsx(i.Center, {}) }),
|
|
52
52
|
/* @__PURE__ */ e.jsx(l, { itemKey: "end", children: /* @__PURE__ */ e.jsx(i.Right, {}) })
|
|
@@ -55,15 +55,15 @@ const v = ({
|
|
|
55
55
|
ALIGNMENTS: m,
|
|
56
56
|
Box: c,
|
|
57
57
|
JUSTIFICATIONS: d,
|
|
58
|
-
SelectAlignment:
|
|
58
|
+
SelectAlignment: v,
|
|
59
59
|
alignmentZ: S,
|
|
60
60
|
justificationZ: f,
|
|
61
61
|
parseDirection: g,
|
|
62
62
|
shouldReverse: h
|
|
63
63
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
64
64
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
I as B,
|
|
66
|
+
v as S,
|
|
67
67
|
l as a,
|
|
68
68
|
M as e
|
|
69
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./eraser-
|
|
1
|
+
"use strict";const r=require("./eraser-DiJNbabo.cjs"),e=require("./Editable-B8pvBXQS.cjs"),n=require("./fontString-Cp4X6CqQ.cjs"),i=o=>{const{theme:t}=e.useContext(),s=t.typography[o];return{...s,toString:()=>n.fontString(t,{level:o}),baseSize:t.sizes.base,lineHeightPx:s.lineHeight*t.sizes.base,sizePx:s.size*t.sizes.base}},S=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:i},Symbol.toStringTag,{value:"Module"}));exports.external=S;exports.useTypography=i;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import {
|
|
3
|
-
import { C as s,
|
|
4
|
-
import "./eraser-
|
|
2
|
+
import { az as v, T as C, H as N, v as d, aA as T, aB as A, aC as L, aD as M, aE as _, aF as w, aG as E, aH as F, aI as H, aJ as I, aK as k, aL as z, aM as O } from "./Editable-MR16HLlJ.js";
|
|
3
|
+
import { C as s, p as q } from "./css-BlHGoCgb.js";
|
|
4
|
+
import "./eraser-BstNvEkO.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const G = (e) => /* @__PURE__ */ t.jsx(v, { inputType: "checkbox", ...e }), j = ({
|
|
8
8
|
className: e,
|
|
9
9
|
variant: r = "error",
|
|
10
10
|
...a
|
|
11
11
|
}) => /* @__PURE__ */ t.jsx(
|
|
12
|
-
|
|
12
|
+
C,
|
|
13
13
|
{
|
|
14
14
|
className: s(
|
|
15
15
|
s.B("input-help-text"),
|
|
@@ -28,7 +28,7 @@ const q = (e) => /* @__PURE__ */ t.jsx(C, { inputType: "checkbox", ...e }), j =
|
|
|
28
28
|
a,
|
|
29
29
|
" ",
|
|
30
30
|
r && /* @__PURE__ */ t.jsx("span", { className: s.B("required-indicator"), children: "*" })
|
|
31
|
-
] }), J = (e, r = "y") => e ?? (
|
|
31
|
+
] }), J = (e, r = "y") => e ?? (q.construct(r) === "y" ? "stretch" : "center"), K = ({
|
|
32
32
|
label: e,
|
|
33
33
|
showLabel: r = !0,
|
|
34
34
|
helpText: a,
|
|
@@ -37,20 +37,20 @@ const q = (e) => /* @__PURE__ */ t.jsx(C, { inputType: "checkbox", ...e }), j =
|
|
|
37
37
|
y: u,
|
|
38
38
|
className: m,
|
|
39
39
|
children: i,
|
|
40
|
-
required:
|
|
40
|
+
required: p,
|
|
41
41
|
align: f,
|
|
42
42
|
gap: h = "small",
|
|
43
43
|
padHelpText: c = !1,
|
|
44
44
|
status: n,
|
|
45
|
-
showHelpText:
|
|
45
|
+
showHelpText: B = !0,
|
|
46
46
|
...D
|
|
47
47
|
}) => {
|
|
48
|
-
const
|
|
48
|
+
const x = N(l, o, u, !1);
|
|
49
49
|
let g;
|
|
50
|
-
const S =
|
|
51
|
-
return !S && !
|
|
50
|
+
const S = B && a != null && a.length > 0, y = r && e != null && e.length > 0;
|
|
51
|
+
return !S && !y ? /* @__PURE__ */ t.jsx(t.Fragment, { children: i }) : (x === "x" ? g = /* @__PURE__ */ t.jsxs(d, { y: !0, gap: "small", children: [
|
|
52
52
|
i,
|
|
53
|
-
|
|
53
|
+
B && (c || a != null && a.length > 0) && /* @__PURE__ */ t.jsx(j, { variant: n, children: a })
|
|
54
54
|
] }) : g = /* @__PURE__ */ t.jsxs(d, { y: !0, gap: 1 / 3, align: "stretch", children: [
|
|
55
55
|
i,
|
|
56
56
|
(c || a != null && a.length > 0) && /* @__PURE__ */ t.jsx(j, { variant: n, children: a })
|
|
@@ -58,12 +58,12 @@ const q = (e) => /* @__PURE__ */ t.jsx(C, { inputType: "checkbox", ...e }), j =
|
|
|
58
58
|
d,
|
|
59
59
|
{
|
|
60
60
|
className: s(s.BE("input", "item"), m),
|
|
61
|
-
direction:
|
|
61
|
+
direction: x,
|
|
62
62
|
gap: h,
|
|
63
|
-
align: J(f,
|
|
63
|
+
align: J(f, x),
|
|
64
64
|
...D,
|
|
65
65
|
children: [
|
|
66
|
-
|
|
66
|
+
y && /* @__PURE__ */ t.jsx(b, { required: p, children: e }),
|
|
67
67
|
g
|
|
68
68
|
]
|
|
69
69
|
}
|
|
@@ -77,7 +77,7 @@ const q = (e) => /* @__PURE__ */ t.jsx(C, { inputType: "checkbox", ...e }), j =
|
|
|
77
77
|
onFocus: u,
|
|
78
78
|
selectOnFocus: m = !1,
|
|
79
79
|
variant: i = "outlined",
|
|
80
|
-
sharp:
|
|
80
|
+
sharp: p = !1,
|
|
81
81
|
children: f,
|
|
82
82
|
wrap: h,
|
|
83
83
|
...c
|
|
@@ -88,7 +88,7 @@ const q = (e) => /* @__PURE__ */ t.jsx(C, { inputType: "checkbox", ...e }), j =
|
|
|
88
88
|
className: s(
|
|
89
89
|
s.B("textarea"),
|
|
90
90
|
s.BM("textarea", i),
|
|
91
|
-
s.sharp(
|
|
91
|
+
s.sharp(p),
|
|
92
92
|
o
|
|
93
93
|
),
|
|
94
94
|
ref: e,
|
|
@@ -101,24 +101,24 @@ const q = (e) => /* @__PURE__ */ t.jsx(C, { inputType: "checkbox", ...e }), j =
|
|
|
101
101
|
}
|
|
102
102
|
), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103
103
|
__proto__: null,
|
|
104
|
-
Calendar:
|
|
105
|
-
Checkbox:
|
|
104
|
+
Calendar: T,
|
|
105
|
+
Checkbox: G,
|
|
106
106
|
Date: A,
|
|
107
107
|
DateTime: L,
|
|
108
|
-
DragButton:
|
|
108
|
+
DragButton: M,
|
|
109
109
|
HelpText: j,
|
|
110
110
|
Item: K,
|
|
111
111
|
Label: b,
|
|
112
|
-
Numeric:
|
|
113
|
-
Switch:
|
|
114
|
-
Text:
|
|
112
|
+
Numeric: _,
|
|
113
|
+
Switch: w,
|
|
114
|
+
Text: E,
|
|
115
115
|
TextArea: P,
|
|
116
|
-
Time:
|
|
117
|
-
TimeSelector:
|
|
118
|
-
combineDateAndTimeValue:
|
|
119
|
-
createTimeList:
|
|
120
|
-
useDate:
|
|
121
|
-
useTime:
|
|
116
|
+
Time: F,
|
|
117
|
+
TimeSelector: H,
|
|
118
|
+
combineDateAndTimeValue: I,
|
|
119
|
+
createTimeList: k,
|
|
120
|
+
useDate: z,
|
|
121
|
+
useTime: O
|
|
122
122
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
123
123
|
export {
|
|
124
124
|
K as I,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./Editable-
|
|
1
|
+
"use strict";const s=require("./Editable-B8pvBXQS.cjs"),a=require("react"),d=require("./useKeysData-G9Mk3mA6.cjs");require("./css-CZ_XGkIB.cjs");const b=require("./eraser-DiJNbabo.cjs"),y=({retrieve:n,pageSize:r=10})=>{const u=a.useCallback(()=>{n(({offset:l=-r,searchTerm:o="",...m})=>({...m,offset:l+r,limit:r,searchTerm:o}),{mode:"append"})},[n,r]),i=a.useCallback(l=>n(o=>({...o,searchTerm:l,offset:0,limit:r})),[n,r]);return{fetchMore:u,search:i}},h=({initialData:n}={})=>{const r=s.useInitializerRef(()=>{const e=new Map;return n==null||n.forEach(t=>e.set(t.key,t)),e}),u=s.useInitializerRef(()=>new Map),i=a.useCallback(e=>{const t=new Set(e);u.current.forEach((f,c)=>{t.has(f)&&c()})},[]),l=a.useCallback(e=>{const t=b.t.toArray(e),f=t.map(c=>c.key);t.forEach(c=>r.current.set(c.key,c)),i(f)},[]),o=a.useCallback(e=>{const t=b.t.toArray(e);t.forEach(f=>r.current.delete(f)),i(t)},[]),m=a.useCallback((e,t)=>t==null?()=>{}:(u.current.set(e,t),()=>{u.current.delete(e)}),[u]),C=a.useCallback(e=>{if(e!=null)return Array.isArray(e)?e.map(t=>r.current.get(t)).filter(t=>t!=null):r.current.get(e)},[]),I=a.useCallback(e=>r.current.has(e),[]);return{setItem:l,deleteItem:o,subscribe:m,getItem:C,hasItem:I}},k=Object.freeze(Object.defineProperty({__proto__:null,CoreFrame:s.CoreFrame,Frame:s.Frame$2,Item:s.Item,Items:s.Items,useData:s.useData,useItem:s.useItem,useKeysData:d.useKeysData,useMapData:h,usePager:y,useScroller:s.useScroller,useStaticData:s.useStaticData,useUtilContext:s.useUtilContext},Symbol.toStringTag,{value:"Module"}));exports.external=k;exports.usePager=y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as r, e as a, f as i, t as n } from "./eraser-
|
|
2
|
-
import { u as o, P as S, S as p, t as u, b as m, c as b } from "./Editable-
|
|
3
|
-
import { f as c } from "./fontString-
|
|
1
|
+
import { S as r, e as a, f as i, t as n } from "./eraser-BstNvEkO.js";
|
|
2
|
+
import { u as o, P as S, S as p, t as u, b as m, c as b } from "./Editable-MR16HLlJ.js";
|
|
3
|
+
import { f as c } from "./fontString-Ca1-oixk.js";
|
|
4
4
|
const f = (t) => {
|
|
5
5
|
const { theme: e } = o(), s = e.typography[t];
|
|
6
6
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./css-
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./css-CZ_XGkIB.cjs"),a=require("./Editable-B8pvBXQS.cjs"),i=require("react"),x=require("./eraser-DiJNbabo.cjs");require("react-dom");const S=({children:t=[],...s})=>o.jsxRuntimeExports.jsx(a.Box,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...s,children:t}),u=i.createContext({divided:!1,level:"h1"}),c=()=>i.use(u),d=({className:t,level:s="p",divided:r=!1,bordered:n=!0,...l})=>o.jsxRuntimeExports.jsx(u,{value:{level:s,divided:r},children:o.jsxRuntimeExports.jsx(a.Box,{el:"header",x:!0,align:"center",justify:"between",className:e.CSS(e.CSS.B("header"),n&&e.CSS.bordered("bottom"),r&&e.CSS.BM("header","divided"),t),...l})}),j=({children:t="",className:s,onClick:r,...n})=>{const{level:l}=c();return o.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:x.LEVEL_COMPONENT_SIZES[l],onClick:r,className:e.CSS(e.CSS.B("header-button-title"),s),sharp:!0,...n,children:t})},m=({className:t,level:s,...r})=>{const{level:n}=c();return o.jsxRuntimeExports.jsx(a.Text,{className:e.CSS(e.CSS.BE("header","text"),t),level:s??n,gap:1.5,...r})},C=Object.freeze(Object.defineProperty({__proto__:null,Actions:S,ButtonTitle:j,Header:d,Title:m,useContext:c},Symbol.toStringTag,{value:"Module"}));exports.external=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./eraser-
|
|
1
|
+
"use strict";const e=require("./eraser-DiJNbabo.cjs"),i=require("./Editable-B8pvBXQS.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,COMPONENT_SIZE_LEVELS:e.COMPONENT_SIZE_LEVELS,DateTime:i.DateTime,Editable:i.Editable,LEVELS:e.LEVELS,LEVEL_COMPONENT_SIZES:e.LEVEL_COMPONENT_SIZES,MaybeEditable:i.MaybeEditable,Text:i.Text,asyncEdit:i.asyncEdit,dimensions:e.dimensions,dimensionsFromMetrics:e.dimensionsFromMetrics,downLevel:e.downLevel,edit:i.edit,isSquare:i.isSquare,levelZ:e.levelZ,specZ:e.specZ,weightZ:e.weightZ},Symbol.toStringTag,{value:"Module"}));exports.external=t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as o, B as T, f as d, g as E, h as _, j as f, k as S, l as j, m as k } from "./Editable-
|
|
1
|
+
import { d as o, B as T, f as d, g as E, h as _, j as f, k as S, l as j, m as k } from "./Editable-MR16HLlJ.js";
|
|
2
2
|
import { j as O } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
|
-
import { C as e } from "./css-
|
|
3
|
+
import { C as e } from "./css-BlHGoCgb.js";
|
|
4
4
|
const g = ({
|
|
5
5
|
itemKey: t,
|
|
6
6
|
className: s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-CITbqOLs.cjs"),o=require("./css-
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-CITbqOLs.cjs"),o=require("./css-CZ_XGkIB.cjs"),x=require("react"),a=require("./Editable-B8pvBXQS.cjs"),P=require("./eraser-DiJNbabo.cjs");require("react-dom");const d=require("zod"),z=x.createContext({tabs:[]}),L=z,y=()=>x.use(z),O="tabs-selector",w=({className:l,altColor:t=!1,size:e="medium",direction:r="x",contextMenu:n,addTooltip:c,...u})=>{const{tabs:S,selected:j,onSelect:v,onClose:B,closable:m,onDragEnd:b,onDragStart:D,onDrop:R,onRename:g,onCreate:f}=y(),h=a.useContextMenu(),[N,C]=x.useState(!1);return s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[n!=null&&s.jsxRuntimeExports.jsx(a.ContextMenu,{style:{height:"fit-content"},...h,menu:n}),s.jsxRuntimeExports.jsxs(a.Box,{className:o.CSS(o.CSS.B(O),l,h.className,N&&o.CSS.M("drag-over")),size:e,align:"center",justify:"between",empty:!0,direction:r,onContextMenu:h.open,onDrop:R,...u,children:[s.jsxRuntimeExports.jsxs(a.Box,{direction:r,className:o.CSS.BE(O,"tabs"),empty:!0,children:[S.map(p=>s.jsxRuntimeExports.jsx(J,{selected:j,altColor:t,onSelect:v,onClose:B,onDragStart:D,onDragEnd:b,onRename:g,closable:p.closable??m,size:e,...p},p.tabKey)),R!=null&&s.jsxRuntimeExports.jsx(a.Box,{onDragOver:()=>C(!0),onDragLeave:()=>C(!1),onDragEnd:()=>C(!1),onDrop:()=>C(!1),grow:!0})]}),f!=null&&s.jsxRuntimeExports.jsx(a.Box,{className:o.CSS.BE(O,"actions"),children:s.jsxRuntimeExports.jsx(a.Button,{size:e,sharp:!0,onClick:f,tooltip:c,variant:"text",children:s.jsxRuntimeExports.jsx(a.Add,{})})})]})]})},X=({unsavedChanges:l,...t})=>{const e=s.jsxRuntimeExports.jsx(a.Close,{...t});return l?s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(a.Circle,{}),e]}):e},G=l=>{const t=o.Ho.construct(l.target.closest(".pluto-tabs-selector__btn")),e=o.K.construct(l);return o.C.Scale.scale(o.Ho.left(t),o.Ho.right(t)).scale(0,1).pos(e.x)<.5?"left":"right"},$=({loading:l,icon:t,level:e="p"})=>(l&&(t=s.jsxRuntimeExports.jsx(a.Loading,{})),a.resolve(t,{className:o.CSS.BE(O,"icon"),style:{color:o.CSS.colorVar(9),height:o.CSS.levelSizeVar(e),width:o.CSS.levelSizeVar(e)}})),J=({selected:l,altColor:t=!1,onSelect:e,onClose:r,tabKey:n,name:c,onDragStart:u,onDragEnd:S,onRename:j,closable:v=!0,icon:B,size:m,editable:b=!0,unsavedChanges:D=!1,loading:R=!1,onDrop:g})=>{const f=x.useCallback(i=>u?.(i,{tabKey:n,name:c}),[u,n,c]),h=x.useCallback(i=>S?.(i,{tabKey:n,name:c}),[S,n,c]),N=x.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r?.(n)},[r,n]),C=x.useCallback(()=>e?.(n),[e,n]),[p,E]=x.useState(null),T=x.useCallback(i=>{E(G(i))},[E,g]),_=x.useCallback(i=>{g?.(i),E(null)},[g,E]),k=l===n,F=P.COMPONENT_SIZE_LEVELS[m];return s.jsxRuntimeExports.jsxs(a.Button,{el:"div",size:m,id:n,variant:"text",sharp:!0,className:o.CSS(a.CONTEXT_TARGET,k&&a.CONTEXT_SELECTED,o.CSS.selected(k),o.CSS.altColor(t),v&&r!=null&&o.CSS.M("closable"),o.CSS.editable(b&&j!=null),p!=null&&o.CSS.M("drag-over"),p!=null&&o.CSS.loc(p)),draggable:!0,justify:"center",align:"center",empty:!0,tabIndex:0,preventClick:k,onClick:C,onDragOver:T,onDrop:_,onDragLeave:()=>E(null),onDragStart:f,onDragEnd:i=>{E(null),h(i)},bordered:!1,rounded:!1,children:[s.jsxRuntimeExports.jsx($,{loading:R,icon:B,level:F}),s.jsxRuntimeExports.jsx(Q,{name:c,tabKey:n,onRename:j,editable:b,level:P.COMPONENT_SIZE_LEVELS[m]}),v&&r!=null&&s.jsxRuntimeExports.jsx(a.Button,{"aria-label":"pluto-tabs__close",onClick:N,className:o.CSS.E("close"),variant:"text",sharp:!0,children:s.jsxRuntimeExports.jsx(X,{unsavedChanges:D})})]})},Q=({onRename:l,name:t,tabKey:e,editable:r=!0,level:n})=>l==null||!r?s.jsxRuntimeExports.jsx(a.Text,{overflow:"ellipsis",level:n,children:t}):s.jsxRuntimeExports.jsx(a.Editable,{level:n,id:o.CSS.B(`tab-${e}`),onChange:c=>l?.(e,c),value:t,overflow:"ellipsis"}),M=(l="",t=[])=>{if(t.length!==0)return t.find(e=>e.tabKey===l)!=null?l:t[t.length-1]?.tabKey},q=(l,t,e)=>{if(t=t.trim(),t.length===0)return e;const r=e.find(n=>n.tabKey===l);return r==null||r.name===t?e:e.map(n=>n.tabKey===l?{...n,name:t}:n)},I=({tabs:l,content:t,selected:e,onSelect:r})=>{const[n,c]=P.usePurePassthrough({initial:e??l[0]?.tabKey??"",value:e,onChange:r}),u=a.useSyncedRef(e??n),S=x.useCallback(j=>{c(j),u.current==null&&r?.(j)},[n,r]);return{tabs:l,selected:n,content:t,onSelect:S}},V=({id:l,content:t,children:e,onSelect:r,selected:n,selectedAltColor:c,closable:u,tabs:S,onClose:j,onDragStart:v,onDragEnd:B,onCreate:m,onRename:b,emptyContent:D,className:R,onDragOver:g,onDrop:f,contextMenu:h,addTooltip:N,size:C="medium",direction:p="y",x:E,y:T,..._})=>s.jsxRuntimeExports.jsx(a.Box,{id:l,empty:!0,className:o.CSS(o.CSS.B("tabs"),R),direction:p,x:E,y:T,onDragOver:g,onDrop:f,..._,children:s.jsxRuntimeExports.jsxs(L,{value:{tabs:S,emptyContent:D,selected:n,closable:u,content:e??t,onSelect:r,onClose:j,onDragStart:v,onDragEnd:B,onRename:b,onCreate:m,onDrop:f},children:[s.jsxRuntimeExports.jsx(w,{size:C,direction:o.p.swap(p),altColor:c,contextMenu:h,addTooltip:N}),s.jsxRuntimeExports.jsx(Z,{})]})}),Z=()=>{const{tabs:l,selected:t,content:e,emptyContent:r,onSelect:n}=y();let c=null;const u=l.find(S=>S.tabKey===t);return t==null||u==null?c=r??null:e!=null?typeof e=="function"?c=e(u):c=e:u.content!=null&&(c=u.content),s.jsxRuntimeExports.jsx("div",{className:o.CSS.B("tabs-content"),onClick:()=>t!=null&&n?.(t),children:c})},H=d.z.object({tabKey:d.z.string(),name:d.z.string(),closable:d.z.boolean().optional(),icon:d.z.unknown().optional(),editable:d.z.boolean().optional(),visible:d.z.boolean().optional(),unsavedChanges:d.z.boolean().optional(),loading:d.z.boolean().optional()}),A=H.extend({content:d.z.unknown().optional()}),U=Object.freeze(Object.defineProperty({__proto__:null,Content:Z,Provider:L,Selector:w,Tabs:V,rename:q,resetSelection:M,specZ:H,tabZ:A,useContext:y,useStatic:I},Symbol.toStringTag,{value:"Module"}));exports.Tabs=V;exports.external=U;exports.rename=q;exports.resetSelection=M;exports.tabZ=A;exports.useStatic=I;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as T, C as i } from "./css-
|
|
2
|
-
import { g as A, x as F } from "./eraser-
|
|
1
|
+
import { a as T, C as i } from "./css-BlHGoCgb.js";
|
|
2
|
+
import { g as A, x as F } from "./eraser-BstNvEkO.js";
|
|
3
3
|
import { j as p } from "./jsx-runtime-C5mzlN2N.js";
|
|
4
|
-
import { A as G } from "./Animated-
|
|
5
|
-
import {
|
|
4
|
+
import { A as G } from "./Animated-fJsLX-Tt.js";
|
|
5
|
+
import { ar as z, as as K, at as U, au as L, ag as Y, s as J, al as Q } from "./Editable-MR16HLlJ.js";
|
|
6
6
|
import { useMemo as V, useCallback as _ } from "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
const D = (e, n) => n.includes(e.key), v = ({
|
|
@@ -139,10 +139,10 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
139
139
|
}, $ = (e) => e.map((n) => ({
|
|
140
140
|
...n,
|
|
141
141
|
children: n.children != null ? $(n.children) : void 0
|
|
142
|
-
})),
|
|
142
|
+
})), B = (...e) => {
|
|
143
143
|
const n = [];
|
|
144
144
|
return e.forEach((t) => {
|
|
145
|
-
n.push(t), t.children != null && n.push(...
|
|
145
|
+
n.push(t), t.children != null && n.push(...B(...t.children));
|
|
146
146
|
}), n;
|
|
147
147
|
}, ee = (e, n) => {
|
|
148
148
|
const t = { keys: [], nodes: [] };
|
|
@@ -155,7 +155,7 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
155
155
|
}, te = (e, n) => {
|
|
156
156
|
const t = n.keys.findIndex((s) => s === e);
|
|
157
157
|
return n.nodes[t].depth;
|
|
158
|
-
},
|
|
158
|
+
}, q = (e, n) => {
|
|
159
159
|
const t = e.keys.findIndex((s) => s === n);
|
|
160
160
|
return e.nodes[t];
|
|
161
161
|
}, re = ({
|
|
@@ -218,17 +218,17 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
218
218
|
}), S = V(
|
|
219
219
|
() => v({ nodes: n, expanded: l, sort: o }),
|
|
220
220
|
[n, l, o]
|
|
221
|
-
), C = L(n), I = L(S),
|
|
221
|
+
), C = L(n), I = L(S), w = Y({ triggers: oe }), b = _(
|
|
222
222
|
(u, { clicked: d }) => {
|
|
223
|
-
if (N((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u), d == null ||
|
|
224
|
-
const y =
|
|
223
|
+
if (N((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u), d == null || w.current.held) return;
|
|
224
|
+
const y = q(I.current, d);
|
|
225
225
|
if (y == null || !y.hasChildren) return;
|
|
226
226
|
const j = f.current, M = j.some((h) => h === d) ? "contract" : "expand";
|
|
227
227
|
let g;
|
|
228
228
|
M === "contract" ? g = j.filter((h) => h !== d) : g = [...j, d], c(g), e?.({ current: g, action: M, clicked: d });
|
|
229
229
|
},
|
|
230
230
|
[e, C, c, N]
|
|
231
|
-
),
|
|
231
|
+
), k = _(
|
|
232
232
|
(u) => {
|
|
233
233
|
c((d) => T.unique([...d, u])), e?.({ current: l, action: "expand", clicked: u });
|
|
234
234
|
},
|
|
@@ -245,10 +245,10 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
245
245
|
selected: m,
|
|
246
246
|
expanded: l,
|
|
247
247
|
contract: x,
|
|
248
|
-
expand:
|
|
248
|
+
expand: k,
|
|
249
249
|
clearExpanded: R,
|
|
250
250
|
shape: S,
|
|
251
|
-
onSelect:
|
|
251
|
+
onSelect: b
|
|
252
252
|
};
|
|
253
253
|
}, ce = ({
|
|
254
254
|
shape: e,
|
|
@@ -265,16 +265,16 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
265
265
|
clearExpanded: S,
|
|
266
266
|
showRules: C = !1,
|
|
267
267
|
virtual: I = !1,
|
|
268
|
-
...
|
|
268
|
+
...w
|
|
269
269
|
}) => {
|
|
270
|
-
const { keys:
|
|
270
|
+
const { keys: b, nodes: k } = e;
|
|
271
271
|
return /* @__PURE__ */ p.jsx(
|
|
272
272
|
J,
|
|
273
273
|
{
|
|
274
274
|
multiple: !0,
|
|
275
275
|
value: t,
|
|
276
276
|
replaceOnSingle: !0,
|
|
277
|
-
data:
|
|
277
|
+
data: b,
|
|
278
278
|
onChange: s,
|
|
279
279
|
getItem: r,
|
|
280
280
|
subscribe: o,
|
|
@@ -284,9 +284,9 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
284
284
|
Q,
|
|
285
285
|
{
|
|
286
286
|
className: i(i.B("tree"), l, C && i.M("show-rules")),
|
|
287
|
-
...
|
|
287
|
+
...w,
|
|
288
288
|
displayItems: 1 / 0,
|
|
289
|
-
children: ({ index: x, ...R }) => n({ index: x, ...
|
|
289
|
+
children: ({ index: x, ...R }) => n({ index: x, ...k[x], ...R })
|
|
290
290
|
}
|
|
291
291
|
)
|
|
292
292
|
}
|
|
@@ -304,8 +304,8 @@ const D = (e, n) => n.includes(e.key), v = ({
|
|
|
304
304
|
flatten: v,
|
|
305
305
|
getAllNodesOfMinDepth: ne,
|
|
306
306
|
getDepth: te,
|
|
307
|
-
getDescendants:
|
|
308
|
-
getNodeShape:
|
|
307
|
+
getDescendants: B,
|
|
308
|
+
getNodeShape: q,
|
|
309
309
|
moveNode: W,
|
|
310
310
|
removeNode: H,
|
|
311
311
|
setNode: O,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Editable-
|
|
1
|
+
"use strict";const e=require("./Editable-B8pvBXQS.cjs"),f=require("./jsx-runtime-CITbqOLs.cjs"),u=require("react"),o=require("./css-CZ_XGkIB.cjs");require("./eraser-DiJNbabo.cjs");const m=t=>{const{listen:i}=e.useContext$4(),[a,l]=u.useState([]);return u.useEffect(()=>i(({next:[r]})=>l(r??[])),[i,l]),f.jsxRuntimeExports.jsx(e.Text,{...t,children:a.join(" ")})},M=({onDrag:t,triggers:i=[["MouseLeft"],["MouseRight"]],bound:a,loose:l=!1})=>{const r=u.useRef(null),E=u.useRef(o.K.ZERO),g=u.useCallback(s=>{const n=o.K.construct(s);if(r.current===null)return;const{triggers:c}=r.current;t({box:o.Ho.construct(E.current,n),cursor:n,triggers:c,stage:"during"})},[t]),d=u.useCallback(s=>{const{stage:n,cursor:c}=s;n==="start"?(t({box:o.Ho.construct(c),...s}),window.addEventListener("mousemove",g),r.current=s,E.current=c):n==="end"&&r.current!=null&&(t({box:o.Ho.construct(E.current,c),...s}),window.removeEventListener("mousemove",g),r.current=null,E.current=o.K.ZERO)},[t]);e.use$1({triggers:i,callback:d,region:a,loose:l})},S=Object.freeze(Object.defineProperty({__proto__:null,ALPHANUMERIC_KEYS:e.ALPHANUMERIC_KEYS,ALPHANUMERIC_KEYS_SET:e.ALPHANUMERIC_KEYS_SET,KEYS:e.KEYS,MOUSE_KEYS:e.MOUSE_KEYS,MOUSE_LEFT_NUMBER:e.MOUSE_LEFT_NUMBER,MOUSE_MIDDLE_NUMBER:e.MOUSE_MIDDLE_NUMBER,MOUSE_RIGHT_NUMBER:e.MOUSE_RIGHT_NUMBER,Provider:e.Provider$1,Status:m,Text:e.Text$1,compareModeConfigs:e.compareModeConfigs,determineMode:e.determineMode,diff:e.diff,eventKey:e.eventKey,filter:e.filter,flattenConfig:e.flattenConfig,isAlphanumericKey:e.isAlphanumericKey,keyZ:e.keyZ,keyboardKey:e.keyboardKey,match:e.match,matchCallback:e.matchCallback,mouseKey:e.mouseKey,mouseKeyZ:e.mouseKeyZ,purge:e.purge,purgeMouse:e.purgeMouse,toSymbols:e.toSymbols,triggerZ:e.triggerZ,use:e.use$1,useContext:e.useContext$4,useDrag:M,useFlattenedMemoConfig:e.useFlattenedMemoConfig,useHeld:e.useHeld,useHeldRef:e.useHeldRef},Symbol.toStringTag,{value:"Module"}));exports.external=S;exports.useDrag=M;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ah as i, ai as d, aj as I, ak as b, al as M, am as A, an as E, ao as _, ap as j, aq as k } from "./Editable-MR16HLlJ.js";
|
|
2
2
|
import { useCallback as s } from "react";
|
|
3
|
-
import { u as
|
|
4
|
-
import "./css-
|
|
5
|
-
import { g as p } from "./eraser-
|
|
6
|
-
const
|
|
3
|
+
import { u as w } from "./useKeysData-B1kiZOOw.js";
|
|
4
|
+
import "./css-BlHGoCgb.js";
|
|
5
|
+
import { g as p } from "./eraser-BstNvEkO.js";
|
|
6
|
+
const x = ({ retrieve: a, pageSize: r = 10 }) => {
|
|
7
7
|
const n = s(() => {
|
|
8
8
|
a(
|
|
9
9
|
({ offset: c = -r, searchTerm: u = "", ...f }) => ({
|
|
@@ -19,7 +19,7 @@ const w = ({ retrieve: a, pageSize: r = 10 }) => {
|
|
|
19
19
|
[a, r]
|
|
20
20
|
);
|
|
21
21
|
return { fetchMore: n, search: l };
|
|
22
|
-
},
|
|
22
|
+
}, C = ({ initialData: a } = {}) => {
|
|
23
23
|
const r = i(() => {
|
|
24
24
|
const t = /* @__PURE__ */ new Map();
|
|
25
25
|
return a == null || a.forEach((e) => t.set(e.key, e)), t;
|
|
@@ -56,14 +56,14 @@ const w = ({ retrieve: a, pageSize: r = 10 }) => {
|
|
|
56
56
|
Items: M,
|
|
57
57
|
useData: A,
|
|
58
58
|
useItem: E,
|
|
59
|
-
useKeysData:
|
|
60
|
-
useMapData:
|
|
61
|
-
usePager:
|
|
59
|
+
useKeysData: w,
|
|
60
|
+
useMapData: C,
|
|
61
|
+
usePager: x,
|
|
62
62
|
useScroller: _,
|
|
63
|
-
useStaticData:
|
|
64
|
-
useUtilContext:
|
|
63
|
+
useStaticData: j,
|
|
64
|
+
useUtilContext: k
|
|
65
65
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
66
66
|
export {
|
|
67
67
|
O as e,
|
|
68
|
-
|
|
68
|
+
x as u
|
|
69
69
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./Editable-B8pvBXQS.cjs"),i=require("./jsx-runtime-CITbqOLs.cjs"),p=require("./Animated-CyK_c82a.cjs"),s=require("./css-CZ_XGkIB.cjs"),r=({onClick:a,className:l,hideCaret:t=!1,children:u,variant:n,...c})=>{const{toggle:x,visible:d,variant:g}=e.useContext$2();let o;return n==="preview"&&(t=!0),g!=="modal"&&!t&&(o=i.jsxRuntimeExports.jsx(p.Animated,{enabled:d,enabledLoc:"bottom",disabledLoc:"left"})),i.jsxRuntimeExports.jsxs(e.Button,{className:s.CSS(s.CSS.BE("dialog","trigger"),l),onClick:m=>{a?.(m),x()},full:"x",variant:n,...c,children:[u,o]})},b=Object.freeze(Object.defineProperty({__proto__:null,Dialog:e.Dialog,Frame:e.Frame,Trigger:r,parseLocationOptions:e.parseLocationOptions,position:e.position,useContext:e.useContext$2,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.Trigger=r;exports.external=b;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as X } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { K as xt, H as Fe, c as te, C as J, r as Dc, b as th, k as nh, R as ah } from "./css-
|
|
2
|
+
import { K as xt, H as Fe, c as te, C as J, r as Dc, b as th, k as nh, R as ah } from "./css-BlHGoCgb.js";
|
|
3
3
|
import f, { useCallback as Se, isValidElement as ih, PureComponent as jr, Component as Fr, createContext as oh, use as sh, useMemo as Bc, useRef as Mo } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a8 as uh, b as lh, d6 as ch, d2 as Io, d4 as fh, B as $c, dH as Ur, dx as nt, au as Lc, v as qr, T as Hc, bd as hh, F as ph, o as dh, at as gh, L as vh, E as bh } from "./Editable-MR16HLlJ.js";
|
|
5
|
+
import { K as yh, x as mh } from "./eraser-BstNvEkO.js";
|
|
6
6
|
import { z as de } from "zod";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
const xh = (r, e, t) => Se(yh(r, e), [e, ...t]), _h = ({
|