@leanspec/ui-components 0.2.21 → 0.2.23
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/{_baseUniq-KSDS6tgF.js → _baseUniq-C4bkXOdh.js} +2 -2
- package/dist/{_baseUniq-ifpVq4u5.cjs → _baseUniq-NOqaX5H-.cjs} +1 -1
- package/dist/{arc-C-X5Xt_b.js → arc-DFohBtPV.js} +1 -1
- package/dist/{arc-CutFaiCL.cjs → arc-tyrH719b.cjs} +1 -1
- package/dist/{architecture-U656AL7Q-BB1A66AM.js → architecture-U656AL7Q-BBwC7kfZ.js} +1 -1
- package/dist/{architecture-U656AL7Q-DOVRDeZr.cjs → architecture-U656AL7Q-SovojSOj.cjs} +1 -1
- package/dist/architectureDiagram-VXUJARFQ-C4hhcqJd.cjs +36 -0
- package/dist/{architectureDiagram-VXUJARFQ-Bal8NTn4.js → architectureDiagram-VXUJARFQ-_R9_zrc5.js} +1272 -1279
- package/dist/{blockDiagram-VD42YOAC-B2gTo5wW.js → blockDiagram-VD42YOAC-CiyHYW6w.js} +911 -920
- package/dist/blockDiagram-VD42YOAC-DDU7DL-t.cjs +122 -0
- package/dist/c4Diagram-YG6GDRKO-B2Hnd24N.cjs +10 -0
- package/dist/{c4Diagram-YG6GDRKO-dIf_vNCY.js → c4Diagram-YG6GDRKO-D9NuNc3r.js} +162 -163
- package/dist/channel-CCjQuxFu.cjs +1 -0
- package/dist/{channel-klR7o7JB.js → channel-mhjF1lKa.js} +1 -1
- package/dist/chunk-4BX2VUAB-8sPjSRf4.cjs +1 -0
- package/dist/chunk-4BX2VUAB-D4Zhvat9.js +8 -0
- package/dist/{chunk-55IACEB6-C88Xx0rU.cjs → chunk-55IACEB6-BuOA2zgr.cjs} +1 -1
- package/dist/{chunk-55IACEB6-Dd3NjClm.js → chunk-55IACEB6-C_MzxCLx.js} +1 -1
- package/dist/{chunk-B4BG7PRW-BTU_nPVE.cjs → chunk-B4BG7PRW-C0iFhfj1.cjs} +6 -6
- package/dist/{chunk-B4BG7PRW-DLUrgkJI.js → chunk-B4BG7PRW-Q8H7OQ1o.js} +247 -248
- package/dist/chunk-DI55MBZ5-DFTfH1ih.cjs +220 -0
- package/dist/{chunk-DI55MBZ5-BwHLqSW9.js → chunk-DI55MBZ5-qwPYmgAw.js} +440 -452
- package/dist/{chunk-FMBD7UC4-CedTj9g2.cjs → chunk-FMBD7UC4-CPX03hX9.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-6dsbMKM7.js → chunk-FMBD7UC4-DhXvRHU3.js} +1 -1
- package/dist/chunk-QN33PNHL-BL0nCK1x.cjs +1 -0
- package/dist/chunk-QN33PNHL-CLwAcvO2.js +19 -0
- package/dist/{chunk-QZHKN3VN-CVAEdzef.js → chunk-QZHKN3VN-3tLb49S_.js} +1 -1
- package/dist/{chunk-QZHKN3VN-CU1cLvn7.cjs → chunk-QZHKN3VN-NXe7XoPI.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-Dy6zxWyY.cjs → chunk-TZMSLE5B-DG9JqGDb.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-Cc8_PJIq.js → chunk-TZMSLE5B-DfaYobmr.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-CJQWUYqu.cjs → classDiagram-2ON5EDUG-CV-RQXaH.cjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-D7bjndmT.js → classDiagram-2ON5EDUG-xB0RyXwt.js} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CJQWUYqu.cjs → classDiagram-v2-WZHVMYZB-CV-RQXaH.cjs} +1 -1
- package/dist/{classDiagram-2ON5EDUG-D7bjndmT.js → classDiagram-v2-WZHVMYZB-xB0RyXwt.js} +2 -2
- package/dist/clone-Db2amhxD.cjs +1 -0
- package/dist/{clone-7srXemyd.js → clone-DqT6If4_.js} +1 -1
- package/dist/{code-block-37QAKDTI-MRm4xHKr.js → code-block-37QAKDTI-CWOOD74I.js} +1 -1
- package/dist/{code-block-37QAKDTI-BAYBliUK.cjs → code-block-37QAKDTI-uxfAy-E5.cjs} +1 -1
- package/dist/components/graph/dependency-graph.d.ts.map +1 -1
- package/dist/components/hierarchy/hierarchy-tree.d.ts +24 -0
- package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -0
- package/dist/components/hierarchy/index.d.ts +2 -0
- package/dist/components/hierarchy/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/loading-skeletons.d.ts +39 -0
- package/dist/components/layout/loading-skeletons.d.ts.map +1 -1
- package/dist/components/spec/spec-card.d.ts +1 -1
- package/dist/components/spec/spec-card.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +3 -3
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-0O3dLIoy.js → cose-bilkent-S5V4N54A-DBS7wwrE.js} +281 -281
- package/dist/cose-bilkent-S5V4N54A-SbkkFEUD.cjs +1 -0
- package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
- package/dist/{cytoscape.esm-CjI2IsL8.js → cytoscape.esm-Cvf3sx9F.js} +18 -49
- package/dist/dagre-6UL2VRFP-Lv6cE2gX.js +443 -0
- package/dist/dagre-6UL2VRFP-PalD6t9U.cjs +4 -0
- package/dist/{diagram-PSM6KHXK-s2xYLlND.js → diagram-PSM6KHXK-8QKT-Vki.js} +17 -19
- package/dist/diagram-PSM6KHXK-v8YbZXb0.cjs +24 -0
- package/dist/{diagram-QEK2KX5R-D700jvoY.js → diagram-QEK2KX5R-Bqh-tlSV.js} +10 -14
- package/dist/diagram-QEK2KX5R-BzjP3pVl.cjs +43 -0
- package/dist/{diagram-S2PKOQOG-BkgBSa1Q.js → diagram-S2PKOQOG-Csj0p-s-.js} +22 -23
- package/dist/diagram-S2PKOQOG-IkbiPUJ8.cjs +24 -0
- package/dist/{erDiagram-Q2GNP2WA-DKKIPwgH.cjs → erDiagram-Q2GNP2WA-BkUigWGJ.cjs} +3 -3
- package/dist/{erDiagram-Q2GNP2WA-CXv6THpi.js → erDiagram-Q2GNP2WA-sDpapMNP.js} +73 -74
- package/dist/{flowDiagram-NV44I4VS-Dsrv00Gy.js → flowDiagram-NV44I4VS-CitCGiJE.js} +438 -445
- package/dist/flowDiagram-NV44I4VS-CkSnWJRl.cjs +162 -0
- package/dist/{ganttDiagram-JELNMOA3-BuwyOUxF.cjs → ganttDiagram-JELNMOA3-7lQJBEfz.cjs} +1 -1
- package/dist/{ganttDiagram-JELNMOA3-CqVYbgbk.js → ganttDiagram-JELNMOA3-DAaUYzNs.js} +2 -2
- package/dist/{gitGraph-F6HP7TQM-BtoBLEOj.cjs → gitGraph-F6HP7TQM-BOxOUe-M.cjs} +1 -1
- package/dist/{gitGraph-F6HP7TQM-q5owfB75.js → gitGraph-F6HP7TQM-C2AsvVF3.js} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-ZRyPj0Wi.cjs +65 -0
- package/dist/gitGraphDiagram-NY62KEGX-lj732X3H.js +699 -0
- package/dist/{graph-rt_wscbL.js → graph-Bg_3T7Ud.js} +2 -2
- package/dist/{graph-CxpBbnBw.cjs → graph-Cu_dYuuO.cjs} +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-spec-sync.d.ts +13 -0
- package/dist/hooks/use-spec-sync.d.ts.map +1 -0
- package/dist/index-Dy6CZ8M8.cjs +2103 -0
- package/dist/{index-BsdeQX2F.js → index-sw7mRKux.js} +32343 -31696
- package/dist/index.cjs +1 -1
- package/dist/index.js +525 -503
- package/dist/{info-NVLQJR56-Ctx23Jwq.cjs → info-NVLQJR56-CVPwWxmd.cjs} +1 -1
- package/dist/info-NVLQJR56-CkwixcJh.js +5 -0
- package/dist/{infoDiagram-WHAUD3N6-ICmXrgfx.cjs → infoDiagram-WHAUD3N6-BMwDBsqy.cjs} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-Fq8ToFQ6.js → infoDiagram-WHAUD3N6-BbjOpAi3.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-BzZgPZwu.js → journeyDiagram-XKPGCS4Q-Cx34P8cj.js} +4 -4
- package/dist/{journeyDiagram-XKPGCS4Q-BkYLuV5M.cjs → journeyDiagram-XKPGCS4Q-owe1muzO.cjs} +1 -1
- package/dist/kanban-definition-3W4ZIXB7-BG76XYj7.cjs +89 -0
- package/dist/kanban-definition-3W4ZIXB7-BP3ykzKL.js +719 -0
- package/dist/{layout-CeChnsru.cjs → layout-BM-_iYaN.cjs} +1 -1
- package/dist/{layout-CX9neEHw.js → layout-Bft_7Aja.js} +4 -4
- package/dist/lib/hierarchy.d.ts +18 -0
- package/dist/lib/hierarchy.d.ts.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/{linear-CkUVga7d.js → linear-BDIyMYXP.js} +1 -1
- package/dist/{linear-DLfe3Is-.cjs → linear-DTAQTaEQ.cjs} +1 -1
- package/dist/{mermaid-4DMBBIKO-DK6bOe0l.cjs → mermaid-4DMBBIKO-B7O_d629.cjs} +1 -1
- package/dist/mermaid-4DMBBIKO-hCNdiULh.js +4 -0
- package/dist/{mermaid-parser.core-B7VTdQ1C.js → mermaid-parser.core-BQu7eTx9.js} +2740 -2756
- package/dist/mermaid-parser.core-DYuBLIYw.cjs +128 -0
- package/dist/{min-C_bmS8M7.cjs → min-B_0S1fKc.cjs} +1 -1
- package/dist/{min-Ar5ebLd-.js → min-g4o2CnuX.js} +2 -2
- package/dist/mindmap-definition-VGOIOE7T-CkItDrx9.cjs +68 -0
- package/dist/{mindmap-definition-VGOIOE7T-DeGZNL21.js → mindmap-definition-VGOIOE7T-CteUNe1z.js} +166 -169
- package/dist/{ordinal-DfAQgscy.js → ordinal-B6-f3MAq.js} +1 -1
- package/dist/{packet-BFZMPI3H-DFZzoAsC.js → packet-BFZMPI3H-85mavqoW.js} +1 -1
- package/dist/{packet-BFZMPI3H-BVRarKKV.cjs → packet-BFZMPI3H-Dvo7vnhK.cjs} +1 -1
- package/dist/{pie-7BOR55EZ-0edBRKAY.cjs → pie-7BOR55EZ-CSQSin36.cjs} +1 -1
- package/dist/pie-7BOR55EZ-DEUNQ2Gx.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-Ceq-kf3C.cjs → pieDiagram-ADFJNKIX-BHhXUCfj.cjs} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-C_V2NX6O.js → pieDiagram-ADFJNKIX-COS6mtim.js} +21 -21
- package/dist/quadrantDiagram-AYHSOK5B-D_HlZ7yZ.cjs +7 -0
- package/dist/{quadrantDiagram-AYHSOK5B-B8fSnYQi.js → quadrantDiagram-AYHSOK5B-DmRa7VCS.js} +227 -229
- package/dist/{radar-NHE76QYJ-gAJ22qc7.cjs → radar-NHE76QYJ-BcVzBWDr.cjs} +1 -1
- package/dist/radar-NHE76QYJ-CdgX_Cpr.js +5 -0
- package/dist/{requirementDiagram-UZGBJVZJ-D6BE-Q1l.cjs → requirementDiagram-UZGBJVZJ-BHFRZggR.cjs} +7 -7
- package/dist/{requirementDiagram-UZGBJVZJ-MnXD59Yw.js → requirementDiagram-UZGBJVZJ-CcQIz-20.js} +186 -188
- package/dist/{sankeyDiagram-TZEHDZUN-Dx8_KSIc.cjs → sankeyDiagram-TZEHDZUN-CSkEJj9g.cjs} +5 -5
- package/dist/{sankeyDiagram-TZEHDZUN-Dfyu7oJ6.js → sankeyDiagram-TZEHDZUN-CpcshR0Z.js} +186 -186
- package/dist/{sequenceDiagram-WL72ISMW-D2pgAoWi.js → sequenceDiagram-WL72ISMW-B1iDbV8x.js} +213 -220
- package/dist/{sequenceDiagram-WL72ISMW-CUYHrDfm.cjs → sequenceDiagram-WL72ISMW-DscxgBA5.cjs} +16 -16
- package/dist/{stateDiagram-FKZM4ZOC-DYV-na53.js → stateDiagram-FKZM4ZOC-DIutB6RS.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-CtYt1Ixa.cjs → stateDiagram-FKZM4ZOC-c19kgfCN.cjs} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-Kp4sxr9o.js → stateDiagram-v2-4FDKWEC3-BKEaZomO.js} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-CeSnHO3T.cjs → stateDiagram-v2-4FDKWEC3-CCn-Iy_C.cjs} +1 -1
- package/dist/timeline-definition-IT6M3QCI-CfRSUfqZ.cjs +61 -0
- package/dist/{timeline-definition-IT6M3QCI-621ePKJ0.js → timeline-definition-IT6M3QCI-D1yY4TSO.js} +211 -215
- package/dist/{treemap-KMMF4GRG-DSNryTu7.cjs → treemap-KMMF4GRG-Cn6nuBab.cjs} +1 -1
- package/dist/{treemap-KMMF4GRG-l6HrdCLC.js → treemap-KMMF4GRG-KtkxYt13.js} +1 -1
- package/dist/types/specs.d.ts +2 -0
- package/dist/types/specs.d.ts.map +1 -1
- package/dist/ui-components.css +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-C2_xziD5.cjs → xychartDiagram-PRI3JC2R-OeJ2-Nwx.cjs} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-CkfCv2o_.js → xychartDiagram-PRI3JC2R-a_g9ptTp.js} +3 -3
- package/package.json +5 -2
- package/dist/architectureDiagram-VXUJARFQ-WCtQIdet.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-CGdaLv7H.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-DfRXyZHM.cjs +0 -10
- package/dist/channel-CMrUjUoZ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-BQgzc1Sm.js +0 -9
- package/dist/chunk-4BX2VUAB-CO5acanJ.cjs +0 -1
- package/dist/chunk-DI55MBZ5-lVvJu2kr.cjs +0 -220
- package/dist/chunk-QN33PNHL-DHNejhbC.js +0 -20
- package/dist/chunk-QN33PNHL-Dr9ghdFD.cjs +0 -1
- package/dist/clone-Chgndk5P.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-CPai-c_a.cjs +0 -1
- package/dist/cytoscape.esm-o9WRfNPd.cjs +0 -331
- package/dist/dagre-6UL2VRFP-BqaZre9N.js +0 -446
- package/dist/dagre-6UL2VRFP-CeIiJJG5.cjs +0 -4
- package/dist/diagram-PSM6KHXK-oD045yZG.cjs +0 -24
- package/dist/diagram-QEK2KX5R-VH7_rcp0.cjs +0 -43
- package/dist/diagram-S2PKOQOG-CjDpLVdl.cjs +0 -24
- package/dist/flowDiagram-NV44I4VS-U52jVnrS.cjs +0 -162
- package/dist/gitGraphDiagram-NY62KEGX-DH1I05Ix.cjs +0 -65
- package/dist/gitGraphDiagram-NY62KEGX-DOanbk62.js +0 -712
- package/dist/index-Cg8ByiK0.cjs +0 -2153
- package/dist/info-NVLQJR56-hH82KARZ.js +0 -5
- package/dist/kanban-definition-3W4ZIXB7-BV7UYL3n.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-CrmrjRAg.js +0 -721
- package/dist/mermaid-4DMBBIKO-wnX9ATcq.js +0 -4
- package/dist/mermaid-parser.core-DvlzR6J2.cjs +0 -128
- package/dist/mindmap-definition-VGOIOE7T-BBqv9TKM.cjs +0 -68
- package/dist/pie-7BOR55EZ-zLMdfI8h.js +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-BButfYaS.cjs +0 -7
- package/dist/radar-NHE76QYJ-DeqJwy76.js +0 -5
- package/dist/timeline-definition-IT6M3QCI-4fRZfQpb.cjs +0 -61
package/dist/{mindmap-definition-VGOIOE7T-DeGZNL21.js → mindmap-definition-VGOIOE7T-CteUNe1z.js}
RENAMED
|
@@ -1,162 +1,161 @@
|
|
|
1
|
-
import { g as le } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as he } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as l, l as
|
|
1
|
+
import { g as le } from "./chunk-55IACEB6-C_MzxCLx.js";
|
|
2
|
+
import { s as he } from "./chunk-QN33PNHL-CLwAcvO2.js";
|
|
3
|
+
import { _ as l, l as I, u as de, v as ge, M as B, f as z, m as V, aH as ue, ai as pe, aj as fe, ak as ye } from "./index-sw7mRKux.js";
|
|
4
4
|
const E = [];
|
|
5
5
|
for (let t = 0; t < 256; ++t)
|
|
6
6
|
E.push((t + 256).toString(16).slice(1));
|
|
7
7
|
function me(t, e = 0) {
|
|
8
8
|
return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
|
|
9
9
|
}
|
|
10
|
-
let
|
|
10
|
+
let W;
|
|
11
11
|
const Ee = new Uint8Array(16);
|
|
12
12
|
function _e() {
|
|
13
|
-
if (!
|
|
13
|
+
if (!W) {
|
|
14
14
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
15
15
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
-
|
|
16
|
+
W = crypto.getRandomValues.bind(crypto);
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return W(Ee);
|
|
19
19
|
}
|
|
20
20
|
const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
|
|
21
21
|
function Se(t, e, n) {
|
|
22
|
-
var u;
|
|
23
22
|
if (ne.randomUUID && !t)
|
|
24
23
|
return ne.randomUUID();
|
|
25
24
|
t = t || {};
|
|
26
|
-
const c = t.random ??
|
|
25
|
+
const c = t.random ?? t.rng?.() ?? _e();
|
|
27
26
|
if (c.length < 16)
|
|
28
27
|
throw new Error("Random bytes length must be >= 16");
|
|
29
28
|
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
|
|
30
29
|
}
|
|
31
|
-
var
|
|
32
|
-
var t = /* @__PURE__ */ l(function(
|
|
33
|
-
for (i = i || {},
|
|
30
|
+
var X = (function() {
|
|
31
|
+
var t = /* @__PURE__ */ l(function(x, s, i, o) {
|
|
32
|
+
for (i = i || {}, o = x.length; o--; i[x[o]] = s) ;
|
|
34
33
|
return i;
|
|
35
|
-
}, "o"), e = [1, 4], n = [1, 13], c = [1, 12],
|
|
34
|
+
}, "o"), e = [1, 4], n = [1, 13], c = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], Y = [1, 24], q = [1, 25], b = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], R = [1, 6, 7, 11, 13, 15, 16, 19, 22], F = {
|
|
36
35
|
trace: /* @__PURE__ */ l(function() {
|
|
37
36
|
}, "trace"),
|
|
38
37
|
yy: {},
|
|
39
38
|
symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
|
|
40
39
|
terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
|
|
41
40
|
productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
|
|
42
|
-
performAction: /* @__PURE__ */ l(function(s, i,
|
|
41
|
+
performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, w) {
|
|
43
42
|
var d = r.length - 1;
|
|
44
43
|
switch (g) {
|
|
45
44
|
case 6:
|
|
46
45
|
case 7:
|
|
47
|
-
return
|
|
46
|
+
return a;
|
|
48
47
|
case 8:
|
|
49
|
-
|
|
48
|
+
a.getLogger().trace("Stop NL ");
|
|
50
49
|
break;
|
|
51
50
|
case 9:
|
|
52
|
-
|
|
51
|
+
a.getLogger().trace("Stop EOF ");
|
|
53
52
|
break;
|
|
54
53
|
case 11:
|
|
55
|
-
|
|
54
|
+
a.getLogger().trace("Stop NL2 ");
|
|
56
55
|
break;
|
|
57
56
|
case 12:
|
|
58
|
-
|
|
57
|
+
a.getLogger().trace("Stop EOF2 ");
|
|
59
58
|
break;
|
|
60
59
|
case 15:
|
|
61
|
-
|
|
60
|
+
a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
|
|
62
61
|
break;
|
|
63
62
|
case 16:
|
|
64
|
-
|
|
63
|
+
a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
|
|
65
64
|
break;
|
|
66
65
|
case 17:
|
|
67
66
|
case 21:
|
|
68
|
-
|
|
67
|
+
a.decorateNode({ class: r[d] });
|
|
69
68
|
break;
|
|
70
69
|
case 18:
|
|
71
|
-
|
|
70
|
+
a.getLogger().trace("SPACELIST");
|
|
72
71
|
break;
|
|
73
72
|
case 19:
|
|
74
|
-
|
|
73
|
+
a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
|
|
75
74
|
break;
|
|
76
75
|
case 20:
|
|
77
|
-
|
|
76
|
+
a.decorateNode({ icon: r[d] });
|
|
78
77
|
break;
|
|
79
78
|
case 25:
|
|
80
|
-
|
|
79
|
+
a.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
|
|
81
80
|
break;
|
|
82
81
|
case 26:
|
|
83
|
-
this.$ = { id: r[d], descr: r[d], type:
|
|
82
|
+
this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
|
|
84
83
|
break;
|
|
85
84
|
case 27:
|
|
86
|
-
|
|
85
|
+
a.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
|
|
87
86
|
break;
|
|
88
87
|
}
|
|
89
88
|
}, "anonymous"),
|
|
90
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15:
|
|
89
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(u, [2, 3]), { 1: [2, 2] }, t(u, [2, 4]), t(u, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: Y, 10: 23, 11: q }, t(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), t(b, [2, 18]), t(b, [2, 19]), t(b, [2, 20]), t(b, [2, 21]), t(b, [2, 23]), t(b, [2, 24]), t(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: Y, 10: 32, 11: q }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(J, [2, 14], { 7: K, 11: Q }), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(b, [2, 15]), t(b, [2, 16]), t(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(R, [2, 11]), t(R, [2, 12]), { 21: [1, 37] }, t(b, [2, 25]), t(b, [2, 27])],
|
|
91
90
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
92
91
|
parseError: /* @__PURE__ */ l(function(s, i) {
|
|
93
92
|
if (i.recoverable)
|
|
94
93
|
this.trace(s);
|
|
95
94
|
else {
|
|
96
|
-
var
|
|
97
|
-
throw
|
|
95
|
+
var o = new Error(s);
|
|
96
|
+
throw o.hash = i, o;
|
|
98
97
|
}
|
|
99
98
|
}, "parseError"),
|
|
100
99
|
parse: /* @__PURE__ */ l(function(s) {
|
|
101
|
-
var i = this,
|
|
102
|
-
for (var
|
|
103
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
r.push(
|
|
107
|
-
var
|
|
108
|
-
typeof
|
|
109
|
-
function ce(
|
|
110
|
-
|
|
100
|
+
var i = this, o = [0], a = [], g = [null], r = [], w = this.table, d = "", U = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), y = Object.create(this.lexer), v = { yy: {} };
|
|
101
|
+
for (var j in this.yy)
|
|
102
|
+
Object.prototype.hasOwnProperty.call(this.yy, j) && (v.yy[j] = this.yy[j]);
|
|
103
|
+
y.setInput(s, v.yy), v.yy.lexer = y, v.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
104
|
+
var G = y.yylloc;
|
|
105
|
+
r.push(G);
|
|
106
|
+
var ae = y.options && y.options.ranges;
|
|
107
|
+
typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
108
|
+
function ce(S) {
|
|
109
|
+
o.length = o.length - 2 * S, g.length = g.length - S, r.length = r.length - S;
|
|
111
110
|
}
|
|
112
111
|
l(ce, "popStack");
|
|
113
112
|
function te() {
|
|
114
|
-
var
|
|
115
|
-
return
|
|
113
|
+
var S;
|
|
114
|
+
return S = a.pop() || y.lex() || ee, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = i.symbols_[S] || S), S;
|
|
116
115
|
}
|
|
117
116
|
l(te, "lex");
|
|
118
|
-
for (var
|
|
119
|
-
if (
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
for (
|
|
123
|
-
this.terminals_[
|
|
124
|
-
|
|
125
|
-
` +
|
|
126
|
-
Expecting ` +
|
|
127
|
-
text:
|
|
128
|
-
token: this.terminals_[
|
|
129
|
-
line:
|
|
130
|
-
loc:
|
|
131
|
-
expected:
|
|
117
|
+
for (var _, T, D, H, O = {}, P, k, ie, M; ; ) {
|
|
118
|
+
if (T = o[o.length - 1], this.defaultActions[T] ? D = this.defaultActions[T] : ((_ === null || typeof _ > "u") && (_ = te()), D = w[T] && w[T][_]), typeof D > "u" || !D.length || !D[0]) {
|
|
119
|
+
var $ = "";
|
|
120
|
+
M = [];
|
|
121
|
+
for (P in w[T])
|
|
122
|
+
this.terminals_[P] && P > re && M.push("'" + this.terminals_[P] + "'");
|
|
123
|
+
y.showPosition ? $ = "Parse error on line " + (U + 1) + `:
|
|
124
|
+
` + y.showPosition() + `
|
|
125
|
+
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
|
|
126
|
+
text: y.match,
|
|
127
|
+
token: this.terminals_[_] || _,
|
|
128
|
+
line: y.yylineno,
|
|
129
|
+
loc: G,
|
|
130
|
+
expected: M
|
|
132
131
|
});
|
|
133
132
|
}
|
|
134
|
-
if (
|
|
135
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
136
|
-
switch (
|
|
133
|
+
if (D[0] instanceof Array && D.length > 1)
|
|
134
|
+
throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
|
|
135
|
+
switch (D[0]) {
|
|
137
136
|
case 1:
|
|
138
|
-
|
|
137
|
+
o.push(_), g.push(y.yytext), r.push(y.yylloc), o.push(D[1]), _ = null, Z = y.yyleng, d = y.yytext, U = y.yylineno, G = y.yylloc;
|
|
139
138
|
break;
|
|
140
139
|
case 2:
|
|
141
|
-
if (
|
|
142
|
-
first_line: r[r.length - (
|
|
140
|
+
if (k = this.productions_[D[1]][1], O.$ = g[g.length - k], O._$ = {
|
|
141
|
+
first_line: r[r.length - (k || 1)].first_line,
|
|
143
142
|
last_line: r[r.length - 1].last_line,
|
|
144
|
-
first_column: r[r.length - (
|
|
143
|
+
first_column: r[r.length - (k || 1)].first_column,
|
|
145
144
|
last_column: r[r.length - 1].last_column
|
|
146
|
-
},
|
|
147
|
-
r[r.length - (
|
|
145
|
+
}, ae && (O._$.range = [
|
|
146
|
+
r[r.length - (k || 1)].range[0],
|
|
148
147
|
r[r.length - 1].range[1]
|
|
149
|
-
]),
|
|
148
|
+
]), H = this.performAction.apply(O, [
|
|
150
149
|
d,
|
|
151
150
|
Z,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
U,
|
|
152
|
+
v.yy,
|
|
153
|
+
D[1],
|
|
155
154
|
g,
|
|
156
155
|
r
|
|
157
|
-
].concat(
|
|
158
|
-
return
|
|
159
|
-
|
|
156
|
+
].concat(oe)), typeof H < "u")
|
|
157
|
+
return H;
|
|
158
|
+
k && (o = o.slice(0, -1 * k * 2), g = g.slice(0, -1 * k), r = r.slice(0, -1 * k)), o.push(this.productions_[D[1]][0]), g.push(O.$), r.push(O._$), ie = w[o[o.length - 2]][o[o.length - 1]], o.push(ie);
|
|
160
159
|
break;
|
|
161
160
|
case 3:
|
|
162
161
|
return !0;
|
|
@@ -165,11 +164,11 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
165
164
|
return !0;
|
|
166
165
|
}, "parse")
|
|
167
166
|
}, se = /* @__PURE__ */ (function() {
|
|
168
|
-
var
|
|
167
|
+
var x = {
|
|
169
168
|
EOF: 1,
|
|
170
|
-
parseError: /* @__PURE__ */ l(function(i,
|
|
169
|
+
parseError: /* @__PURE__ */ l(function(i, o) {
|
|
171
170
|
if (this.yy.parser)
|
|
172
|
-
this.yy.parser.parseError(i,
|
|
171
|
+
this.yy.parser.parseError(i, o);
|
|
173
172
|
else
|
|
174
173
|
throw new Error(i);
|
|
175
174
|
}, "parseError"),
|
|
@@ -191,16 +190,16 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
191
190
|
}, "input"),
|
|
192
191
|
// unshifts one char (or a string) into the input
|
|
193
192
|
unput: /* @__PURE__ */ l(function(s) {
|
|
194
|
-
var i = s.length,
|
|
193
|
+
var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
|
|
195
194
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
196
|
-
var
|
|
197
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
195
|
+
var a = this.match.split(/(?:\r\n?|\n)/g);
|
|
196
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
198
197
|
var g = this.yylloc.range;
|
|
199
198
|
return this.yylloc = {
|
|
200
199
|
first_line: this.yylloc.first_line,
|
|
201
200
|
last_line: this.yylineno + 1,
|
|
202
201
|
first_column: this.yylloc.first_column,
|
|
203
|
-
last_column:
|
|
202
|
+
last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - i
|
|
204
203
|
}, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
205
204
|
}, "unput"),
|
|
206
205
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -242,7 +241,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
242
241
|
}, "showPosition"),
|
|
243
242
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
244
243
|
test_match: /* @__PURE__ */ l(function(s, i) {
|
|
245
|
-
var
|
|
244
|
+
var o, a, g;
|
|
246
245
|
if (this.options.backtrack_lexer && (g = {
|
|
247
246
|
yylineno: this.yylineno,
|
|
248
247
|
yylloc: {
|
|
@@ -262,13 +261,13 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
262
261
|
yy: this.yy,
|
|
263
262
|
conditionStack: this.conditionStack.slice(0),
|
|
264
263
|
done: this.done
|
|
265
|
-
}, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))),
|
|
264
|
+
}, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
|
|
266
265
|
first_line: this.yylloc.last_line,
|
|
267
266
|
last_line: this.yylineno + 1,
|
|
268
267
|
first_column: this.yylloc.last_column,
|
|
269
|
-
last_column:
|
|
270
|
-
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0],
|
|
271
|
-
return
|
|
268
|
+
last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
|
|
269
|
+
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
270
|
+
return o;
|
|
272
271
|
if (this._backtrack) {
|
|
273
272
|
for (var r in g)
|
|
274
273
|
this[r] = g[r];
|
|
@@ -281,12 +280,12 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
281
280
|
if (this.done)
|
|
282
281
|
return this.EOF;
|
|
283
282
|
this._input || (this.done = !0);
|
|
284
|
-
var s, i,
|
|
283
|
+
var s, i, o, a;
|
|
285
284
|
this._more || (this.yytext = "", this.match = "");
|
|
286
285
|
for (var g = this._currentRules(), r = 0; r < g.length; r++)
|
|
287
|
-
if (
|
|
288
|
-
if (i =
|
|
289
|
-
if (s = this.test_match(
|
|
286
|
+
if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
|
|
287
|
+
if (i = o, a = r, this.options.backtrack_lexer) {
|
|
288
|
+
if (s = this.test_match(o, g[r]), s !== !1)
|
|
290
289
|
return s;
|
|
291
290
|
if (this._backtrack) {
|
|
292
291
|
i = !1;
|
|
@@ -296,7 +295,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
296
295
|
} else if (!this.options.flex)
|
|
297
296
|
break;
|
|
298
297
|
}
|
|
299
|
-
return i ? (s = this.test_match(i, g[
|
|
298
|
+
return i ? (s = this.test_match(i, g[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
300
299
|
` + this.showPosition(), {
|
|
301
300
|
text: "",
|
|
302
301
|
token: null,
|
|
@@ -334,10 +333,10 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
334
333
|
return this.conditionStack.length;
|
|
335
334
|
}, "stateStackSize"),
|
|
336
335
|
options: { "case-insensitive": !0 },
|
|
337
|
-
performAction: /* @__PURE__ */ l(function(i,
|
|
338
|
-
switch (
|
|
336
|
+
performAction: /* @__PURE__ */ l(function(i, o, a, g) {
|
|
337
|
+
switch (a) {
|
|
339
338
|
case 0:
|
|
340
|
-
return i.getLogger().trace("Found comment",
|
|
339
|
+
return i.getLogger().trace("Found comment", o.yytext), 6;
|
|
341
340
|
case 1:
|
|
342
341
|
return 8;
|
|
343
342
|
case 2:
|
|
@@ -394,7 +393,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
394
393
|
i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
395
394
|
break;
|
|
396
395
|
case 25:
|
|
397
|
-
return i.getLogger().trace("description:",
|
|
396
|
+
return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
|
|
398
397
|
case 26:
|
|
399
398
|
this.popState();
|
|
400
399
|
break;
|
|
@@ -403,7 +402,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
403
402
|
case 28:
|
|
404
403
|
return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
|
|
405
404
|
case 29:
|
|
406
|
-
return this.popState(), i.getLogger().trace("node end ...",
|
|
405
|
+
return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
|
|
407
406
|
case 30:
|
|
408
407
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
409
408
|
case 31:
|
|
@@ -415,24 +414,24 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
415
414
|
case 34:
|
|
416
415
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
417
416
|
case 35:
|
|
418
|
-
return i.getLogger().trace("Long description:",
|
|
417
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
419
418
|
case 36:
|
|
420
|
-
return i.getLogger().trace("Long description:",
|
|
419
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
421
420
|
}
|
|
422
421
|
}, "anonymous"),
|
|
423
422
|
rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
424
423
|
conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
|
|
425
424
|
};
|
|
426
|
-
return
|
|
425
|
+
return x;
|
|
427
426
|
})();
|
|
428
|
-
|
|
429
|
-
function
|
|
427
|
+
F.lexer = se;
|
|
428
|
+
function A() {
|
|
430
429
|
this.yy = {};
|
|
431
430
|
}
|
|
432
|
-
return l(
|
|
431
|
+
return l(A, "Parser"), A.prototype = F, F.Parser = A, new A();
|
|
433
432
|
})();
|
|
434
|
-
|
|
435
|
-
var De =
|
|
433
|
+
X.parser = X;
|
|
434
|
+
var De = X, L = {
|
|
436
435
|
DEFAULT: 0,
|
|
437
436
|
NO_BORDER: 0,
|
|
438
437
|
ROUNDED_RECT: 1,
|
|
@@ -441,9 +440,9 @@ var De = q, x = {
|
|
|
441
440
|
CLOUD: 4,
|
|
442
441
|
BANG: 5,
|
|
443
442
|
HEXAGON: 6
|
|
444
|
-
},
|
|
443
|
+
}, C, Ne = (C = class {
|
|
445
444
|
constructor() {
|
|
446
|
-
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType =
|
|
445
|
+
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = L, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
|
|
447
446
|
}
|
|
448
447
|
clear() {
|
|
449
448
|
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
@@ -457,42 +456,41 @@ var De = q, x = {
|
|
|
457
456
|
getMindmap() {
|
|
458
457
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
459
458
|
}
|
|
460
|
-
addNode(e, n, c,
|
|
461
|
-
|
|
462
|
-
C.info("addNode", e, n, c, u);
|
|
459
|
+
addNode(e, n, c, f) {
|
|
460
|
+
I.info("addNode", e, n, c, f);
|
|
463
461
|
let h = !1;
|
|
464
462
|
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
|
|
465
|
-
const p =
|
|
466
|
-
let
|
|
467
|
-
switch (
|
|
463
|
+
const p = z();
|
|
464
|
+
let m = p.mindmap?.padding ?? B.mindmap.padding;
|
|
465
|
+
switch (f) {
|
|
468
466
|
case this.nodeType.ROUNDED_RECT:
|
|
469
467
|
case this.nodeType.RECT:
|
|
470
468
|
case this.nodeType.HEXAGON:
|
|
471
|
-
|
|
469
|
+
m *= 2;
|
|
472
470
|
break;
|
|
473
471
|
}
|
|
474
|
-
const
|
|
472
|
+
const u = {
|
|
475
473
|
id: this.count++,
|
|
476
|
-
nodeId:
|
|
474
|
+
nodeId: V(n, p),
|
|
477
475
|
level: e,
|
|
478
|
-
descr:
|
|
479
|
-
type:
|
|
476
|
+
descr: V(c, p),
|
|
477
|
+
type: f,
|
|
480
478
|
children: [],
|
|
481
|
-
width:
|
|
482
|
-
padding:
|
|
479
|
+
width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
|
|
480
|
+
padding: m,
|
|
483
481
|
isRoot: h
|
|
484
|
-
},
|
|
485
|
-
if (
|
|
486
|
-
|
|
482
|
+
}, N = this.getParent(e);
|
|
483
|
+
if (N)
|
|
484
|
+
N.children.push(u), this.nodes.push(u);
|
|
487
485
|
else if (h)
|
|
488
|
-
this.nodes.push(
|
|
486
|
+
this.nodes.push(u);
|
|
489
487
|
else
|
|
490
488
|
throw new Error(
|
|
491
|
-
`There can be only one root. No parent could be found for ("${
|
|
489
|
+
`There can be only one root. No parent could be found for ("${u.descr}")`
|
|
492
490
|
);
|
|
493
491
|
}
|
|
494
492
|
getType(e, n) {
|
|
495
|
-
switch (
|
|
493
|
+
switch (I.debug("In get type", e, n), e) {
|
|
496
494
|
case "[":
|
|
497
495
|
return this.nodeType.RECT;
|
|
498
496
|
case "(":
|
|
@@ -518,8 +516,8 @@ var De = q, x = {
|
|
|
518
516
|
decorateNode(e) {
|
|
519
517
|
if (!e)
|
|
520
518
|
return;
|
|
521
|
-
const n =
|
|
522
|
-
e.icon && (c.icon =
|
|
519
|
+
const n = z(), c = this.nodes[this.nodes.length - 1];
|
|
520
|
+
e.icon && (c.icon = V(e.icon, n)), e.class && (c.class = V(e.class, n));
|
|
523
521
|
}
|
|
524
522
|
type2Str(e) {
|
|
525
523
|
switch (e) {
|
|
@@ -549,9 +547,9 @@ var De = q, x = {
|
|
|
549
547
|
*/
|
|
550
548
|
assignSections(e, n) {
|
|
551
549
|
if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
|
|
552
|
-
for (const [c,
|
|
550
|
+
for (const [c, f] of e.children.entries()) {
|
|
553
551
|
const h = e.level === 0 ? c : n;
|
|
554
|
-
this.assignSections(
|
|
552
|
+
this.assignSections(f, h);
|
|
555
553
|
}
|
|
556
554
|
}
|
|
557
555
|
/**
|
|
@@ -562,23 +560,23 @@ var De = q, x = {
|
|
|
562
560
|
flattenNodes(e, n) {
|
|
563
561
|
const c = ["mindmap-node"];
|
|
564
562
|
e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
|
|
565
|
-
const
|
|
566
|
-
switch (
|
|
567
|
-
case
|
|
563
|
+
const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
|
|
564
|
+
switch (m) {
|
|
565
|
+
case L.CIRCLE:
|
|
568
566
|
return "mindmapCircle";
|
|
569
|
-
case
|
|
567
|
+
case L.RECT:
|
|
570
568
|
return "rect";
|
|
571
|
-
case
|
|
569
|
+
case L.ROUNDED_RECT:
|
|
572
570
|
return "rounded";
|
|
573
|
-
case
|
|
571
|
+
case L.CLOUD:
|
|
574
572
|
return "cloud";
|
|
575
|
-
case
|
|
573
|
+
case L.BANG:
|
|
576
574
|
return "bang";
|
|
577
|
-
case
|
|
575
|
+
case L.HEXAGON:
|
|
578
576
|
return "hexagon";
|
|
579
|
-
case
|
|
577
|
+
case L.DEFAULT:
|
|
580
578
|
return "defaultMindmapNode";
|
|
581
|
-
case
|
|
579
|
+
case L.NO_BORDER:
|
|
582
580
|
default:
|
|
583
581
|
return "rect";
|
|
584
582
|
}
|
|
@@ -591,7 +589,7 @@ var De = q, x = {
|
|
|
591
589
|
width: e.width,
|
|
592
590
|
height: e.height ?? 0,
|
|
593
591
|
padding: e.padding,
|
|
594
|
-
cssClasses:
|
|
592
|
+
cssClasses: f,
|
|
595
593
|
cssStyles: [],
|
|
596
594
|
look: "default",
|
|
597
595
|
icon: e.icon,
|
|
@@ -604,8 +602,8 @@ var De = q, x = {
|
|
|
604
602
|
section: e.section
|
|
605
603
|
};
|
|
606
604
|
if (n.push(p), e.children)
|
|
607
|
-
for (const
|
|
608
|
-
this.flattenNodes(
|
|
605
|
+
for (const m of e.children)
|
|
606
|
+
this.flattenNodes(m, n);
|
|
609
607
|
}
|
|
610
608
|
/**
|
|
611
609
|
* Generate edges from parent-child relationships in mindmap tree
|
|
@@ -615,10 +613,10 @@ var De = q, x = {
|
|
|
615
613
|
generateEdges(e, n) {
|
|
616
614
|
if (e.children)
|
|
617
615
|
for (const c of e.children) {
|
|
618
|
-
let
|
|
619
|
-
c.section !== void 0 && (
|
|
616
|
+
let f = "edge";
|
|
617
|
+
c.section !== void 0 && (f += ` section-edge-${c.section}`);
|
|
620
618
|
const h = e.level + 1;
|
|
621
|
-
|
|
619
|
+
f += ` edge-depth-${h}`;
|
|
622
620
|
const p = {
|
|
623
621
|
id: `edge_${e.id}_${c.id}`,
|
|
624
622
|
start: e.id.toString(),
|
|
@@ -627,7 +625,7 @@ var De = q, x = {
|
|
|
627
625
|
curve: "basis",
|
|
628
626
|
thickness: "normal",
|
|
629
627
|
look: "default",
|
|
630
|
-
classes:
|
|
628
|
+
classes: f,
|
|
631
629
|
// Store mindmap-specific data
|
|
632
630
|
depth: e.level,
|
|
633
631
|
section: c.section
|
|
@@ -641,29 +639,29 @@ var De = q, x = {
|
|
|
641
639
|
* @returns Structured data containing nodes, edges, and config
|
|
642
640
|
*/
|
|
643
641
|
getData() {
|
|
644
|
-
const e = this.getMindmap(), n =
|
|
645
|
-
if (
|
|
642
|
+
const e = this.getMindmap(), n = z(), f = ue().layout !== void 0, h = n;
|
|
643
|
+
if (f || (h.layout = "cose-bilkent"), !e)
|
|
646
644
|
return {
|
|
647
645
|
nodes: [],
|
|
648
646
|
edges: [],
|
|
649
647
|
config: h
|
|
650
648
|
};
|
|
651
|
-
|
|
652
|
-
const p = [],
|
|
653
|
-
this.flattenNodes(e, p), this.generateEdges(e,
|
|
654
|
-
`getData: processed ${p.length} nodes and ${
|
|
649
|
+
I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
|
|
650
|
+
const p = [], m = [];
|
|
651
|
+
this.flattenNodes(e, p), this.generateEdges(e, m), I.debug(
|
|
652
|
+
`getData: processed ${p.length} nodes and ${m.length} edges`
|
|
655
653
|
);
|
|
656
|
-
const
|
|
657
|
-
for (const
|
|
658
|
-
|
|
659
|
-
shape:
|
|
660
|
-
width:
|
|
661
|
-
height:
|
|
662
|
-
padding:
|
|
654
|
+
const u = /* @__PURE__ */ new Map();
|
|
655
|
+
for (const N of p)
|
|
656
|
+
u.set(N.id, {
|
|
657
|
+
shape: N.shape,
|
|
658
|
+
width: N.width,
|
|
659
|
+
height: N.height,
|
|
660
|
+
padding: N.padding
|
|
663
661
|
});
|
|
664
662
|
return {
|
|
665
663
|
nodes: p,
|
|
666
|
-
edges:
|
|
664
|
+
edges: m,
|
|
667
665
|
config: h,
|
|
668
666
|
// Store the root node for mindmap-specific layout algorithms
|
|
669
667
|
rootNode: e,
|
|
@@ -677,7 +675,7 @@ var De = q, x = {
|
|
|
677
675
|
rankSpacing: 50,
|
|
678
676
|
// Default spacing between ranks
|
|
679
677
|
// Add shapes for ELK compatibility
|
|
680
|
-
shapes: Object.fromEntries(
|
|
678
|
+
shapes: Object.fromEntries(u),
|
|
681
679
|
// Additional properties that layout algorithms might expect
|
|
682
680
|
type: "mindmap",
|
|
683
681
|
diagramId: "mindmap-" + Se()
|
|
@@ -685,22 +683,21 @@ var De = q, x = {
|
|
|
685
683
|
}
|
|
686
684
|
// Expose logger to grammar
|
|
687
685
|
getLogger() {
|
|
688
|
-
return
|
|
686
|
+
return I;
|
|
689
687
|
}
|
|
690
|
-
}, l(
|
|
691
|
-
|
|
692
|
-
C.debug(`Rendering mindmap diagram
|
|
688
|
+
}, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
|
|
689
|
+
I.debug(`Rendering mindmap diagram
|
|
693
690
|
` + t);
|
|
694
|
-
const
|
|
691
|
+
const f = c.db, h = f.getData(), p = le(e, h.config.securityLevel);
|
|
695
692
|
h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
|
|
696
693
|
fallback: "cose-bilkent"
|
|
697
|
-
}), h.diagramId = e,
|
|
698
|
-
|
|
694
|
+
}), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
|
|
695
|
+
u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
|
|
699
696
|
}), await ge(h, p), he(
|
|
700
697
|
p,
|
|
701
|
-
|
|
698
|
+
h.config.mindmap?.padding ?? B.mindmap.padding,
|
|
702
699
|
"mindmapDiagram",
|
|
703
|
-
|
|
700
|
+
h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
|
|
704
701
|
));
|
|
705
702
|
}, "draw"), Le = {
|
|
706
703
|
draw: ke
|