@kong-ui-public/documentation 1.4.17-pr.2665.525593492.0 → 1.4.17
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/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
- package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
- package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
- package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
- package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
- package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
- package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
- package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
- package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
- package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
- package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
- package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
- package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
- package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
- package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
- package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
- package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
- package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
- package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
- package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +860 -399
- package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
- package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
- package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
- package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
- package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
- package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
- package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
- package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
- package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
- package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
- package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
- package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
- package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
- package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
- package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
- package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
- package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
- package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
- package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
- package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
- package/package.json +4 -4
- package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
- package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
- package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
- package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
- package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
- package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
- package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
- package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
- package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
- package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
- package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
- package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
- package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
- package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
- package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
- package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
- package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
- package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
- package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
- package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
- package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
- package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
- package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
- package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { d as ft, y as rt, g as gt, x as mt } from "./chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js";
|
|
2
|
+
import { l as xt } from "./chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js";
|
|
3
|
+
import { _ as s, a6 as kt, a5 as _t, a7 as bt, a8 as wt, ao as $t, an as vt, g as B, a9 as X, aa as St, at as Tt } from "./index-BDD0CD9m.js";
|
|
4
|
+
import { h as tt } from "./arc-DYb5Ak6k-js8YHzj6.js";
|
|
5
|
+
var U = function() {
|
|
6
|
+
var t = /* @__PURE__ */ s(function(y, i, a, u) {
|
|
7
|
+
for (a = a || {}, u = y.length; u--; a[y[u]] = i) ;
|
|
8
|
+
return a;
|
|
9
|
+
}, "o"), e = [6, 8, 10, 11, 12, 14, 16, 17, 18], r = [1, 9], l = [1, 10], n = [1, 11], c = [1, 12], d = [1, 13], h = [1, 14], f = {
|
|
10
|
+
trace: /* @__PURE__ */ s(function() {
|
|
10
11
|
}, "trace"),
|
|
11
12
|
yy: {},
|
|
12
13
|
symbols_: { error: 2, start: 3, journey: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, taskName: 18, taskData: 19, $accept: 0, $end: 1 },
|
|
13
14
|
terminals_: { 2: "error", 4: "journey", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 18: "taskName", 19: "taskData" },
|
|
14
15
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2]],
|
|
15
|
-
performAction: /* @__PURE__ */
|
|
16
|
+
performAction: /* @__PURE__ */ s(function(y, i, a, u, p, o, x) {
|
|
16
17
|
var k = o.length - 1;
|
|
17
18
|
switch (p) {
|
|
18
19
|
case 1:
|
|
@@ -49,76 +50,76 @@ var q = function() {
|
|
|
49
50
|
break;
|
|
50
51
|
}
|
|
51
52
|
}, "anonymous"),
|
|
52
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11:
|
|
53
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: r, 12: l, 14: n, 16: c, 17: d, 18: h }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 15, 11: r, 12: l, 14: n, 16: c, 17: d, 18: h }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 8]), { 13: [1, 16] }, { 15: [1, 17] }, t(e, [2, 11]), t(e, [2, 12]), { 19: [1, 18] }, t(e, [2, 4]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 13])],
|
|
53
54
|
defaultActions: {},
|
|
54
|
-
parseError: /* @__PURE__ */
|
|
55
|
+
parseError: /* @__PURE__ */ s(function(y, i) {
|
|
55
56
|
if (i.recoverable)
|
|
56
|
-
this.trace(
|
|
57
|
+
this.trace(y);
|
|
57
58
|
else {
|
|
58
|
-
var
|
|
59
|
-
throw
|
|
59
|
+
var a = new Error(y);
|
|
60
|
+
throw a.hash = i, a;
|
|
60
61
|
}
|
|
61
62
|
}, "parseError"),
|
|
62
|
-
parse: /* @__PURE__ */
|
|
63
|
-
var i = this,
|
|
64
|
-
for (var
|
|
65
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
66
|
-
_.setInput(
|
|
67
|
-
var
|
|
68
|
-
o.push(
|
|
69
|
-
var
|
|
70
|
-
typeof
|
|
71
|
-
function
|
|
72
|
-
|
|
63
|
+
parse: /* @__PURE__ */ s(function(y) {
|
|
64
|
+
var i = this, a = [0], u = [], p = [null], o = [], x = this.table, k = "", E = 0, A = 0, ut = 2, J = 1, pt = o.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
|
|
65
|
+
for (var z in this.yy)
|
|
66
|
+
Object.prototype.hasOwnProperty.call(this.yy, z) && (I.yy[z] = this.yy[z]);
|
|
67
|
+
_.setInput(y, I.yy), I.yy.lexer = _, I.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
68
|
+
var Y = _.yylloc;
|
|
69
|
+
o.push(Y);
|
|
70
|
+
var yt = _.options && _.options.ranges;
|
|
71
|
+
typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
72
|
+
function dt(w) {
|
|
73
|
+
a.length = a.length - 2 * w, p.length = p.length - w, o.length = o.length - w;
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
-
function
|
|
76
|
-
var
|
|
77
|
-
return
|
|
75
|
+
s(dt, "popStack");
|
|
76
|
+
function K() {
|
|
77
|
+
var w;
|
|
78
|
+
return w = u.pop() || _.lex() || J, typeof w != "number" && (w instanceof Array && (u = w, w = u.pop()), w = i.symbols_[w] || w), w;
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
-
for (var b,
|
|
81
|
-
if (
|
|
82
|
-
var
|
|
83
|
-
|
|
84
|
-
for (F in
|
|
85
|
-
this.terminals_[F] && F >
|
|
86
|
-
_.showPosition ?
|
|
80
|
+
s(K, "lex");
|
|
81
|
+
for (var b, P, $, W, j = {}, F, T, H, O; ; ) {
|
|
82
|
+
if (P = a[a.length - 1], this.defaultActions[P] ? $ = this.defaultActions[P] : ((b === null || typeof b > "u") && (b = K()), $ = x[P] && x[P][b]), typeof $ > "u" || !$.length || !$[0]) {
|
|
83
|
+
var G = "";
|
|
84
|
+
O = [];
|
|
85
|
+
for (F in x[P])
|
|
86
|
+
this.terminals_[F] && F > ut && O.push("'" + this.terminals_[F] + "'");
|
|
87
|
+
_.showPosition ? G = "Parse error on line " + (E + 1) + `:
|
|
87
88
|
` + _.showPosition() + `
|
|
88
|
-
Expecting ` +
|
|
89
|
+
Expecting ` + O.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : G = "Parse error on line " + (E + 1) + ": Unexpected " + (b == J ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(G, {
|
|
89
90
|
text: _.match,
|
|
90
91
|
token: this.terminals_[b] || b,
|
|
91
92
|
line: _.yylineno,
|
|
92
|
-
loc:
|
|
93
|
-
expected:
|
|
93
|
+
loc: Y,
|
|
94
|
+
expected: O
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
|
-
if (
|
|
97
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
98
|
-
switch (
|
|
97
|
+
if ($[0] instanceof Array && $.length > 1)
|
|
98
|
+
throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + b);
|
|
99
|
+
switch ($[0]) {
|
|
99
100
|
case 1:
|
|
100
|
-
|
|
101
|
+
a.push(b), p.push(_.yytext), o.push(_.yylloc), a.push($[1]), b = null, A = _.yyleng, k = _.yytext, E = _.yylineno, Y = _.yylloc;
|
|
101
102
|
break;
|
|
102
103
|
case 2:
|
|
103
|
-
if (T = this.productions_[
|
|
104
|
+
if (T = this.productions_[$[1]][1], j.$ = p[p.length - T], j._$ = {
|
|
104
105
|
first_line: o[o.length - (T || 1)].first_line,
|
|
105
106
|
last_line: o[o.length - 1].last_line,
|
|
106
107
|
first_column: o[o.length - (T || 1)].first_column,
|
|
107
108
|
last_column: o[o.length - 1].last_column
|
|
108
|
-
},
|
|
109
|
+
}, yt && (j._$.range = [
|
|
109
110
|
o[o.length - (T || 1)].range[0],
|
|
110
111
|
o[o.length - 1].range[1]
|
|
111
|
-
]),
|
|
112
|
+
]), W = this.performAction.apply(j, [
|
|
112
113
|
k,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
A,
|
|
115
|
+
E,
|
|
116
|
+
I.yy,
|
|
117
|
+
$[1],
|
|
117
118
|
p,
|
|
118
119
|
o
|
|
119
|
-
].concat(
|
|
120
|
-
return
|
|
121
|
-
T && (
|
|
120
|
+
].concat(pt)), typeof W < "u")
|
|
121
|
+
return W;
|
|
122
|
+
T && (a = a.slice(0, -1 * T * 2), p = p.slice(0, -1 * T), o = o.slice(0, -1 * T)), a.push(this.productions_[$[1]][0]), p.push(j.$), o.push(j._$), H = x[a[a.length - 2]][a[a.length - 1]], a.push(H);
|
|
122
123
|
break;
|
|
123
124
|
case 3:
|
|
124
125
|
return !0;
|
|
@@ -126,18 +127,18 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
126
127
|
}
|
|
127
128
|
return !0;
|
|
128
129
|
}, "parse")
|
|
129
|
-
},
|
|
130
|
-
var
|
|
130
|
+
}, m = /* @__PURE__ */ function() {
|
|
131
|
+
var y = {
|
|
131
132
|
EOF: 1,
|
|
132
|
-
parseError: /* @__PURE__ */
|
|
133
|
+
parseError: /* @__PURE__ */ s(function(i, a) {
|
|
133
134
|
if (this.yy.parser)
|
|
134
|
-
this.yy.parser.parseError(i,
|
|
135
|
+
this.yy.parser.parseError(i, a);
|
|
135
136
|
else
|
|
136
137
|
throw new Error(i);
|
|
137
138
|
}, "parseError"),
|
|
138
139
|
// resets the lexer, sets new input
|
|
139
|
-
setInput: /* @__PURE__ */
|
|
140
|
-
return this.yy =
|
|
140
|
+
setInput: /* @__PURE__ */ s(function(i, a) {
|
|
141
|
+
return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
141
142
|
first_line: 1,
|
|
142
143
|
first_column: 0,
|
|
143
144
|
last_line: 1,
|
|
@@ -145,16 +146,16 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
145
146
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
146
147
|
}, "setInput"),
|
|
147
148
|
// consumes and returns one char from the input
|
|
148
|
-
input: /* @__PURE__ */
|
|
149
|
+
input: /* @__PURE__ */ s(function() {
|
|
149
150
|
var i = this._input[0];
|
|
150
151
|
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
151
|
-
var
|
|
152
|
-
return
|
|
152
|
+
var a = i.match(/(?:\r\n?|\n).*/g);
|
|
153
|
+
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
153
154
|
}, "input"),
|
|
154
155
|
// unshifts one char (or a string) into the input
|
|
155
|
-
unput: /* @__PURE__ */
|
|
156
|
-
var
|
|
157
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
156
|
+
unput: /* @__PURE__ */ s(function(i) {
|
|
157
|
+
var a = i.length, u = i.split(/(?:\r\n?|\n)/g);
|
|
158
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
158
159
|
var p = this.match.split(/(?:\r\n?|\n)/g);
|
|
159
160
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
|
|
160
161
|
var o = this.yylloc.range;
|
|
@@ -162,15 +163,15 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
162
163
|
first_line: this.yylloc.first_line,
|
|
163
164
|
last_line: this.yylineno + 1,
|
|
164
165
|
first_column: this.yylloc.first_column,
|
|
165
|
-
last_column: u ? (u.length === p.length ? this.yylloc.first_column : 0) + p[p.length - u.length].length - u[0].length : this.yylloc.first_column -
|
|
166
|
-
}, this.options.ranges && (this.yylloc.range = [o[0], o[0] + this.yyleng -
|
|
166
|
+
last_column: u ? (u.length === p.length ? this.yylloc.first_column : 0) + p[p.length - u.length].length - u[0].length : this.yylloc.first_column - a
|
|
167
|
+
}, this.options.ranges && (this.yylloc.range = [o[0], o[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
167
168
|
}, "unput"),
|
|
168
169
|
// When called from action, caches matched text and appends it on next action
|
|
169
|
-
more: /* @__PURE__ */
|
|
170
|
+
more: /* @__PURE__ */ s(function() {
|
|
170
171
|
return this._more = !0, this;
|
|
171
172
|
}, "more"),
|
|
172
173
|
// 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.
|
|
173
|
-
reject: /* @__PURE__ */
|
|
174
|
+
reject: /* @__PURE__ */ s(function() {
|
|
174
175
|
if (this.options.backtrack_lexer)
|
|
175
176
|
this._backtrack = !0;
|
|
176
177
|
else
|
|
@@ -183,27 +184,27 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
183
184
|
return this;
|
|
184
185
|
}, "reject"),
|
|
185
186
|
// retain first n characters of the match
|
|
186
|
-
less: /* @__PURE__ */
|
|
187
|
+
less: /* @__PURE__ */ s(function(i) {
|
|
187
188
|
this.unput(this.match.slice(i));
|
|
188
189
|
}, "less"),
|
|
189
190
|
// displays already matched input, i.e. for error messages
|
|
190
|
-
pastInput: /* @__PURE__ */
|
|
191
|
+
pastInput: /* @__PURE__ */ s(function() {
|
|
191
192
|
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
192
193
|
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
193
194
|
}, "pastInput"),
|
|
194
195
|
// displays upcoming input, i.e. for error messages
|
|
195
|
-
upcomingInput: /* @__PURE__ */
|
|
196
|
+
upcomingInput: /* @__PURE__ */ s(function() {
|
|
196
197
|
var i = this.match;
|
|
197
198
|
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
198
199
|
}, "upcomingInput"),
|
|
199
200
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
200
|
-
showPosition: /* @__PURE__ */
|
|
201
|
-
var i = this.pastInput(),
|
|
201
|
+
showPosition: /* @__PURE__ */ s(function() {
|
|
202
|
+
var i = this.pastInput(), a = new Array(i.length + 1).join("-");
|
|
202
203
|
return i + this.upcomingInput() + `
|
|
203
|
-
` +
|
|
204
|
+
` + a + "^";
|
|
204
205
|
}, "showPosition"),
|
|
205
206
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
206
|
-
test_match: /* @__PURE__ */
|
|
207
|
+
test_match: /* @__PURE__ */ s(function(i, a) {
|
|
207
208
|
var u, p, o;
|
|
208
209
|
if (this.options.backtrack_lexer && (o = {
|
|
209
210
|
yylineno: this.yylineno,
|
|
@@ -229,36 +230,36 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
229
230
|
last_line: this.yylineno + 1,
|
|
230
231
|
first_column: this.yylloc.last_column,
|
|
231
232
|
last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
232
|
-
}, 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 = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], u = this.performAction.call(this, this.yy, this,
|
|
233
|
+
}, 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 = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], u = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u)
|
|
233
234
|
return u;
|
|
234
235
|
if (this._backtrack) {
|
|
235
|
-
for (var
|
|
236
|
-
this[
|
|
236
|
+
for (var x in o)
|
|
237
|
+
this[x] = o[x];
|
|
237
238
|
return !1;
|
|
238
239
|
}
|
|
239
240
|
return !1;
|
|
240
241
|
}, "test_match"),
|
|
241
242
|
// return next match in input
|
|
242
|
-
next: /* @__PURE__ */
|
|
243
|
+
next: /* @__PURE__ */ s(function() {
|
|
243
244
|
if (this.done)
|
|
244
245
|
return this.EOF;
|
|
245
246
|
this._input || (this.done = !0);
|
|
246
|
-
var i,
|
|
247
|
+
var i, a, u, p;
|
|
247
248
|
this._more || (this.yytext = "", this.match = "");
|
|
248
|
-
for (var o = this._currentRules(),
|
|
249
|
-
if (u = this._input.match(this.rules[o[
|
|
250
|
-
if (
|
|
251
|
-
if (i = this.test_match(u, o[
|
|
249
|
+
for (var o = this._currentRules(), x = 0; x < o.length; x++)
|
|
250
|
+
if (u = this._input.match(this.rules[o[x]]), u && (!a || u[0].length > a[0].length)) {
|
|
251
|
+
if (a = u, p = x, this.options.backtrack_lexer) {
|
|
252
|
+
if (i = this.test_match(u, o[x]), i !== !1)
|
|
252
253
|
return i;
|
|
253
254
|
if (this._backtrack) {
|
|
254
|
-
|
|
255
|
+
a = !1;
|
|
255
256
|
continue;
|
|
256
257
|
} else
|
|
257
258
|
return !1;
|
|
258
259
|
} else if (!this.options.flex)
|
|
259
260
|
break;
|
|
260
261
|
}
|
|
261
|
-
return
|
|
262
|
+
return a ? (i = this.test_match(a, o[p]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
262
263
|
` + this.showPosition(), {
|
|
263
264
|
text: "",
|
|
264
265
|
token: null,
|
|
@@ -266,37 +267,37 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
266
267
|
});
|
|
267
268
|
}, "next"),
|
|
268
269
|
// return next match that has a token
|
|
269
|
-
lex: /* @__PURE__ */
|
|
270
|
+
lex: /* @__PURE__ */ s(function() {
|
|
270
271
|
var i = this.next();
|
|
271
272
|
return i || this.lex();
|
|
272
273
|
}, "lex"),
|
|
273
274
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
274
|
-
begin: /* @__PURE__ */
|
|
275
|
+
begin: /* @__PURE__ */ s(function(i) {
|
|
275
276
|
this.conditionStack.push(i);
|
|
276
277
|
}, "begin"),
|
|
277
278
|
// pop the previously active lexer condition state off the condition stack
|
|
278
|
-
popState: /* @__PURE__ */
|
|
279
|
+
popState: /* @__PURE__ */ s(function() {
|
|
279
280
|
var i = this.conditionStack.length - 1;
|
|
280
281
|
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
281
282
|
}, "popState"),
|
|
282
283
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
283
|
-
_currentRules: /* @__PURE__ */
|
|
284
|
+
_currentRules: /* @__PURE__ */ s(function() {
|
|
284
285
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
285
286
|
}, "_currentRules"),
|
|
286
287
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
287
|
-
topState: /* @__PURE__ */
|
|
288
|
+
topState: /* @__PURE__ */ s(function(i) {
|
|
288
289
|
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
289
290
|
}, "topState"),
|
|
290
291
|
// alias for begin(condition)
|
|
291
|
-
pushState: /* @__PURE__ */
|
|
292
|
+
pushState: /* @__PURE__ */ s(function(i) {
|
|
292
293
|
this.begin(i);
|
|
293
294
|
}, "pushState"),
|
|
294
295
|
// return the number of states currently on the stack
|
|
295
|
-
stateStackSize: /* @__PURE__ */
|
|
296
|
+
stateStackSize: /* @__PURE__ */ s(function() {
|
|
296
297
|
return this.conditionStack.length;
|
|
297
298
|
}, "stateStackSize"),
|
|
298
299
|
options: { "case-insensitive": !0 },
|
|
299
|
-
performAction: /* @__PURE__ */
|
|
300
|
+
performAction: /* @__PURE__ */ s(function(i, a, u, p) {
|
|
300
301
|
switch (u) {
|
|
301
302
|
case 0:
|
|
302
303
|
break;
|
|
@@ -345,82 +346,81 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : Y = "
|
|
|
345
346
|
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:journey\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^#:\n;]+)/i, /^(?:[^#:\n;]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
|
|
346
347
|
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], inclusive: !0 } }
|
|
347
348
|
};
|
|
348
|
-
return
|
|
349
|
+
return y;
|
|
349
350
|
}();
|
|
350
|
-
|
|
351
|
-
function
|
|
351
|
+
f.lexer = m;
|
|
352
|
+
function g() {
|
|
352
353
|
this.yy = {};
|
|
353
354
|
}
|
|
354
|
-
return
|
|
355
|
+
return s(g, "Parser"), g.prototype = f, f.Parser = g, new g();
|
|
355
356
|
}();
|
|
356
|
-
|
|
357
|
-
var
|
|
358
|
-
|
|
359
|
-
}, "clear"),
|
|
360
|
-
|
|
361
|
-
}, "addSection"),
|
|
362
|
-
return
|
|
363
|
-
}, "getSections"),
|
|
364
|
-
let t =
|
|
357
|
+
U.parser = U;
|
|
358
|
+
var Ct = U, V = "", Q = [], D = [], L = [], Mt = /* @__PURE__ */ s(function() {
|
|
359
|
+
Q.length = 0, D.length = 0, V = "", L.length = 0, Tt();
|
|
360
|
+
}, "clear"), Et = /* @__PURE__ */ s(function(t) {
|
|
361
|
+
V = t, Q.push(t);
|
|
362
|
+
}, "addSection"), It = /* @__PURE__ */ s(function() {
|
|
363
|
+
return Q;
|
|
364
|
+
}, "getSections"), Pt = /* @__PURE__ */ s(function() {
|
|
365
|
+
let t = et();
|
|
365
366
|
const e = 100;
|
|
366
|
-
let
|
|
367
|
-
for (; !t &&
|
|
368
|
-
t =
|
|
369
|
-
return
|
|
370
|
-
}, "getTasks"),
|
|
367
|
+
let r = 0;
|
|
368
|
+
for (; !t && r < e; )
|
|
369
|
+
t = et(), r++;
|
|
370
|
+
return D.push(...L), D;
|
|
371
|
+
}, "getTasks"), At = /* @__PURE__ */ s(function() {
|
|
371
372
|
const t = [];
|
|
372
|
-
return
|
|
373
|
+
return D.forEach((e) => {
|
|
373
374
|
e.people && t.push(...e.people);
|
|
374
375
|
}), [...new Set(t)].sort();
|
|
375
|
-
}, "updateActors"),
|
|
376
|
-
const
|
|
377
|
-
let l = 0,
|
|
378
|
-
|
|
379
|
-
const
|
|
380
|
-
section:
|
|
381
|
-
type:
|
|
382
|
-
people:
|
|
376
|
+
}, "updateActors"), jt = /* @__PURE__ */ s(function(t, e) {
|
|
377
|
+
const r = e.substr(1).split(":");
|
|
378
|
+
let l = 0, n = [];
|
|
379
|
+
r.length === 1 ? (l = Number(r[0]), n = []) : (l = Number(r[0]), n = r[1].split(","));
|
|
380
|
+
const c = n.map((h) => h.trim()), d = {
|
|
381
|
+
section: V,
|
|
382
|
+
type: V,
|
|
383
|
+
people: c,
|
|
383
384
|
task: t,
|
|
384
385
|
score: l
|
|
385
386
|
};
|
|
386
|
-
|
|
387
|
-
}, "addTask"),
|
|
387
|
+
L.push(d);
|
|
388
|
+
}, "addTask"), Vt = /* @__PURE__ */ s(function(t) {
|
|
388
389
|
const e = {
|
|
389
|
-
section:
|
|
390
|
-
type:
|
|
390
|
+
section: V,
|
|
391
|
+
type: V,
|
|
391
392
|
description: t,
|
|
392
393
|
task: t,
|
|
393
394
|
classes: []
|
|
394
395
|
};
|
|
395
|
-
|
|
396
|
-
}, "addTaskOrg"),
|
|
397
|
-
const t = /* @__PURE__ */
|
|
398
|
-
return
|
|
396
|
+
D.push(e);
|
|
397
|
+
}, "addTaskOrg"), et = /* @__PURE__ */ s(function() {
|
|
398
|
+
const t = /* @__PURE__ */ s(function(r) {
|
|
399
|
+
return L[r].processed;
|
|
399
400
|
}, "compileTask");
|
|
400
401
|
let e = !0;
|
|
401
|
-
for (const [
|
|
402
|
-
t(
|
|
402
|
+
for (const [r, l] of L.entries())
|
|
403
|
+
t(r), e = e && l.processed;
|
|
403
404
|
return e;
|
|
404
|
-
}, "compileTasks"),
|
|
405
|
-
return
|
|
406
|
-
}, "getActors"),
|
|
407
|
-
getConfig: /* @__PURE__ */
|
|
408
|
-
clear:
|
|
409
|
-
setDiagramTitle:
|
|
410
|
-
getDiagramTitle:
|
|
411
|
-
setAccTitle:
|
|
412
|
-
getAccTitle:
|
|
413
|
-
setAccDescription:
|
|
414
|
-
getAccDescription:
|
|
415
|
-
addSection:
|
|
416
|
-
getSections:
|
|
417
|
-
getTasks:
|
|
418
|
-
addTask:
|
|
419
|
-
addTaskOrg:
|
|
420
|
-
getActors:
|
|
421
|
-
},
|
|
422
|
-
font-family:
|
|
423
|
-
font-family: var(--mermaid-font-family);
|
|
405
|
+
}, "compileTasks"), Bt = /* @__PURE__ */ s(function() {
|
|
406
|
+
return At();
|
|
407
|
+
}, "getActors"), it = {
|
|
408
|
+
getConfig: /* @__PURE__ */ s(() => B().journey, "getConfig"),
|
|
409
|
+
clear: Mt,
|
|
410
|
+
setDiagramTitle: vt,
|
|
411
|
+
getDiagramTitle: $t,
|
|
412
|
+
setAccTitle: wt,
|
|
413
|
+
getAccTitle: bt,
|
|
414
|
+
setAccDescription: _t,
|
|
415
|
+
getAccDescription: kt,
|
|
416
|
+
addSection: Et,
|
|
417
|
+
getSections: It,
|
|
418
|
+
getTasks: Pt,
|
|
419
|
+
addTask: jt,
|
|
420
|
+
addTaskOrg: Vt,
|
|
421
|
+
getActors: Bt
|
|
422
|
+
}, Dt = /* @__PURE__ */ s((t) => `.label {
|
|
423
|
+
font-family: ${t.fontFamily};
|
|
424
424
|
color: ${t.textColor};
|
|
425
425
|
}
|
|
426
426
|
.mouth {
|
|
@@ -433,6 +433,7 @@ var Tt = q, C = "", U = [], j = [], V = [], St = /* @__PURE__ */ n(function() {
|
|
|
433
433
|
|
|
434
434
|
.legend {
|
|
435
435
|
fill: ${t.textColor};
|
|
436
|
+
font-family: ${t.fontFamily};
|
|
436
437
|
}
|
|
437
438
|
|
|
438
439
|
.label text {
|
|
@@ -498,8 +499,7 @@ var Tt = q, C = "", U = [], j = [], V = [], St = /* @__PURE__ */ n(function() {
|
|
|
498
499
|
text-align: center;
|
|
499
500
|
max-width: 200px;
|
|
500
501
|
padding: 2px;
|
|
501
|
-
font-family:
|
|
502
|
-
font-family: var(--mermaid-font-family);
|
|
502
|
+
font-family: ${t.fontFamily};
|
|
503
503
|
font-size: 12px;
|
|
504
504
|
background: ${t.tertiaryColor};
|
|
505
505
|
border: 1px solid ${t.border2};
|
|
@@ -551,178 +551,202 @@ var Tt = q, C = "", U = [], j = [], V = [], St = /* @__PURE__ */ n(function() {
|
|
|
551
551
|
.actor-5 {
|
|
552
552
|
${t.actor5 ? `fill: ${t.actor5}` : ""};
|
|
553
553
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
554
|
+
${xt()}
|
|
555
|
+
`, "getStyles"), Lt = Dt, Z = /* @__PURE__ */ s(function(t, e) {
|
|
556
|
+
return mt(t, e);
|
|
557
|
+
}, "drawRect"), Rt = /* @__PURE__ */ s(function(t, e) {
|
|
558
|
+
const r = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), l = t.append("g");
|
|
558
559
|
l.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), l.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
559
|
-
function
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
n
|
|
564
|
-
function h
|
|
565
|
-
const
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
function
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
return
|
|
573
|
-
}, "drawFace"),
|
|
574
|
-
const
|
|
575
|
-
return
|
|
576
|
-
}, "drawCircle"),
|
|
577
|
-
return
|
|
578
|
-
}, "drawText"), Ft = /* @__PURE__ */
|
|
579
|
-
function
|
|
580
|
-
return
|
|
581
|
-
}
|
|
582
|
-
|
|
560
|
+
function n(h) {
|
|
561
|
+
const f = tt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
562
|
+
h.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
|
|
563
|
+
}
|
|
564
|
+
s(n, "smile");
|
|
565
|
+
function c(h) {
|
|
566
|
+
const f = tt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
567
|
+
h.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
|
|
568
|
+
}
|
|
569
|
+
s(c, "sad");
|
|
570
|
+
function d(h) {
|
|
571
|
+
h.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
572
|
+
}
|
|
573
|
+
return s(d, "ambivalent"), e.score > 3 ? n(l) : e.score < 3 ? c(l) : d(l), r;
|
|
574
|
+
}, "drawFace"), ot = /* @__PURE__ */ s(function(t, e) {
|
|
575
|
+
const r = t.append("circle");
|
|
576
|
+
return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r;
|
|
577
|
+
}, "drawCircle"), lt = /* @__PURE__ */ s(function(t, e) {
|
|
578
|
+
return gt(t, e);
|
|
579
|
+
}, "drawText"), Ft = /* @__PURE__ */ s(function(t, e) {
|
|
580
|
+
function r(n, c, d, h, f) {
|
|
581
|
+
return n + "," + c + " " + (n + d) + "," + c + " " + (n + d) + "," + (c + h - f) + " " + (n + d - f * 1.2) + "," + (c + h) + " " + n + "," + (c + h);
|
|
582
|
+
}
|
|
583
|
+
s(r, "genPoints");
|
|
583
584
|
const l = t.append("polygon");
|
|
584
|
-
l.attr("points",
|
|
585
|
-
}, "drawLabel"),
|
|
586
|
-
const l = t.append("g"),
|
|
587
|
-
|
|
588
|
-
|
|
585
|
+
l.attr("points", r(e.x, e.y, 50, 20, 7)), l.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, lt(t, e);
|
|
586
|
+
}, "drawLabel"), Ot = /* @__PURE__ */ s(function(t, e, r) {
|
|
587
|
+
const l = t.append("g"), n = rt();
|
|
588
|
+
n.x = e.x, n.y = e.y, n.fill = e.fill, n.width = r.width * e.taskCount + // width of the tasks
|
|
589
|
+
r.diagramMarginX * (e.taskCount - 1), n.height = r.height, n.class = "journey-section section-type-" + e.num, n.rx = 3, n.ry = 3, Z(l, n), ct(r)(
|
|
589
590
|
e.text,
|
|
590
591
|
l,
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
592
|
+
n.x,
|
|
593
|
+
n.y,
|
|
594
|
+
n.width,
|
|
595
|
+
n.height,
|
|
595
596
|
{ class: "journey-section section-type-" + e.num },
|
|
596
|
-
|
|
597
|
+
r,
|
|
597
598
|
e.colour
|
|
598
599
|
);
|
|
599
|
-
}, "drawSection"),
|
|
600
|
-
const l = e.x +
|
|
601
|
-
|
|
602
|
-
const h = 300 + 5 * 30;
|
|
603
|
-
s.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", e.y).attr("x2", l).attr("y2", h).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Dt(s, {
|
|
600
|
+
}, "drawSection"), nt = -1, Nt = /* @__PURE__ */ s(function(t, e, r) {
|
|
601
|
+
const l = e.x + r.width / 2, n = t.append("g");
|
|
602
|
+
nt++, n.append("line").attr("id", "task" + nt).attr("x1", l).attr("y1", e.y).attr("x2", l).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Rt(n, {
|
|
604
603
|
cx: l,
|
|
605
604
|
cy: 300 + (5 - e.score) * 30,
|
|
606
605
|
score: e.score
|
|
607
606
|
});
|
|
608
|
-
const c =
|
|
609
|
-
c.x = e.x, c.y = e.y, c.fill = e.fill, c.width =
|
|
610
|
-
let
|
|
611
|
-
e.people.forEach((
|
|
612
|
-
const
|
|
613
|
-
cx:
|
|
607
|
+
const c = rt();
|
|
608
|
+
c.x = e.x, c.y = e.y, c.fill = e.fill, c.width = r.width, c.height = r.height, c.class = "task task-type-" + e.num, c.rx = 3, c.ry = 3, Z(n, c);
|
|
609
|
+
let d = e.x + 14;
|
|
610
|
+
e.people.forEach((h) => {
|
|
611
|
+
const f = e.actors[h].color, m = {
|
|
612
|
+
cx: d,
|
|
614
613
|
cy: e.y,
|
|
615
614
|
r: 7,
|
|
616
|
-
fill:
|
|
615
|
+
fill: f,
|
|
617
616
|
stroke: "#000",
|
|
618
|
-
title:
|
|
619
|
-
pos: e.actors[
|
|
617
|
+
title: h,
|
|
618
|
+
pos: e.actors[h].position
|
|
620
619
|
};
|
|
621
|
-
|
|
622
|
-
}),
|
|
620
|
+
ot(n, m), d += 10;
|
|
621
|
+
}), ct(r)(
|
|
623
622
|
e.task,
|
|
624
|
-
|
|
623
|
+
n,
|
|
625
624
|
c.x,
|
|
626
625
|
c.y,
|
|
627
626
|
c.width,
|
|
628
627
|
c.height,
|
|
629
628
|
{ class: "task" },
|
|
630
|
-
|
|
629
|
+
r,
|
|
631
630
|
e.colour
|
|
632
631
|
);
|
|
633
|
-
}, "drawTask"),
|
|
634
|
-
|
|
635
|
-
}, "drawBackgroundRect"),
|
|
636
|
-
function t(
|
|
637
|
-
const i =
|
|
638
|
-
l(i,
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
function e(
|
|
642
|
-
const { taskFontSize:
|
|
632
|
+
}, "drawTask"), zt = /* @__PURE__ */ s(function(t, e) {
|
|
633
|
+
ft(t, e);
|
|
634
|
+
}, "drawBackgroundRect"), ct = /* @__PURE__ */ function() {
|
|
635
|
+
function t(n, c, d, h, f, m, g, y) {
|
|
636
|
+
const i = c.append("text").attr("x", d + f / 2).attr("y", h + m / 2 + 5).style("font-color", y).style("text-anchor", "middle").text(n);
|
|
637
|
+
l(i, g);
|
|
638
|
+
}
|
|
639
|
+
s(t, "byText");
|
|
640
|
+
function e(n, c, d, h, f, m, g, y, i) {
|
|
641
|
+
const { taskFontSize: a, taskFontFamily: u } = y, p = n.split(/<br\s*\/?>/gi);
|
|
643
642
|
for (let o = 0; o < p.length; o++) {
|
|
644
|
-
const
|
|
645
|
-
k.append("tspan").attr("x",
|
|
643
|
+
const x = o * a - a * (p.length - 1) / 2, k = c.append("text").attr("x", d + f / 2).attr("y", h).attr("fill", i).style("text-anchor", "middle").style("font-size", a).style("font-family", u);
|
|
644
|
+
k.append("tspan").attr("x", d + f / 2).attr("dy", x).text(p[o]), k.attr("y", h + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(k, g);
|
|
646
645
|
}
|
|
647
646
|
}
|
|
648
|
-
|
|
649
|
-
function
|
|
650
|
-
const i =
|
|
651
|
-
|
|
647
|
+
s(e, "byTspan");
|
|
648
|
+
function r(n, c, d, h, f, m, g, y) {
|
|
649
|
+
const i = c.append("switch"), a = i.append("foreignObject").attr("x", d).attr("y", h).attr("width", f).attr("height", m).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
650
|
+
a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(n), e(n, i, d, h, f, m, g, y), l(a, g);
|
|
652
651
|
}
|
|
653
|
-
|
|
654
|
-
function l(
|
|
655
|
-
for (const
|
|
656
|
-
|
|
652
|
+
s(r, "byFo");
|
|
653
|
+
function l(n, c) {
|
|
654
|
+
for (const d in c)
|
|
655
|
+
d in c && n.attr(d, c[d]);
|
|
657
656
|
}
|
|
658
|
-
return
|
|
659
|
-
return
|
|
657
|
+
return s(l, "_setTextAttrs"), function(n) {
|
|
658
|
+
return n.textPlacement === "fo" ? r : n.textPlacement === "old" ? t : e;
|
|
660
659
|
};
|
|
661
|
-
}(),
|
|
660
|
+
}(), Yt = /* @__PURE__ */ s(function(t) {
|
|
662
661
|
t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
663
|
-
}, "initGraphics"),
|
|
662
|
+
}, "initGraphics"), R = {
|
|
664
663
|
drawRect: Z,
|
|
665
|
-
drawCircle:
|
|
666
|
-
drawSection:
|
|
667
|
-
drawText:
|
|
664
|
+
drawCircle: ot,
|
|
665
|
+
drawSection: Ot,
|
|
666
|
+
drawText: lt,
|
|
668
667
|
drawLabel: Ft,
|
|
669
|
-
drawTask:
|
|
670
|
-
drawBackgroundRect:
|
|
671
|
-
initGraphics:
|
|
672
|
-
},
|
|
668
|
+
drawTask: Nt,
|
|
669
|
+
drawBackgroundRect: zt,
|
|
670
|
+
initGraphics: Yt
|
|
671
|
+
}, Wt = /* @__PURE__ */ s(function(t) {
|
|
673
672
|
Object.keys(t).forEach(function(e) {
|
|
674
|
-
|
|
673
|
+
S[e] = t[e];
|
|
675
674
|
});
|
|
676
|
-
}, "setConf"),
|
|
677
|
-
function
|
|
678
|
-
const e =
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
675
|
+
}, "setConf"), C = {}, N = 0;
|
|
676
|
+
function ht(t) {
|
|
677
|
+
const e = B().journey, r = e.maxLabelWidth;
|
|
678
|
+
N = 0;
|
|
679
|
+
let l = 60;
|
|
680
|
+
Object.keys(C).forEach((n) => {
|
|
681
|
+
const c = C[n].color, d = {
|
|
682
682
|
cx: 20,
|
|
683
|
-
cy:
|
|
683
|
+
cy: l,
|
|
684
684
|
r: 7,
|
|
685
|
-
fill:
|
|
685
|
+
fill: c,
|
|
686
686
|
stroke: "#000",
|
|
687
|
-
pos:
|
|
687
|
+
pos: C[n].position
|
|
688
688
|
};
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
689
|
+
R.drawCircle(t, d);
|
|
690
|
+
let h = t.append("text").attr("visibility", "hidden").text(n);
|
|
691
|
+
const f = h.node().getBoundingClientRect().width;
|
|
692
|
+
h.remove();
|
|
693
|
+
let m = [];
|
|
694
|
+
if (f <= r)
|
|
695
|
+
m = [n];
|
|
696
|
+
else {
|
|
697
|
+
const g = n.split(" ");
|
|
698
|
+
let y = "";
|
|
699
|
+
h = t.append("text").attr("visibility", "hidden"), g.forEach((i) => {
|
|
700
|
+
const a = y ? `${y} ${i}` : i;
|
|
701
|
+
if (h.text(a), h.node().getBoundingClientRect().width > r) {
|
|
702
|
+
if (y && m.push(y), y = i, h.text(i), h.node().getBoundingClientRect().width > r) {
|
|
703
|
+
let u = "";
|
|
704
|
+
for (const p of i)
|
|
705
|
+
u += p, h.text(u + "-"), h.node().getBoundingClientRect().width > r && (m.push(u.slice(0, -1) + "-"), u = p);
|
|
706
|
+
y = u;
|
|
707
|
+
}
|
|
708
|
+
} else
|
|
709
|
+
y = a;
|
|
710
|
+
}), y && m.push(y), h.remove();
|
|
711
|
+
}
|
|
712
|
+
m.forEach((g, y) => {
|
|
713
|
+
const i = {
|
|
714
|
+
x: 40,
|
|
715
|
+
y: l + 7 + y * 20,
|
|
716
|
+
fill: "#666",
|
|
717
|
+
text: g,
|
|
718
|
+
textMargin: e.boxTextMargin ?? 5
|
|
719
|
+
}, a = R.drawText(t, i).node().getBoundingClientRect().width;
|
|
720
|
+
a > N && a > e.leftMargin - a && (N = a);
|
|
721
|
+
}), l += Math.max(20, m.length * 20);
|
|
698
722
|
});
|
|
699
723
|
}
|
|
700
|
-
|
|
701
|
-
var
|
|
702
|
-
const
|
|
703
|
-
let
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
const
|
|
710
|
-
for (const
|
|
711
|
-
delete
|
|
712
|
-
let
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
color:
|
|
716
|
-
position:
|
|
717
|
-
},
|
|
718
|
-
}),
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
const
|
|
722
|
-
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
}, "draw"),
|
|
724
|
+
s(ht, "drawActorLegend");
|
|
725
|
+
var S = B().journey, M = 0, Gt = /* @__PURE__ */ s(function(t, e, r, l) {
|
|
726
|
+
const n = B(), c = n.journey.titleColor, d = n.journey.titleFontSize, h = n.journey.titleFontFamily, f = n.securityLevel;
|
|
727
|
+
let m;
|
|
728
|
+
f === "sandbox" && (m = X("#i" + e));
|
|
729
|
+
const g = f === "sandbox" ? X(m.nodes()[0].contentDocument.body) : X("body");
|
|
730
|
+
v.init();
|
|
731
|
+
const y = g.select("#" + e);
|
|
732
|
+
R.initGraphics(y);
|
|
733
|
+
const i = l.db.getTasks(), a = l.db.getDiagramTitle(), u = l.db.getActors();
|
|
734
|
+
for (const A in C)
|
|
735
|
+
delete C[A];
|
|
736
|
+
let p = 0;
|
|
737
|
+
u.forEach((A) => {
|
|
738
|
+
C[A] = {
|
|
739
|
+
color: S.actorColours[p % S.actorColours.length],
|
|
740
|
+
position: p
|
|
741
|
+
}, p++;
|
|
742
|
+
}), ht(y), M = S.leftMargin + N, v.insert(0, 0, M, Object.keys(C).length * 50), Xt(y, i, 0);
|
|
743
|
+
const o = v.getBounds();
|
|
744
|
+
a && y.append("text").text(a).attr("x", M).attr("font-size", d).attr("font-weight", "bold").attr("y", 25).attr("fill", c).attr("font-family", h);
|
|
745
|
+
const x = o.stopy - o.starty + 2 * S.diagramMarginY, k = M + o.stopx + 2 * S.diagramMarginX;
|
|
746
|
+
St(y, x, k, S.useMaxWidth), y.append("line").attr("x1", M).attr("y1", S.height * 4).attr("x2", k - M - 4).attr("y2", S.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
|
|
747
|
+
const E = a ? 70 : 0;
|
|
748
|
+
y.attr("viewBox", `${o.startx} -25 ${k} ${x + E}`), y.attr("preserveAspectRatio", "xMinYMin meet"), y.attr("height", x + E + 25);
|
|
749
|
+
}, "draw"), v = {
|
|
726
750
|
data: {
|
|
727
751
|
startx: void 0,
|
|
728
752
|
stopx: void 0,
|
|
@@ -731,7 +755,7 @@ var O = I().journey, E = O.leftMargin, Yt = /* @__PURE__ */ n(function(t, e, a,
|
|
|
731
755
|
},
|
|
732
756
|
verticalPos: 0,
|
|
733
757
|
sequenceItems: [],
|
|
734
|
-
init: /* @__PURE__ */
|
|
758
|
+
init: /* @__PURE__ */ s(function() {
|
|
735
759
|
this.sequenceItems = [], this.data = {
|
|
736
760
|
startx: void 0,
|
|
737
761
|
stopx: void 0,
|
|
@@ -739,72 +763,72 @@ var O = I().journey, E = O.leftMargin, Yt = /* @__PURE__ */ n(function(t, e, a,
|
|
|
739
763
|
stopy: void 0
|
|
740
764
|
}, this.verticalPos = 0;
|
|
741
765
|
}, "init"),
|
|
742
|
-
updateVal: /* @__PURE__ */
|
|
743
|
-
t[e] === void 0 ? t[e] =
|
|
766
|
+
updateVal: /* @__PURE__ */ s(function(t, e, r, l) {
|
|
767
|
+
t[e] === void 0 ? t[e] = r : t[e] = l(r, t[e]);
|
|
744
768
|
}, "updateVal"),
|
|
745
|
-
updateBounds: /* @__PURE__ */
|
|
746
|
-
const
|
|
747
|
-
let
|
|
748
|
-
function
|
|
749
|
-
return /* @__PURE__ */
|
|
750
|
-
|
|
751
|
-
const
|
|
752
|
-
|
|
769
|
+
updateBounds: /* @__PURE__ */ s(function(t, e, r, l) {
|
|
770
|
+
const n = B().journey, c = this;
|
|
771
|
+
let d = 0;
|
|
772
|
+
function h(f) {
|
|
773
|
+
return /* @__PURE__ */ s(function(m) {
|
|
774
|
+
d++;
|
|
775
|
+
const g = c.sequenceItems.length - d + 1;
|
|
776
|
+
c.updateVal(m, "starty", e - g * n.boxMargin, Math.min), c.updateVal(m, "stopy", l + g * n.boxMargin, Math.max), c.updateVal(v.data, "startx", t - g * n.boxMargin, Math.min), c.updateVal(v.data, "stopx", r + g * n.boxMargin, Math.max), f !== "activation" && (c.updateVal(m, "startx", t - g * n.boxMargin, Math.min), c.updateVal(m, "stopx", r + g * n.boxMargin, Math.max), c.updateVal(v.data, "starty", e - g * n.boxMargin, Math.min), c.updateVal(v.data, "stopy", l + g * n.boxMargin, Math.max));
|
|
753
777
|
}, "updateItemBounds");
|
|
754
778
|
}
|
|
755
|
-
|
|
779
|
+
s(h, "updateFn"), this.sequenceItems.forEach(h());
|
|
756
780
|
}, "updateBounds"),
|
|
757
|
-
insert: /* @__PURE__ */
|
|
758
|
-
const
|
|
759
|
-
this.updateVal(
|
|
781
|
+
insert: /* @__PURE__ */ s(function(t, e, r, l) {
|
|
782
|
+
const n = Math.min(t, r), c = Math.max(t, r), d = Math.min(e, l), h = Math.max(e, l);
|
|
783
|
+
this.updateVal(v.data, "startx", n, Math.min), this.updateVal(v.data, "starty", d, Math.min), this.updateVal(v.data, "stopx", c, Math.max), this.updateVal(v.data, "stopy", h, Math.max), this.updateBounds(n, d, c, h);
|
|
760
784
|
}, "insert"),
|
|
761
|
-
bumpVerticalPos: /* @__PURE__ */
|
|
785
|
+
bumpVerticalPos: /* @__PURE__ */ s(function(t) {
|
|
762
786
|
this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
|
|
763
787
|
}, "bumpVerticalPos"),
|
|
764
|
-
getVerticalPos: /* @__PURE__ */
|
|
788
|
+
getVerticalPos: /* @__PURE__ */ s(function() {
|
|
765
789
|
return this.verticalPos;
|
|
766
790
|
}, "getVerticalPos"),
|
|
767
|
-
getBounds: /* @__PURE__ */
|
|
791
|
+
getBounds: /* @__PURE__ */ s(function() {
|
|
768
792
|
return this.data;
|
|
769
793
|
}, "getBounds")
|
|
770
|
-
},
|
|
771
|
-
const l =
|
|
772
|
-
let
|
|
773
|
-
const
|
|
774
|
-
let
|
|
775
|
-
for (const [
|
|
776
|
-
if (
|
|
777
|
-
|
|
794
|
+
}, q = S.sectionFills, st = S.sectionColours, Xt = /* @__PURE__ */ s(function(t, e, r) {
|
|
795
|
+
const l = B().journey;
|
|
796
|
+
let n = "";
|
|
797
|
+
const c = l.height * 2 + l.diagramMarginY, d = r + c;
|
|
798
|
+
let h = 0, f = "#CCC", m = "black", g = 0;
|
|
799
|
+
for (const [y, i] of e.entries()) {
|
|
800
|
+
if (n !== i.section) {
|
|
801
|
+
f = q[h % q.length], g = h % q.length, m = st[h % st.length];
|
|
778
802
|
let u = 0;
|
|
779
803
|
const p = i.section;
|
|
780
|
-
for (let
|
|
804
|
+
for (let x = y; x < e.length && e[x].section == p; x++)
|
|
781
805
|
u = u + 1;
|
|
782
806
|
const o = {
|
|
783
|
-
x:
|
|
807
|
+
x: y * l.taskMargin + y * l.width + M,
|
|
784
808
|
y: 50,
|
|
785
809
|
text: i.section,
|
|
786
|
-
fill:
|
|
787
|
-
num:
|
|
788
|
-
colour:
|
|
810
|
+
fill: f,
|
|
811
|
+
num: g,
|
|
812
|
+
colour: m,
|
|
789
813
|
taskCount: u
|
|
790
814
|
};
|
|
791
|
-
|
|
815
|
+
R.drawSection(t, o, l), n = i.section, h++;
|
|
792
816
|
}
|
|
793
|
-
const
|
|
794
|
-
i.x =
|
|
795
|
-
}
|
|
796
|
-
}, "drawTasks"),
|
|
797
|
-
setConf:
|
|
798
|
-
draw:
|
|
799
|
-
},
|
|
800
|
-
parser:
|
|
801
|
-
db:
|
|
802
|
-
renderer:
|
|
817
|
+
const a = i.people.reduce((u, p) => (C[p] && (u[p] = C[p]), u), {});
|
|
818
|
+
i.x = y * l.taskMargin + y * l.width + M, i.y = d, i.width = l.diagramMarginX, i.height = l.diagramMarginY, i.colour = m, i.fill = f, i.num = g, i.actors = a, R.drawTask(t, i, l), v.insert(i.x, i.y, i.x + i.width + l.taskMargin, 450);
|
|
819
|
+
}
|
|
820
|
+
}, "drawTasks"), at = {
|
|
821
|
+
setConf: Wt,
|
|
822
|
+
draw: Gt
|
|
823
|
+
}, Jt = {
|
|
824
|
+
parser: Ct,
|
|
825
|
+
db: it,
|
|
826
|
+
renderer: at,
|
|
803
827
|
styles: Lt,
|
|
804
|
-
init: /* @__PURE__ */
|
|
805
|
-
|
|
828
|
+
init: /* @__PURE__ */ s((t) => {
|
|
829
|
+
at.setConf(t.journey), it.clear();
|
|
806
830
|
}, "init")
|
|
807
831
|
};
|
|
808
832
|
export {
|
|
809
|
-
|
|
833
|
+
Jt as diagram
|
|
810
834
|
};
|