lowcoder-comps 0.0.27 → 0.0.29
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/{83f8a9bc.js → 2085da13.js} +1 -1
- package/250691b5.js +5 -0
- package/274f545c.js +881 -0
- package/{991b6314.js → 289305a1.js} +45 -43
- package/{6e6c38ae.js → 2eae45c2.js} +1 -1
- package/2ff7471d.js +9 -0
- package/{d16a79d9.js → 335b22a2.js} +12 -10
- package/{e30d5d4a.js → 38c826fe.js} +158 -147
- package/{ca35eaa7.js → 44011c1d.js} +286 -293
- package/4fc06812.js +64 -0
- package/{e7309c57.js → 56a787cf.js} +2 -2
- package/590941ff.js +86 -0
- package/{a607b479.js → 6341867f.js} +27 -27
- package/657fd065.js +8 -0
- package/{daee88f9.js → 78a5e50d.js} +133 -132
- package/820c3641.js +25 -0
- package/{70705fc3.js → 88b4e75a.js} +2 -1
- package/8d999722.js +1102 -0
- package/{65ab329e.js → 989caea2.js} +148 -145
- package/99b984d1.js +237 -0
- package/9e5f02d6.js +19104 -0
- package/a40faea7.js +11624 -0
- package/abac9104.js +1536 -0
- package/af2f19b3.js +819 -0
- package/{3544d11b.js → af5ee3de.js} +13 -12
- package/b24707c2.js +48428 -0
- package/b68f8b69.js +1276 -0
- package/ba68ba65.js +391 -0
- package/{796a2b34.js → bafb8599.js} +1 -1
- package/{0d26e631.js → bba60c35.js} +548 -548
- package/bd7c2a8e.js +1089 -0
- package/c71dadea.js +455 -0
- package/{8d8803ff.js → d05c1762.js} +25 -24
- package/{5edf1d55.js → d073ab24.js} +32557 -34230
- package/{11bb676b.js → d838cd10.js} +6 -5
- package/{cea82f05.js → dc36a6eb.js} +11 -11
- package/{e1a5f037.js → ed143450.js} +18 -18
- package/ee8ec8f2.js +2284 -0
- package/f6755210.js +1269 -0
- package/{560f788e.js → fba4c8e4.js} +18 -18
- package/index.js +2 -2
- package/package.json +11 -9
- package/31a2d08c.js +0 -365
- package/49315e81.js +0 -64
- package/55e01450.js +0 -46724
- package/63aaeeb8.js +0 -1055
- package/685b5f6c.js +0 -1235
- package/77072d20.js +0 -22
- package/919ae09a.js +0 -1000
- package/a0a687f6.js +0 -235
- package/a664ee52.js +0 -2192
- package/b8dbed32.js +0 -448
- package/d9708225.js +0 -86
- package/eca15e1d.js +0 -2396
- package/f3f6fcfc.js +0 -18798
- package/f45254b8.js +0 -786
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
var B = (e, n, t) => new Promise((
|
|
1
|
+
var B = (e, n, t) => new Promise((i, c) => {
|
|
2
2
|
var r = (l) => {
|
|
3
3
|
try {
|
|
4
4
|
a(t.next(l));
|
|
5
5
|
} catch (s) {
|
|
6
|
-
|
|
6
|
+
c(s);
|
|
7
7
|
}
|
|
8
8
|
}, o = (l) => {
|
|
9
9
|
try {
|
|
10
10
|
a(t.throw(l));
|
|
11
11
|
} catch (s) {
|
|
12
|
-
|
|
12
|
+
c(s);
|
|
13
13
|
}
|
|
14
|
-
}, a = (l) => l.done ?
|
|
14
|
+
}, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(r, o);
|
|
15
15
|
a((t = t.apply(e, n)).next());
|
|
16
16
|
});
|
|
17
|
-
import { p as Q, d as M, s as X, D as U, a as Z, S as F, b as I, c as tt } from "./
|
|
18
|
-
import { G as et } from "./
|
|
19
|
-
import { l as T, c as g, h as x,
|
|
20
|
-
import { r as nt } from "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
17
|
+
import { p as Q, d as M, s as X, D as U, a as Z, S as F, b as I, c as tt } from "./2085da13.js";
|
|
18
|
+
import { G as et } from "./274f545c.js";
|
|
19
|
+
import { l as T, c as g, h as x, A as ot, i as st, j as w } from "./d073ab24.js";
|
|
20
|
+
import { r as nt } from "./ba68ba65.js";
|
|
21
|
+
import "./abac9104.js";
|
|
22
|
+
import "./657fd065.js";
|
|
23
|
+
import "./8d999722.js";
|
|
24
|
+
import "./88b4e75a.js";
|
|
25
|
+
import "./2eae45c2.js";
|
|
24
26
|
import "./2ff2c7a6.js";
|
|
25
27
|
import "./256b619e.js";
|
|
26
|
-
const h = "rect", C = "rectWithTitle",
|
|
28
|
+
const h = "rect", C = "rectWithTitle", it = "start", ct = "end", rt = "divider", lt = "roundedWithTitle", at = "note", dt = "noteGroup", u = "statediagram", Et = "state", St = `${u}-${Et}`, V = "transition", Tt = "note", pt = "note-edge", _t = `${V} ${pt}`, ut = `${u}-${Tt}`, Dt = "cluster", bt = `${u}-${Dt}`, ft = "cluster-alt", At = `${u}-${ft}`, Y = "parent", W = "note", ht = "state", N = "----", yt = `${N}${W}`, H = `${N}${Y}`, m = "fill:none", z = "fill: #333", j = "c", q = "text", K = "normal";
|
|
27
29
|
let y = {}, S = 0;
|
|
28
30
|
const gt = function(e) {
|
|
29
31
|
const n = Object.keys(e);
|
|
@@ -35,15 +37,15 @@ const gt = function(e) {
|
|
|
35
37
|
function xt(e) {
|
|
36
38
|
return e == null ? "" : e.classes ? e.classes.join(" ") : "";
|
|
37
39
|
}
|
|
38
|
-
function R(e = "", n = 0, t = "",
|
|
39
|
-
const
|
|
40
|
-
return `${ht}-${e}${
|
|
40
|
+
function R(e = "", n = 0, t = "", i = N) {
|
|
41
|
+
const c = t !== null && t.length > 0 ? `${i}${t}` : "";
|
|
42
|
+
return `${ht}-${e}${c}-${n}`;
|
|
41
43
|
}
|
|
42
|
-
const A = (e, n, t,
|
|
43
|
-
const o = t.id, a = xt(
|
|
44
|
+
const A = (e, n, t, i, c, r) => {
|
|
45
|
+
const o = t.id, a = xt(i[o]);
|
|
44
46
|
if (o !== "root") {
|
|
45
47
|
let l = h;
|
|
46
|
-
t.start === !0 && (l =
|
|
48
|
+
t.start === !0 && (l = it), t.start === !1 && (l = ct), t.type !== U && (l = t.type), y[o] || (y[o] = {
|
|
47
49
|
id: o,
|
|
48
50
|
shape: l,
|
|
49
51
|
description: w.sanitizeText(o, g()),
|
|
@@ -78,7 +80,7 @@ const A = (e, n, t, c, i, r) => {
|
|
|
78
80
|
style: "",
|
|
79
81
|
// styles.style,
|
|
80
82
|
id: o + yt + "-" + S,
|
|
81
|
-
domId: R(o, S,
|
|
83
|
+
domId: R(o, S, W),
|
|
82
84
|
type: s.type,
|
|
83
85
|
padding: 15
|
|
84
86
|
//getConfig().flowchart.padding
|
|
@@ -102,10 +104,10 @@ const A = (e, n, t, c, i, r) => {
|
|
|
102
104
|
t.note.position === "left of" && (p = d.id, b = o), e.setEdge(p, b, {
|
|
103
105
|
arrowhead: "none",
|
|
104
106
|
arrowType: "",
|
|
105
|
-
style:
|
|
107
|
+
style: m,
|
|
106
108
|
labelStyle: "",
|
|
107
109
|
classes: _t,
|
|
108
|
-
arrowheadStyle:
|
|
110
|
+
arrowheadStyle: z,
|
|
109
111
|
labelpos: j,
|
|
110
112
|
labelType: q,
|
|
111
113
|
thickness: K
|
|
@@ -113,27 +115,27 @@ const A = (e, n, t, c, i, r) => {
|
|
|
113
115
|
} else
|
|
114
116
|
e.setNode(o, _);
|
|
115
117
|
}
|
|
116
|
-
n && n.id !== "root" && (T.trace("Setting node ", o, " to be child of its parent ", n.id), e.setParent(o, n.id)), t.doc && (T.trace("Adding nodes children "), Ct(e, t, t.doc,
|
|
117
|
-
}, Ct = (e, n, t,
|
|
118
|
+
n && n.id !== "root" && (T.trace("Setting node ", o, " to be child of its parent ", n.id), e.setParent(o, n.id)), t.doc && (T.trace("Adding nodes children "), Ct(e, t, t.doc, i, c, !r));
|
|
119
|
+
}, Ct = (e, n, t, i, c, r) => {
|
|
118
120
|
T.trace("items", t), t.forEach((o) => {
|
|
119
121
|
switch (o.stmt) {
|
|
120
122
|
case I:
|
|
121
|
-
A(e, n, o,
|
|
123
|
+
A(e, n, o, i, c, r);
|
|
122
124
|
break;
|
|
123
125
|
case U:
|
|
124
|
-
A(e, n, o,
|
|
126
|
+
A(e, n, o, i, c, r);
|
|
125
127
|
break;
|
|
126
128
|
case F:
|
|
127
129
|
{
|
|
128
|
-
A(e, n, o.state1,
|
|
130
|
+
A(e, n, o.state1, i, c, r), A(e, n, o.state2, i, c, r);
|
|
129
131
|
const a = {
|
|
130
132
|
id: "edge" + S,
|
|
131
133
|
arrowhead: "normal",
|
|
132
134
|
arrowTypeEnd: "arrow_barb",
|
|
133
|
-
style:
|
|
135
|
+
style: m,
|
|
134
136
|
labelStyle: "",
|
|
135
137
|
label: w.sanitizeText(o.description, g()),
|
|
136
|
-
arrowheadStyle:
|
|
138
|
+
arrowheadStyle: z,
|
|
137
139
|
labelpos: j,
|
|
138
140
|
labelType: q,
|
|
139
141
|
thickness: K,
|
|
@@ -147,21 +149,21 @@ const A = (e, n, t, c, i, r) => {
|
|
|
147
149
|
}, G = (e, n = tt) => {
|
|
148
150
|
let t = n;
|
|
149
151
|
if (e.doc)
|
|
150
|
-
for (let
|
|
151
|
-
const
|
|
152
|
-
|
|
152
|
+
for (let i = 0; i < e.doc.length; i++) {
|
|
153
|
+
const c = e.doc[i];
|
|
154
|
+
c.stmt === "dir" && (t = c.value);
|
|
153
155
|
}
|
|
154
156
|
return t;
|
|
155
|
-
}, Rt = function(e, n, t,
|
|
157
|
+
}, Rt = function(e, n, t, i) {
|
|
156
158
|
return B(this, null, function* () {
|
|
157
|
-
T.info("Drawing state diagram (v2)", n), y = {},
|
|
158
|
-
const { securityLevel:
|
|
159
|
-
T.info(
|
|
160
|
-
const l =
|
|
159
|
+
T.info("Drawing state diagram (v2)", n), y = {}, i.db.getDirection();
|
|
160
|
+
const { securityLevel: c, state: r } = g(), o = r.nodeSpacing || 50, a = r.rankSpacing || 50;
|
|
161
|
+
T.info(i.db.getRootDocV2()), i.db.extract(i.db.getRootDocV2()), T.info(i.db.getRootDocV2());
|
|
162
|
+
const l = i.db.getStates(), s = new et({
|
|
161
163
|
multigraph: !0,
|
|
162
164
|
compound: !0
|
|
163
165
|
}).setGraph({
|
|
164
|
-
rankdir: G(
|
|
166
|
+
rankdir: G(i.db.getRootDocV2()),
|
|
165
167
|
nodesep: o,
|
|
166
168
|
ranksep: a,
|
|
167
169
|
marginx: 8,
|
|
@@ -169,13 +171,13 @@ const A = (e, n, t, c, i, r) => {
|
|
|
169
171
|
}).setDefaultEdgeLabel(function() {
|
|
170
172
|
return {};
|
|
171
173
|
});
|
|
172
|
-
A(s, void 0,
|
|
174
|
+
A(s, void 0, i.db.getRootDocV2(), l, i.db, !0);
|
|
173
175
|
let _;
|
|
174
|
-
|
|
175
|
-
const d =
|
|
176
|
+
c === "sandbox" && (_ = x("#i" + n));
|
|
177
|
+
const d = c === "sandbox" ? x(_.nodes()[0].contentDocument.body) : x("body"), E = d.select(`[id="${n}"]`), D = d.select("#" + n + " g");
|
|
176
178
|
yield nt(D, s, ["barb"], u, n);
|
|
177
179
|
const p = 8;
|
|
178
|
-
ot.insertTitle(E, "statediagramTitleText", r.titleTopMargin,
|
|
180
|
+
ot.insertTitle(E, "statediagramTitleText", r.titleTopMargin, i.db.getDiagramTitle());
|
|
179
181
|
const b = E.node().getBBox(), L = b.width + p * 2, P = b.height + p * 2;
|
|
180
182
|
E.attr("class", u);
|
|
181
183
|
const O = E.node().getBBox();
|
|
@@ -192,7 +194,7 @@ const A = (e, n, t, c, i, r) => {
|
|
|
192
194
|
setConf: gt,
|
|
193
195
|
getClasses: $t,
|
|
194
196
|
draw: Rt
|
|
195
|
-
},
|
|
197
|
+
}, Yt = {
|
|
196
198
|
parser: Q,
|
|
197
199
|
db: M,
|
|
198
200
|
renderer: wt,
|
|
@@ -202,5 +204,5 @@ const A = (e, n, t, c, i, r) => {
|
|
|
202
204
|
}
|
|
203
205
|
};
|
|
204
206
|
export {
|
|
205
|
-
|
|
207
|
+
Yt as diagram
|
|
206
208
|
};
|
package/2ff7471d.js
ADDED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { c as v, l as y, h as B, i as W, F as $,
|
|
3
|
-
import { G as O
|
|
4
|
-
import { l as
|
|
1
|
+
import { p as A, d as S, s as G } from "./bd7c2a8e.js";
|
|
2
|
+
import { c as v, l as y, h as B, i as W, F as $, A as M, G as I } from "./d073ab24.js";
|
|
3
|
+
import { G as O } from "./274f545c.js";
|
|
4
|
+
import { l as P } from "./abac9104.js";
|
|
5
|
+
import { l as X } from "./2eae45c2.js";
|
|
5
6
|
import "./2ff2c7a6.js";
|
|
6
7
|
import "./256b619e.js";
|
|
7
8
|
let H = 0;
|
|
@@ -162,6 +163,7 @@ const E = 20, L = function(i) {
|
|
|
162
163
|
}
|
|
163
164
|
o.db.getRelations().forEach(function(e) {
|
|
164
165
|
y.info(
|
|
166
|
+
// cspell:ignore tjoho
|
|
165
167
|
"tjoho" + L(e.id1) + L(e.id2) + JSON.stringify(e)
|
|
166
168
|
), r.setEdge(
|
|
167
169
|
L(e.id1),
|
|
@@ -202,17 +204,17 @@ const E = 20, L = function(i) {
|
|
|
202
204
|
W(n, w, m, p.useMaxWidth);
|
|
203
205
|
const k = `${u.x - E} ${u.y - E} ${m} ${w}`;
|
|
204
206
|
y.debug(`viewBox ${k}`), n.attr("viewBox", k);
|
|
205
|
-
},
|
|
207
|
+
}, U = {
|
|
206
208
|
draw: F
|
|
207
|
-
},
|
|
208
|
-
parser:
|
|
209
|
+
}, tt = {
|
|
210
|
+
parser: A,
|
|
209
211
|
db: S,
|
|
210
|
-
renderer:
|
|
211
|
-
styles:
|
|
212
|
+
renderer: U,
|
|
213
|
+
styles: G,
|
|
212
214
|
init: (i) => {
|
|
213
215
|
i.class || (i.class = {}), i.class.arrowMarkerAbsolute = i.arrowMarkerAbsolute, S.clear();
|
|
214
216
|
}
|
|
215
217
|
};
|
|
216
218
|
export {
|
|
217
|
-
|
|
219
|
+
tt as diagram
|
|
218
220
|
};
|