lowcoder-comps 0.0.21 → 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.
Files changed (58) hide show
  1. package/029c585a.js +825 -0
  2. package/0f49842f.js +915 -0
  3. package/14c95def.js +2396 -0
  4. package/{8219433d.js → 14de54b2.js} +7120 -6939
  5. package/17b0984b.js +1116 -0
  6. package/{31b1cdd2.js → 1a4b39ab.js} +29 -30
  7. package/1e35aee7.js +932 -0
  8. package/{54511d22.js → 1f97d569.js} +73 -76
  9. package/3120eee5.js +1235 -0
  10. package/313e94fb.js +796 -0
  11. package/{b38c288b.js → 41a4677f.js} +10 -12
  12. package/{2768fdea.js → 48a69d01.js} +89 -97
  13. package/4a8006fe.js +2501 -0
  14. package/{a6e7fb9e.js → 585231df.js} +64 -71
  15. package/5e96f5d8.js +64 -0
  16. package/5f9be850.js +1055 -0
  17. package/{f576ac90.js → 6e0c66a6.js} +97 -109
  18. package/76d315c1.js +2192 -0
  19. package/{7c62ef63.js → 867cdd47.js} +1 -1
  20. package/{3bd738e9.js → 8a65542f.js} +58 -64
  21. package/913e1a65.js +804 -0
  22. package/92e85b65.js +65 -0
  23. package/97298a99.js +2966 -0
  24. package/{450c6bd6.js → a396e61e.js} +44 -44
  25. package/a6d42292.js +1284 -0
  26. package/afd2e4d5.js +86 -0
  27. package/be5f3226.js +768 -0
  28. package/{9f3281b9.js → bf75928a.js} +30053 -30574
  29. package/{ba44e76c.js → bfd01456.js} +4257 -4221
  30. package/c239ec69.js +1000 -0
  31. package/e731f493.js +502 -0
  32. package/ef3524ce.js +960 -0
  33. package/f5b4a4bc.js +365 -0
  34. package/{fb09e069.js → fa29410e.js} +598 -622
  35. package/fbc7bdd4.js +218 -0
  36. package/index.js +2 -2
  37. package/package.json +2 -2
  38. package/04ea1009.js +0 -985
  39. package/0a1968f4.js +0 -832
  40. package/3087113d.js +0 -1032
  41. package/39f71758.js +0 -849
  42. package/4d1cf087.js +0 -2679
  43. package/59cbb8ee.js +0 -2456
  44. package/62c916e0.js +0 -86
  45. package/74645131.js +0 -1246
  46. package/75095038.js +0 -159
  47. package/86a4a706.js +0 -1118
  48. package/88c87bf8.js +0 -943
  49. package/8d8e98a7.js +0 -365
  50. package/9200edf7.js +0 -70
  51. package/acdad8f2.js +0 -7
  52. package/cbee3d44.js +0 -607
  53. package/cc0f1351.js +0 -793
  54. package/e614be0d.js +0 -91
  55. package/f40ee59a.js +0 -940
  56. package/fc5c5300.js +0 -2103
  57. package/fe636892.js +0 -823
  58. package/fea654db.js +0 -2827
@@ -1,17 +1,17 @@
1
- import { l as N, c as M, h as O } from "./9f3281b9.js";
2
- var $ = function() {
3
- var c = function(h, t, e, n) {
4
- for (e = e || {}, n = h.length; n--; e[h[n]] = t)
1
+ import { l as Y, T as D, i as M } from "./bf75928a.js";
2
+ var O = function() {
3
+ var a = function(u, t, e, n) {
4
+ for (e = e || {}, n = u.length; n--; e[u[n]] = t)
5
5
  ;
6
6
  return e;
7
- }, f = [6, 9, 10], d = {
7
+ }, f = [6, 9, 10], m = {
8
8
  trace: function() {
9
9
  },
10
10
  yy: {},
11
11
  symbols_: { error: 2, start: 3, info: 4, document: 5, EOF: 6, line: 7, statement: 8, NL: 9, showInfo: 10, $accept: 0, $end: 1 },
12
12
  terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
13
13
  productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
14
- performAction: function(t, e, n, s, r, i, k) {
14
+ performAction: function(t, e, n, s, r, i, d) {
15
15
  switch (i.length - 1, r) {
16
16
  case 1:
17
17
  return s;
@@ -22,7 +22,7 @@ var $ = function() {
22
22
  break;
23
23
  }
24
24
  },
25
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, c(f, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, c(f, [2, 3]), c(f, [2, 4]), c(f, [2, 5]), c(f, [2, 6])],
25
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, a(f, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, a(f, [2, 3]), a(f, [2, 4]), a(f, [2, 5]), a(f, [2, 6])],
26
26
  defaultActions: { 4: [2, 1] },
27
27
  parseError: function(t, e) {
28
28
  if (e.recoverable)
@@ -33,60 +33,60 @@ var $ = function() {
33
33
  }
34
34
  },
35
35
  parse: function(t) {
36
- var e = this, n = [0], s = [], r = [null], i = [], k = this.table, L = "", b = 0, T = 0, z = 2, F = 1, D = i.slice.call(arguments, 1), o = Object.create(this.lexer), g = { yy: {} };
36
+ var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, T = 0, N = 2, L = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
37
37
  for (var E in this.yy)
38
- Object.prototype.hasOwnProperty.call(this.yy, E) && (g.yy[E] = this.yy[E]);
39
- o.setInput(t, g.yy), g.yy.lexer = o, g.yy.parser = this, typeof o.yylloc == "undefined" && (o.yylloc = {});
40
- var w = o.yylloc;
41
- i.push(w);
42
- var U = o.options && o.options.ranges;
43
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
44
- function Y() {
45
- var u;
46
- return u = s.pop() || o.lex() || F, typeof u != "number" && (u instanceof Array && (s = u, u = s.pop()), u = e.symbols_[u] || u), u;
38
+ Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
39
+ o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc == "undefined" && (o.yylloc = {});
40
+ var I = o.yylloc;
41
+ i.push(I);
42
+ var z = o.options && o.options.ranges;
43
+ typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
44
+ function U() {
45
+ var y;
46
+ return y = s.pop() || o.lex() || L, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
47
47
  }
48
- for (var l, _, a, I, m = {}, v, y, j, S; ; ) {
49
- if (_ = n[n.length - 1], this.defaultActions[_] ? a = this.defaultActions[_] : ((l === null || typeof l == "undefined") && (l = Y()), a = k[_] && k[_][l]), typeof a == "undefined" || !a.length || !a[0]) {
48
+ for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
49
+ if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l == "undefined") && (l = U()), h = d[g] && d[g][l]), typeof h == "undefined" || !h.length || !h[0]) {
50
50
  var A = "";
51
51
  S = [];
52
- for (v in k[_])
53
- this.terminals_[v] && v > z && S.push("'" + this.terminals_[v] + "'");
54
- o.showPosition ? A = "Parse error on line " + (b + 1) + `:
52
+ for (b in d[g])
53
+ this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
54
+ o.showPosition ? A = "Parse error on line " + (v + 1) + `:
55
55
  ` + o.showPosition() + `
56
- Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (b + 1) + ": Unexpected " + (l == F ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
56
+ Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l == L ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
57
57
  text: o.match,
58
58
  token: this.terminals_[l] || l,
59
59
  line: o.yylineno,
60
- loc: w,
60
+ loc: I,
61
61
  expected: S
62
62
  });
63
63
  }
64
- if (a[0] instanceof Array && a.length > 1)
65
- throw new Error("Parse Error: multiple actions possible at state: " + _ + ", token: " + l);
66
- switch (a[0]) {
64
+ if (h[0] instanceof Array && h.length > 1)
65
+ throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
66
+ switch (h[0]) {
67
67
  case 1:
68
- n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(a[1]), l = null, T = o.yyleng, L = o.yytext, b = o.yylineno, w = o.yylloc;
68
+ n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null, T = o.yyleng, P = o.yytext, v = o.yylineno, I = o.yylloc;
69
69
  break;
70
70
  case 2:
71
- if (y = this.productions_[a[1]][1], m.$ = r[r.length - y], m._$ = {
72
- first_line: i[i.length - (y || 1)].first_line,
71
+ if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
72
+ first_line: i[i.length - (c || 1)].first_line,
73
73
  last_line: i[i.length - 1].last_line,
74
- first_column: i[i.length - (y || 1)].first_column,
74
+ first_column: i[i.length - (c || 1)].first_column,
75
75
  last_column: i[i.length - 1].last_column
76
- }, U && (m._$.range = [
77
- i[i.length - (y || 1)].range[0],
76
+ }, z && (_._$.range = [
77
+ i[i.length - (c || 1)].range[0],
78
78
  i[i.length - 1].range[1]
79
- ]), I = this.performAction.apply(m, [
80
- L,
79
+ ]), w = this.performAction.apply(_, [
80
+ P,
81
81
  T,
82
- b,
83
- g.yy,
84
- a[1],
82
+ v,
83
+ p.yy,
84
+ h[1],
85
85
  r,
86
86
  i
87
- ].concat(D)), typeof I != "undefined")
88
- return I;
89
- y && (n = n.slice(0, -1 * y * 2), r = r.slice(0, -1 * y), i = i.slice(0, -1 * y)), n.push(this.productions_[a[1]][0]), r.push(m.$), i.push(m._$), j = k[n[n.length - 2]][n[n.length - 1]], n.push(j);
87
+ ].concat(R)), typeof w != "undefined")
88
+ return w;
89
+ c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
90
90
  break;
91
91
  case 3:
92
92
  return !0;
@@ -94,8 +94,8 @@ Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "
94
94
  }
95
95
  return !0;
96
96
  }
97
- }, x = function() {
98
- var h = {
97
+ }, k = function() {
98
+ var u = {
99
99
  EOF: 1,
100
100
  parseError: function(e, n) {
101
101
  if (this.yy.parser)
@@ -283,42 +283,35 @@ Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "
283
283
  rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
284
284
  conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 } }
285
285
  };
286
- return h;
286
+ return u;
287
287
  }();
288
- d.lexer = x;
289
- function p() {
288
+ m.lexer = k;
289
+ function x() {
290
290
  this.yy = {};
291
291
  }
292
- return p.prototype = d, d.Parser = p, new p();
292
+ return x.prototype = m, m.Parser = x, new x();
293
293
  }();
294
- $.parser = $;
295
- const B = $, R = {
294
+ O.parser = O;
295
+ const B = O, j = {
296
296
  info: !1
297
297
  };
298
- let P = R.info;
299
- const C = (c) => {
300
- P = c;
301
- }, V = () => P, X = () => {
302
- P = R.info;
303
- }, q = {
304
- clear: X,
305
- setInfo: C,
306
- getInfo: V
307
- }, G = (c, f, d) => {
308
- try {
309
- N.debug(`rendering info diagram
310
- ` + c);
311
- const { securityLevel: x } = M();
312
- let p, h;
313
- x === "sandbox" && (p = O("#i" + f), h = p.nodes()[0].contentDocument);
314
- const e = (p !== void 0 && h !== void 0 && h !== null ? O(h) : O("body")).select("#" + f);
315
- e.attr("height", 100), e.attr("width", 400), e.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", "32px").style("text-anchor", "middle").text("v " + d);
316
- } catch (x) {
317
- N.error("error while rendering info diagram", x);
318
- }
298
+ let $ = j.info;
299
+ const V = (a) => {
300
+ $ = a;
301
+ }, X = () => $, q = () => {
302
+ $ = j.info;
303
+ }, C = {
304
+ clear: q,
305
+ setInfo: V,
306
+ getInfo: X
307
+ }, G = (a, f, m) => {
308
+ Y.debug(`rendering info diagram
309
+ ` + a);
310
+ const k = D(f);
311
+ M(k, 100, 400, !0), k.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${m}`);
319
312
  }, H = { draw: G }, K = {
320
313
  parser: B,
321
- db: q,
314
+ db: C,
322
315
  renderer: H
323
316
  };
324
317
  export {
package/5e96f5d8.js ADDED
@@ -0,0 +1,64 @@
1
+ import { aO as o, m as i } from "./bf75928a.js";
2
+ const c = (s, t) => {
3
+ const r = s.append("rect");
4
+ if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.rx !== void 0 && r.attr("rx", t.rx), t.ry !== void 0 && r.attr("ry", t.ry), t.attrs !== void 0)
5
+ for (const e in t.attrs)
6
+ r.attr(e, t.attrs[e]);
7
+ return t.class !== void 0 && r.attr("class", t.class), r;
8
+ }, x = (s, t) => {
9
+ const r = {
10
+ x: t.startx,
11
+ y: t.starty,
12
+ width: t.stopx - t.startx,
13
+ height: t.stopy - t.starty,
14
+ fill: t.fill,
15
+ stroke: t.stroke,
16
+ class: "rect"
17
+ };
18
+ c(s, r).lower();
19
+ }, d = (s, t) => {
20
+ const r = t.text.replace(o, " "), e = s.append("text");
21
+ e.attr("x", t.x), e.attr("y", t.y), e.attr("class", "legend"), e.style("text-anchor", t.anchor), t.class !== void 0 && e.attr("class", t.class);
22
+ const n = e.append("tspan");
23
+ return n.attr("x", t.x + t.textMargin * 2), n.text(r), e;
24
+ }, h = (s, t, r, e) => {
25
+ const n = s.append("image");
26
+ n.attr("x", t), n.attr("y", r);
27
+ const a = i.sanitizeUrl(e);
28
+ n.attr("xlink:href", a);
29
+ }, y = (s, t, r, e) => {
30
+ const n = s.append("use");
31
+ n.attr("x", t), n.attr("y", r);
32
+ const a = i.sanitizeUrl(e);
33
+ n.attr("xlink:href", `#${a}`);
34
+ }, g = () => ({
35
+ x: 0,
36
+ y: 0,
37
+ width: 100,
38
+ height: 100,
39
+ fill: "#EDF2AE",
40
+ stroke: "#666",
41
+ anchor: "start",
42
+ rx: 0,
43
+ ry: 0
44
+ }), p = () => ({
45
+ x: 0,
46
+ y: 0,
47
+ width: 100,
48
+ height: 100,
49
+ "text-anchor": "start",
50
+ style: "#666",
51
+ textMargin: 0,
52
+ rx: 0,
53
+ ry: 0,
54
+ tspan: !0
55
+ });
56
+ export {
57
+ x as a,
58
+ y as b,
59
+ h as c,
60
+ c as d,
61
+ p as e,
62
+ d as f,
63
+ g
64
+ };