@openbkn/workshop 0.2.3 → 0.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{ActionConfirm-ITBip2Ic.js → ActionConfirm-BX1dlrAM.js} +5 -5
- package/dist/{ActionFailure-CWifUJ2j.js → ActionFailure-xcSfKJYC.js} +2 -2
- package/dist/{AgentChat-C1uyzwuA.js → AgentChat-DHdX_6W7.js} +407 -383
- package/dist/AppListPage-DsUvFo6B.js +1549 -0
- package/dist/{AskDrawer-Bw1NM5v_.js → AskDrawer-j-CR4yXP.js} +4 -4
- package/dist/{ComputedView-_CaPjqhY.js → ComputedView-dWFlHngu.js} +1035 -1016
- package/dist/{ConclusionApply-CG5wSeVp.js → ConclusionApply-BAoZpxl-.js} +4 -4
- package/dist/{CypherEditor-DbLHQoJJ.js → CypherEditor-CZ5Z4SGH.js} +47 -47
- package/dist/{LandingList-BMPCXj6K.js → LandingList-BUO6-at_.js} +5 -5
- package/dist/{MenuUnfoldOutlined-BoARCVho.js → MenuUnfoldOutlined-DAeIeIap.js} +3 -3
- package/dist/{ModelTrial-DZjC0E8E.js → ModelTrial-C7XvLVY7.js} +4 -4
- package/dist/{PageRenderer-Debi-U0v.js → PageRenderer-CkmvW4aO.js} +21264 -20549
- package/dist/{ScenarioApply-BNFfjIwR.js → ScenarioApply-COdlyvrC.js} +6 -6
- package/dist/{SimulateForm-CEqqMjks.js → SimulateForm-B_9laTIl.js} +4 -4
- package/dist/{Subgraph-C0VjOnZf.js → Subgraph-CDY3wvCA.js} +3 -3
- package/dist/WorkshopLabPage-BtYnBpk4.js +12020 -0
- package/dist/{WorkshopRunPage-BlyM18id.js → WorkshopRunPage-DHMJ3b8k.js} +24 -24
- package/dist/{abnfDiagram-WEYOIA3C-wqYhe75a.js → abnfDiagram-WEYOIA3C-Blje2Kbf.js} +3 -3
- package/dist/{action-type-tool.service-CtCfESYq.js → action-type-tool.service-BN-W_Az_.js} +1 -1
- package/dist/{architectureDiagram-ZHVYKT53-BYJ2H7bS.js → architectureDiagram-ZHVYKT53-B_FkRXc3.js} +3 -3
- package/dist/{bkn-agent-execution.service-ogW6NIAz.js → bkn-agent-execution.service-CJalMVIc.js} +1 -1
- package/dist/{blockDiagram-RJAE7QA3-DZfrfHRw.js → blockDiagram-RJAE7QA3-CYJLthoI.js} +3 -3
- package/dist/{c4Diagram-XDPPPE54--S7sRxgd.js → c4Diagram-XDPPPE54-CmMaN3M4.js} +2 -2
- package/dist/{channel-Ca2_7Xkz.js → channel-Dp24Bgua.js} +1 -1
- package/dist/{chunk-2E7WHVMD-BMnl6-jy.js → chunk-2E7WHVMD-DrnpfYKB.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BNVTYluA.js → chunk-2Q5K7J3B-BXqKcHlQ.js} +1 -1
- package/dist/{chunk-4EMNKR2T-CKorQf5z.js → chunk-4EMNKR2T-DYgY_0_y.js} +1 -1
- package/dist/{chunk-55XCU76K-C4xutPQ4.js → chunk-55XCU76K-Bja7bE8g.js} +1 -1
- package/dist/{chunk-5VM5RSS4-BM5F2WnL.js → chunk-5VM5RSS4-CGTnbRRi.js} +1 -1
- package/dist/{chunk-JWPE2WC7-CSU5SIs8.js → chunk-JWPE2WC7-2AyjxdJR.js} +1 -1
- package/dist/{chunk-VQ5W62QI-Dtk59D_l.js → chunk-VQ5W62QI-B3PGCKOg.js} +1 -1
- package/dist/{chunk-XXDRQBXY-DzVLFl9c.js → chunk-XXDRQBXY-RrIsI-B5.js} +1 -1
- package/dist/{chunk-ZCHMQSOR-cdQdJeDJ.js → chunk-ZCHMQSOR-COJTBW1i.js} +2 -2
- package/dist/{classDiagram-v2-4MYWR3UA-CABAzYlW.js → classDiagram-v2-4MYWR3UA-DolLxH6t.js} +5 -5
- package/dist/{cose-bilkent-JH36ORCC-Ca8GJbqv.js → cose-bilkent-JH36ORCC-DMSYgFxc.js} +2 -2
- package/dist/customComponents-DasaZ6pq.js +1 -1
- package/dist/customComponents.en-US-CkabuCXg.js +1 -1
- package/dist/{customParseFormat-H00Ur3YB.js → customParseFormat-C9WAjjqH.js} +1 -1
- package/dist/{cynefinDiagram-WF24UDRP-iIy_O6OH.js → cynefinDiagram-WF24UDRP-DrksRWCn.js} +2 -2
- package/dist/{dagre-NK4GIZVX-lW5Hra0G.js → dagre-NK4GIZVX-CFRT2dAc.js} +2 -2
- package/dist/{dayjs.min-C8_4Wqpb.js → dayjs.min-CziT8yW9.js} +1 -1
- package/dist/{diagram-CBK3MWTC-l5LVSm6X.js → diagram-CBK3MWTC-DzZ_sQCl.js} +3 -3
- package/dist/{diagram-I5XIIV2D-ChpwB8Wz.js → diagram-I5XIIV2D-RYNBUOF4.js} +2 -2
- package/dist/{diagram-ODIL2UCW-DBavGl7R.js → diagram-ODIL2UCW-DqJETE9R.js} +3 -3
- package/dist/{diagram-PFBEJUXE-B3fNIQm9.js → diagram-PFBEJUXE-BekIE7hh.js} +2 -2
- package/dist/{diagram-RJA3I4VV-Dmj0Shdh.js → diagram-RJA3I4VV-DAIwlMxl.js} +2 -2
- package/dist/{diagram-TYUNFSNR-D98rsKpY.js → diagram-TYUNFSNR-CLJ0Ou9i.js} +6 -6
- package/dist/{ebnfDiagram-V4P3TTPT-Bxr2oP9U.js → ebnfDiagram-V4P3TTPT-CRs8ppfT.js} +3 -3
- package/dist/{elk-QONTBCTQ-CvFT6Pst.js → elk-QONTBCTQ-Bqoh6AYY.js} +5 -5
- package/dist/{erDiagram-KYQIGQAA-dgeEoLzk.js → erDiagram-KYQIGQAA-BSp8Z7uQ.js} +4 -4
- package/dist/{flowDiagram-IUGLLWBU-ChsJgBPn.js → flowDiagram-IUGLLWBU-WKILTCDc.js} +7 -7
- package/dist/{ganttDiagram-R7GPNTJY-C9WcR8Tf.js → ganttDiagram-R7GPNTJY-CaTn_Mmr.js} +4 -4
- package/dist/generateCypher-BE_4YCWB.js +1032 -0
- package/dist/{gitGraphDiagram-PDYL7XHY-CeZTDs7V.js → gitGraphDiagram-PDYL7XHY-DGPs-RF6.js} +3 -3
- package/dist/{infoDiagram-MVDRKAX5-CzfcVWVf.js → infoDiagram-MVDRKAX5-HIQg7U3R.js} +1 -1
- package/dist/{ishikawaDiagram-HPEHV2GE-BK4ExPHB.js → ishikawaDiagram-HPEHV2GE-C84x8n2j.js} +2 -2
- package/dist/{journeyDiagram-BOSHW7O7-DXJ-ihrY.js → journeyDiagram-BOSHW7O7-CvYDNxSY.js} +4 -4
- package/dist/{kanban-definition-FNSA4HC5-C9rAkIZN.js → kanban-definition-FNSA4HC5-B586ryFD.js} +2 -2
- package/dist/{mermaid.core-uROF3Ult.js → mermaid.core-3J01L12Z.js} +5803 -5740
- package/dist/{mindmap-definition-6OY57UG3-DC9FfvxT.js → mindmap-definition-6OY57UG3-Donc6BMy.js} +3 -3
- package/dist/{models-D5Mffixi.js → models-Rf3LB8wS.js} +1 -1
- package/dist/{object-metric-numeric-DIgqXqB5.js → object-metric-numeric-BcgaJ6EW.js} +1 -1
- package/dist/{object-metric.service-B3PtIPEA.js → object-metric.service-CKiaFYcp.js} +2 -2
- package/dist/{pegDiagram-ECIUJNBX-CUCvcOc0.js → pegDiagram-ECIUJNBX-CYVi7x6D.js} +3 -3
- package/dist/{pieDiagram-GNMPY74T-DprBId-p.js → pieDiagram-GNMPY74T-4iWKYTTS.js} +2 -2
- package/dist/{prompt-D9VtVs5i.js → prompt-BQzBLrua.js} +110 -100
- package/dist/{quadrantDiagram-D57K4MC3-CcvW9eIV.js → quadrantDiagram-D57K4MC3-Bm6Cyi1I.js} +1 -1
- package/dist/{railroadDiagram-Y72NRBL7-DH43paGB.js → railroadDiagram-Y72NRBL7-Du6iN-Jz.js} +3 -3
- package/dist/{requirementDiagram-EQYSW5RA-CBY8WT39.js → requirementDiagram-EQYSW5RA-BGxpuSlc.js} +3 -3
- package/dist/{sankeyDiagram-SY24JHO5-DD80tYLM.js → sankeyDiagram-SY24JHO5-CsHmu__D.js} +2 -2
- package/dist/{sequenceDiagram-BLEHNHQU-Bo9dDD6b.js → sequenceDiagram-BLEHNHQU-DBNi943L.js} +3 -3
- package/dist/{sizeCapture-INFHLROL-BQTwKEEH.js → sizeCapture-INFHLROL-CcGr2ilA.js} +1 -1
- package/dist/{stateDiagram-v2-A6IESKWZ-um_LWxkE.js → stateDiagram-v2-A6IESKWZ-C78tVzaF.js} +4 -4
- package/dist/{swimlanes-B3ENRKFQ-DyYkLRSQ.js → swimlanes-B3ENRKFQ-BROc4LGM.js} +3 -3
- package/dist/{swimlanesDiagram-AYQRV4AK-DlAG_Vwl.js → swimlanesDiagram-AYQRV4AK-C0RDY4m2.js} +3 -3
- package/dist/{text-BqSVQKS6.js → text-CzC6K33E.js} +7 -3
- package/dist/{text.en-US-BhAxy_LE.js → text.en-US-D8mxBP0p.js} +6 -2
- package/dist/{timeline-definition-JXYKGLGB-DVH8Jsv4.js → timeline-definition-JXYKGLGB-C6WGe4xl.js} +1 -1
- package/dist/toolMatchLines-DrXpUwcl.js +4675 -0
- package/dist/{useLabData-fKy_tVvS.js → useLabData-B-3UW8zF.js} +8007 -7251
- package/dist/{usecaseDiagram-WPOLBNNX-DvsgvjCb.js → usecaseDiagram-WPOLBNNX-yMP7SDIg.js} +3 -3
- package/dist/{vennDiagram-Q3Y3IDCW-BQcWfjtm.js → vennDiagram-Q3Y3IDCW-bZW2LzBB.js} +2 -2
- package/dist/{wardleyDiagram-IVAIDKWA-M_Wv4tRx.js → wardleyDiagram-IVAIDKWA-DBbog93x.js} +2 -2
- package/dist/{workshop-app-wZ37Phc-.js → workshop-app-ByYXbgcn.js} +5008 -4707
- package/dist/workshop-app.css +1 -1
- package/dist/workshop-app.js +1 -1
- package/dist/{xychartDiagram-4URNHDU4-DBviJ7Ux.js → xychartDiagram-4URNHDU4-CVLJNXOt.js} +1 -1
- package/dist-cli/workshop.js +182 -140
- package/package.json +1 -1
- package/skill/SKILL.en-US.md +5 -0
- package/skill/SKILL.md +3 -0
- package/dist/AppFormModal-ByNEloW-.js +0 -4282
- package/dist/AppListPage-D2NVBJs7.js +0 -1465
- package/dist/WorkshopLabPage-C7hssyUo.js +0 -11364
- package/dist/generateCypher-kvNYDLY4.js +0 -399
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as z, r as d, l as J, j as a, a as x, p as K } from "./workshop-app-
|
|
2
|
-
import { u as Q, b as W, B as Y, C as Z, M as ee, A as se, S as te, f as ae, E as ne, F as oe } from "./useLabData-
|
|
3
|
-
import { s as u, d as ie } from "./PageRenderer-
|
|
4
|
-
import { u as re, L as ce, a as le, r as de } from "./LandingList-
|
|
1
|
+
import { u as z, r as d, l as J, j as a, a as x, p as K } from "./workshop-app-ByYXbgcn.js";
|
|
2
|
+
import { u as Q, b as W, B as Y, C as Z, M as ee, A as se, S as te, f as ae, E as ne, F as oe } from "./useLabData-B-3UW8zF.js";
|
|
3
|
+
import { s as u, d as ie } from "./PageRenderer-CkmvW4aO.js";
|
|
4
|
+
import { u as re, L as ce, a as le, r as de } from "./LandingList-BUO6-at_.js";
|
|
5
5
|
const pe = /* @__PURE__ */ new Set(), S = () => (/* @__PURE__ */ new Date()).toISOString();
|
|
6
6
|
function fe({ source: l, onClose: g }) {
|
|
7
7
|
const { t: n } = z(), i = Q(), y = i.appId ?? "", h = i.models, E = W(i.spec, i.values), { records: M } = Y(y), [b] = d.useState(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { N as Ne, r as c,
|
|
2
|
-
import { p as Ce, e as oe, g as Te } from "./generateCypher-
|
|
3
|
-
import {
|
|
4
|
-
import { F as ce,
|
|
5
|
-
import { u as Ve } from "./WorkshopLabPage-
|
|
1
|
+
import { N as Ne, r as c, O as Se, u as Ee, j as e, X as k, I as v, i as ne, a as N, Y as Re } from "./workshop-app-ByYXbgcn.js";
|
|
2
|
+
import { p as Ce, e as oe, g as Te } from "./generateCypher-BE_4YCWB.js";
|
|
3
|
+
import { ah as $e, a6 as Ie, ai as le, aj as Me, M as Oe, ak as Ae, R as _e, A as ie, al as Pe, am as qe, an as ze, ao as Be } from "./useLabData-B-3UW8zF.js";
|
|
4
|
+
import { F as ce, W as t, a2 as Fe, a3 as De, a4 as Ke } from "./PageRenderer-CkmvW4aO.js";
|
|
5
|
+
import { u as Ve } from "./WorkshopLabPage-BtYnBpk4.js";
|
|
6
6
|
var M = {}, pe;
|
|
7
7
|
function He() {
|
|
8
8
|
if (pe) return M;
|
|
@@ -10,8 +10,8 @@ function He() {
|
|
|
10
10
|
var p = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z" } }] }, name: "caret-right", theme: "outlined" };
|
|
11
11
|
return M.default = p, M;
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
const
|
|
13
|
+
var We = /* @__PURE__ */ He();
|
|
14
|
+
const Ge = /* @__PURE__ */ Ne(We);
|
|
15
15
|
function z() {
|
|
16
16
|
return z = Object.assign ? Object.assign.bind() : function(p) {
|
|
17
17
|
for (var h = 1; h < arguments.length; h++) {
|
|
@@ -22,11 +22,11 @@ function z() {
|
|
|
22
22
|
return p;
|
|
23
23
|
}, z.apply(this, arguments);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const Qe = (p, h) => /* @__PURE__ */ c.createElement(Se, z({}, p, {
|
|
26
26
|
ref: h,
|
|
27
|
-
icon:
|
|
28
|
-
})),
|
|
29
|
-
function
|
|
27
|
+
icon: Ge
|
|
28
|
+
})), Ue = /* @__PURE__ */ c.forwardRef(Qe), he = 50, Xe = 3;
|
|
29
|
+
function Ye(p, h) {
|
|
30
30
|
const i = [];
|
|
31
31
|
for (const f of p) {
|
|
32
32
|
const g = f[h];
|
|
@@ -51,10 +51,10 @@ function ts({
|
|
|
51
51
|
apply: g,
|
|
52
52
|
onClose: x
|
|
53
53
|
}) {
|
|
54
|
-
const { t: r } =
|
|
54
|
+
const { t: r } = Ee(), me = Ve(), B = c.useMemo(() => $e(h.id), [h.id]), F = c.useRef(null), [L, de] = c.useState(i?.id ?? Je(p)), [D, ue] = c.useState(i?.label ?? ""), [d, O] = c.useState(i?.cypher?.query ?? ""), [u, A] = c.useState(i?.cypher?.columns ?? []), [S, K] = c.useState(i?.key ?? ""), [V, ye] = c.useState(i?.cypher?.params ?? {}), [y, H] = c.useState(null), [W, _] = c.useState(null), [G, Q] = c.useState(!1), [E, be] = c.useState(""), [U, X] = c.useState(!1), [Y, w] = c.useState(null), [J, fe] = c.useState([]), R = c.useRef(null), Z = c.useMemo(() => Ie(p.variables, {}), [p.variables]), C = le(d), T = c.useMemo(
|
|
55
55
|
() => p.variables.filter((s) => Me.includes(s.kind)),
|
|
56
56
|
[p.variables]
|
|
57
|
-
),
|
|
57
|
+
), P = (s) => V[s] ?? (T.some((a) => a.name === s) ? s : void 0), ee = (s, a) => {
|
|
58
58
|
H({ ...s, ms: a }), _(null);
|
|
59
59
|
const l = s.columns.map(
|
|
60
60
|
(o) => u.find((m) => m.name === o.name) ?? {
|
|
@@ -63,19 +63,19 @@ function ts({
|
|
|
63
63
|
type: ze(o.type)
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
|
|
66
|
+
A(l), l.some((o) => o.name === S) || K(l[0]?.name ?? "");
|
|
67
67
|
}, se = async (s = d) => {
|
|
68
|
-
|
|
68
|
+
Q(!0);
|
|
69
69
|
const a = performance.now();
|
|
70
70
|
try {
|
|
71
71
|
const l = Object.fromEntries(
|
|
72
|
-
le(s).map((o) => [o,
|
|
72
|
+
le(s).map((o) => [o, Z[P(o) ?? ""]])
|
|
73
73
|
);
|
|
74
74
|
ee(await B(s, Ce(s, l)), performance.now() - a);
|
|
75
75
|
} catch (l) {
|
|
76
76
|
H(null), _(oe(l));
|
|
77
77
|
} finally {
|
|
78
|
-
|
|
78
|
+
Q(!1);
|
|
79
79
|
}
|
|
80
80
|
}, ae = c.useRef(!1);
|
|
81
81
|
c.useEffect(() => {
|
|
@@ -88,15 +88,15 @@ function ts({
|
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
const a = new AbortController();
|
|
91
|
-
|
|
91
|
+
R.current = a, X(!0), w(r("workshopLab.cypher.generating"));
|
|
92
92
|
const l = performance.now();
|
|
93
93
|
try {
|
|
94
94
|
const o = await Te({
|
|
95
95
|
model: s,
|
|
96
96
|
kn: h,
|
|
97
97
|
variables: p.variables,
|
|
98
|
-
values:
|
|
99
|
-
instruction:
|
|
98
|
+
values: Z,
|
|
99
|
+
instruction: E,
|
|
100
100
|
current: d,
|
|
101
101
|
query: B,
|
|
102
102
|
signal: a.signal,
|
|
@@ -104,7 +104,7 @@ function ts({
|
|
|
104
104
|
m.kind === "generating" ? r("workshopLab.cypher.attempt", { attempt: m.attempt }) : m.kind === "running" ? r("workshopLab.cypher.trying") : r("workshopLab.cypher.retry", { error: m.error })
|
|
105
105
|
)
|
|
106
106
|
});
|
|
107
|
-
o.query &&
|
|
107
|
+
o.query && O(o.query), o.ok ? (ee(o.result, performance.now() - l), w(
|
|
108
108
|
r("workshopLab.cypher.generated", {
|
|
109
109
|
seconds: ((performance.now() - l) / 1e3).toFixed(1),
|
|
110
110
|
explanation: o.explanation
|
|
@@ -117,13 +117,13 @@ function ts({
|
|
|
117
117
|
}
|
|
118
118
|
}, ge = (s) => {
|
|
119
119
|
const a = F.current?.resizableTextArea?.textArea, l = a?.selectionStart ?? d.length, o = a?.selectionEnd ?? l;
|
|
120
|
-
|
|
120
|
+
O(d.slice(0, l) + s + d.slice(o)), requestAnimationFrame(() => {
|
|
121
121
|
a?.focus(), a?.setSelectionRange(l + s.length, l + s.length);
|
|
122
122
|
});
|
|
123
123
|
}, xe = () => {
|
|
124
124
|
const s = Object.fromEntries(
|
|
125
125
|
C.flatMap((m) => {
|
|
126
|
-
const I =
|
|
126
|
+
const I = P(m);
|
|
127
127
|
return I ? [[m, I]] : [];
|
|
128
128
|
})
|
|
129
129
|
), a = {
|
|
@@ -172,16 +172,16 @@ function ts({
|
|
|
172
172
|
detail: n.label,
|
|
173
173
|
insert: `$${n.name}`,
|
|
174
174
|
isLeaf: !0
|
|
175
|
-
})),
|
|
175
|
+
})), q = (n, j, b) => ({
|
|
176
176
|
key: n,
|
|
177
177
|
name: `${j} · ${b.length}`,
|
|
178
178
|
selectable: !1,
|
|
179
179
|
children: b
|
|
180
180
|
});
|
|
181
181
|
return [
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
q("variables", r("workshopLab.cypher.variables"), I),
|
|
183
|
+
q("types", r("workshopLab.cypher.objectTypes"), o),
|
|
184
|
+
q("relations", r("workshopLab.cypher.relations"), m)
|
|
185
185
|
];
|
|
186
186
|
}, [h, T, $, r]), ke = !!(d.trim() && u.length > 0 && S && L), te = y?.entries.slice(0, he) ?? [], ve = y ? te.length > 0 ? /* @__PURE__ */ e.jsx(
|
|
187
187
|
ce,
|
|
@@ -220,7 +220,7 @@ function ts({
|
|
|
220
220
|
{
|
|
221
221
|
size: "small",
|
|
222
222
|
value: a.label,
|
|
223
|
-
onChange: (l) =>
|
|
223
|
+
onChange: (l) => A(
|
|
224
224
|
u.map(
|
|
225
225
|
(o) => o.name === a.name ? { ...o, label: l.target.value } : o
|
|
226
226
|
)
|
|
@@ -230,7 +230,7 @@ function ts({
|
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
title: r("workshopLab.cypher.samples"),
|
|
233
|
-
render: (s, a) => /* @__PURE__ */ e.jsx("span", { className: t.muted, children: y ?
|
|
233
|
+
render: (s, a) => /* @__PURE__ */ e.jsx("span", { className: t.muted, children: y ? Ye(y.entries, a.name) : G ? r("workshopLab.cypher.running") : "—" })
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
title: r("workshopLab.cypher.columnType"),
|
|
@@ -245,7 +245,7 @@ function ts({
|
|
|
245
245
|
value: l,
|
|
246
246
|
label: r(`workshopLab.cypher.types.${l}`)
|
|
247
247
|
})),
|
|
248
|
-
onChange: (l) =>
|
|
248
|
+
onChange: (l) => A(
|
|
249
249
|
u.map(
|
|
250
250
|
(o) => o.name === a.name ? { ...o, type: l } : o
|
|
251
251
|
)
|
|
@@ -271,22 +271,22 @@ function ts({
|
|
|
271
271
|
)
|
|
272
272
|
] }) : /* @__PURE__ */ e.jsx(k, { image: k.PRESENTED_IMAGE_SIMPLE, description: r("workshopLab.cypher.notRun") });
|
|
273
273
|
return /* @__PURE__ */ e.jsx(
|
|
274
|
-
|
|
274
|
+
Oe,
|
|
275
275
|
{
|
|
276
276
|
open: !0,
|
|
277
277
|
width: 1180,
|
|
278
278
|
title: r(i ? "workshopLab.cypher.editTitle" : "workshopLab.cypher.newTitle"),
|
|
279
279
|
onCancel: () => {
|
|
280
|
-
|
|
280
|
+
R.current?.abort(), x();
|
|
281
281
|
},
|
|
282
282
|
footer: /* @__PURE__ */ e.jsxs("div", { className: t.cypherFooter, children: [
|
|
283
283
|
/* @__PURE__ */ e.jsx("span", { className: t.muted, children: r("workshopLab.cypher.limits") }),
|
|
284
|
-
/* @__PURE__ */ e.jsxs(
|
|
284
|
+
/* @__PURE__ */ e.jsxs(qe, { children: [
|
|
285
285
|
/* @__PURE__ */ e.jsx(
|
|
286
286
|
N,
|
|
287
287
|
{
|
|
288
288
|
onClick: () => {
|
|
289
|
-
|
|
289
|
+
R.current?.abort(), x();
|
|
290
290
|
},
|
|
291
291
|
children: r("workshopLab.cypher.cancel")
|
|
292
292
|
}
|
|
@@ -301,7 +301,7 @@ function ts({
|
|
|
301
301
|
{
|
|
302
302
|
allowClear: !0,
|
|
303
303
|
size: "small",
|
|
304
|
-
prefix: /* @__PURE__ */ e.jsx(
|
|
304
|
+
prefix: /* @__PURE__ */ e.jsx(Ae, {}),
|
|
305
305
|
placeholder: r("workshopLab.cypher.search"),
|
|
306
306
|
value: $,
|
|
307
307
|
onChange: (s) => we(s.target.value)
|
|
@@ -363,17 +363,17 @@ function ts({
|
|
|
363
363
|
{
|
|
364
364
|
variant: "borderless",
|
|
365
365
|
placeholder: r("workshopLab.cypher.askPlaceholder"),
|
|
366
|
-
value:
|
|
366
|
+
value: E,
|
|
367
367
|
onChange: (s) => be(s.target.value),
|
|
368
|
-
onPressEnter: (s) => !s.nativeEvent.isComposing &&
|
|
368
|
+
onPressEnter: (s) => !s.nativeEvent.isComposing && E.trim() && !U && void re()
|
|
369
369
|
}
|
|
370
370
|
),
|
|
371
|
-
|
|
371
|
+
U ? /* @__PURE__ */ e.jsx(N, { size: "small", onClick: () => R.current?.abort(), children: r("workshopLab.cypher.stop") }) : /* @__PURE__ */ e.jsx(
|
|
372
372
|
N,
|
|
373
373
|
{
|
|
374
374
|
size: "small",
|
|
375
375
|
type: "primary",
|
|
376
|
-
disabled: !
|
|
376
|
+
disabled: !E.trim(),
|
|
377
377
|
onClick: () => {
|
|
378
378
|
re();
|
|
379
379
|
},
|
|
@@ -381,7 +381,7 @@ function ts({
|
|
|
381
381
|
}
|
|
382
382
|
)
|
|
383
383
|
] }),
|
|
384
|
-
|
|
384
|
+
Y && /* @__PURE__ */ e.jsx("span", { className: t.muted, children: Y }),
|
|
385
385
|
/* @__PURE__ */ e.jsxs("div", { className: t.cypherBox, children: [
|
|
386
386
|
/* @__PURE__ */ e.jsxs("div", { className: t.cypherBoxBar, children: [
|
|
387
387
|
/* @__PURE__ */ e.jsx("b", { children: r("workshopLab.cypher.query") }),
|
|
@@ -394,8 +394,8 @@ function ts({
|
|
|
394
394
|
N,
|
|
395
395
|
{
|
|
396
396
|
size: "small",
|
|
397
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
398
|
-
loading:
|
|
397
|
+
icon: /* @__PURE__ */ e.jsx(Ue, {}),
|
|
398
|
+
loading: G,
|
|
399
399
|
disabled: !d.trim(),
|
|
400
400
|
onClick: () => {
|
|
401
401
|
se();
|
|
@@ -414,7 +414,7 @@ function ts({
|
|
|
414
414
|
spellCheck: !1,
|
|
415
415
|
placeholder: "MATCH (o:`…`)-[:`…`]->(p:`…`) RETURN o.… AS id, … LIMIT 1000",
|
|
416
416
|
value: d,
|
|
417
|
-
onChange: (s) =>
|
|
417
|
+
onChange: (s) => O(s.target.value)
|
|
418
418
|
}
|
|
419
419
|
),
|
|
420
420
|
C.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: t.cypherParams, children: [
|
|
@@ -431,7 +431,7 @@ function ts({
|
|
|
431
431
|
size: "small",
|
|
432
432
|
variant: "borderless",
|
|
433
433
|
popupMatchSelectWidth: !1,
|
|
434
|
-
value:
|
|
434
|
+
value: P(s),
|
|
435
435
|
placeholder: r("workshopLab.cypher.pickVariable"),
|
|
436
436
|
options: T.map((a) => ({
|
|
437
437
|
value: a.name,
|
|
@@ -441,12 +441,12 @@ function ts({
|
|
|
441
441
|
}
|
|
442
442
|
)
|
|
443
443
|
] }, s)),
|
|
444
|
-
/* @__PURE__ */ e.jsx(
|
|
444
|
+
/* @__PURE__ */ e.jsx(Re, { title: r("workshopLab.cypher.paramsHint"), children: /* @__PURE__ */ e.jsx(Ke, { className: t.muted }) })
|
|
445
445
|
] })
|
|
446
446
|
] }),
|
|
447
|
-
|
|
447
|
+
W && /* @__PURE__ */ e.jsx(ie, { type: "error", showIcon: !0, message: W }),
|
|
448
448
|
/* @__PURE__ */ e.jsx(
|
|
449
|
-
|
|
449
|
+
Pe,
|
|
450
450
|
{
|
|
451
451
|
size: "small",
|
|
452
452
|
className: t.cypherTabs,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h as D, u as K, r as T, j as u, I as Q, c as V, l as W, f as G } from "./workshop-app-
|
|
2
|
-
import { a as B, a0 as X, a1 as Y, a2 as Z, a3 as _, a4 as nn, u as H, a5 as en, e as tn, n as C, T as R } from "./useLabData-
|
|
3
|
-
import { e as an } from "./generateCypher-
|
|
4
|
-
import { i as sn, s as y, c as on } from "./PageRenderer-
|
|
5
|
-
import { A as rn } from "./ActionFailure-
|
|
1
|
+
import { h as D, u as K, r as T, j as u, I as Q, c as V, l as W, f as G } from "./workshop-app-ByYXbgcn.js";
|
|
2
|
+
import { a as B, a0 as X, a1 as Y, a2 as Z, a3 as _, a4 as nn, u as H, a5 as en, e as tn, n as C, T as R } from "./useLabData-B-3UW8zF.js";
|
|
3
|
+
import { e as an } from "./generateCypher-BE_4YCWB.js";
|
|
4
|
+
import { i as sn, s as y, c as on } from "./PageRenderer-CkmvW4aO.js";
|
|
5
|
+
import { A as rn } from "./ActionFailure-xcSfKJYC.js";
|
|
6
6
|
const cn = (n, e) => `${n}\0${e}`;
|
|
7
7
|
function ln(n, e, s, r) {
|
|
8
8
|
const o = n.model?.landing;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as l, r as u,
|
|
1
|
+
import { N as l, r as u, O as d } from "./workshop-app-ByYXbgcn.js";
|
|
2
2
|
var t = {}, o;
|
|
3
3
|
function s() {
|
|
4
4
|
if (o) return t;
|
|
@@ -21,7 +21,7 @@ function c() {
|
|
|
21
21
|
const v = (e, n) => /* @__PURE__ */ u.createElement(d, c({}, e, {
|
|
22
22
|
ref: n,
|
|
23
23
|
icon: i
|
|
24
|
-
})),
|
|
24
|
+
})), O = /* @__PURE__ */ u.forwardRef(v);
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
O as R
|
|
27
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as v, j as t, u as La, p as va, i as sa, I as Na, a as C, k as Sa } from "./workshop-app-
|
|
2
|
-
import { e as Oa } from "./generateCypher-
|
|
3
|
-
import { u as la, c as Ca, d as Ta, g as $a, b as Ia, r as za, l as Ea, s as Ma, h as Aa, v as Pa, j as ea, k as ta, m as Ra, a as Da, T as Ga, o as _a, p as Ba, A as Fa, q as na, n as Ka, w as ia, x as Ja, y as Va, z as qa } from "./useLabData-
|
|
4
|
-
import { a as ca, u as Ha, E as Ua, C as ra, b as i, F as J, T as Xa, R as Ya, c as Qa } from "./PageRenderer-
|
|
1
|
+
import { r as v, j as t, u as La, p as va, i as sa, I as Na, a as C, k as Sa } from "./workshop-app-ByYXbgcn.js";
|
|
2
|
+
import { e as Oa } from "./generateCypher-BE_4YCWB.js";
|
|
3
|
+
import { u as la, c as Ca, d as Ta, g as $a, b as Ia, r as za, l as Ea, s as Ma, h as Aa, v as Pa, j as ea, k as ta, m as Ra, a as Da, T as Ga, o as _a, p as Ba, A as Fa, q as na, n as Ka, w as ia, x as Ja, y as Va, z as qa } from "./useLabData-B-3UW8zF.js";
|
|
4
|
+
import { a as ca, u as Ha, E as Ua, C as ra, b as i, F as J, T as Xa, R as Ya, c as Qa } from "./PageRenderer-CkmvW4aO.js";
|
|
5
5
|
const Wa = 10, Za = 2, V = (m, s) => JSON.stringify(m) === JSON.stringify(s), as = /^\d{4}-\d{2}-\d{2}$/, ss = (m, s) => m.type === "number" ? typeof s == "number" : m.type !== "date" || typeof s == "string" && as.test(s);
|
|
6
6
|
function es(m, s, b) {
|
|
7
7
|
const j = ia(m.params);
|