@synnaxlabs/pluto 0.23.0 → 0.24.0
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-DjcnDVGC.cjs → Animated-Cbt7tqBk.cjs} +1 -1
- package/dist/{Animated-DPIV1IH6.js → Animated-DGp8qHGT.js} +2 -2
- package/dist/{Keyboard-CJLEUbYu.cjs → Keyboard-BjnOIJ5V.cjs} +1 -1
- package/dist/{Keyboard-BLHHROrq.js → Keyboard-HZ6Llqo5.js} +2 -2
- package/dist/{LinePlot-C9MVJErC.js → LinePlot-Dw8vQLJw.js} +154 -148
- package/dist/LinePlot-tnVASicV.cjs +66 -0
- package/dist/{Link-C3NUk5cp.cjs → Link-CmzvCQDi.cjs} +1 -1
- package/dist/{Link-BsqVxj6V.js → Link-j-xpQ9HD.js} +1 -1
- package/dist/List-BX3MLMNz.cjs +1 -0
- package/dist/List-BlgM15Pf.js +22 -0
- package/dist/{Pack-mkZBsSIU.js → Pack-B5JX1aqf.js} +5 -5
- package/dist/{Pack-CBNcamuh.cjs → Pack-D93gFUU9.cjs} +1 -1
- package/dist/Toggle-BvWOTk9-.cjs +188 -0
- package/dist/{Toggle-W4K3cLf7.js → Toggle-Cq3FTFfq.js} +8169 -8032
- package/dist/{Video-Kb-c-N69.cjs → Video-D382cbrn.cjs} +1 -1
- package/dist/{Video-C2EYBKLN.js → Video-DIIo17du.js} +1 -1
- package/dist/{aggregator-BZJAV5yZ.js → aggregator-BIhLPgXc.js} +4811 -4482
- package/dist/aggregator-CaPKb9Zv.cjs +51 -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-BNL3vU5o.cjs +1 -0
- package/dist/{css-TXuXKs3A.js → css-CDB-JY4S.js} +358 -352
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +5 -5
- package/dist/{external-BB2SaR1o.js → external-B4-opRnY.js} +1 -1
- package/dist/{external-BKWizK6o.cjs → external-B5j7Ee09.cjs} +1 -1
- package/dist/{external-DsNtnR-y.cjs → external-BCyTR9bj.cjs} +1 -1
- package/dist/{external-TNsi3_BK.js → external-BJI4w1QU.js} +26 -26
- package/dist/external-BK0QWtit.cjs +1 -0
- package/dist/{external-WGyRiKbb.js → external-C3TJ5wKl.js} +24 -24
- package/dist/{external-DlCoToEB.cjs → external-CD2dFTTj.cjs} +1 -1
- package/dist/{external-XoJlPNFB.js → external-CDZA7f7F.js} +2 -2
- package/dist/{external-mlV4Onnq.cjs → external-CFqe6ymi.cjs} +1 -1
- package/dist/{external-BphNoXuB.js → external-CRbJq-i4.js} +8 -8
- package/dist/{external-CduvGaPN.js → external-CZiW7AR4.js} +18 -18
- package/dist/{external-D1NnASGa.cjs → external-CjjdhnS5.cjs} +1 -1
- package/dist/external-D6mqXF0b.js +272 -0
- package/dist/external-D9eq1UnF.cjs +1 -0
- package/dist/external-DKxxR-uc.cjs +1 -0
- package/dist/{external-DjjMU4Z6.cjs → external-DUeGQ4si.cjs} +1 -1
- package/dist/external-DVg6hQ24.js +98 -0
- package/dist/external-DvFgLm4v.js +222 -0
- package/dist/external-IpylADnr.cjs +1 -0
- package/dist/external-RIKGjo5R.js +74 -0
- package/dist/external-jSb_axxw.js +346 -0
- package/dist/{external-0w2SHXg_.js → external-lDVnD7Yi.js} +2 -2
- package/dist/{external-CztU6wom.cjs → external-v3jmKHoB.cjs} +1 -1
- package/dist/external-zDAAJJHM.cjs +1 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3311 -3123
- 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/button/Button.d.ts +3 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +4 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/dialog/index.d.ts +2 -0
- package/dist/src/dialog/index.d.ts.map +1 -0
- package/dist/src/dialog/use.d.ts +28 -0
- package/dist/src/dialog/use.d.ts.map +1 -0
- package/dist/src/divider/Divider.d.ts +2 -2
- package/dist/src/divider/Divider.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts +5 -27
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts +35 -0
- package/dist/src/form/Field.d.ts.map +1 -0
- package/dist/src/form/Form.d.ts +15 -45
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/form/external.d.ts +1 -0
- package/dist/src/form/external.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts +79 -2
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +2 -0
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/list/Column.d.ts +1 -0
- package/dist/src/list/Column.d.ts.map +1 -1
- package/dist/src/list/Core.d.ts.map +1 -1
- package/dist/src/list/Hover.d.ts.map +1 -1
- package/dist/src/list/Selector.d.ts +1 -7
- package/dist/src/list/Selector.d.ts.map +1 -1
- package/dist/src/list/useSelect.d.ts +5 -1
- package/dist/src/list/useSelect.d.ts.map +1 -1
- package/dist/src/menu/Menu.d.ts +5 -3
- package/dist/src/menu/Menu.d.ts.map +1 -1
- package/dist/src/modal/Modal.d.ts +8 -0
- package/dist/src/modal/Modal.d.ts.map +1 -0
- package/dist/src/modal/index.d.ts +2 -0
- package/dist/src/modal/index.d.ts.map +1 -0
- package/dist/src/mosaic/Mosaic.d.ts +1 -1
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts +1 -0
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/mosaic/types.d.ts +62 -0
- package/dist/src/mosaic/types.d.ts.map +1 -1
- package/dist/src/note/Note.d.ts.map +1 -1
- package/dist/src/observe/index.d.ts +2 -0
- package/dist/src/observe/index.d.ts.map +1 -0
- package/dist/src/observe/use.d.ts +19 -0
- package/dist/src/observe/use.d.ts.map +1 -0
- package/dist/src/os/Controls/Windows.d.ts +1 -1
- package/dist/src/os/Controls/Windows.d.ts.map +1 -1
- package/dist/src/ranger/TimeRangeChip.d.ts +3 -2
- package/dist/src/ranger/TimeRangeChip.d.ts.map +1 -1
- package/dist/src/select/List.d.ts +3 -2
- package/dist/src/select/List.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts +3 -2
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/select/Select.spec.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts +5 -3
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/state/state.d.ts +1 -0
- package/dist/src/state/state.d.ts.map +1 -1
- package/dist/src/status/Notification.d.ts +1 -1
- package/dist/src/status/Notification.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts +4 -10
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/Tabs.d.ts +6 -11
- package/dist/src/tabs/Tabs.d.ts.map +1 -1
- package/dist/src/tabs/external.d.ts +1 -0
- package/dist/src/tabs/external.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +54 -0
- package/dist/src/tabs/types.d.ts.map +1 -0
- package/dist/src/text/Editable.d.ts +5 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/WithIcon.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +7 -2
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +1 -0
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Text.d.ts +1 -1
- package/dist/src/triggers/Text.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +1 -1
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/triggers/triggers.d.ts +2 -1
- package/dist/src/triggers/triggers.d.ts.map +1 -1
- package/dist/src/util/rootElement.d.ts +2 -0
- package/dist/src/util/rootElement.d.ts.map +1 -0
- package/dist/src/viewport/use.d.ts +2 -0
- package/dist/src/viewport/use.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts +99 -5
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +2 -2
- 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.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-DechjShe.js → units-DeLVJ01P.js} +1 -1
- package/dist/{units-BsHX82D_.cjs → units-MTRY0KtD.cjs} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +4 -4
- package/dist/LinePlot-DkAUE5Nq.cjs +0 -68
- package/dist/List-BbB1S5Vo.cjs +0 -1
- package/dist/List-DPugi06W.js +0 -22
- package/dist/Toggle-BBGPiXIA.cjs +0 -188
- package/dist/aggregator-DueF6Q-Z.cjs +0 -45
- package/dist/css-DZx3bWkH.cjs +0 -1
- package/dist/external-B-CtJFCn.js +0 -96
- package/dist/external-B39SmpRo.js +0 -201
- package/dist/external-BbnWD0Pc.js +0 -66
- package/dist/external-CsPOXIEm.cjs +0 -1
- package/dist/external-CyiLaYmg.js +0 -322
- package/dist/external-DrS33VU5.cjs +0 -1
- package/dist/external-WzX6JA2j.cjs +0 -1
- package/dist/external-fg-pJfZR.js +0 -260
- package/dist/external-vZfda3xX.cjs +0 -1
- package/dist/external-vgqH7hLg.cjs +0 -1
package/dist/css.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-BNL3vU5o.cjs"),t=require("./units-MTRY0KtD.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
|
package/dist/css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, n as t } from "./css-
|
|
2
|
-
import { c as s, u as n } from "./units-
|
|
1
|
+
import { C as e, n as t } from "./css-CDB-JY4S.js";
|
|
2
|
+
import { c as s, u as n } from "./units-DeLVJ01P.js";
|
|
3
3
|
export {
|
|
4
4
|
e as CSS,
|
|
5
5
|
s as createHexOpacityVariants,
|
package/dist/dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-BvWOTk9-.cjs");exports.Dropdown=e.Dropdown;
|
package/dist/dropdown.js
CHANGED
package/dist/ether.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-CaPKb9Zv.cjs"),R=require("./css-BNL3vU5o.cjs"),e=require("./LinePlot-tnVASicV.cjs"),l=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,fontString:t.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),a=Object.freeze(Object.defineProperty({__proto__:null,Context:e.Context,Controller:e.Controller,Eraser:e.Eraser,GLProgram:e.GLProgram,Loop:e.Loop,REASON_DATA:e.REASON_DATA,REASON_LAYOUT:e.REASON_LAYOUT,REASON_TOOL:e.REASON_TOOL},Symbol.toStringTag,{value:"Module"})),i=()=>{const r=new t.l((S,n)=>postMessage(S,n));onmessage=r.handle.bind(r);const o={...e.REGISTRY,...e.REGISTRY$1,...e.REGISTRY$2,...e.REGISTRY$3,...e.REGISTRY$4,...e.REGISTRY$5,...e.REGISTRY$6,...e.REGISTRY$7,...e.REGISTRY$8,...e.REGISTRY$9,...e.REGISTRY$10,...e.REGISTRY$11,...t.REGISTRY,...t.REGISTRY$1,...e.REGISTRY$12,...e.REGISTRY$13,...e.REGISTRY$14,...e.REGISTRY$15};t.render({worker:r.route("vis"),registry:o})},s=Object.freeze(Object.defineProperty({__proto__:null,render:i},Symbol.toStringTag,{value:"Module"})),T=Object.freeze(Object.defineProperty({__proto__:null,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY,XAxis:e.XAxis,YAxis:e.YAxis,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.color=R.color;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=s;exports.render=a;exports.theming=l;
|
package/dist/ether.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as R, R as a, S as n, a as l, b as S, f as T, t as E, u as i, l as Y,
|
|
2
|
-
import {
|
|
3
|
-
import { b as se } from "./css-
|
|
4
|
-
import { C as $, a as p, E as u, G as I, L as c, R as m, b as d, c as b, d as s, e as f, f as g, g as x, h as A, i as O, j as y, k as j, l as v, m as N, n as P, o as L, p as h, q as M, r as z, s as X, A as w, X as C, Y as Z, B as D, F as H, H as k } from "./LinePlot-
|
|
5
|
-
import { v as oe, D as re, x as Re, y as ne, t as le, u as Se, w as Te, z as Ee } from "./LinePlot-
|
|
1
|
+
import { P as R, R as a, S as n, a as l, b as S, f as T, t as E, u as i, l as Y, c as G, r as _ } from "./aggregator-BIhLPgXc.js";
|
|
2
|
+
import { d as ee } from "./aggregator-BIhLPgXc.js";
|
|
3
|
+
import { b as se } from "./css-CDB-JY4S.js";
|
|
4
|
+
import { C as $, a as p, E as u, G as I, L as c, R as m, b as d, c as b, d as s, e as f, f as g, g as x, h as A, i as O, j as y, k as j, l as v, m as N, n as P, o as L, p as h, q as M, r as z, s as X, A as w, X as C, Y as Z, B as D, F as H, H as k } from "./LinePlot-Dw8vQLJw.js";
|
|
5
|
+
import { v as oe, D as re, x as Re, y as ne, t as le, u as Se, w as Te, z as Ee } from "./LinePlot-Dw8vQLJw.js";
|
|
6
6
|
const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
8
8
|
Provider: R,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-
|
|
1
|
+
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-B5JX1aqf.js";
|
|
2
2
|
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
ALIGNMENTS: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-fmb_vB8K.cjs"),d=require("./aggregator-
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-fmb_vB8K.cjs"),d=require("./aggregator-CaPKb9Zv.cjs"),c=require("react"),S=require("./Pack-D93gFUU9.cjs"),a=require("./Toggle-BvWOTk9-.cjs"),o=require("./css-BNL3vU5o.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(h,{index:t,level:r,divided:e,children:n},t))})},h=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,...C}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...C},s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},E=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},R=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:E,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=R;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Pack-
|
|
1
|
+
"use strict";const e=require("./Pack-D93gFUU9.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { A as u,
|
|
1
|
+
import { j as a } from "./jsx-runtime-DqxPLdyS.js";
|
|
2
|
+
import { A as u, g as d } from "./aggregator-BIhLPgXc.js";
|
|
3
3
|
import { createContext as v, useContext as j, isValidElement as f, Fragment as h } from "react";
|
|
4
|
-
import { S as m } from "./Pack-
|
|
5
|
-
import { I as B,
|
|
6
|
-
import { C as
|
|
4
|
+
import { S as m } from "./Pack-B5JX1aqf.js";
|
|
5
|
+
import { I as B, p as C, B as S, W as b } from "./Toggle-Cq3FTFfq.js";
|
|
6
|
+
import { C as n } from "./css-CDB-JY4S.js";
|
|
7
7
|
const x = v({
|
|
8
8
|
divided: !1,
|
|
9
9
|
level: "h1"
|
|
10
|
-
}), i = () => j(x),
|
|
10
|
+
}), i = () => j(x), g = ({
|
|
11
11
|
children: s,
|
|
12
12
|
className: r,
|
|
13
13
|
level: e = "h1",
|
|
14
14
|
divided: o = !1,
|
|
15
15
|
...t
|
|
16
|
-
}) => /* @__PURE__ */
|
|
16
|
+
}) => /* @__PURE__ */ a.jsx(x.Provider, { value: { level: e, divided: o }, children: /* @__PURE__ */ a.jsx(
|
|
17
17
|
m,
|
|
18
18
|
{
|
|
19
19
|
el: "header",
|
|
20
20
|
direction: "x",
|
|
21
21
|
justify: "spaceBetween",
|
|
22
|
-
className:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
o &&
|
|
22
|
+
className: n(
|
|
23
|
+
n.B("header"),
|
|
24
|
+
n.bordered("bottom"),
|
|
25
|
+
o && n.BM("header", "divided"),
|
|
26
26
|
r
|
|
27
27
|
),
|
|
28
28
|
...t,
|
|
29
29
|
children: s
|
|
30
30
|
}
|
|
31
|
-
) }),
|
|
31
|
+
) }), z = ({ children: s = [] }) => {
|
|
32
32
|
const { level: r, divided: e } = i();
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ a.jsx(
|
|
34
34
|
m,
|
|
35
35
|
{
|
|
36
36
|
direction: "x",
|
|
37
37
|
size: "small",
|
|
38
38
|
align: "center",
|
|
39
|
-
className:
|
|
40
|
-
children: u(s).map((o, t) => /* @__PURE__ */
|
|
39
|
+
className: n.BE("header", "actions"),
|
|
40
|
+
children: u(s).map((o, t) => /* @__PURE__ */ a.jsx(A, { index: t, level: r, divided: e, children: o }, t))
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}, A = ({ index: s, level: r, children: e, divided: o }) => {
|
|
44
44
|
let t = e;
|
|
45
45
|
if (!f(e)) {
|
|
46
46
|
const { onClick: l, ...p } = e;
|
|
47
|
-
t = /* @__PURE__ */
|
|
47
|
+
t = /* @__PURE__ */ a.jsx(
|
|
48
48
|
B,
|
|
49
49
|
{
|
|
50
50
|
onClick: (c) => {
|
|
@@ -56,8 +56,8 @@ const x = v({
|
|
|
56
56
|
s
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
o && /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ a.jsxs(h, { children: [
|
|
60
|
+
o && /* @__PURE__ */ a.jsx(C, {}),
|
|
61
61
|
t
|
|
62
62
|
] }, s);
|
|
63
63
|
}, E = ({
|
|
@@ -67,13 +67,13 @@ const x = v({
|
|
|
67
67
|
...o
|
|
68
68
|
}) => {
|
|
69
69
|
const { level: t } = i();
|
|
70
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ a.jsx(
|
|
71
71
|
S,
|
|
72
72
|
{
|
|
73
73
|
variant: "text",
|
|
74
74
|
size: d[t],
|
|
75
75
|
onClick: e,
|
|
76
|
-
className:
|
|
76
|
+
className: n(n.B("header-button-title"), r),
|
|
77
77
|
sharp: !0,
|
|
78
78
|
...o,
|
|
79
79
|
children: s
|
|
@@ -85,10 +85,10 @@ const x = v({
|
|
|
85
85
|
...e
|
|
86
86
|
}) => {
|
|
87
87
|
const { level: o, divided: t } = i();
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ a.jsx(
|
|
89
89
|
b,
|
|
90
90
|
{
|
|
91
|
-
className:
|
|
91
|
+
className: n(n.BE("header", "text"), s),
|
|
92
92
|
level: r ?? o,
|
|
93
93
|
divided: t,
|
|
94
94
|
size: 1.5,
|
|
@@ -97,15 +97,15 @@ const x = v({
|
|
|
97
97
|
);
|
|
98
98
|
}, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
99
99
|
__proto__: null,
|
|
100
|
-
Actions:
|
|
100
|
+
Actions: z,
|
|
101
101
|
ButtonTitle: E,
|
|
102
|
-
Header:
|
|
102
|
+
Header: g,
|
|
103
103
|
Title: N,
|
|
104
104
|
useContext: i
|
|
105
105
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
z as A,
|
|
108
108
|
E as B,
|
|
109
|
-
|
|
109
|
+
g as H,
|
|
110
110
|
H as e
|
|
111
111
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const k=require("./aggregator-CaPKb9Zv.cjs"),b=require("./jsx-runtime-fmb_vB8K.cjs"),c=require("./Toggle-BvWOTk9-.cjs"),x=require("react"),te=require("./Link-CmzvCQDi.cjs"),ne=require("./Animated-Cbt7tqBk.cjs"),h=require("./css-BNL3vU5o.cjs");require("./Pack-D93gFUU9.cjs");const re=require("./List-BX3MLMNz.cjs"),X=(e,t)=>t.includes(e.key),B=(e,t)=>{t&&e.sort((n,r)=>k.E.stringsWithNumbers(n.name,r.name));let s=!1;for(let n=0;n<e.length;n++){const r=e[n];r.forcePosition!=null&&n!==r.forcePosition&&(s=!0,e.splice(n,1),e.splice(r.forcePosition,0,r))}return s?B(e,!1):e},H=({nodes:e,expanded:t,depth:s=0,sort:n=!0})=>{s===0&&n&&(e=e.sort((l,i)=>l.name.localeCompare(i.name)));const r=[];return e.forEach((l,i)=>{const a=X(l,t);r.push({...l,depth:s,expanded:a,index:i}),a&&l.children!=null&&(l.children=B(l.children,n),r.push(...H({nodes:l.children,expanded:t,depth:s+1,sort:n})))}),r},se=({tree:e,destination:t,keys:s})=>(s=k.A(s),s.forEach(n=>{const r=R({tree:e,key:n});r!=null&&(Y({tree:e,keys:n}),z({tree:e,destination:t,additions:r}))}),e),Y=({tree:e,keys:t})=>{t=k.A(t);const s=e.map(n=>n.key);return t.forEach(n=>{var l;const r=s.indexOf(n);if(r!==-1)e.splice(r,1);else{const i=P({tree:e,key:n});i!=null&&(i.children=(l=i.children)==null?void 0:l.filter(a=>a.key!==n))}}),e},z=({tree:e,destination:t,additions:s})=>{s=k.A(s);const n=R({tree:e,key:t});if(n==null)throw new Error(`Could not find node with key ${t}`);n.children==null&&(n.children=[]);const r=s.map(l=>l.key);return n.children=[...s,...n.children.filter(l=>!r.includes(l.key))],e},le=({tree:e,key:t,updater:s,throwOnMissing:n=!0})=>{var i,a;const r=R({tree:e,key:t});if(r==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}const l=P({tree:e,key:t});if(l!=null){const d=(i=l.children)==null?void 0:i.findIndex(C=>C.key===t);d!=null&&d!==-1&&((a=l.children)==null||a.splice(d,1,s(r)))}else e.splice(e.findIndex(d=>d.key===t),1,s(r));return e},ie=({tree:e,parent:t,updater:s,throwOnMissing:n=!0})=>{const r=R({tree:e,key:t});if(r==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}return r.children=s(r.children??[]),e},R=({tree:e,key:t,depth:s=0})=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.key===t){const l=r;return l.depth=s,l.position=n,l}if(r.children!=null){const l=R({tree:r.children,key:t,depth:s+1});if(l!=null)return l}}return null},ae=({tree:e,keys:t})=>{const s=[];for(const n of t){const r=R({tree:e,key:n});r!=null&&s.push(r)}return s},P=({tree:e,key:t})=>{for(const s of e)if(s.children!=null){if(s.children.some(r=>r.key===t))return s;const n=P({tree:s.children,key:t});if(n!=null)return n}return null},F=e=>e.map(t=>({...t,children:F(t.children??[])})),M="tree-item",oe=[["Shift"]],ce=e=>{const{onExpand:t,nodes:s,initialExpanded:n=[],sort:r=!0,selected:l,onSelectedChange:i}=e??{},[a,d,C]=c.useCombinedStateAndRef(n),[o,j]=k.usePassthrough({initial:[],value:l,onChange:i}),N=x.useMemo(()=>H({nodes:s,expanded:a,sort:r}),[s,a,r]),T=c.useSyncedRef(N),I=c.useHeldRef({triggers:oe}),w=x.useCallback((u,{clicked:f})=>{j(u);const E=T.current.find(y=>y.key===f);if((E==null?void 0:E.hasChildren)===!1||f==null||I.current.held)return;const v=C.current,L=v.some(y=>y===f)?"contract":"expand";let S=v;L==="contract"?S=v.filter(y=>y!==f):S=[...v,f],d(S),t==null||t({current:S,action:L,clicked:f})},[t,T,d,j]),p=x.useCallback(u=>{d(f=>k.n([...f,u])),t==null||t({current:a,action:"expand",clicked:u})},[d]),A=x.useCallback(u=>{d(f=>f.filter(E=>E!==u)),t==null||t({current:a,action:"contract",clicked:u})},[d]);return{onSelect:w,selected:o,expanded:a,contract:A,expand:p,nodes:N}},K=x.memo(({entry:e,selected:t,onSelect:s,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:i,loading:a=!1,useMargin:d=!0,translate:C})=>{const{key:o,hasChildren:j=!1,allowRename:N=!1,children:T,icon:I,name:w,depth:p,expanded:A,href:u,haulItems:f=[]}=e,{getSelected:E}=c.useSelectionUtils(),{getSourceData:v}=c.useDataUtilContext(),L=j||T!=null&&T.length>0,S=[];L&&S.push(b.jsxRuntimeExports.jsx(ne.Animated,{enabled:A,enabledLoc:"bottom",disabledLoc:"right"})),I!=null&&S.push(I);const y=[];a&&y.push(b.jsxRuntimeExports.jsx(c.bt.Loading,{className:h.CSS.B("loading-indicator")}));const[V,q]=x.useState(!1),{startDrag:G,...J}=c.useDragAndDrop({type:"Tree.Item",key:o,canDrop:x.useCallback(({items:m,source:O})=>{const g=m.map(_=>_.key);return q(!1),O.type==="Tree.Item"&&!g.includes(o)},[]),onDrop:x.useCallback(m=>(n==null?void 0:n(o,m))??[],[o,n]),onDragOver:x.useCallback(()=>q(!0),[])}),Q=()=>{const m=E(),O=v().filter(g=>m.includes(g.key));if(m.includes(o)){const g=O.map(({key:_,haulItems:$,depth:U})=>[{type:M,key:_,data:{depth:U}},...($==null?void 0:$.map(W=>({...W,data:{...W.data,depth:U}})))??[]]).flat();return G(g,_=>l==null?void 0:l(o,_))}G([{type:M,key:o,data:{depth:p}},...f.map(g=>({...g,data:{depth:p}}))],g=>l==null?void 0:l(o,g))},Z=d?"marginLeft":"paddingLeft",D={id:o,variant:"text",draggable:!0,className:h.CSS(h.CSS.BE("list","item"),c.CONTEXT_TARGET,V&&h.CSS.M("dragging-over"),t&&c.CONTEXT_SELECTED,h.CSS.selected(t),L&&h.CSS.M("has-children"),h.CSS.BM("depth",p.toString())),onDragLeave:()=>q(!1),onDragStart:Q,onClick:()=>s==null?void 0:s(o),style:{border:"none",position:C!=null?"absolute":"relative",transform:`translateY(${C}px)`,[Z]:`${p*1.5+1.5}rem`,"--pluto-tree-indicator-offset":`${p*1.5+(p===0?0:.5)}rem`},startIcon:S,iconSpacing:"small",noWrap:!0,endIcon:y,onDoubleClick:m=>i==null?void 0:i(o,m),href:u,...J},ee=u!=null?te.Link:c.Button;return b.jsxRuntimeExports.jsx(ee,{className:h.CSS.BE("list","item"),...D,children:b.jsxRuntimeExports.jsx(c.MaybeEditable,{id:`text-${o}`,level:"p",allowDoubleClick:!1,value:w,disabled:!N,onChange:m=>r==null?void 0:r(o,m)})})});K.displayName="Tree.Item";const de=c.componentRenderProp(K),ue=({nodes:e,selected:t=[],onSelect:s,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:i,className:a,children:d=de,itemHeight:C=27,useMargin:o=!1,showRules:j=!1,virtual:N=!0,expand:T,contract:I,...w})=>{const p=N?c.Core.Virtual:c.Core;return b.jsxRuntimeExports.jsx(re.List,{data:e,children:b.jsxRuntimeExports.jsx(c.Selector,{value:t,onChange:s,allowMultiple:!0,replaceOnSingle:!0,children:b.jsxRuntimeExports.jsx(p,{itemHeight:C,className:h.CSS(a,h.CSS.B("tree"),j&&h.CSS.M("rules")),...w,children:({key:A,...u})=>d({...u,useMargin:o,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:i})})})})},fe=(e,t)=>c.edit(`text-${e}`,t),he=e=>c.asyncEdit(`text-${e}`),pe=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:K,HAUL_TYPE:M,Tree:ue,asyncRename:he,deepCopy:F,findNode:R,findNodeParent:P,findNodes:ae,flatten:H,moveNode:se,removeNode:Y,setNode:z,shouldExpand:X,sortAndSplice:B,startRenaming:fe,updateNode:le,updateNodeChildren:ie,use:ce},Symbol.toStringTag,{value:"Module"}));exports.external=pe;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ak as O, f as b, al as C, am as N, an as v, ao as w, ap as D, aq as z, ar as B, as as U, at as V } from "./Toggle-Cq3FTFfq.js";
|
|
2
2
|
import { j as a } from "./jsx-runtime-DqxPLdyS.js";
|
|
3
|
-
import { m as u, w as _ } from "./aggregator-
|
|
3
|
+
import { m as u, w as _ } from "./aggregator-BIhLPgXc.js";
|
|
4
4
|
import { useState as I } from "react";
|
|
5
|
-
import { C as
|
|
6
|
-
import { S as
|
|
5
|
+
import { C as n, g as A } from "./css-CDB-JY4S.js";
|
|
6
|
+
import { S as j } from "./Pack-B5JX1aqf.js";
|
|
7
7
|
const q = ({
|
|
8
8
|
value: t,
|
|
9
9
|
onChange: s,
|
|
@@ -12,18 +12,18 @@ const q = ({
|
|
|
12
12
|
}) => {
|
|
13
13
|
const S = new u(t, "UTC"), [c, f] = I(
|
|
14
14
|
S.fString("ISO", "local").slice(0, -1)
|
|
15
|
-
), [
|
|
15
|
+
), [x, m] = I(!0), d = (i) => {
|
|
16
16
|
let o = i.toString();
|
|
17
17
|
f(o);
|
|
18
|
-
let
|
|
19
|
-
o.length < 23 && (o += ".000"),
|
|
18
|
+
let r = new u(i, "UTC");
|
|
19
|
+
o.length < 23 && (o += ".000"), r = r.add(
|
|
20
20
|
BigInt(
|
|
21
|
-
u.now().date().getTimezoneOffset() -
|
|
21
|
+
u.now().date().getTimezoneOffset() - r.date().getTimezoneOffset()
|
|
22
22
|
) * _.MINUTE.valueOf()
|
|
23
23
|
);
|
|
24
24
|
let h = !1;
|
|
25
25
|
try {
|
|
26
|
-
h =
|
|
26
|
+
h = r.fString("ISO", "local").slice(0, -1) === o;
|
|
27
27
|
} catch {
|
|
28
28
|
console.error("e");
|
|
29
29
|
}
|
|
@@ -31,7 +31,7 @@ const q = ({
|
|
|
31
31
|
m(!1);
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
s(Number(
|
|
34
|
+
s(Number(r.valueOf())), m(!0);
|
|
35
35
|
}, g = (i) => {
|
|
36
36
|
m(!0), f(new u(t, "UTC").fString("ISO", "local").slice(0, -1)), e == null || e(i);
|
|
37
37
|
};
|
|
@@ -41,7 +41,7 @@ const q = ({
|
|
|
41
41
|
type: "datetime-local",
|
|
42
42
|
onBlur: g,
|
|
43
43
|
required: !1,
|
|
44
|
-
value:
|
|
44
|
+
value: x ? new u(t, "UTC").fString("ISO", "local").slice(0, -1) : c,
|
|
45
45
|
onChange: d,
|
|
46
46
|
...l
|
|
47
47
|
}
|
|
@@ -53,9 +53,9 @@ const q = ({
|
|
|
53
53
|
}) => /* @__PURE__ */ a.jsx(
|
|
54
54
|
b,
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
className: n(
|
|
57
|
+
n.B("input-help-text"),
|
|
58
|
+
n.BM("input-help-text", s),
|
|
59
59
|
t
|
|
60
60
|
),
|
|
61
61
|
level: "small",
|
|
@@ -66,10 +66,10 @@ const q = ({
|
|
|
66
66
|
required: s = !1,
|
|
67
67
|
children: e,
|
|
68
68
|
...l
|
|
69
|
-
}) => /* @__PURE__ */ a.jsxs("label", { className:
|
|
69
|
+
}) => /* @__PURE__ */ a.jsxs("label", { className: n(n.B("input-label"), t), ...l, children: [
|
|
70
70
|
e,
|
|
71
71
|
" ",
|
|
72
|
-
s && /* @__PURE__ */ a.jsx("span", { className:
|
|
72
|
+
s && /* @__PURE__ */ a.jsx("span", { className: n.B("required-indicator"), children: "*" })
|
|
73
73
|
] }), M = (t, s = "x") => t ?? (A.construct(s) === "y" ? "stretch" : "center"), k = ({
|
|
74
74
|
label: t,
|
|
75
75
|
showLabel: s = !0,
|
|
@@ -78,31 +78,31 @@ const q = ({
|
|
|
78
78
|
className: S,
|
|
79
79
|
children: c,
|
|
80
80
|
required: f,
|
|
81
|
-
align:
|
|
81
|
+
align: x,
|
|
82
82
|
size: m = "small",
|
|
83
83
|
padHelpText: d = !1,
|
|
84
84
|
helpTextVariant: g,
|
|
85
85
|
showHelpText: i = !0,
|
|
86
86
|
...o
|
|
87
87
|
}) => {
|
|
88
|
-
let
|
|
89
|
-
return i === !1 && s === !1 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: c }) : (l === "x" ?
|
|
88
|
+
let r;
|
|
89
|
+
return i === !1 && s === !1 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: c }) : (l === "x" ? r = /* @__PURE__ */ a.jsxs(j, { direction: "y", size: "small", children: [
|
|
90
90
|
c,
|
|
91
91
|
(d || e != null && e.length > 0) && /* @__PURE__ */ a.jsx(p, { variant: g, children: e })
|
|
92
|
-
] }) :
|
|
92
|
+
] }) : r = /* @__PURE__ */ a.jsxs(j, { direction: "y", size: 1 / 3, children: [
|
|
93
93
|
c,
|
|
94
94
|
(d || e != null && e.length > 0) && /* @__PURE__ */ a.jsx(p, { variant: g, children: e })
|
|
95
95
|
] }), /* @__PURE__ */ a.jsxs(
|
|
96
|
-
|
|
96
|
+
j,
|
|
97
97
|
{
|
|
98
|
-
className:
|
|
98
|
+
className: n(n.B("input-item"), S),
|
|
99
99
|
direction: l,
|
|
100
100
|
size: m,
|
|
101
|
-
align: M(
|
|
101
|
+
align: M(x, l),
|
|
102
102
|
...o,
|
|
103
103
|
children: [
|
|
104
104
|
s && /* @__PURE__ */ a.jsx(y, { required: f, children: t }),
|
|
105
|
-
|
|
105
|
+
r
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./css-
|
|
1
|
+
"use strict";const e=require("./css-BNL3vU5o.cjs"),l=require("./jsx-runtime-fmb_vB8K.cjs"),r=require("./Toggle-BvWOTk9-.cjs"),b=require("react");require("./aggregator-CaPKb9Zv.cjs");require("./Pack-D93gFUU9.cjs");const g=({value:o,onChange:t,...u})=>{const i=s=>{s.hex==="transparent"&&t(e.ZERO),t(new e.Color(s.hex,s.rgb.a))};return l.jsxRuntimeExports.jsx(r.SketchPicker,{className:e.CSS.B("color-picker"),color:new e.Color(o).hex,onChange:i,presetColors:[],...u})},x="color",d=({value:o,onChange:t,className:u,size:i="medium",onVisibleChange:s,initialVisible:m,draggable:h=!0,...j})=>{const{visible:k,open:y,close:C}=r.use$1({onVisibleChange:s,initialVisible:m}),f=r.use().colors.gray.l0,c=new e.Color(o),w=r.useDraggingState(),S=b.useCallback(({items:a})=>{const[n]=r.filterByType(x,a);return n!=null&&n.key!==c.hex},[c.hex]),{startDrag:R,...E}=r.useDragAndDrop({type:"Color.Swatch",onDrop:({items:a})=>{const n=r.filterByType(x,a);return a.length>0&&(t==null||t(new e.Color(n[0].key))),n},canDrop:S}),p=l.jsxRuntimeExports.jsx(r.Button,{className:e.CSS(e.CSS.B("color-swatch"),e.CSS.size(i),c.contrast(f)>1.5&&c.a>.5&&e.CSS.M("no-border"),e.CSS.dropRegion(S(w)),u),draggable:h,onDragStart:()=>R([{type:x,key:c.hex}]),style:{backgroundColor:e.cssString(o)},variant:"text",onClick:y,size:i,tooltip:t!=null?l.jsxRuntimeExports.jsx(r.Text,{level:"small",children:"Click to change color"}):void 0,...E,...j});return t==null?p:l.jsxRuntimeExports.jsxs(r.Dialog,{close:C,visible:k,className:e.CSS.BE("color-swatch","dropdown"),keepMounted:!1,variant:"floating",children:[p,l.jsxRuntimeExports.jsx(g,{value:o,onChange:t})]})},D=Object.freeze(Object.defineProperty({__proto__:null,Color:e.Color,Picker:g,Swatch:d,ZERO:e.ZERO,cssString:e.cssString,fromHSLA:e.fromHSLA,toHex:e.toHex},Symbol.toStringTag,{value:"Module"}));exports.Swatch=d;exports.external=D;
|
|
@@ -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-BIhLPgXc.js";
|
|
2
|
+
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-Cq3FTFfq.js";
|
|
3
3
|
const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Provider: s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./Toggle-BvWOTk9-.cjs"),o=require("./Link-CmzvCQDi.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as t, a as l, Z as
|
|
1
|
+
import { C as t, a as l, Z as f, c as g, f as v, t as E } from "./css-CDB-JY4S.js";
|
|
2
2
|
import { j as c } from "./jsx-runtime-DqxPLdyS.js";
|
|
3
|
-
import {
|
|
3
|
+
import { j as T, k as A, u as C, l as H, m as x, n as M, B as N, f as O, o as R } from "./Toggle-Cq3FTFfq.js";
|
|
4
4
|
import { useCallback as L } from "react";
|
|
5
|
-
import "./aggregator-
|
|
6
|
-
import "./Pack-
|
|
5
|
+
import "./aggregator-BIhLPgXc.js";
|
|
6
|
+
import "./Pack-B5JX1aqf.js";
|
|
7
7
|
const k = ({ value: r, onChange: o, ...p }) => {
|
|
8
8
|
const n = (e) => {
|
|
9
|
-
e.hex === "transparent" && o(
|
|
9
|
+
e.hex === "transparent" && o(f), o(new l(e.hex, e.rgb.a));
|
|
10
10
|
};
|
|
11
11
|
return /* @__PURE__ */ c.jsx(
|
|
12
12
|
T,
|
|
@@ -53,7 +53,7 @@ const k = ({ value: r, onChange: o, ...p }) => {
|
|
|
53
53
|
),
|
|
54
54
|
draggable: S,
|
|
55
55
|
onDragStart: () => P([{ type: u, key: s.hex }]),
|
|
56
|
-
style: { backgroundColor:
|
|
56
|
+
style: { backgroundColor: g(r) },
|
|
57
57
|
variant: "text",
|
|
58
58
|
onClick: w,
|
|
59
59
|
size: n,
|
|
@@ -81,8 +81,8 @@ const k = ({ value: r, onChange: o, ...p }) => {
|
|
|
81
81
|
Color: l,
|
|
82
82
|
Picker: k,
|
|
83
83
|
Swatch: Z,
|
|
84
|
-
ZERO:
|
|
85
|
-
cssString:
|
|
84
|
+
ZERO: f,
|
|
85
|
+
cssString: g,
|
|
86
86
|
fromHSLA: v,
|
|
87
87
|
toHex: E
|
|
88
88
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as he,
|
|
1
|
+
import { w as he, au as Ae, ak as Oe, K as ke, av as Le, A as Re, i as Ce, J as je, aw as ve, ax as $e, E as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, L as We, aD as ze, aE as He, v as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-Cq3FTFfq.js";
|
|
2
2
|
import { j as Ye } from "./jsx-runtime-DqxPLdyS.js";
|
|
3
3
|
import { useCallback as Je } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { L as Ze } from "./List-
|
|
4
|
+
import { k as Qe, j as Xe } from "./aggregator-BIhLPgXc.js";
|
|
5
|
+
import "./css-CDB-JY4S.js";
|
|
6
|
+
import "./Pack-B5JX1aqf.js";
|
|
7
|
+
import { L as Ze } from "./List-BlgM15Pf.js";
|
|
8
8
|
const K = Symbol(), le = Symbol(), J = Symbol();
|
|
9
9
|
let qe = (t, e) => new Proxy(t, e);
|
|
10
10
|
const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) => t && (te.has(t) ? te.get(t) : W(t) === Object.prototype || W(t) === Array.prototype), se = (t) => typeof t == "object" && t !== null, re = /* @__PURE__ */ new WeakMap(), ue = (t) => t[J] || t, fe = (t, e, s) => {
|
|
@@ -876,7 +876,7 @@ const B = [];
|
|
|
876
876
|
function Tt(...t) {
|
|
877
877
|
B.push(...t);
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function G(t, e) {
|
|
880
880
|
for (let s = 0, r = B.length; s < r; s += 1) {
|
|
881
881
|
let n = B[s];
|
|
882
882
|
if (n.condition(t, e))
|
|
@@ -887,10 +887,10 @@ function U(t, e) {
|
|
|
887
887
|
const F = {
|
|
888
888
|
AND: "$and",
|
|
889
889
|
OR: "$or"
|
|
890
|
-
},
|
|
890
|
+
}, U = {
|
|
891
891
|
PATH: "$path",
|
|
892
892
|
PATTERN: "$val"
|
|
893
|
-
}, Y = (t) => !!(t[F.AND] || t[F.OR]), Pt = (t) => !!t[
|
|
893
|
+
}, Y = (t) => !!(t[F.AND] || t[F.OR]), Pt = (t) => !!t[U.PATH], Dt = (t) => !b(t) && me(t) && !Y(t), ae = (t) => ({
|
|
894
894
|
[F.AND]: Object.keys(t).map((e) => ({
|
|
895
895
|
[e]: t[e]
|
|
896
896
|
}))
|
|
@@ -902,14 +902,14 @@ function be(t, e, { auto: s = !0 } = {}) {
|
|
|
902
902
|
if (!c && i.length > 1 && !Y(n))
|
|
903
903
|
return r(ae(n));
|
|
904
904
|
if (Dt(n)) {
|
|
905
|
-
const a = c ? n[
|
|
905
|
+
const a = c ? n[U.PATH] : i[0], l = c ? n[U.PATTERN] : n[a];
|
|
906
906
|
if (!S(l))
|
|
907
907
|
throw new Error(lt(a));
|
|
908
908
|
const h = {
|
|
909
909
|
keyId: H(a),
|
|
910
910
|
pattern: l
|
|
911
911
|
};
|
|
912
|
-
return s && (h.searcher =
|
|
912
|
+
return s && (h.searcher = G(l, e)), h;
|
|
913
913
|
}
|
|
914
914
|
let o = {
|
|
915
915
|
children: [],
|
|
@@ -1011,7 +1011,7 @@ class C {
|
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
1013
|
_searchStringList(e) {
|
|
1014
|
-
const s =
|
|
1014
|
+
const s = G(e, this.options), { records: r } = this._myIndex, n = [];
|
|
1015
1015
|
return r.forEach(({ v: i, i: c, n: o }) => {
|
|
1016
1016
|
if (!y(i))
|
|
1017
1017
|
return;
|
|
@@ -1059,7 +1059,7 @@ class C {
|
|
|
1059
1059
|
}), c;
|
|
1060
1060
|
}
|
|
1061
1061
|
_searchObjectList(e) {
|
|
1062
|
-
const s =
|
|
1062
|
+
const s = G(e, this.options), { keys: r, records: n } = this._myIndex, i = [];
|
|
1063
1063
|
return n.forEach(({ $: c, i: o }) => {
|
|
1064
1064
|
if (!y(c))
|
|
1065
1065
|
return;
|
|
@@ -1124,9 +1124,9 @@ const Vt = {
|
|
|
1124
1124
|
search: (r) => s.search(r).map(({ item: n }) => n),
|
|
1125
1125
|
retrieve: (r) => e.filter((n) => r.includes(n.key))
|
|
1126
1126
|
};
|
|
1127
|
-
},
|
|
1127
|
+
}, Gt = Bt(), Ut = ({
|
|
1128
1128
|
term: t,
|
|
1129
|
-
searcher: e =
|
|
1129
|
+
searcher: e = Gt
|
|
1130
1130
|
}) => rt(({ 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 }), we = ({
|
|
1131
1131
|
debounce: t = 250,
|
|
1132
1132
|
value: e,
|
|
@@ -1139,7 +1139,7 @@ const Vt = {
|
|
|
1139
1139
|
initial: ""
|
|
1140
1140
|
}), { setTransform: c, deleteTransform: o } = he(), a = Ae(c, t, []), l = Je(
|
|
1141
1141
|
(h) => {
|
|
1142
|
-
i(h), h.length === 0 ? o("filter") : (r != null && (h = r(h)), a("filter",
|
|
1142
|
+
i(h), h.length === 0 ? o("filter") : (r != null && (h = r(h)), a("filter", Ut({ term: h })));
|
|
1143
1143
|
},
|
|
1144
1144
|
[i, r]
|
|
1145
1145
|
);
|
|
@@ -1171,12 +1171,12 @@ const Vt = {
|
|
|
1171
1171
|
useSelectionContext: He,
|
|
1172
1172
|
useSelectionUtils: Ve,
|
|
1173
1173
|
useSetSourceData: Be,
|
|
1174
|
-
useSourceData:
|
|
1175
|
-
useTransformedData:
|
|
1174
|
+
useSourceData: Ge,
|
|
1175
|
+
useTransformedData: Ue
|
|
1176
1176
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1177
1177
|
export {
|
|
1178
1178
|
Yt as F,
|
|
1179
|
-
|
|
1179
|
+
Ut as c,
|
|
1180
1180
|
rs as e,
|
|
1181
1181
|
Bt as f,
|
|
1182
1182
|
rt as p
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./Toggle-
|
|
1
|
+
"use strict";const s=require("./Toggle-BvWOTk9-.cjs"),n=require("./jsx-runtime-fmb_vB8K.cjs"),o=require("./aggregator-CaPKb9Zv.cjs"),R=require("react"),l=require("./css-BNL3vU5o.cjs"),p=require("./Pack-D93gFUU9.cjs"),D=({value:t,onChange:r,onBlur:e,...a})=>{const g=new o.m(t,"UTC"),[m,S]=R.useState(g.fString("ISO","local").slice(0,-1)),[d,x]=R.useState(!0),j=u=>{let c=u.toString();S(c);let i=new o.m(u,"UTC");c.length<23&&(c+=".000"),i=i.add(BigInt(o.m.now().date().getTimezoneOffset()-i.date().getTimezoneOffset())*o.w.MINUTE.valueOf());let C=!1;try{C=i.fString("ISO","local").slice(0,-1)===c}catch{console.error("e")}if(!C){x(!1);return}r(Number(i.valueOf())),x(!0)},f=u=>{x(!0),S(new o.m(t,"UTC").fString("ISO","local").slice(0,-1)),e==null||e(u)};return n.jsxRuntimeExports.jsx(s.Text$1,{type:"datetime-local",onBlur:f,required:!1,value:d?new o.m(t,"UTC").fString("ISO","local").slice(0,-1):m,onChange:j,...a})},T=({className:t,variant:r="error",...e})=>n.jsxRuntimeExports.jsx(s.Text,{className:l.CSS(l.CSS.B("input-help-text"),l.CSS.BM("input-help-text",r),t),level:"small",...e}),E=({className:t,required:r=!1,children:e,...a})=>n.jsxRuntimeExports.jsxs("label",{className:l.CSS(l.CSS.B("input-label"),t),...a,children:[e," ",r&&n.jsxRuntimeExports.jsx("span",{className:l.CSS.B("required-indicator"),children:"*"})]}),O=(t,r="x")=>t??(l.g.construct(r)==="y"?"stretch":"center"),h=({label:t,showLabel:r=!0,helpText:e,direction:a="y",className:g,children:m,required:S,align:d,size:x="small",padHelpText:j=!1,helpTextVariant:f,showHelpText:u=!0,...c})=>{let i;return u===!1&&r===!1?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:m}):(a==="x"?i=n.jsxRuntimeExports.jsxs(p.Space,{direction:"y",size:"small",children:[m,(j||e!=null&&e.length>0)&&n.jsxRuntimeExports.jsx(T,{variant:f,children:e})]}):i=n.jsxRuntimeExports.jsxs(p.Space,{direction:"y",size:1/3,children:[m,(j||e!=null&&e.length>0)&&n.jsxRuntimeExports.jsx(T,{variant:f,children:e})]}),n.jsxRuntimeExports.jsxs(p.Space,{className:l.CSS(l.CSS.B("input-item"),g),direction:a,size:x,align:O(d,a),...c,children:[r&&n.jsxRuntimeExports.jsx(E,{required:S,children:t}),i]}))},b=Object.freeze(Object.defineProperty({__proto__:null,Date:s.Date,DateTime:D,DragButton:s.DragButton,HelpText:T,Item:h,Label:E,Numeric:s.Numeric,Switch:s.Switch$1,Text:s.Text$1,TextArea:s.TextArea,Time:s.Time,combineDateAndTimeValue:s.combineDateAndTimeValue,useDate:s.useDate,useTime:s.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=h;exports.external=b;
|