lowcoder-comps 0.0.20 → 0.0.22
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/029c585a.js +825 -0
- package/0f49842f.js +915 -0
- package/14c95def.js +2396 -0
- package/{5a7c40d7.js → 14de54b2.js} +7120 -6939
- package/17b0984b.js +1116 -0
- package/{a1f987b7.js → 1a4b39ab.js} +29 -30
- package/1e35aee7.js +932 -0
- package/{804e952b.js → 1f97d569.js} +73 -76
- package/3120eee5.js +1235 -0
- package/313e94fb.js +796 -0
- package/{384b70d4.js → 41a4677f.js} +10 -12
- package/{e1466a22.js → 48a69d01.js} +89 -97
- package/4a8006fe.js +2501 -0
- package/{a06ced05.js → 585231df.js} +64 -71
- package/5e96f5d8.js +64 -0
- package/5f9be850.js +1055 -0
- package/{3196b84f.js → 6e0c66a6.js} +97 -109
- package/76d315c1.js +2192 -0
- package/{31c6e136.js → 867cdd47.js} +1 -1
- package/{0d5d7030.js → 8a65542f.js} +58 -64
- package/913e1a65.js +804 -0
- package/92e85b65.js +65 -0
- package/97298a99.js +2966 -0
- package/{5fd0f607.js → a396e61e.js} +44 -44
- package/a6d42292.js +1284 -0
- package/afd2e4d5.js +86 -0
- package/be5f3226.js +768 -0
- package/{4791bdd6.js → bf75928a.js} +30142 -30663
- package/{011ccb4a.js → bfd01456.js} +4257 -4221
- package/c239ec69.js +1000 -0
- package/e731f493.js +502 -0
- package/ef3524ce.js +960 -0
- package/f5b4a4bc.js +365 -0
- package/{8d714103.js → fa29410e.js} +598 -622
- package/fbc7bdd4.js +218 -0
- package/index.js +2 -2
- package/package.json +2 -2
- package/01102044.js +0 -940
- package/0e8dfd52.js +0 -793
- package/0f25771b.js +0 -1118
- package/2470e1d8.js +0 -91
- package/32432dc3.js +0 -86
- package/36552e14.js +0 -849
- package/3ad35722.js +0 -365
- package/3f4db197.js +0 -943
- package/71827e37.js +0 -1032
- package/7a200c6a.js +0 -607
- package/872f2918.js +0 -7
- package/93b98f3e.js +0 -832
- package/a42a2ba9.js +0 -2103
- package/af0489f3.js +0 -2456
- package/b56f953d.js +0 -985
- package/b89c6a6a.js +0 -159
- package/bc7030d3.js +0 -70
- package/c739ba3e.js +0 -2679
- package/d306d59c.js +0 -2827
- package/d8adcd1e.js +0 -823
- package/ef845d7f.js +0 -1246
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var F = Object.defineProperty;
|
|
2
2
|
var A = Object.getOwnPropertySymbols;
|
|
3
3
|
var H = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var I = (l, t, n) => t in l ? F(l, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[t] = n, k = (l, t) => {
|
|
5
5
|
for (var n in t || (t = {}))
|
|
6
|
-
H.call(t, n) &&
|
|
6
|
+
H.call(t, n) && I(l, n, t[n]);
|
|
7
7
|
if (A)
|
|
8
8
|
for (var n of A(t))
|
|
9
|
-
V.call(t, n) &&
|
|
9
|
+
V.call(t, n) && I(l, n, t[n]);
|
|
10
10
|
return l;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var M = (l, t, n) => new Promise((i, e) => {
|
|
13
13
|
var c = (o) => {
|
|
14
14
|
try {
|
|
15
15
|
r(n.next(o));
|
|
@@ -25,14 +25,13 @@ var I = (l, t, n) => new Promise((i, e) => {
|
|
|
25
25
|
}, r = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(c, s);
|
|
26
26
|
r((n = n.apply(l, t)).next());
|
|
27
27
|
});
|
|
28
|
-
import { p as W, d as
|
|
29
|
-
import { l as p, c as d, h as S,
|
|
30
|
-
import { G as X } from "./
|
|
31
|
-
import { r as Y } from "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./31c6e136.js";
|
|
28
|
+
import { p as W, d as $, s as J } from "./5f9be850.js";
|
|
29
|
+
import { l as p, c as d, h as S, z as K, r as Q, q as B, n as G, o as U, j as z } from "./bf75928a.js";
|
|
30
|
+
import { G as X } from "./14c95def.js";
|
|
31
|
+
import { r as Y } from "./f5b4a4bc.js";
|
|
32
|
+
import "./c239ec69.js";
|
|
33
|
+
import "./97298a99.js";
|
|
34
|
+
import "./867cdd47.js";
|
|
36
35
|
import "./2ff2c7a6.js";
|
|
37
36
|
import "./256b619e.js";
|
|
38
37
|
const L = (l) => z.sanitizeText(l, d());
|
|
@@ -57,14 +56,14 @@ const Z = function(l, t, n, i) {
|
|
|
57
56
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
58
57
|
padding: (y = (s = d().flowchart) == null ? void 0 : s.padding) != null ? y : (r = d().class) == null ? void 0 : r.padding
|
|
59
58
|
};
|
|
60
|
-
t.setNode(o.id, f),
|
|
59
|
+
t.setNode(o.id, f), q(o.classes, t, n, i, o.id), p.info("setNode", f);
|
|
61
60
|
});
|
|
62
|
-
},
|
|
61
|
+
}, q = function(l, t, n, i, e) {
|
|
63
62
|
const c = Object.keys(l);
|
|
64
63
|
p.info("keys:", c), p.info(l), c.filter((s) => l[s].parent == e).forEach(function(s) {
|
|
65
|
-
var
|
|
64
|
+
var g, h;
|
|
66
65
|
var r, o;
|
|
67
|
-
const a = l[s], f = a.cssClasses.join(" "), y = { labelStyle: "", style: "" }, v = (
|
|
66
|
+
const a = l[s], f = a.cssClasses.join(" "), y = { labelStyle: "", style: "" }, v = (g = a.label) != null ? g : a.id, b = 0, m = "class_box", u = {
|
|
68
67
|
labelStyle: y.labelStyle,
|
|
69
68
|
shape: m,
|
|
70
69
|
labelText: L(v),
|
|
@@ -107,7 +106,7 @@ const Z = function(l, t, n, i) {
|
|
|
107
106
|
};
|
|
108
107
|
if (t.setNode(o.id, m), p.info("setNode", m), !o.class || !(o.class in i))
|
|
109
108
|
return;
|
|
110
|
-
const u = n + c,
|
|
109
|
+
const u = n + c, g = {
|
|
111
110
|
id: `edgeNote${u}`,
|
|
112
111
|
//Set relationship style and line type
|
|
113
112
|
classes: "relation",
|
|
@@ -124,7 +123,7 @@ const Z = function(l, t, n, i) {
|
|
|
124
123
|
labelStyle: "",
|
|
125
124
|
curve: B(T.curve, G)
|
|
126
125
|
};
|
|
127
|
-
t.setEdge(o.id, o.class,
|
|
126
|
+
t.setEdge(o.id, o.class, g, u);
|
|
128
127
|
});
|
|
129
128
|
}, O = function(l, t) {
|
|
130
129
|
const n = d().flowchart;
|
|
@@ -160,7 +159,7 @@ const Z = function(l, t, n, i) {
|
|
|
160
159
|
}, ee = function(l) {
|
|
161
160
|
T = k(k({}, T), l);
|
|
162
161
|
}, te = function(l, t, n, i) {
|
|
163
|
-
return
|
|
162
|
+
return M(this, null, function* () {
|
|
164
163
|
var h, N, D, E;
|
|
165
164
|
p.info("Drawing class - ", t);
|
|
166
165
|
const e = (h = d().flowchart) != null ? h : d().class, c = d().securityLevel;
|
|
@@ -177,21 +176,21 @@ const Z = function(l, t, n, i) {
|
|
|
177
176
|
}).setDefaultEdgeLabel(function() {
|
|
178
177
|
return {};
|
|
179
178
|
}), a = i.db.getNamespaces(), f = i.db.getClasses(), y = i.db.getRelations(), v = i.db.getNotes();
|
|
180
|
-
p.info(y), Z(a, o, t, i),
|
|
179
|
+
p.info(y), Z(a, o, t, i), q(f, o, t, i), O(y, o), j(v, o, y.length + 1, f);
|
|
181
180
|
let b;
|
|
182
181
|
c === "sandbox" && (b = S("#i" + t));
|
|
183
|
-
const m = c === "sandbox" ? S(b.nodes()[0].contentDocument.body) : S("body"), u = m.select(`[id="${t}"]`),
|
|
182
|
+
const m = c === "sandbox" ? S(b.nodes()[0].contentDocument.body) : S("body"), u = m.select(`[id="${t}"]`), g = m.select("#" + t + " g");
|
|
184
183
|
if (yield Y(
|
|
185
|
-
|
|
184
|
+
g,
|
|
186
185
|
o,
|
|
187
186
|
["aggregation", "extension", "composition", "dependency", "lollipop"],
|
|
188
187
|
"classDiagram",
|
|
189
188
|
t
|
|
190
189
|
), K.insertTitle(u, "classTitleText", (E = e == null ? void 0 : e.titleTopMargin) != null ? E : 5, i.db.getDiagramTitle()), Q(o, u, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
191
|
-
const _ = c === "sandbox" ? b.nodes()[0].contentDocument : document,
|
|
192
|
-
for (const w of
|
|
193
|
-
const C = w.getBBox(),
|
|
194
|
-
|
|
190
|
+
const _ = c === "sandbox" ? b.nodes()[0].contentDocument : document, P = _.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
|
|
191
|
+
for (const w of P) {
|
|
192
|
+
const C = w.getBBox(), x = _.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
193
|
+
x.setAttribute("rx", 0), x.setAttribute("ry", 0), x.setAttribute("width", C.width), x.setAttribute("height", C.height), w.insertBefore(x, w.firstChild);
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
});
|
|
@@ -222,15 +221,15 @@ function R(l) {
|
|
|
222
221
|
const oe = {
|
|
223
222
|
setConf: ee,
|
|
224
223
|
draw: te
|
|
225
|
-
},
|
|
224
|
+
}, fe = {
|
|
226
225
|
parser: W,
|
|
227
|
-
db:
|
|
226
|
+
db: $,
|
|
228
227
|
renderer: oe,
|
|
229
228
|
styles: J,
|
|
230
229
|
init: (l) => {
|
|
231
|
-
l.class || (l.class = {}), l.class.arrowMarkerAbsolute = l.arrowMarkerAbsolute,
|
|
230
|
+
l.class || (l.class = {}), l.class.arrowMarkerAbsolute = l.arrowMarkerAbsolute, $.clear();
|
|
232
231
|
}
|
|
233
232
|
};
|
|
234
233
|
export {
|
|
235
|
-
|
|
234
|
+
fe as diagram
|
|
236
235
|
};
|