@marimo-team/islands 0.13.16-dev2 → 0.13.16-dev4
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/{ConnectedDataExplorerComponent-BizAnuDQ.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
- package/dist/{VegaLite-BvtjUHLS.js → VegaLite-C9hsmU75.js} +12483 -12485
- package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-JsDeIdvj.js} +13 -13
- package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-BzZqDQm_.js} +2 -2
- package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
- package/dist/asn1-jKiBa2Ya.js +10 -10
- package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
- package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
- package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
- package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
- package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
- package/dist/{channel-DMiLp-mI.js → channel-CwUzkjN9.js} +1 -1
- package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
- package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
- package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
- package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
- package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
- package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
- package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
- package/dist/clojure-CCKyeQKf.js +2 -2
- package/dist/{clone-CPwu6xRn.js → clone-BPHB9gtw.js} +1 -1
- package/dist/css-bIlmDBTK.js +19 -19
- package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
- package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
- package/dist/{data-editor-CYvUeKhw.js → data-editor-CvujN_l-.js} +5785 -5795
- package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
- package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
- package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
- package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
- package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
- package/dist/{graph-BFerxzEi.js → graph-DiSBbvS5.js} +9 -9
- package/dist/{index-DfpR00QG.js → index-BZo5-DOE.js} +99 -98
- package/dist/{index-j8M50mVa.js → index-CmU7bpCv.js} +4 -4
- package/dist/{index-DkuVwdVm.js → index-KrnLhU30.js} +9 -9
- package/dist/{index-BhtvwOag.js → index-TeAlNqJE.js} +28 -28
- package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
- package/dist/javascript-WMWNx-Vj.js +47 -47
- package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
- package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
- package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
- package/dist/{layout-Qs-BVu8V.js → layout-B0SQ1LdD.js} +27 -27
- package/dist/{linear-SIbCb7yI.js → linear-Bn_UtFyT.js} +2 -2
- package/dist/main-ClxYr2BI.js +169878 -0
- package/dist/main.js +1 -1
- package/dist/mermaid-M3c3q4Qd.js +14517 -0
- package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
- package/dist/{min-BTA1UVkn.js → min-C0Jzc_ko.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
- package/dist/mllike-BSnXJBGA.js +7 -7
- package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
- package/dist/pug-BqUR2bBq.js +35 -35
- package/dist/python-B5QdSKoL.js +18 -18
- package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
- package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
- package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-CJ3A7ju0.js} +6595 -6597
- package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
- package/dist/rpm-IznJm2Xc.js +9 -9
- package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
- package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
- package/dist/{slides-component-DVr5mf9p.js → slides-component-Cyh202Vq.js} +280 -280
- package/dist/sql-mMre1Bo3.js +9 -9
- package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
- package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DHD8Fix8.js → time-YVQKuiUR.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
- package/dist/timer-BYwnU4DF.js +378 -378
- package/dist/ttcn-cfg-Bac_acMi.js +9 -9
- package/dist/{vega-component-D2NZFVvw.js → vega-component-CUFBFMjm.js} +82 -82
- package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
- package/package.json +1 -1
- package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
- package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
- package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
- package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
- package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
- package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
- package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
- package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
- package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
- package/dist/main-Cx3zrED9.js +0 -156521
- package/dist/mermaid-DAi_EtLa.js +0 -11991
- package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
import { _ as o, l as te, c as U, K as fe, $ as ye, a0 as be, a1 as me, T as _e, H as K, i as F, v as Ee, J as ke, V as Se, W as ce, X as le } from "./mermaid-M3c3q4Qd.js";
|
|
2
|
+
var $ = function() {
|
|
3
|
+
var e = /* @__PURE__ */ o(function(O, i, n, r) {
|
|
4
|
+
for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
|
|
5
|
+
return n;
|
|
6
|
+
}, "o"), u = [1, 4], p = [1, 13], s = [1, 12], d = [1, 15], E = [1, 16], b = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], _ = [6, 7, 11], G = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], m = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], H = [1, 38], T = {
|
|
7
|
+
trace: /* @__PURE__ */ o(function() {
|
|
8
|
+
}, "trace"),
|
|
9
|
+
yy: {},
|
|
10
|
+
symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
|
|
11
|
+
terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
|
|
12
|
+
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, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
|
|
13
|
+
performAction: /* @__PURE__ */ o(function(i, n, r, a, h, t, M) {
|
|
14
|
+
var c = t.length - 1;
|
|
15
|
+
switch (h) {
|
|
16
|
+
case 6:
|
|
17
|
+
case 7:
|
|
18
|
+
return a;
|
|
19
|
+
case 8:
|
|
20
|
+
a.getLogger().trace("Stop NL ");
|
|
21
|
+
break;
|
|
22
|
+
case 9:
|
|
23
|
+
a.getLogger().trace("Stop EOF ");
|
|
24
|
+
break;
|
|
25
|
+
case 11:
|
|
26
|
+
a.getLogger().trace("Stop NL2 ");
|
|
27
|
+
break;
|
|
28
|
+
case 12:
|
|
29
|
+
a.getLogger().trace("Stop EOF2 ");
|
|
30
|
+
break;
|
|
31
|
+
case 15:
|
|
32
|
+
a.getLogger().info("Node: ", t[c - 1].id), a.addNode(t[c - 2].length, t[c - 1].id, t[c - 1].descr, t[c - 1].type, t[c]);
|
|
33
|
+
break;
|
|
34
|
+
case 16:
|
|
35
|
+
a.getLogger().info("Node: ", t[c].id), a.addNode(t[c - 1].length, t[c].id, t[c].descr, t[c].type);
|
|
36
|
+
break;
|
|
37
|
+
case 17:
|
|
38
|
+
a.getLogger().trace("Icon: ", t[c]), a.decorateNode({ icon: t[c] });
|
|
39
|
+
break;
|
|
40
|
+
case 18:
|
|
41
|
+
case 23:
|
|
42
|
+
a.decorateNode({ class: t[c] });
|
|
43
|
+
break;
|
|
44
|
+
case 19:
|
|
45
|
+
a.getLogger().trace("SPACELIST");
|
|
46
|
+
break;
|
|
47
|
+
case 20:
|
|
48
|
+
a.getLogger().trace("Node: ", t[c - 1].id), a.addNode(0, t[c - 1].id, t[c - 1].descr, t[c - 1].type, t[c]);
|
|
49
|
+
break;
|
|
50
|
+
case 21:
|
|
51
|
+
a.getLogger().trace("Node: ", t[c].id), a.addNode(0, t[c].id, t[c].descr, t[c].type);
|
|
52
|
+
break;
|
|
53
|
+
case 22:
|
|
54
|
+
a.decorateNode({ icon: t[c] });
|
|
55
|
+
break;
|
|
56
|
+
case 27:
|
|
57
|
+
a.getLogger().trace("node found ..", t[c - 2]), this.$ = { id: t[c - 1], descr: t[c - 1], type: a.getType(t[c - 2], t[c]) };
|
|
58
|
+
break;
|
|
59
|
+
case 28:
|
|
60
|
+
this.$ = { id: t[c], descr: t[c], type: 0 };
|
|
61
|
+
break;
|
|
62
|
+
case 29:
|
|
63
|
+
a.getLogger().trace("node found ..", t[c - 3]), this.$ = { id: t[c - 3], descr: t[c - 1], type: a.getType(t[c - 2], t[c]) };
|
|
64
|
+
break;
|
|
65
|
+
case 30:
|
|
66
|
+
this.$ = t[c - 1] + t[c];
|
|
67
|
+
break;
|
|
68
|
+
case 31:
|
|
69
|
+
this.$ = t[c];
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}, "anonymous"),
|
|
73
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: u }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: u }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, e(D, [2, 3]), { 1: [2, 2] }, e(D, [2, 4]), e(D, [2, 5]), { 1: [2, 6], 6: p, 12: 21, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, { 6: p, 9: 22, 12: 11, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(_, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: b, 23: l }), e(_, [2, 19]), e(_, [2, 21], { 15: 30, 24: G }), e(_, [2, 22]), e(_, [2, 23]), e(N, [2, 25]), e(N, [2, 26]), e(N, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: I, 7: g, 10: 34, 11: w }, { 1: [2, 7], 6: p, 12: 21, 13: s, 14: 14, 16: d, 17: E, 18: 17, 19: 18, 20: b, 23: l }, e(V, [2, 14], { 7: m, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(_, [2, 16], { 15: 37, 24: G }), e(_, [2, 17]), e(_, [2, 18]), e(_, [2, 20], { 24: H }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: m, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(_, [2, 15], { 24: H }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])],
|
|
74
|
+
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
75
|
+
parseError: /* @__PURE__ */ o(function(i, n) {
|
|
76
|
+
if (n.recoverable)
|
|
77
|
+
this.trace(i);
|
|
78
|
+
else {
|
|
79
|
+
var r = new Error(i);
|
|
80
|
+
throw r.hash = n, r;
|
|
81
|
+
}
|
|
82
|
+
}, "parseError"),
|
|
83
|
+
parse: /* @__PURE__ */ o(function(i) {
|
|
84
|
+
var n = this, r = [0], a = [], h = [null], t = [], M = this.table, c = "", W = 0, se = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), y = Object.create(this.lexer), R = { yy: {} };
|
|
85
|
+
for (var J in this.yy)
|
|
86
|
+
Object.prototype.hasOwnProperty.call(this.yy, J) && (R.yy[J] = this.yy[J]);
|
|
87
|
+
y.setInput(i, R.yy), R.yy.lexer = y, R.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
88
|
+
var q = y.yylloc;
|
|
89
|
+
t.push(q);
|
|
90
|
+
var de = y.options && y.options.ranges;
|
|
91
|
+
typeof R.yy.parseError == "function" ? this.parseError = R.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
92
|
+
function pe(S) {
|
|
93
|
+
r.length = r.length - 2 * S, h.length = h.length - S, t.length = t.length - S;
|
|
94
|
+
}
|
|
95
|
+
o(pe, "popStack");
|
|
96
|
+
function ae() {
|
|
97
|
+
var S;
|
|
98
|
+
return S = a.pop() || y.lex() || re, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = n.symbols_[S] || S), S;
|
|
99
|
+
}
|
|
100
|
+
o(ae, "lex");
|
|
101
|
+
for (var k, P, x, Q, j = {}, z, C, oe, X; ; ) {
|
|
102
|
+
if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((k === null || typeof k > "u") && (k = ae()), x = M[P] && M[P][k]), typeof x > "u" || !x.length || !x[0]) {
|
|
103
|
+
var Z = "";
|
|
104
|
+
X = [];
|
|
105
|
+
for (z in M[P])
|
|
106
|
+
this.terminals_[z] && z > ue && X.push("'" + this.terminals_[z] + "'");
|
|
107
|
+
y.showPosition ? Z = "Parse error on line " + (W + 1) + `:
|
|
108
|
+
` + y.showPosition() + `
|
|
109
|
+
Expecting ` + X.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (W + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
|
|
110
|
+
text: y.match,
|
|
111
|
+
token: this.terminals_[k] || k,
|
|
112
|
+
line: y.yylineno,
|
|
113
|
+
loc: q,
|
|
114
|
+
expected: X
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (x[0] instanceof Array && x.length > 1)
|
|
118
|
+
throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + k);
|
|
119
|
+
switch (x[0]) {
|
|
120
|
+
case 1:
|
|
121
|
+
r.push(k), h.push(y.yytext), t.push(y.yylloc), r.push(x[1]), k = null, se = y.yyleng, c = y.yytext, W = y.yylineno, q = y.yylloc;
|
|
122
|
+
break;
|
|
123
|
+
case 2:
|
|
124
|
+
if (C = this.productions_[x[1]][1], j.$ = h[h.length - C], j._$ = {
|
|
125
|
+
first_line: t[t.length - (C || 1)].first_line,
|
|
126
|
+
last_line: t[t.length - 1].last_line,
|
|
127
|
+
first_column: t[t.length - (C || 1)].first_column,
|
|
128
|
+
last_column: t[t.length - 1].last_column
|
|
129
|
+
}, de && (j._$.range = [
|
|
130
|
+
t[t.length - (C || 1)].range[0],
|
|
131
|
+
t[t.length - 1].range[1]
|
|
132
|
+
]), Q = this.performAction.apply(j, [
|
|
133
|
+
c,
|
|
134
|
+
se,
|
|
135
|
+
W,
|
|
136
|
+
R.yy,
|
|
137
|
+
x[1],
|
|
138
|
+
h,
|
|
139
|
+
t
|
|
140
|
+
].concat(ge)), typeof Q < "u")
|
|
141
|
+
return Q;
|
|
142
|
+
C && (r = r.slice(0, -1 * C * 2), h = h.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), h.push(j.$), t.push(j._$), oe = M[r[r.length - 2]][r[r.length - 1]], r.push(oe);
|
|
143
|
+
break;
|
|
144
|
+
case 3:
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return true;
|
|
149
|
+
}, "parse")
|
|
150
|
+
}, Y = /* @__PURE__ */ function() {
|
|
151
|
+
var O = {
|
|
152
|
+
EOF: 1,
|
|
153
|
+
parseError: /* @__PURE__ */ o(function(n, r) {
|
|
154
|
+
if (this.yy.parser)
|
|
155
|
+
this.yy.parser.parseError(n, r);
|
|
156
|
+
else
|
|
157
|
+
throw new Error(n);
|
|
158
|
+
}, "parseError"),
|
|
159
|
+
// resets the lexer, sets new input
|
|
160
|
+
setInput: /* @__PURE__ */ o(function(i, n) {
|
|
161
|
+
return this.yy = n || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
162
|
+
first_line: 1,
|
|
163
|
+
first_column: 0,
|
|
164
|
+
last_line: 1,
|
|
165
|
+
last_column: 0
|
|
166
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
167
|
+
}, "setInput"),
|
|
168
|
+
// consumes and returns one char from the input
|
|
169
|
+
input: /* @__PURE__ */ o(function() {
|
|
170
|
+
var i = this._input[0];
|
|
171
|
+
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
172
|
+
var n = i.match(/(?:\r\n?|\n).*/g);
|
|
173
|
+
return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
174
|
+
}, "input"),
|
|
175
|
+
// unshifts one char (or a string) into the input
|
|
176
|
+
unput: /* @__PURE__ */ o(function(i) {
|
|
177
|
+
var n = i.length, r = i.split(/(?:\r\n?|\n)/g);
|
|
178
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
|
|
179
|
+
var a = this.match.split(/(?:\r\n?|\n)/g);
|
|
180
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
|
|
181
|
+
var h = this.yylloc.range;
|
|
182
|
+
return this.yylloc = {
|
|
183
|
+
first_line: this.yylloc.first_line,
|
|
184
|
+
last_line: this.yylineno + 1,
|
|
185
|
+
first_column: this.yylloc.first_column,
|
|
186
|
+
last_column: r ? (r.length === a.length ? this.yylloc.first_column : 0) + a[a.length - r.length].length - r[0].length : this.yylloc.first_column - n
|
|
187
|
+
}, this.options.ranges && (this.yylloc.range = [h[0], h[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
|
|
188
|
+
}, "unput"),
|
|
189
|
+
// When called from action, caches matched text and appends it on next action
|
|
190
|
+
more: /* @__PURE__ */ o(function() {
|
|
191
|
+
return this._more = true, this;
|
|
192
|
+
}, "more"),
|
|
193
|
+
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
194
|
+
reject: /* @__PURE__ */ o(function() {
|
|
195
|
+
if (this.options.backtrack_lexer)
|
|
196
|
+
this._backtrack = true;
|
|
197
|
+
else
|
|
198
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
199
|
+
` + this.showPosition(), {
|
|
200
|
+
text: "",
|
|
201
|
+
token: null,
|
|
202
|
+
line: this.yylineno
|
|
203
|
+
});
|
|
204
|
+
return this;
|
|
205
|
+
}, "reject"),
|
|
206
|
+
// retain first n characters of the match
|
|
207
|
+
less: /* @__PURE__ */ o(function(i) {
|
|
208
|
+
this.unput(this.match.slice(i));
|
|
209
|
+
}, "less"),
|
|
210
|
+
// displays already matched input, i.e. for error messages
|
|
211
|
+
pastInput: /* @__PURE__ */ o(function() {
|
|
212
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
213
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
214
|
+
}, "pastInput"),
|
|
215
|
+
// displays upcoming input, i.e. for error messages
|
|
216
|
+
upcomingInput: /* @__PURE__ */ o(function() {
|
|
217
|
+
var i = this.match;
|
|
218
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
219
|
+
}, "upcomingInput"),
|
|
220
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
221
|
+
showPosition: /* @__PURE__ */ o(function() {
|
|
222
|
+
var i = this.pastInput(), n = new Array(i.length + 1).join("-");
|
|
223
|
+
return i + this.upcomingInput() + `
|
|
224
|
+
` + n + "^";
|
|
225
|
+
}, "showPosition"),
|
|
226
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
227
|
+
test_match: /* @__PURE__ */ o(function(i, n) {
|
|
228
|
+
var r, a, h;
|
|
229
|
+
if (this.options.backtrack_lexer && (h = {
|
|
230
|
+
yylineno: this.yylineno,
|
|
231
|
+
yylloc: {
|
|
232
|
+
first_line: this.yylloc.first_line,
|
|
233
|
+
last_line: this.last_line,
|
|
234
|
+
first_column: this.yylloc.first_column,
|
|
235
|
+
last_column: this.yylloc.last_column
|
|
236
|
+
},
|
|
237
|
+
yytext: this.yytext,
|
|
238
|
+
match: this.match,
|
|
239
|
+
matches: this.matches,
|
|
240
|
+
matched: this.matched,
|
|
241
|
+
yyleng: this.yyleng,
|
|
242
|
+
offset: this.offset,
|
|
243
|
+
_more: this._more,
|
|
244
|
+
_input: this._input,
|
|
245
|
+
yy: this.yy,
|
|
246
|
+
conditionStack: this.conditionStack.slice(0),
|
|
247
|
+
done: this.done
|
|
248
|
+
}, this.options.ranges && (h.yylloc.range = this.yylloc.range.slice(0))), a = i[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
|
|
249
|
+
first_line: this.yylloc.last_line,
|
|
250
|
+
last_line: this.yylineno + 1,
|
|
251
|
+
first_column: this.yylloc.last_column,
|
|
252
|
+
last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
253
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(i[0].length), this.matched += i[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), r)
|
|
254
|
+
return r;
|
|
255
|
+
if (this._backtrack) {
|
|
256
|
+
for (var t in h)
|
|
257
|
+
this[t] = h[t];
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
return false;
|
|
261
|
+
}, "test_match"),
|
|
262
|
+
// return next match in input
|
|
263
|
+
next: /* @__PURE__ */ o(function() {
|
|
264
|
+
if (this.done)
|
|
265
|
+
return this.EOF;
|
|
266
|
+
this._input || (this.done = true);
|
|
267
|
+
var i, n, r, a;
|
|
268
|
+
this._more || (this.yytext = "", this.match = "");
|
|
269
|
+
for (var h = this._currentRules(), t = 0; t < h.length; t++)
|
|
270
|
+
if (r = this._input.match(this.rules[h[t]]), r && (!n || r[0].length > n[0].length)) {
|
|
271
|
+
if (n = r, a = t, this.options.backtrack_lexer) {
|
|
272
|
+
if (i = this.test_match(r, h[t]), i !== false)
|
|
273
|
+
return i;
|
|
274
|
+
if (this._backtrack) {
|
|
275
|
+
n = false;
|
|
276
|
+
continue;
|
|
277
|
+
} else
|
|
278
|
+
return false;
|
|
279
|
+
} else if (!this.options.flex)
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
return n ? (i = this.test_match(n, h[a]), i !== false ? i : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
283
|
+
` + this.showPosition(), {
|
|
284
|
+
text: "",
|
|
285
|
+
token: null,
|
|
286
|
+
line: this.yylineno
|
|
287
|
+
});
|
|
288
|
+
}, "next"),
|
|
289
|
+
// return next match that has a token
|
|
290
|
+
lex: /* @__PURE__ */ o(function() {
|
|
291
|
+
var n = this.next();
|
|
292
|
+
return n || this.lex();
|
|
293
|
+
}, "lex"),
|
|
294
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
295
|
+
begin: /* @__PURE__ */ o(function(n) {
|
|
296
|
+
this.conditionStack.push(n);
|
|
297
|
+
}, "begin"),
|
|
298
|
+
// pop the previously active lexer condition state off the condition stack
|
|
299
|
+
popState: /* @__PURE__ */ o(function() {
|
|
300
|
+
var n = this.conditionStack.length - 1;
|
|
301
|
+
return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
302
|
+
}, "popState"),
|
|
303
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
304
|
+
_currentRules: /* @__PURE__ */ o(function() {
|
|
305
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
306
|
+
}, "_currentRules"),
|
|
307
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
308
|
+
topState: /* @__PURE__ */ o(function(n) {
|
|
309
|
+
return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
|
|
310
|
+
}, "topState"),
|
|
311
|
+
// alias for begin(condition)
|
|
312
|
+
pushState: /* @__PURE__ */ o(function(n) {
|
|
313
|
+
this.begin(n);
|
|
314
|
+
}, "pushState"),
|
|
315
|
+
// return the number of states currently on the stack
|
|
316
|
+
stateStackSize: /* @__PURE__ */ o(function() {
|
|
317
|
+
return this.conditionStack.length;
|
|
318
|
+
}, "stateStackSize"),
|
|
319
|
+
options: { "case-insensitive": true },
|
|
320
|
+
performAction: /* @__PURE__ */ o(function(n, r, a, h) {
|
|
321
|
+
switch (a) {
|
|
322
|
+
case 0:
|
|
323
|
+
return this.pushState("shapeData"), r.yytext = "", 24;
|
|
324
|
+
case 1:
|
|
325
|
+
return this.pushState("shapeDataStr"), 24;
|
|
326
|
+
case 2:
|
|
327
|
+
return this.popState(), 24;
|
|
328
|
+
case 3:
|
|
329
|
+
const t = /\n\s*/g;
|
|
330
|
+
return r.yytext = r.yytext.replace(t, "<br/>"), 24;
|
|
331
|
+
case 4:
|
|
332
|
+
return 24;
|
|
333
|
+
case 5:
|
|
334
|
+
this.popState();
|
|
335
|
+
break;
|
|
336
|
+
case 6:
|
|
337
|
+
return n.getLogger().trace("Found comment", r.yytext), 6;
|
|
338
|
+
case 7:
|
|
339
|
+
return 8;
|
|
340
|
+
case 8:
|
|
341
|
+
this.begin("CLASS");
|
|
342
|
+
break;
|
|
343
|
+
case 9:
|
|
344
|
+
return this.popState(), 17;
|
|
345
|
+
case 10:
|
|
346
|
+
this.popState();
|
|
347
|
+
break;
|
|
348
|
+
case 11:
|
|
349
|
+
n.getLogger().trace("Begin icon"), this.begin("ICON");
|
|
350
|
+
break;
|
|
351
|
+
case 12:
|
|
352
|
+
return n.getLogger().trace("SPACELINE"), 6;
|
|
353
|
+
case 13:
|
|
354
|
+
return 7;
|
|
355
|
+
case 14:
|
|
356
|
+
return 16;
|
|
357
|
+
case 15:
|
|
358
|
+
n.getLogger().trace("end icon"), this.popState();
|
|
359
|
+
break;
|
|
360
|
+
case 16:
|
|
361
|
+
return n.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
|
|
362
|
+
case 17:
|
|
363
|
+
return n.getLogger().trace("Cloud"), this.begin("NODE"), 20;
|
|
364
|
+
case 18:
|
|
365
|
+
return n.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
|
|
366
|
+
case 19:
|
|
367
|
+
return n.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
|
|
368
|
+
case 20:
|
|
369
|
+
return this.begin("NODE"), 20;
|
|
370
|
+
case 21:
|
|
371
|
+
return this.begin("NODE"), 20;
|
|
372
|
+
case 22:
|
|
373
|
+
return this.begin("NODE"), 20;
|
|
374
|
+
case 23:
|
|
375
|
+
return this.begin("NODE"), 20;
|
|
376
|
+
case 24:
|
|
377
|
+
return 13;
|
|
378
|
+
case 25:
|
|
379
|
+
return 23;
|
|
380
|
+
case 26:
|
|
381
|
+
return 11;
|
|
382
|
+
case 27:
|
|
383
|
+
this.begin("NSTR2");
|
|
384
|
+
break;
|
|
385
|
+
case 28:
|
|
386
|
+
return "NODE_DESCR";
|
|
387
|
+
case 29:
|
|
388
|
+
this.popState();
|
|
389
|
+
break;
|
|
390
|
+
case 30:
|
|
391
|
+
n.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
392
|
+
break;
|
|
393
|
+
case 31:
|
|
394
|
+
return n.getLogger().trace("description:", r.yytext), "NODE_DESCR";
|
|
395
|
+
case 32:
|
|
396
|
+
this.popState();
|
|
397
|
+
break;
|
|
398
|
+
case 33:
|
|
399
|
+
return this.popState(), n.getLogger().trace("node end ))"), "NODE_DEND";
|
|
400
|
+
case 34:
|
|
401
|
+
return this.popState(), n.getLogger().trace("node end )"), "NODE_DEND";
|
|
402
|
+
case 35:
|
|
403
|
+
return this.popState(), n.getLogger().trace("node end ...", r.yytext), "NODE_DEND";
|
|
404
|
+
case 36:
|
|
405
|
+
return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
|
|
406
|
+
case 37:
|
|
407
|
+
return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
|
|
408
|
+
case 38:
|
|
409
|
+
return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
|
|
410
|
+
case 39:
|
|
411
|
+
return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
|
|
412
|
+
case 40:
|
|
413
|
+
return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
|
|
414
|
+
case 41:
|
|
415
|
+
return n.getLogger().trace("Long description:", r.yytext), 21;
|
|
416
|
+
case 42:
|
|
417
|
+
return n.getLogger().trace("Long description:", r.yytext), 21;
|
|
418
|
+
}
|
|
419
|
+
}, "anonymous"),
|
|
420
|
+
rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\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],
|
|
421
|
+
conditions: { shapeDataEndBracket: { rules: [], inclusive: false }, shapeDataStr: { rules: [2, 3], inclusive: false }, shapeData: { rules: [1, 4, 5], inclusive: false }, CLASS: { rules: [9, 10], inclusive: false }, ICON: { rules: [14, 15], inclusive: false }, NSTR2: { rules: [28, 29], inclusive: false }, NSTR: { rules: [31, 32], inclusive: false }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: false }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: true } }
|
|
422
|
+
};
|
|
423
|
+
return O;
|
|
424
|
+
}();
|
|
425
|
+
T.lexer = Y;
|
|
426
|
+
function B() {
|
|
427
|
+
this.yy = {};
|
|
428
|
+
}
|
|
429
|
+
return o(B, "Parser"), B.prototype = T, T.Parser = B, new B();
|
|
430
|
+
}();
|
|
431
|
+
$.parser = $;
|
|
432
|
+
var Ne = $, v = [], ne = [], ee = 0, ie = {}, xe = /* @__PURE__ */ o(() => {
|
|
433
|
+
v = [], ne = [], ee = 0, ie = {};
|
|
434
|
+
}, "clear"), ve = /* @__PURE__ */ o((e) => {
|
|
435
|
+
if (v.length === 0)
|
|
436
|
+
return null;
|
|
437
|
+
const u = v[0].level;
|
|
438
|
+
let p = null;
|
|
439
|
+
for (let s = v.length - 1; s >= 0; s--)
|
|
440
|
+
if (v[s].level === u && !p && (p = v[s]), v[s].level < u)
|
|
441
|
+
throw new Error('Items without section detected, found section ("' + v[s].label + '")');
|
|
442
|
+
return e === (p == null ? void 0 : p.level) ? null : p;
|
|
443
|
+
}, "getSection"), he = /* @__PURE__ */ o(function() {
|
|
444
|
+
return ne;
|
|
445
|
+
}, "getSections"), De = /* @__PURE__ */ o(function() {
|
|
446
|
+
const e = [], u = [], p = he(), s = U();
|
|
447
|
+
for (const d of p) {
|
|
448
|
+
const E = {
|
|
449
|
+
id: d.id,
|
|
450
|
+
label: F(d.label ?? "", s),
|
|
451
|
+
isGroup: true,
|
|
452
|
+
ticket: d.ticket,
|
|
453
|
+
shape: "kanbanSection",
|
|
454
|
+
level: d.level,
|
|
455
|
+
look: s.look
|
|
456
|
+
};
|
|
457
|
+
u.push(E);
|
|
458
|
+
const b = v.filter((l) => l.parentId === d.id);
|
|
459
|
+
for (const l of b) {
|
|
460
|
+
const D = {
|
|
461
|
+
id: l.id,
|
|
462
|
+
parentId: d.id,
|
|
463
|
+
label: F(l.label ?? "", s),
|
|
464
|
+
isGroup: false,
|
|
465
|
+
ticket: l == null ? void 0 : l.ticket,
|
|
466
|
+
priority: l == null ? void 0 : l.priority,
|
|
467
|
+
assigned: l == null ? void 0 : l.assigned,
|
|
468
|
+
icon: l == null ? void 0 : l.icon,
|
|
469
|
+
shape: "kanbanItem",
|
|
470
|
+
level: l.level,
|
|
471
|
+
rx: 5,
|
|
472
|
+
ry: 5,
|
|
473
|
+
cssStyles: ["text-align: left"]
|
|
474
|
+
};
|
|
475
|
+
u.push(D);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return { nodes: u, edges: e, other: {}, config: U() };
|
|
479
|
+
}, "getData"), Le = /* @__PURE__ */ o((e, u, p, s, d) => {
|
|
480
|
+
var _a, _b;
|
|
481
|
+
const E = U();
|
|
482
|
+
let b = ((_a = E.mindmap) == null ? void 0 : _a.padding) ?? K.mindmap.padding;
|
|
483
|
+
switch (s) {
|
|
484
|
+
case f.ROUNDED_RECT:
|
|
485
|
+
case f.RECT:
|
|
486
|
+
case f.HEXAGON:
|
|
487
|
+
b *= 2;
|
|
488
|
+
}
|
|
489
|
+
const l = {
|
|
490
|
+
id: F(u, E) || "kbn" + ee++,
|
|
491
|
+
level: e,
|
|
492
|
+
label: F(p, E),
|
|
493
|
+
width: ((_b = E.mindmap) == null ? void 0 : _b.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
|
|
494
|
+
padding: b,
|
|
495
|
+
isGroup: false
|
|
496
|
+
};
|
|
497
|
+
if (d !== void 0) {
|
|
498
|
+
let I;
|
|
499
|
+
d.includes(`
|
|
500
|
+
`) ? I = d + `
|
|
501
|
+
` : I = `{
|
|
502
|
+
` + d + `
|
|
503
|
+
}`;
|
|
504
|
+
const g = Ee(I, { schema: ke });
|
|
505
|
+
if (g.shape && (g.shape !== g.shape.toLowerCase() || g.shape.includes("_")))
|
|
506
|
+
throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);
|
|
507
|
+
(g == null ? void 0 : g.shape) && g.shape === "kanbanItem" && (l.shape = g == null ? void 0 : g.shape), (g == null ? void 0 : g.label) && (l.label = g == null ? void 0 : g.label), (g == null ? void 0 : g.icon) && (l.icon = g == null ? void 0 : g.icon.toString()), (g == null ? void 0 : g.assigned) && (l.assigned = g == null ? void 0 : g.assigned.toString()), (g == null ? void 0 : g.ticket) && (l.ticket = g == null ? void 0 : g.ticket.toString()), (g == null ? void 0 : g.priority) && (l.priority = g == null ? void 0 : g.priority);
|
|
508
|
+
}
|
|
509
|
+
const D = ve(e);
|
|
510
|
+
D ? l.parentId = D.id || "kbn" + ee++ : ne.push(l), v.push(l);
|
|
511
|
+
}, "addNode"), f = {
|
|
512
|
+
DEFAULT: 0,
|
|
513
|
+
NO_BORDER: 0,
|
|
514
|
+
ROUNDED_RECT: 1,
|
|
515
|
+
RECT: 2,
|
|
516
|
+
CIRCLE: 3,
|
|
517
|
+
CLOUD: 4,
|
|
518
|
+
BANG: 5,
|
|
519
|
+
HEXAGON: 6
|
|
520
|
+
}, Oe = /* @__PURE__ */ o((e, u) => {
|
|
521
|
+
switch (te.debug("In get type", e, u), e) {
|
|
522
|
+
case "[":
|
|
523
|
+
return f.RECT;
|
|
524
|
+
case "(":
|
|
525
|
+
return u === ")" ? f.ROUNDED_RECT : f.CLOUD;
|
|
526
|
+
case "((":
|
|
527
|
+
return f.CIRCLE;
|
|
528
|
+
case ")":
|
|
529
|
+
return f.CLOUD;
|
|
530
|
+
case "))":
|
|
531
|
+
return f.BANG;
|
|
532
|
+
case "{{":
|
|
533
|
+
return f.HEXAGON;
|
|
534
|
+
default:
|
|
535
|
+
return f.DEFAULT;
|
|
536
|
+
}
|
|
537
|
+
}, "getType"), Ie = /* @__PURE__ */ o((e, u) => {
|
|
538
|
+
ie[e] = u;
|
|
539
|
+
}, "setElementForId"), Ce = /* @__PURE__ */ o((e) => {
|
|
540
|
+
if (!e)
|
|
541
|
+
return;
|
|
542
|
+
const u = U(), p = v[v.length - 1];
|
|
543
|
+
e.icon && (p.icon = F(e.icon, u)), e.class && (p.cssClasses = F(e.class, u));
|
|
544
|
+
}, "decorateNode"), we = /* @__PURE__ */ o((e) => {
|
|
545
|
+
switch (e) {
|
|
546
|
+
case f.DEFAULT:
|
|
547
|
+
return "no-border";
|
|
548
|
+
case f.RECT:
|
|
549
|
+
return "rect";
|
|
550
|
+
case f.ROUNDED_RECT:
|
|
551
|
+
return "rounded-rect";
|
|
552
|
+
case f.CIRCLE:
|
|
553
|
+
return "circle";
|
|
554
|
+
case f.CLOUD:
|
|
555
|
+
return "cloud";
|
|
556
|
+
case f.BANG:
|
|
557
|
+
return "bang";
|
|
558
|
+
case f.HEXAGON:
|
|
559
|
+
return "hexgon";
|
|
560
|
+
// cspell: disable-line
|
|
561
|
+
default:
|
|
562
|
+
return "no-border";
|
|
563
|
+
}
|
|
564
|
+
}, "type2Str"), Ae = /* @__PURE__ */ o(() => te, "getLogger"), Te = /* @__PURE__ */ o((e) => ie[e], "getElementById"), Re = {
|
|
565
|
+
clear: xe,
|
|
566
|
+
addNode: Le,
|
|
567
|
+
getSections: he,
|
|
568
|
+
getData: De,
|
|
569
|
+
nodeType: f,
|
|
570
|
+
getType: Oe,
|
|
571
|
+
setElementForId: Ie,
|
|
572
|
+
decorateNode: Ce,
|
|
573
|
+
type2Str: we,
|
|
574
|
+
getLogger: Ae,
|
|
575
|
+
getElementById: Te
|
|
576
|
+
}, Pe = Re, Ve = /* @__PURE__ */ o(async (e, u, p, s) => {
|
|
577
|
+
var _a, _b, _c, _d, _e2;
|
|
578
|
+
te.debug(`Rendering kanban diagram
|
|
579
|
+
` + e);
|
|
580
|
+
const E = s.db.getData(), b = U();
|
|
581
|
+
b.htmlLabels = false;
|
|
582
|
+
const l = fe(u), D = l.append("g");
|
|
583
|
+
D.attr("class", "sections");
|
|
584
|
+
const I = l.append("g");
|
|
585
|
+
I.attr("class", "items");
|
|
586
|
+
const g = E.nodes.filter(
|
|
587
|
+
// TODO: TypeScript 5.5 will infer this predicate automatically
|
|
588
|
+
(m) => m.isGroup
|
|
589
|
+
);
|
|
590
|
+
let w = 0;
|
|
591
|
+
const _ = 10, G = [];
|
|
592
|
+
let N = 25;
|
|
593
|
+
for (const m of g) {
|
|
594
|
+
const A = ((_a = b == null ? void 0 : b.kanban) == null ? void 0 : _a.sectionWidth) || 200;
|
|
595
|
+
w = w + 1, m.x = A * w + (w - 1) * _ / 2, m.width = A, m.y = 0, m.height = A * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + w;
|
|
596
|
+
const L = await ye(D, m);
|
|
597
|
+
N = Math.max(N, (_b = L == null ? void 0 : L.labelBBox) == null ? void 0 : _b.height), G.push(L);
|
|
598
|
+
}
|
|
599
|
+
let V = 0;
|
|
600
|
+
for (const m of g) {
|
|
601
|
+
const A = G[V];
|
|
602
|
+
V = V + 1;
|
|
603
|
+
const L = ((_c = b == null ? void 0 : b.kanban) == null ? void 0 : _c.sectionWidth) || 200, H = -L * 3 / 2 + N;
|
|
604
|
+
let T = H;
|
|
605
|
+
const Y = E.nodes.filter((i) => i.parentId === m.id);
|
|
606
|
+
for (const i of Y) {
|
|
607
|
+
if (i.isGroup)
|
|
608
|
+
throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
609
|
+
i.x = m.x, i.width = L - 1.5 * _;
|
|
610
|
+
const r = (await be(I, i, { config: b })).node().getBBox();
|
|
611
|
+
i.y = T + r.height / 2, await me(i), T = i.y + r.height / 2 + _ / 2;
|
|
612
|
+
}
|
|
613
|
+
const B = A.cluster.select("rect"), O = Math.max(T - H + 3 * _, 50) + (N - 25);
|
|
614
|
+
B.attr("height", O);
|
|
615
|
+
}
|
|
616
|
+
_e(
|
|
617
|
+
void 0,
|
|
618
|
+
l,
|
|
619
|
+
((_d = b.mindmap) == null ? void 0 : _d.padding) ?? K.kanban.padding,
|
|
620
|
+
((_e2 = b.mindmap) == null ? void 0 : _e2.useMaxWidth) ?? K.kanban.useMaxWidth
|
|
621
|
+
);
|
|
622
|
+
}, "draw"), Be = {
|
|
623
|
+
draw: Ve
|
|
624
|
+
}, je = /* @__PURE__ */ o((e) => {
|
|
625
|
+
let u = "";
|
|
626
|
+
for (let s = 0; s < e.THEME_COLOR_LIMIT; s++)
|
|
627
|
+
e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s], Se(e["lineColor" + s]) ? e["lineColor" + s] = ce(e["lineColor" + s], 20) : e["lineColor" + s] = le(e["lineColor" + s], 20);
|
|
628
|
+
const p = /* @__PURE__ */ o((s, d) => e.darkMode ? le(s, d) : ce(s, d), "adjuster");
|
|
629
|
+
for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) {
|
|
630
|
+
const d = "" + (17 - 3 * s);
|
|
631
|
+
u += `
|
|
632
|
+
.section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
|
|
633
|
+
fill: ${p(e["cScale" + s], 10)};
|
|
634
|
+
stroke: ${p(e["cScale" + s], 10)};
|
|
635
|
+
|
|
636
|
+
}
|
|
637
|
+
.section-${s - 1} text {
|
|
638
|
+
fill: ${e["cScaleLabel" + s]};
|
|
639
|
+
}
|
|
640
|
+
.node-icon-${s - 1} {
|
|
641
|
+
font-size: 40px;
|
|
642
|
+
color: ${e["cScaleLabel" + s]};
|
|
643
|
+
}
|
|
644
|
+
.section-edge-${s - 1}{
|
|
645
|
+
stroke: ${e["cScale" + s]};
|
|
646
|
+
}
|
|
647
|
+
.edge-depth-${s - 1}{
|
|
648
|
+
stroke-width: ${d};
|
|
649
|
+
}
|
|
650
|
+
.section-${s - 1} line {
|
|
651
|
+
stroke: ${e["cScaleInv" + s]} ;
|
|
652
|
+
stroke-width: 3;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.disabled, .disabled circle, .disabled text {
|
|
656
|
+
fill: lightgray;
|
|
657
|
+
}
|
|
658
|
+
.disabled text {
|
|
659
|
+
fill: #efefef;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.node rect,
|
|
663
|
+
.node circle,
|
|
664
|
+
.node ellipse,
|
|
665
|
+
.node polygon,
|
|
666
|
+
.node path {
|
|
667
|
+
fill: ${e.background};
|
|
668
|
+
stroke: ${e.nodeBorder};
|
|
669
|
+
stroke-width: 1px;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.kanban-ticket-link {
|
|
673
|
+
fill: ${e.background};
|
|
674
|
+
stroke: ${e.nodeBorder};
|
|
675
|
+
text-decoration: underline;
|
|
676
|
+
}
|
|
677
|
+
`;
|
|
678
|
+
}
|
|
679
|
+
return u;
|
|
680
|
+
}, "genSections"), Fe = /* @__PURE__ */ o((e) => `
|
|
681
|
+
.edge {
|
|
682
|
+
stroke-width: 3;
|
|
683
|
+
}
|
|
684
|
+
${je(e)}
|
|
685
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
686
|
+
fill: ${e.git0};
|
|
687
|
+
}
|
|
688
|
+
.section-root text {
|
|
689
|
+
fill: ${e.gitBranchLabel0};
|
|
690
|
+
}
|
|
691
|
+
.icon-container {
|
|
692
|
+
height:100%;
|
|
693
|
+
display: flex;
|
|
694
|
+
justify-content: center;
|
|
695
|
+
align-items: center;
|
|
696
|
+
}
|
|
697
|
+
.edge {
|
|
698
|
+
fill: none;
|
|
699
|
+
}
|
|
700
|
+
.cluster-label, .label {
|
|
701
|
+
color: ${e.textColor};
|
|
702
|
+
fill: ${e.textColor};
|
|
703
|
+
}
|
|
704
|
+
.kanban-label {
|
|
705
|
+
dy: 1em;
|
|
706
|
+
alignment-baseline: middle;
|
|
707
|
+
text-anchor: middle;
|
|
708
|
+
dominant-baseline: middle;
|
|
709
|
+
text-align: center;
|
|
710
|
+
}
|
|
711
|
+
`, "getStyles"), Ge = Fe, Me = {
|
|
712
|
+
db: Pe,
|
|
713
|
+
renderer: Be,
|
|
714
|
+
parser: Ne,
|
|
715
|
+
styles: Ge
|
|
716
|
+
};
|
|
717
|
+
export {
|
|
718
|
+
Me as diagram
|
|
719
|
+
};
|