lowcoder-comps 2.4.14 → 2.4.16
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/{fc3b7856.js → 1043ea14.js} +247 -258
- package/{52a11357.js → 14530b4e.js} +5 -5
- package/{029476f8.js → 145794bd.js} +4 -4
- package/248f3eba.js +797 -0
- package/{e6f7d4a7.js → 28364e9c.js} +411 -451
- package/{a3820fc3.js → 38ec0f55.js} +3 -3
- package/{6296008d.js → 40bee586.js} +55069 -55754
- package/{256b619e.js → 428ebac9.js} +14 -15
- package/{21e8a932.js → 4407a5f9.js} +1 -1
- package/{286121b3.js → 474d7e5f.js} +6 -6
- package/{32d11caf.js → 48ca2a1e.js} +2 -2
- package/5b2c9b5c.js +206 -0
- package/{b42bc0a6.js → 633f4ede.js} +919 -969
- package/{35b2542e.js → 668d3da2.js} +1 -1
- package/{005a58c0.js → 78321d1a.js} +4 -4
- package/{2ea4f729.js → 7c479abc.js} +8 -8
- package/{09ab5d81.js → 7c7200e7.js} +7 -7
- package/{d42741f5.js → 7e6d090c.js} +1067 -1085
- package/7e78c333.js +373 -0
- package/{abadf1f6.js → 88415712.js} +140 -141
- package/{43254cb0.js → 8ae1f7a4.js} +4 -5
- package/{af28f5d5.js → 8e6be41e.js} +4 -4
- package/{a73a7fb8.js → 8ffe69e1.js} +6 -6
- package/{14a0be5d.js → 9afbfdff.js} +1 -1
- package/{25f232c1.js → a8987699.js} +6 -6
- package/afdeb8e9.js +190 -0
- package/c0405acc.js +1083 -0
- package/{08ea4a8f.js → ca993649.js} +2 -2
- package/{bf684fc8.js → cc8ba9a3.js} +12713 -12735
- package/{bcd4bce3.js → d27497a0.js} +18 -18
- package/{c69763fa.js → dbeb2d17.js} +2 -2
- package/{6741b2b9.js → de3e61cd.js} +68 -69
- package/df15a543.js +817 -0
- package/{47848c42.js → e5b014a9.js} +5 -5
- package/e86c3e3a.js +1264 -0
- package/{0f43fe1e.js → eb52cd1a.js} +8 -8
- package/{0da7ca4d.js → ebbe2009.js} +92 -92
- package/{cb338c34.js → ecab0a38.js} +96 -99
- package/{268c902c.js → f3455869.js} +26 -27
- package/f701d7da.js +433 -0
- package/{6402852d.js → fc681b47.js} +12 -12
- package/index.js +2 -2
- package/package.json +1 -1
- package/04c7d898.js +0 -819
- package/078d4a18.js +0 -818
- package/18cd6b56.js +0 -391
- package/1a8f0a25.js +0 -455
- package/2b4f4275.js +0 -1276
- package/2efee7c6.js +0 -1102
- package/a6a69647.js +0 -237
- package/c2bb8612.js +0 -208
|
@@ -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 "./40bee586.js";
|
|
2
|
+
import { a as D } from "./38ec0f55.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 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as At, b7 as zt, b8 as It } from "./
|
|
1
|
+
import { l as At, b7 as zt, b8 as It } from "./40bee586.js";
|
|
2
2
|
const Tt = {};
|
|
3
3
|
function Bt(n, r) {
|
|
4
4
|
const t = r || Tt, e = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, u = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
@@ -2870,19 +2870,18 @@ function Rr(n, r) {
|
|
|
2870
2870
|
return Bn(n, r);
|
|
2871
2871
|
}
|
|
2872
2872
|
function Bn(n, r, t = [], e = []) {
|
|
2873
|
-
var a;
|
|
2874
2873
|
if (n.length === 0)
|
|
2875
2874
|
return e.length > 0 && t.push(e), t.length > 0 ? t : [];
|
|
2876
2875
|
let u = "";
|
|
2877
2876
|
n[0].content === " " && (u = " ", n.shift());
|
|
2878
|
-
const i =
|
|
2877
|
+
const i = n.shift() ?? { content: " ", type: "normal" }, l = [...e];
|
|
2879
2878
|
if (u !== "" && l.push({ content: u, type: "normal" }), l.push(i), r(l))
|
|
2880
2879
|
return Bn(n, r, t, l);
|
|
2881
2880
|
if (e.length > 0)
|
|
2882
2881
|
t.push(e), n.unshift(i);
|
|
2883
2882
|
else if (i.content) {
|
|
2884
|
-
const [
|
|
2885
|
-
t.push([
|
|
2883
|
+
const [a, m] = jr(r, i);
|
|
2884
|
+
t.push([a]), m.content && n.unshift(m);
|
|
2886
2885
|
}
|
|
2887
2886
|
return Bn(n, r, t);
|
|
2888
2887
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as Y, U as D, k as M } from "./
|
|
1
|
+
import { l as Y, U as D, k as M } from "./40bee586.js";
|
|
2
2
|
var O = function() {
|
|
3
3
|
var a = function(u, t, e, n) {
|
|
4
4
|
for (e = e || {}, n = u.length; n--; e[u[n]] = t)
|
|
@@ -36,7 +36,7 @@ var O = function() {
|
|
|
36
36
|
var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
|
|
37
37
|
for (var E in this.yy)
|
|
38
38
|
Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
|
|
39
|
-
o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc
|
|
39
|
+
o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc > "u" && (o.yylloc = {});
|
|
40
40
|
var I = o.yylloc;
|
|
41
41
|
i.push(I);
|
|
42
42
|
var z = o.options && o.options.ranges;
|
|
@@ -46,7 +46,7 @@ var O = function() {
|
|
|
46
46
|
return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
|
|
47
47
|
}
|
|
48
48
|
for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
|
|
49
|
-
if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l
|
|
49
|
+
if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l > "u") && (l = U()), h = d[g] && d[g][l]), typeof h > "u" || !h.length || !h[0]) {
|
|
50
50
|
var A = "";
|
|
51
51
|
S = [];
|
|
52
52
|
for (b in d[g])
|
|
@@ -84,7 +84,7 @@ Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "
|
|
|
84
84
|
h[1],
|
|
85
85
|
r,
|
|
86
86
|
i
|
|
87
|
-
].concat(R)), typeof w
|
|
87
|
+
].concat(R)), typeof w < "u")
|
|
88
88
|
return w;
|
|
89
89
|
c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
|
|
90
90
|
break;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as Y, a as Ut, s as zt, b as Mt, d as Ht, F as Xt, G as Kt, l as D, m as ot, H as Wt, a7 as Jt } from "./
|
|
1
|
+
import { e as Y, a as Ut, s as zt, b as Mt, d as Ht, F as Xt, G as Kt, l as D, m as ot, H as Wt, a7 as Jt } from "./40bee586.js";
|
|
2
2
|
var gt = function() {
|
|
3
3
|
var t = function(C, r, n, i) {
|
|
4
4
|
for (n = n || {}, i = C.length; i--; n[C[i]] = r)
|
|
@@ -124,7 +124,7 @@ var gt = function() {
|
|
|
124
124
|
var n = this, i = [0], o = [], p = [null], e = [], $ = this.table, l = "", v = 0, O = 0, st = 2, B = 1, ft = e.slice.call(arguments, 1), S = Object.create(this.lexer), A = { yy: {} };
|
|
125
125
|
for (var dt in this.yy)
|
|
126
126
|
Object.prototype.hasOwnProperty.call(this.yy, dt) && (A.yy[dt] = this.yy[dt]);
|
|
127
|
-
S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc
|
|
127
|
+
S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
128
128
|
var yt = S.yylloc;
|
|
129
129
|
e.push(yt);
|
|
130
130
|
var Gt = S.options && S.options.ranges;
|
|
@@ -134,7 +134,7 @@ var gt = function() {
|
|
|
134
134
|
return x = o.pop() || S.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = n.symbols_[x] || x), x;
|
|
135
135
|
}
|
|
136
136
|
for (var _, L, m, pt, N = {}, it, b, Ct, rt; ; ) {
|
|
137
|
-
if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _
|
|
137
|
+
if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _ > "u") && (_ = jt()), m = $[L] && $[L][_]), typeof m > "u" || !m.length || !m[0]) {
|
|
138
138
|
var St = "";
|
|
139
139
|
rt = [];
|
|
140
140
|
for (it in $[L])
|
|
@@ -172,7 +172,7 @@ Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : St =
|
|
|
172
172
|
m[1],
|
|
173
173
|
p,
|
|
174
174
|
e
|
|
175
|
-
].concat(ft)), typeof pt
|
|
175
|
+
].concat(ft)), typeof pt < "u")
|
|
176
176
|
return pt;
|
|
177
177
|
b && (i = i.slice(0, -1 * b * 2), p = p.slice(0, -1 * b), e = e.slice(0, -1 * b)), i.push(this.productions_[m[1]][0]), p.push(N.$), e.push(N._$), Ct = $[i[i.length - 2]][i[i.length - 1]], i.push(Ct);
|
|
178
178
|
break;
|
|
@@ -603,7 +603,7 @@ const ie = {
|
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
605
|
}, I = function(t, s = Et, a = null, h = null, f = null, d = null, y = null, k = null) {
|
|
606
|
-
const u = t
|
|
606
|
+
const u = t?.trim();
|
|
607
607
|
g.states[u] === void 0 ? (D.info("Adding state ", u, h), g.states[u] = {
|
|
608
608
|
id: u,
|
|
609
609
|
descriptions: [],
|
|
@@ -689,7 +689,7 @@ const Ft = function(t, s, a) {
|
|
|
689
689
|
}, Se = () => (Lt++, "divider-id-" + Lt), Vt = function(t, s = "") {
|
|
690
690
|
P[t] === void 0 && (P[t] = { id: t, styles: [], textStyles: [] });
|
|
691
691
|
const a = P[t];
|
|
692
|
-
s
|
|
692
|
+
s?.split(se).forEach((h) => {
|
|
693
693
|
const f = h.replace(/([^;]*);/, "$1").trim();
|
|
694
694
|
if (h.match(vt)) {
|
|
695
695
|
const y = f.replace(At, ee).replace(vt, At);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as o, o as i } from "./
|
|
1
|
+
import { aq as o, o as i } from "./40bee586.js";
|
|
2
2
|
const l = (s, t) => {
|
|
3
3
|
const e = s.append("rect");
|
|
4
4
|
if (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), t.name && e.attr("name", t.name), t.rx !== void 0 && e.attr("rx", t.rx), t.ry !== void 0 && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { p as P, d as N, s as W } from "./
|
|
2
|
-
import { e as t, j as H, l as b, k as R, m as T, I as v, C } from "./
|
|
3
|
-
import { G as U } from "./
|
|
4
|
-
import { l as F } from "./
|
|
5
|
-
import { l as $ } from "./
|
|
1
|
+
import { p as P, d as N, s as W } from "./8ffe69e1.js";
|
|
2
|
+
import { e as t, j as H, l as b, k as R, m as T, I as v, C } from "./40bee586.js";
|
|
3
|
+
import { G as U } from "./48ca2a1e.js";
|
|
4
|
+
import { l as F } from "./dbeb2d17.js";
|
|
5
|
+
import { l as $ } from "./ca993649.js";
|
|
6
6
|
import "./2ff2c7a6.js";
|
|
7
|
-
import "./
|
|
7
|
+
import "./428ebac9.js";
|
|
8
8
|
const O = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), X = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), I = (e, i) => {
|
|
9
9
|
const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = o.node().getBBox();
|
|
10
10
|
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
|