lowcoder-comps 0.0.32 → 0.0.34
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/{c289b0aa.js → 00bb478a.js} +49 -49
- package/{4a860f5d.js → 02bef5a4.js} +58 -58
- package/{f8b68c1a.js → 057d2a44.js} +21 -21
- package/{d8c50a91.js → 0964fcc6.js} +5 -5
- package/{cc799554.js → 14220e98.js} +52 -52
- package/{24307cf2.js → 1c074fe4.js} +11 -11
- package/{ee801edf.js → 250a6954.js} +36 -36
- package/{4cc9caa5.js → 2cd27cf0.js} +2 -2
- package/{fcee2d3c.js → 2f064957.js} +5 -5
- package/{4a489df6.js → 30c4916b.js} +1 -1
- package/{e6388bfd.js → 36ec7270.js} +2 -2
- package/{c9bb75eb.js → 38c14832.js} +1 -1
- package/{debd9490.js → 3ae34bed.js} +11 -11
- package/{97059d88.js → 3e2939fa.js} +75 -75
- package/{4564a1bc.js → 3f5f874f.js} +28 -28
- package/{1e5cb9c2.js → 3fb86fb9.js} +18 -18
- package/{fd51bb2f.js → 415177f9.js} +2 -2
- package/{a40faea7.js → 47848c42.js} +317 -305
- package/4c6a0ece.js +162535 -0
- package/{d3700d97.js → 4db8e48b.js} +22 -22
- package/{e06dcfb0.js → 531065f1.js} +14 -14
- package/{6deaf0be.js → 5a398ea8.js} +29 -29
- package/{444e09f1.js → 5ab1614c.js} +18 -18
- package/{64d87c95.js → 65bbb6ae.js} +2 -2
- package/{a969f4ca.js → 777cd15c.js} +2057 -2057
- package/{df803461.js → 7dacfa82.js} +26 -26
- package/{a408f817.js → 800cf0d0.js} +18 -18
- package/{7a3f27e4.js → 93e9bd3a.js} +6 -6
- package/98622dfa.js +16582 -0
- package/{2b031be2.js → a2e74e62.js} +1 -1
- package/{c4d99b09.js → a61c3bd3.js} +1 -1
- package/{dce9fa3f.js → b8f48ff4.js} +4 -4
- package/{7ae6dd1c.js → bd0f5f65.js} +6 -6
- package/{aa82b740.js → bf4428f5.js} +56 -56
- package/{aa1becc7.js → cb1972f7.js} +9 -9
- package/{d622fb26.js → dfc10c94.js} +66 -66
- package/{794e64d5.js → ed2c9753.js} +13 -13
- package/{cb40fdd9.js → ef2833e6.js} +308 -314
- package/{de8c90a7.js → f9e72519.js} +30 -30
- package/{f7c6b13d.js → fe063d15.js} +7498 -7263
- package/index.js +2 -2
- package/package.json +4 -2
- package/98955949.js +0 -134435
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as _t, f as bt, a as vt, g as it } from "./
|
|
3
|
-
import { a as Q } from "./
|
|
1
|
+
import { e as I, F as yt, G as ft, s as dt, a as pt, d as gt, b as mt, H as xt, j as G, k as kt } from "./4c6a0ece.js";
|
|
2
|
+
import { d as _t, f as bt, a as vt, g as it } from "./2f064957.js";
|
|
3
|
+
import { a as Q } from "./3f5f874f.js";
|
|
4
4
|
import "./256b619e.js";
|
|
5
|
-
var
|
|
5
|
+
var W = function() {
|
|
6
6
|
var t = function(p, s, r, a) {
|
|
7
7
|
for (r = r || {}, a = p.length; a--; r[p[a]] = s)
|
|
8
8
|
;
|
|
@@ -74,7 +74,7 @@ var G = function() {
|
|
|
74
74
|
var T;
|
|
75
75
|
return T = u.pop() || x.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = r.symbols_[T] || T), T;
|
|
76
76
|
}
|
|
77
|
-
for (var _, E, b, O,
|
|
77
|
+
for (var _, E, b, O, A = {}, N, $, K, B; ; ) {
|
|
78
78
|
if (E = a[a.length - 1], this.defaultActions[E] ? b = this.defaultActions[E] : ((_ === null || typeof _ == "undefined") && (_ = ut()), b = w[E] && w[E][_]), typeof b == "undefined" || !b.length || !b[0]) {
|
|
79
79
|
var q = "";
|
|
80
80
|
B = [];
|
|
@@ -97,15 +97,15 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : q = "
|
|
|
97
97
|
a.push(_), d.push(x.yytext), o.push(x.yylloc), a.push(b[1]), _ = null, Z = x.yyleng, k = x.yytext, R = x.yylineno, Y = x.yylloc;
|
|
98
98
|
break;
|
|
99
99
|
case 2:
|
|
100
|
-
if ($ = this.productions_[b[1]][1],
|
|
100
|
+
if ($ = this.productions_[b[1]][1], A.$ = d[d.length - $], A._$ = {
|
|
101
101
|
first_line: o[o.length - ($ || 1)].first_line,
|
|
102
102
|
last_line: o[o.length - 1].last_line,
|
|
103
103
|
first_column: o[o.length - ($ || 1)].first_column,
|
|
104
104
|
last_column: o[o.length - 1].last_column
|
|
105
|
-
}, ht && (
|
|
105
|
+
}, ht && (A._$.range = [
|
|
106
106
|
o[o.length - ($ || 1)].range[0],
|
|
107
107
|
o[o.length - 1].range[1]
|
|
108
|
-
]), O = this.performAction.apply(
|
|
108
|
+
]), O = this.performAction.apply(A, [
|
|
109
109
|
k,
|
|
110
110
|
Z,
|
|
111
111
|
R,
|
|
@@ -115,7 +115,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : q = "
|
|
|
115
115
|
o
|
|
116
116
|
].concat(ct)), typeof O != "undefined")
|
|
117
117
|
return O;
|
|
118
|
-
$ && (a = a.slice(0, -1 * $ * 2), d = d.slice(0, -1 * $), o = o.slice(0, -1 * $)), a.push(this.productions_[b[1]][0]), d.push(
|
|
118
|
+
$ && (a = a.slice(0, -1 * $ * 2), d = d.slice(0, -1 * $), o = o.slice(0, -1 * $)), a.push(this.productions_[b[1]][0]), d.push(A.$), o.push(A._$), K = w[a[a.length - 2]][a[a.length - 1]], a.push(K);
|
|
119
119
|
break;
|
|
120
120
|
case 3:
|
|
121
121
|
return !0;
|
|
@@ -350,15 +350,15 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : q = "
|
|
|
350
350
|
}
|
|
351
351
|
return g.prototype = y, y.Parser = g, new g();
|
|
352
352
|
}();
|
|
353
|
-
|
|
354
|
-
const wt =
|
|
355
|
-
let
|
|
356
|
-
const
|
|
357
|
-
|
|
353
|
+
W.parser = W;
|
|
354
|
+
const wt = W;
|
|
355
|
+
let C = "";
|
|
356
|
+
const X = [], V = [], F = [], $t = function() {
|
|
357
|
+
X.length = 0, V.length = 0, C = "", F.length = 0, xt();
|
|
358
358
|
}, Tt = function(t) {
|
|
359
|
-
|
|
359
|
+
C = t, X.push(t);
|
|
360
360
|
}, Mt = function() {
|
|
361
|
-
return
|
|
361
|
+
return X;
|
|
362
362
|
}, St = function() {
|
|
363
363
|
let t = D();
|
|
364
364
|
const e = 100;
|
|
@@ -376,17 +376,17 @@ const H = [], V = [], F = [], $t = function() {
|
|
|
376
376
|
let l = 0, n = [];
|
|
377
377
|
i.length === 1 ? (l = Number(i[0]), n = []) : (l = Number(i[0]), n = i[1].split(","));
|
|
378
378
|
const h = n.map((f) => f.trim()), c = {
|
|
379
|
-
section:
|
|
380
|
-
type:
|
|
379
|
+
section: C,
|
|
380
|
+
type: C,
|
|
381
381
|
people: h,
|
|
382
382
|
task: t,
|
|
383
383
|
score: l
|
|
384
384
|
};
|
|
385
385
|
F.push(c);
|
|
386
|
-
},
|
|
386
|
+
}, It = function(t) {
|
|
387
387
|
const e = {
|
|
388
|
-
section:
|
|
389
|
-
type:
|
|
388
|
+
section: C,
|
|
389
|
+
type: C,
|
|
390
390
|
description: t,
|
|
391
391
|
task: t,
|
|
392
392
|
classes: []
|
|
@@ -400,10 +400,10 @@ const H = [], V = [], F = [], $t = function() {
|
|
|
400
400
|
for (const [i, l] of F.entries())
|
|
401
401
|
t(i), e = e && l.processed;
|
|
402
402
|
return e;
|
|
403
|
-
},
|
|
403
|
+
}, At = function() {
|
|
404
404
|
return Et();
|
|
405
405
|
}, tt = {
|
|
406
|
-
getConfig: () =>
|
|
406
|
+
getConfig: () => I().journey,
|
|
407
407
|
clear: $t,
|
|
408
408
|
setDiagramTitle: yt,
|
|
409
409
|
getDiagramTitle: ft,
|
|
@@ -415,9 +415,9 @@ const H = [], V = [], F = [], $t = function() {
|
|
|
415
415
|
getSections: Mt,
|
|
416
416
|
getTasks: St,
|
|
417
417
|
addTask: Pt,
|
|
418
|
-
addTaskOrg:
|
|
419
|
-
getActors:
|
|
420
|
-
},
|
|
418
|
+
addTaskOrg: It,
|
|
419
|
+
getActors: At
|
|
420
|
+
}, Ct = (t) => `.label {
|
|
421
421
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
422
422
|
font-family: var(--mermaid-font-family);
|
|
423
423
|
color: ${t.textColor};
|
|
@@ -550,7 +550,7 @@ const H = [], V = [], F = [], $t = function() {
|
|
|
550
550
|
.actor-5 {
|
|
551
551
|
${t.actor5 ? `fill: ${t.actor5}` : ""};
|
|
552
552
|
}
|
|
553
|
-
`, Vt =
|
|
553
|
+
`, Vt = Ct, U = function(t, e) {
|
|
554
554
|
return _t(t, e);
|
|
555
555
|
}, Ft = function(t, e) {
|
|
556
556
|
const l = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), n = t.append("g");
|
|
@@ -670,7 +670,7 @@ const Nt = function(t, e, i) {
|
|
|
670
670
|
});
|
|
671
671
|
}, M = {};
|
|
672
672
|
function Yt(t) {
|
|
673
|
-
const e =
|
|
673
|
+
const e = I().journey;
|
|
674
674
|
let i = 60;
|
|
675
675
|
Object.keys(M).forEach((l) => {
|
|
676
676
|
const n = M[l].color, h = {
|
|
@@ -692,11 +692,11 @@ function Yt(t) {
|
|
|
692
692
|
L.drawText(t, c), i += 20;
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
|
-
const j =
|
|
696
|
-
const n =
|
|
695
|
+
const j = I().journey, P = j.leftMargin, Ot = function(t, e, i, l) {
|
|
696
|
+
const n = I().journey, h = I().securityLevel;
|
|
697
697
|
let c;
|
|
698
|
-
h === "sandbox" && (c =
|
|
699
|
-
const f = h === "sandbox" ?
|
|
698
|
+
h === "sandbox" && (c = G("#i" + e));
|
|
699
|
+
const f = h === "sandbox" ? G(c.nodes()[0].contentDocument.body) : G("body");
|
|
700
700
|
v.init();
|
|
701
701
|
const y = f.select("#" + e);
|
|
702
702
|
L.initGraphics(y);
|
|
@@ -737,7 +737,7 @@ const j = C().journey, P = j.leftMargin, Ot = function(t, e, i, l) {
|
|
|
737
737
|
t[e] === void 0 ? t[e] = i : t[e] = l(i, t[e]);
|
|
738
738
|
},
|
|
739
739
|
updateBounds: function(t, e, i, l) {
|
|
740
|
-
const n =
|
|
740
|
+
const n = I().journey, h = this;
|
|
741
741
|
let c = 0;
|
|
742
742
|
function f(y) {
|
|
743
743
|
return function(g) {
|
|
@@ -761,14 +761,14 @@ const j = C().journey, P = j.leftMargin, Ot = function(t, e, i, l) {
|
|
|
761
761
|
getBounds: function() {
|
|
762
762
|
return this.data;
|
|
763
763
|
}
|
|
764
|
-
},
|
|
765
|
-
const l =
|
|
764
|
+
}, H = j.sectionFills, st = j.sectionColours, qt = function(t, e, i) {
|
|
765
|
+
const l = I().journey;
|
|
766
766
|
let n = "";
|
|
767
767
|
const h = l.height * 2 + l.diagramMarginY, c = i + h;
|
|
768
768
|
let f = 0, y = "#CCC", m = "black", g = 0;
|
|
769
769
|
for (const [p, s] of e.entries()) {
|
|
770
770
|
if (n !== s.section) {
|
|
771
|
-
y =
|
|
771
|
+
y = H[f % H.length], g = f % H.length, m = st[f % st.length];
|
|
772
772
|
let a = 0;
|
|
773
773
|
const u = s.section;
|
|
774
774
|
for (let o = p; o < e.length && e[o].section == u; o++)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as On, t as _e, c as Hn, a as Nn, l as Vn } from "./
|
|
1
|
+
import { M as Re, N as je, R as Be, O as Ze, P as Cn, Q as Jt, T as Dn, c as ge, g as ye, e as xt, s as Mn, a as Sn, F as _n, G as Un, d as Yn, b as Fn, H as Ln, o as En, l as Zt, j as Pt, k as An, m as In, C as Wn } from "./4c6a0ece.js";
|
|
2
|
+
import { b as On, t as _e, c as Hn, a as Nn, l as Vn } from "./3fb86fb9.js";
|
|
3
3
|
import { i as Pn } from "./f9637058.js";
|
|
4
4
|
function zn(t, e) {
|
|
5
5
|
let n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aq as o, o as i } from "./4c6a0ece.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)
|
|
@@ -31,7 +31,7 @@ const l = (s, t) => {
|
|
|
31
31
|
n.attr("x", t), n.attr("y", e);
|
|
32
32
|
const a = i.sanitizeUrl(r);
|
|
33
33
|
n.attr("xlink:href", `#${a}`);
|
|
34
|
-
},
|
|
34
|
+
}, g = () => ({
|
|
35
35
|
x: 0,
|
|
36
36
|
y: 0,
|
|
37
37
|
width: 100,
|
|
@@ -41,7 +41,7 @@ const l = (s, t) => {
|
|
|
41
41
|
anchor: "start",
|
|
42
42
|
rx: 0,
|
|
43
43
|
ry: 0
|
|
44
|
-
}),
|
|
44
|
+
}), p = () => ({
|
|
45
45
|
x: 0,
|
|
46
46
|
y: 0,
|
|
47
47
|
width: 100,
|
|
@@ -55,10 +55,10 @@ const l = (s, t) => {
|
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
57
|
x as a,
|
|
58
|
-
|
|
58
|
+
p as b,
|
|
59
59
|
y as c,
|
|
60
60
|
l as d,
|
|
61
61
|
h as e,
|
|
62
62
|
d as f,
|
|
63
|
-
|
|
63
|
+
g
|
|
64
64
|
};
|
|
@@ -9,8 +9,8 @@ var At = (e, a, r) => a in e ? zt(e, a, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
Dt.call(a, r) && At(e, r, a[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
13
|
-
import { l as St } from "./
|
|
12
|
+
import { Z as It, e as qt, W as D, l as ht, s as Bt, a as wt, F as Rt, G as kt, b as Vt, d as Wt, H as Nt, j as pt, k as Ut, f as Qt } from "./4c6a0ece.js";
|
|
13
|
+
import { l as St } from "./3fb86fb9.js";
|
|
14
14
|
import "./f9637058.js";
|
|
15
15
|
var yt = function() {
|
|
16
16
|
var e = function(K, s, l, o) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 "./4c6a0ece.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)
|
|
@@ -14,17 +14,17 @@ var U = (r, e, t) => new Promise((n, a) => {
|
|
|
14
14
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, i);
|
|
15
15
|
o((t = t.apply(r, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { p as _t, f as z } from "./
|
|
18
|
-
import { h as S, f as et, G as Et } from "./
|
|
19
|
-
import {
|
|
20
|
-
import { u as Nt, r as At, p as Ct, l as It, d as M } from "./
|
|
21
|
-
import { a as N, b as st, i as it, c as E, e as ot, d as lt, f as Bt, g as Mt, s as Dt } from "./
|
|
22
|
-
import { l as Rt } from "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
17
|
+
import { p as _t, f as z } from "./057d2a44.js";
|
|
18
|
+
import { h as S, f as et, G as Et } from "./5a398ea8.js";
|
|
19
|
+
import { j as x, p as $, q as H, r as rt, e as G, t as at, m as nt, l as R, u as Y, v as Tt } from "./4c6a0ece.js";
|
|
20
|
+
import { u as Nt, r as At, p as Ct, l as It, d as M } from "./65bbb6ae.js";
|
|
21
|
+
import { a as N, b as st, i as it, c as E, e as ot, d as lt, f as Bt, g as Mt, s as Dt } from "./cb1972f7.js";
|
|
22
|
+
import { l as Rt } from "./0964fcc6.js";
|
|
23
|
+
import "./93e9bd3a.js";
|
|
24
|
+
import "./30c4916b.js";
|
|
25
|
+
import "./00bb478a.js";
|
|
26
|
+
import "./a2e74e62.js";
|
|
27
|
+
import "./a61c3bd3.js";
|
|
28
28
|
import "./2ff2c7a6.js";
|
|
29
29
|
import "./256b619e.js";
|
|
30
30
|
function Gt(r) {
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
var H = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var A = Object.getOwnPropertySymbols;
|
|
3
3
|
var V = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var $ = (l,
|
|
5
|
-
for (var n in
|
|
6
|
-
V.call(
|
|
7
|
-
if (
|
|
8
|
-
for (var n of
|
|
9
|
-
W.call(
|
|
4
|
+
var $ = (l, t, n) => t in l ? H(l, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[t] = n, k = (l, t) => {
|
|
5
|
+
for (var n in t || (t = {}))
|
|
6
|
+
V.call(t, n) && $(l, n, t[n]);
|
|
7
|
+
if (A)
|
|
8
|
+
for (var n of A(t))
|
|
9
|
+
W.call(t, n) && $(l, n, t[n]);
|
|
10
10
|
return l;
|
|
11
11
|
};
|
|
12
|
-
var I = (l,
|
|
12
|
+
var I = (l, t, n) => new Promise((i, e) => {
|
|
13
13
|
var c = (o) => {
|
|
14
14
|
try {
|
|
15
15
|
r(n.next(o));
|
|
16
16
|
} catch (a) {
|
|
17
|
-
|
|
17
|
+
e(a);
|
|
18
18
|
}
|
|
19
19
|
}, s = (o) => {
|
|
20
20
|
try {
|
|
21
21
|
r(n.throw(o));
|
|
22
22
|
} catch (a) {
|
|
23
|
-
|
|
23
|
+
e(a);
|
|
24
24
|
}
|
|
25
25
|
}, r = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(c, s);
|
|
26
|
-
r((n = n.apply(l,
|
|
26
|
+
r((n = n.apply(l, t)).next());
|
|
27
27
|
});
|
|
28
|
-
import { p as J, d as M, s as K } from "./
|
|
29
|
-
import { l as p,
|
|
30
|
-
import { G as X } from "./
|
|
31
|
-
import { r as Y } from "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./
|
|
36
|
-
import "./
|
|
28
|
+
import { p as J, d as M, s as K } from "./531065f1.js";
|
|
29
|
+
import { l as p, e as d, j as S, C as Q, v as U, q as B, u as G, p as q, m as z } from "./4c6a0ece.js";
|
|
30
|
+
import { G as X } from "./5a398ea8.js";
|
|
31
|
+
import { r as Y } from "./93e9bd3a.js";
|
|
32
|
+
import "./65bbb6ae.js";
|
|
33
|
+
import "./30c4916b.js";
|
|
34
|
+
import "./00bb478a.js";
|
|
35
|
+
import "./a2e74e62.js";
|
|
36
|
+
import "./0964fcc6.js";
|
|
37
37
|
import "./2ff2c7a6.js";
|
|
38
38
|
import "./256b619e.js";
|
|
39
39
|
const L = (l) => z.sanitizeText(l, d());
|
|
@@ -43,9 +43,9 @@ let T = {
|
|
|
43
43
|
textHeight: 10,
|
|
44
44
|
curve: void 0
|
|
45
45
|
};
|
|
46
|
-
const Z = function(l,
|
|
47
|
-
const
|
|
48
|
-
p.info("keys:",
|
|
46
|
+
const Z = function(l, t, n, i) {
|
|
47
|
+
const e = Object.keys(l);
|
|
48
|
+
p.info("keys:", e), p.info(l), e.forEach(function(c) {
|
|
49
49
|
var y;
|
|
50
50
|
var s, r;
|
|
51
51
|
const o = l[c], f = {
|
|
@@ -58,11 +58,11 @@ const Z = function(l, e, n, i) {
|
|
|
58
58
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
59
59
|
padding: (y = (s = d().flowchart) == null ? void 0 : s.padding) != null ? y : (r = d().class) == null ? void 0 : r.padding
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
t.setNode(o.id, f), P(o.classes, t, n, i, o.id), p.info("setNode", f);
|
|
62
62
|
});
|
|
63
|
-
}, P = function(l,
|
|
63
|
+
}, P = function(l, t, n, i, e) {
|
|
64
64
|
const c = Object.keys(l);
|
|
65
|
-
p.info("keys:", c), p.info(l), c.filter((s) => l[s].parent ==
|
|
65
|
+
p.info("keys:", c), p.info(l), c.filter((s) => l[s].parent == e).forEach(function(s) {
|
|
66
66
|
var x, m;
|
|
67
67
|
var r, o;
|
|
68
68
|
const a = l[s], f = a.cssClasses.join(" "), y = B(a.styles), v = (x = a.label) != null ? x : a.id, b = 0, h = "class_box", u = {
|
|
@@ -76,7 +76,7 @@ const Z = function(l, e, n, i) {
|
|
|
76
76
|
style: y.style,
|
|
77
77
|
id: a.id,
|
|
78
78
|
domId: a.domId,
|
|
79
|
-
tooltip: i.db.getTooltip(a.id,
|
|
79
|
+
tooltip: i.db.getTooltip(a.id, e) || "",
|
|
80
80
|
haveCallback: a.haveCallback,
|
|
81
81
|
link: a.link,
|
|
82
82
|
width: a.type === "group" ? 500 : void 0,
|
|
@@ -84,13 +84,13 @@ const Z = function(l, e, n, i) {
|
|
|
84
84
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
85
85
|
padding: (m = (r = d().flowchart) == null ? void 0 : r.padding) != null ? m : (o = d().class) == null ? void 0 : o.padding
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
t.setNode(a.id, u), e && t.setParent(a.id, e), p.info("setNode", u);
|
|
88
88
|
});
|
|
89
|
-
}, j = function(l,
|
|
90
|
-
p.info(l), l.forEach(function(
|
|
89
|
+
}, j = function(l, t, n, i) {
|
|
90
|
+
p.info(l), l.forEach(function(e, c) {
|
|
91
91
|
var m;
|
|
92
92
|
var s, r;
|
|
93
|
-
const o =
|
|
93
|
+
const o = e, a = "", f = { labelStyle: "", style: "" }, y = o.text, v = 0, b = "note", h = {
|
|
94
94
|
labelStyle: f.labelStyle,
|
|
95
95
|
shape: b,
|
|
96
96
|
labelText: L(y),
|
|
@@ -106,7 +106,7 @@ const Z = function(l, e, n, i) {
|
|
|
106
106
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
107
107
|
padding: (m = (s = d().flowchart) == null ? void 0 : s.padding) != null ? m : (r = d().class) == null ? void 0 : r.padding
|
|
108
108
|
};
|
|
109
|
-
if (
|
|
109
|
+
if (t.setNode(o.id, h), p.info("setNode", h), !o.class || !(o.class in i))
|
|
110
110
|
return;
|
|
111
111
|
const u = n + c, x = {
|
|
112
112
|
id: `edgeNote${u}`,
|
|
@@ -125,48 +125,48 @@ const Z = function(l, e, n, i) {
|
|
|
125
125
|
labelStyle: "",
|
|
126
126
|
curve: G(T.curve, q)
|
|
127
127
|
};
|
|
128
|
-
|
|
128
|
+
t.setEdge(o.id, o.class, x, u);
|
|
129
129
|
});
|
|
130
|
-
}, O = function(l,
|
|
130
|
+
}, O = function(l, t) {
|
|
131
131
|
const n = d().flowchart;
|
|
132
132
|
let i = 0;
|
|
133
|
-
l.forEach(function(
|
|
133
|
+
l.forEach(function(e) {
|
|
134
134
|
var r;
|
|
135
135
|
var c;
|
|
136
136
|
i++;
|
|
137
137
|
const s = {
|
|
138
138
|
//Set relationship style and line type
|
|
139
139
|
classes: "relation",
|
|
140
|
-
pattern:
|
|
141
|
-
id: `id_${
|
|
140
|
+
pattern: e.relation.lineType == 1 ? "dashed" : "solid",
|
|
141
|
+
id: `id_${e.id1}_${e.id2}_${i}`,
|
|
142
142
|
// Set link type for rendering
|
|
143
|
-
arrowhead:
|
|
143
|
+
arrowhead: e.type === "arrow_open" ? "none" : "normal",
|
|
144
144
|
//Set edge extra labels
|
|
145
|
-
startLabelRight:
|
|
146
|
-
endLabelLeft:
|
|
145
|
+
startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
|
|
146
|
+
endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
|
|
147
147
|
//Set relation arrow types
|
|
148
|
-
arrowTypeStart: R(
|
|
149
|
-
arrowTypeEnd: R(
|
|
148
|
+
arrowTypeStart: R(e.relation.type1),
|
|
149
|
+
arrowTypeEnd: R(e.relation.type2),
|
|
150
150
|
style: "fill:none",
|
|
151
151
|
labelStyle: "",
|
|
152
152
|
curve: G(n == null ? void 0 : n.curve, q)
|
|
153
153
|
};
|
|
154
|
-
if (p.info(s,
|
|
155
|
-
const o = B(
|
|
154
|
+
if (p.info(s, e), e.style !== void 0) {
|
|
155
|
+
const o = B(e.style);
|
|
156
156
|
s.style = o.style, s.labelStyle = o.labelStyle;
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
`),
|
|
158
|
+
e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((r = (c = d().flowchart) == null ? void 0 : c.htmlLabels) != null ? r : d().htmlLabels) ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(z.lineBreakRegex, `
|
|
159
|
+
`), e.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), t.setEdge(e.id1, e.id2, s, i);
|
|
160
160
|
});
|
|
161
|
-
},
|
|
161
|
+
}, ee = function(l) {
|
|
162
162
|
T = k(k({}, T), l);
|
|
163
|
-
},
|
|
163
|
+
}, te = function(l, t, n, i) {
|
|
164
164
|
return I(this, null, function* () {
|
|
165
|
-
var m, _, N,
|
|
166
|
-
p.info("Drawing class - ",
|
|
167
|
-
const
|
|
168
|
-
p.info("config:",
|
|
169
|
-
const s = (_ =
|
|
165
|
+
var m, _, N, C;
|
|
166
|
+
p.info("Drawing class - ", t);
|
|
167
|
+
const e = (m = d().flowchart) != null ? m : d().class, c = d().securityLevel;
|
|
168
|
+
p.info("config:", e);
|
|
169
|
+
const s = (_ = e == null ? void 0 : e.nodeSpacing) != null ? _ : 50, r = (N = e == null ? void 0 : e.rankSpacing) != null ? N : 50, o = new X({
|
|
170
170
|
multigraph: !0,
|
|
171
171
|
compound: !0
|
|
172
172
|
}).setGraph({
|
|
@@ -178,60 +178,60 @@ const Z = function(l, e, n, i) {
|
|
|
178
178
|
}).setDefaultEdgeLabel(function() {
|
|
179
179
|
return {};
|
|
180
180
|
}), a = i.db.getNamespaces(), f = i.db.getClasses(), y = i.db.getRelations(), v = i.db.getNotes();
|
|
181
|
-
p.info(y), Z(a, o,
|
|
181
|
+
p.info(y), Z(a, o, t, i), P(f, o, t, i), O(y, o), j(v, o, y.length + 1, f);
|
|
182
182
|
let b;
|
|
183
|
-
c === "sandbox" && (b = S("#i" +
|
|
184
|
-
const h = c === "sandbox" ? S(b.nodes()[0].contentDocument.body) : S("body"), u = h.select(`[id="${
|
|
183
|
+
c === "sandbox" && (b = S("#i" + t));
|
|
184
|
+
const h = c === "sandbox" ? S(b.nodes()[0].contentDocument.body) : S("body"), u = h.select(`[id="${t}"]`), x = h.select("#" + t + " g");
|
|
185
185
|
if (yield Y(
|
|
186
186
|
x,
|
|
187
187
|
o,
|
|
188
188
|
["aggregation", "extension", "composition", "dependency", "lollipop"],
|
|
189
189
|
"classDiagram",
|
|
190
|
-
|
|
191
|
-
), Q.insertTitle(u, "classTitleText", (
|
|
192
|
-
const
|
|
190
|
+
t
|
|
191
|
+
), Q.insertTitle(u, "classTitleText", (C = e == null ? void 0 : e.titleTopMargin) != null ? C : 5, i.db.getDiagramTitle()), U(o, u, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
192
|
+
const D = c === "sandbox" ? b.nodes()[0].contentDocument : document, F = D.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
|
|
193
193
|
for (const w of F) {
|
|
194
|
-
const
|
|
195
|
-
g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width",
|
|
194
|
+
const E = w.getBBox(), g = D.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
195
|
+
g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width", E.width), g.setAttribute("height", E.height), w.insertBefore(g, w.firstChild);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
};
|
|
200
200
|
function R(l) {
|
|
201
|
-
let
|
|
201
|
+
let t;
|
|
202
202
|
switch (l) {
|
|
203
203
|
case 0:
|
|
204
|
-
|
|
204
|
+
t = "aggregation";
|
|
205
205
|
break;
|
|
206
206
|
case 1:
|
|
207
|
-
|
|
207
|
+
t = "extension";
|
|
208
208
|
break;
|
|
209
209
|
case 2:
|
|
210
|
-
|
|
210
|
+
t = "composition";
|
|
211
211
|
break;
|
|
212
212
|
case 3:
|
|
213
|
-
|
|
213
|
+
t = "dependency";
|
|
214
214
|
break;
|
|
215
215
|
case 4:
|
|
216
|
-
|
|
216
|
+
t = "lollipop";
|
|
217
217
|
break;
|
|
218
218
|
default:
|
|
219
|
-
|
|
219
|
+
t = "none";
|
|
220
220
|
}
|
|
221
|
-
return
|
|
221
|
+
return t;
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
setConf:
|
|
225
|
-
draw:
|
|
226
|
-
},
|
|
223
|
+
const oe = {
|
|
224
|
+
setConf: ee,
|
|
225
|
+
draw: te
|
|
226
|
+
}, ue = {
|
|
227
227
|
parser: J,
|
|
228
228
|
db: M,
|
|
229
|
-
renderer:
|
|
229
|
+
renderer: oe,
|
|
230
230
|
styles: K,
|
|
231
231
|
init: (l) => {
|
|
232
232
|
l.class || (l.class = {}), l.class.arrowMarkerAbsolute = l.arrowMarkerAbsolute, M.clear();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
export {
|
|
236
|
-
|
|
236
|
+
ue as diagram
|
|
237
237
|
};
|