@republicroad/seal-editor 1.36.0 → 1.37.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/index.js +331 -329
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
2
|
import { t as r } from "./utils-CX-Pz5p6.js";
|
|
3
3
|
import { i, n as a, r as o, t as s } from "./i18n-DI2s8YGH.js";
|
|
4
|
-
import { $ as c, A as l, B as u, C as d, D as f, E as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, N as S, O as C, P as w, Q as T, R as E, S as D, T as
|
|
4
|
+
import { $ as c, A as l, B as u, C as d, D as f, E as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, N as S, O as C, P as w, Q as T, R as E, S as D, T as ee, U as O, V as te, W as k, X as ne, Y as A, Z as re, _ as j, a as M, b as ie, c as N, d as ae, et as oe, f as se, g as ce, h as le, i as ue, j as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, q as ve, r as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee, z as De } from "./schema-BDvVbmiV.js";
|
|
5
5
|
import * as Oe from "react";
|
|
6
6
|
import P, { Children as ke, Fragment as Ae, Suspense as je, cloneElement as Me, createContext as Ne, createRef as Pe, forwardRef as Fe, isValidElement as Ie, lazy as Le, memo as Re, useCallback as F, useContext as ze, useEffect as I, useId as Be, useImperativeHandle as Ve, useLayoutEffect as He, useMemo as L, useRef as R, useState as z, useSyncExternalStore as Ue } from "react";
|
|
7
7
|
import { Toaster as We, toast as B } from "sonner";
|
|
@@ -669,6 +669,7 @@ var $a = Oe.forwardRef(({ className: e, side: t, sideOffset: n = 0, align: i, al
|
|
|
669
669
|
return /* @__PURE__ */ U(En.Portal, {
|
|
670
670
|
container: c,
|
|
671
671
|
children: /* @__PURE__ */ U(En.Positioner, {
|
|
672
|
+
className: "z-50",
|
|
672
673
|
side: t,
|
|
673
674
|
sideOffset: n,
|
|
674
675
|
align: i,
|
|
@@ -718,6 +719,7 @@ var io = Oe.forwardRef(({ className: e, side: t = "right", sideOffset: n = 0, al
|
|
|
718
719
|
return /* @__PURE__ */ U(En.Portal, {
|
|
719
720
|
container: c,
|
|
720
721
|
children: /* @__PURE__ */ U(En.Positioner, {
|
|
722
|
+
className: "z-50",
|
|
721
723
|
side: t,
|
|
722
724
|
sideOffset: n,
|
|
723
725
|
align: i,
|
|
@@ -751,6 +753,7 @@ function so({ className: e, side: t, sideOffset: n = 4, align: i, alignOffset: a
|
|
|
751
753
|
return /* @__PURE__ */ U(Dn.Portal, {
|
|
752
754
|
container: s,
|
|
753
755
|
children: /* @__PURE__ */ U(Dn.Positioner, {
|
|
756
|
+
className: "z-50",
|
|
754
757
|
side: t,
|
|
755
758
|
sideOffset: n,
|
|
756
759
|
align: i,
|
|
@@ -825,6 +828,7 @@ function go({ className: e, side: t, sideOffset: n = 0, align: i, alignOffset: a
|
|
|
825
828
|
return /* @__PURE__ */ U(Dn.Portal, {
|
|
826
829
|
container: s,
|
|
827
830
|
children: /* @__PURE__ */ U(Dn.Positioner, {
|
|
831
|
+
className: "z-50",
|
|
828
832
|
side: t,
|
|
829
833
|
sideOffset: n,
|
|
830
834
|
align: i,
|
|
@@ -1117,19 +1121,20 @@ function zo({ ...e }) {
|
|
|
1117
1121
|
...e
|
|
1118
1122
|
});
|
|
1119
1123
|
}
|
|
1120
|
-
function Bo({ className: e,
|
|
1121
|
-
let
|
|
1124
|
+
function Bo({ className: e, positionerClassName: t, align: n = "center", alignOffset: i, side: a = "bottom", sideOffset: o = 4, ...s }) {
|
|
1125
|
+
let c = Ca();
|
|
1122
1126
|
return /* @__PURE__ */ U(kn.Portal, {
|
|
1123
|
-
container:
|
|
1127
|
+
container: c,
|
|
1124
1128
|
children: /* @__PURE__ */ U(kn.Positioner, {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
+
className: r("z-50", t),
|
|
1130
|
+
side: a,
|
|
1131
|
+
sideOffset: o,
|
|
1132
|
+
align: n,
|
|
1133
|
+
alignOffset: i,
|
|
1129
1134
|
children: /* @__PURE__ */ U(kn.Popup, {
|
|
1130
1135
|
"data-slot": "popover-content",
|
|
1131
1136
|
className: r("box-border z-50 w-fit min-w-[18rem] origin-(--transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden transition-[opacity,transform] duration-150 data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0", e),
|
|
1132
|
-
...
|
|
1137
|
+
...s
|
|
1133
1138
|
})
|
|
1134
1139
|
})
|
|
1135
1140
|
});
|
|
@@ -1143,7 +1148,7 @@ var Vo = ({ open: e, onOpenChange: t, content: n, overlayClassName: r, children:
|
|
|
1143
1148
|
className: "inline-flex",
|
|
1144
1149
|
children: i
|
|
1145
1150
|
}) }), /* @__PURE__ */ U(Bo, {
|
|
1146
|
-
|
|
1151
|
+
positionerClassName: r,
|
|
1147
1152
|
children: n
|
|
1148
1153
|
})]
|
|
1149
1154
|
}), Ho = Oe.createContext({ setValue: () => {} }), Uo = Object.assign(({ value: e, disabled: t, className: n, style: i, children: a }) => {
|
|
@@ -1216,25 +1221,26 @@ function Ko({ className: e, size: t = "default", children: n, ...i }) {
|
|
|
1216
1221
|
children: [n, /* @__PURE__ */ U(An.Icon, { render: /* @__PURE__ */ U(vt, { className: "size-4 opacity-50" }) })]
|
|
1217
1222
|
});
|
|
1218
1223
|
}
|
|
1219
|
-
function qo({ className: e,
|
|
1220
|
-
let
|
|
1224
|
+
function qo({ className: e, positionerClassName: t, children: n, alignItemWithTrigger: i = !0, align: a = "center", side: o = "bottom", sideOffset: s = 0, alignOffset: c, ...l }) {
|
|
1225
|
+
let u = Ca();
|
|
1221
1226
|
return /* @__PURE__ */ U(An.Portal, {
|
|
1222
|
-
container:
|
|
1227
|
+
container: u,
|
|
1223
1228
|
children: /* @__PURE__ */ U(An.Positioner, {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
+
className: r("z-50", t),
|
|
1230
|
+
alignItemWithTrigger: i,
|
|
1231
|
+
side: o,
|
|
1232
|
+
sideOffset: s,
|
|
1233
|
+
align: a,
|
|
1234
|
+
alignOffset: c,
|
|
1229
1235
|
children: /* @__PURE__ */ W(An.Popup, {
|
|
1230
1236
|
"data-slot": "select-content",
|
|
1231
1237
|
className: r("box-border relative z-50 max-h-(--available-height) min-w-[8rem] origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md transition-[opacity,transform] duration-150 data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0", e),
|
|
1232
|
-
...
|
|
1238
|
+
...l,
|
|
1233
1239
|
children: [
|
|
1234
1240
|
/* @__PURE__ */ U(Yo, {}),
|
|
1235
1241
|
/* @__PURE__ */ U(An.List, {
|
|
1236
|
-
className: r("p-1",
|
|
1237
|
-
children:
|
|
1242
|
+
className: r("p-1", i && "h-(--anchor-height) w-full min-w-(--anchor-width) scroll-my-1"),
|
|
1243
|
+
children: n
|
|
1238
1244
|
}),
|
|
1239
1245
|
/* @__PURE__ */ U(Xo, {})
|
|
1240
1246
|
]
|
|
@@ -1272,17 +1278,17 @@ function Xo({ className: e, ...t }) {
|
|
|
1272
1278
|
}
|
|
1273
1279
|
//#endregion
|
|
1274
1280
|
//#region src/components/primitives/select.tsx
|
|
1275
|
-
var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onClear: o, dropdownRender: s, optionRender: c, placeholder: l, disabled: u, size: d, allowClear: f, loading: p, mode: m, tokenSeparators: h, suffixIcon: g, popupMatchSelectWidth: _, variant: v, showSearch: y, filterOption: b, optionLabelProp: x, maxCount: S,
|
|
1276
|
-
let
|
|
1281
|
+
var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onClear: o, dropdownRender: s, optionRender: c, placeholder: l, disabled: u, size: d, allowClear: f, loading: p, mode: m, tokenSeparators: h, suffixIcon: g, popupMatchSelectWidth: _, variant: v, showSearch: y, filterOption: b, optionLabelProp: x, maxCount: S, overlayClassName: C, className: w, style: T }) => {
|
|
1282
|
+
let E = e ?? [], D = t == null ? void 0 : String(t), ee = E.find((e) => String(e.value) === D);
|
|
1277
1283
|
if (m === "multiple" || m === "tags") return /* @__PURE__ */ U("input", {
|
|
1278
1284
|
value: (Array.isArray(t) ? t : []).join(", "),
|
|
1279
1285
|
placeholder: l,
|
|
1280
1286
|
disabled: u || p,
|
|
1281
1287
|
onChange: (e) => i?.(e.target.value.split(",").map((e) => e.trim()).filter(Boolean)),
|
|
1282
|
-
className: r(Ka, "w-full rounded-md border border-input shadow-xs",
|
|
1283
|
-
style:
|
|
1288
|
+
className: r(Ka, "w-full rounded-md border border-input shadow-xs", w),
|
|
1289
|
+
style: T
|
|
1284
1290
|
});
|
|
1285
|
-
let O = /* @__PURE__ */ U(H, { children:
|
|
1291
|
+
let O = /* @__PURE__ */ U(H, { children: E.map((e) => /* @__PURE__ */ U(Jo, {
|
|
1286
1292
|
value: String(e.value),
|
|
1287
1293
|
disabled: e.disabled,
|
|
1288
1294
|
children: c ? c({ data: e }) : e.label ?? String(e.value)
|
|
@@ -1290,23 +1296,24 @@ var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onC
|
|
|
1290
1296
|
return /* @__PURE__ */ W("div", {
|
|
1291
1297
|
className: "relative inline-flex w-full items-center",
|
|
1292
1298
|
children: [/* @__PURE__ */ W(Wo, {
|
|
1293
|
-
value:
|
|
1299
|
+
value: D,
|
|
1294
1300
|
defaultValue: n === void 0 ? void 0 : String(n),
|
|
1295
1301
|
onValueChange: (e) => {
|
|
1296
|
-
if (f && e ===
|
|
1297
|
-
let t =
|
|
1302
|
+
if (f && e === D) return;
|
|
1303
|
+
let t = E.find((t) => String(t.value) === e) ?? {}, n = t.value ?? e;
|
|
1298
1304
|
a?.(n, t), i?.(n, t);
|
|
1299
1305
|
},
|
|
1300
1306
|
disabled: u || p,
|
|
1301
1307
|
children: [/* @__PURE__ */ U(Ko, {
|
|
1302
|
-
className: r("w-full justify-between", d === "large" ? "h-10 text-base" : d === "small" ? "h-8 text-xs" : void 0, f && !!
|
|
1303
|
-
style:
|
|
1304
|
-
children: /* @__PURE__ */ U(Go, { children:
|
|
1308
|
+
className: r("w-full justify-between", d === "large" ? "h-10 text-base" : d === "small" ? "h-8 text-xs" : void 0, f && !!D && "[&>svg:last-child]:hidden", g === null && "[&>svg:last-child]:hidden", w),
|
|
1309
|
+
style: T,
|
|
1310
|
+
children: /* @__PURE__ */ U(Go, { children: ee?.label })
|
|
1305
1311
|
}), /* @__PURE__ */ U(qo, {
|
|
1306
1312
|
alignItemWithTrigger: !1,
|
|
1313
|
+
positionerClassName: C,
|
|
1307
1314
|
children: s ? s(O) : O
|
|
1308
1315
|
})]
|
|
1309
|
-
}), f &&
|
|
1316
|
+
}), f && D ? /* @__PURE__ */ W("button", {
|
|
1310
1317
|
type: "button",
|
|
1311
1318
|
"aria-label": "Clear",
|
|
1312
1319
|
onClick: () => {
|
|
@@ -1647,6 +1654,7 @@ function Cs({ className: e, sideOffset: t = 0, side: n, align: i, alignOffset: a
|
|
|
1647
1654
|
return /* @__PURE__ */ U(Fn.Portal, {
|
|
1648
1655
|
container: c,
|
|
1649
1656
|
children: /* @__PURE__ */ U(Fn.Positioner, {
|
|
1657
|
+
className: "z-50",
|
|
1650
1658
|
side: n,
|
|
1651
1659
|
sideOffset: t,
|
|
1652
1660
|
align: i,
|
|
@@ -3490,23 +3498,23 @@ function Ll(e, t, n, r = !1) {
|
|
|
3490
3498
|
})), o.body.style.cursor = c, o.documentElement.style.cursor = l);
|
|
3491
3499
|
}, D = (e) => {
|
|
3492
3500
|
T(e.clientX);
|
|
3493
|
-
},
|
|
3501
|
+
}, ee = (e) => {
|
|
3494
3502
|
E(e.clientX);
|
|
3495
|
-
},
|
|
3503
|
+
}, O = (e) => {
|
|
3496
3504
|
e.cancelable && (e.preventDefault(), e.stopPropagation()), T(Il(e, d));
|
|
3497
|
-
},
|
|
3505
|
+
}, te = (e) => {
|
|
3498
3506
|
let t = typeof d == "number" ? Fl(e.changedTouches, d) : Il(e);
|
|
3499
3507
|
typeof t == "number" && (e.cancelable && (e.preventDefault(), e.stopPropagation()), E(t));
|
|
3500
|
-
},
|
|
3508
|
+
}, k = () => {
|
|
3501
3509
|
E(S);
|
|
3502
|
-
},
|
|
3510
|
+
}, ne = () => {
|
|
3503
3511
|
E(S);
|
|
3504
|
-
},
|
|
3505
|
-
return a ? (o.addEventListener("touchmove",
|
|
3506
|
-
o.removeEventListener("touchmove",
|
|
3507
|
-
})) : (o.addEventListener("mousemove", D,
|
|
3508
|
-
o.removeEventListener("mousemove", D), o.removeEventListener("mouseup",
|
|
3509
|
-
})), s && (s.addEventListener("blur",
|
|
3512
|
+
}, A = { passive: !1 };
|
|
3513
|
+
return a ? (o.addEventListener("touchmove", O, A), o.addEventListener("touchend", te, A), o.addEventListener("touchcancel", k), w.push(() => {
|
|
3514
|
+
o.removeEventListener("touchmove", O), o.removeEventListener("touchend", te), o.removeEventListener("touchcancel", k);
|
|
3515
|
+
})) : (o.addEventListener("mousemove", D, A), o.addEventListener("mouseup", ee, A), w.push(() => {
|
|
3516
|
+
o.removeEventListener("mousemove", D), o.removeEventListener("mouseup", ee);
|
|
3517
|
+
})), s && (s.addEventListener("blur", ne), w.push(() => s.removeEventListener("blur", ne))), n.setColumnResizing((e) => ({
|
|
3510
3518
|
...e,
|
|
3511
3519
|
startOffset: _,
|
|
3512
3520
|
startSize: u,
|
|
@@ -4041,7 +4049,7 @@ function _u({ footerContent: e, renderHeader: t = !0 }) {
|
|
|
4041
4049
|
r.tableLayout?.columnsResizable && !a ? /* @__PURE__ */ U(Kl, {}) : null
|
|
4042
4050
|
]
|
|
4043
4051
|
}, e.id)) }),
|
|
4044
|
-
t && (r.tableLayout?.stripped || !r.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4052
|
+
t && (r.tableLayout?.stripped || !r.tableLayout?.rowBorder) && !r.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4045
4053
|
/* @__PURE__ */ W(au, { children: [
|
|
4046
4054
|
/* @__PURE__ */ U(gu, { table: n }),
|
|
4047
4055
|
r.appendRow,
|
|
@@ -4240,29 +4248,29 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4240
4248
|
};
|
|
4241
4249
|
};
|
|
4242
4250
|
return [...i ?? [Xr], e];
|
|
4243
|
-
}, [i]), { estimateSize: D = 38, overscan:
|
|
4251
|
+
}, [i]), { estimateSize: D = 38, overscan: ee = 8, minRows: O = 1, scrollElementRef: te } = f ?? {}, k = m.getRowModel().rows.length, ne = f != null && k >= O, [A, re] = z(null);
|
|
4244
4252
|
I(() => {
|
|
4245
|
-
f && re(
|
|
4253
|
+
f && re(te?.current ?? yu(g.current));
|
|
4246
4254
|
}, [
|
|
4247
4255
|
f,
|
|
4248
|
-
|
|
4249
|
-
|
|
4256
|
+
te,
|
|
4257
|
+
ne
|
|
4250
4258
|
]);
|
|
4251
4259
|
let [j, M] = z(0);
|
|
4252
4260
|
I(() => {
|
|
4253
|
-
if (!
|
|
4261
|
+
if (!ne || !A || A.offsetHeight > 0) return;
|
|
4254
4262
|
let e, t = 0, n = () => {
|
|
4255
|
-
if (
|
|
4263
|
+
if (A.offsetHeight > 0) {
|
|
4256
4264
|
M((e) => e + 1);
|
|
4257
4265
|
return;
|
|
4258
4266
|
}
|
|
4259
4267
|
++t > 100 || (e = setTimeout(n, 120));
|
|
4260
4268
|
};
|
|
4261
4269
|
return e = setTimeout(n, 120), () => clearTimeout(e);
|
|
4262
|
-
}, [
|
|
4263
|
-
if (j > 0 &&
|
|
4270
|
+
}, [ne, A]), I(() => {
|
|
4271
|
+
if (j > 0 && A) {
|
|
4264
4272
|
re(null);
|
|
4265
|
-
let e = setTimeout(() => re(
|
|
4273
|
+
let e = setTimeout(() => re(A), 0);
|
|
4266
4274
|
return () => clearTimeout(e);
|
|
4267
4275
|
}
|
|
4268
4276
|
}, [j]);
|
|
@@ -4275,20 +4283,20 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4275
4283
|
}, []), [N, ae] = z(null), oe = R(null);
|
|
4276
4284
|
oe.current = N;
|
|
4277
4285
|
let se = $r({
|
|
4278
|
-
count:
|
|
4279
|
-
getScrollElement: () =>
|
|
4286
|
+
count: ne ? k : 0,
|
|
4287
|
+
getScrollElement: () => A,
|
|
4280
4288
|
getItemKey: (e) => String(t[e] ?? e),
|
|
4281
4289
|
estimateSize: () => D,
|
|
4282
|
-
overscan:
|
|
4290
|
+
overscan: ee,
|
|
4283
4291
|
measureElement: ie,
|
|
4284
4292
|
rangeExtractor: F((e) => bu(e, Zr, oe.current), [])
|
|
4285
4293
|
});
|
|
4286
4294
|
return I(() => {
|
|
4287
|
-
if (p) return p.current =
|
|
4295
|
+
if (p) return p.current = ne ? se : null, () => {
|
|
4288
4296
|
p.current = null;
|
|
4289
4297
|
};
|
|
4290
4298
|
}, [
|
|
4291
|
-
|
|
4299
|
+
ne,
|
|
4292
4300
|
se,
|
|
4293
4301
|
p
|
|
4294
4302
|
]), /* @__PURE__ */ W(Jn, {
|
|
@@ -4323,14 +4331,14 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4323
4331
|
}, t);
|
|
4324
4332
|
}), /* @__PURE__ */ U(Kl, {})]
|
|
4325
4333
|
}, t)) }),
|
|
4326
|
-
(h.tableLayout?.stripped || !h.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4334
|
+
(h.tableLayout?.stripped || !h.tableLayout?.rowBorder) && !h.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4327
4335
|
/* @__PURE__ */ U(au, { children: /* @__PURE__ */ U(Tu, {
|
|
4328
4336
|
table: m,
|
|
4329
4337
|
dataIds: t,
|
|
4330
4338
|
renderRowDecoration: o,
|
|
4331
4339
|
dropIndicator: s,
|
|
4332
4340
|
sortingStrategy: a,
|
|
4333
|
-
virtualWindow:
|
|
4341
|
+
virtualWindow: ne ? {
|
|
4334
4342
|
items: se.getVirtualItems(),
|
|
4335
4343
|
totalSize: se.getTotalSize(),
|
|
4336
4344
|
measureRowRef: (e) => se.measureElement(e)
|
|
@@ -4486,9 +4494,9 @@ function Iu({ children: e, className: t, orientation: n = "both", ...i }) {
|
|
|
4486
4494
|
if (a === 0 || o === 0) return;
|
|
4487
4495
|
let s = e.clientY - n.startY;
|
|
4488
4496
|
t.scrollTop = Mu(n.startScrollTop + s / a * o, 0, o);
|
|
4489
|
-
},
|
|
4497
|
+
}, ee = (e) => {
|
|
4490
4498
|
u.current?.pointerId === e.pointerId && x();
|
|
4491
|
-
},
|
|
4499
|
+
}, O = (e) => {
|
|
4492
4500
|
let { thumbHeight: t } = d.current;
|
|
4493
4501
|
if (e.target !== e.currentTarget) return;
|
|
4494
4502
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -4544,14 +4552,14 @@ function Iu({ children: e, className: t, orientation: n = "both", ...i }) {
|
|
|
4544
4552
|
className: "pointer-events-none absolute inset-e-0 top-(--data-grid-scrollbar-header-height) z-20 h-(--data-grid-scrollbar-track-height)",
|
|
4545
4553
|
children: /* @__PURE__ */ U("div", {
|
|
4546
4554
|
className: "pointer-events-auto relative h-full w-1.5 touch-none p-px",
|
|
4547
|
-
onPointerDown:
|
|
4555
|
+
onPointerDown: O,
|
|
4548
4556
|
children: /* @__PURE__ */ U("div", {
|
|
4549
4557
|
className: r("bg-border absolute end-px w-1.5", "top-(--data-grid-scrollbar-thumb-top) h-(--data-grid-scrollbar-thumb-height)", "rounded-full"),
|
|
4550
4558
|
onLostPointerCapture: x,
|
|
4551
|
-
onPointerCancel:
|
|
4559
|
+
onPointerCancel: ee,
|
|
4552
4560
|
onPointerDown: E,
|
|
4553
4561
|
onPointerMove: D,
|
|
4554
|
-
onPointerUp:
|
|
4562
|
+
onPointerUp: ee
|
|
4555
4563
|
})
|
|
4556
4564
|
})
|
|
4557
4565
|
})]
|
|
@@ -4723,31 +4731,31 @@ function Ju({ table: e, topRows: t, centerRows: n, bottomRows: r, virtualItems:
|
|
|
4723
4731
|
}
|
|
4724
4732
|
var Yu = Re(Ju, (e, t) => !!t.table.state.columnResizing.isResizingColumn || t.table._isSelectingCells === !0);
|
|
4725
4733
|
function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior: r = "auto", scrollToRowAlign: i = "auto", scrollToRowIndex: a, columnVirtualizerOptions: o, scrollToColumnAlign: s = "auto", scrollToColumnIndex: c, footerContent: l, renderHeader: u = !0, onFetchMore: d, isFetchingMore: f = !1, hasMore: p, fetchMoreOffset: m = 0, virtualizerOptions: h }) {
|
|
4726
|
-
let { i18n: g, table: _, props: v } = xl(), y = Hl(_), b = Ul(_), x = _.getCenterVisibleLeafColumns(), S = o?.enabled === !0 && v.tableLayout?.width !== "auto" && y.length === 1 && (y[0]?.headers.every((e) => e.colSpan <= 1) ?? !1), { topRows: C, centerRows: w, bottomRows: T } = Rl(_, v.tableLayout?.rowsPinnable), E = typeof d == "function", [D,
|
|
4734
|
+
let { i18n: g, table: _, props: v } = xl(), y = Hl(_), b = Ul(_), x = _.getCenterVisibleLeafColumns(), S = o?.enabled === !0 && v.tableLayout?.width !== "auto" && y.length === 1 && (y[0]?.headers.every((e) => e.colSpan <= 1) ?? !1), { topRows: C, centerRows: w, bottomRows: T } = Rl(_, v.tableLayout?.rowsPinnable), E = typeof d == "function", [D, ee] = z({
|
|
4727
4735
|
containerElement: null,
|
|
4728
4736
|
scrollElement: null
|
|
4729
|
-
}), { estimateSize:
|
|
4730
|
-
|
|
4737
|
+
}), { estimateSize: O, getItemKey: te, getScrollElement: k, measureElement: ne, overscan: A, ...re } = h ?? {}, j = h?.enabled !== !1, M = v.fetchingMoreMessage || v.loadingMessage || g.labels.loading, ie = v.allRowsLoadedMessage || g.labels.allRowsLoaded, N = F((e) => {
|
|
4738
|
+
ee({
|
|
4731
4739
|
containerElement: e,
|
|
4732
4740
|
scrollElement: e ? Nl(e) ?? e : null
|
|
4733
4741
|
});
|
|
4734
|
-
}, []), ae = D.scrollElement !== null && D.scrollElement !== D.containerElement, oe = F(() =>
|
|
4742
|
+
}, []), ae = D.scrollElement !== null && D.scrollElement !== D.containerElement, oe = F(() => k ? k(D) : D.scrollElement, [k, D]), se = F((e) => {
|
|
4735
4743
|
let t = w[e];
|
|
4736
|
-
return t ?
|
|
4737
|
-
}, [w,
|
|
4744
|
+
return t ? te?.(e, t) ?? t.id ?? e : e;
|
|
4745
|
+
}, [w, te]), ce = F((e) => {
|
|
4738
4746
|
let n = w[e];
|
|
4739
|
-
return n ?
|
|
4747
|
+
return n ? O?.(e, n) ?? t : t;
|
|
4740
4748
|
}, [
|
|
4741
4749
|
w,
|
|
4742
|
-
|
|
4750
|
+
O,
|
|
4743
4751
|
t
|
|
4744
4752
|
]), le = $r({
|
|
4745
4753
|
count: w.length,
|
|
4746
4754
|
getScrollElement: oe,
|
|
4747
4755
|
getItemKey: se,
|
|
4748
4756
|
estimateSize: ce,
|
|
4749
|
-
overscan:
|
|
4750
|
-
measureElement:
|
|
4757
|
+
overscan: A ?? n,
|
|
4758
|
+
measureElement: ne,
|
|
4751
4759
|
...re
|
|
4752
4760
|
}), ue = L(() => D.containerElement ? getComputedStyle(D.containerElement).direction === "rtl" : !1, [D.containerElement]), de = F((e) => x[e]?.id ?? e, [x]), fe = F((e) => x[e]?.getSize() ?? 0, [x]), pe = $r({
|
|
4753
4761
|
horizontal: !0,
|
|
@@ -4771,7 +4779,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4771
4779
|
let me = S ? pe.getVirtualItems() : [], he = S && me.length > 0 ? {
|
|
4772
4780
|
start: me[0].index,
|
|
4773
4781
|
end: me[me.length - 1].index
|
|
4774
|
-
} : void 0, ge = j ? le.getVirtualItems() : [], _e = j ? le.getTotalSize() : 0, ve = j &&
|
|
4782
|
+
} : void 0, ge = j ? le.getVirtualItems() : [], _e = j ? le.getTotalSize() : 0, ve = j && ne ? le.measureElement : void 0, ye = Math.max(0, m), be = a === void 0 ? void 0 : w[a]?.id, xe = j && a !== void 0 ? ge.find((e) => e.index === a) : void 0, Se = R(null), Ce = R(null), we = R(null), Te = R(null);
|
|
4775
4783
|
I(() => {
|
|
4776
4784
|
if (!S || c === void 0 || c < 0 || c >= x.length || !D.scrollElement) return;
|
|
4777
4785
|
let e = {
|
|
@@ -4931,7 +4939,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4931
4939
|
},
|
|
4932
4940
|
children: /* @__PURE__ */ W(Yl, { children: [
|
|
4933
4941
|
Ee,
|
|
4934
|
-
u && (v.tableLayout?.stripped || !v.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4942
|
+
u && (v.tableLayout?.stripped || !v.tableLayout?.rowBorder) && !v.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4935
4943
|
/* @__PURE__ */ W(au, { children: [
|
|
4936
4944
|
/* @__PURE__ */ U(Yu, {
|
|
4937
4945
|
table: _,
|
|
@@ -6821,7 +6829,7 @@ var Xd = (e, t) => {
|
|
|
6821
6829
|
operator: { type: t },
|
|
6822
6830
|
value: yf(t, e)
|
|
6823
6831
|
});
|
|
6824
|
-
}, [_]),
|
|
6832
|
+
}, [_]), ee = F((e) => {
|
|
6825
6833
|
let t = g.kind === "simple" ? g.value : null, n = (e) => t?.type === e, r = q(e).with(K.when((e) => mf.includes(e)), () => null).with("between", () => n("interval") ? t : yf(e, T)).with("in", "notIn", () => n("stringArray") || n("numberArray") ? t : yf(e, T)).with("dateAfter", "dateBefore", "dateSame", "dateSameOrAfter", "dateSameOrBefore", () => n("date") ? t : yf(e, T)).with("timeGt", "timeGte", "timeLt", "timeLte", () => n("time") ? t : yf(e, T)).with("dayOfWeekIn", "quarterIn", () => n("intArray") ? t : yf(e, T)).with("startsWith", "endsWith", "contains", () => n("string") ? t : yf(e, T)).otherwise(() => n(T === "number" ? "number" : T === "boolean" ? "boolean" : "string") ? t : yf(e, T));
|
|
6826
6834
|
_({
|
|
6827
6835
|
kind: "simple",
|
|
@@ -6832,12 +6840,12 @@ var Xd = (e, t) => {
|
|
|
6832
6840
|
g,
|
|
6833
6841
|
T,
|
|
6834
6842
|
_
|
|
6835
|
-
]),
|
|
6836
|
-
b(!1),
|
|
6837
|
-
}, [
|
|
6843
|
+
]), O = F((e) => {
|
|
6844
|
+
b(!1), ee(e);
|
|
6845
|
+
}, [ee, b]), te = {
|
|
6838
6846
|
kind: T,
|
|
6839
6847
|
operator: g.kind === "simple" ? g.operator.type : "eq",
|
|
6840
|
-
onSelect:
|
|
6848
|
+
onSelect: O,
|
|
6841
6849
|
onKindChange: h ? D : void 0,
|
|
6842
6850
|
onCustomToggle: x,
|
|
6843
6851
|
disabled: n
|
|
@@ -6847,7 +6855,7 @@ var Xd = (e, t) => {
|
|
|
6847
6855
|
className: "flex items-start gap-1 min-h-[var(--b-height)] text-[var(--b-font-size)] leading-[var(--b-line-height)]",
|
|
6848
6856
|
style: l,
|
|
6849
6857
|
children: [/* @__PURE__ */ U(xf, {
|
|
6850
|
-
...
|
|
6858
|
+
...te,
|
|
6851
6859
|
isCustom: !0
|
|
6852
6860
|
}), /* @__PURE__ */ U(qd, {
|
|
6853
6861
|
className: "min-w-[40px] flex-1 max-h-[var(--b-max-height)] overflow-y-auto",
|
|
@@ -6865,28 +6873,28 @@ var Xd = (e, t) => {
|
|
|
6865
6873
|
placeholder: w("expression.placeholder")
|
|
6866
6874
|
})]
|
|
6867
6875
|
});
|
|
6868
|
-
let
|
|
6876
|
+
let k = g.operator.type;
|
|
6869
6877
|
return /* @__PURE__ */ W("div", {
|
|
6870
6878
|
ref: s,
|
|
6871
6879
|
className: "flex items-start gap-1 min-h-[var(--b-height)] text-[var(--b-font-size)] leading-[var(--b-line-height)]",
|
|
6872
6880
|
style: l,
|
|
6873
6881
|
children: [/* @__PURE__ */ U(xf, {
|
|
6874
|
-
...
|
|
6875
|
-
operator:
|
|
6876
|
-
}), mf.includes(
|
|
6882
|
+
...te,
|
|
6883
|
+
operator: k
|
|
6884
|
+
}), mf.includes(k) ? k !== "any" && /* @__PURE__ */ U("span", {
|
|
6877
6885
|
className: "text-xs leading-[var(--b-height)] text-[var(--muted-foreground)]",
|
|
6878
|
-
children: df(
|
|
6886
|
+
children: df(k).label
|
|
6879
6887
|
}) : m ? /* @__PURE__ */ U(If, {
|
|
6880
6888
|
value: g.value,
|
|
6881
6889
|
onChange: v,
|
|
6882
|
-
operator:
|
|
6890
|
+
operator: k,
|
|
6883
6891
|
options: d,
|
|
6884
6892
|
loose: f,
|
|
6885
6893
|
disabled: n
|
|
6886
6894
|
}) : /* @__PURE__ */ U(Tf, {
|
|
6887
6895
|
value: g.value,
|
|
6888
6896
|
onChange: v,
|
|
6889
|
-
operator:
|
|
6897
|
+
operator: k,
|
|
6890
6898
|
kind: T,
|
|
6891
6899
|
disabled: n
|
|
6892
6900
|
})]
|
|
@@ -7344,7 +7352,6 @@ var Xd = (e, t) => {
|
|
|
7344
7352
|
});
|
|
7345
7353
|
}, lp = ({ value: e, onSubmit: t, onRemove: n, disabled: r, open: i, onOpenChange: a, triggerClassName: o, children: s, mode: c = "edit", trigger: l }) => /* @__PURE__ */ U(Vo, {
|
|
7346
7354
|
placement: "bottomLeft",
|
|
7347
|
-
overlayClassName: "z-[60]",
|
|
7348
7355
|
trigger: ["click"],
|
|
7349
7356
|
destroyTooltipOnHide: !0,
|
|
7350
7357
|
arrow: !1,
|
|
@@ -7412,16 +7419,16 @@ var Xd = (e, t) => {
|
|
|
7412
7419
|
className: "mb-1.5 block text-xs font-medium text-muted-foreground",
|
|
7413
7420
|
children: e
|
|
7414
7421
|
}), pp = ({ value: e, onChange: t, onRemove: n, disabled: r, variableType: i, inputData: a, referenceData: s, fieldType: c, mode: l = "edit", trigger: u, onCreate: d }) => {
|
|
7415
|
-
let f = Ac((e) => e.dictionaries) ?? {}, p = Ac((e) => e.mode) === "business", m = Ac((e) => e.inputVariableType), h = L(() => ed(m), [m]), g = L(() => ep(h), [h]), [_, v] = z(!1), [y, b] = z(!1), x = o(), [S, C] = z(""), [w, T] = z(e), [E, D] = z(c?.type ?? "any"),
|
|
7422
|
+
let f = Ac((e) => e.dictionaries) ?? {}, p = Ac((e) => e.mode) === "business", m = Ac((e) => e.inputVariableType), h = L(() => ed(m), [m]), g = L(() => ep(h), [h]), [_, v] = z(!1), [y, b] = z(!1), x = o(), [S, C] = z(""), [w, T] = z(e), [E, D] = z(c?.type ?? "any"), ee = c?.type === "string" ? c.enum : void 0, [O, te] = z(ap(ee)), [k, ne] = z(ee?.type === "inline" ? sp(ee.values) : ""), [A, re] = z(ee?.type === "ref" ? ee.ref : ""), [j, M] = z(ee?.loose ?? !1), ie = R(null), N = R(null);
|
|
7416
7423
|
I(() => {
|
|
7417
7424
|
if (y) {
|
|
7418
|
-
if (l === "create") C(""), T(""), D("any"),
|
|
7425
|
+
if (l === "create") C(""), T(""), D("any"), te("none"), ne(""), re(""), M(!1), setTimeout(() => {
|
|
7419
7426
|
ie.current?.codeMirror?.focus();
|
|
7420
7427
|
});
|
|
7421
7428
|
else {
|
|
7422
7429
|
T(e), D(c?.type ?? "any");
|
|
7423
7430
|
let t = c?.type === "string" ? c.enum : void 0;
|
|
7424
|
-
if (
|
|
7431
|
+
if (te(ap(t)), ne(t?.type === "inline" ? sp(t.values) : ""), re(t?.type === "ref" ? t.ref : ""), M(t?.loose ?? !1), !ie.current) return;
|
|
7425
7432
|
setTimeout(() => {
|
|
7426
7433
|
ie.current.codeMirror?.focus();
|
|
7427
7434
|
let e = ie.current.querySelector(".cm-content"), t = window.getSelection();
|
|
@@ -7435,16 +7442,16 @@ var Xd = (e, t) => {
|
|
|
7435
7442
|
if (E !== "any") {
|
|
7436
7443
|
if (E === "string") {
|
|
7437
7444
|
let e;
|
|
7438
|
-
if (
|
|
7439
|
-
let t = op(
|
|
7445
|
+
if (O === "inline") {
|
|
7446
|
+
let t = op(k);
|
|
7440
7447
|
t.length && (e = {
|
|
7441
7448
|
type: "inline",
|
|
7442
7449
|
values: t,
|
|
7443
7450
|
...j ? { loose: !0 } : {}
|
|
7444
7451
|
});
|
|
7445
|
-
} else
|
|
7452
|
+
} else O === "ref" && A && (e = {
|
|
7446
7453
|
type: "ref",
|
|
7447
|
-
ref:
|
|
7454
|
+
ref: A,
|
|
7448
7455
|
...j ? { loose: !0 } : {}
|
|
7449
7456
|
});
|
|
7450
7457
|
return {
|
|
@@ -7541,15 +7548,15 @@ var Xd = (e, t) => {
|
|
|
7541
7548
|
/* @__PURE__ */ U(fp, { children: "Enum" }),
|
|
7542
7549
|
/* @__PURE__ */ U(up, {
|
|
7543
7550
|
options: Object.keys(f).length ? ip : ip.filter((e) => e.value !== "ref"),
|
|
7544
|
-
value:
|
|
7545
|
-
onChange:
|
|
7551
|
+
value: O,
|
|
7552
|
+
onChange: te,
|
|
7546
7553
|
disabled: r
|
|
7547
7554
|
}),
|
|
7548
|
-
|
|
7555
|
+
O === "inline" && /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U(od, {
|
|
7549
7556
|
maxRows: 6,
|
|
7550
7557
|
placeholder: "United States;us\nCanada;ca\nMexico",
|
|
7551
|
-
value:
|
|
7552
|
-
onChange: (e) =>
|
|
7558
|
+
value: k,
|
|
7559
|
+
onChange: (e) => ne(e.target.value),
|
|
7553
7560
|
disabled: r,
|
|
7554
7561
|
className: "text-xs"
|
|
7555
7562
|
}), /* @__PURE__ */ W("span", {
|
|
@@ -7560,8 +7567,8 @@ var Xd = (e, t) => {
|
|
|
7560
7567
|
" format."
|
|
7561
7568
|
]
|
|
7562
7569
|
})] }),
|
|
7563
|
-
|
|
7564
|
-
value:
|
|
7570
|
+
O === "ref" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Zo, {
|
|
7571
|
+
value: A || void 0,
|
|
7565
7572
|
onChange: re,
|
|
7566
7573
|
placeholder: x("dt.field.selectDictionary"),
|
|
7567
7574
|
disabled: r,
|
|
@@ -7572,7 +7579,7 @@ var Xd = (e, t) => {
|
|
|
7572
7579
|
value: e
|
|
7573
7580
|
}))
|
|
7574
7581
|
}) }),
|
|
7575
|
-
|
|
7582
|
+
O !== "none" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Wa, {
|
|
7576
7583
|
checked: j,
|
|
7577
7584
|
onChange: (e) => M(e.target.checked),
|
|
7578
7585
|
disabled: r,
|
|
@@ -7591,21 +7598,21 @@ var Xd = (e, t) => {
|
|
|
7591
7598
|
}), hp = (e) => {
|
|
7592
7599
|
if (e && (e.type === "string" || e.type === "string-array")) return e.enum;
|
|
7593
7600
|
}, gp = ({ disabled: e, value: t, onChange: n, onRemove: r, fieldType: i, mode: a = "edit", trigger: s, onCreate: c }) => {
|
|
7594
|
-
let l = Ac((e) => e.dictionaries) ?? {}, u = Ac((e) => e.mode) === "business", [d, f] = z(!1), p = o(), [m, h] = z(""), [g, _] = z(t), [v, y] = z(i?.type ?? "auto"), b = hp(i), [x, S] = z(ap(b)), [C, w] = z(b?.type === "inline" ? sp(b.values) : ""), [T, E] = z(b?.type === "ref" ? b.ref : ""), [D,
|
|
7601
|
+
let l = Ac((e) => e.dictionaries) ?? {}, u = Ac((e) => e.mode) === "business", [d, f] = z(!1), p = o(), [m, h] = z(""), [g, _] = z(t), [v, y] = z(i?.type ?? "auto"), b = hp(i), [x, S] = z(ap(b)), [C, w] = z(b?.type === "inline" ? sp(b.values) : ""), [T, E] = z(b?.type === "ref" ? b.ref : ""), [D, ee] = z(b?.loose ?? !1), O = R(null), te = R(null);
|
|
7595
7602
|
I(() => {
|
|
7596
7603
|
if (d) {
|
|
7597
|
-
if (a === "create") h(""), _(""), y("auto"), S("none"), w(""), E(""),
|
|
7598
|
-
|
|
7604
|
+
if (a === "create") h(""), _(""), y("auto"), S("none"), w(""), E(""), ee(!1), setTimeout(() => {
|
|
7605
|
+
O.current?.focus();
|
|
7599
7606
|
});
|
|
7600
7607
|
else {
|
|
7601
7608
|
_(t), y(i?.type ?? "auto");
|
|
7602
7609
|
let e = hp(i);
|
|
7603
|
-
if (S(ap(e)), w(e?.type === "inline" ? sp(e.values) : ""), E(e?.type === "ref" ? e.ref : ""),
|
|
7604
|
-
|
|
7610
|
+
if (S(ap(e)), w(e?.type === "inline" ? sp(e.values) : ""), E(e?.type === "ref" ? e.ref : ""), ee(e?.loose ?? !1), !O.current) return;
|
|
7611
|
+
O.current.focus(), O.current.select();
|
|
7605
7612
|
}
|
|
7606
7613
|
}
|
|
7607
7614
|
}, [d]);
|
|
7608
|
-
let
|
|
7615
|
+
let k = v === "string" || v === "string-array", ne = () => {
|
|
7609
7616
|
if (!u) return i?.type === "auto" ? void 0 : i;
|
|
7610
7617
|
if (v !== "auto") {
|
|
7611
7618
|
if (v === "string" || v === "string-array") {
|
|
@@ -7633,7 +7640,7 @@ var Xd = (e, t) => {
|
|
|
7633
7640
|
return /* @__PURE__ */ W(lp, {
|
|
7634
7641
|
value: t,
|
|
7635
7642
|
onSubmit: () => {
|
|
7636
|
-
a === "create" ? c?.(m || "Output", g ?? "output",
|
|
7643
|
+
a === "create" ? c?.(m || "Output", g ?? "output", ne()) : n?.(g ?? "", ne()), f(!1);
|
|
7637
7644
|
},
|
|
7638
7645
|
onRemove: r,
|
|
7639
7646
|
disabled: e,
|
|
@@ -7646,7 +7653,7 @@ var Xd = (e, t) => {
|
|
|
7646
7653
|
/* @__PURE__ */ W("div", {
|
|
7647
7654
|
className: "space-y-1.5",
|
|
7648
7655
|
children: [/* @__PURE__ */ U(mp, { children: p("dt.field.output.label") }), /* @__PURE__ */ U(Do, {
|
|
7649
|
-
ref:
|
|
7656
|
+
ref: O,
|
|
7650
7657
|
value: g,
|
|
7651
7658
|
onChange: (e) => _(e.target.value),
|
|
7652
7659
|
readOnly: e,
|
|
@@ -7656,7 +7663,7 @@ var Xd = (e, t) => {
|
|
|
7656
7663
|
a === "create" && /* @__PURE__ */ W("div", {
|
|
7657
7664
|
className: "space-y-1.5",
|
|
7658
7665
|
children: [/* @__PURE__ */ U(mp, { children: "Label" }), /* @__PURE__ */ U(Do, {
|
|
7659
|
-
ref:
|
|
7666
|
+
ref: te,
|
|
7660
7667
|
value: m,
|
|
7661
7668
|
onChange: (e) => h(e.target.value),
|
|
7662
7669
|
placeholder: p("dt.field.label"),
|
|
@@ -7673,7 +7680,7 @@ var Xd = (e, t) => {
|
|
|
7673
7680
|
disabled: e
|
|
7674
7681
|
})]
|
|
7675
7682
|
}),
|
|
7676
|
-
u &&
|
|
7683
|
+
u && k && /* @__PURE__ */ W("div", {
|
|
7677
7684
|
className: "space-y-2",
|
|
7678
7685
|
children: [
|
|
7679
7686
|
/* @__PURE__ */ U(mp, { children: "Enum" }),
|
|
@@ -7712,7 +7719,7 @@ var Xd = (e, t) => {
|
|
|
7712
7719
|
}) }),
|
|
7713
7720
|
x !== "none" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Wa, {
|
|
7714
7721
|
checked: D,
|
|
7715
|
-
onChange: (e) =>
|
|
7722
|
+
onChange: (e) => ee(e.target.checked),
|
|
7716
7723
|
disabled: e,
|
|
7717
7724
|
children: /* @__PURE__ */ U("span", {
|
|
7718
7725
|
className: "text-xs",
|
|
@@ -7998,7 +8005,7 @@ var Xd = (e, t) => {
|
|
|
7998
8005
|
return r === e.toLowerCase() || r === t.toLowerCase();
|
|
7999
8006
|
});
|
|
8000
8007
|
a && (r.excelHeaderId = a.id), l((e) => [...e, r]);
|
|
8001
|
-
}, [c, v]),
|
|
8008
|
+
}, [c, v]), ee = F((e, t, n) => {
|
|
8002
8009
|
let r = {
|
|
8003
8010
|
id: crypto.randomUUID(),
|
|
8004
8011
|
name: e,
|
|
@@ -8011,7 +8018,7 @@ var Xd = (e, t) => {
|
|
|
8011
8018
|
return r === e.toLowerCase() || r === t.toLowerCase();
|
|
8012
8019
|
});
|
|
8013
8020
|
a && (r.excelHeaderId = a.id), l((e) => [...e, r]);
|
|
8014
|
-
}, [c, v]),
|
|
8021
|
+
}, [c, v]), O = F(() => {
|
|
8015
8022
|
i && t(yp({
|
|
8016
8023
|
spreadSheetData: i,
|
|
8017
8024
|
columns: c,
|
|
@@ -8028,12 +8035,12 @@ var Xd = (e, t) => {
|
|
|
8028
8035
|
g,
|
|
8029
8036
|
m,
|
|
8030
8037
|
t
|
|
8031
|
-
]),
|
|
8038
|
+
]), te = /* @__PURE__ */ U(Y, {
|
|
8032
8039
|
type: "text",
|
|
8033
8040
|
size: "small",
|
|
8034
8041
|
icon: /* @__PURE__ */ U(sn, {}),
|
|
8035
8042
|
children: "Add Input"
|
|
8036
|
-
}),
|
|
8043
|
+
}), k = /* @__PURE__ */ U(Y, {
|
|
8037
8044
|
type: "text",
|
|
8038
8045
|
size: "small",
|
|
8039
8046
|
icon: /* @__PURE__ */ U(sn, {}),
|
|
@@ -8045,7 +8052,7 @@ var Xd = (e, t) => {
|
|
|
8045
8052
|
centered: !0,
|
|
8046
8053
|
open: !!i,
|
|
8047
8054
|
okButtonProps: { disabled: C },
|
|
8048
|
-
onOk:
|
|
8055
|
+
onOk: O,
|
|
8049
8056
|
onCancel: n,
|
|
8050
8057
|
destroyOnClose: !0,
|
|
8051
8058
|
width: 900,
|
|
@@ -8068,7 +8075,7 @@ var Xd = (e, t) => {
|
|
|
8068
8075
|
mode: "create",
|
|
8069
8076
|
variableType: s,
|
|
8070
8077
|
onCreate: D,
|
|
8071
|
-
trigger:
|
|
8078
|
+
trigger: te
|
|
8072
8079
|
})]
|
|
8073
8080
|
}),
|
|
8074
8081
|
/* @__PURE__ */ U("div", {
|
|
@@ -8116,8 +8123,8 @@ var Xd = (e, t) => {
|
|
|
8116
8123
|
children: "Outputs"
|
|
8117
8124
|
}), /* @__PURE__ */ U(gp, {
|
|
8118
8125
|
mode: "create",
|
|
8119
|
-
onCreate:
|
|
8120
|
-
trigger:
|
|
8126
|
+
onCreate: ee,
|
|
8127
|
+
trigger: k
|
|
8121
8128
|
})]
|
|
8122
8129
|
}),
|
|
8123
8130
|
/* @__PURE__ */ U("div", {
|
|
@@ -9075,7 +9082,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9075
9082
|
if ((e.metaKey || e.ctrlKey) && !e.altKey && t) {
|
|
9076
9083
|
let t = e.key === "c" || e.key === "C" || e.code === "KeyC", n = e.key === "x" || e.key === "X" || e.code === "KeyX";
|
|
9077
9084
|
if (t || n) {
|
|
9078
|
-
e.preventDefault(),
|
|
9085
|
+
e.preventDefault(), ee().then((e) => {
|
|
9079
9086
|
if (!e || (r.props.onCellsCopy?.({
|
|
9080
9087
|
...e,
|
|
9081
9088
|
cut: n
|
|
@@ -9179,7 +9186,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9179
9186
|
return;
|
|
9180
9187
|
}
|
|
9181
9188
|
e.key === " " && i.getFocusedCell() && e.preventDefault();
|
|
9182
|
-
},
|
|
9189
|
+
}, ee = async () => {
|
|
9183
9190
|
let e = Lp(p(), f);
|
|
9184
9191
|
if (!e) return null;
|
|
9185
9192
|
let t = Tp(e);
|
|
@@ -9208,7 +9215,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9208
9215
|
text: t,
|
|
9209
9216
|
grid: e
|
|
9210
9217
|
} : null;
|
|
9211
|
-
},
|
|
9218
|
+
}, O = (e, t) => {
|
|
9212
9219
|
let n = Lp(p(), f);
|
|
9213
9220
|
if (!n || !e.clipboardData) return !1;
|
|
9214
9221
|
e.preventDefault();
|
|
@@ -9218,15 +9225,15 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9218
9225
|
grid: n,
|
|
9219
9226
|
cut: t
|
|
9220
9227
|
}), !0;
|
|
9221
|
-
},
|
|
9222
|
-
Up(e.target) ||
|
|
9223
|
-
},
|
|
9224
|
-
if (Up(e.target) || !
|
|
9228
|
+
}, te = (e) => {
|
|
9229
|
+
Up(e.target) || O(e, !1);
|
|
9230
|
+
}, k = (e) => {
|
|
9231
|
+
if (Up(e.target) || !O(e, !0)) return;
|
|
9225
9232
|
let t = m();
|
|
9226
9233
|
if (!t) return;
|
|
9227
9234
|
let n = Rp(p(), "cut", !0, f);
|
|
9228
9235
|
n && t(n);
|
|
9229
|
-
},
|
|
9236
|
+
}, ne = (e) => {
|
|
9230
9237
|
if (Up(e.target)) return;
|
|
9231
9238
|
let t = m();
|
|
9232
9239
|
if (!t) return;
|
|
@@ -9235,16 +9242,16 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9235
9242
|
e.preventDefault();
|
|
9236
9243
|
let r = p(), i = zp(r, Ep(n), f);
|
|
9237
9244
|
i && (t(i.details), h() && Bp(r, i.target));
|
|
9238
|
-
},
|
|
9239
|
-
if (
|
|
9245
|
+
}, A = !1, re = (e) => !(e instanceof Element) || e.closest("[data-cell-interactive]") || e.closest("[role=\"checkbox\"], input[type=\"checkbox\"]") ? null : e.closest("[data-cell-control]") || e.closest("button, a, select, input, textarea, [contenteditable], [role=\"combobox\"]"), j = (e) => {
|
|
9246
|
+
if (A = !1, e.button !== 0 || e.shiftKey || e.ctrlKey || e.metaKey || r.props.tableLayout?.cellEditMode === "click") return;
|
|
9240
9247
|
let t = re(e.target), n = t?.closest("td[data-col-id]");
|
|
9241
9248
|
if (!t || !n || !f.contains(n) || n.hasAttribute("data-cell-focused")) return;
|
|
9242
9249
|
let i = p().getColumn(n.getAttribute("data-col-id") ?? "");
|
|
9243
|
-
i && i.columnDef.enableCellSelection !== !1 && (
|
|
9250
|
+
i && i.columnDef.enableCellSelection !== !1 && (A = !0, e.stopPropagation());
|
|
9244
9251
|
}, M = (e) => {
|
|
9245
|
-
|
|
9252
|
+
A && (A = !1, e.preventDefault(), e.stopPropagation());
|
|
9246
9253
|
}, ie = (e) => {
|
|
9247
|
-
if (!
|
|
9254
|
+
if (!A) return;
|
|
9248
9255
|
e.stopPropagation(), e.preventDefault();
|
|
9249
9256
|
let t = e.target?.closest?.("td[data-col-id]"), n = t?.closest("tr[data-row-id]")?.getAttribute("data-row-id"), r = t?.getAttribute("data-col-id");
|
|
9250
9257
|
if (!n || !r) return;
|
|
@@ -9274,7 +9281,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9274
9281
|
}, ue = (e) => {
|
|
9275
9282
|
Wp(e.target) || (e.target?.closest?.("td"))?.hasAttribute("data-cell-focused") && b();
|
|
9276
9283
|
}, de = g.getAttribute("tabindex"), fe = g.style.outline;
|
|
9277
|
-
n && (g.tabIndex = 0, g.style.outline = "none", f.addEventListener("keydown", D)), t && (f.addEventListener("copy",
|
|
9284
|
+
n && (g.tabIndex = 0, g.style.outline = "none", f.addEventListener("keydown", D)), t && (f.addEventListener("copy", te), f.addEventListener("cut", k), f.addEventListener("paste", ne)), f.addEventListener("pointerdown", j), f.addEventListener("mousedown", ie), f.addEventListener("click", M), f.addEventListener("mousedown", ce), f.addEventListener("click", le), f.addEventListener("dblclick", ue), f.ownerDocument.addEventListener("mouseup", se);
|
|
9278
9285
|
let pe = (e) => ({
|
|
9279
9286
|
minRowIndex: e.minRowIndex,
|
|
9280
9287
|
maxRowIndex: e.maxRowIndex,
|
|
@@ -9295,7 +9302,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9295
9302
|
});
|
|
9296
9303
|
});
|
|
9297
9304
|
return o(f), () => {
|
|
9298
|
-
n && (de === null ? g.removeAttribute("tabindex") : g.setAttribute("tabindex", de), g.style.outline = fe, g.removeAttribute("aria-activedescendant"), f.removeEventListener("keydown", D)), t && (f.removeEventListener("copy",
|
|
9305
|
+
n && (de === null ? g.removeAttribute("tabindex") : g.setAttribute("tabindex", de), g.style.outline = fe, g.removeAttribute("aria-activedescendant"), f.removeEventListener("keydown", D)), t && (f.removeEventListener("copy", te), f.removeEventListener("cut", k), f.removeEventListener("paste", ne)), f.removeEventListener("pointerdown", j), f.removeEventListener("mousedown", ie), f.removeEventListener("click", M), f.removeEventListener("mousedown", ce), f.removeEventListener("click", le), f.removeEventListener("dblclick", ue), f.ownerDocument.removeEventListener("mouseup", se), f.removeAttribute("data-cell-selecting"), me?.unsubscribe(), clearTimeout(x), e && (e.current = null), o(null), c(null);
|
|
9299
9306
|
};
|
|
9300
9307
|
}, [
|
|
9301
9308
|
u,
|
|
@@ -10213,7 +10220,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10213
10220
|
})), { cellUndoLen: x, cellRedoLen: S } = Ac(({ cellUndoStack: e, cellRedoStack: t }) => ({
|
|
10214
10221
|
cellUndoLen: e.length,
|
|
10215
10222
|
cellRedoLen: t.length
|
|
10216
|
-
})), [C, w] = z(0), T = R(null), { rules: E } = Ac(({ decisionTable: e }) => ({ rules: e.rules }), (e, t) => (0, Sc.default)(e.rules.map((e) => e?._id), t.rules.map((e) => e?._id))), D = q(y?.trace.traceData).with(K.array(), (e) => e?.[b]?.rule?._id).otherwise((e) => e?.rule?._id),
|
|
10223
|
+
})), [C, w] = z(0), T = R(null), { rules: E } = Ac(({ decisionTable: e }) => ({ rules: e.rules }), (e, t) => (0, Sc.default)(e.rules.map((e) => e?._id), t.rules.map((e) => e?._id))), D = q(y?.trace.traceData).with(K.array(), (e) => e?.[b]?.rule?._id).otherwise((e) => e?.rule?._id), ee = P.useMemo(() => [
|
|
10217
10224
|
{
|
|
10218
10225
|
id: "__index",
|
|
10219
10226
|
header: () => null,
|
|
@@ -10295,26 +10302,26 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10295
10302
|
h,
|
|
10296
10303
|
_,
|
|
10297
10304
|
g
|
|
10298
|
-
]), [
|
|
10305
|
+
]), [O, te] = z([]), k = Yr({
|
|
10299
10306
|
data: E,
|
|
10300
10307
|
features: bm,
|
|
10301
10308
|
columnResizeMode: "onChange",
|
|
10302
10309
|
getRowId: (e) => e._id,
|
|
10303
|
-
columns:
|
|
10310
|
+
columns: ee,
|
|
10304
10311
|
defaultColumn: { cell: (e) => /* @__PURE__ */ U(am, { context: e }) },
|
|
10305
10312
|
meta: { getCell: l },
|
|
10306
10313
|
state: {
|
|
10307
|
-
cellSelection:
|
|
10314
|
+
cellSelection: O,
|
|
10308
10315
|
...e ? { columnSizing: u } : {}
|
|
10309
10316
|
},
|
|
10310
|
-
onCellSelectionChange:
|
|
10317
|
+
onCellSelectionChange: te,
|
|
10311
10318
|
initialState: { columnVisibility: ym(e) },
|
|
10312
10319
|
...e ? { onColumnSizingChange: d } : {}
|
|
10313
10320
|
});
|
|
10314
10321
|
I(() => {
|
|
10315
|
-
let e =
|
|
10322
|
+
let e = O[O.length - 1];
|
|
10316
10323
|
if (!e) return;
|
|
10317
|
-
let t =
|
|
10324
|
+
let t = k.getRow(e.focusRowId);
|
|
10318
10325
|
if (!t) return;
|
|
10319
10326
|
let n = e.focusColumnId === "__index" ? "id" : e.focusColumnId;
|
|
10320
10327
|
(v?.y !== t.index || v?.x !== n) && a.setCursor({
|
|
@@ -10322,19 +10329,19 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10322
10329
|
y: t.index
|
|
10323
10330
|
});
|
|
10324
10331
|
}, [
|
|
10332
|
+
O,
|
|
10325
10333
|
k,
|
|
10326
|
-
A,
|
|
10327
10334
|
v?.x,
|
|
10328
10335
|
v?.y,
|
|
10329
10336
|
a
|
|
10330
10337
|
]);
|
|
10331
|
-
let
|
|
10338
|
+
let ne = L(() => E.map((e) => e._id), [E]), A = F((e) => {
|
|
10332
10339
|
let { active: t, over: n } = e;
|
|
10333
10340
|
if (t && n && t.id !== n.id) {
|
|
10334
|
-
let e =
|
|
10341
|
+
let e = ne.indexOf(String(t.id)), r = ne.indexOf(String(n.id));
|
|
10335
10342
|
e >= 0 && r >= 0 && a.swapRows(e, r);
|
|
10336
10343
|
}
|
|
10337
|
-
}, [
|
|
10344
|
+
}, [ne, a]), re = F((e) => e?._diff?.status === "added" ? "new" : e?._diff?.status === "removed" ? "deleted" : e?._diff?.status === "modified" ? "dirty" : void 0, []), j = F((e, t) => V(!p && v?.y === t && "bg-[var(--seal-color-primary-bg-fade)]!", !e?._diff?.status && D && e?._id === D && "bg-[var(--seal-color-success-bg)]!", !e?._diff?.status && p && "bg-black/[0.02]"), [
|
|
10338
10345
|
v?.y,
|
|
10339
10346
|
D,
|
|
10340
10347
|
p
|
|
@@ -10438,7 +10445,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10438
10445
|
},
|
|
10439
10446
|
onKeyDown: oe,
|
|
10440
10447
|
children: /* @__PURE__ */ W(Cl, {
|
|
10441
|
-
table:
|
|
10448
|
+
table: k,
|
|
10442
10449
|
recordCount: E.length,
|
|
10443
10450
|
i18n: c,
|
|
10444
10451
|
getRowStatus: re,
|
|
@@ -10470,8 +10477,8 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10470
10477
|
},
|
|
10471
10478
|
children: [
|
|
10472
10479
|
/* @__PURE__ */ U(Xp, { children: /* @__PURE__ */ U(Eu, {
|
|
10473
|
-
handleDragEnd:
|
|
10474
|
-
dataIds:
|
|
10480
|
+
handleDragEnd: A,
|
|
10481
|
+
dataIds: ne,
|
|
10475
10482
|
virtual: ae,
|
|
10476
10483
|
virtualizerRef: N
|
|
10477
10484
|
}) }),
|
|
@@ -10509,7 +10516,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10509
10516
|
children: s("dt.cellsSkipped", { count: C })
|
|
10510
10517
|
}),
|
|
10511
10518
|
/* @__PURE__ */ U(Jp, {
|
|
10512
|
-
table:
|
|
10519
|
+
table: k,
|
|
10513
10520
|
onColumnVisibilityChange: (t) => {
|
|
10514
10521
|
e && localStorage.setItem(vm(e), JSON.stringify(t));
|
|
10515
10522
|
},
|
|
@@ -10681,7 +10688,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10681
10688
|
if (r.examples.length === 0) return null;
|
|
10682
10689
|
let i = d(n.content);
|
|
10683
10690
|
return r.examples.map((e, t) => {
|
|
10684
|
-
let n =
|
|
10691
|
+
let n = k(O(e.data, i), i);
|
|
10685
10692
|
return {
|
|
10686
10693
|
name: e.name.trim() || `#${t + 1}`,
|
|
10687
10694
|
input: n
|
|
@@ -11801,9 +11808,9 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11801
11808
|
nodeTrace: q(t).with({ result: K._ }, ({ result: t }) => t?.trace?.[e]).otherwise(() => null),
|
|
11802
11809
|
nodeError: t?.error?.data?.nodeId === e ? t.error : null,
|
|
11803
11810
|
compactMode: r
|
|
11804
|
-
})), { diff: E } = ih(e), D = i.renderSettings,
|
|
11811
|
+
})), { diff: E } = ih(e), D = i.renderSettings, ee = () => {
|
|
11805
11812
|
y(g !== 0 || !v), _(0);
|
|
11806
|
-
},
|
|
11813
|
+
}, O = () => x.confirm({
|
|
11807
11814
|
icon: null,
|
|
11808
11815
|
title: p("dg.node.deleteNode"),
|
|
11809
11816
|
content: /* @__PURE__ */ W(Z.Text, { children: [
|
|
@@ -11816,7 +11823,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11816
11823
|
] }),
|
|
11817
11824
|
okButtonProps: { danger: !0 },
|
|
11818
11825
|
onOk: () => b.removeNodes([e])
|
|
11819
|
-
}),
|
|
11826
|
+
}), te = [
|
|
11820
11827
|
i.documentationUrl ? {
|
|
11821
11828
|
key: "documentation",
|
|
11822
11829
|
label: /* @__PURE__ */ U(Yp, {
|
|
@@ -11858,7 +11865,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11858
11865
|
right: Ih.shortcut("Backspace")
|
|
11859
11866
|
}),
|
|
11860
11867
|
disabled: w,
|
|
11861
|
-
onClick:
|
|
11868
|
+
onClick: O
|
|
11862
11869
|
}
|
|
11863
11870
|
].filter((e) => e !== null && e !== !1);
|
|
11864
11871
|
return /* @__PURE__ */ W("div", {
|
|
@@ -11888,7 +11895,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11888
11895
|
className: "h-6 w-6 p-0",
|
|
11889
11896
|
"aria-label": p("spec.common.settings"),
|
|
11890
11897
|
icon: /* @__PURE__ */ U(el, {}),
|
|
11891
|
-
onClick:
|
|
11898
|
+
onClick: ee
|
|
11892
11899
|
}),
|
|
11893
11900
|
/* @__PURE__ */ U(Y, {
|
|
11894
11901
|
type: "text",
|
|
@@ -11914,7 +11921,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11914
11921
|
"aria-label": p("node.delete"),
|
|
11915
11922
|
disabled: w,
|
|
11916
11923
|
icon: /* @__PURE__ */ U(rl, {}),
|
|
11917
|
-
onClick:
|
|
11924
|
+
onClick: O
|
|
11918
11925
|
})
|
|
11919
11926
|
]
|
|
11920
11927
|
})
|
|
@@ -11926,7 +11933,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11926
11933
|
...typeof t == "boolean" ? {} : t
|
|
11927
11934
|
}),
|
|
11928
11935
|
/* @__PURE__ */ U(Gh, {
|
|
11929
|
-
menuItems:
|
|
11936
|
+
menuItems: te,
|
|
11930
11937
|
...d,
|
|
11931
11938
|
disabled: w,
|
|
11932
11939
|
icon: i.icon,
|
|
@@ -11941,7 +11948,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11941
11948
|
actions: D ? [...u ?? [], /* @__PURE__ */ U(Y, {
|
|
11942
11949
|
type: "text",
|
|
11943
11950
|
style: { marginLeft: "auto" },
|
|
11944
|
-
onClick:
|
|
11951
|
+
onClick: ee,
|
|
11945
11952
|
children: "Settings"
|
|
11946
11953
|
}, "settings")] : u,
|
|
11947
11954
|
status: q([
|
|
@@ -14064,7 +14071,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14064
14071
|
type: "object",
|
|
14065
14072
|
properties: {}
|
|
14066
14073
|
} : null;
|
|
14067
|
-
i(t ?
|
|
14074
|
+
i(t ? A(t) : "");
|
|
14068
14075
|
return;
|
|
14069
14076
|
}
|
|
14070
14077
|
i(D(r, t));
|
|
@@ -14102,7 +14109,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14102
14109
|
updateDefinitionName: (e, t) => {
|
|
14103
14110
|
let n = o[e];
|
|
14104
14111
|
if (!n) return;
|
|
14105
|
-
let r =
|
|
14112
|
+
let r = ne(t);
|
|
14106
14113
|
if (o.some((e) => e.parentPath === n.path) && !r) return;
|
|
14107
14114
|
let i = r ? t_(n.parentPath, r) : n_(n.parentPath, n.id), a = o.map((e) => {
|
|
14108
14115
|
if (e.path !== n.path && !e.path.startsWith(`${n.path}.`)) return e;
|
|
@@ -14148,18 +14155,18 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14148
14155
|
getDefinitionTypeLabel: (e) => _.find((t) => t.value === e)?.label ?? e
|
|
14149
14156
|
};
|
|
14150
14157
|
}, s_ = ({ id: e, content: t, t: n, graphActions: r, panels: i, activeGraphTabId: a, simulatorExampleBinding: o, nodeName: s, definitionDrafts: c }) => {
|
|
14151
|
-
let l = R(null), d = R(null), [f, p] = z(0), [h, g] = z(null), [v, y] = z({}), [S, D] = z({}), [
|
|
14158
|
+
let l = R(null), d = R(null), [f, p] = z(0), [h, g] = z(null), [v, y] = z({}), [S, D] = z({}), [ne, A] = z({}), re = L(() => w(t).contract, [
|
|
14152
14159
|
t?.schema,
|
|
14153
14160
|
t?.schemaUI,
|
|
14154
14161
|
t?.inputs,
|
|
14155
14162
|
t?.inputContract
|
|
14156
|
-
]), j = L(() => m(re.schema), [re.schema]), M = L(() => fe(re, { dataLabel: n("request.dataLabel") }), [re, n]), ie = (e) => u(e, n("request.dataLabel")), N = M[f] ?? null, ae = F((e, t = c) =>
|
|
14163
|
+
]), j = L(() => m(re.schema), [re.schema]), M = L(() => fe(re, { dataLabel: n("request.dataLabel") }), [re, n]), ie = (e) => u(e, n("request.dataLabel")), N = M[f] ?? null, ae = F((e, t = c) => k(oe(e) ? e : {}, t), [c]), se = F((e) => k(O(oe(e) ? e : {}, c), c), [c]), ce = L(() => N ? O(N.data, c) : null, [N, c]), le = L(() => N ? v[N.id] ?? De(ce) : "", [
|
|
14157
14164
|
N,
|
|
14158
14165
|
v,
|
|
14159
14166
|
ce
|
|
14160
|
-
]), ue = L(() => N ?
|
|
14167
|
+
]), ue = L(() => N ? ne[N.id] ?? N.description ?? "" : "", [N, ne]), pe = L(() => {
|
|
14161
14168
|
if (!N || !ce) return null;
|
|
14162
|
-
let e = c.filter((e) => e.name.trim() && e.path.trim()), t =
|
|
14169
|
+
let e = c.filter((e) => e.name.trim() && e.path.trim()), t = te(ce, e), n = e.filter((e) => T(ce, e.path.trim()) === void 0), r = E(ce), i = e.map((e) => e.path.trim());
|
|
14163
14170
|
return {
|
|
14164
14171
|
definitions: e,
|
|
14165
14172
|
conflicts: t,
|
|
@@ -14173,7 +14180,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14173
14180
|
]), [me, he] = z({});
|
|
14174
14181
|
I(() => {
|
|
14175
14182
|
let e = !1;
|
|
14176
|
-
return
|
|
14183
|
+
return ee(re.examples.map((e) => e.data), re.schema).then((t) => {
|
|
14177
14184
|
if (e) return;
|
|
14178
14185
|
let n = {};
|
|
14179
14186
|
re.examples.forEach((e, r) => {
|
|
@@ -14301,7 +14308,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14301
14308
|
M.forEach((e) => {
|
|
14302
14309
|
y((t) => {
|
|
14303
14310
|
if (S[e.id] === !0) return t;
|
|
14304
|
-
let n = De(
|
|
14311
|
+
let n = De(O(e.data, c));
|
|
14305
14312
|
return t[e.id] === n ? t : {
|
|
14306
14313
|
...t,
|
|
14307
14314
|
[e.id]: n
|
|
@@ -14443,14 +14450,14 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14443
14450
|
}));
|
|
14444
14451
|
}, Pe = (e) => {
|
|
14445
14452
|
let t = d.current ?? N?.id;
|
|
14446
|
-
t &&
|
|
14453
|
+
t && A((n) => ({
|
|
14447
14454
|
...n,
|
|
14448
14455
|
[t]: e
|
|
14449
14456
|
}));
|
|
14450
14457
|
}, Fe = () => {
|
|
14451
14458
|
let e = d.current ?? N?.id;
|
|
14452
14459
|
if (!e) return;
|
|
14453
|
-
let t = M.find((t) => t.id === e), n =
|
|
14460
|
+
let t = M.find((t) => t.id === e), n = ne[e] ?? t?.description ?? "";
|
|
14454
14461
|
if (n === (t?.description ?? "")) return;
|
|
14455
14462
|
let r = M.findIndex((t) => t.id === e), i = M.map((t) => t.id === e ? {
|
|
14456
14463
|
...t,
|
|
@@ -14461,7 +14468,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14461
14468
|
let e = M, t = [...e, {
|
|
14462
14469
|
id: crypto.randomUUID(),
|
|
14463
14470
|
name: ie(e.length),
|
|
14464
|
-
data:
|
|
14471
|
+
data: k(b(c), c),
|
|
14465
14472
|
source: "schema.examples"
|
|
14466
14473
|
}];
|
|
14467
14474
|
P(t, t.length - 1);
|
|
@@ -14552,7 +14559,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14552
14559
|
n?.inputs,
|
|
14553
14560
|
n?.inputContract
|
|
14554
14561
|
]), s = o.schema, l = L(() => {
|
|
14555
|
-
let e =
|
|
14562
|
+
let e = A(o.schema);
|
|
14556
14563
|
return e === "{}" ? "" : e;
|
|
14557
14564
|
}, [o.schema]), u = l, [d, p] = z(u), [m, h] = z(!1), g = R(d), v = R(u), y = R(null), b = R(/* @__PURE__ */ new Set()), x = R(s), S = R(e), C = R(null), T = (e, t) => {
|
|
14558
14565
|
y.current = e, g.current = e, p(e), t?.dirty !== void 0 && h(t.dirty);
|
|
@@ -14614,7 +14621,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14614
14621
|
let e = g.current;
|
|
14615
14622
|
if (!e.trim()) {
|
|
14616
14623
|
C.current = null;
|
|
14617
|
-
let e =
|
|
14624
|
+
let e = A(x.current);
|
|
14618
14625
|
e.trim() && e !== "{}" && (C.current = "", E("")), T("", { dirty: !1 });
|
|
14619
14626
|
return;
|
|
14620
14627
|
}
|
|
@@ -14641,7 +14648,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14641
14648
|
simulatorExampleBinding: s,
|
|
14642
14649
|
fixturesRunner: c,
|
|
14643
14650
|
fixturesRun: l
|
|
14644
|
-
})), E = h ?? !1, { contract: D, sourceSchemaValue:
|
|
14651
|
+
})), E = h ?? !1, { contract: D, sourceSchemaValue: ee, schemaDraft: O, jsonToJsonSchemaOpen: te, setJsonToJsonSchemaOpen: k, updateNodeSchema: ne, handleSchemaDraftChange: A, commitSchemaDraft: re, handleConvertToJsonSchemaSuccess: j } = c_({
|
|
14645
14652
|
id: e,
|
|
14646
14653
|
type: t,
|
|
14647
14654
|
content: g,
|
|
@@ -14650,8 +14657,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14650
14657
|
id: e,
|
|
14651
14658
|
content: g,
|
|
14652
14659
|
t: n,
|
|
14653
|
-
sourceSchemaValue:
|
|
14654
|
-
updateNodeSchema:
|
|
14660
|
+
sourceSchemaValue: ee,
|
|
14661
|
+
updateNodeSchema: ne
|
|
14655
14662
|
}), { exampleSources: he, exampleDriftStates: ge, activeSourceIndex: _e, setActiveSourceIndex: ve, activeSource: ye, activeExampleJsonDraft: be, activeDescriptionDraft: xe, exampleFieldSummary: Se, fileInputRef: Ce, addExampleSource: we, removeExampleSource: Te, persistExamples: Ee, migrateExample: De, migrateAllExamples: Oe, confirmExampleValid: ke, handleExampleJsonChange: Ae, commitExampleJson: je, handleDescriptionChange: Me, commitDescription: Ne, handleUploadJson: Pe, handleDownloadJson: Fe, openSimulatorPanel: Ie, syncExampleToSimulator: Le } = s_({
|
|
14656
14663
|
id: e,
|
|
14657
14664
|
content: g,
|
|
@@ -14665,13 +14672,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14665
14672
|
});
|
|
14666
14673
|
Vg(e, {
|
|
14667
14674
|
activeTab: i,
|
|
14668
|
-
schemaDraft:
|
|
14675
|
+
schemaDraft: O,
|
|
14669
14676
|
activeSourceIndex: _e,
|
|
14670
14677
|
activeExampleJsonDraft: be,
|
|
14671
14678
|
activeDescriptionDraft: xe
|
|
14672
14679
|
}, {
|
|
14673
14680
|
setActiveTab: (e) => a(l_(e)),
|
|
14674
|
-
setSchemaDraft:
|
|
14681
|
+
setSchemaDraft: A,
|
|
14675
14682
|
setActiveExampleJsonDraft: Ae,
|
|
14676
14683
|
setActiveDescriptionDraft: Me,
|
|
14677
14684
|
setActiveSourceIndex: ve
|
|
@@ -14833,7 +14840,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14833
14840
|
onFormat: () => {
|
|
14834
14841
|
(f.current?.getAction?.("editor.action.formatDocument"))?.run();
|
|
14835
14842
|
},
|
|
14836
|
-
onConvertFromJson: () =>
|
|
14843
|
+
onConvertFromJson: () => k(!0)
|
|
14837
14844
|
}) : /* @__PURE__ */ U($g, {
|
|
14838
14845
|
tab: "examples",
|
|
14839
14846
|
disabled: E,
|
|
@@ -14854,13 +14861,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14854
14861
|
/* @__PURE__ */ U("div", {
|
|
14855
14862
|
className: "flex min-h-0 flex-1 flex-col overflow-hidden p-3",
|
|
14856
14863
|
children: i === "code" ? /* @__PURE__ */ U(Rg, {
|
|
14857
|
-
schemaDraft:
|
|
14864
|
+
schemaDraft: O,
|
|
14858
14865
|
disabled: E,
|
|
14859
|
-
onSchemaChange:
|
|
14866
|
+
onSchemaChange: A,
|
|
14860
14867
|
onSchemaCommit: re,
|
|
14861
|
-
jsonToJsonSchemaOpen:
|
|
14868
|
+
jsonToJsonSchemaOpen: te,
|
|
14862
14869
|
onConvertSuccess: j,
|
|
14863
|
-
onDismissConvert: () =>
|
|
14870
|
+
onDismissConvert: () => k(!1),
|
|
14864
14871
|
onEditorMount: (e) => {
|
|
14865
14872
|
f.current = e;
|
|
14866
14873
|
},
|
|
@@ -15531,7 +15538,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15531
15538
|
});
|
|
15532
15539
|
}), Array.from(n.values());
|
|
15533
15540
|
}, E_ = ({ id: e, defaultValue: t, value: n, name: r, disabled: i = !1, diffBaseline: a, onChange: o, components: s, customNodes: c, functionLibraries: l, allowedNamespaces: u, extraCommands: d, defaultActivePanel: f, hideLeftToolbar: p, panels: m, simulate: h, dictionaries: g, mode: _, viewConfigCta: v, viewConfig: y, onViewConfigCta: b, onPanelsChange: x, onReactFlowInit: S, onCodeExtension: C, onFunctionReady: w, fixturesRunner: T, onContractEvent: E }) => {
|
|
15534
|
-
let D = R(!1),
|
|
15541
|
+
let D = R(!1), ee = nh(), { stateStore: O, listenerStore: te } = rh(), { decisionGraph: k, openTabs: ne, activeTab: A } = $(({ decisionGraph: e, openTabs: t, activeTab: n }) => ({
|
|
15535
15542
|
decisionGraph: e,
|
|
15536
15543
|
openTabs: t,
|
|
15537
15544
|
activeTab: n
|
|
@@ -15540,10 +15547,10 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15540
15547
|
}, 100);
|
|
15541
15548
|
I(() => {
|
|
15542
15549
|
if (y?.enabled) {
|
|
15543
|
-
let e =
|
|
15544
|
-
|
|
15550
|
+
let e = ne.filter((e) => !!y?.permissions?.[e]);
|
|
15551
|
+
O.setState({
|
|
15545
15552
|
openTabs: e,
|
|
15546
|
-
activeTab: y?.permissions?.[
|
|
15553
|
+
activeTab: y?.permissions?.[A] ? A : "graph"
|
|
15547
15554
|
});
|
|
15548
15555
|
}
|
|
15549
15556
|
}, [y]);
|
|
@@ -15552,7 +15559,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15552
15559
|
return !u || u.size === 0 ? e : e.filter((e) => u.has(e.kind));
|
|
15553
15560
|
}, [c, u]);
|
|
15554
15561
|
return I(() => {
|
|
15555
|
-
|
|
15562
|
+
O.setState({
|
|
15556
15563
|
id: e,
|
|
15557
15564
|
disabled: i,
|
|
15558
15565
|
components: Array.isArray(s) ? s : [],
|
|
@@ -15581,13 +15588,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15581
15588
|
g,
|
|
15582
15589
|
_
|
|
15583
15590
|
]), I(() => {
|
|
15584
|
-
|
|
15591
|
+
O.setState({ name: r ?? "graph.json" });
|
|
15585
15592
|
}, [r]), I(() => {
|
|
15586
|
-
|
|
15593
|
+
O.setState({ simulate: h });
|
|
15587
15594
|
}, [h]), I(() => {
|
|
15588
|
-
|
|
15595
|
+
O.setState({ fixturesRunner: T ?? null });
|
|
15589
15596
|
}, [T]), I(() => {
|
|
15590
|
-
|
|
15597
|
+
te.setState({
|
|
15591
15598
|
onReactFlowInit: S,
|
|
15592
15599
|
onPanelsChange: x,
|
|
15593
15600
|
onCodeExtension: C,
|
|
@@ -15603,22 +15610,22 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15603
15610
|
b,
|
|
15604
15611
|
E
|
|
15605
15612
|
]), I(() => {
|
|
15606
|
-
|
|
15613
|
+
te.setState({ onChange: re });
|
|
15607
15614
|
}, [re]), I(() => {
|
|
15608
|
-
n === void 0 || a || D.current && !(0, Sc.default)(n,
|
|
15615
|
+
n === void 0 || a || D.current && !(0, Sc.default)(n, k) && ee.setDecisionGraph(n);
|
|
15609
15616
|
}, [n, a]), I(() => {
|
|
15610
|
-
n === void 0 ? t !== void 0 &&
|
|
15617
|
+
n === void 0 ? t !== void 0 && ee.setDecisionGraph(t) : ee.setDecisionGraph(a ? C_(n, a, {
|
|
15611
15618
|
customNodes: c ?? [],
|
|
15612
15619
|
components: s ?? []
|
|
15613
|
-
}) : n),
|
|
15620
|
+
}) : n), O.setState({
|
|
15614
15621
|
activePanel: f,
|
|
15615
15622
|
hideLeftToolbar: p
|
|
15616
15623
|
}), D.current = !0;
|
|
15617
15624
|
}, []), I(() => {
|
|
15618
|
-
n !== void 0 && (a ?
|
|
15625
|
+
n !== void 0 && (a ? ee.setDecisionGraph(C_(n, a, {
|
|
15619
15626
|
customNodes: c ?? [],
|
|
15620
15627
|
components: s ?? []
|
|
15621
|
-
})) : D.current &&
|
|
15628
|
+
})) : D.current && ee.setDecisionGraph(n));
|
|
15622
15629
|
}, [a]), null;
|
|
15623
15630
|
}, D_ = () => {
|
|
15624
15631
|
let e = null;
|
|
@@ -15925,7 +15932,7 @@ var N_ = M_({
|
|
|
15925
15932
|
className: "whitespace-nowrap rounded-sm border border-[var(--border)] bg-[var(--seal-color-bg-container)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]",
|
|
15926
15933
|
children: h
|
|
15927
15934
|
})
|
|
15928
|
-
}) : null,
|
|
15935
|
+
}) : null, ee = async (e) => {
|
|
15929
15936
|
S(!1);
|
|
15930
15937
|
let s = (v?.nodes ?? []).filter((t) => e.type === "customNode" ? t.content?.kind === e.component : t.type === e.type).length, c = [...Object.values(N_), ...y], l = e.type === "customNode" ? c.find((t) => t.kind === e.component) : c.find((t) => t.type === e.type);
|
|
15931
15938
|
if (!l?.generateNode) return;
|
|
@@ -15981,7 +15988,7 @@ var N_ = M_({
|
|
|
15981
15988
|
children: C.map((e) => /* @__PURE__ */ W("button", {
|
|
15982
15989
|
type: "button",
|
|
15983
15990
|
className: "flex w-full items-center gap-2 rounded-sm px-2 py-1 text-left text-xs hover:bg-[var(--accent)]",
|
|
15984
|
-
onClick: () => void
|
|
15991
|
+
onClick: () => void ee(e),
|
|
15985
15992
|
children: [/* @__PURE__ */ U("span", {
|
|
15986
15993
|
className: "flex h-4 w-4 items-center justify-center",
|
|
15987
15994
|
children: e.icon
|
|
@@ -16200,23 +16207,23 @@ var N_ = M_({
|
|
|
16200
16207
|
if (u.success) return i([j.parse(l)]);
|
|
16201
16208
|
B.error(u.error?.message);
|
|
16202
16209
|
}, Z_ = ({ addNode: e, specifications: t }) => {
|
|
16203
|
-
let n = o(), r = nh(), { commandMenuOpen:
|
|
16210
|
+
let n = o(), r = Ca(), i = nh(), { commandMenuOpen: a, panels: s, activePanelId: c, nodes: l, extraCommands: u } = $(({ commandMenuOpen: e, panels: t, activePanel: n, decisionGraph: r, extraCommands: i }) => ({
|
|
16204
16211
|
commandMenuOpen: e,
|
|
16205
16212
|
panels: t ?? [],
|
|
16206
16213
|
extraCommands: i ?? [],
|
|
16207
16214
|
activePanelId: n,
|
|
16208
16215
|
nodes: (r.nodes ?? []).filter((e) => e.type !== "inputNode")
|
|
16209
|
-
})), [
|
|
16216
|
+
})), [d, f] = z("");
|
|
16210
16217
|
I(() => {
|
|
16211
16218
|
let e = (e) => {
|
|
16212
16219
|
if ((e.ctrlKey || e.metaKey) && e.code === "KeyK") {
|
|
16213
16220
|
if (e.target?.closest?.("input, textarea, select, [contenteditable], .cm-editor")) return;
|
|
16214
|
-
e.preventDefault(),
|
|
16221
|
+
e.preventDefault(), i.setCommandMenuOpen(!a);
|
|
16215
16222
|
}
|
|
16216
16223
|
};
|
|
16217
16224
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
16218
|
-
}, [
|
|
16219
|
-
let
|
|
16225
|
+
}, [a, i]);
|
|
16226
|
+
let p = L(() => {
|
|
16220
16227
|
let n = t.map((t) => {
|
|
16221
16228
|
let n = !("type" in t), r = n ? "customNode" : t.type, i = n ? t.kind : void 0;
|
|
16222
16229
|
return {
|
|
@@ -16229,25 +16236,25 @@ var N_ = M_({
|
|
|
16229
16236
|
e(r, void 0, i);
|
|
16230
16237
|
}
|
|
16231
16238
|
};
|
|
16232
|
-
}),
|
|
16239
|
+
}), r = s.map((e) => ({
|
|
16233
16240
|
id: `panel:${e.id}`,
|
|
16234
16241
|
group: "panel",
|
|
16235
16242
|
label: e.title,
|
|
16236
16243
|
icon: e.icon,
|
|
16237
16244
|
keywords: `panel ${e.title}`,
|
|
16238
|
-
run: () =>
|
|
16239
|
-
})),
|
|
16245
|
+
run: () => i.setActivePanel(c === e.id ? void 0 : e.id)
|
|
16246
|
+
})), a = l.map((e) => ({
|
|
16240
16247
|
id: `goto:${e.id}`,
|
|
16241
16248
|
group: "goto",
|
|
16242
16249
|
label: e.name ?? e.id,
|
|
16243
16250
|
icon: null,
|
|
16244
16251
|
keywords: `goto ${e.type ?? ""} ${e.name ?? ""}`,
|
|
16245
16252
|
run: () => {
|
|
16246
|
-
|
|
16253
|
+
i.goToNode(e.id), i.openTab(e.id);
|
|
16247
16254
|
}
|
|
16248
16255
|
}));
|
|
16249
16256
|
return [
|
|
16250
|
-
...
|
|
16257
|
+
...u.map((e) => ({
|
|
16251
16258
|
id: e.id,
|
|
16252
16259
|
group: e.group,
|
|
16253
16260
|
label: e.label,
|
|
@@ -16255,91 +16262,86 @@ var N_ = M_({
|
|
|
16255
16262
|
keywords: e.keywords,
|
|
16256
16263
|
run: e.run
|
|
16257
16264
|
})),
|
|
16258
|
-
...
|
|
16259
|
-
...
|
|
16265
|
+
...r,
|
|
16266
|
+
...a,
|
|
16260
16267
|
...n
|
|
16261
16268
|
];
|
|
16262
16269
|
}, [
|
|
16263
|
-
a,
|
|
16264
16270
|
s,
|
|
16265
16271
|
c,
|
|
16266
|
-
t,
|
|
16267
16272
|
l,
|
|
16273
|
+
t,
|
|
16274
|
+
u,
|
|
16268
16275
|
e,
|
|
16269
|
-
|
|
16270
|
-
]),
|
|
16271
|
-
let e =
|
|
16272
|
-
return e ?
|
|
16273
|
-
}, [
|
|
16276
|
+
i
|
|
16277
|
+
]), m = L(() => {
|
|
16278
|
+
let e = d.trim().toLowerCase();
|
|
16279
|
+
return e ? p.filter((t) => `${t.label} ${t.keywords}`.toLowerCase().includes(e)) : p;
|
|
16280
|
+
}, [p, d]), h = {
|
|
16274
16281
|
add: n("dg.command.groupAdd"),
|
|
16275
16282
|
panel: n("dg.command.groupPanels"),
|
|
16276
16283
|
goto: n("dg.command.groupNodes")
|
|
16277
16284
|
};
|
|
16278
|
-
return /* @__PURE__ */
|
|
16279
|
-
items:
|
|
16280
|
-
filteredItems:
|
|
16285
|
+
return /* @__PURE__ */ U(da.Root, {
|
|
16286
|
+
items: m,
|
|
16287
|
+
filteredItems: m,
|
|
16281
16288
|
filter: null,
|
|
16282
|
-
open:
|
|
16283
|
-
onOpenChange: (e) =>
|
|
16284
|
-
inputValue:
|
|
16285
|
-
onInputValueChange: (e) =>
|
|
16289
|
+
open: a,
|
|
16290
|
+
onOpenChange: (e) => i.setCommandMenuOpen(e),
|
|
16291
|
+
inputValue: d,
|
|
16292
|
+
onInputValueChange: (e) => f(e),
|
|
16286
16293
|
multiple: !1,
|
|
16287
16294
|
onValueChange: (e) => {
|
|
16288
|
-
let t = (Array.isArray(
|
|
16289
|
-
t && (
|
|
16295
|
+
let t = (Array.isArray(m) ? m : []).find((t) => t === e);
|
|
16296
|
+
t && (i.setCommandMenuOpen(!1), f(""), queueMicrotask(() => t.run()));
|
|
16290
16297
|
},
|
|
16291
|
-
children:
|
|
16292
|
-
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16326
|
-
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
})
|
|
16335
|
-
]
|
|
16336
|
-
}, e.id)), p.length === 0 && /* @__PURE__ */ U("div", {
|
|
16337
|
-
className: "px-3 py-6 text-center text-xs opacity-50",
|
|
16338
|
-
children: n("dg.command.empty")
|
|
16298
|
+
children: /* @__PURE__ */ U(da.Portal, {
|
|
16299
|
+
container: r,
|
|
16300
|
+
children: /* @__PURE__ */ U(da.Positioner, {
|
|
16301
|
+
anchor: { getBoundingClientRect: () => new DOMRect(window.innerWidth / 2, 10, 0, 0) },
|
|
16302
|
+
side: "bottom",
|
|
16303
|
+
align: "center",
|
|
16304
|
+
sideOffset: 6,
|
|
16305
|
+
className: "z-50",
|
|
16306
|
+
children: /* @__PURE__ */ W(da.Popup, {
|
|
16307
|
+
"data-testid": "graph-command-menu",
|
|
16308
|
+
className: "z-50 w-[460px] max-w-[90vw] overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--card)] shadow-[0_16px_40px_rgba(0,0,0,0.18)]",
|
|
16309
|
+
children: [/* @__PURE__ */ U(da.Input, {
|
|
16310
|
+
"data-testid": "graph-command-input",
|
|
16311
|
+
onKeyDown: (e) => {
|
|
16312
|
+
if (e.key === "Enter" && m.length > 0) {
|
|
16313
|
+
e.preventDefault();
|
|
16314
|
+
let t = m[0];
|
|
16315
|
+
i.setCommandMenuOpen(!1), f(""), queueMicrotask(() => t.run());
|
|
16316
|
+
}
|
|
16317
|
+
},
|
|
16318
|
+
placeholder: n("dg.command.placeholder"),
|
|
16319
|
+
className: "h-10 w-full border-b border-[var(--border)] bg-transparent px-3 text-sm outline-none"
|
|
16320
|
+
}), /* @__PURE__ */ W(da.List, {
|
|
16321
|
+
className: "max-h-[320px] overflow-y-auto p-1",
|
|
16322
|
+
children: [m.map((e) => /* @__PURE__ */ W(da.Item, {
|
|
16323
|
+
value: e,
|
|
16324
|
+
"data-testid": "graph-command-item",
|
|
16325
|
+
className: "flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-xs outline-none data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
16326
|
+
children: [
|
|
16327
|
+
e.icon,
|
|
16328
|
+
/* @__PURE__ */ U("span", {
|
|
16329
|
+
className: "min-w-0 flex-1 truncate",
|
|
16330
|
+
children: e.label
|
|
16331
|
+
}),
|
|
16332
|
+
/* @__PURE__ */ U("span", {
|
|
16333
|
+
className: "shrink-0 text-[10px] opacity-50",
|
|
16334
|
+
children: h[e.group]
|
|
16335
|
+
})
|
|
16336
|
+
]
|
|
16337
|
+
}, e.id)), m.length === 0 && /* @__PURE__ */ U("div", {
|
|
16338
|
+
className: "px-3 py-6 text-center text-xs opacity-50",
|
|
16339
|
+
children: n("dg.command.empty")
|
|
16340
|
+
})]
|
|
16339
16341
|
})]
|
|
16340
|
-
})
|
|
16342
|
+
})
|
|
16341
16343
|
})
|
|
16342
|
-
})
|
|
16344
|
+
})
|
|
16343
16345
|
});
|
|
16344
16346
|
}, Q_ = (e, t) => {
|
|
16345
16347
|
let n = t.trim().toLowerCase();
|
|
@@ -16384,8 +16386,8 @@ var N_ = M_({
|
|
|
16384
16386
|
}, [r, i]), l = L(() => Object.keys(c).reduce((e, t) => ({
|
|
16385
16387
|
...e,
|
|
16386
16388
|
[t]: (c[t] || []).filter((e) => !(a?.trim?.().length > 0) || Q_(e, a) !== null)
|
|
16387
|
-
}), {}), [c, a]), u = r.length + i.length;
|
|
16388
|
-
return /* @__PURE__ */ W("div", { children: [
|
|
16389
|
+
}), {}), [c, a]), u = r.length + i.length, d = (c.core?.length ?? 0) + u;
|
|
16390
|
+
return /* @__PURE__ */ W("div", { children: [d > 5 && /* @__PURE__ */ U(Do, {
|
|
16389
16391
|
placeholder: "Search components...",
|
|
16390
16392
|
value: a,
|
|
16391
16393
|
onChange: (e) => o(e.target.value || ""),
|
|
@@ -18133,17 +18135,17 @@ var oy = (e, t = 42) => {
|
|
|
18133
18135
|
}, y = m ? p.find((e) => e.name === m.call.$call) : void 0, b = t.orphanKind, x = !!m && !y, S = L(() => !m || !m.call.$call || h.some((e) => e.value === m.call.$call) ? h : [{
|
|
18134
18136
|
value: m.call.$call,
|
|
18135
18137
|
label: m.call.$call
|
|
18136
|
-
}, ...h], [h, m]), C = L(() => y ? Object.keys(y.parameters?.properties ?? {}) : [], [y]), w = L(() => new Set(y?.parameters?.required ?? []), [y]), T = m ? i?.[m.id] : void 0, E = m ? a?.includes(m.key) ?? !1 : !1, D = L(() => ey(e), [e]),
|
|
18138
|
+
}, ...h], [h, m]), C = L(() => y ? Object.keys(y.parameters?.properties ?? {}) : [], [y]), w = L(() => new Set(y?.parameters?.required ?? []), [y]), T = m ? i?.[m.id] : void 0, E = m ? a?.includes(m.key) ?? !1 : !1, D = L(() => ey(e), [e]), ee = L(() => m ? D.danglingDependsOn.filter((e) => e.instanceId === m.id) : [], [D, m]), O = L(() => m ? D.declaredUnused.filter((e) => e.instanceId === m.id) : [], [D, m]), te = L(() => {
|
|
18137
18139
|
if (!m) return [];
|
|
18138
18140
|
let t = new Set(m.dependsOn ?? []);
|
|
18139
18141
|
return e.filter((e) => e.id !== m.id && e.key && !t.has(e.key)).map((e) => ({
|
|
18140
18142
|
value: e.key,
|
|
18141
18143
|
label: e.key
|
|
18142
18144
|
}));
|
|
18143
|
-
}, [e, m]), [
|
|
18144
|
-
navigator.clipboard?.writeText(e).catch(() => {}),
|
|
18145
|
+
}, [e, m]), [k, ne] = z(null), [A, re] = z(null), j = (e) => {
|
|
18146
|
+
navigator.clipboard?.writeText(e).catch(() => {}), ne(e), window.setTimeout(() => ne((t) => t === e ? null : t), 1200);
|
|
18145
18147
|
}, M = (e) => {
|
|
18146
|
-
if (!m || !
|
|
18148
|
+
if (!m || !A) {
|
|
18147
18149
|
j(e);
|
|
18148
18150
|
return;
|
|
18149
18151
|
}
|
|
@@ -18151,7 +18153,7 @@ var oy = (e, t = 42) => {
|
|
|
18151
18153
|
...m.call,
|
|
18152
18154
|
kwargs: {
|
|
18153
18155
|
...m.call.kwargs,
|
|
18154
|
-
[
|
|
18156
|
+
[A]: {
|
|
18155
18157
|
mode: "expression",
|
|
18156
18158
|
value: e
|
|
18157
18159
|
}
|
|
@@ -18358,7 +18360,7 @@ var oy = (e, t = 42) => {
|
|
|
18358
18360
|
className: "flex flex-wrap gap-1",
|
|
18359
18361
|
"data-testid": "instance-depends-on-tags",
|
|
18360
18362
|
children: m.dependsOn.map((e) => {
|
|
18361
|
-
let t =
|
|
18363
|
+
let t = ee.some((t) => t.dep === e);
|
|
18362
18364
|
return /* @__PURE__ */ W(ys, {
|
|
18363
18365
|
className: `border font-mono text-[10px] ${t ? "border-destructive/50 bg-destructive/10 text-destructive" : "border-border bg-muted/60"}`,
|
|
18364
18366
|
children: [e, !n && /* @__PURE__ */ U("button", {
|
|
@@ -18379,17 +18381,17 @@ var oy = (e, t = 42) => {
|
|
|
18379
18381
|
onChange: (e) => {
|
|
18380
18382
|
g(m.id, { dependsOn: [...m.dependsOn ?? [], e] });
|
|
18381
18383
|
},
|
|
18382
|
-
options:
|
|
18384
|
+
options: te
|
|
18383
18385
|
}),
|
|
18384
|
-
|
|
18386
|
+
ee.map((e) => /* @__PURE__ */ U(Z.Text, {
|
|
18385
18387
|
"data-testid": `instance-depends-on-dangling-${e.dep}`,
|
|
18386
18388
|
className: "text-[11px] text-destructive",
|
|
18387
18389
|
children: u("cf.dependsOnDangling", { dep: e.dep })
|
|
18388
18390
|
}, e.dep)),
|
|
18389
|
-
|
|
18391
|
+
O.length > 0 && /* @__PURE__ */ U(Z.Text, {
|
|
18390
18392
|
"data-testid": "instance-depends-on-unused",
|
|
18391
18393
|
className: "text-[11px] opacity-60",
|
|
18392
|
-
children: u("cf.dependsOnUnused", { deps:
|
|
18394
|
+
children: u("cf.dependsOnUnused", { deps: O.map((e) => e.dep).join(", ") })
|
|
18393
18395
|
})
|
|
18394
18396
|
]
|
|
18395
18397
|
})]
|
|
@@ -18412,11 +18414,11 @@ var oy = (e, t = 42) => {
|
|
|
18412
18414
|
className: "flex flex-wrap gap-1",
|
|
18413
18415
|
children: ie.map((e) => /* @__PURE__ */ W("button", {
|
|
18414
18416
|
type: "button",
|
|
18415
|
-
title:
|
|
18417
|
+
title: A ? u("cf.referenceInsert", { param: A }) : u("cf.referenceCopy"),
|
|
18416
18418
|
"data-testid": `reference-chip-${e.ref}`,
|
|
18417
18419
|
className: "cursor-pointer rounded-sm border border-border bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] hover:bg-muted/80",
|
|
18418
18420
|
onClick: () => M(e.ref),
|
|
18419
|
-
children: [e.ref,
|
|
18421
|
+
children: [e.ref, k === e.ref && /* @__PURE__ */ U("span", {
|
|
18420
18422
|
className: "ml-1 opacity-60",
|
|
18421
18423
|
children: u("cf.referenceCopied")
|
|
18422
18424
|
})]
|
|
@@ -18452,7 +18454,7 @@ var oy = (e, t = 42) => {
|
|
|
18452
18454
|
let t = y.parameters?.properties?.[e], i = typeof t?.type == "string" ? t.type : "string", a = Qf(m.call.kwargs[e]);
|
|
18453
18455
|
return /* @__PURE__ */ W("div", {
|
|
18454
18456
|
"data-testid": `param-row-${e}`,
|
|
18455
|
-
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md",
|
|
18457
|
+
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md", A === e && "bg-[var(--seal-color-warning-bg)]"),
|
|
18456
18458
|
onClick: () => re(e),
|
|
18457
18459
|
children: [/* @__PURE__ */ W("div", {
|
|
18458
18460
|
className: "flex min-w-0 items-center gap-1",
|
|
@@ -18562,7 +18564,7 @@ var oy = (e, t = 42) => {
|
|
|
18562
18564
|
}),
|
|
18563
18565
|
...e?.dependsOn ? { dependsOn: e.dependsOn } : {}
|
|
18564
18566
|
};
|
|
18565
|
-
}), [f, l]),
|
|
18567
|
+
}), [f, l]), ee = (n) => {
|
|
18566
18568
|
r.updateNode(e, (e) => (e.content.config.expressions = n.map((e) => ({
|
|
18567
18569
|
id: e.id,
|
|
18568
18570
|
key: e.key,
|
|
@@ -18573,21 +18575,21 @@ var oy = (e, t = 42) => {
|
|
|
18573
18575
|
user: t ?? "",
|
|
18574
18576
|
proj: t ?? ""
|
|
18575
18577
|
}, e));
|
|
18576
|
-
}, [
|
|
18577
|
-
|
|
18578
|
+
}, [O, te] = z("table"), [k, ne] = z(null), [A, re] = z(null), j = () => {
|
|
18579
|
+
ne(JSON.stringify(f ?? [], null, 2)), re(null), te("code");
|
|
18578
18580
|
}, M = () => {
|
|
18579
|
-
if (
|
|
18580
|
-
let e = JSON.parse(
|
|
18581
|
+
if (k !== null) try {
|
|
18582
|
+
let e = JSON.parse(k);
|
|
18581
18583
|
if (!Array.isArray(e)) {
|
|
18582
18584
|
re("Expected an array");
|
|
18583
18585
|
return;
|
|
18584
18586
|
}
|
|
18585
|
-
|
|
18587
|
+
te("table"), re(null), E(e);
|
|
18586
18588
|
} catch {
|
|
18587
18589
|
re("Invalid JSON");
|
|
18588
18590
|
}
|
|
18589
18591
|
}, ie = () => {
|
|
18590
|
-
|
|
18592
|
+
te("table"), ne(null), re(null);
|
|
18591
18593
|
};
|
|
18592
18594
|
return /* @__PURE__ */ W("div", {
|
|
18593
18595
|
className: "flex h-full flex-col overflow-hidden",
|
|
@@ -18657,35 +18659,35 @@ var oy = (e, t = 42) => {
|
|
|
18657
18659
|
className: "flex items-center gap-1",
|
|
18658
18660
|
children: [/* @__PURE__ */ U(Y, {
|
|
18659
18661
|
size: "small",
|
|
18660
|
-
type:
|
|
18662
|
+
type: O === "table" ? "primary" : "default",
|
|
18661
18663
|
className: "!px-2",
|
|
18662
18664
|
onClick: () => ie(),
|
|
18663
18665
|
children: u("cf.modeTable")
|
|
18664
18666
|
}), /* @__PURE__ */ U(Y, {
|
|
18665
18667
|
size: "small",
|
|
18666
|
-
type:
|
|
18668
|
+
type: O === "code" ? "primary" : "default",
|
|
18667
18669
|
className: "!px-2",
|
|
18668
18670
|
onClick: j,
|
|
18669
18671
|
children: u("cf.modeCode")
|
|
18670
18672
|
})]
|
|
18671
18673
|
})
|
|
18672
18674
|
}),
|
|
18673
|
-
|
|
18675
|
+
O === "code" && /* @__PURE__ */ W("div", {
|
|
18674
18676
|
className: "mx-3 mt-2 flex min-h-[320px] flex-1 flex-col overflow-hidden rounded-md border border-border",
|
|
18675
18677
|
children: [/* @__PURE__ */ U("textarea", {
|
|
18676
18678
|
"data-testid": "function-code-editor",
|
|
18677
18679
|
className: "min-h-0 flex-1 resize-none bg-[var(--card)] p-3 font-mono text-xs text-foreground",
|
|
18678
|
-
value:
|
|
18679
|
-
onChange: (e) =>
|
|
18680
|
+
value: k ?? JSON.stringify(f ?? [], null, 2),
|
|
18681
|
+
onChange: (e) => ne(e.target.value),
|
|
18680
18682
|
onBlur: M,
|
|
18681
18683
|
disabled: i,
|
|
18682
18684
|
spellCheck: !1
|
|
18683
|
-
}),
|
|
18685
|
+
}), A && /* @__PURE__ */ U("div", {
|
|
18684
18686
|
className: "border-t border-destructive/40 bg-destructive/10 px-3 py-1 text-xs text-destructive",
|
|
18685
|
-
children:
|
|
18687
|
+
children: A
|
|
18686
18688
|
})]
|
|
18687
18689
|
}),
|
|
18688
|
-
|
|
18690
|
+
O === "table" && /* @__PURE__ */ W(H, { children: [
|
|
18689
18691
|
C.length > 0 && /* @__PURE__ */ W(wv, {
|
|
18690
18692
|
variant: "warning",
|
|
18691
18693
|
"data-testid": "dollar-form-band",
|
|
@@ -18783,7 +18785,7 @@ var oy = (e, t = 42) => {
|
|
|
18783
18785
|
duplicateKeys: y,
|
|
18784
18786
|
outputsByKey: c,
|
|
18785
18787
|
schedule: T,
|
|
18786
|
-
onChange:
|
|
18788
|
+
onChange: ee
|
|
18787
18789
|
})
|
|
18788
18790
|
})
|
|
18789
18791
|
] })
|
|
@@ -19580,8 +19582,8 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19580
19582
|
let { decisionGraph: i } = o.getState(), m = i.nodes.find((e) => e.id === p.nodeId);
|
|
19581
19583
|
if (!m) return l || B.error(e("simulator.boundRequestNodeNotFound")), null;
|
|
19582
19584
|
let h = d(m.content), g = r;
|
|
19583
|
-
if ((u ?
|
|
19584
|
-
let _ =
|
|
19585
|
+
if ((u ? te(g, h) : []).length > 0) return l || B.warning(e("request.dataTypeMismatchWarning")), null;
|
|
19586
|
+
let _ = k(g, h);
|
|
19585
19587
|
return c({
|
|
19586
19588
|
activeExampleBinding: p,
|
|
19587
19589
|
preparedParsed: _,
|
|
@@ -19684,16 +19686,16 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19684
19686
|
inputNodeId: p,
|
|
19685
19687
|
simulatorExampleBinding: u,
|
|
19686
19688
|
dataLabel: a("request.dataLabel")
|
|
19687
|
-
}), { requestValue: T, setRequestValue: E, userHasEdited: D, setUserHasEdited:
|
|
19689
|
+
}), { requestValue: T, setRequestValue: E, userHasEdited: D, setUserHasEdited: ee, isApplyingExternalRequest: te } = Wy({
|
|
19688
19690
|
defaultRequest: i,
|
|
19689
19691
|
simulatorRequest: l,
|
|
19690
19692
|
currentBindingIdentity: b,
|
|
19691
19693
|
onExternalChange: e
|
|
19692
|
-
}),
|
|
19694
|
+
}), ne = (e) => {
|
|
19693
19695
|
let t = m[e];
|
|
19694
19696
|
if (!p || !t) return;
|
|
19695
19697
|
M();
|
|
19696
|
-
let n =
|
|
19698
|
+
let n = O(t.data, x), r = k(n, x), i = JSON.stringify(r, null, 2);
|
|
19697
19699
|
c.setSimulatorRequest(i), c.setSimulatorExampleBinding({
|
|
19698
19700
|
nodeId: p,
|
|
19699
19701
|
sourceIndex: e,
|
|
@@ -19702,7 +19704,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19702
19704
|
};
|
|
19703
19705
|
I(() => {
|
|
19704
19706
|
if (!_ || (p && g >= 0 && y && (u?.nodeId !== p || u.sourceIndex !== g || u.sourceName !== _.name) && c.setSimulatorExampleBinding(y), D)) return;
|
|
19705
|
-
let t =
|
|
19707
|
+
let t = O(_.data, x), n = JSON.stringify(k(t, x), null, 2);
|
|
19706
19708
|
n && n !== T && (E(n), c.setSimulatorRequest(n), e?.(n));
|
|
19707
19709
|
}, [
|
|
19708
19710
|
c,
|
|
@@ -19723,12 +19725,12 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19723
19725
|
c.setNodeType(t.id, Zm.InferredOutput, new zn(e));
|
|
19724
19726
|
} catch {}
|
|
19725
19727
|
}, [T]);
|
|
19726
|
-
let { persistRequestToExampleSource:
|
|
19728
|
+
let { persistRequestToExampleSource: A } = By({
|
|
19727
19729
|
t: a,
|
|
19728
19730
|
requestValue: T,
|
|
19729
19731
|
resolvedSimulatorExampleBinding: y,
|
|
19730
19732
|
onRequestValueChange: E,
|
|
19731
|
-
onMarkEdited: () =>
|
|
19733
|
+
onMarkEdited: () => ee(!0),
|
|
19732
19734
|
onExternalChange: e
|
|
19733
19735
|
}), j = JSON.stringify(m.map((e) => e.data)), { flush: M } = Hy({
|
|
19734
19736
|
enabled: !!(t && y),
|
|
@@ -19736,7 +19738,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19736
19738
|
requestSourcesSignature: j,
|
|
19737
19739
|
boundRequestSourceIndex: h,
|
|
19738
19740
|
onSyncToSchema: () => {
|
|
19739
|
-
|
|
19741
|
+
A({
|
|
19740
19742
|
validateDefinitionTypes: !1,
|
|
19741
19743
|
silentWhenUnbound: !0,
|
|
19742
19744
|
showSuccessMessage: !1,
|
|
@@ -19746,7 +19748,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19746
19748
|
},
|
|
19747
19749
|
onPushToEditor: () => {
|
|
19748
19750
|
if (h < 0 || !m[h]) return;
|
|
19749
|
-
let e =
|
|
19751
|
+
let e = O(m[h].data, x), t = k(e, x);
|
|
19750
19752
|
c.setSimulatorRequest(JSON.stringify(t, null, 2));
|
|
19751
19753
|
}
|
|
19752
19754
|
});
|
|
@@ -19758,11 +19760,11 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19758
19760
|
bindingName: C,
|
|
19759
19761
|
hasInputNode: t,
|
|
19760
19762
|
loading: n,
|
|
19761
|
-
onSourceChange:
|
|
19763
|
+
onSourceChange: ne,
|
|
19762
19764
|
onFormat: () => {
|
|
19763
19765
|
try {
|
|
19764
19766
|
let t = ti.parse(T || ""), n = re(t), r = JSON.stringify(n, null, 2);
|
|
19765
|
-
E(r),
|
|
19767
|
+
E(r), ee(!0), c.setSimulatorRequest(r), e?.(r), B.success(a("simulator.formatSuccess"));
|
|
19766
19768
|
} catch {
|
|
19767
19769
|
B.error(a("simulator.formatFailed"));
|
|
19768
19770
|
}
|
|
@@ -19801,10 +19803,10 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19801
19803
|
children: /* @__PURE__ */ U(Py, {
|
|
19802
19804
|
value: T,
|
|
19803
19805
|
onChange: (t) => {
|
|
19804
|
-
E(t),
|
|
19806
|
+
E(t), ee(!0), c.setSimulatorRequest(t ?? ""), e?.(t ?? "");
|
|
19805
19807
|
}
|
|
19806
19808
|
})
|
|
19807
|
-
}),
|
|
19809
|
+
}), te && /* @__PURE__ */ U("div", {
|
|
19808
19810
|
className: "absolute inset-0 z-10 flex items-center justify-center bg-background/40",
|
|
19809
19811
|
children: /* @__PURE__ */ U($o, { size: "small" })
|
|
19810
19812
|
})]
|
|
@@ -20608,6 +20610,6 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20608
20610
|
//#region src/index.ts
|
|
20609
20611
|
typeof document < "u" && !document.querySelector(".seal-root") && console.warn("[seal-editor] LEGACY token injection is active (no .seal-root wrapper found) — wrap your app in .seal-root before v2.0. See ADR-023.");
|
|
20610
20612
|
//#endregion
|
|
20611
|
-
export { Vy as AUTO_SYNC_DEBOUNCE_MS, xe as COLUMN_FIELD_TYPE_OPTIONS, nf as CodeEditor, ly as CustomFunctionTable, he as CustomKind, ye as DECISION_GRAPH_CONTENT_TYPE, gy as DecisionGraph, Cm as DecisionTable, hc as DictionaryProvider, rm as DiffAutosizeTextArea, nm as DiffCodeEditor, cm as DiffIcon, em as DiffInput, Zp as DiffRadio, tm as DiffSelect, $p as DiffSwitch, Cg as Expression, Lf as ExpressionBuilder, rb as FixturesPanel, Cb as Function, Gh as GraphDecisionNode, Jh as GraphNode, qy as GraphSimulator, s as I18nProvider, p as INPUT_CONTRACT_VERSION, cy as InstanceEditor, gc as JdmConfigProvider, qs as MODE_EXTRAS, Wh as NodeColor, ue as NodeKind, Zm as NodeTypeKind, M as OUTPUT_FIELD_TYPE_OPTIONS, Py as SimulatorEditor, u_ as TabRequest, fy as ToolbarAnchor, $f as TypedInput, Dh as addStrikethrough, ge as anyNodeSchema, f as applySchemaTextToInputContract, Oh as buildDiffString, b as buildRequestExampleTemplateFromDefinitions, D as buildRequestSchemaFromDefinitions, C_ as calculateDiffGraph, uy as clusterToolbarItems, pd as codemirror, Qf as coerceToTypedValue, be as columnEnumSchema, N as columnFieldTypeSchema, Ah as compareAndUnifyLists, kh as compareStringFields, C as computeExampleDrift, tb as computeGraphDiff, fe as contractExamplesToSources, _y as createJdmNode, a as createT, pe as customNodeSchema, Ys as darkTokens, Se as decisionModelSchema, ae as decisionNodeSchema, se as decisionTableSchema, wh as definePack, _e as edgeSchema, Ns as ensureWasmLoaded, me as expressionNodeSchema, le as functionNodeSchema, d as getRequestDefinitions, g as getRequestExampleSources, y as getRequestSchemaSourceValue, de as hasExampleDrift, ce as inputNodeSchema, ab as jsonSchemaToVariableType, Js as lightTokens, x as migrateRequestExampleDataByDefinitions, j as nodeSchema, N_ as nodeSpecification, we as normalizeRequestDefinitionOrders,
|
|
20613
|
+
export { Vy as AUTO_SYNC_DEBOUNCE_MS, xe as COLUMN_FIELD_TYPE_OPTIONS, nf as CodeEditor, ly as CustomFunctionTable, he as CustomKind, ye as DECISION_GRAPH_CONTENT_TYPE, gy as DecisionGraph, Cm as DecisionTable, hc as DictionaryProvider, rm as DiffAutosizeTextArea, nm as DiffCodeEditor, cm as DiffIcon, em as DiffInput, Zp as DiffRadio, tm as DiffSelect, $p as DiffSwitch, Cg as Expression, Lf as ExpressionBuilder, rb as FixturesPanel, Cb as Function, Gh as GraphDecisionNode, Jh as GraphNode, qy as GraphSimulator, s as I18nProvider, p as INPUT_CONTRACT_VERSION, cy as InstanceEditor, gc as JdmConfigProvider, qs as MODE_EXTRAS, Wh as NodeColor, ue as NodeKind, Zm as NodeTypeKind, M as OUTPUT_FIELD_TYPE_OPTIONS, Py as SimulatorEditor, u_ as TabRequest, fy as ToolbarAnchor, $f as TypedInput, Dh as addStrikethrough, ge as anyNodeSchema, f as applySchemaTextToInputContract, Oh as buildDiffString, b as buildRequestExampleTemplateFromDefinitions, D as buildRequestSchemaFromDefinitions, C_ as calculateDiffGraph, uy as clusterToolbarItems, pd as codemirror, Qf as coerceToTypedValue, be as columnEnumSchema, N as columnFieldTypeSchema, Ah as compareAndUnifyLists, kh as compareStringFields, C as computeExampleDrift, tb as computeGraphDiff, fe as contractExamplesToSources, _y as createJdmNode, a as createT, pe as customNodeSchema, Ys as darkTokens, Se as decisionModelSchema, ae as decisionNodeSchema, se as decisionTableSchema, wh as definePack, _e as edgeSchema, Ns as ensureWasmLoaded, me as expressionNodeSchema, le as functionNodeSchema, d as getRequestDefinitions, g as getRequestExampleSources, y as getRequestSchemaSourceValue, de as hasExampleDrift, ce as inputNodeSchema, ab as jsonSchemaToVariableType, Js as lightTokens, x as migrateRequestExampleDataByDefinitions, j as nodeSchema, N_ as nodeSpecification, we as normalizeRequestDefinitionOrders, ne as normalizeRequestFieldKey, re as normalizeRequestJsonKeys, Ce as outputFieldTypeSchema, Ee as outputNodeSchema, T_ as processEdges, w_ as processNodes, w as readRequestInputContract, m as requestSchemaFingerprint, Ch as resolveCustomNode, v as resolveRequestSchemaValue, ld as setUdfCompletions, A as stringifyRequestSchemaValue, ie as switchNodeSchema, h as updateRequestSchemaExamples, nh as useDecisionGraphActions, eh as useDecisionGraphListeners, rh as useDecisionGraphRaw, th as useDecisionGraphReferences, $ as useDecisionGraphState, mc as useDictionaries, ah as useEdgeDiff, uh as useGraphSerializer, ih as useNodeDiff, Eh as useNodeType, Rh as usePersistentState, Hy as useSimulatorAutoSync, o as useT, dh as useTabSerializer, fc as useThemeMode, Ps as useWasmReady, Te as validationSchema, _ as writeRequestInputContract };
|
|
20612
20614
|
|
|
20613
20615
|
//# sourceMappingURL=index.js.map
|