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
package/a0a687f6.js DELETED
@@ -1,235 +0,0 @@
1
- var F = Object.defineProperty;
2
- var A = Object.getOwnPropertySymbols;
3
- var H = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
4
- var I = (l, t, n) => t in l ? F(l, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[t] = n, k = (l, t) => {
5
- for (var n in t || (t = {}))
6
- H.call(t, n) && I(l, n, t[n]);
7
- if (A)
8
- for (var n of A(t))
9
- V.call(t, n) && I(l, n, t[n]);
10
- return l;
11
- };
12
- var M = (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 W, d as $, s as J } from "./63aaeeb8.js";
29
- import { l as p, c as d, h as S, z as K, r as Q, q as B, n as G, o as U, j as z } from "./5edf1d55.js";
30
- import { G as X } from "./eca15e1d.js";
31
- import { r as Y } from "./31a2d08c.js";
32
- import "./919ae09a.js";
33
- import "./70705fc3.js";
34
- import "./6e6c38ae.js";
35
- import "./2ff2c7a6.js";
36
- import "./256b619e.js";
37
- const L = (l) => z.sanitizeText(l, d());
38
- let T = {
39
- dividerMargin: 10,
40
- padding: 5,
41
- textHeight: 10,
42
- curve: void 0
43
- };
44
- const Z = function(l, t, n, i) {
45
- const e = Object.keys(l);
46
- p.info("keys:", e), p.info(l), e.forEach(function(c) {
47
- var y;
48
- var s, r;
49
- const o = l[c], f = {
50
- shape: "rect",
51
- id: o.id,
52
- domId: o.domId,
53
- labelText: L(o.id),
54
- labelStyle: "",
55
- style: "fill: none; stroke: black",
56
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
57
- padding: (y = (s = d().flowchart) == null ? void 0 : s.padding) != null ? y : (r = d().class) == null ? void 0 : r.padding
58
- };
59
- t.setNode(o.id, f), q(o.classes, t, n, i, o.id), p.info("setNode", f);
60
- });
61
- }, q = function(l, t, n, i, e) {
62
- const c = Object.keys(l);
63
- p.info("keys:", c), p.info(l), c.filter((s) => l[s].parent == e).forEach(function(s) {
64
- var g, h;
65
- var r, o;
66
- const a = l[s], f = a.cssClasses.join(" "), y = { labelStyle: "", style: "" }, v = (g = a.label) != null ? g : a.id, b = 0, m = "class_box", u = {
67
- labelStyle: y.labelStyle,
68
- shape: m,
69
- labelText: L(v),
70
- classData: a,
71
- rx: b,
72
- ry: b,
73
- class: f,
74
- style: y.style,
75
- id: a.id,
76
- domId: a.domId,
77
- tooltip: i.db.getTooltip(a.id, e) || "",
78
- haveCallback: a.haveCallback,
79
- link: a.link,
80
- width: a.type === "group" ? 500 : void 0,
81
- type: a.type,
82
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
83
- padding: (h = (r = d().flowchart) == null ? void 0 : r.padding) != null ? h : (o = d().class) == null ? void 0 : o.padding
84
- };
85
- t.setNode(a.id, u), e && t.setParent(a.id, e), p.info("setNode", u);
86
- });
87
- }, j = function(l, t, n, i) {
88
- p.info(l), l.forEach(function(e, c) {
89
- var h;
90
- var s, r;
91
- const o = e, a = "", f = { labelStyle: "", style: "" }, y = o.text, v = 0, b = "note", m = {
92
- labelStyle: f.labelStyle,
93
- shape: b,
94
- labelText: L(y),
95
- noteData: o,
96
- rx: v,
97
- ry: v,
98
- class: a,
99
- style: f.style,
100
- id: o.id,
101
- domId: o.id,
102
- tooltip: "",
103
- type: "note",
104
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
105
- padding: (h = (s = d().flowchart) == null ? void 0 : s.padding) != null ? h : (r = d().class) == null ? void 0 : r.padding
106
- };
107
- if (t.setNode(o.id, m), p.info("setNode", m), !o.class || !(o.class in i))
108
- return;
109
- const u = n + c, g = {
110
- id: `edgeNote${u}`,
111
- //Set relationship style and line type
112
- classes: "relation",
113
- pattern: "dotted",
114
- // Set link type for rendering
115
- arrowhead: "none",
116
- //Set edge extra labels
117
- startLabelRight: "",
118
- endLabelLeft: "",
119
- //Set relation arrow types
120
- arrowTypeStart: "none",
121
- arrowTypeEnd: "none",
122
- style: "fill:none",
123
- labelStyle: "",
124
- curve: B(T.curve, G)
125
- };
126
- t.setEdge(o.id, o.class, g, u);
127
- });
128
- }, O = function(l, t) {
129
- const n = d().flowchart;
130
- let i = 0;
131
- l.forEach(function(e) {
132
- var r;
133
- var c;
134
- i++;
135
- const s = {
136
- //Set relationship style and line type
137
- classes: "relation",
138
- pattern: e.relation.lineType == 1 ? "dashed" : "solid",
139
- id: "id" + i,
140
- // Set link type for rendering
141
- arrowhead: e.type === "arrow_open" ? "none" : "normal",
142
- //Set edge extra labels
143
- startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
144
- endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
145
- //Set relation arrow types
146
- arrowTypeStart: R(e.relation.type1),
147
- arrowTypeEnd: R(e.relation.type2),
148
- style: "fill:none",
149
- labelStyle: "",
150
- curve: B(n == null ? void 0 : n.curve, G)
151
- };
152
- if (p.info(s, e), e.style !== void 0) {
153
- const o = U(e.style);
154
- s.style = o.style, s.labelStyle = o.labelStyle;
155
- }
156
- 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, `
157
- `), 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);
158
- });
159
- }, ee = function(l) {
160
- T = k(k({}, T), l);
161
- }, te = function(l, t, n, i) {
162
- return M(this, null, function* () {
163
- var h, N, D, E;
164
- p.info("Drawing class - ", t);
165
- const e = (h = d().flowchart) != null ? h : d().class, c = d().securityLevel;
166
- p.info("config:", e);
167
- const s = (N = e == null ? void 0 : e.nodeSpacing) != null ? N : 50, r = (D = e == null ? void 0 : e.rankSpacing) != null ? D : 50, o = new X({
168
- multigraph: !0,
169
- compound: !0
170
- }).setGraph({
171
- rankdir: i.db.getDirection(),
172
- nodesep: s,
173
- ranksep: r,
174
- marginx: 8,
175
- marginy: 8
176
- }).setDefaultEdgeLabel(function() {
177
- return {};
178
- }), a = i.db.getNamespaces(), f = i.db.getClasses(), y = i.db.getRelations(), v = i.db.getNotes();
179
- p.info(y), Z(a, o, t, i), q(f, o, t, i), O(y, o), j(v, o, y.length + 1, f);
180
- let b;
181
- c === "sandbox" && (b = S("#i" + t));
182
- const m = c === "sandbox" ? S(b.nodes()[0].contentDocument.body) : S("body"), u = m.select(`[id="${t}"]`), g = m.select("#" + t + " g");
183
- if (yield Y(
184
- g,
185
- o,
186
- ["aggregation", "extension", "composition", "dependency", "lollipop"],
187
- "classDiagram",
188
- t
189
- ), K.insertTitle(u, "classTitleText", (E = e == null ? void 0 : e.titleTopMargin) != null ? E : 5, i.db.getDiagramTitle()), Q(o, u, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
190
- const _ = c === "sandbox" ? b.nodes()[0].contentDocument : document, P = _.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
191
- for (const w of P) {
192
- const C = w.getBBox(), x = _.createElementNS("http://www.w3.org/2000/svg", "rect");
193
- x.setAttribute("rx", 0), x.setAttribute("ry", 0), x.setAttribute("width", C.width), x.setAttribute("height", C.height), w.insertBefore(x, w.firstChild);
194
- }
195
- }
196
- });
197
- };
198
- function R(l) {
199
- let t;
200
- switch (l) {
201
- case 0:
202
- t = "aggregation";
203
- break;
204
- case 1:
205
- t = "extension";
206
- break;
207
- case 2:
208
- t = "composition";
209
- break;
210
- case 3:
211
- t = "dependency";
212
- break;
213
- case 4:
214
- t = "lollipop";
215
- break;
216
- default:
217
- t = "none";
218
- }
219
- return t;
220
- }
221
- const oe = {
222
- setConf: ee,
223
- draw: te
224
- }, fe = {
225
- parser: W,
226
- db: $,
227
- renderer: oe,
228
- styles: J,
229
- init: (l) => {
230
- l.class || (l.class = {}), l.class.arrowMarkerAbsolute = l.arrowMarkerAbsolute, $.clear();
231
- }
232
- };
233
- export {
234
- fe as diagram
235
- };