lowcoder-comps 2.4.13 → 2.4.15

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 (51) hide show
  1. package/{0fa873f8.js → 0bb0c92e.js} +4 -4
  2. package/{1d0578cc.js → 0cc36377.js} +919 -969
  3. package/{4ee1107f.js → 0fa86771.js} +411 -451
  4. package/{7ceb1a86.js → 19a2ee87.js} +1067 -1085
  5. package/{62a4e802.js → 1b41afb7.js} +6 -6
  6. package/{140d1965.js → 1e5b4466.js} +1 -1
  7. package/21ce624b.js +433 -0
  8. package/247d363c.js +797 -0
  9. package/{66d40f47.js → 2dc10e5c.js} +96 -99
  10. package/{48262065.js → 3a91cb5c.js} +8 -8
  11. package/{bfff0c9e.js → 3ebe8123.js} +26 -27
  12. package/{e60eb1d6.js → 3f2bde45.js} +1 -1
  13. package/{08ce8965.js → 4046c39a.js} +247 -258
  14. package/{256b619e.js → 428ebac9.js} +14 -15
  15. package/{f85b9955.js → 4b8936b0.js} +68 -69
  16. package/{722d14f3.js → 4d48e6df.js} +6 -6
  17. package/{93e77b54.js → 558e8ee5.js} +4 -4
  18. package/{d2b89014.js → 56f6e990.js} +92 -92
  19. package/{6c5168e9.js → 5a31cef7.js} +2 -2
  20. package/{7873457c.js → 5d41cf38.js} +6 -6
  21. package/{5d259708.js → 5fd9a898.js} +4 -5
  22. package/{2c7a98c7.js → 63a771ab.js} +8 -8
  23. package/6a32f1c1.js +206 -0
  24. package/{e7717e30.js → 7035666f.js} +7 -7
  25. package/{c840f94c.js → 74ef17ae.js} +140 -141
  26. package/{eeeac330.js → 7cc252e4.js} +65540 -59868
  27. package/81d6ce63.js +817 -0
  28. package/{c8211b18.js → 832e744b.js} +1 -1
  29. package/{81a0d6f1.js → 8718dc59.js} +12 -12
  30. package/{7a22ada0.js → 88953f96.js} +18 -18
  31. package/a8d4a50e.js +373 -0
  32. package/aa88392e.js +190 -0
  33. package/b0862b2f.js +1083 -0
  34. package/{62c4dc6e.js → c1b710aa.js} +5 -5
  35. package/{4cf9b6b3.js → d72b57c8.js} +12713 -12735
  36. package/{629dfdca.js → e441921a.js} +4 -4
  37. package/{47848c42.js → e5b014a9.js} +5 -5
  38. package/{b7fefb34.js → eb3bf879.js} +2 -2
  39. package/{febae45b.js → eb5cf40c.js} +2 -2
  40. package/{ddee0e99.js → edc74d11.js} +3 -3
  41. package/f0f41787.js +1264 -0
  42. package/index.js +2 -2
  43. package/package.json +1 -1
  44. package/1de1a3c9.js +0 -1102
  45. package/2510669f.js +0 -237
  46. package/68ee7280.js +0 -1276
  47. package/89baa2e6.js +0 -391
  48. package/9dc6adcd.js +0 -819
  49. package/ab55adad.js +0 -818
  50. package/c459c043.js +0 -208
  51. package/e47dc9ca.js +0 -455
package/2510669f.js DELETED
@@ -1,237 +0,0 @@
1
- var H = Object.defineProperty;
2
- var A = Object.getOwnPropertySymbols;
3
- var V = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
4
- var $ = (l, t, n) => t in l ? H(l, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[t] = n, k = (l, t) => {
5
- for (var n in t || (t = {}))
6
- V.call(t, n) && $(l, n, t[n]);
7
- if (A)
8
- for (var n of A(t))
9
- W.call(t, n) && $(l, n, t[n]);
10
- return l;
11
- };
12
- var I = (l, t, n) => new Promise((i, e) => {
13
- var c = (o) => {
14
- try {
15
- r(n.next(o));
16
- } catch (a) {
17
- e(a);
18
- }
19
- }, s = (o) => {
20
- try {
21
- r(n.throw(o));
22
- } catch (a) {
23
- e(a);
24
- }
25
- }, r = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(c, s);
26
- r((n = n.apply(l, t)).next());
27
- });
28
- import { p as J, d as M, s as K } from "./629dfdca.js";
29
- import { l as p, e as d, j as S, C as Q, v as U, q as B, u as G, p as q, m as z } from "./eeeac330.js";
30
- import { G as X } from "./b7fefb34.js";
31
- import { r as Y } from "./89baa2e6.js";
32
- import "./febae45b.js";
33
- import "./c8211b18.js";
34
- import "./1de1a3c9.js";
35
- import "./5d259708.js";
36
- import "./6c5168e9.js";
37
- import "./2ff2c7a6.js";
38
- import "./256b619e.js";
39
- const L = (l) => z.sanitizeText(l, d());
40
- let T = {
41
- dividerMargin: 10,
42
- padding: 5,
43
- textHeight: 10,
44
- curve: void 0
45
- };
46
- const Z = function(l, t, n, i) {
47
- const e = Object.keys(l);
48
- p.info("keys:", e), p.info(l), e.forEach(function(c) {
49
- var y;
50
- var s, r;
51
- const o = l[c], f = {
52
- shape: "rect",
53
- id: o.id,
54
- domId: o.domId,
55
- labelText: L(o.id),
56
- labelStyle: "",
57
- style: "fill: none; stroke: black",
58
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
59
- padding: (y = (s = d().flowchart) == null ? void 0 : s.padding) != null ? y : (r = d().class) == null ? void 0 : r.padding
60
- };
61
- t.setNode(o.id, f), P(o.classes, t, n, i, o.id), p.info("setNode", f);
62
- });
63
- }, P = function(l, t, n, i, e) {
64
- const c = Object.keys(l);
65
- p.info("keys:", c), p.info(l), c.filter((s) => l[s].parent == e).forEach(function(s) {
66
- var x, m;
67
- var r, o;
68
- const a = l[s], f = a.cssClasses.join(" "), y = B(a.styles), v = (x = a.label) != null ? x : a.id, b = 0, h = "class_box", u = {
69
- labelStyle: y.labelStyle,
70
- shape: h,
71
- labelText: L(v),
72
- classData: a,
73
- rx: b,
74
- ry: b,
75
- class: f,
76
- style: y.style,
77
- id: a.id,
78
- domId: a.domId,
79
- tooltip: i.db.getTooltip(a.id, e) || "",
80
- haveCallback: a.haveCallback,
81
- link: a.link,
82
- width: a.type === "group" ? 500 : void 0,
83
- type: a.type,
84
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
85
- padding: (m = (r = d().flowchart) == null ? void 0 : r.padding) != null ? m : (o = d().class) == null ? void 0 : o.padding
86
- };
87
- t.setNode(a.id, u), e && t.setParent(a.id, e), p.info("setNode", u);
88
- });
89
- }, j = function(l, t, n, i) {
90
- p.info(l), l.forEach(function(e, c) {
91
- var m;
92
- var s, r;
93
- const o = e, a = "", f = { labelStyle: "", style: "" }, y = o.text, v = 0, b = "note", h = {
94
- labelStyle: f.labelStyle,
95
- shape: b,
96
- labelText: L(y),
97
- noteData: o,
98
- rx: v,
99
- ry: v,
100
- class: a,
101
- style: f.style,
102
- id: o.id,
103
- domId: o.id,
104
- tooltip: "",
105
- type: "note",
106
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
107
- padding: (m = (s = d().flowchart) == null ? void 0 : s.padding) != null ? m : (r = d().class) == null ? void 0 : r.padding
108
- };
109
- if (t.setNode(o.id, h), p.info("setNode", h), !o.class || !(o.class in i))
110
- return;
111
- const u = n + c, x = {
112
- id: `edgeNote${u}`,
113
- //Set relationship style and line type
114
- classes: "relation",
115
- pattern: "dotted",
116
- // Set link type for rendering
117
- arrowhead: "none",
118
- //Set edge extra labels
119
- startLabelRight: "",
120
- endLabelLeft: "",
121
- //Set relation arrow types
122
- arrowTypeStart: "none",
123
- arrowTypeEnd: "none",
124
- style: "fill:none",
125
- labelStyle: "",
126
- curve: G(T.curve, q)
127
- };
128
- t.setEdge(o.id, o.class, x, u);
129
- });
130
- }, O = function(l, t) {
131
- const n = d().flowchart;
132
- let i = 0;
133
- l.forEach(function(e) {
134
- var r;
135
- var c;
136
- i++;
137
- const s = {
138
- //Set relationship style and line type
139
- classes: "relation",
140
- pattern: e.relation.lineType == 1 ? "dashed" : "solid",
141
- id: `id_${e.id1}_${e.id2}_${i}`,
142
- // Set link type for rendering
143
- arrowhead: e.type === "arrow_open" ? "none" : "normal",
144
- //Set edge extra labels
145
- startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
146
- endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
147
- //Set relation arrow types
148
- arrowTypeStart: R(e.relation.type1),
149
- arrowTypeEnd: R(e.relation.type2),
150
- style: "fill:none",
151
- labelStyle: "",
152
- curve: G(n == null ? void 0 : n.curve, q)
153
- };
154
- if (p.info(s, e), e.style !== void 0) {
155
- const o = B(e.style);
156
- s.style = o.style, s.labelStyle = o.labelStyle;
157
- }
158
- e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((r = (c = d().flowchart) == null ? void 0 : c.htmlLabels) != null ? r : d().htmlLabels) ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(z.lineBreakRegex, `
159
- `), e.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), t.setEdge(e.id1, e.id2, s, i);
160
- });
161
- }, ee = function(l) {
162
- T = k(k({}, T), l);
163
- }, te = function(l, t, n, i) {
164
- return I(this, null, function* () {
165
- var m, _, N, C;
166
- p.info("Drawing class - ", t);
167
- const e = (m = d().flowchart) != null ? m : d().class, c = d().securityLevel;
168
- p.info("config:", e);
169
- const s = (_ = e == null ? void 0 : e.nodeSpacing) != null ? _ : 50, r = (N = e == null ? void 0 : e.rankSpacing) != null ? N : 50, o = new X({
170
- multigraph: !0,
171
- compound: !0
172
- }).setGraph({
173
- rankdir: i.db.getDirection(),
174
- nodesep: s,
175
- ranksep: r,
176
- marginx: 8,
177
- marginy: 8
178
- }).setDefaultEdgeLabel(function() {
179
- return {};
180
- }), a = i.db.getNamespaces(), f = i.db.getClasses(), y = i.db.getRelations(), v = i.db.getNotes();
181
- p.info(y), Z(a, o, t, i), P(f, o, t, i), O(y, o), j(v, o, y.length + 1, f);
182
- let b;
183
- c === "sandbox" && (b = S("#i" + t));
184
- const h = c === "sandbox" ? S(b.nodes()[0].contentDocument.body) : S("body"), u = h.select(`[id="${t}"]`), x = h.select("#" + t + " g");
185
- if (yield Y(
186
- x,
187
- o,
188
- ["aggregation", "extension", "composition", "dependency", "lollipop"],
189
- "classDiagram",
190
- t
191
- ), Q.insertTitle(u, "classTitleText", (C = e == null ? void 0 : e.titleTopMargin) != null ? C : 5, i.db.getDiagramTitle()), U(o, u, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
192
- const D = c === "sandbox" ? b.nodes()[0].contentDocument : document, F = D.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
193
- for (const w of F) {
194
- const E = w.getBBox(), g = D.createElementNS("http://www.w3.org/2000/svg", "rect");
195
- g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width", E.width), g.setAttribute("height", E.height), w.insertBefore(g, w.firstChild);
196
- }
197
- }
198
- });
199
- };
200
- function R(l) {
201
- let t;
202
- switch (l) {
203
- case 0:
204
- t = "aggregation";
205
- break;
206
- case 1:
207
- t = "extension";
208
- break;
209
- case 2:
210
- t = "composition";
211
- break;
212
- case 3:
213
- t = "dependency";
214
- break;
215
- case 4:
216
- t = "lollipop";
217
- break;
218
- default:
219
- t = "none";
220
- }
221
- return t;
222
- }
223
- const oe = {
224
- setConf: ee,
225
- draw: te
226
- }, ue = {
227
- parser: J,
228
- db: M,
229
- renderer: oe,
230
- styles: K,
231
- init: (l) => {
232
- l.class || (l.class = {}), l.class.arrowMarkerAbsolute = l.arrowMarkerAbsolute, M.clear();
233
- }
234
- };
235
- export {
236
- ue as diagram
237
- };