lowcoder-comps 0.0.21 → 0.0.23
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/060799f2.js +960 -0
- package/1012bc4d.js +804 -0
- package/{b38c288b.js → 13094807.js} +10 -12
- package/{54511d22.js → 17eec513.js} +73 -76
- package/3581323b.js +1055 -0
- package/{f576ac90.js → 39041099.js} +97 -109
- package/43aa9013.js +218 -0
- package/4835e2da.js +2501 -0
- package/4ac12b61.js +915 -0
- package/52f00270.js +932 -0
- package/53ac8761.js +1235 -0
- package/53c41f32.js +1116 -0
- package/6b0ac243.js +64 -0
- package/6b615aa6.js +365 -0
- package/{9f3281b9.js → 6ddb6f97.js} +48410 -35551
- package/6fa8963b.js +2396 -0
- package/{ba44e76c.js → 7958ae6b.js} +4257 -4221
- package/{7c62ef63.js → 7b5e16e2.js} +1 -1
- package/83aee898.js +825 -0
- package/{31b1cdd2.js → 877dfc2d.js} +29 -30
- package/92e85b65.js +65 -0
- package/9f3e59b9.js +796 -0
- package/{a6e7fb9e.js → 9fadb810.js} +64 -71
- package/a8fa2c8f.js +1284 -0
- package/{8219433d.js → af05a28a.js} +7038 -6859
- package/{450c6bd6.js → ba9c56f6.js} +44 -44
- package/{2768fdea.js → bd004c35.js} +89 -97
- package/{fb09e069.js → bfe4f54a.js} +598 -622
- package/d0baa7b9.js +86 -0
- package/dcf6bbc3.js +768 -0
- package/e21892cc.js +2966 -0
- package/e52f46f3.js +2192 -0
- package/{3bd738e9.js → eaef549d.js} +58 -64
- package/fc7a026c.js +502 -0
- package/fcffa471.js +1000 -0
- package/index.js +2 -2
- package/package.json +7 -8
- package/04ea1009.js +0 -985
- package/0a1968f4.js +0 -832
- package/3087113d.js +0 -1032
- package/39f71758.js +0 -849
- package/4d1cf087.js +0 -2679
- package/59cbb8ee.js +0 -2456
- package/62c916e0.js +0 -86
- package/74645131.js +0 -1246
- package/75095038.js +0 -159
- package/86a4a706.js +0 -1118
- package/88c87bf8.js +0 -943
- package/8d8e98a7.js +0 -365
- package/9200edf7.js +0 -70
- package/acdad8f2.js +0 -7
- package/cbee3d44.js +0 -607
- package/cc0f1351.js +0 -793
- package/e614be0d.js +0 -91
- package/f40ee59a.js +0 -940
- package/fc5c5300.js +0 -2103
- package/fe636892.js +0 -823
- package/fea654db.js +0 -2827
|
@@ -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 "./7c62ef63.js";
|
|
28
|
+
import { p as W, d as $, s as J } from "./3581323b.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 "./6ddb6f97.js";
|
|
30
|
+
import { G as X } from "./6fa8963b.js";
|
|
31
|
+
import { r as Y } from "./6b615aa6.js";
|
|
32
|
+
import "./fcffa471.js";
|
|
33
|
+
import "./e21892cc.js";
|
|
34
|
+
import "./7b5e16e2.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
|
};
|
package/92e85b65.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { i as a } from "./f9637058.js";
|
|
2
|
+
class o extends Map {
|
|
3
|
+
constructor(n, t = g) {
|
|
4
|
+
if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: t } }), n != null)
|
|
5
|
+
for (const [r, s] of n)
|
|
6
|
+
this.set(r, s);
|
|
7
|
+
}
|
|
8
|
+
get(n) {
|
|
9
|
+
return super.get(c(this, n));
|
|
10
|
+
}
|
|
11
|
+
has(n) {
|
|
12
|
+
return super.has(c(this, n));
|
|
13
|
+
}
|
|
14
|
+
set(n, t) {
|
|
15
|
+
return super.set(l(this, n), t);
|
|
16
|
+
}
|
|
17
|
+
delete(n) {
|
|
18
|
+
return super.delete(p(this, n));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function c({ _intern: e, _key: n }, t) {
|
|
22
|
+
const r = n(t);
|
|
23
|
+
return e.has(r) ? e.get(r) : t;
|
|
24
|
+
}
|
|
25
|
+
function l({ _intern: e, _key: n }, t) {
|
|
26
|
+
const r = n(t);
|
|
27
|
+
return e.has(r) ? e.get(r) : (e.set(r, t), t);
|
|
28
|
+
}
|
|
29
|
+
function p({ _intern: e, _key: n }, t) {
|
|
30
|
+
const r = n(t);
|
|
31
|
+
return e.has(r) && (t = e.get(r), e.delete(r)), t;
|
|
32
|
+
}
|
|
33
|
+
function g(e) {
|
|
34
|
+
return e !== null && typeof e == "object" ? e.valueOf() : e;
|
|
35
|
+
}
|
|
36
|
+
const f = Symbol("implicit");
|
|
37
|
+
function h() {
|
|
38
|
+
var e = new o(), n = [], t = [], r = f;
|
|
39
|
+
function s(u) {
|
|
40
|
+
let i = e.get(u);
|
|
41
|
+
if (i === void 0) {
|
|
42
|
+
if (r !== f)
|
|
43
|
+
return r;
|
|
44
|
+
e.set(u, i = n.push(u) - 1);
|
|
45
|
+
}
|
|
46
|
+
return t[i % t.length];
|
|
47
|
+
}
|
|
48
|
+
return s.domain = function(u) {
|
|
49
|
+
if (!arguments.length)
|
|
50
|
+
return n.slice();
|
|
51
|
+
n = [], e = new o();
|
|
52
|
+
for (const i of u)
|
|
53
|
+
e.has(i) || e.set(i, n.push(i) - 1);
|
|
54
|
+
return s;
|
|
55
|
+
}, s.range = function(u) {
|
|
56
|
+
return arguments.length ? (t = Array.from(u), s) : t.slice();
|
|
57
|
+
}, s.unknown = function(u) {
|
|
58
|
+
return arguments.length ? (r = u, s) : r;
|
|
59
|
+
}, s.copy = function() {
|
|
60
|
+
return h(n, t).unknown(r);
|
|
61
|
+
}, a.apply(s, arguments), s;
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
h as o
|
|
65
|
+
};
|