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.
Files changed (56) hide show
  1. package/{83f8a9bc.js → 2085da13.js} +1 -1
  2. package/250691b5.js +5 -0
  3. package/274f545c.js +881 -0
  4. package/{991b6314.js → 289305a1.js} +45 -43
  5. package/{6e6c38ae.js → 2eae45c2.js} +1 -1
  6. package/2ff7471d.js +9 -0
  7. package/{d16a79d9.js → 335b22a2.js} +12 -10
  8. package/{e30d5d4a.js → 38c826fe.js} +158 -147
  9. package/{ca35eaa7.js → 44011c1d.js} +286 -293
  10. package/4fc06812.js +64 -0
  11. package/{e7309c57.js → 56a787cf.js} +2 -2
  12. package/590941ff.js +86 -0
  13. package/{a607b479.js → 6341867f.js} +27 -27
  14. package/657fd065.js +8 -0
  15. package/{daee88f9.js → 78a5e50d.js} +133 -132
  16. package/820c3641.js +25 -0
  17. package/{70705fc3.js → 88b4e75a.js} +2 -1
  18. package/8d999722.js +1102 -0
  19. package/{65ab329e.js → 989caea2.js} +148 -145
  20. package/99b984d1.js +237 -0
  21. package/9e5f02d6.js +19104 -0
  22. package/a40faea7.js +11624 -0
  23. package/abac9104.js +1536 -0
  24. package/af2f19b3.js +819 -0
  25. package/{3544d11b.js → af5ee3de.js} +13 -12
  26. package/b24707c2.js +48428 -0
  27. package/b68f8b69.js +1276 -0
  28. package/ba68ba65.js +391 -0
  29. package/{796a2b34.js → bafb8599.js} +1 -1
  30. package/{0d26e631.js → bba60c35.js} +548 -548
  31. package/bd7c2a8e.js +1089 -0
  32. package/c71dadea.js +455 -0
  33. package/{8d8803ff.js → d05c1762.js} +25 -24
  34. package/{5edf1d55.js → d073ab24.js} +32557 -34230
  35. package/{11bb676b.js → d838cd10.js} +6 -5
  36. package/{cea82f05.js → dc36a6eb.js} +11 -11
  37. package/{e1a5f037.js → ed143450.js} +18 -18
  38. package/ee8ec8f2.js +2284 -0
  39. package/f6755210.js +1269 -0
  40. package/{560f788e.js → fba4c8e4.js} +18 -18
  41. package/index.js +2 -2
  42. package/package.json +11 -9
  43. package/31a2d08c.js +0 -365
  44. package/49315e81.js +0 -64
  45. package/55e01450.js +0 -46724
  46. package/63aaeeb8.js +0 -1055
  47. package/685b5f6c.js +0 -1235
  48. package/77072d20.js +0 -22
  49. package/919ae09a.js +0 -1000
  50. package/a0a687f6.js +0 -235
  51. package/a664ee52.js +0 -2192
  52. package/b8dbed32.js +0 -448
  53. package/d9708225.js +0 -86
  54. package/eca15e1d.js +0 -2396
  55. package/f3f6fcfc.js +0 -18798
  56. package/f45254b8.js +0 -786
@@ -1,29 +1,31 @@
1
- var B = (e, n, t) => new Promise((c, i) => {
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
- i(s);
6
+ c(s);
7
7
  }
8
8
  }, o = (l) => {
9
9
  try {
10
10
  a(t.throw(l));
11
11
  } catch (s) {
12
- i(s);
12
+ c(s);
13
13
  }
14
- }, a = (l) => l.done ? c(l.value) : Promise.resolve(l.value).then(r, o);
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 "./83f8a9bc.js";
18
- import { G as et } from "./eca15e1d.js";
19
- import { l as T, c as g, h as x, z as ot, i as st, j as w } from "./5edf1d55.js";
20
- import { r as nt } from "./31a2d08c.js";
21
- import "./919ae09a.js";
22
- import "./70705fc3.js";
23
- import "./6e6c38ae.js";
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", ct = "start", it = "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", z = "note", ht = "state", N = "----", yt = `${N}${z}`, H = `${N}${Y}`, W = "fill:none", m = "fill: #333", j = "c", q = "text", K = "normal";
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 = "", c = N) {
39
- const i = t !== null && t.length > 0 ? `${c}${t}` : "";
40
- return `${ht}-${e}${i}-${n}`;
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, c, i, r) => {
43
- const o = t.id, a = xt(c[o]);
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 = ct), t.start === !1 && (l = it), t.type !== U && (l = t.type), y[o] || (y[o] = {
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, z),
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: W,
107
+ style: m,
106
108
  labelStyle: "",
107
109
  classes: _t,
108
- arrowheadStyle: m,
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, c, i, !r));
117
- }, Ct = (e, n, t, c, i, r) => {
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, c, i, r);
123
+ A(e, n, o, i, c, r);
122
124
  break;
123
125
  case U:
124
- A(e, n, o, c, i, r);
126
+ A(e, n, o, i, c, r);
125
127
  break;
126
128
  case F:
127
129
  {
128
- A(e, n, o.state1, c, i, r), A(e, n, o.state2, c, i, r);
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: W,
135
+ style: m,
134
136
  labelStyle: "",
135
137
  label: w.sanitizeText(o.description, g()),
136
- arrowheadStyle: m,
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 c = 0; c < e.doc.length; c++) {
151
- const i = e.doc[c];
152
- i.stmt === "dir" && (t = i.value);
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, c) {
157
+ }, Rt = function(e, n, t, i) {
156
158
  return B(this, null, function* () {
157
- T.info("Drawing state diagram (v2)", n), y = {}, c.db.getDirection();
158
- const { securityLevel: i, state: r } = g(), o = r.nodeSpacing || 50, a = r.rankSpacing || 50;
159
- T.info(c.db.getRootDocV2()), c.db.extract(c.db.getRootDocV2()), T.info(c.db.getRootDocV2());
160
- const l = c.db.getStates(), s = new et({
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(c.db.getRootDocV2()),
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, c.db.getRootDocV2(), l, c.db, !0);
174
+ A(s, void 0, i.db.getRootDocV2(), l, i.db, !0);
173
175
  let _;
174
- i === "sandbox" && (_ = x("#i" + n));
175
- const d = i === "sandbox" ? x(_.nodes()[0].contentDocument.body) : x("body"), E = d.select(`[id="${n}"]`), D = d.select("#" + n + " g");
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, c.db.getDiagramTitle());
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
- }, Ut = {
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
- Ut as diagram
207
+ Yt as diagram
206
208
  };
@@ -1,6 +1,6 @@
1
1
  import { a as h } from "./2ff2c7a6.js";
2
2
  import { w as d, c as o } from "./256b619e.js";
3
- import { n as v } from "./5edf1d55.js";
3
+ import { n as v } from "./d073ab24.js";
4
4
  function w(t) {
5
5
  return t[0];
6
6
  }
package/2ff7471d.js ADDED
@@ -0,0 +1,9 @@
1
+ function o(e) {
2
+ for (var c = e.length / 6 | 0, n = new Array(c), a = 0; a < c; )
3
+ n[a] = "#" + e.slice(a * 6, ++a * 6);
4
+ return n;
5
+ }
6
+ const r = o("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
7
+ export {
8
+ r as s
9
+ };
@@ -1,7 +1,8 @@
1
- import { p as G, d as S, s as A } from "./63aaeeb8.js";
2
- import { c as v, l as y, h as B, i as W, F as $, z as M, G as I } from "./5edf1d55.js";
3
- import { G as O, l as P } from "./eca15e1d.js";
4
- import { l as X } from "./6e6c38ae.js";
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
- }, z = {
207
+ }, U = {
206
208
  draw: F
207
- }, j = {
208
- parser: G,
209
+ }, tt = {
210
+ parser: A,
209
211
  db: S,
210
- renderer: z,
211
- styles: A,
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
- j as diagram
219
+ tt as diagram
218
220
  };