@kong-ui-public/documentation 0.3.42 → 0.4.0
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/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
- package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
- package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
- package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
- package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
- package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
- package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
- package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
- package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
- package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
- package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
- package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
- package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
- package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
- package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
- package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
- package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
- package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
- package/dist/docker-B10O2enb-B10O2enb.js +7 -0
- package/dist/documentation.es.js +5 -3130
- package/dist/documentation.umd.js +10152 -50
- package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
- package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
- package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
- package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
- package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
- package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
- package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
- package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
- package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
- package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
- package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
- package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
- package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
- package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
- package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
- package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
- package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
- package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
- package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
- package/dist/index-B-5DuDrq.js +29996 -0
- package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
- package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
- package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
- package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
- package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
- package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
- package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
- package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
- package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
- package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
- package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
- package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
- package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
- package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
- package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
- package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
- package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
- package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
- package/dist/make-whncTQWE-whncTQWE.js +7 -0
- package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
- package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
- package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
- package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
- package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
- package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
- package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
- package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
- package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
- package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
- package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
- package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
- package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
- package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
- package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
- package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
- package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
- package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
- package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
- package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
- package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
- package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
- package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
- package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
- package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
- package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
- package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
- package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
- package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
- package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
- package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
- package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
- package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
- package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
- package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
- package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
- package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
- package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
- package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
- package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
- package/dist/style.css +1 -1
- package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
- package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
- package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
- package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
- package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
- package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
- package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
- package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
- package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
- package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
- package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
- package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
- package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
- package/dist/types/composables/useI18n.d.ts +4 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -1
- package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
- package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
- package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
- package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
- package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
- package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
- package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
- package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
- package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
- package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
- package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
- package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
- package/package.json +13 -13
- package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
- package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
- package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
- package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
- package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
- package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
- package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
- package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
- package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
- package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
- package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
- package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
- package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
- package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
- package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
- package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
- package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
- package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
- package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
- package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
- package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
import { b4 as yt, z as gt, c as ft, l as w, h as V, t as mt, b5 as xt, b6 as _t, b7 as bt } from "./index-B-5DuDrq.js";
|
|
2
|
+
import { v as Z } from "./arc-BSRpyMf3-C5dasNo_.js";
|
|
3
|
+
var X = function() {
|
|
4
|
+
var n = function(m, i, a, l) {
|
|
5
|
+
for (a = a || {}, l = m.length; l--; a[m[l]] = i)
|
|
6
|
+
;
|
|
7
|
+
return a;
|
|
8
|
+
}, t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], s = [1, 10], r = [1, 11], h = [1, 12], c = [1, 13], u = [1, 16], y = [1, 17], g = {
|
|
9
|
+
trace: function() {
|
|
10
|
+
},
|
|
11
|
+
yy: {},
|
|
12
|
+
symbols_: { error: 2, start: 3, timeline: 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, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
|
|
13
|
+
terminals_: { 2: "error", 4: "timeline", 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", 20: "period", 21: "event" },
|
|
14
|
+
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, 1], [9, 1], [18, 1], [19, 1]],
|
|
15
|
+
performAction: function(m, i, a, l, d, o, x) {
|
|
16
|
+
var _ = o.length - 1;
|
|
17
|
+
switch (d) {
|
|
18
|
+
case 1:
|
|
19
|
+
return o[_ - 1];
|
|
20
|
+
case 2:
|
|
21
|
+
this.$ = [];
|
|
22
|
+
break;
|
|
23
|
+
case 3:
|
|
24
|
+
o[_ - 1].push(o[_]), this.$ = o[_ - 1];
|
|
25
|
+
break;
|
|
26
|
+
case 4:
|
|
27
|
+
case 5:
|
|
28
|
+
this.$ = o[_];
|
|
29
|
+
break;
|
|
30
|
+
case 6:
|
|
31
|
+
case 7:
|
|
32
|
+
this.$ = [];
|
|
33
|
+
break;
|
|
34
|
+
case 8:
|
|
35
|
+
l.getCommonDb().setDiagramTitle(o[_].substr(6)), this.$ = o[_].substr(6);
|
|
36
|
+
break;
|
|
37
|
+
case 9:
|
|
38
|
+
this.$ = o[_].trim(), l.getCommonDb().setAccTitle(this.$);
|
|
39
|
+
break;
|
|
40
|
+
case 10:
|
|
41
|
+
case 11:
|
|
42
|
+
this.$ = o[_].trim(), l.getCommonDb().setAccDescription(this.$);
|
|
43
|
+
break;
|
|
44
|
+
case 12:
|
|
45
|
+
l.addSection(o[_].substr(8)), this.$ = o[_].substr(8);
|
|
46
|
+
break;
|
|
47
|
+
case 15:
|
|
48
|
+
l.addTask(o[_], 0, ""), this.$ = o[_];
|
|
49
|
+
break;
|
|
50
|
+
case 16:
|
|
51
|
+
l.addEvent(o[_].substr(2)), this.$ = o[_];
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: s, 14: r, 16: h, 17: c, 18: 14, 19: 15, 20: u, 21: y }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: s, 14: r, 16: h, 17: c, 18: 14, 19: 15, 20: u, 21: y }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
|
|
56
|
+
defaultActions: {},
|
|
57
|
+
parseError: function(m, i) {
|
|
58
|
+
if (i.recoverable)
|
|
59
|
+
this.trace(m);
|
|
60
|
+
else {
|
|
61
|
+
var a = new Error(m);
|
|
62
|
+
throw a.hash = i, a;
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
parse: function(m) {
|
|
66
|
+
var i = this, a = [0], l = [], d = [null], o = [], x = this.table, _ = "", $ = 0, j = 0, z = 2, A = 1, W = o.slice.call(arguments, 1), f = Object.create(this.lexer), b = { yy: {} };
|
|
67
|
+
for (var E in this.yy)
|
|
68
|
+
Object.prototype.hasOwnProperty.call(this.yy, E) && (b.yy[E] = this.yy[E]);
|
|
69
|
+
f.setInput(m, b.yy), b.yy.lexer = f, b.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
|
|
70
|
+
var I = f.yylloc;
|
|
71
|
+
o.push(I);
|
|
72
|
+
var O = f.options && f.options.ranges;
|
|
73
|
+
typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
74
|
+
function C() {
|
|
75
|
+
var T;
|
|
76
|
+
return T = l.pop() || f.lex() || A, typeof T != "number" && (T instanceof Array && (l = T, T = l.pop()), T = i.symbols_[T] || T), T;
|
|
77
|
+
}
|
|
78
|
+
for (var v, P, S, G, L = {}, B, M, Y, F; ; ) {
|
|
79
|
+
if (P = a[a.length - 1], this.defaultActions[P] ? S = this.defaultActions[P] : ((v === null || typeof v > "u") && (v = C()), S = x[P] && x[P][v]), typeof S > "u" || !S.length || !S[0]) {
|
|
80
|
+
var U = "";
|
|
81
|
+
F = [];
|
|
82
|
+
for (B in x[P])
|
|
83
|
+
this.terminals_[B] && B > z && F.push("'" + this.terminals_[B] + "'");
|
|
84
|
+
f.showPosition ? U = "Parse error on line " + ($ + 1) + `:
|
|
85
|
+
` + f.showPosition() + `
|
|
86
|
+
Expecting ` + F.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : U = "Parse error on line " + ($ + 1) + ": Unexpected " + (v == A ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(U, {
|
|
87
|
+
text: f.match,
|
|
88
|
+
token: this.terminals_[v] || v,
|
|
89
|
+
line: f.yylineno,
|
|
90
|
+
loc: I,
|
|
91
|
+
expected: F
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
if (S[0] instanceof Array && S.length > 1)
|
|
95
|
+
throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + v);
|
|
96
|
+
switch (S[0]) {
|
|
97
|
+
case 1:
|
|
98
|
+
a.push(v), d.push(f.yytext), o.push(f.yylloc), a.push(S[1]), v = null, j = f.yyleng, _ = f.yytext, $ = f.yylineno, I = f.yylloc;
|
|
99
|
+
break;
|
|
100
|
+
case 2:
|
|
101
|
+
if (M = this.productions_[S[1]][1], L.$ = d[d.length - M], L._$ = {
|
|
102
|
+
first_line: o[o.length - (M || 1)].first_line,
|
|
103
|
+
last_line: o[o.length - 1].last_line,
|
|
104
|
+
first_column: o[o.length - (M || 1)].first_column,
|
|
105
|
+
last_column: o[o.length - 1].last_column
|
|
106
|
+
}, O && (L._$.range = [
|
|
107
|
+
o[o.length - (M || 1)].range[0],
|
|
108
|
+
o[o.length - 1].range[1]
|
|
109
|
+
]), G = this.performAction.apply(L, [
|
|
110
|
+
_,
|
|
111
|
+
j,
|
|
112
|
+
$,
|
|
113
|
+
b.yy,
|
|
114
|
+
S[1],
|
|
115
|
+
d,
|
|
116
|
+
o
|
|
117
|
+
].concat(W)), typeof G < "u")
|
|
118
|
+
return G;
|
|
119
|
+
M && (a = a.slice(0, -1 * M * 2), d = d.slice(0, -1 * M), o = o.slice(0, -1 * M)), a.push(this.productions_[S[1]][0]), d.push(L.$), o.push(L._$), Y = x[a[a.length - 2]][a[a.length - 1]], a.push(Y);
|
|
120
|
+
break;
|
|
121
|
+
case 3:
|
|
122
|
+
return !0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return !0;
|
|
126
|
+
}
|
|
127
|
+
}, p = /* @__PURE__ */ function() {
|
|
128
|
+
var m = {
|
|
129
|
+
EOF: 1,
|
|
130
|
+
parseError: function(i, a) {
|
|
131
|
+
if (this.yy.parser)
|
|
132
|
+
this.yy.parser.parseError(i, a);
|
|
133
|
+
else
|
|
134
|
+
throw new Error(i);
|
|
135
|
+
},
|
|
136
|
+
// resets the lexer, sets new input
|
|
137
|
+
setInput: function(i, a) {
|
|
138
|
+
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 = {
|
|
139
|
+
first_line: 1,
|
|
140
|
+
first_column: 0,
|
|
141
|
+
last_line: 1,
|
|
142
|
+
last_column: 0
|
|
143
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
144
|
+
},
|
|
145
|
+
// consumes and returns one char from the input
|
|
146
|
+
input: function() {
|
|
147
|
+
var i = this._input[0];
|
|
148
|
+
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
149
|
+
var a = i.match(/(?:\r\n?|\n).*/g);
|
|
150
|
+
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;
|
|
151
|
+
},
|
|
152
|
+
// unshifts one char (or a string) into the input
|
|
153
|
+
unput: function(i) {
|
|
154
|
+
var a = i.length, l = i.split(/(?:\r\n?|\n)/g);
|
|
155
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
156
|
+
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
157
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
|
|
158
|
+
var o = this.yylloc.range;
|
|
159
|
+
return this.yylloc = {
|
|
160
|
+
first_line: this.yylloc.first_line,
|
|
161
|
+
last_line: this.yylineno + 1,
|
|
162
|
+
first_column: this.yylloc.first_column,
|
|
163
|
+
last_column: l ? (l.length === d.length ? this.yylloc.first_column : 0) + d[d.length - l.length].length - l[0].length : this.yylloc.first_column - a
|
|
164
|
+
}, this.options.ranges && (this.yylloc.range = [o[0], o[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
165
|
+
},
|
|
166
|
+
// When called from action, caches matched text and appends it on next action
|
|
167
|
+
more: function() {
|
|
168
|
+
return this._more = !0, this;
|
|
169
|
+
},
|
|
170
|
+
// 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.
|
|
171
|
+
reject: function() {
|
|
172
|
+
if (this.options.backtrack_lexer)
|
|
173
|
+
this._backtrack = !0;
|
|
174
|
+
else
|
|
175
|
+
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).
|
|
176
|
+
` + this.showPosition(), {
|
|
177
|
+
text: "",
|
|
178
|
+
token: null,
|
|
179
|
+
line: this.yylineno
|
|
180
|
+
});
|
|
181
|
+
return this;
|
|
182
|
+
},
|
|
183
|
+
// retain first n characters of the match
|
|
184
|
+
less: function(i) {
|
|
185
|
+
this.unput(this.match.slice(i));
|
|
186
|
+
},
|
|
187
|
+
// displays already matched input, i.e. for error messages
|
|
188
|
+
pastInput: function() {
|
|
189
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
190
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
191
|
+
},
|
|
192
|
+
// displays upcoming input, i.e. for error messages
|
|
193
|
+
upcomingInput: function() {
|
|
194
|
+
var i = this.match;
|
|
195
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
196
|
+
},
|
|
197
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
198
|
+
showPosition: function() {
|
|
199
|
+
var i = this.pastInput(), a = new Array(i.length + 1).join("-");
|
|
200
|
+
return i + this.upcomingInput() + `
|
|
201
|
+
` + a + "^";
|
|
202
|
+
},
|
|
203
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
204
|
+
test_match: function(i, a) {
|
|
205
|
+
var l, d, o;
|
|
206
|
+
if (this.options.backtrack_lexer && (o = {
|
|
207
|
+
yylineno: this.yylineno,
|
|
208
|
+
yylloc: {
|
|
209
|
+
first_line: this.yylloc.first_line,
|
|
210
|
+
last_line: this.last_line,
|
|
211
|
+
first_column: this.yylloc.first_column,
|
|
212
|
+
last_column: this.yylloc.last_column
|
|
213
|
+
},
|
|
214
|
+
yytext: this.yytext,
|
|
215
|
+
match: this.match,
|
|
216
|
+
matches: this.matches,
|
|
217
|
+
matched: this.matched,
|
|
218
|
+
yyleng: this.yyleng,
|
|
219
|
+
offset: this.offset,
|
|
220
|
+
_more: this._more,
|
|
221
|
+
_input: this._input,
|
|
222
|
+
yy: this.yy,
|
|
223
|
+
conditionStack: this.conditionStack.slice(0),
|
|
224
|
+
done: this.done
|
|
225
|
+
}, this.options.ranges && (o.yylloc.range = this.yylloc.range.slice(0))), d = i[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
226
|
+
first_line: this.yylloc.last_line,
|
|
227
|
+
last_line: this.yylineno + 1,
|
|
228
|
+
first_column: this.yylloc.last_column,
|
|
229
|
+
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
230
|
+
}, 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], l = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
|
|
231
|
+
return l;
|
|
232
|
+
if (this._backtrack) {
|
|
233
|
+
for (var x in o)
|
|
234
|
+
this[x] = o[x];
|
|
235
|
+
return !1;
|
|
236
|
+
}
|
|
237
|
+
return !1;
|
|
238
|
+
},
|
|
239
|
+
// return next match in input
|
|
240
|
+
next: function() {
|
|
241
|
+
if (this.done)
|
|
242
|
+
return this.EOF;
|
|
243
|
+
this._input || (this.done = !0);
|
|
244
|
+
var i, a, l, d;
|
|
245
|
+
this._more || (this.yytext = "", this.match = "");
|
|
246
|
+
for (var o = this._currentRules(), x = 0; x < o.length; x++)
|
|
247
|
+
if (l = this._input.match(this.rules[o[x]]), l && (!a || l[0].length > a[0].length)) {
|
|
248
|
+
if (a = l, d = x, this.options.backtrack_lexer) {
|
|
249
|
+
if (i = this.test_match(l, o[x]), i !== !1)
|
|
250
|
+
return i;
|
|
251
|
+
if (this._backtrack) {
|
|
252
|
+
a = !1;
|
|
253
|
+
continue;
|
|
254
|
+
} else
|
|
255
|
+
return !1;
|
|
256
|
+
} else if (!this.options.flex)
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
return a ? (i = this.test_match(a, o[d]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
260
|
+
` + this.showPosition(), {
|
|
261
|
+
text: "",
|
|
262
|
+
token: null,
|
|
263
|
+
line: this.yylineno
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
// return next match that has a token
|
|
267
|
+
lex: function() {
|
|
268
|
+
var i = this.next();
|
|
269
|
+
return i || this.lex();
|
|
270
|
+
},
|
|
271
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
272
|
+
begin: function(i) {
|
|
273
|
+
this.conditionStack.push(i);
|
|
274
|
+
},
|
|
275
|
+
// pop the previously active lexer condition state off the condition stack
|
|
276
|
+
popState: function() {
|
|
277
|
+
var i = this.conditionStack.length - 1;
|
|
278
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
279
|
+
},
|
|
280
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
281
|
+
_currentRules: function() {
|
|
282
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
283
|
+
},
|
|
284
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
285
|
+
topState: function(i) {
|
|
286
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
287
|
+
},
|
|
288
|
+
// alias for begin(condition)
|
|
289
|
+
pushState: function(i) {
|
|
290
|
+
this.begin(i);
|
|
291
|
+
},
|
|
292
|
+
// return the number of states currently on the stack
|
|
293
|
+
stateStackSize: function() {
|
|
294
|
+
return this.conditionStack.length;
|
|
295
|
+
},
|
|
296
|
+
options: { "case-insensitive": !0 },
|
|
297
|
+
performAction: function(i, a, l, d) {
|
|
298
|
+
switch (l) {
|
|
299
|
+
case 0:
|
|
300
|
+
break;
|
|
301
|
+
case 1:
|
|
302
|
+
break;
|
|
303
|
+
case 2:
|
|
304
|
+
return 10;
|
|
305
|
+
case 3:
|
|
306
|
+
break;
|
|
307
|
+
case 4:
|
|
308
|
+
break;
|
|
309
|
+
case 5:
|
|
310
|
+
return 4;
|
|
311
|
+
case 6:
|
|
312
|
+
return 11;
|
|
313
|
+
case 7:
|
|
314
|
+
return this.begin("acc_title"), 12;
|
|
315
|
+
case 8:
|
|
316
|
+
return this.popState(), "acc_title_value";
|
|
317
|
+
case 9:
|
|
318
|
+
return this.begin("acc_descr"), 14;
|
|
319
|
+
case 10:
|
|
320
|
+
return this.popState(), "acc_descr_value";
|
|
321
|
+
case 11:
|
|
322
|
+
this.begin("acc_descr_multiline");
|
|
323
|
+
break;
|
|
324
|
+
case 12:
|
|
325
|
+
this.popState();
|
|
326
|
+
break;
|
|
327
|
+
case 13:
|
|
328
|
+
return "acc_descr_multiline_value";
|
|
329
|
+
case 14:
|
|
330
|
+
return 17;
|
|
331
|
+
case 15:
|
|
332
|
+
return 21;
|
|
333
|
+
case 16:
|
|
334
|
+
return 20;
|
|
335
|
+
case 17:
|
|
336
|
+
return 6;
|
|
337
|
+
case 18:
|
|
338
|
+
return "INVALID";
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\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, /^(?::\s[^#:\n;]+)/i, /^(?:[^#:\n;]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
342
|
+
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], inclusive: !0 } }
|
|
343
|
+
};
|
|
344
|
+
return m;
|
|
345
|
+
}();
|
|
346
|
+
g.lexer = p;
|
|
347
|
+
function k() {
|
|
348
|
+
this.yy = {};
|
|
349
|
+
}
|
|
350
|
+
return k.prototype = g, g.Parser = k, new k();
|
|
351
|
+
}();
|
|
352
|
+
X.parser = X;
|
|
353
|
+
const kt = X;
|
|
354
|
+
let D = "", nt = 0;
|
|
355
|
+
const K = [], R = [], N = [], it = () => yt, rt = function() {
|
|
356
|
+
K.length = 0, R.length = 0, D = "", N.length = 0, gt();
|
|
357
|
+
}, st = function(n) {
|
|
358
|
+
D = n, K.push(n);
|
|
359
|
+
}, at = function() {
|
|
360
|
+
return K;
|
|
361
|
+
}, ot = function() {
|
|
362
|
+
let n = J();
|
|
363
|
+
const t = 100;
|
|
364
|
+
let e = 0;
|
|
365
|
+
for (; !n && e < t; )
|
|
366
|
+
n = J(), e++;
|
|
367
|
+
return R.push(...N), R;
|
|
368
|
+
}, ct = function(n, t, e) {
|
|
369
|
+
const s = {
|
|
370
|
+
id: nt++,
|
|
371
|
+
section: D,
|
|
372
|
+
type: D,
|
|
373
|
+
task: n,
|
|
374
|
+
score: t || 0,
|
|
375
|
+
//if event is defined, then add it the events array
|
|
376
|
+
events: e ? [e] : []
|
|
377
|
+
};
|
|
378
|
+
N.push(s);
|
|
379
|
+
}, lt = function(n) {
|
|
380
|
+
N.find((t) => t.id === nt - 1).events.push(n);
|
|
381
|
+
}, ht = function(n) {
|
|
382
|
+
const t = {
|
|
383
|
+
section: D,
|
|
384
|
+
type: D,
|
|
385
|
+
description: n,
|
|
386
|
+
task: n,
|
|
387
|
+
classes: []
|
|
388
|
+
};
|
|
389
|
+
R.push(t);
|
|
390
|
+
}, J = function() {
|
|
391
|
+
const n = function(e) {
|
|
392
|
+
return N[e].processed;
|
|
393
|
+
};
|
|
394
|
+
let t = !0;
|
|
395
|
+
for (const [e, s] of N.entries())
|
|
396
|
+
n(e), t = t && s.processed;
|
|
397
|
+
return t;
|
|
398
|
+
}, vt = {
|
|
399
|
+
clear: rt,
|
|
400
|
+
getCommonDb: it,
|
|
401
|
+
addSection: st,
|
|
402
|
+
getSections: at,
|
|
403
|
+
getTasks: ot,
|
|
404
|
+
addTask: ct,
|
|
405
|
+
addTaskOrg: ht,
|
|
406
|
+
addEvent: lt
|
|
407
|
+
}, wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
408
|
+
__proto__: null,
|
|
409
|
+
addEvent: lt,
|
|
410
|
+
addSection: st,
|
|
411
|
+
addTask: ct,
|
|
412
|
+
addTaskOrg: ht,
|
|
413
|
+
clear: rt,
|
|
414
|
+
default: vt,
|
|
415
|
+
getCommonDb: it,
|
|
416
|
+
getSections: at,
|
|
417
|
+
getTasks: ot
|
|
418
|
+
}, Symbol.toStringTag, { value: "Module" })), $t = 12, q = function(n, t) {
|
|
419
|
+
const e = n.append("rect");
|
|
420
|
+
return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
|
|
421
|
+
}, St = function(n, t) {
|
|
422
|
+
const e = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), s = n.append("g");
|
|
423
|
+
s.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), s.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
424
|
+
function r(u) {
|
|
425
|
+
const y = Z().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
426
|
+
u.append("path").attr("class", "mouth").attr("d", y).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
427
|
+
}
|
|
428
|
+
function h(u) {
|
|
429
|
+
const y = Z().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
430
|
+
u.append("path").attr("class", "mouth").attr("d", y).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
431
|
+
}
|
|
432
|
+
function c(u) {
|
|
433
|
+
u.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
434
|
+
}
|
|
435
|
+
return t.score > 3 ? r(s) : t.score < 3 ? h(s) : c(s), e;
|
|
436
|
+
}, Et = function(n, t) {
|
|
437
|
+
const e = n.append("circle");
|
|
438
|
+
return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
|
|
439
|
+
}, dt = function(n, t) {
|
|
440
|
+
const e = t.text.replace(/<br\s*\/?>/gi, " "), s = n.append("text");
|
|
441
|
+
s.attr("x", t.x), s.attr("y", t.y), s.attr("class", "legend"), s.style("text-anchor", t.anchor), t.class !== void 0 && s.attr("class", t.class);
|
|
442
|
+
const r = s.append("tspan");
|
|
443
|
+
return r.attr("x", t.x + t.textMargin * 2), r.text(e), s;
|
|
444
|
+
}, It = function(n, t) {
|
|
445
|
+
function e(r, h, c, u, y) {
|
|
446
|
+
return r + "," + h + " " + (r + c) + "," + h + " " + (r + c) + "," + (h + u - y) + " " + (r + c - y * 1.2) + "," + (h + u) + " " + r + "," + (h + u);
|
|
447
|
+
}
|
|
448
|
+
const s = n.append("polygon");
|
|
449
|
+
s.attr("points", e(t.x, t.y, 50, 20, 7)), s.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, dt(n, t);
|
|
450
|
+
}, Mt = function(n, t, e) {
|
|
451
|
+
const s = n.append("g"), r = Q();
|
|
452
|
+
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, q(s, r), ut(e)(
|
|
453
|
+
t.text,
|
|
454
|
+
s,
|
|
455
|
+
r.x,
|
|
456
|
+
r.y,
|
|
457
|
+
r.width,
|
|
458
|
+
r.height,
|
|
459
|
+
{ class: "journey-section section-type-" + t.num },
|
|
460
|
+
e,
|
|
461
|
+
t.colour
|
|
462
|
+
);
|
|
463
|
+
};
|
|
464
|
+
let tt = -1;
|
|
465
|
+
const Tt = function(n, t, e) {
|
|
466
|
+
const s = t.x + e.width / 2, r = n.append("g");
|
|
467
|
+
tt++;
|
|
468
|
+
const h = 300 + 5 * 30;
|
|
469
|
+
r.append("line").attr("id", "task" + tt).attr("x1", s).attr("y1", t.y).attr("x2", s).attr("y2", h).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), St(r, {
|
|
470
|
+
cx: s,
|
|
471
|
+
cy: 300 + (5 - t.score) * 30,
|
|
472
|
+
score: t.score
|
|
473
|
+
});
|
|
474
|
+
const c = Q();
|
|
475
|
+
c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, q(r, c), t.x + 14, ut(e)(
|
|
476
|
+
t.task,
|
|
477
|
+
r,
|
|
478
|
+
c.x,
|
|
479
|
+
c.y,
|
|
480
|
+
c.width,
|
|
481
|
+
c.height,
|
|
482
|
+
{ class: "task" },
|
|
483
|
+
e,
|
|
484
|
+
t.colour
|
|
485
|
+
);
|
|
486
|
+
}, At = function(n, t) {
|
|
487
|
+
q(n, {
|
|
488
|
+
x: t.startx,
|
|
489
|
+
y: t.starty,
|
|
490
|
+
width: t.stopx - t.startx,
|
|
491
|
+
height: t.stopy - t.starty,
|
|
492
|
+
fill: t.fill,
|
|
493
|
+
class: "rect"
|
|
494
|
+
}).lower();
|
|
495
|
+
}, Ct = function() {
|
|
496
|
+
return {
|
|
497
|
+
x: 0,
|
|
498
|
+
y: 0,
|
|
499
|
+
fill: void 0,
|
|
500
|
+
"text-anchor": "start",
|
|
501
|
+
width: 100,
|
|
502
|
+
height: 100,
|
|
503
|
+
textMargin: 0,
|
|
504
|
+
rx: 0,
|
|
505
|
+
ry: 0
|
|
506
|
+
};
|
|
507
|
+
}, Q = function() {
|
|
508
|
+
return {
|
|
509
|
+
x: 0,
|
|
510
|
+
y: 0,
|
|
511
|
+
width: 100,
|
|
512
|
+
anchor: "start",
|
|
513
|
+
height: 100,
|
|
514
|
+
rx: 0,
|
|
515
|
+
ry: 0
|
|
516
|
+
};
|
|
517
|
+
}, ut = /* @__PURE__ */ function() {
|
|
518
|
+
function n(r, h, c, u, y, g, p, k) {
|
|
519
|
+
const m = h.append("text").attr("x", c + y / 2).attr("y", u + g / 2 + 5).style("font-color", k).style("text-anchor", "middle").text(r);
|
|
520
|
+
s(m, p);
|
|
521
|
+
}
|
|
522
|
+
function t(r, h, c, u, y, g, p, k, m) {
|
|
523
|
+
const { taskFontSize: i, taskFontFamily: a } = k, l = r.split(/<br\s*\/?>/gi);
|
|
524
|
+
for (let d = 0; d < l.length; d++) {
|
|
525
|
+
const o = d * i - i * (l.length - 1) / 2, x = h.append("text").attr("x", c + y / 2).attr("y", u).attr("fill", m).style("text-anchor", "middle").style("font-size", i).style("font-family", a);
|
|
526
|
+
x.append("tspan").attr("x", c + y / 2).attr("dy", o).text(l[d]), x.attr("y", u + g / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(x, p);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
function e(r, h, c, u, y, g, p, k) {
|
|
530
|
+
const m = h.append("switch"), i = m.append("foreignObject").attr("x", c).attr("y", u).attr("width", y).attr("height", g).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
531
|
+
i.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, m, c, u, y, g, p, k), s(i, p);
|
|
532
|
+
}
|
|
533
|
+
function s(r, h) {
|
|
534
|
+
for (const c in h)
|
|
535
|
+
c in h && r.attr(c, h[c]);
|
|
536
|
+
}
|
|
537
|
+
return function(r) {
|
|
538
|
+
return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
|
|
539
|
+
};
|
|
540
|
+
}(), Pt = function(n) {
|
|
541
|
+
n.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");
|
|
542
|
+
};
|
|
543
|
+
function pt(n, t) {
|
|
544
|
+
n.each(function() {
|
|
545
|
+
var e = V(this), s = e.text().split(/(\s+|<br>)/).reverse(), r, h = [], c = 1.1, u = e.attr("y"), y = parseFloat(e.attr("dy")), g = e.text(null).append("tspan").attr("x", 0).attr("y", u).attr("dy", y + "em");
|
|
546
|
+
for (let p = 0; p < s.length; p++)
|
|
547
|
+
r = s[s.length - 1 - p], h.push(r), g.text(h.join(" ").trim()), (g.node().getComputedTextLength() > t || r === "<br>") && (h.pop(), g.text(h.join(" ").trim()), r === "<br>" ? h = [""] : h = [r], g = e.append("tspan").attr("x", 0).attr("y", u).attr("dy", c + "em").text(r));
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
const Ht = function(n, t, e, s) {
|
|
551
|
+
const r = e % $t - 1, h = n.append("g");
|
|
552
|
+
t.section = r, h.attr(
|
|
553
|
+
"class",
|
|
554
|
+
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
|
|
555
|
+
);
|
|
556
|
+
const c = h.append("g"), u = h.append("g"), y = u.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(pt, t.width).node().getBBox(), g = s.fontSize && s.fontSize.replace ? s.fontSize.replace("px", "") : s.fontSize;
|
|
557
|
+
return t.height = y.height + g * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, u.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Ot(c, t, r), t;
|
|
558
|
+
}, zt = function(n, t, e) {
|
|
559
|
+
const s = n.append("g"), r = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(pt, t.width).node().getBBox(), h = e.fontSize && e.fontSize.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
560
|
+
return s.remove(), r.height + h * 1.1 * 0.5 + t.padding;
|
|
561
|
+
}, Ot = function(n, t, e) {
|
|
562
|
+
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
|
|
563
|
+
"d",
|
|
564
|
+
`M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
|
|
565
|
+
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
566
|
+
}, H = {
|
|
567
|
+
drawRect: q,
|
|
568
|
+
drawCircle: Et,
|
|
569
|
+
drawSection: Mt,
|
|
570
|
+
drawText: dt,
|
|
571
|
+
drawLabel: It,
|
|
572
|
+
drawTask: Tt,
|
|
573
|
+
drawBackgroundRect: At,
|
|
574
|
+
getTextObj: Ct,
|
|
575
|
+
getNoteRect: Q,
|
|
576
|
+
initGraphics: Pt,
|
|
577
|
+
drawNode: Ht,
|
|
578
|
+
getVirtualNodeHeight: zt
|
|
579
|
+
}, Lt = function(n, t, e, s) {
|
|
580
|
+
var r, h;
|
|
581
|
+
const c = ft(), u = c.leftMargin ?? 50;
|
|
582
|
+
w.debug("timeline", s.db);
|
|
583
|
+
const y = c.securityLevel;
|
|
584
|
+
let g;
|
|
585
|
+
y === "sandbox" && (g = V("#i" + t));
|
|
586
|
+
const p = (y === "sandbox" ? V(g.nodes()[0].contentDocument.body) : V("body")).select("#" + t);
|
|
587
|
+
p.append("g");
|
|
588
|
+
const k = s.db.getTasks(), m = s.db.getCommonDb().getDiagramTitle();
|
|
589
|
+
w.debug("task", k), H.initGraphics(p);
|
|
590
|
+
const i = s.db.getSections();
|
|
591
|
+
w.debug("sections", i);
|
|
592
|
+
let a = 0, l = 0, d = 0, o = 0, x = 50 + u, _ = 50;
|
|
593
|
+
o = 50;
|
|
594
|
+
let $ = 0, j = !0;
|
|
595
|
+
i.forEach(function(f) {
|
|
596
|
+
const b = {
|
|
597
|
+
number: $,
|
|
598
|
+
descr: f,
|
|
599
|
+
section: $,
|
|
600
|
+
width: 150,
|
|
601
|
+
padding: 20,
|
|
602
|
+
maxHeight: a
|
|
603
|
+
}, E = H.getVirtualNodeHeight(p, b, c);
|
|
604
|
+
w.debug("sectionHeight before draw", E), a = Math.max(a, E + 20);
|
|
605
|
+
});
|
|
606
|
+
let z = 0, A = 0;
|
|
607
|
+
w.debug("tasks.length", k.length);
|
|
608
|
+
for (const [f, b] of k.entries()) {
|
|
609
|
+
const E = {
|
|
610
|
+
number: f,
|
|
611
|
+
descr: b,
|
|
612
|
+
section: b.section,
|
|
613
|
+
width: 150,
|
|
614
|
+
padding: 20,
|
|
615
|
+
maxHeight: l
|
|
616
|
+
}, I = H.getVirtualNodeHeight(p, E, c);
|
|
617
|
+
w.debug("taskHeight before draw", I), l = Math.max(l, I + 20), z = Math.max(z, b.events.length);
|
|
618
|
+
let O = 0;
|
|
619
|
+
for (let C = 0; C < b.events.length; C++) {
|
|
620
|
+
const v = {
|
|
621
|
+
descr: b.events[C],
|
|
622
|
+
section: b.section,
|
|
623
|
+
number: b.section,
|
|
624
|
+
width: 150,
|
|
625
|
+
padding: 20,
|
|
626
|
+
maxHeight: 50
|
|
627
|
+
};
|
|
628
|
+
O += H.getVirtualNodeHeight(p, v, c);
|
|
629
|
+
}
|
|
630
|
+
A = Math.max(A, O);
|
|
631
|
+
}
|
|
632
|
+
w.debug("maxSectionHeight before draw", a), w.debug("maxTaskHeight before draw", l), i && i.length > 0 ? i.forEach((f) => {
|
|
633
|
+
const b = k.filter((C) => C.section === f), E = {
|
|
634
|
+
number: $,
|
|
635
|
+
descr: f,
|
|
636
|
+
section: $,
|
|
637
|
+
width: 200 * Math.max(b.length, 1) - 50,
|
|
638
|
+
padding: 20,
|
|
639
|
+
maxHeight: a
|
|
640
|
+
};
|
|
641
|
+
w.debug("sectionNode", E);
|
|
642
|
+
const I = p.append("g"), O = H.drawNode(I, E, $, c);
|
|
643
|
+
w.debug("sectionNode output", O), I.attr("transform", `translate(${x}, ${o})`), _ += a + 50, b.length > 0 && et(
|
|
644
|
+
p,
|
|
645
|
+
b,
|
|
646
|
+
$,
|
|
647
|
+
x,
|
|
648
|
+
_,
|
|
649
|
+
l,
|
|
650
|
+
c,
|
|
651
|
+
z,
|
|
652
|
+
A,
|
|
653
|
+
a,
|
|
654
|
+
!1
|
|
655
|
+
), x += 200 * Math.max(b.length, 1), _ = o, $++;
|
|
656
|
+
}) : (j = !1, et(
|
|
657
|
+
p,
|
|
658
|
+
k,
|
|
659
|
+
$,
|
|
660
|
+
x,
|
|
661
|
+
_,
|
|
662
|
+
l,
|
|
663
|
+
c,
|
|
664
|
+
z,
|
|
665
|
+
A,
|
|
666
|
+
a,
|
|
667
|
+
!0
|
|
668
|
+
));
|
|
669
|
+
const W = p.node().getBBox();
|
|
670
|
+
w.debug("bounds", W), m && p.append("text").text(m).attr("x", W.width / 2 - u).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), d = j ? a + l + 150 : l + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", u).attr("y1", d).attr("x2", W.width + 3 * u).attr("y2", d).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), mt(
|
|
671
|
+
void 0,
|
|
672
|
+
p,
|
|
673
|
+
((r = c.timeline) == null ? void 0 : r.padding) ?? 50,
|
|
674
|
+
((h = c.timeline) == null ? void 0 : h.useMaxWidth) ?? !1
|
|
675
|
+
);
|
|
676
|
+
}, et = function(n, t, e, s, r, h, c, u, y, g, p) {
|
|
677
|
+
var k;
|
|
678
|
+
for (const m of t) {
|
|
679
|
+
const i = {
|
|
680
|
+
descr: m.task,
|
|
681
|
+
section: e,
|
|
682
|
+
number: e,
|
|
683
|
+
width: 150,
|
|
684
|
+
padding: 20,
|
|
685
|
+
maxHeight: h
|
|
686
|
+
};
|
|
687
|
+
w.debug("taskNode", i);
|
|
688
|
+
const a = n.append("g").attr("class", "taskWrapper"), l = H.drawNode(a, i, e, c).height;
|
|
689
|
+
if (w.debug("taskHeight after draw", l), a.attr("transform", `translate(${s}, ${r})`), h = Math.max(h, l), m.events) {
|
|
690
|
+
const d = n.append("g").attr("class", "lineWrapper");
|
|
691
|
+
let o = h;
|
|
692
|
+
r += 100, o = o + Dt(n, m.events, e, s, r, c), r -= 100, d.append("line").attr("x1", s + 190 / 2).attr("y1", r + h).attr("x2", s + 190 / 2).attr(
|
|
693
|
+
"y2",
|
|
694
|
+
r + h + (p ? h : g) + y + 120
|
|
695
|
+
).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
696
|
+
}
|
|
697
|
+
s = s + 200, p && !((k = c.timeline) != null && k.disableMulticolor) && e++;
|
|
698
|
+
}
|
|
699
|
+
r = r - 10;
|
|
700
|
+
}, Dt = function(n, t, e, s, r, h) {
|
|
701
|
+
let c = 0;
|
|
702
|
+
const u = r;
|
|
703
|
+
r = r + 100;
|
|
704
|
+
for (const y of t) {
|
|
705
|
+
const g = {
|
|
706
|
+
descr: y,
|
|
707
|
+
section: e,
|
|
708
|
+
number: e,
|
|
709
|
+
width: 150,
|
|
710
|
+
padding: 20,
|
|
711
|
+
maxHeight: 50
|
|
712
|
+
};
|
|
713
|
+
w.debug("eventNode", g);
|
|
714
|
+
const p = n.append("g").attr("class", "eventWrapper"), k = H.drawNode(p, g, e, h).height;
|
|
715
|
+
c = c + k, p.attr("transform", `translate(${s}, ${r})`), r = r + 10 + k;
|
|
716
|
+
}
|
|
717
|
+
return r = u, c;
|
|
718
|
+
}, Nt = {
|
|
719
|
+
setConf: () => {
|
|
720
|
+
},
|
|
721
|
+
draw: Lt
|
|
722
|
+
}, jt = (n) => {
|
|
723
|
+
let t = "";
|
|
724
|
+
for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
|
|
725
|
+
n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], xt(n["lineColor" + e]) ? n["lineColor" + e] = _t(n["lineColor" + e], 20) : n["lineColor" + e] = bt(n["lineColor" + e], 20);
|
|
726
|
+
for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
|
|
727
|
+
const s = "" + (17 - 3 * e);
|
|
728
|
+
t += `
|
|
729
|
+
.section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
|
|
730
|
+
fill: ${n["cScale" + e]};
|
|
731
|
+
}
|
|
732
|
+
.section-${e - 1} text {
|
|
733
|
+
fill: ${n["cScaleLabel" + e]};
|
|
734
|
+
}
|
|
735
|
+
.node-icon-${e - 1} {
|
|
736
|
+
font-size: 40px;
|
|
737
|
+
color: ${n["cScaleLabel" + e]};
|
|
738
|
+
}
|
|
739
|
+
.section-edge-${e - 1}{
|
|
740
|
+
stroke: ${n["cScale" + e]};
|
|
741
|
+
}
|
|
742
|
+
.edge-depth-${e - 1}{
|
|
743
|
+
stroke-width: ${s};
|
|
744
|
+
}
|
|
745
|
+
.section-${e - 1} line {
|
|
746
|
+
stroke: ${n["cScaleInv" + e]} ;
|
|
747
|
+
stroke-width: 3;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.lineWrapper line{
|
|
751
|
+
stroke: ${n["cScaleLabel" + e]} ;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.disabled, .disabled circle, .disabled text {
|
|
755
|
+
fill: lightgray;
|
|
756
|
+
}
|
|
757
|
+
.disabled text {
|
|
758
|
+
fill: #efefef;
|
|
759
|
+
}
|
|
760
|
+
`;
|
|
761
|
+
}
|
|
762
|
+
return t;
|
|
763
|
+
}, Wt = (n) => `
|
|
764
|
+
.edge {
|
|
765
|
+
stroke-width: 3;
|
|
766
|
+
}
|
|
767
|
+
${jt(n)}
|
|
768
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
769
|
+
fill: ${n.git0};
|
|
770
|
+
}
|
|
771
|
+
.section-root text {
|
|
772
|
+
fill: ${n.gitBranchLabel0};
|
|
773
|
+
}
|
|
774
|
+
.icon-container {
|
|
775
|
+
height:100%;
|
|
776
|
+
display: flex;
|
|
777
|
+
justify-content: center;
|
|
778
|
+
align-items: center;
|
|
779
|
+
}
|
|
780
|
+
.edge {
|
|
781
|
+
fill: none;
|
|
782
|
+
}
|
|
783
|
+
.eventWrapper {
|
|
784
|
+
filter: brightness(120%);
|
|
785
|
+
}
|
|
786
|
+
`, Bt = Wt, Rt = {
|
|
787
|
+
db: wt,
|
|
788
|
+
renderer: Nt,
|
|
789
|
+
parser: kt,
|
|
790
|
+
styles: Bt
|
|
791
|
+
};
|
|
792
|
+
export {
|
|
793
|
+
Rt as diagram
|
|
794
|
+
};
|