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.
Files changed (58) hide show
  1. package/060799f2.js +960 -0
  2. package/1012bc4d.js +804 -0
  3. package/{b38c288b.js → 13094807.js} +10 -12
  4. package/{54511d22.js → 17eec513.js} +73 -76
  5. package/3581323b.js +1055 -0
  6. package/{f576ac90.js → 39041099.js} +97 -109
  7. package/43aa9013.js +218 -0
  8. package/4835e2da.js +2501 -0
  9. package/4ac12b61.js +915 -0
  10. package/52f00270.js +932 -0
  11. package/53ac8761.js +1235 -0
  12. package/53c41f32.js +1116 -0
  13. package/6b0ac243.js +64 -0
  14. package/6b615aa6.js +365 -0
  15. package/{9f3281b9.js → 6ddb6f97.js} +48410 -35551
  16. package/6fa8963b.js +2396 -0
  17. package/{ba44e76c.js → 7958ae6b.js} +4257 -4221
  18. package/{7c62ef63.js → 7b5e16e2.js} +1 -1
  19. package/83aee898.js +825 -0
  20. package/{31b1cdd2.js → 877dfc2d.js} +29 -30
  21. package/92e85b65.js +65 -0
  22. package/9f3e59b9.js +796 -0
  23. package/{a6e7fb9e.js → 9fadb810.js} +64 -71
  24. package/a8fa2c8f.js +1284 -0
  25. package/{8219433d.js → af05a28a.js} +7038 -6859
  26. package/{450c6bd6.js → ba9c56f6.js} +44 -44
  27. package/{2768fdea.js → bd004c35.js} +89 -97
  28. package/{fb09e069.js → bfe4f54a.js} +598 -622
  29. package/d0baa7b9.js +86 -0
  30. package/dcf6bbc3.js +768 -0
  31. package/e21892cc.js +2966 -0
  32. package/e52f46f3.js +2192 -0
  33. package/{3bd738e9.js → eaef549d.js} +58 -64
  34. package/fc7a026c.js +502 -0
  35. package/fcffa471.js +1000 -0
  36. package/index.js +2 -2
  37. package/package.json +7 -8
  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
package/e614be0d.js DELETED
@@ -1,91 +0,0 @@
1
- import { p as N, d as M, s as W } from "./3087113d.js";
2
- import { c as S, l as d, h as u, i as H } from "./9f3281b9.js";
3
- import { G as X, l as Y } from "./4d1cf087.js";
4
- import { s as l } from "./75095038.js";
5
- import "./7c62ef63.js";
6
- import "./2ff2c7a6.js";
7
- import "./256b619e.js";
8
- let h = {};
9
- const g = 20, p = function(e) {
10
- const s = Object.entries(h).find((k) => k[1].label === e);
11
- if (s)
12
- return s[0];
13
- }, Z = function(e) {
14
- e.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
15
- }, D = function(e, s, k, a) {
16
- const c = S().class;
17
- h = {}, d.info("Rendering diagram " + e);
18
- const L = S().securityLevel;
19
- let y;
20
- L === "sandbox" && (y = u("#i" + s));
21
- const x = L === "sandbox" ? u(y.nodes()[0].contentDocument.body) : u("body"), n = x.select(`[id='${s}']`);
22
- Z(n);
23
- const r = new X({
24
- multigraph: !0
25
- });
26
- r.setGraph({
27
- isMultiGraph: !0
28
- }), r.setDefaultEdgeLabel(function() {
29
- return {};
30
- });
31
- const m = a.db.getClasses(), $ = Object.keys(m);
32
- for (const t of $) {
33
- const o = m[t], i = l.drawClass(n, o, c, a);
34
- h[i.id] = i, r.setNode(i.id, i), d.info("Org height: " + i.height);
35
- }
36
- a.db.getRelations().forEach(function(t) {
37
- d.info(
38
- "tjoho" + p(t.id1) + p(t.id2) + JSON.stringify(t)
39
- ), r.setEdge(
40
- p(t.id1),
41
- p(t.id2),
42
- {
43
- relation: t
44
- },
45
- t.title || "DEFAULT"
46
- );
47
- }), a.db.getNotes().forEach(function(t) {
48
- d.debug(`Adding note: ${JSON.stringify(t)}`);
49
- const o = l.drawNote(n, t, c, a);
50
- h[o.id] = o, r.setNode(o.id, o), t.class && t.class in m && r.setEdge(
51
- t.id,
52
- p(t.class),
53
- {
54
- relation: {
55
- id1: t.id,
56
- id2: t.class,
57
- relation: {
58
- type1: "none",
59
- type2: "none",
60
- lineType: 10
61
- }
62
- }
63
- },
64
- "DEFAULT"
65
- );
66
- }), Y(r), r.nodes().forEach(function(t) {
67
- t !== void 0 && r.node(t) !== void 0 && (d.debug("Node " + t + ": " + JSON.stringify(r.node(t))), x.select("#" + (a.db.lookUpDomId(t) || t)).attr(
68
- "transform",
69
- "translate(" + (r.node(t).x - r.node(t).width / 2) + "," + (r.node(t).y - r.node(t).height / 2) + " )"
70
- ));
71
- }), r.edges().forEach(function(t) {
72
- t !== void 0 && r.edge(t) !== void 0 && (d.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(r.edge(t))), l.drawEdge(n, r.edge(t), r.edge(t).relation, c, a));
73
- });
74
- const f = n.node().getBBox(), E = f.width + g * 2, b = f.height + g * 2;
75
- H(n, b, E, c.useMaxWidth);
76
- const w = `${f.x - g} ${f.y - g} ${E} ${b}`;
77
- d.debug(`viewBox ${w}`), n.attr("viewBox", w);
78
- }, B = {
79
- draw: D
80
- }, R = {
81
- parser: N,
82
- db: M,
83
- renderer: B,
84
- styles: W,
85
- init: (e) => {
86
- e.class || (e.class = {}), e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute, M.clear();
87
- }
88
- };
89
- export {
90
- R as diagram
91
- };