lowcoder-comps 0.0.32 → 0.0.33

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 (43) hide show
  1. package/{c289b0aa.js → 00bb478a.js} +49 -49
  2. package/{4a860f5d.js → 02bef5a4.js} +58 -58
  3. package/{f8b68c1a.js → 057d2a44.js} +21 -21
  4. package/{d8c50a91.js → 0964fcc6.js} +5 -5
  5. package/{cc799554.js → 14220e98.js} +52 -52
  6. package/{24307cf2.js → 1c074fe4.js} +11 -11
  7. package/{ee801edf.js → 250a6954.js} +36 -36
  8. package/{4cc9caa5.js → 2cd27cf0.js} +2 -2
  9. package/{fcee2d3c.js → 2f064957.js} +5 -5
  10. package/{4a489df6.js → 30c4916b.js} +1 -1
  11. package/{e6388bfd.js → 36ec7270.js} +2 -2
  12. package/{c9bb75eb.js → 38c14832.js} +1 -1
  13. package/{debd9490.js → 3ae34bed.js} +11 -11
  14. package/{97059d88.js → 3e2939fa.js} +75 -75
  15. package/{4564a1bc.js → 3f5f874f.js} +28 -28
  16. package/{1e5cb9c2.js → 3fb86fb9.js} +18 -18
  17. package/{fd51bb2f.js → 415177f9.js} +2 -2
  18. package/{a40faea7.js → 47848c42.js} +317 -305
  19. package/4c6a0ece.js +162535 -0
  20. package/{d3700d97.js → 4db8e48b.js} +22 -22
  21. package/{e06dcfb0.js → 531065f1.js} +14 -14
  22. package/{6deaf0be.js → 5a398ea8.js} +29 -29
  23. package/{444e09f1.js → 5ab1614c.js} +18 -18
  24. package/{64d87c95.js → 65bbb6ae.js} +2 -2
  25. package/{a969f4ca.js → 777cd15c.js} +2057 -2057
  26. package/{df803461.js → 7dacfa82.js} +26 -26
  27. package/{a408f817.js → 800cf0d0.js} +18 -18
  28. package/{7a3f27e4.js → 93e9bd3a.js} +6 -6
  29. package/98622dfa.js +16582 -0
  30. package/{2b031be2.js → a2e74e62.js} +1 -1
  31. package/{c4d99b09.js → a61c3bd3.js} +1 -1
  32. package/{dce9fa3f.js → b8f48ff4.js} +4 -4
  33. package/{7ae6dd1c.js → bd0f5f65.js} +6 -6
  34. package/{aa82b740.js → bf4428f5.js} +56 -56
  35. package/{aa1becc7.js → cb1972f7.js} +9 -9
  36. package/{d622fb26.js → dfc10c94.js} +66 -66
  37. package/{794e64d5.js → ed2c9753.js} +13 -13
  38. package/{cb40fdd9.js → ef2833e6.js} +308 -314
  39. package/{de8c90a7.js → f9e72519.js} +30 -30
  40. package/{f7c6b13d.js → fe063d15.js} +7498 -7263
  41. package/index.js +2 -2
  42. package/package.json +27 -1
  43. package/98955949.js +0 -134435
@@ -1,12 +1,12 @@
1
- import { p as A, d as S, s as G } from "./e06dcfb0.js";
2
- import { c as v, l as y, h as B, i as W, F as $, A as M, G as I } from "./98955949.js";
3
- import { G as O } from "./6deaf0be.js";
4
- import { l as P } from "./64d87c95.js";
5
- import { l as X } from "./d8c50a91.js";
1
+ import { p as A, d as S, s as G } from "./531065f1.js";
2
+ import { e as v, l as y, j as B, k as I, I as W, C as M, J as $ } from "./4c6a0ece.js";
3
+ import { G as J } from "./5a398ea8.js";
4
+ import { l as O } from "./65bbb6ae.js";
5
+ import { l as P } from "./0964fcc6.js";
6
6
  import "./2ff2c7a6.js";
7
7
  import "./256b619e.js";
8
8
  let H = 0;
9
- const Y = function(i, a, t, o, p) {
9
+ const X = function(i, a, t, o, p) {
10
10
  const g = function(e) {
11
11
  switch (e) {
12
12
  case p.db.relationType.AGGREGATION:
@@ -22,11 +22,11 @@ const Y = function(i, a, t, o, p) {
22
22
  }
23
23
  };
24
24
  a.points = a.points.filter((e) => !Number.isNaN(e.y));
25
- const s = a.points, c = X().x(function(e) {
25
+ const s = a.points, c = P().x(function(e) {
26
26
  return e.x;
27
27
  }).y(function(e) {
28
28
  return e.y;
29
- }).curve($), n = i.append("path").attr("d", c(s)).attr("id", "edge" + H).attr("class", "relation");
29
+ }).curve(W), n = i.append("path").attr("d", c(s)).attr("id", "edge" + H).attr("class", "relation");
30
30
  let r = "";
31
31
  o.arrowMarkerAbsolute && (r = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, r = r.replace(/\(/g, "\\("), r = r.replace(/\)/g, "\\)")), t.relation.lineType == 1 && n.attr("class", "relation dashed-line"), t.relation.lineType == 10 && n.attr("class", "relation dotted-line"), t.relation.type1 !== "none" && n.attr(
32
32
  "marker-start",
@@ -37,9 +37,9 @@ const Y = function(i, a, t, o, p) {
37
37
  );
38
38
  let f, h;
39
39
  const x = a.points.length;
40
- let b = M.calcLabelPosition(a.points);
41
- f = b.x, h = b.y;
42
- let u, m, w, k;
40
+ let k = M.calcLabelPosition(a.points);
41
+ f = k.x, h = k.y;
42
+ let u, m, w, b;
43
43
  if (x % 2 !== 0 && x > 1) {
44
44
  let e = M.calcCardinalityPosition(
45
45
  t.relation.type1 !== "none",
@@ -50,7 +50,7 @@ const Y = function(i, a, t, o, p) {
50
50
  a.points,
51
51
  a.points[x - 1]
52
52
  );
53
- y.debug("cardinality_1_point " + JSON.stringify(e)), y.debug("cardinality_2_point " + JSON.stringify(d)), u = e.x, m = e.y, w = d.x, k = d.y;
53
+ y.debug("cardinality_1_point " + JSON.stringify(e)), y.debug("cardinality_2_point " + JSON.stringify(d)), u = e.x, m = e.y, w = d.x, b = d.y;
54
54
  }
55
55
  if (t.title !== void 0) {
56
56
  const e = i.append("g").attr("class", "classLabel"), d = e.append("text").attr("class", "label").attr("x", f).attr("y", h).attr("fill", "red").attr("text-anchor", "middle").text(t.title);
@@ -58,8 +58,8 @@ const Y = function(i, a, t, o, p) {
58
58
  const l = d.node().getBBox();
59
59
  e.insert("rect", ":first-child").attr("class", "box").attr("x", l.x - o.padding / 2).attr("y", l.y - o.padding / 2).attr("width", l.width + o.padding).attr("height", l.height + o.padding);
60
60
  }
61
- y.info("Rendering relation " + JSON.stringify(t)), t.relationTitle1 !== void 0 && t.relationTitle1 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", u).attr("y", m).attr("fill", "black").attr("font-size", "6").text(t.relationTitle1), t.relationTitle2 !== void 0 && t.relationTitle2 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", w).attr("y", k).attr("fill", "black").attr("font-size", "6").text(t.relationTitle2), H++;
62
- }, J = function(i, a, t, o) {
61
+ y.info("Rendering relation " + JSON.stringify(t)), t.relationTitle1 !== void 0 && t.relationTitle1 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", u).attr("y", m).attr("fill", "black").attr("font-size", "6").text(t.relationTitle1), t.relationTitle2 !== void 0 && t.relationTitle2 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", w).attr("y", b).attr("fill", "black").attr("font-size", "6").text(t.relationTitle2), H++;
62
+ }, Y = function(i, a, t, o) {
63
63
  y.debug("Rendering class ", a, t);
64
64
  const p = a.id, g = {
65
65
  id: p,
@@ -78,17 +78,17 @@ const Y = function(i, a, t, o, p) {
78
78
  const f = c.append("tspan").text(r).attr("class", "title");
79
79
  n || f.attr("dy", t.textHeight);
80
80
  const h = c.node().getBBox().height;
81
- let x, b, u;
81
+ let x, k, u;
82
82
  if (a.members.length > 0) {
83
83
  x = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin / 2).attr("y2", t.padding + h + t.dividerMargin / 2);
84
84
  const d = s.append("text").attr("x", t.padding).attr("y", h + t.dividerMargin + t.textHeight).attr("fill", "white").attr("class", "classText");
85
85
  n = !0, a.members.forEach(function(l) {
86
86
  _(d, l, n, t), n = !1;
87
- }), b = d.node().getBBox();
87
+ }), k = d.node().getBBox();
88
88
  }
89
89
  if (a.methods.length > 0) {
90
- u = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin + b.height).attr("y2", t.padding + h + t.dividerMargin + b.height);
91
- const d = s.append("text").attr("x", t.padding).attr("y", h + 2 * t.dividerMargin + b.height + t.textHeight).attr("fill", "white").attr("class", "classText");
90
+ u = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin + k.height).attr("y2", t.padding + h + t.dividerMargin + k.height);
91
+ const d = s.append("text").attr("x", t.padding).attr("y", h + 2 * t.dividerMargin + k.height + t.textHeight).attr("fill", "white").attr("class", "classText");
92
92
  n = !0, a.methods.forEach(function(l) {
93
93
  _(d, l, n, t), n = !1;
94
94
  });
@@ -102,7 +102,7 @@ const Y = function(i, a, t, o, p) {
102
102
  }), a.tooltip && c.insert("title").text(a.tooltip), x && x.attr("x2", e), u && u.attr("x2", e), g.width = e, g.height = m.height + t.padding + 0.5 * t.dividerMargin, g;
103
103
  }, C = function(i) {
104
104
  let a = i.id;
105
- return i.type && (a += "<" + I(i.type) + ">"), a;
105
+ return i.type && (a += "<" + $(i.type) + ">"), a;
106
106
  }, Z = function(i, a, t, o) {
107
107
  y.debug("Rendering note ", a, t);
108
108
  const p = a.id, g = {
@@ -129,8 +129,8 @@ const Y = function(i, a, t, o, p) {
129
129
  g !== "" && s.attr("style", a.cssStyle), t || s.attr("dy", o.textHeight);
130
130
  }, N = {
131
131
  getClassTitleString: C,
132
- drawClass: J,
133
- drawEdge: Y,
132
+ drawClass: Y,
133
+ drawEdge: X,
134
134
  drawNote: Z
135
135
  };
136
136
  let T = {};
@@ -148,7 +148,7 @@ const E = 20, L = function(i) {
148
148
  g === "sandbox" && (s = B("#i" + a));
149
149
  const c = g === "sandbox" ? B(s.nodes()[0].contentDocument.body) : B("body"), n = c.select(`[id='${a}']`);
150
150
  R(n);
151
- const r = new O({
151
+ const r = new J({
152
152
  multigraph: !0
153
153
  });
154
154
  r.setGraph({
@@ -192,7 +192,7 @@ const E = 20, L = function(i) {
192
192
  },
193
193
  "DEFAULT"
194
194
  );
195
- }), P(r), r.nodes().forEach(function(e) {
195
+ }), O(r), r.nodes().forEach(function(e) {
196
196
  e !== void 0 && r.node(e) !== void 0 && (y.debug("Node " + e + ": " + JSON.stringify(r.node(e))), c.select("#" + (o.db.lookUpDomId(e) || e)).attr(
197
197
  "transform",
198
198
  "translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
@@ -201,9 +201,9 @@ const E = 20, L = function(i) {
201
201
  e !== void 0 && r.edge(e) !== void 0 && (y.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(r.edge(e))), N.drawEdge(n, r.edge(e), r.edge(e).relation, p, o));
202
202
  });
203
203
  const u = n.node().getBBox(), m = u.width + E * 2, w = u.height + E * 2;
204
- W(n, w, m, p.useMaxWidth);
205
- const k = `${u.x - E} ${u.y - E} ${m} ${w}`;
206
- y.debug(`viewBox ${k}`), n.attr("viewBox", k);
204
+ I(n, w, m, p.useMaxWidth);
205
+ const b = `${u.x - E} ${u.y - E} ${m} ${w}`;
206
+ y.debug(`viewBox ${b}`), n.attr("viewBox", b);
207
207
  }, U = {
208
208
  draw: F
209
209
  }, tt = {
@@ -1,5 +1,5 @@
1
- import { ar as ft, E as gt, c as mt, l as S, h as q, t as xt, as as _t, at as bt, au as kt } from "./98955949.js";
2
- import { a as D } from "./4564a1bc.js";
1
+ import { as as ft, H as gt, e as mt, l as S, j as q, v as xt, at as _t, au as bt, av as kt } from "./4c6a0ece.js";
2
+ import { a as D } from "./3f5f874f.js";
3
3
  import "./256b619e.js";
4
4
  var K = function() {
5
5
  var n = function(g, i, r, c) {
@@ -64,7 +64,7 @@ var K = function() {
64
64
  }
65
65
  },
66
66
  parse: function(i) {
67
- var r = this, c = [0], d = [], u = [null], o = [], I = this.table, x = "", E = 0, O = 0, z = 2, P = 1, j = o.slice.call(arguments, 1), k = Object.create(this.lexer), $ = { yy: {} };
67
+ var r = this, c = [0], d = [], u = [null], o = [], I = this.table, x = "", E = 0, O = 0, z = 2, H = 1, j = o.slice.call(arguments, 1), k = Object.create(this.lexer), $ = { yy: {} };
68
68
  for (var R in this.yy)
69
69
  Object.prototype.hasOwnProperty.call(this.yy, R) && ($.yy[R] = this.yy[R]);
70
70
  k.setInput(i, $.yy), $.yy.lexer = k, $.yy.parser = this, typeof k.yylloc == "undefined" && (k.yylloc = {});
@@ -74,9 +74,9 @@ var K = function() {
74
74
  typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
75
75
  function w() {
76
76
  var L;
77
- return L = d.pop() || k.lex() || P, typeof L != "number" && (L instanceof Array && (d = L, L = d.pop()), L = r.symbols_[L] || L), L;
77
+ return L = d.pop() || k.lex() || H, typeof L != "number" && (L instanceof Array && (d = L, L = d.pop()), L = r.symbols_[L] || L), L;
78
78
  }
79
- for (var _, T, v, N, H = {}, V, M, Y, G; ; ) {
79
+ for (var _, T, v, N, P = {}, V, M, Y, G; ; ) {
80
80
  if (T = c[c.length - 1], this.defaultActions[T] ? v = this.defaultActions[T] : ((_ === null || typeof _ == "undefined") && (_ = w()), v = I[T] && I[T][_]), typeof v == "undefined" || !v.length || !v[0]) {
81
81
  var J = "";
82
82
  G = [];
@@ -84,7 +84,7 @@ var K = function() {
84
84
  this.terminals_[V] && V > z && G.push("'" + this.terminals_[V] + "'");
85
85
  k.showPosition ? J = "Parse error on line " + (E + 1) + `:
86
86
  ` + k.showPosition() + `
87
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "Parse error on line " + (E + 1) + ": Unexpected " + (_ == P ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(J, {
87
+ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "Parse error on line " + (E + 1) + ": Unexpected " + (_ == H ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(J, {
88
88
  text: k.match,
89
89
  token: this.terminals_[_] || _,
90
90
  line: k.yylineno,
@@ -99,15 +99,15 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
99
99
  c.push(_), u.push(k.yytext), o.push(k.yylloc), c.push(v[1]), _ = null, O = k.yyleng, x = k.yytext, E = k.yylineno, F = k.yylloc;
100
100
  break;
101
101
  case 2:
102
- if (M = this.productions_[v[1]][1], H.$ = u[u.length - M], H._$ = {
102
+ if (M = this.productions_[v[1]][1], P.$ = u[u.length - M], P._$ = {
103
103
  first_line: o[o.length - (M || 1)].first_line,
104
104
  last_line: o[o.length - 1].last_line,
105
105
  first_column: o[o.length - (M || 1)].first_column,
106
106
  last_column: o[o.length - 1].last_column
107
- }, A && (H._$.range = [
107
+ }, A && (P._$.range = [
108
108
  o[o.length - (M || 1)].range[0],
109
109
  o[o.length - 1].range[1]
110
- ]), N = this.performAction.apply(H, [
110
+ ]), N = this.performAction.apply(P, [
111
111
  x,
112
112
  O,
113
113
  E,
@@ -117,7 +117,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
117
117
  o
118
118
  ].concat(j)), typeof N != "undefined")
119
119
  return N;
120
- M && (c = c.slice(0, -1 * M * 2), u = u.slice(0, -1 * M), o = o.slice(0, -1 * M)), c.push(this.productions_[v[1]][0]), u.push(H.$), o.push(H._$), Y = I[c[c.length - 2]][c[c.length - 1]], c.push(Y);
120
+ M && (c = c.slice(0, -1 * M * 2), u = u.slice(0, -1 * M), o = o.slice(0, -1 * M)), c.push(this.productions_[v[1]][0]), u.push(P.$), o.push(P._$), Y = I[c[c.length - 2]][c[c.length - 1]], c.push(Y);
121
121
  break;
122
122
  case 3:
123
123
  return !0;
@@ -538,7 +538,7 @@ const Mt = function(n, t, e) {
538
538
  return function(s) {
539
539
  return s.textPlacement === "fo" ? e : s.textPlacement === "old" ? n : t;
540
540
  };
541
- }(), Pt = function(n) {
541
+ }(), Ht = function(n) {
542
542
  n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
543
543
  };
544
544
  function yt(n, t) {
@@ -548,7 +548,7 @@ function yt(n, t) {
548
548
  s = a[a.length - 1 - b], h.push(s), f.text(h.join(" ").trim()), (f.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), f.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], f = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", l + "em").text(s));
549
549
  });
550
550
  }
551
- const Ht = function(n, t, e, a) {
551
+ const Pt = function(n, t, e, a) {
552
552
  const s = e % Et - 1, h = n.append("g");
553
553
  t.section = s, h.attr(
554
554
  "class",
@@ -574,8 +574,8 @@ const Ht = function(n, t, e, a) {
574
574
  drawBackgroundRect: Lt,
575
575
  getTextObj: At,
576
576
  getNoteRect: X,
577
- initGraphics: Pt,
578
- drawNode: Ht,
577
+ initGraphics: Ht,
578
+ drawNode: Pt,
579
579
  getVirtualNodeHeight: Ct
580
580
  }, Rt = function(n, t, e, a) {
581
581
  var $, R, F;
@@ -605,7 +605,7 @@ const Ht = function(n, t, e, a) {
605
605
  }, _ = C.getVirtualNodeHeight(m, w, l);
606
606
  S.debug("sectionHeight before draw", _), c = Math.max(c, _ + 20);
607
607
  });
608
- let z = 0, P = 0;
608
+ let z = 0, H = 0;
609
609
  S.debug("tasks.length", g.length);
610
610
  for (const [A, w] of g.entries()) {
611
611
  const _ = {
@@ -629,7 +629,7 @@ const Ht = function(n, t, e, a) {
629
629
  };
630
630
  v += C.getVirtualNodeHeight(m, V, l);
631
631
  }
632
- P = Math.max(P, v);
632
+ H = Math.max(H, v);
633
633
  }
634
634
  S.debug("maxSectionHeight before draw", c), S.debug("maxTaskHeight before draw", d), r && r.length > 0 ? r.forEach((A) => {
635
635
  const w = g.filter((N) => N.section === A), _ = {
@@ -651,7 +651,7 @@ const Ht = function(n, t, e, a) {
651
651
  d,
652
652
  l,
653
653
  z,
654
- P,
654
+ H,
655
655
  c,
656
656
  !1
657
657
  ), I += 200 * Math.max(w.length, 1), x = o, E++;
@@ -664,7 +664,7 @@ const Ht = function(n, t, e, a) {
664
664
  d,
665
665
  l,
666
666
  z,
667
- P,
667
+ H,
668
668
  c,
669
669
  !0
670
670
  ));
@@ -14,12 +14,12 @@ var X = (n, t, e) => new Promise((r, i) => {
14
14
  }, d = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, u);
15
15
  d((e = e.apply(n, t)).next());
16
16
  });
17
- import { i as N, G as H } from "./6deaf0be.js";
18
- import { m as J, l as V } from "./64d87c95.js";
19
- import { c as U } from "./4a489df6.js";
20
- import { i as W, u as _, s as q, a as z, b as K, g as T, p as $, c as Q, d as Y, e as Z, f as I, h as L, j as D } from "./c289b0aa.js";
21
- import { l as s, c as O, p as B, h as R } from "./98955949.js";
22
- import { a as tt } from "./2b031be2.js";
17
+ import { i as N, G as H } from "./5a398ea8.js";
18
+ import { m as J, l as V } from "./65bbb6ae.js";
19
+ import { c as U } from "./30c4916b.js";
20
+ import { i as W, u as _, s as q, a as z, b as K, g as T, p as $, c as Q, d as Y, e as Z, f as I, h as L, j as D } from "./00bb478a.js";
21
+ import { l as s, e as O, r as B, j as R } from "./4c6a0ece.js";
22
+ import { a as tt } from "./a2e74e62.js";
23
23
  function m(n) {
24
24
  var t = {
25
25
  options: {