@omg-dev/app 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{ChangelogPage-BzsTWlhq.js → ChangelogPage-Cjj_DiYL.js} +33 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-K4lGGdJ4.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
- package/dist-lib/{TermView-CWr-zJmM.js → TermView-B4V-DyD-.js} +521 -530
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-P0yDhFOX.js → chat-engine-CUiDTHFP.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-DCafIpWL.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
- package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-CLYU5z7h.js → embedded-PUsgcSTE.js} +10592 -10725
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-CHwpwguS.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-BUz6b-IB.js → session-token-usage-DY4vFlfs.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-CXy85bsL.js → shipped-page-B-ruG8li.js} +233 -236
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-CUB9sK6V.js → streamdown-response-BQy3geXs.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { I as X } from "./chunk-2Q5K7J3B-CFSi414U.js";
|
|
2
|
+
import { p as O } from "./chunk-JWPE2WC7-DnwG7Xzp.js";
|
|
3
|
+
import { o as G, b as Y, s as F, p as P, g as j, a as q, _ as f, B as A, l as D, F as Z, e as U, z as N, q as J, i as K, ai as Q, D as ee, aj as te } from "./index-B0neMIbR.js";
|
|
4
|
+
import { p as ne } from "./cynefin-VYW2F7L2-XAY3mHv8.js";
|
|
5
|
+
var E = /[─━│┃└┗├┣]/, S = /[└┗├┣]/, re = /[─━]/, V = /^[\s│┃]+$/, $ = /^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/, k = /^\s*%%/, ie = " ";
|
|
6
|
+
function L(n) {
|
|
7
|
+
return n.some((e) => E.test(e));
|
|
8
|
+
}
|
|
9
|
+
f(L, "isBoxDrawingFormat");
|
|
10
|
+
function _(n) {
|
|
11
|
+
for (const e of n) {
|
|
12
|
+
const t = S.exec(e);
|
|
13
|
+
if (t?.index && t.index > 0)
|
|
14
|
+
return t.index;
|
|
15
|
+
}
|
|
16
|
+
return 4;
|
|
17
|
+
}
|
|
18
|
+
f(_, "inferSegmentWidth");
|
|
19
|
+
function M(n, e) {
|
|
20
|
+
return n.replace(/\bline\s+(\d+)\b/gi, (t, r) => {
|
|
21
|
+
const i = parseInt(r, 10), a = e.get(i);
|
|
22
|
+
return a ? `line ${a}` : t;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
f(M, "remapErrorLines");
|
|
26
|
+
function R(n) {
|
|
27
|
+
const e = n.split(`
|
|
28
|
+
`), t = /* @__PURE__ */ new Map();
|
|
29
|
+
let r = -1;
|
|
30
|
+
for (const [s, o] of e.entries())
|
|
31
|
+
if (o.trim() === "treeView-beta") {
|
|
32
|
+
r = s;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
if (r === -1)
|
|
36
|
+
return { text: n, lineMap: t };
|
|
37
|
+
const i = [];
|
|
38
|
+
for (let s = r + 1; s < e.length; s++) {
|
|
39
|
+
const o = e[s];
|
|
40
|
+
o.trim() === "" || k.test(o) || $.test(o) || V.test(o) || i.push(o.replace(/\t/g, " "));
|
|
41
|
+
}
|
|
42
|
+
if (!L(i))
|
|
43
|
+
return { text: n, lineMap: t };
|
|
44
|
+
const a = _(i), c = [];
|
|
45
|
+
let l = 0;
|
|
46
|
+
for (let s = 0; s <= r; s++)
|
|
47
|
+
c.push(e[s]), l++, t.set(l, s + 1);
|
|
48
|
+
for (let s = r + 1; s < e.length; s++) {
|
|
49
|
+
const o = e[s], h = o.trim(), p = s + 1;
|
|
50
|
+
if (h === "") {
|
|
51
|
+
c.push(o), l++, t.set(l, p);
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (k.test(o)) {
|
|
55
|
+
c.push(o), l++, t.set(l, p);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if ($.test(o)) {
|
|
59
|
+
c.push(o), l++, t.set(l, p);
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
if (V.test(o))
|
|
63
|
+
continue;
|
|
64
|
+
const d = o.replace(/\t/g, " "), w = S.exec(d);
|
|
65
|
+
if (w?.index !== void 0) {
|
|
66
|
+
const g = w.index, m = Math.round(g / a) + 1;
|
|
67
|
+
let u = g + 1;
|
|
68
|
+
for (; u < d.length && re.test(d[u]); )
|
|
69
|
+
u++;
|
|
70
|
+
for (; u < d.length && d[u] === " "; )
|
|
71
|
+
u++;
|
|
72
|
+
const v = d.slice(u).trimEnd();
|
|
73
|
+
if (!v)
|
|
74
|
+
throw new Error(
|
|
75
|
+
`Line ${p}: Empty node — expected a filename or directory name after the box-drawing prefix`
|
|
76
|
+
);
|
|
77
|
+
const W = ie.repeat(m);
|
|
78
|
+
c.push(W + v), l++, t.set(l, p);
|
|
79
|
+
} else {
|
|
80
|
+
if (/^[\s─━│┃└┗├┣]+$/.test(d))
|
|
81
|
+
continue;
|
|
82
|
+
if (E.test(d))
|
|
83
|
+
c.push(o), l++, t.set(l, p);
|
|
84
|
+
else {
|
|
85
|
+
if (/^\s+/.test(d))
|
|
86
|
+
throw new Error(
|
|
87
|
+
`Line ${p}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`
|
|
88
|
+
);
|
|
89
|
+
c.push(o), l++, t.set(l, p);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return { text: c.join(`
|
|
94
|
+
`), lineMap: t };
|
|
95
|
+
}
|
|
96
|
+
f(R, "preprocessBoxDrawing");
|
|
97
|
+
var x = new X(() => ({
|
|
98
|
+
cnt: 1,
|
|
99
|
+
stack: [
|
|
100
|
+
{
|
|
101
|
+
id: 0,
|
|
102
|
+
level: -1,
|
|
103
|
+
name: "/",
|
|
104
|
+
nodeType: "directory",
|
|
105
|
+
children: []
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
})), oe = /* @__PURE__ */ f(() => {
|
|
109
|
+
x.reset(), J();
|
|
110
|
+
}, "clear"), se = /* @__PURE__ */ f(() => x.records.stack[0], "getRoot"), ae = /* @__PURE__ */ f(() => x.records.cnt, "getCount"), ce = ee.treeView, le = /* @__PURE__ */ f(() => A(ce, N().treeView), "getConfig"), de = /* @__PURE__ */ f((n, e, t, r, i, a) => {
|
|
111
|
+
for (; n <= x.records.stack[x.records.stack.length - 1].level; )
|
|
112
|
+
x.records.stack.pop();
|
|
113
|
+
const c = {
|
|
114
|
+
id: x.records.cnt++,
|
|
115
|
+
level: n,
|
|
116
|
+
name: e,
|
|
117
|
+
nodeType: t,
|
|
118
|
+
icon: i,
|
|
119
|
+
cssClass: r,
|
|
120
|
+
description: a,
|
|
121
|
+
children: []
|
|
122
|
+
};
|
|
123
|
+
x.records.stack[x.records.stack.length - 1].children.push(c), x.records.stack.push(c);
|
|
124
|
+
}, "addNode"), he = {
|
|
125
|
+
clear: oe,
|
|
126
|
+
addNode: de,
|
|
127
|
+
getRoot: se,
|
|
128
|
+
getCount: ae,
|
|
129
|
+
getConfig: le,
|
|
130
|
+
getAccTitle: q,
|
|
131
|
+
getAccDescription: j,
|
|
132
|
+
getDiagramTitle: P,
|
|
133
|
+
setAccDescription: F,
|
|
134
|
+
setAccTitle: Y,
|
|
135
|
+
setDiagramTitle: G
|
|
136
|
+
}, I = he, pe = /* @__PURE__ */ f((n) => {
|
|
137
|
+
O(n, I);
|
|
138
|
+
for (const e of n.nodes) {
|
|
139
|
+
const t = typeof e.indent == "number" ? e.indent : 0;
|
|
140
|
+
let r = e.name;
|
|
141
|
+
const i = r.endsWith("/");
|
|
142
|
+
i && (r = r.slice(0, -1));
|
|
143
|
+
const a = i ? "directory" : "file", c = e.classAnnotation || void 0, l = e.iconAnnotation, s = l !== void 0 ? l || "none" : void 0, o = e.descAnnotation || void 0, h = o ? K(o, N()) : void 0;
|
|
144
|
+
I.addNode(t, r, a, c, s, h);
|
|
145
|
+
}
|
|
146
|
+
}, "populate"), fe = {
|
|
147
|
+
parse: /* @__PURE__ */ f(async (n) => {
|
|
148
|
+
const { text: e, lineMap: t } = R(n);
|
|
149
|
+
try {
|
|
150
|
+
const r = await ne("treeView", e);
|
|
151
|
+
D.debug(r), pe(r);
|
|
152
|
+
} catch (r) {
|
|
153
|
+
throw t.size > 0 && r instanceof Error && (r.message = M(r.message, t)), r;
|
|
154
|
+
}
|
|
155
|
+
}, "parse")
|
|
156
|
+
}, b = {
|
|
157
|
+
prefix: "mermaid-treeview",
|
|
158
|
+
height: 24,
|
|
159
|
+
width: 24,
|
|
160
|
+
icons: {
|
|
161
|
+
folder: {
|
|
162
|
+
body: '<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'
|
|
163
|
+
},
|
|
164
|
+
file: {
|
|
165
|
+
body: '<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
function z(n, e) {
|
|
170
|
+
const t = e?.filenameIcons?.[n];
|
|
171
|
+
if (t)
|
|
172
|
+
return t;
|
|
173
|
+
const r = n.lastIndexOf(".");
|
|
174
|
+
if (r > 0) {
|
|
175
|
+
const i = n.substring(r).toLowerCase(), a = e?.extensionIcons;
|
|
176
|
+
return a?.[i] ?? a?.[i.slice(1)];
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
f(z, "detectIcon");
|
|
180
|
+
function C(n, e) {
|
|
181
|
+
return n.includes(":") ? n : n in b.icons || !e ? `${b.prefix}:${n}` : `${e}:${n}`;
|
|
182
|
+
}
|
|
183
|
+
f(C, "qualifyIcon");
|
|
184
|
+
function B(n, e) {
|
|
185
|
+
if (n.icon !== "none") {
|
|
186
|
+
if (n.icon)
|
|
187
|
+
return C(n.icon, e.defaultIconPack);
|
|
188
|
+
if (e.showIcons) {
|
|
189
|
+
if (n.nodeType === "file") {
|
|
190
|
+
const t = z(n.name, e);
|
|
191
|
+
if (t === "none")
|
|
192
|
+
return;
|
|
193
|
+
if (t)
|
|
194
|
+
return C(t, e.defaultIconPack);
|
|
195
|
+
}
|
|
196
|
+
return `${b.prefix}:${n.nodeType === "directory" ? "folder" : "file"}`;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
f(B, "getNodeIcon");
|
|
201
|
+
te([
|
|
202
|
+
{
|
|
203
|
+
name: b.prefix,
|
|
204
|
+
icons: b
|
|
205
|
+
}
|
|
206
|
+
]);
|
|
207
|
+
var y = 14, ge = 4, ue = 16, H = /* @__PURE__ */ f((n, e) => `tv-icon-${n}-${e.replace(/[^\w-]/g, "-")}`, "iconSymbolId"), we = /* @__PURE__ */ f(async (n, e, t, r) => {
|
|
208
|
+
const i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ f((s) => {
|
|
209
|
+
const o = B(s, t);
|
|
210
|
+
o && i.add(o), s.children.forEach(a);
|
|
211
|
+
}, "collect");
|
|
212
|
+
if (a(e), i.size === 0)
|
|
213
|
+
return;
|
|
214
|
+
const c = await Promise.all(
|
|
215
|
+
[...i].map(async (s) => ({
|
|
216
|
+
icon: s,
|
|
217
|
+
svg: await Q(s, {
|
|
218
|
+
height: y,
|
|
219
|
+
width: y
|
|
220
|
+
})
|
|
221
|
+
}))
|
|
222
|
+
), l = n.append("defs");
|
|
223
|
+
for (const { icon: s, svg: o } of c)
|
|
224
|
+
l.append("g").attr("id", H(r, s)).html(o);
|
|
225
|
+
}, "injectIconDefs"), me = /* @__PURE__ */ f((n, e, t, r, i, a) => {
|
|
226
|
+
const c = r.append("g");
|
|
227
|
+
let l = "treeView-node-label";
|
|
228
|
+
t.nodeType === "directory" && (l += " treeView-node-dir"), t.cssClass && (l += ` ${t.cssClass}`);
|
|
229
|
+
const s = y + ge, o = B(t, i), h = o !== void 0;
|
|
230
|
+
o && c.append("use").attr("xlink:href", `#${H(a, o)}`).attr("x", n + i.paddingX).attr("y", e + i.paddingY).attr("class", "treeView-node-icon");
|
|
231
|
+
const p = c.append("text").text(t.name).attr("dominant-baseline", "middle").attr("class", l), { height: d, width: w } = p.node().getBBox(), g = d + i.paddingY * 2, m = n + i.paddingX + (h ? s : 0);
|
|
232
|
+
p.attr("x", m), p.attr("y", e + g / 2);
|
|
233
|
+
const u = m + w, v = w + i.paddingX * 2 + (h ? s : 0);
|
|
234
|
+
return t.BBox = { x: n, y: e, width: v, height: g }, t.cssClass?.split(/\s+/).includes("highlight") && c.insert("rect", ":first-child").attr("x", n).attr("y", e + 1).attr("width", 0).attr("height", g - 2).attr("rx", 3).attr("class", "treeView-highlight-bg"), { node: t, nodeGroup: c, labelRightEdge: u, centerY: e + g / 2 };
|
|
235
|
+
}, "positionLabel"), T = /* @__PURE__ */ f((n, e, t, r, i, a) => n.append("line").attr("x1", e).attr("y1", t).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), xe = /* @__PURE__ */ f((n, e, t, r) => {
|
|
236
|
+
let i = 0, a = 0;
|
|
237
|
+
const c = [], l = /* @__PURE__ */ f((h, p, d, w) => {
|
|
238
|
+
const g = w * (d.rowIndent + d.paddingX), m = me(g, i, p, h, d, r);
|
|
239
|
+
c.push(m);
|
|
240
|
+
const { height: u, width: v } = p.BBox;
|
|
241
|
+
T(
|
|
242
|
+
h,
|
|
243
|
+
g - d.rowIndent,
|
|
244
|
+
i + u / 2,
|
|
245
|
+
g,
|
|
246
|
+
i + u / 2,
|
|
247
|
+
d.lineThickness
|
|
248
|
+
), a = Math.max(a, g + v), i += u;
|
|
249
|
+
}, "drawNode"), s = /* @__PURE__ */ f((h, p = 0) => {
|
|
250
|
+
l(n, h, t, p), h.children.forEach((m) => {
|
|
251
|
+
s(m, p + 1);
|
|
252
|
+
});
|
|
253
|
+
const { x: d, y: w, height: g } = h.BBox;
|
|
254
|
+
if (h.children.length) {
|
|
255
|
+
const { y: m, height: u } = h.children[h.children.length - 1].BBox;
|
|
256
|
+
T(
|
|
257
|
+
n,
|
|
258
|
+
d + t.paddingX,
|
|
259
|
+
w + g,
|
|
260
|
+
d + t.paddingX,
|
|
261
|
+
m + u / 2 + t.lineThickness / 2,
|
|
262
|
+
t.lineThickness
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
}, "processNode");
|
|
266
|
+
s(e);
|
|
267
|
+
const o = c.filter((h) => h.node.description);
|
|
268
|
+
if (o.length > 0) {
|
|
269
|
+
const p = Math.max(...c.map((d) => d.labelRightEdge)) + ue;
|
|
270
|
+
for (const d of o) {
|
|
271
|
+
const g = d.nodeGroup.append("text").text(d.node.description).attr("dominant-baseline", "middle").attr("class", "treeView-node-description").attr("x", p).attr("y", d.centerY).node().getBBox();
|
|
272
|
+
a = Math.max(a, p + g.width + t.paddingX);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
for (const h of c)
|
|
276
|
+
if (h.node.cssClass?.split(/\s+/).includes("highlight")) {
|
|
277
|
+
const p = h.nodeGroup.select(".treeView-highlight-bg");
|
|
278
|
+
if (!p.empty()) {
|
|
279
|
+
const d = a - h.node.BBox.x + 8;
|
|
280
|
+
p.attr("width", d), a = Math.max(a, h.node.BBox.x + d + 2);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return { totalHeight: i, totalWidth: a };
|
|
284
|
+
}, "drawTree"), ve = /* @__PURE__ */ f(async (n, e, t, r) => {
|
|
285
|
+
D.debug(`Rendering treeView diagram
|
|
286
|
+
` + n);
|
|
287
|
+
const i = r.db, a = i.getRoot(), c = i.getConfig(), l = Z(e);
|
|
288
|
+
await we(l, a, c, e);
|
|
289
|
+
const s = l.append("g");
|
|
290
|
+
s.attr("class", "tree-view");
|
|
291
|
+
const { totalHeight: o, totalWidth: h } = xe(s, a, c, e);
|
|
292
|
+
l.attr("viewBox", `-${c.lineThickness / 2} 0 ${h} ${o}`), U(l, o, h, c.useMaxWidth);
|
|
293
|
+
}, "draw"), be = {
|
|
294
|
+
draw: ve
|
|
295
|
+
}, Ie = be, Ce = {
|
|
296
|
+
labelFontSize: "16px",
|
|
297
|
+
labelColor: "black",
|
|
298
|
+
lineColor: "black",
|
|
299
|
+
iconColor: "#546e7a",
|
|
300
|
+
descriptionColor: "#6a9955",
|
|
301
|
+
highlightBg: "rgba(255, 193, 7, 0.15)",
|
|
302
|
+
highlightStroke: "#ffc107"
|
|
303
|
+
}, ye = /* @__PURE__ */ f(({
|
|
304
|
+
treeView: n
|
|
305
|
+
}) => {
|
|
306
|
+
const {
|
|
307
|
+
labelFontSize: e,
|
|
308
|
+
labelColor: t,
|
|
309
|
+
lineColor: r,
|
|
310
|
+
iconColor: i,
|
|
311
|
+
descriptionColor: a,
|
|
312
|
+
highlightBg: c,
|
|
313
|
+
highlightStroke: l
|
|
314
|
+
} = A(Ce, n);
|
|
315
|
+
return `
|
|
316
|
+
.treeView-node-label {
|
|
317
|
+
font-size: ${e};
|
|
318
|
+
fill: ${t};
|
|
319
|
+
white-space: pre;
|
|
320
|
+
}
|
|
321
|
+
.treeView-node-dir {
|
|
322
|
+
font-weight: bold;
|
|
323
|
+
}
|
|
324
|
+
.treeView-node-line {
|
|
325
|
+
stroke: ${r};
|
|
326
|
+
}
|
|
327
|
+
.treeView-node-icon {
|
|
328
|
+
color: ${i};
|
|
329
|
+
}
|
|
330
|
+
.treeView-node-description {
|
|
331
|
+
font-size: ${e};
|
|
332
|
+
fill: ${a};
|
|
333
|
+
font-style: italic;
|
|
334
|
+
white-space: pre;
|
|
335
|
+
}
|
|
336
|
+
.treeView-highlight-bg {
|
|
337
|
+
fill: ${c};
|
|
338
|
+
stroke: ${l};
|
|
339
|
+
stroke-width: 1;
|
|
340
|
+
}
|
|
341
|
+
`;
|
|
342
|
+
}, "styles"), Be = ye, Ae = {
|
|
343
|
+
db: I,
|
|
344
|
+
renderer: Ie,
|
|
345
|
+
parser: fe,
|
|
346
|
+
styles: Be
|
|
347
|
+
};
|
|
348
|
+
export {
|
|
349
|
+
Ae as diagram
|
|
350
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as k } from "./chunk-JWPE2WC7-
|
|
2
|
-
import { s as R, g as F, p as I, o as _, a as D, b as E, _ as c, F as z, q as P, B as y, z as C, D as G, l as B, W, e as V } from "./index-
|
|
3
|
-
import { p as H } from "./cynefin-VYW2F7L2-
|
|
1
|
+
import { p as k } from "./chunk-JWPE2WC7-DnwG7Xzp.js";
|
|
2
|
+
import { s as R, g as F, p as I, o as _, a as D, b as E, _ as c, F as z, q as P, B as y, z as C, D as G, l as B, W, e as V } from "./index-B0neMIbR.js";
|
|
3
|
+
import { p as H } from "./cynefin-VYW2F7L2-XAY3mHv8.js";
|
|
4
4
|
var h = {
|
|
5
5
|
showLegend: !0,
|
|
6
6
|
ticks: 5,
|
|
@@ -32,26 +32,22 @@ var h = {
|
|
|
32
32
|
if (t.length === 0)
|
|
33
33
|
throw new Error("Axes must be populated before curves for reference entries");
|
|
34
34
|
return t.map((e) => {
|
|
35
|
-
const r = a.find((s) =>
|
|
36
|
-
var n;
|
|
37
|
-
return ((n = s.axis) == null ? void 0 : n.$refText) === e.name;
|
|
38
|
-
});
|
|
35
|
+
const r = a.find((s) => s.axis?.$refText === e.name);
|
|
39
36
|
if (r === void 0)
|
|
40
37
|
throw new Error("Missing entry for axis " + e.label);
|
|
41
38
|
return r.value;
|
|
42
39
|
});
|
|
43
40
|
}, "computeCurveEntries"), J = /* @__PURE__ */ c((a) => {
|
|
44
|
-
var e, r, s, n, l;
|
|
45
41
|
const t = a.reduce(
|
|
46
|
-
(
|
|
42
|
+
(e, r) => (e[r.name] = r, e),
|
|
47
43
|
{}
|
|
48
44
|
);
|
|
49
45
|
x.options = {
|
|
50
|
-
showLegend:
|
|
51
|
-
ticks:
|
|
52
|
-
max:
|
|
53
|
-
min:
|
|
54
|
-
graticule:
|
|
46
|
+
showLegend: t.showLegend?.value ?? h.showLegend,
|
|
47
|
+
ticks: t.ticks?.value ?? h.ticks,
|
|
48
|
+
max: t.max?.value ?? h.max,
|
|
49
|
+
min: t.min?.value ?? h.min,
|
|
50
|
+
graticule: t.graticule?.value ?? h.graticule
|
|
55
51
|
};
|
|
56
52
|
}, "setOptions"), K = /* @__PURE__ */ c(() => {
|
|
57
53
|
P(), x = structuredClone(w);
|
|
@@ -80,8 +76,8 @@ var h = {
|
|
|
80
76
|
B.debug(t), Q(t);
|
|
81
77
|
}, "parse")
|
|
82
78
|
}, et = /* @__PURE__ */ c((a, t, e, r) => {
|
|
83
|
-
const s = r.db,
|
|
84
|
-
rt(u,
|
|
79
|
+
const s = r.db, i = s.getAxes(), l = s.getCurves(), n = s.getOptions(), o = s.getConfig(), d = s.getDiagramTitle(), p = z(t), u = at(p, o), g = n.max ?? Math.max(...l.map((f) => Math.max(...f.entries))), m = n.min, v = Math.min(o.width, o.height) / 2;
|
|
80
|
+
rt(u, i, v, n.ticks, n.graticule), st(u, i, v, o), A(u, i, l, m, g, n.graticule, o), T(u, l, n.showLegend, o), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -o.height / 2 - o.marginTop);
|
|
85
81
|
}, "draw"), at = /* @__PURE__ */ c((a, t) => {
|
|
86
82
|
const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
|
|
87
83
|
x: t.marginLeft + t.width / 2,
|
|
@@ -90,39 +86,39 @@ var h = {
|
|
|
90
86
|
return V(a, r, e, t.useMaxWidth ?? !0), a.attr("viewBox", `0 0 ${e} ${r}`).attr("overflow", "visible"), a.append("g").attr("transform", `translate(${s.x}, ${s.y})`);
|
|
91
87
|
}, "drawFrame"), rt = /* @__PURE__ */ c((a, t, e, r, s) => {
|
|
92
88
|
if (s === "circle")
|
|
93
|
-
for (let
|
|
94
|
-
const l = e * (
|
|
89
|
+
for (let i = 0; i < r; i++) {
|
|
90
|
+
const l = e * (i + 1) / r;
|
|
95
91
|
a.append("circle").attr("r", l).attr("class", "radarGraticule");
|
|
96
92
|
}
|
|
97
93
|
else if (s === "polygon") {
|
|
98
|
-
const
|
|
94
|
+
const i = t.length;
|
|
99
95
|
for (let l = 0; l < r; l++) {
|
|
100
|
-
const
|
|
101
|
-
const u = 2 * p * Math.PI /
|
|
96
|
+
const n = e * (l + 1) / r, o = t.map((d, p) => {
|
|
97
|
+
const u = 2 * p * Math.PI / i - Math.PI / 2, g = n * Math.cos(u), m = n * Math.sin(u);
|
|
102
98
|
return `${g},${m}`;
|
|
103
99
|
}).join(" ");
|
|
104
|
-
a.append("polygon").attr("points",
|
|
100
|
+
a.append("polygon").attr("points", o).attr("class", "radarGraticule");
|
|
105
101
|
}
|
|
106
102
|
}
|
|
107
103
|
}, "drawGraticule"), st = /* @__PURE__ */ c((a, t, e, r) => {
|
|
108
104
|
const s = t.length;
|
|
109
|
-
for (let
|
|
110
|
-
const l = t[
|
|
111
|
-
a.append("line").attr("x1", 0).attr("y1", 0).attr("x2", e * r.axisScaleFactor *
|
|
112
|
-
const p =
|
|
113
|
-
a.append("text").text(l).attr("x", e * r.axisLabelFactor *
|
|
105
|
+
for (let i = 0; i < s; i++) {
|
|
106
|
+
const l = t[i].label, n = 2 * i * Math.PI / s - Math.PI / 2, o = Math.cos(n), d = Math.sin(n);
|
|
107
|
+
a.append("line").attr("x1", 0).attr("y1", 0).attr("x2", e * r.axisScaleFactor * o).attr("y2", e * r.axisScaleFactor * d).attr("class", "radarAxisLine");
|
|
108
|
+
const p = o > 0.01 ? "start" : o < -0.01 ? "end" : "middle", u = d > 0.01 ? "hanging" : d < -0.01 ? "auto" : "central", g = 4;
|
|
109
|
+
a.append("text").text(l).attr("x", e * r.axisLabelFactor * o + g * o).attr("y", e * r.axisLabelFactor * d + g * d).attr("text-anchor", p).attr("dominant-baseline", u).attr("class", "radarAxisLabel");
|
|
114
110
|
}
|
|
115
111
|
}, "drawAxes");
|
|
116
|
-
function A(a, t, e, r, s,
|
|
117
|
-
const
|
|
112
|
+
function A(a, t, e, r, s, i, l) {
|
|
113
|
+
const n = t.length, o = Math.min(l.width, l.height) / 2;
|
|
118
114
|
e.forEach((d, p) => {
|
|
119
|
-
if (d.entries.length !==
|
|
115
|
+
if (d.entries.length !== n)
|
|
120
116
|
return;
|
|
121
117
|
const u = d.entries.map((g, m) => {
|
|
122
|
-
const v = 2 * Math.PI * m /
|
|
118
|
+
const v = 2 * Math.PI * m / n - Math.PI / 2, f = M(g, r, s, o), S = f * Math.cos(v), O = f * Math.sin(v);
|
|
123
119
|
return { x: S, y: O };
|
|
124
120
|
});
|
|
125
|
-
|
|
121
|
+
i === "circle" ? a.append("path").attr("d", L(u, l.curveTension)).attr("class", `radarCurve-${p}`) : i === "polygon" && a.append("polygon").attr("points", u.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${p}`);
|
|
126
122
|
});
|
|
127
123
|
}
|
|
128
124
|
c(A, "drawCurves");
|
|
@@ -135,14 +131,14 @@ function L(a, t) {
|
|
|
135
131
|
const e = a.length;
|
|
136
132
|
let r = `M${a[0].x},${a[0].y}`;
|
|
137
133
|
for (let s = 0; s < e; s++) {
|
|
138
|
-
const
|
|
139
|
-
x: l.x + (
|
|
140
|
-
y: l.y + (
|
|
134
|
+
const i = a[(s - 1 + e) % e], l = a[s], n = a[(s + 1) % e], o = a[(s + 2) % e], d = {
|
|
135
|
+
x: l.x + (n.x - i.x) * t,
|
|
136
|
+
y: l.y + (n.y - i.y) * t
|
|
141
137
|
}, p = {
|
|
142
|
-
x:
|
|
143
|
-
y:
|
|
138
|
+
x: n.x - (o.x - l.x) * t,
|
|
139
|
+
y: n.y - (o.y - l.y) * t
|
|
144
140
|
};
|
|
145
|
-
r += ` C${d.x},${d.y} ${p.x},${p.y} ${
|
|
141
|
+
r += ` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`;
|
|
146
142
|
}
|
|
147
143
|
return `${r} Z`;
|
|
148
144
|
}
|
|
@@ -150,10 +146,10 @@ c(L, "closedRoundCurve");
|
|
|
150
146
|
function T(a, t, e, r) {
|
|
151
147
|
if (!e)
|
|
152
148
|
return;
|
|
153
|
-
const s = (r.width / 2 + r.marginRight) * 3 / 4,
|
|
154
|
-
t.forEach((
|
|
155
|
-
const d = a.append("g").attr("transform", `translate(${s}, ${
|
|
156
|
-
d.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${
|
|
149
|
+
const s = (r.width / 2 + r.marginRight) * 3 / 4, i = -(r.height / 2 + r.marginTop) * 3 / 4, l = 20;
|
|
150
|
+
t.forEach((n, o) => {
|
|
151
|
+
const d = a.append("g").attr("transform", `translate(${s}, ${i + o * l})`);
|
|
152
|
+
d.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${o}`), d.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(n.label);
|
|
157
153
|
});
|
|
158
154
|
}
|
|
159
155
|
c(T, "drawLegend");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as l, r as m, d as n } from "./chunk-MOJQB5TN-
|
|
2
|
-
import { p } from "./chunk-JWPE2WC7-
|
|
3
|
-
import { _ as t, l as o } from "./index-
|
|
4
|
-
import { M as u, a as f } from "./cynefin-VYW2F7L2-
|
|
1
|
+
import { g as l, r as m, d as n } from "./chunk-MOJQB5TN-BrENeFT5.js";
|
|
2
|
+
import { p } from "./chunk-JWPE2WC7-DnwG7Xzp.js";
|
|
3
|
+
import { _ as t, l as o } from "./index-B0neMIbR.js";
|
|
4
|
+
import { M as u, a as f } from "./cynefin-VYW2F7L2-XAY3mHv8.js";
|
|
5
5
|
var c = f().RailroadEbnf.parser.LangiumParser, s = /* @__PURE__ */ t((e) => {
|
|
6
6
|
const r = e.alternatives.map(E);
|
|
7
7
|
return r.length === 1 ? r[0] : {
|