lowcoder-comps 2.4.13 → 2.4.15
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/{0fa873f8.js → 0bb0c92e.js} +4 -4
- package/{1d0578cc.js → 0cc36377.js} +919 -969
- package/{4ee1107f.js → 0fa86771.js} +411 -451
- package/{7ceb1a86.js → 19a2ee87.js} +1067 -1085
- package/{62a4e802.js → 1b41afb7.js} +6 -6
- package/{140d1965.js → 1e5b4466.js} +1 -1
- package/21ce624b.js +433 -0
- package/247d363c.js +797 -0
- package/{66d40f47.js → 2dc10e5c.js} +96 -99
- package/{48262065.js → 3a91cb5c.js} +8 -8
- package/{bfff0c9e.js → 3ebe8123.js} +26 -27
- package/{e60eb1d6.js → 3f2bde45.js} +1 -1
- package/{08ce8965.js → 4046c39a.js} +247 -258
- package/{256b619e.js → 428ebac9.js} +14 -15
- package/{f85b9955.js → 4b8936b0.js} +68 -69
- package/{722d14f3.js → 4d48e6df.js} +6 -6
- package/{93e77b54.js → 558e8ee5.js} +4 -4
- package/{d2b89014.js → 56f6e990.js} +92 -92
- package/{6c5168e9.js → 5a31cef7.js} +2 -2
- package/{7873457c.js → 5d41cf38.js} +6 -6
- package/{5d259708.js → 5fd9a898.js} +4 -5
- package/{2c7a98c7.js → 63a771ab.js} +8 -8
- package/6a32f1c1.js +206 -0
- package/{e7717e30.js → 7035666f.js} +7 -7
- package/{c840f94c.js → 74ef17ae.js} +140 -141
- package/{eeeac330.js → 7cc252e4.js} +65540 -59868
- package/81d6ce63.js +817 -0
- package/{c8211b18.js → 832e744b.js} +1 -1
- package/{81a0d6f1.js → 8718dc59.js} +12 -12
- package/{7a22ada0.js → 88953f96.js} +18 -18
- package/a8d4a50e.js +373 -0
- package/aa88392e.js +190 -0
- package/b0862b2f.js +1083 -0
- package/{62c4dc6e.js → c1b710aa.js} +5 -5
- package/{4cf9b6b3.js → d72b57c8.js} +12713 -12735
- package/{629dfdca.js → e441921a.js} +4 -4
- package/{47848c42.js → e5b014a9.js} +5 -5
- package/{b7fefb34.js → eb3bf879.js} +2 -2
- package/{febae45b.js → eb5cf40c.js} +2 -2
- package/{ddee0e99.js → edc74d11.js} +3 -3
- package/f0f41787.js +1264 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/1de1a3c9.js +0 -1102
- package/2510669f.js +0 -237
- package/68ee7280.js +0 -1276
- package/89baa2e6.js +0 -391
- package/9dc6adcd.js +0 -819
- package/ab55adad.js +0 -818
- package/c459c043.js +0 -208
- package/e47dc9ca.js +0 -455
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { as as ft, H as gt, e as mt, l as
|
|
2
|
-
import { a as D } from "./
|
|
3
|
-
import "./
|
|
1
|
+
import { as as ft, H as gt, e as mt, l as E, j as G, v as xt, at as _t, au as bt, av as kt } from "./7cc252e4.js";
|
|
2
|
+
import { a as D } from "./edc74d11.js";
|
|
3
|
+
import "./428ebac9.js";
|
|
4
4
|
var K = function() {
|
|
5
5
|
var n = function(g, i, r, c) {
|
|
6
6
|
for (r = r || {}, c = g.length; c--; r[g[c]] = i)
|
|
@@ -13,7 +13,7 @@ var K = function() {
|
|
|
13
13
|
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 },
|
|
14
14
|
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" },
|
|
15
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, 1], [9, 1], [18, 1], [19, 1]],
|
|
16
|
-
performAction: function(i, r, c, d, u, o,
|
|
16
|
+
performAction: function(i, r, c, d, u, o, $) {
|
|
17
17
|
var x = o.length - 1;
|
|
18
18
|
switch (u) {
|
|
19
19
|
case 1:
|
|
@@ -64,60 +64,60 @@ var K = function() {
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
parse: function(i) {
|
|
67
|
-
var r = this, c = [0], d = [], u = [null], o = [],
|
|
68
|
-
for (var
|
|
69
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
70
|
-
k.setInput(i,
|
|
71
|
-
var
|
|
72
|
-
o.push(
|
|
73
|
-
var
|
|
74
|
-
typeof
|
|
75
|
-
function
|
|
76
|
-
var
|
|
77
|
-
return
|
|
67
|
+
var r = this, c = [0], d = [], u = [null], o = [], $ = this.table, x = "", T = 0, W = 0, C = 2, A = 1, B = o.slice.call(arguments, 1), k = Object.create(this.lexer), w = { yy: {} };
|
|
68
|
+
for (var v in this.yy)
|
|
69
|
+
Object.prototype.hasOwnProperty.call(this.yy, v) && (w.yy[v] = this.yy[v]);
|
|
70
|
+
k.setInput(i, w.yy), w.yy.lexer = k, w.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
|
|
71
|
+
var I = k.yylloc;
|
|
72
|
+
o.push(I);
|
|
73
|
+
var H = k.options && k.options.ranges;
|
|
74
|
+
typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
75
|
+
function z() {
|
|
76
|
+
var M;
|
|
77
|
+
return M = d.pop() || k.lex() || A, typeof M != "number" && (M instanceof Array && (d = M, M = d.pop()), M = r.symbols_[M] || M), M;
|
|
78
78
|
}
|
|
79
|
-
for (var
|
|
80
|
-
if (
|
|
79
|
+
for (var b, L, S, Z, R = {}, O, N, Y, j; ; ) {
|
|
80
|
+
if (L = c[c.length - 1], this.defaultActions[L] ? S = this.defaultActions[L] : ((b === null || typeof b > "u") && (b = z()), S = $[L] && $[L][b]), typeof S > "u" || !S.length || !S[0]) {
|
|
81
81
|
var J = "";
|
|
82
|
-
|
|
83
|
-
for (
|
|
84
|
-
this.terminals_[
|
|
85
|
-
k.showPosition ? J = "Parse error on line " + (
|
|
82
|
+
j = [];
|
|
83
|
+
for (O in $[L])
|
|
84
|
+
this.terminals_[O] && O > C && j.push("'" + this.terminals_[O] + "'");
|
|
85
|
+
k.showPosition ? J = "Parse error on line " + (T + 1) + `:
|
|
86
86
|
` + k.showPosition() + `
|
|
87
|
-
Expecting ` +
|
|
87
|
+
Expecting ` + j.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : J = "Parse error on line " + (T + 1) + ": Unexpected " + (b == A ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(J, {
|
|
88
88
|
text: k.match,
|
|
89
|
-
token: this.terminals_[
|
|
89
|
+
token: this.terminals_[b] || b,
|
|
90
90
|
line: k.yylineno,
|
|
91
|
-
loc:
|
|
92
|
-
expected:
|
|
91
|
+
loc: I,
|
|
92
|
+
expected: j
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
if (
|
|
96
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
97
|
-
switch (
|
|
95
|
+
if (S[0] instanceof Array && S.length > 1)
|
|
96
|
+
throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + b);
|
|
97
|
+
switch (S[0]) {
|
|
98
98
|
case 1:
|
|
99
|
-
c.push(
|
|
99
|
+
c.push(b), u.push(k.yytext), o.push(k.yylloc), c.push(S[1]), b = null, W = k.yyleng, x = k.yytext, T = k.yylineno, I = k.yylloc;
|
|
100
100
|
break;
|
|
101
101
|
case 2:
|
|
102
|
-
if (
|
|
103
|
-
first_line: o[o.length - (
|
|
102
|
+
if (N = this.productions_[S[1]][1], R.$ = u[u.length - N], R._$ = {
|
|
103
|
+
first_line: o[o.length - (N || 1)].first_line,
|
|
104
104
|
last_line: o[o.length - 1].last_line,
|
|
105
|
-
first_column: o[o.length - (
|
|
105
|
+
first_column: o[o.length - (N || 1)].first_column,
|
|
106
106
|
last_column: o[o.length - 1].last_column
|
|
107
|
-
},
|
|
108
|
-
o[o.length - (
|
|
107
|
+
}, H && (R._$.range = [
|
|
108
|
+
o[o.length - (N || 1)].range[0],
|
|
109
109
|
o[o.length - 1].range[1]
|
|
110
|
-
]),
|
|
110
|
+
]), Z = this.performAction.apply(R, [
|
|
111
111
|
x,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
W,
|
|
113
|
+
T,
|
|
114
|
+
w.yy,
|
|
115
|
+
S[1],
|
|
116
116
|
u,
|
|
117
117
|
o
|
|
118
|
-
].concat(
|
|
119
|
-
return
|
|
120
|
-
|
|
118
|
+
].concat(B)), typeof Z < "u")
|
|
119
|
+
return Z;
|
|
120
|
+
N && (c = c.slice(0, -1 * N * 2), u = u.slice(0, -1 * N), o = o.slice(0, -1 * N)), c.push(this.productions_[S[1]][0]), u.push(R.$), o.push(R._$), Y = $[c[c.length - 2]][c[c.length - 1]], c.push(Y);
|
|
121
121
|
break;
|
|
122
122
|
case 3:
|
|
123
123
|
return !0;
|
|
@@ -125,7 +125,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
|
|
|
125
125
|
}
|
|
126
126
|
return !0;
|
|
127
127
|
}
|
|
128
|
-
},
|
|
128
|
+
}, _ = function() {
|
|
129
129
|
var g = {
|
|
130
130
|
EOF: 1,
|
|
131
131
|
parseError: function(r, c) {
|
|
@@ -344,7 +344,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
|
|
|
344
344
|
};
|
|
345
345
|
return g;
|
|
346
346
|
}();
|
|
347
|
-
f.lexer =
|
|
347
|
+
f.lexer = _;
|
|
348
348
|
function m() {
|
|
349
349
|
this.yy = {};
|
|
350
350
|
}
|
|
@@ -352,11 +352,11 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
|
|
|
352
352
|
}();
|
|
353
353
|
K.parser = K;
|
|
354
354
|
const vt = K;
|
|
355
|
-
let
|
|
356
|
-
const Q = [],
|
|
357
|
-
Q.length = 0,
|
|
355
|
+
let F = "", st = 0;
|
|
356
|
+
const Q = [], q = [], V = [], it = () => ft, rt = function() {
|
|
357
|
+
Q.length = 0, q.length = 0, F = "", V.length = 0, gt();
|
|
358
358
|
}, at = function(n) {
|
|
359
|
-
|
|
359
|
+
F = n, Q.push(n);
|
|
360
360
|
}, lt = function() {
|
|
361
361
|
return Q;
|
|
362
362
|
}, ot = function() {
|
|
@@ -365,35 +365,35 @@ const Q = [], U = [], B = [], it = () => ft, rt = function() {
|
|
|
365
365
|
let e = 0;
|
|
366
366
|
for (; !n && e < t; )
|
|
367
367
|
n = tt(), e++;
|
|
368
|
-
return
|
|
368
|
+
return q.push(...V), q;
|
|
369
369
|
}, ct = function(n, t, e) {
|
|
370
370
|
const a = {
|
|
371
371
|
id: st++,
|
|
372
|
-
section:
|
|
373
|
-
type:
|
|
372
|
+
section: F,
|
|
373
|
+
type: F,
|
|
374
374
|
task: n,
|
|
375
375
|
score: t || 0,
|
|
376
376
|
//if event is defined, then add it the events array
|
|
377
377
|
events: e ? [e] : []
|
|
378
378
|
};
|
|
379
|
-
|
|
379
|
+
V.push(a);
|
|
380
380
|
}, ht = function(n) {
|
|
381
|
-
|
|
381
|
+
V.find((e) => e.id === st - 1).events.push(n);
|
|
382
382
|
}, dt = function(n) {
|
|
383
383
|
const t = {
|
|
384
|
-
section:
|
|
385
|
-
type:
|
|
384
|
+
section: F,
|
|
385
|
+
type: F,
|
|
386
386
|
description: n,
|
|
387
387
|
task: n,
|
|
388
388
|
classes: []
|
|
389
389
|
};
|
|
390
|
-
|
|
390
|
+
q.push(t);
|
|
391
391
|
}, tt = function() {
|
|
392
392
|
const n = function(e) {
|
|
393
|
-
return
|
|
393
|
+
return V[e].processed;
|
|
394
394
|
};
|
|
395
395
|
let t = !0;
|
|
396
|
-
for (const [e, a] of
|
|
396
|
+
for (const [e, a] of V.entries())
|
|
397
397
|
n(e), t = t && a.processed;
|
|
398
398
|
return t;
|
|
399
399
|
}, wt = {
|
|
@@ -416,7 +416,7 @@ const Q = [], U = [], B = [], it = () => ft, rt = function() {
|
|
|
416
416
|
getCommonDb: it,
|
|
417
417
|
getSections: lt,
|
|
418
418
|
getTasks: ot
|
|
419
|
-
}, Symbol.toStringTag, { value: "Module" })), Et = 12,
|
|
419
|
+
}, Symbol.toStringTag, { value: "Module" })), Et = 12, U = function(n, t) {
|
|
420
420
|
const e = n.append("rect");
|
|
421
421
|
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;
|
|
422
422
|
}, Tt = function(n, t) {
|
|
@@ -450,7 +450,7 @@ const Q = [], U = [], B = [], it = () => ft, rt = function() {
|
|
|
450
450
|
a.attr("points", e(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ut(n, t);
|
|
451
451
|
}, Nt = function(n, t, e) {
|
|
452
452
|
const a = n.append("g"), s = X();
|
|
453
|
-
s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = e.width, s.height = e.height, s.class = "journey-section section-type-" + t.num, s.rx = 3, s.ry = 3,
|
|
453
|
+
s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = e.width, s.height = e.height, s.class = "journey-section section-type-" + t.num, s.rx = 3, s.ry = 3, U(a, s), pt(e)(
|
|
454
454
|
t.text,
|
|
455
455
|
a,
|
|
456
456
|
s.x,
|
|
@@ -473,7 +473,7 @@ const Mt = function(n, t, e) {
|
|
|
473
473
|
score: t.score
|
|
474
474
|
});
|
|
475
475
|
const l = X();
|
|
476
|
-
l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3,
|
|
476
|
+
l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3, U(s, l), t.x + 14, pt(e)(
|
|
477
477
|
t.task,
|
|
478
478
|
s,
|
|
479
479
|
l.x,
|
|
@@ -485,7 +485,7 @@ const Mt = function(n, t, e) {
|
|
|
485
485
|
t.colour
|
|
486
486
|
);
|
|
487
487
|
}, Lt = function(n, t) {
|
|
488
|
-
|
|
488
|
+
U(n, {
|
|
489
489
|
x: t.startx,
|
|
490
490
|
y: t.starty,
|
|
491
491
|
width: t.stopx - t.startx,
|
|
@@ -516,20 +516,20 @@ const Mt = function(n, t, e) {
|
|
|
516
516
|
ry: 0
|
|
517
517
|
};
|
|
518
518
|
}, pt = function() {
|
|
519
|
-
function n(s, h, l, p, y, f,
|
|
519
|
+
function n(s, h, l, p, y, f, _, m) {
|
|
520
520
|
const g = h.append("text").attr("x", l + y / 2).attr("y", p + f / 2 + 5).style("font-color", m).style("text-anchor", "middle").text(s);
|
|
521
|
-
a(g,
|
|
521
|
+
a(g, _);
|
|
522
522
|
}
|
|
523
|
-
function t(s, h, l, p, y, f,
|
|
523
|
+
function t(s, h, l, p, y, f, _, m, g) {
|
|
524
524
|
const { taskFontSize: i, taskFontFamily: r } = m, c = s.split(/<br\s*\/?>/gi);
|
|
525
525
|
for (let d = 0; d < c.length; d++) {
|
|
526
526
|
const u = d * i - i * (c.length - 1) / 2, o = h.append("text").attr("x", l + y / 2).attr("y", p).attr("fill", g).style("text-anchor", "middle").style("font-size", i).style("font-family", r);
|
|
527
|
-
o.append("tspan").attr("x", l + y / 2).attr("dy", u).text(c[d]), o.attr("y", p + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(o,
|
|
527
|
+
o.append("tspan").attr("x", l + y / 2).attr("dy", u).text(c[d]), o.attr("y", p + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(o, _);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function e(s, h, l, p, y, f,
|
|
530
|
+
function e(s, h, l, p, y, f, _, m) {
|
|
531
531
|
const g = h.append("switch"), r = g.append("foreignObject").attr("x", l).attr("y", p).attr("width", y).attr("height", f).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
532
|
-
r.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, g, l, p, y, f,
|
|
532
|
+
r.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, g, l, p, y, f, _, m), a(r, _);
|
|
533
533
|
}
|
|
534
534
|
function a(s, h) {
|
|
535
535
|
for (const l in h)
|
|
@@ -543,9 +543,9 @@ const Mt = function(n, t, e) {
|
|
|
543
543
|
};
|
|
544
544
|
function yt(n, t) {
|
|
545
545
|
n.each(function() {
|
|
546
|
-
var e =
|
|
547
|
-
for (let
|
|
548
|
-
s = a[a.length - 1 -
|
|
546
|
+
var e = G(this), a = e.text().split(/(\s+|<br>)/).reverse(), s, h = [], l = 1.1, p = e.attr("y"), y = parseFloat(e.attr("dy")), f = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", y + "em");
|
|
547
|
+
for (let _ = 0; _ < a.length; _++)
|
|
548
|
+
s = a[a.length - 1 - _], h.push(s), f.text(h.join(" ").trim()), (f.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), f.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], f = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", l + "em").text(s));
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
const Pt = function(n, t, e, a) {
|
|
@@ -554,8 +554,8 @@ const Pt = function(n, t, e, a) {
|
|
|
554
554
|
"class",
|
|
555
555
|
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + s)
|
|
556
556
|
);
|
|
557
|
-
const l = h.append("g"), p = h.append("g"), f = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(),
|
|
558
|
-
return t.height = f.height +
|
|
557
|
+
const l = h.append("g"), p = h.append("g"), f = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), _ = a.fontSize && a.fontSize.replace ? a.fontSize.replace("px", "") : a.fontSize;
|
|
558
|
+
return t.height = f.height + _ * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(l, t, s), t;
|
|
559
559
|
}, Ct = function(n, t, e) {
|
|
560
560
|
const a = n.append("g"), h = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), l = e.fontSize && e.fontSize.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
561
561
|
return a.remove(), h.height + l * 1.1 * 0.5 + t.padding;
|
|
@@ -564,8 +564,8 @@ const Pt = function(n, t, e, a) {
|
|
|
564
564
|
"d",
|
|
565
565
|
`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`
|
|
566
566
|
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
567
|
-
},
|
|
568
|
-
drawRect:
|
|
567
|
+
}, P = {
|
|
568
|
+
drawRect: U,
|
|
569
569
|
drawCircle: It,
|
|
570
570
|
drawSection: Nt,
|
|
571
571
|
drawText: ut,
|
|
@@ -578,104 +578,103 @@ const Pt = function(n, t, e, a) {
|
|
|
578
578
|
drawNode: Pt,
|
|
579
579
|
getVirtualNodeHeight: Ct
|
|
580
580
|
}, Rt = function(n, t, e, a) {
|
|
581
|
-
var $, R, F;
|
|
582
581
|
var s, h;
|
|
583
|
-
const l = mt(), p =
|
|
584
|
-
|
|
582
|
+
const l = mt(), p = l.leftMargin ?? 50;
|
|
583
|
+
E.debug("timeline", a.db);
|
|
585
584
|
const y = l.securityLevel;
|
|
586
585
|
let f;
|
|
587
|
-
y === "sandbox" && (f =
|
|
588
|
-
const m = (y === "sandbox" ?
|
|
586
|
+
y === "sandbox" && (f = G("#i" + t));
|
|
587
|
+
const m = (y === "sandbox" ? G(f.nodes()[0].contentDocument.body) : G("body")).select("#" + t);
|
|
589
588
|
m.append("g");
|
|
590
589
|
const g = a.db.getTasks(), i = a.db.getCommonDb().getDiagramTitle();
|
|
591
|
-
|
|
590
|
+
E.debug("task", g), P.initGraphics(m);
|
|
592
591
|
const r = a.db.getSections();
|
|
593
|
-
|
|
594
|
-
let c = 0, d = 0, u = 0, o = 0,
|
|
592
|
+
E.debug("sections", r);
|
|
593
|
+
let c = 0, d = 0, u = 0, o = 0, $ = 50 + p, x = 50;
|
|
595
594
|
o = 50;
|
|
596
|
-
let
|
|
597
|
-
r.forEach(function(
|
|
598
|
-
const
|
|
599
|
-
number:
|
|
600
|
-
descr:
|
|
601
|
-
section:
|
|
595
|
+
let T = 0, W = !0;
|
|
596
|
+
r.forEach(function(w) {
|
|
597
|
+
const v = {
|
|
598
|
+
number: T,
|
|
599
|
+
descr: w,
|
|
600
|
+
section: T,
|
|
602
601
|
width: 150,
|
|
603
602
|
padding: 20,
|
|
604
603
|
maxHeight: c
|
|
605
|
-
},
|
|
606
|
-
|
|
604
|
+
}, I = P.getVirtualNodeHeight(m, v, l);
|
|
605
|
+
E.debug("sectionHeight before draw", I), c = Math.max(c, I + 20);
|
|
607
606
|
});
|
|
608
|
-
let
|
|
609
|
-
|
|
610
|
-
for (const [
|
|
611
|
-
const
|
|
612
|
-
number:
|
|
613
|
-
descr:
|
|
614
|
-
section:
|
|
607
|
+
let C = 0, A = 0;
|
|
608
|
+
E.debug("tasks.length", g.length);
|
|
609
|
+
for (const [w, v] of g.entries()) {
|
|
610
|
+
const I = {
|
|
611
|
+
number: w,
|
|
612
|
+
descr: v,
|
|
613
|
+
section: v.section,
|
|
615
614
|
width: 150,
|
|
616
615
|
padding: 20,
|
|
617
616
|
maxHeight: d
|
|
618
|
-
},
|
|
619
|
-
|
|
620
|
-
let
|
|
621
|
-
for (let
|
|
622
|
-
const
|
|
623
|
-
descr:
|
|
624
|
-
section:
|
|
625
|
-
number:
|
|
617
|
+
}, H = P.getVirtualNodeHeight(m, I, l);
|
|
618
|
+
E.debug("taskHeight before draw", H), d = Math.max(d, H + 20), C = Math.max(C, v.events.length);
|
|
619
|
+
let z = 0;
|
|
620
|
+
for (let b = 0; b < v.events.length; b++) {
|
|
621
|
+
const S = {
|
|
622
|
+
descr: v.events[b],
|
|
623
|
+
section: v.section,
|
|
624
|
+
number: v.section,
|
|
626
625
|
width: 150,
|
|
627
626
|
padding: 20,
|
|
628
627
|
maxHeight: 50
|
|
629
628
|
};
|
|
630
|
-
|
|
629
|
+
z += P.getVirtualNodeHeight(m, S, l);
|
|
631
630
|
}
|
|
632
|
-
|
|
631
|
+
A = Math.max(A, z);
|
|
633
632
|
}
|
|
634
|
-
|
|
635
|
-
const
|
|
636
|
-
number:
|
|
637
|
-
descr:
|
|
638
|
-
section:
|
|
639
|
-
width: 200 * Math.max(
|
|
633
|
+
E.debug("maxSectionHeight before draw", c), E.debug("maxTaskHeight before draw", d), r && r.length > 0 ? r.forEach((w) => {
|
|
634
|
+
const v = g.filter((b) => b.section === w), I = {
|
|
635
|
+
number: T,
|
|
636
|
+
descr: w,
|
|
637
|
+
section: T,
|
|
638
|
+
width: 200 * Math.max(v.length, 1) - 50,
|
|
640
639
|
padding: 20,
|
|
641
640
|
maxHeight: c
|
|
642
641
|
};
|
|
643
|
-
|
|
644
|
-
const
|
|
645
|
-
|
|
642
|
+
E.debug("sectionNode", I);
|
|
643
|
+
const H = m.append("g"), z = P.drawNode(H, I, T, l);
|
|
644
|
+
E.debug("sectionNode output", z), H.attr("transform", `translate(${$}, ${o})`), x += c + 50, v.length > 0 && nt(
|
|
646
645
|
m,
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
646
|
+
v,
|
|
647
|
+
T,
|
|
648
|
+
$,
|
|
650
649
|
x,
|
|
651
650
|
d,
|
|
652
651
|
l,
|
|
653
|
-
|
|
654
|
-
|
|
652
|
+
C,
|
|
653
|
+
A,
|
|
655
654
|
c,
|
|
656
655
|
!1
|
|
657
|
-
),
|
|
658
|
-
}) : (
|
|
656
|
+
), $ += 200 * Math.max(v.length, 1), x = o, T++;
|
|
657
|
+
}) : (W = !1, nt(
|
|
659
658
|
m,
|
|
660
659
|
g,
|
|
661
|
-
|
|
662
|
-
|
|
660
|
+
T,
|
|
661
|
+
$,
|
|
663
662
|
x,
|
|
664
663
|
d,
|
|
665
664
|
l,
|
|
666
|
-
|
|
667
|
-
|
|
665
|
+
C,
|
|
666
|
+
A,
|
|
668
667
|
c,
|
|
669
668
|
!0
|
|
670
669
|
));
|
|
671
|
-
const
|
|
672
|
-
|
|
670
|
+
const B = m.node().getBBox();
|
|
671
|
+
E.debug("bounds", B), i && m.append("text").text(i).attr("x", B.width / 2 - p).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), u = W ? c + d + 150 : d + 100, m.append("g").attr("class", "lineWrapper").append("line").attr("x1", p).attr("y1", u).attr("x2", B.width + 3 * p).attr("y2", u).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), xt(
|
|
673
672
|
void 0,
|
|
674
673
|
m,
|
|
675
|
-
(
|
|
676
|
-
(
|
|
674
|
+
((s = l.timeline) == null ? void 0 : s.padding) ?? 50,
|
|
675
|
+
((h = l.timeline) == null ? void 0 : h.useMaxWidth) ?? !1
|
|
677
676
|
);
|
|
678
|
-
}, nt = function(n, t, e, a, s, h, l, p, y, f,
|
|
677
|
+
}, nt = function(n, t, e, a, s, h, l, p, y, f, _) {
|
|
679
678
|
var m;
|
|
680
679
|
for (const g of t) {
|
|
681
680
|
const i = {
|
|
@@ -686,17 +685,17 @@ const Pt = function(n, t, e, a) {
|
|
|
686
685
|
padding: 20,
|
|
687
686
|
maxHeight: h
|
|
688
687
|
};
|
|
689
|
-
|
|
690
|
-
const r = n.append("g").attr("class", "taskWrapper"), d =
|
|
691
|
-
if (
|
|
688
|
+
E.debug("taskNode", i);
|
|
689
|
+
const r = n.append("g").attr("class", "taskWrapper"), d = P.drawNode(r, i, e, l).height;
|
|
690
|
+
if (E.debug("taskHeight after draw", d), r.attr("transform", `translate(${a}, ${s})`), h = Math.max(h, d), g.events) {
|
|
692
691
|
const u = n.append("g").attr("class", "lineWrapper");
|
|
693
692
|
let o = h;
|
|
694
693
|
s += 100, o = o + Ft(n, g.events, e, a, s, l), s -= 100, u.append("line").attr("x1", a + 190 / 2).attr("y1", s + h).attr("x2", a + 190 / 2).attr(
|
|
695
694
|
"y2",
|
|
696
|
-
s + h + (
|
|
695
|
+
s + h + (_ ? h : f) + y + 120
|
|
697
696
|
).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
698
697
|
}
|
|
699
|
-
a = a + 200,
|
|
698
|
+
a = a + 200, _ && !((m = l.timeline) != null && m.disableMulticolor) && e++;
|
|
700
699
|
}
|
|
701
700
|
s = s - 10;
|
|
702
701
|
}, Ft = function(n, t, e, a, s, h) {
|
|
@@ -712,9 +711,9 @@ const Pt = function(n, t, e, a) {
|
|
|
712
711
|
padding: 20,
|
|
713
712
|
maxHeight: 50
|
|
714
713
|
};
|
|
715
|
-
|
|
716
|
-
const
|
|
717
|
-
l = l + g,
|
|
714
|
+
E.debug("eventNode", f);
|
|
715
|
+
const _ = n.append("g").attr("class", "eventWrapper"), g = P.drawNode(_, f, e, h).height;
|
|
716
|
+
l = l + g, _.attr("transform", `translate(${a}, ${s})`), s = s + 10 + g;
|
|
718
717
|
}
|
|
719
718
|
return s = p, l;
|
|
720
719
|
}, Vt = {
|