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.
Files changed (51) hide show
  1. package/{0fa873f8.js → 0bb0c92e.js} +4 -4
  2. package/{1d0578cc.js → 0cc36377.js} +919 -969
  3. package/{4ee1107f.js → 0fa86771.js} +411 -451
  4. package/{7ceb1a86.js → 19a2ee87.js} +1067 -1085
  5. package/{62a4e802.js → 1b41afb7.js} +6 -6
  6. package/{140d1965.js → 1e5b4466.js} +1 -1
  7. package/21ce624b.js +433 -0
  8. package/247d363c.js +797 -0
  9. package/{66d40f47.js → 2dc10e5c.js} +96 -99
  10. package/{48262065.js → 3a91cb5c.js} +8 -8
  11. package/{bfff0c9e.js → 3ebe8123.js} +26 -27
  12. package/{e60eb1d6.js → 3f2bde45.js} +1 -1
  13. package/{08ce8965.js → 4046c39a.js} +247 -258
  14. package/{256b619e.js → 428ebac9.js} +14 -15
  15. package/{f85b9955.js → 4b8936b0.js} +68 -69
  16. package/{722d14f3.js → 4d48e6df.js} +6 -6
  17. package/{93e77b54.js → 558e8ee5.js} +4 -4
  18. package/{d2b89014.js → 56f6e990.js} +92 -92
  19. package/{6c5168e9.js → 5a31cef7.js} +2 -2
  20. package/{7873457c.js → 5d41cf38.js} +6 -6
  21. package/{5d259708.js → 5fd9a898.js} +4 -5
  22. package/{2c7a98c7.js → 63a771ab.js} +8 -8
  23. package/6a32f1c1.js +206 -0
  24. package/{e7717e30.js → 7035666f.js} +7 -7
  25. package/{c840f94c.js → 74ef17ae.js} +140 -141
  26. package/{eeeac330.js → 7cc252e4.js} +65540 -59868
  27. package/81d6ce63.js +817 -0
  28. package/{c8211b18.js → 832e744b.js} +1 -1
  29. package/{81a0d6f1.js → 8718dc59.js} +12 -12
  30. package/{7a22ada0.js → 88953f96.js} +18 -18
  31. package/a8d4a50e.js +373 -0
  32. package/aa88392e.js +190 -0
  33. package/b0862b2f.js +1083 -0
  34. package/{62c4dc6e.js → c1b710aa.js} +5 -5
  35. package/{4cf9b6b3.js → d72b57c8.js} +12713 -12735
  36. package/{629dfdca.js → e441921a.js} +4 -4
  37. package/{47848c42.js → e5b014a9.js} +5 -5
  38. package/{b7fefb34.js → eb3bf879.js} +2 -2
  39. package/{febae45b.js → eb5cf40c.js} +2 -2
  40. package/{ddee0e99.js → edc74d11.js} +3 -3
  41. package/f0f41787.js +1264 -0
  42. package/index.js +2 -2
  43. package/package.json +1 -1
  44. package/1de1a3c9.js +0 -1102
  45. package/2510669f.js +0 -237
  46. package/68ee7280.js +0 -1276
  47. package/89baa2e6.js +0 -391
  48. package/9dc6adcd.js +0 -819
  49. package/ab55adad.js +0 -818
  50. package/c459c043.js +0 -208
  51. package/e47dc9ca.js +0 -455
@@ -1,6 +1,6 @@
1
- import { as as ft, H as gt, e as mt, l as S, j as q, v as xt, at as _t, au as bt, av as kt } from "./eeeac330.js";
2
- import { a as D } from "./ddee0e99.js";
3
- import "./256b619e.js";
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, I) {
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 = [], I = this.table, x = "", E = 0, O = 0, z = 2, H = 1, j = o.slice.call(arguments, 1), k = Object.create(this.lexer), $ = { yy: {} };
68
- for (var R in this.yy)
69
- Object.prototype.hasOwnProperty.call(this.yy, R) && ($.yy[R] = this.yy[R]);
70
- k.setInput(i, $.yy), $.yy.lexer = k, $.yy.parser = this, typeof k.yylloc == "undefined" && (k.yylloc = {});
71
- var F = k.yylloc;
72
- o.push(F);
73
- var A = k.options && k.options.ranges;
74
- typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
75
- function w() {
76
- var L;
77
- return L = d.pop() || k.lex() || H, typeof L != "number" && (L instanceof Array && (d = L, L = d.pop()), L = r.symbols_[L] || L), L;
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 _, T, v, N, P = {}, V, M, Y, G; ; ) {
80
- if (T = c[c.length - 1], this.defaultActions[T] ? v = this.defaultActions[T] : ((_ === null || typeof _ == "undefined") && (_ = w()), v = I[T] && I[T][_]), typeof v == "undefined" || !v.length || !v[0]) {
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
- G = [];
83
- for (V in I[T])
84
- this.terminals_[V] && V > z && G.push("'" + this.terminals_[V] + "'");
85
- k.showPosition ? J = "Parse error on line " + (E + 1) + `:
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 ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "Parse error on line " + (E + 1) + ": Unexpected " + (_ == H ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(J, {
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: F,
92
- expected: G
91
+ loc: I,
92
+ expected: j
93
93
  });
94
94
  }
95
- if (v[0] instanceof Array && v.length > 1)
96
- throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
97
- switch (v[0]) {
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(_), u.push(k.yytext), o.push(k.yylloc), c.push(v[1]), _ = null, O = k.yyleng, x = k.yytext, E = k.yylineno, F = k.yylloc;
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 (M = this.productions_[v[1]][1], P.$ = u[u.length - M], P._$ = {
103
- first_line: o[o.length - (M || 1)].first_line,
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 - (M || 1)].first_column,
105
+ first_column: o[o.length - (N || 1)].first_column,
106
106
  last_column: o[o.length - 1].last_column
107
- }, A && (P._$.range = [
108
- o[o.length - (M || 1)].range[0],
107
+ }, H && (R._$.range = [
108
+ o[o.length - (N || 1)].range[0],
109
109
  o[o.length - 1].range[1]
110
- ]), N = this.performAction.apply(P, [
110
+ ]), Z = this.performAction.apply(R, [
111
111
  x,
112
- O,
113
- E,
114
- $.yy,
115
- v[1],
112
+ W,
113
+ T,
114
+ w.yy,
115
+ S[1],
116
116
  u,
117
117
  o
118
- ].concat(j)), typeof N != "undefined")
119
- return N;
120
- M && (c = c.slice(0, -1 * M * 2), u = u.slice(0, -1 * M), o = o.slice(0, -1 * M)), c.push(this.productions_[v[1]][0]), u.push(P.$), o.push(P._$), Y = I[c[c.length - 2]][c[c.length - 1]], c.push(Y);
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
- }, b = function() {
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 = b;
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 W = "", st = 0;
356
- const Q = [], U = [], B = [], it = () => ft, rt = function() {
357
- Q.length = 0, U.length = 0, W = "", B.length = 0, gt();
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
- W = n, Q.push(n);
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 U.push(...B), U;
368
+ return q.push(...V), q;
369
369
  }, ct = function(n, t, e) {
370
370
  const a = {
371
371
  id: st++,
372
- section: W,
373
- type: W,
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
- B.push(a);
379
+ V.push(a);
380
380
  }, ht = function(n) {
381
- B.find((e) => e.id === st - 1).events.push(n);
381
+ V.find((e) => e.id === st - 1).events.push(n);
382
382
  }, dt = function(n) {
383
383
  const t = {
384
- section: W,
385
- type: W,
384
+ section: F,
385
+ type: F,
386
386
  description: n,
387
387
  task: n,
388
388
  classes: []
389
389
  };
390
- U.push(t);
390
+ q.push(t);
391
391
  }, tt = function() {
392
392
  const n = function(e) {
393
- return B[e].processed;
393
+ return V[e].processed;
394
394
  };
395
395
  let t = !0;
396
- for (const [e, a] of B.entries())
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, Z = function(n, t) {
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, Z(a, s), pt(e)(
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, Z(s, l), t.x + 14, pt(e)(
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
- Z(n, {
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, b, m) {
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, b);
521
+ a(g, _);
522
522
  }
523
- function t(s, h, l, p, y, f, b, m, g) {
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, b);
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, b, m) {
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, b, m), a(r, b);
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 = q(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 b = 0; b < a.length; b++)
548
- s = a[a.length - 1 - b], 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));
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(), b = a.fontSize && a.fontSize.replace ? a.fontSize.replace("px", "") : a.fontSize;
558
- return t.height = f.height + b * 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;
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
- }, C = {
568
- drawRect: Z,
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 = ($ = l.leftMargin) != null ? $ : 50;
584
- S.debug("timeline", a.db);
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 = q("#i" + t));
588
- const m = (y === "sandbox" ? q(f.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
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
- S.debug("task", g), C.initGraphics(m);
590
+ E.debug("task", g), P.initGraphics(m);
592
591
  const r = a.db.getSections();
593
- S.debug("sections", r);
594
- let c = 0, d = 0, u = 0, o = 0, I = 50 + p, x = 50;
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 E = 0, O = !0;
597
- r.forEach(function(A) {
598
- const w = {
599
- number: E,
600
- descr: A,
601
- section: E,
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
- }, _ = C.getVirtualNodeHeight(m, w, l);
606
- S.debug("sectionHeight before draw", _), c = Math.max(c, _ + 20);
604
+ }, I = P.getVirtualNodeHeight(m, v, l);
605
+ E.debug("sectionHeight before draw", I), c = Math.max(c, I + 20);
607
606
  });
608
- let z = 0, H = 0;
609
- S.debug("tasks.length", g.length);
610
- for (const [A, w] of g.entries()) {
611
- const _ = {
612
- number: A,
613
- descr: w,
614
- section: w.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
- }, T = C.getVirtualNodeHeight(m, _, l);
619
- S.debug("taskHeight before draw", T), d = Math.max(d, T + 20), z = Math.max(z, w.events.length);
620
- let v = 0;
621
- for (let N = 0; N < w.events.length; N++) {
622
- const V = {
623
- descr: w.events[N],
624
- section: w.section,
625
- number: w.section,
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
- v += C.getVirtualNodeHeight(m, V, l);
629
+ z += P.getVirtualNodeHeight(m, S, l);
631
630
  }
632
- H = Math.max(H, v);
631
+ A = Math.max(A, z);
633
632
  }
634
- S.debug("maxSectionHeight before draw", c), S.debug("maxTaskHeight before draw", d), r && r.length > 0 ? r.forEach((A) => {
635
- const w = g.filter((N) => N.section === A), _ = {
636
- number: E,
637
- descr: A,
638
- section: E,
639
- width: 200 * Math.max(w.length, 1) - 50,
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
- S.debug("sectionNode", _);
644
- const T = m.append("g"), v = C.drawNode(T, _, E, l);
645
- S.debug("sectionNode output", v), T.attr("transform", `translate(${I}, ${o})`), x += c + 50, w.length > 0 && nt(
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
- w,
648
- E,
649
- I,
646
+ v,
647
+ T,
648
+ $,
650
649
  x,
651
650
  d,
652
651
  l,
653
- z,
654
- H,
652
+ C,
653
+ A,
655
654
  c,
656
655
  !1
657
- ), I += 200 * Math.max(w.length, 1), x = o, E++;
658
- }) : (O = !1, nt(
656
+ ), $ += 200 * Math.max(v.length, 1), x = o, T++;
657
+ }) : (W = !1, nt(
659
658
  m,
660
659
  g,
661
- E,
662
- I,
660
+ T,
661
+ $,
663
662
  x,
664
663
  d,
665
664
  l,
666
- z,
667
- H,
665
+ C,
666
+ A,
668
667
  c,
669
668
  !0
670
669
  ));
671
- const j = m.node().getBBox();
672
- S.debug("bounds", j), i && m.append("text").text(i).attr("x", j.width / 2 - p).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), u = O ? c + d + 150 : d + 100, m.append("g").attr("class", "lineWrapper").append("line").attr("x1", p).attr("y1", u).attr("x2", j.width + 3 * p).attr("y2", u).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), xt(
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
- (R = (s = l.timeline) == null ? void 0 : s.padding) != null ? R : 50,
676
- (F = (h = l.timeline) == null ? void 0 : h.useMaxWidth) != null ? F : !1
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, b) {
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
- S.debug("taskNode", i);
690
- const r = n.append("g").attr("class", "taskWrapper"), d = C.drawNode(r, i, e, l).height;
691
- if (S.debug("taskHeight after draw", d), r.attr("transform", `translate(${a}, ${s})`), h = Math.max(h, d), g.events) {
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 + (b ? h : f) + y + 120
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, b && !((m = l.timeline) != null && m.disableMulticolor) && e++;
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
- S.debug("eventNode", f);
716
- const b = n.append("g").attr("class", "eventWrapper"), g = C.drawNode(b, f, e, h).height;
717
- l = l + g, b.attr("transform", `translate(${a}, ${s})`), s = s + 10 + 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 = {