@digipair/skill-web-chatbot 0.8.37 → 0.8.40
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.
- package/Tableau10-558cc280.cjs.js +9 -0
- package/Tableau10-558cc280.esm.js +7 -0
- package/arc-d1f6357e.cjs.js +88 -0
- package/arc-d1f6357e.esm.js +86 -0
- package/blockDiagram-5dc23a45.cjs.js +2921 -0
- package/blockDiagram-5dc23a45.esm.js +2919 -0
- package/{c4Diagram-1bdb45a8.cjs.js → c4Diagram-1e775db3.cjs.js} +1904 -2130
- package/{c4Diagram-1bdb45a8.esm.js → c4Diagram-1e775db3.esm.js} +1906 -2132
- package/channel-ebbc4130.cjs.js +9 -0
- package/channel-ebbc4130.esm.js +7 -0
- package/classDiagram-f52caa06.cjs.js +209 -0
- package/classDiagram-f52caa06.esm.js +207 -0
- package/{classDiagram-v2-6dc3b9c3.cjs.js → classDiagram-v2-640c694e.cjs.js} +74 -76
- package/{classDiagram-v2-6dc3b9c3.esm.js → classDiagram-v2-640c694e.esm.js} +75 -77
- package/clone-afc2f047.cjs.js +10 -0
- package/clone-afc2f047.esm.js +8 -0
- package/createText-03b82060.cjs.js +2936 -0
- package/createText-03b82060.esm.js +2933 -0
- package/edges-16357fde.cjs.js +1998 -0
- package/edges-16357fde.esm.js +1981 -0
- package/erDiagram-c7ff1bec.cjs.js +1807 -0
- package/erDiagram-c7ff1bec.esm.js +1805 -0
- package/flowDb-9a89ea33.cjs.js +5542 -0
- package/flowDb-9a89ea33.esm.js +5538 -0
- package/flowDiagram-aadb13b0.cjs.js +1351 -0
- package/flowDiagram-aadb13b0.esm.js +1349 -0
- package/flowDiagram-v2-f2119625.cjs.js +31 -0
- package/flowDiagram-v2-f2119625.esm.js +29 -0
- package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
- package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
- package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
- package/ganttDiagram-3c2fde2b.esm.js +3708 -0
- package/{gitGraphDiagram-c3fe571f.cjs.js → gitGraphDiagram-c3a0619c.cjs.js} +1608 -1651
- package/{gitGraphDiagram-c3fe571f.esm.js → gitGraphDiagram-c3a0619c.esm.js} +1609 -1652
- package/graph-0ee63739.cjs.js +961 -0
- package/graph-0ee63739.esm.js +938 -0
- package/index-bb6d8841.cjs.js +648 -0
- package/index-bb6d8841.esm.js +646 -0
- package/index.cjs2.js +5410 -4623
- package/index.esm.js +1 -1
- package/index.esm2.js +5291 -4527
- package/{infoDiagram-9c10eab1.cjs.js → infoDiagram-2f5c50c0.cjs.js} +63 -70
- package/{infoDiagram-9c10eab1.esm.js → infoDiagram-2f5c50c0.esm.js} +64 -71
- package/journeyDiagram-14fe341a.cjs.js +1061 -0
- package/journeyDiagram-14fe341a.esm.js +1059 -0
- package/katex-d90b6d29.cjs.js +25690 -0
- package/katex-d90b6d29.esm.js +25688 -0
- package/layout-fd473db2.cjs.js +1626 -0
- package/layout-fd473db2.esm.js +1619 -0
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -2
- package/line-24d93f1b.cjs.js +34 -0
- package/line-24d93f1b.esm.js +32 -0
- package/linear-9bcf74c4.cjs.js +537 -0
- package/linear-9bcf74c4.esm.js +531 -0
- package/{mindmap-definition-a9d0f378.cjs.js → mindmap-definition-9399c7e6.cjs.js} +7874 -7610
- package/{mindmap-definition-a9d0f378.esm.js → mindmap-definition-9399c7e6.esm.js} +7875 -7611
- package/package.json +1 -1
- package/path-428ebac9.cjs.js +317 -0
- package/path-428ebac9.esm.js +314 -0
- package/pieDiagram-828dae43.cjs.js +951 -0
- package/pieDiagram-828dae43.esm.js +949 -0
- package/{quadrantDiagram-1763608a.cjs.js → quadrantDiagram-5fa00455.cjs.js} +1117 -1340
- package/{quadrantDiagram-1763608a.esm.js → quadrantDiagram-5fa00455.esm.js} +1118 -1341
- package/{requirementDiagram-779d93b3.cjs.js → requirementDiagram-03163dc4.cjs.js} +1044 -1228
- package/{requirementDiagram-779d93b3.esm.js → requirementDiagram-03163dc4.esm.js} +1045 -1229
- package/{sankeyDiagram-86a66bae.cjs.js → sankeyDiagram-52ec8976.cjs.js} +337 -339
- package/{sankeyDiagram-86a66bae.esm.js → sankeyDiagram-52ec8976.esm.js} +338 -340
- package/sequenceDiagram-b517d154.cjs.js +5949 -0
- package/sequenceDiagram-b517d154.esm.js +5947 -0
- package/{stateDiagram-6f4bb19d.cjs.js → stateDiagram-fca82b5b.cjs.js} +62 -61
- package/{stateDiagram-6f4bb19d.esm.js → stateDiagram-fca82b5b.esm.js} +65 -64
- package/{stateDiagram-v2-d72c79bd.cjs.js → stateDiagram-v2-ed04200a.cjs.js} +96 -100
- package/{stateDiagram-v2-d72c79bd.esm.js → stateDiagram-v2-ed04200a.esm.js} +98 -102
- package/{styles-659d7242.cjs.js → styles-11e81fdd.cjs.js} +1990 -1965
- package/{styles-659d7242.esm.js → styles-11e81fdd.esm.js} +1989 -1964
- package/{styles-3fb7b9cf.cjs.js → styles-cacbff60.cjs.js} +935 -1192
- package/{styles-3fb7b9cf.esm.js → styles-cacbff60.esm.js} +929 -1186
- package/styles-e75131e4.cjs.js +671 -0
- package/styles-e75131e4.esm.js +661 -0
- package/svgDrawCommon-ecc5f780.cjs.js +68 -0
- package/svgDrawCommon-ecc5f780.esm.js +60 -0
- package/timeline-definition-4ee9bff4.cjs.js +1161 -0
- package/timeline-definition-4ee9bff4.esm.js +1159 -0
- package/xychartDiagram-e5e6b652.cjs.js +3150 -0
- package/xychartDiagram-e5e6b652.esm.js +3148 -0
- package/arc-da8fd8d8.cjs.js +0 -88
- package/arc-da8fd8d8.esm.js +0 -86
- package/classDiagram-185c1a10.cjs.js +0 -96
- package/classDiagram-185c1a10.esm.js +0 -94
- package/constant-2fe7eae5.cjs.js +0 -58
- package/constant-2fe7eae5.esm.js +0 -55
- package/createText-94e3ebbf.cjs.js +0 -2775
- package/createText-94e3ebbf.esm.js +0 -2773
- package/edges-558884ee.cjs.js +0 -1450
- package/edges-558884ee.esm.js +0 -1436
- package/erDiagram-97139f44.cjs.js +0 -1949
- package/erDiagram-97139f44.esm.js +0 -1947
- package/flowDb-a4faf166.cjs.js +0 -6918
- package/flowDb-a4faf166.esm.js +0 -6914
- package/flowDiagram-ccbbb58d.cjs.js +0 -999
- package/flowDiagram-ccbbb58d.esm.js +0 -997
- package/flowDiagram-v2-79ccd6da.cjs.js +0 -29
- package/flowDiagram-v2-79ccd6da.esm.js +0 -27
- package/flowchart-elk-definition-7863a61f.cjs.js +0 -48577
- package/flowchart-elk-definition-7863a61f.esm.js +0 -48575
- package/ganttDiagram-3eff0dd8.cjs.js +0 -3855
- package/ganttDiagram-3eff0dd8.esm.js +0 -3853
- package/index-d0b453e2.cjs.js +0 -609
- package/index-d0b453e2.esm.js +0 -607
- package/journeyDiagram-b6904cec.cjs.js +0 -1292
- package/journeyDiagram-b6904cec.esm.js +0 -1290
- package/layout-c5a37d74.cjs.js +0 -2808
- package/layout-c5a37d74.esm.js +0 -2795
- package/line-ce5d1152.cjs.js +0 -34
- package/line-ce5d1152.esm.js +0 -32
- package/linear-db016d0c.cjs.js +0 -485
- package/linear-db016d0c.esm.js +0 -479
- package/pieDiagram-fd367f1f.cjs.js +0 -1157
- package/pieDiagram-fd367f1f.esm.js +0 -1155
- package/sequenceDiagram-169f11ec.cjs.js +0 -4805
- package/sequenceDiagram-169f11ec.esm.js +0 -4803
- package/styles-3814544c.cjs.js +0 -534
- package/styles-3814544c.esm.js +0 -524
- package/svgDraw-af99a425.cjs.js +0 -144
- package/svgDraw-af99a425.esm.js +0 -141
- package/svgDrawCommon-ebe6c236.cjs.js +0 -70
- package/svgDrawCommon-ebe6c236.esm.js +0 -62
- package/timeline-definition-65183566.cjs.js +0 -1394
- package/timeline-definition-65183566.esm.js +0 -1392
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var styles11e81fdd = require('./styles-11e81fdd.cjs.js');
|
|
4
4
|
var index = require('./index.cjs2.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
5
|
+
var graph0ee63739 = require('./graph-0ee63739.cjs.js');
|
|
6
|
+
var indexBb6d8841 = require('./index-bb6d8841.cjs.js');
|
|
7
|
+
require('./layout-fd473db2.cjs.js');
|
|
8
|
+
require('./clone-afc2f047.cjs.js');
|
|
9
|
+
require('./edges-16357fde.cjs.js');
|
|
10
|
+
require('./createText-03b82060.cjs.js');
|
|
11
|
+
require('./line-24d93f1b.cjs.js');
|
|
11
12
|
require('./array-2ff2c7a6.cjs.js');
|
|
12
|
-
require('./
|
|
13
|
+
require('./path-428ebac9.cjs.js');
|
|
13
14
|
|
|
14
15
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
15
16
|
try {
|
|
@@ -164,7 +165,7 @@ function _ts_generator(thisArg, body) {
|
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
var S = function(o) {
|
|
167
|
-
return index.
|
|
168
|
+
return index.$n.sanitizeText(o, index.Vn());
|
|
168
169
|
};
|
|
169
170
|
var v = {
|
|
170
171
|
dividerMargin: 10,
|
|
@@ -172,9 +173,9 @@ var v = {
|
|
|
172
173
|
textHeight: 10,
|
|
173
174
|
curve: void 0
|
|
174
175
|
};
|
|
175
|
-
var
|
|
176
|
-
var
|
|
177
|
-
index.
|
|
176
|
+
var P = function P(o, e, p, n) {
|
|
177
|
+
var t = Object.keys(o);
|
|
178
|
+
index.L.info("keys:", t), index.L.info(o), t.forEach(function(s) {
|
|
178
179
|
var y, d;
|
|
179
180
|
var _ref;
|
|
180
181
|
var l = o[s], i = {
|
|
@@ -185,21 +186,18 @@ var q = function q(o, t, p, n) {
|
|
|
185
186
|
labelStyle: "",
|
|
186
187
|
style: "fill: none; stroke: black",
|
|
187
188
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
188
|
-
padding: (_ref = (y = index.
|
|
189
|
+
padding: (_ref = (y = index.Vn().flowchart) == null ? void 0 : y.padding) !== null && _ref !== void 0 ? _ref : (d = index.Vn().class) == null ? void 0 : d.padding
|
|
189
190
|
};
|
|
190
|
-
|
|
191
|
+
e.setNode(l.id, i), I(l.classes, e, p, n, l.id), index.L.info("setNode", i);
|
|
191
192
|
});
|
|
192
|
-
}, I = function I(o,
|
|
193
|
+
}, I = function I(o, e, p, n, t) {
|
|
193
194
|
var s = Object.keys(o);
|
|
194
|
-
index.
|
|
195
|
-
return o[l].parent ==
|
|
195
|
+
index.L.info("keys:", s), index.L.info(o), s.filter(function(l) {
|
|
196
|
+
return o[l].parent == t;
|
|
196
197
|
}).forEach(function(l) {
|
|
197
198
|
var u, m;
|
|
198
199
|
var _a_label, _ref;
|
|
199
|
-
var a = o[l], i = a.cssClasses.join(" "), y = {
|
|
200
|
-
labelStyle: "",
|
|
201
|
-
style: ""
|
|
202
|
-
}, d = (_a_label = a.label) !== null && _a_label !== void 0 ? _a_label : a.id, f = 0, h = "class_box", b = {
|
|
200
|
+
var a = o[l], i = a.cssClasses.join(" "), y = index.B0(a.styles), d = (_a_label = a.label) !== null && _a_label !== void 0 ? _a_label : a.id, f = 0, h = "class_box", b = {
|
|
203
201
|
labelStyle: y.labelStyle,
|
|
204
202
|
shape: h,
|
|
205
203
|
labelText: S(d),
|
|
@@ -210,21 +208,21 @@ var q = function q(o, t, p, n) {
|
|
|
210
208
|
style: y.style,
|
|
211
209
|
id: a.id,
|
|
212
210
|
domId: a.domId,
|
|
213
|
-
tooltip: n.db.getTooltip(a.id,
|
|
211
|
+
tooltip: n.db.getTooltip(a.id, t) || "",
|
|
214
212
|
haveCallback: a.haveCallback,
|
|
215
213
|
link: a.link,
|
|
216
214
|
width: a.type === "group" ? 500 : void 0,
|
|
217
215
|
type: a.type,
|
|
218
216
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
219
|
-
padding: (_ref = (u = index.
|
|
217
|
+
padding: (_ref = (u = index.Vn().flowchart) == null ? void 0 : u.padding) !== null && _ref !== void 0 ? _ref : (m = index.Vn().class) == null ? void 0 : m.padding
|
|
220
218
|
};
|
|
221
|
-
|
|
219
|
+
e.setNode(a.id, b), t && e.setParent(a.id, t), index.L.info("setNode", b);
|
|
222
220
|
});
|
|
223
|
-
}, F = function F(o,
|
|
224
|
-
index.
|
|
225
|
-
var m,
|
|
221
|
+
}, F = function F(o, e, p, n) {
|
|
222
|
+
index.L.info(o), o.forEach(function(t, s) {
|
|
223
|
+
var m, g;
|
|
226
224
|
var _ref;
|
|
227
|
-
var l =
|
|
225
|
+
var l = t, a = "", i = {
|
|
228
226
|
labelStyle: "",
|
|
229
227
|
style: ""
|
|
230
228
|
}, y = l.text, d = 0, f = "note", h = {
|
|
@@ -241,9 +239,9 @@ var q = function q(o, t, p, n) {
|
|
|
241
239
|
tooltip: "",
|
|
242
240
|
type: "note",
|
|
243
241
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
244
|
-
padding: (_ref = (m = index.
|
|
242
|
+
padding: (_ref = (m = index.Vn().flowchart) == null ? void 0 : m.padding) !== null && _ref !== void 0 ? _ref : (g = index.Vn().class) == null ? void 0 : g.padding
|
|
245
243
|
};
|
|
246
|
-
if (
|
|
244
|
+
if (e.setNode(l.id, h), index.L.info("setNode", h), !l.class || !(l.class in n)) return;
|
|
247
245
|
var b = p + s, u = {
|
|
248
246
|
id: "edgeNote".concat(b),
|
|
249
247
|
//Set relationship style and line type
|
|
@@ -259,52 +257,52 @@ var q = function q(o, t, p, n) {
|
|
|
259
257
|
arrowTypeEnd: "none",
|
|
260
258
|
style: "fill:none",
|
|
261
259
|
labelStyle: "",
|
|
262
|
-
curve: index.
|
|
260
|
+
curve: index.x0(v.curve, index.Df)
|
|
263
261
|
};
|
|
264
|
-
|
|
262
|
+
e.setEdge(l.id, l.class, u, b);
|
|
265
263
|
});
|
|
266
|
-
}, H = function H(o,
|
|
267
|
-
var p = index.
|
|
264
|
+
}, H = function H(o, e) {
|
|
265
|
+
var p = index.Vn().flowchart;
|
|
268
266
|
var n = 0;
|
|
269
|
-
o.forEach(function(
|
|
267
|
+
o.forEach(function(t) {
|
|
270
268
|
var l;
|
|
271
269
|
n++;
|
|
272
270
|
var s = {
|
|
273
271
|
//Set relationship style and line type
|
|
274
272
|
classes: "relation",
|
|
275
|
-
pattern:
|
|
276
|
-
id: "
|
|
273
|
+
pattern: t.relation.lineType == 1 ? "dashed" : "solid",
|
|
274
|
+
id: "id_".concat(t.id1, "_").concat(t.id2, "_").concat(n),
|
|
277
275
|
// Set link type for rendering
|
|
278
|
-
arrowhead:
|
|
276
|
+
arrowhead: t.type === "arrow_open" ? "none" : "normal",
|
|
279
277
|
//Set edge extra labels
|
|
280
|
-
startLabelRight:
|
|
281
|
-
endLabelLeft:
|
|
278
|
+
startLabelRight: t.relationTitle1 === "none" ? "" : t.relationTitle1,
|
|
279
|
+
endLabelLeft: t.relationTitle2 === "none" ? "" : t.relationTitle2,
|
|
282
280
|
//Set relation arrow types
|
|
283
|
-
arrowTypeStart: D(
|
|
284
|
-
arrowTypeEnd: D(
|
|
281
|
+
arrowTypeStart: D(t.relation.type1),
|
|
282
|
+
arrowTypeEnd: D(t.relation.type2),
|
|
285
283
|
style: "fill:none",
|
|
286
284
|
labelStyle: "",
|
|
287
|
-
curve: index.
|
|
285
|
+
curve: index.x0(p == null ? void 0 : p.curve, index.Df)
|
|
288
286
|
};
|
|
289
|
-
if (index.
|
|
290
|
-
var a = index.
|
|
287
|
+
if (index.L.info(s, t), t.style !== void 0) {
|
|
288
|
+
var a = index.B0(t.style);
|
|
291
289
|
s.style = a.style, s.labelStyle = a.labelStyle;
|
|
292
290
|
}
|
|
293
291
|
var _ref;
|
|
294
|
-
|
|
292
|
+
t.text = t.title, t.text === void 0 ? t.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((_ref = (l = index.Vn().flowchart) == null ? void 0 : l.htmlLabels) !== null && _ref !== void 0 ? _ref : index.Vn().htmlLabels) ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + t.text + "</span>") : (s.labelType = "text", s.label = t.text.replace(index.$n.lineBreakRegex, "\n"), t.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), e.setEdge(t.id1, t.id2, s, n);
|
|
295
293
|
});
|
|
296
294
|
}, V = function V(o) {
|
|
297
295
|
v = _object_spread({}, v, o);
|
|
298
296
|
}, W = function() {
|
|
299
|
-
var _ref = _async_to_generator(function(o,
|
|
300
|
-
var _r_flowchart,
|
|
297
|
+
var _ref = _async_to_generator(function(o, e, p, n) {
|
|
298
|
+
var _r_flowchart, t, s, _ref, _ref1, l, a, i, y, d, f, h, b, u, m, g, _ref2, T, M, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, w, L, x;
|
|
301
299
|
return _ts_generator(this, function(_state) {
|
|
302
300
|
switch(_state.label){
|
|
303
301
|
case 0:
|
|
304
|
-
index.
|
|
305
|
-
|
|
306
|
-
index.
|
|
307
|
-
l = (_ref =
|
|
302
|
+
index.L.info("Drawing class - ", e);
|
|
303
|
+
t = (_r_flowchart = index.Vn().flowchart) !== null && _r_flowchart !== void 0 ? _r_flowchart : index.Vn().class, s = index.Vn().securityLevel;
|
|
304
|
+
index.L.info("config:", t);
|
|
305
|
+
l = (_ref = t == null ? void 0 : t.nodeSpacing) !== null && _ref !== void 0 ? _ref : 50, a = (_ref1 = t == null ? void 0 : t.rankSpacing) !== null && _ref1 !== void 0 ? _ref1 : 50, i = new graph0ee63739.Ze({
|
|
308
306
|
multigraph: !0,
|
|
309
307
|
compound: !0
|
|
310
308
|
}).setGraph({
|
|
@@ -316,28 +314,28 @@ var q = function q(o, t, p, n) {
|
|
|
316
314
|
}).setDefaultEdgeLabel(function() {
|
|
317
315
|
return {};
|
|
318
316
|
}), y = n.db.getNamespaces(), d = n.db.getClasses(), f = n.db.getRelations(), h = n.db.getNotes();
|
|
319
|
-
index.
|
|
320
|
-
s === "sandbox" && (b = index.
|
|
321
|
-
u = s === "sandbox" ? index.
|
|
317
|
+
index.L.info(f), P(y, i, e, n), I(d, i, e, n), H(f, i), F(h, i, f.length + 1, d);
|
|
318
|
+
s === "sandbox" && (b = index.bt("#i" + e));
|
|
319
|
+
u = s === "sandbox" ? index.bt(b.nodes()[0].contentDocument.body) : index.bt("body"), m = u.select('[id="'.concat(e, '"]')), g = u.select("#" + e + " g");
|
|
322
320
|
return [
|
|
323
321
|
4,
|
|
324
|
-
|
|
322
|
+
indexBb6d8841.bt(g, i, [
|
|
325
323
|
"aggregation",
|
|
326
324
|
"extension",
|
|
327
325
|
"composition",
|
|
328
326
|
"dependency",
|
|
329
327
|
"lollipop"
|
|
330
|
-
], "classDiagram",
|
|
328
|
+
], "classDiagram", e)
|
|
331
329
|
];
|
|
332
330
|
case 1:
|
|
333
|
-
if (_state.sent(), index.
|
|
334
|
-
T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' +
|
|
331
|
+
if (_state.sent(), index.ei.insertTitle(m, "classTitleText", (_ref2 = t == null ? void 0 : t.titleTopMargin) !== null && _ref2 !== void 0 ? _ref2 : 5, n.db.getDiagramTitle()), index.k_(i, m, t == null ? void 0 : t.diagramPadding, t == null ? void 0 : t.useMaxWidth), !(t != null && t.htmlLabels)) {
|
|
332
|
+
T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' + e + '"] .edgeLabel .label');
|
|
335
333
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
336
334
|
try {
|
|
337
335
|
for(_iterator = M[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
338
336
|
w = _step.value;
|
|
339
|
-
L = w.getBBox(),
|
|
340
|
-
|
|
337
|
+
L = w.getBBox(), x = T.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
338
|
+
x.setAttribute("rx", 0), x.setAttribute("ry", 0), x.setAttribute("width", L.width), x.setAttribute("height", L.height), w.insertBefore(x, w.firstChild);
|
|
341
339
|
}
|
|
342
340
|
} catch (err) {
|
|
343
341
|
_didIteratorError = true;
|
|
@@ -360,44 +358,44 @@ var q = function q(o, t, p, n) {
|
|
|
360
358
|
}
|
|
361
359
|
});
|
|
362
360
|
});
|
|
363
|
-
return function W(o,
|
|
361
|
+
return function W(o, e, p, n) {
|
|
364
362
|
return _ref.apply(this, arguments);
|
|
365
363
|
};
|
|
366
364
|
}();
|
|
367
365
|
function D(o) {
|
|
368
|
-
var
|
|
366
|
+
var e;
|
|
369
367
|
switch(o){
|
|
370
368
|
case 0:
|
|
371
|
-
|
|
369
|
+
e = "aggregation";
|
|
372
370
|
break;
|
|
373
371
|
case 1:
|
|
374
|
-
|
|
372
|
+
e = "extension";
|
|
375
373
|
break;
|
|
376
374
|
case 2:
|
|
377
|
-
|
|
375
|
+
e = "composition";
|
|
378
376
|
break;
|
|
379
377
|
case 3:
|
|
380
|
-
|
|
378
|
+
e = "dependency";
|
|
381
379
|
break;
|
|
382
380
|
case 4:
|
|
383
|
-
|
|
381
|
+
e = "lollipop";
|
|
384
382
|
break;
|
|
385
383
|
default:
|
|
386
|
-
|
|
384
|
+
e = "none";
|
|
387
385
|
}
|
|
388
|
-
return
|
|
386
|
+
return e;
|
|
389
387
|
}
|
|
390
388
|
var J = {
|
|
391
389
|
setConf: V,
|
|
392
390
|
draw: W
|
|
393
|
-
},
|
|
394
|
-
parser:
|
|
395
|
-
db:
|
|
391
|
+
}, ot = {
|
|
392
|
+
parser: styles11e81fdd.zt,
|
|
393
|
+
db: styles11e81fdd.Kt,
|
|
396
394
|
renderer: J,
|
|
397
|
-
styles:
|
|
395
|
+
styles: styles11e81fdd.Yt,
|
|
398
396
|
init: function(o) {
|
|
399
|
-
o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute,
|
|
397
|
+
o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute, styles11e81fdd.Kt.clear();
|
|
400
398
|
}
|
|
401
399
|
};
|
|
402
400
|
|
|
403
|
-
exports.diagram =
|
|
401
|
+
exports.diagram = ot;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
1
|
+
import { z as zt, K as Kt, Y as Yt } from './styles-11e81fdd.esm.js';
|
|
2
|
+
import { i as ei, k as k_, c as L, V as Vn, b as bt, B as B0, x as x0, D as Df, $ as $n } from './index.esm2.js';
|
|
3
|
+
import { Z as Ze } from './graph-0ee63739.esm.js';
|
|
4
|
+
import { b as bt$1 } from './index-bb6d8841.esm.js';
|
|
5
|
+
import './layout-fd473db2.esm.js';
|
|
6
|
+
import './clone-afc2f047.esm.js';
|
|
7
|
+
import './edges-16357fde.esm.js';
|
|
8
|
+
import './createText-03b82060.esm.js';
|
|
9
|
+
import './line-24d93f1b.esm.js';
|
|
9
10
|
import './array-2ff2c7a6.esm.js';
|
|
10
|
-
import './
|
|
11
|
+
import './path-428ebac9.esm.js';
|
|
11
12
|
|
|
12
13
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
14
|
try {
|
|
@@ -162,7 +163,7 @@ function _ts_generator(thisArg, body) {
|
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
var S = function(o) {
|
|
165
|
-
return
|
|
166
|
+
return $n.sanitizeText(o, Vn());
|
|
166
167
|
};
|
|
167
168
|
var v = {
|
|
168
169
|
dividerMargin: 10,
|
|
@@ -170,9 +171,9 @@ var v = {
|
|
|
170
171
|
textHeight: 10,
|
|
171
172
|
curve: void 0
|
|
172
173
|
};
|
|
173
|
-
var
|
|
174
|
-
var
|
|
175
|
-
|
|
174
|
+
var P = function P(o, e, p, n) {
|
|
175
|
+
var t = Object.keys(o);
|
|
176
|
+
L.info("keys:", t), L.info(o), t.forEach(function(s) {
|
|
176
177
|
var y, d;
|
|
177
178
|
var _ref;
|
|
178
179
|
var l = o[s], i = {
|
|
@@ -183,21 +184,18 @@ var q = function q(o, t, p, n) {
|
|
|
183
184
|
labelStyle: "",
|
|
184
185
|
style: "fill: none; stroke: black",
|
|
185
186
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
186
|
-
padding: (_ref = (y =
|
|
187
|
+
padding: (_ref = (y = Vn().flowchart) == null ? void 0 : y.padding) !== null && _ref !== void 0 ? _ref : (d = Vn().class) == null ? void 0 : d.padding
|
|
187
188
|
};
|
|
188
|
-
|
|
189
|
+
e.setNode(l.id, i), I(l.classes, e, p, n, l.id), L.info("setNode", i);
|
|
189
190
|
});
|
|
190
|
-
}, I = function I(o,
|
|
191
|
+
}, I = function I(o, e, p, n, t) {
|
|
191
192
|
var s = Object.keys(o);
|
|
192
|
-
|
|
193
|
-
return o[l].parent ==
|
|
193
|
+
L.info("keys:", s), L.info(o), s.filter(function(l) {
|
|
194
|
+
return o[l].parent == t;
|
|
194
195
|
}).forEach(function(l) {
|
|
195
196
|
var u, m;
|
|
196
197
|
var _a_label, _ref;
|
|
197
|
-
var a = o[l], i = a.cssClasses.join(" "), y = {
|
|
198
|
-
labelStyle: "",
|
|
199
|
-
style: ""
|
|
200
|
-
}, d = (_a_label = a.label) !== null && _a_label !== void 0 ? _a_label : a.id, f = 0, h = "class_box", b = {
|
|
198
|
+
var a = o[l], i = a.cssClasses.join(" "), y = B0(a.styles), d = (_a_label = a.label) !== null && _a_label !== void 0 ? _a_label : a.id, f = 0, h = "class_box", b = {
|
|
201
199
|
labelStyle: y.labelStyle,
|
|
202
200
|
shape: h,
|
|
203
201
|
labelText: S(d),
|
|
@@ -208,21 +206,21 @@ var q = function q(o, t, p, n) {
|
|
|
208
206
|
style: y.style,
|
|
209
207
|
id: a.id,
|
|
210
208
|
domId: a.domId,
|
|
211
|
-
tooltip: n.db.getTooltip(a.id,
|
|
209
|
+
tooltip: n.db.getTooltip(a.id, t) || "",
|
|
212
210
|
haveCallback: a.haveCallback,
|
|
213
211
|
link: a.link,
|
|
214
212
|
width: a.type === "group" ? 500 : void 0,
|
|
215
213
|
type: a.type,
|
|
216
214
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
217
|
-
padding: (_ref = (u =
|
|
215
|
+
padding: (_ref = (u = Vn().flowchart) == null ? void 0 : u.padding) !== null && _ref !== void 0 ? _ref : (m = Vn().class) == null ? void 0 : m.padding
|
|
218
216
|
};
|
|
219
|
-
|
|
217
|
+
e.setNode(a.id, b), t && e.setParent(a.id, t), L.info("setNode", b);
|
|
220
218
|
});
|
|
221
|
-
}, F = function F(o,
|
|
222
|
-
|
|
223
|
-
var m,
|
|
219
|
+
}, F = function F(o, e, p, n) {
|
|
220
|
+
L.info(o), o.forEach(function(t, s) {
|
|
221
|
+
var m, g;
|
|
224
222
|
var _ref;
|
|
225
|
-
var l =
|
|
223
|
+
var l = t, a = "", i = {
|
|
226
224
|
labelStyle: "",
|
|
227
225
|
style: ""
|
|
228
226
|
}, y = l.text, d = 0, f = "note", h = {
|
|
@@ -239,9 +237,9 @@ var q = function q(o, t, p, n) {
|
|
|
239
237
|
tooltip: "",
|
|
240
238
|
type: "note",
|
|
241
239
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
242
|
-
padding: (_ref = (m =
|
|
240
|
+
padding: (_ref = (m = Vn().flowchart) == null ? void 0 : m.padding) !== null && _ref !== void 0 ? _ref : (g = Vn().class) == null ? void 0 : g.padding
|
|
243
241
|
};
|
|
244
|
-
if (
|
|
242
|
+
if (e.setNode(l.id, h), L.info("setNode", h), !l.class || !(l.class in n)) return;
|
|
245
243
|
var b = p + s, u = {
|
|
246
244
|
id: "edgeNote".concat(b),
|
|
247
245
|
//Set relationship style and line type
|
|
@@ -257,52 +255,52 @@ var q = function q(o, t, p, n) {
|
|
|
257
255
|
arrowTypeEnd: "none",
|
|
258
256
|
style: "fill:none",
|
|
259
257
|
labelStyle: "",
|
|
260
|
-
curve:
|
|
258
|
+
curve: x0(v.curve, Df)
|
|
261
259
|
};
|
|
262
|
-
|
|
260
|
+
e.setEdge(l.id, l.class, u, b);
|
|
263
261
|
});
|
|
264
|
-
}, H = function H(o,
|
|
265
|
-
var p =
|
|
262
|
+
}, H = function H(o, e) {
|
|
263
|
+
var p = Vn().flowchart;
|
|
266
264
|
var n = 0;
|
|
267
|
-
o.forEach(function(
|
|
265
|
+
o.forEach(function(t) {
|
|
268
266
|
var l;
|
|
269
267
|
n++;
|
|
270
268
|
var s = {
|
|
271
269
|
//Set relationship style and line type
|
|
272
270
|
classes: "relation",
|
|
273
|
-
pattern:
|
|
274
|
-
id: "
|
|
271
|
+
pattern: t.relation.lineType == 1 ? "dashed" : "solid",
|
|
272
|
+
id: "id_".concat(t.id1, "_").concat(t.id2, "_").concat(n),
|
|
275
273
|
// Set link type for rendering
|
|
276
|
-
arrowhead:
|
|
274
|
+
arrowhead: t.type === "arrow_open" ? "none" : "normal",
|
|
277
275
|
//Set edge extra labels
|
|
278
|
-
startLabelRight:
|
|
279
|
-
endLabelLeft:
|
|
276
|
+
startLabelRight: t.relationTitle1 === "none" ? "" : t.relationTitle1,
|
|
277
|
+
endLabelLeft: t.relationTitle2 === "none" ? "" : t.relationTitle2,
|
|
280
278
|
//Set relation arrow types
|
|
281
|
-
arrowTypeStart: D(
|
|
282
|
-
arrowTypeEnd: D(
|
|
279
|
+
arrowTypeStart: D(t.relation.type1),
|
|
280
|
+
arrowTypeEnd: D(t.relation.type2),
|
|
283
281
|
style: "fill:none",
|
|
284
282
|
labelStyle: "",
|
|
285
|
-
curve:
|
|
283
|
+
curve: x0(p == null ? void 0 : p.curve, Df)
|
|
286
284
|
};
|
|
287
|
-
if (
|
|
288
|
-
var a =
|
|
285
|
+
if (L.info(s, t), t.style !== void 0) {
|
|
286
|
+
var a = B0(t.style);
|
|
289
287
|
s.style = a.style, s.labelStyle = a.labelStyle;
|
|
290
288
|
}
|
|
291
289
|
var _ref;
|
|
292
|
-
|
|
290
|
+
t.text = t.title, t.text === void 0 ? t.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((_ref = (l = Vn().flowchart) == null ? void 0 : l.htmlLabels) !== null && _ref !== void 0 ? _ref : Vn().htmlLabels) ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + t.text + "</span>") : (s.labelType = "text", s.label = t.text.replace($n.lineBreakRegex, "\n"), t.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), e.setEdge(t.id1, t.id2, s, n);
|
|
293
291
|
});
|
|
294
292
|
}, V = function V(o) {
|
|
295
293
|
v = _object_spread({}, v, o);
|
|
296
294
|
}, W = function() {
|
|
297
|
-
var _ref = _async_to_generator(function(o,
|
|
298
|
-
var _r_flowchart,
|
|
295
|
+
var _ref = _async_to_generator(function(o, e, p, n) {
|
|
296
|
+
var _r_flowchart, t, s, _ref, _ref1, l, a, i, y, d, f, h, b, u, m, g, _ref2, T, M, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, w, L$1, x;
|
|
299
297
|
return _ts_generator(this, function(_state) {
|
|
300
298
|
switch(_state.label){
|
|
301
299
|
case 0:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
l = (_ref =
|
|
300
|
+
L.info("Drawing class - ", e);
|
|
301
|
+
t = (_r_flowchart = Vn().flowchart) !== null && _r_flowchart !== void 0 ? _r_flowchart : Vn().class, s = Vn().securityLevel;
|
|
302
|
+
L.info("config:", t);
|
|
303
|
+
l = (_ref = t == null ? void 0 : t.nodeSpacing) !== null && _ref !== void 0 ? _ref : 50, a = (_ref1 = t == null ? void 0 : t.rankSpacing) !== null && _ref1 !== void 0 ? _ref1 : 50, i = new Ze({
|
|
306
304
|
multigraph: !0,
|
|
307
305
|
compound: !0
|
|
308
306
|
}).setGraph({
|
|
@@ -314,28 +312,28 @@ var q = function q(o, t, p, n) {
|
|
|
314
312
|
}).setDefaultEdgeLabel(function() {
|
|
315
313
|
return {};
|
|
316
314
|
}), y = n.db.getNamespaces(), d = n.db.getClasses(), f = n.db.getRelations(), h = n.db.getNotes();
|
|
317
|
-
|
|
318
|
-
s === "sandbox" && (b =
|
|
319
|
-
u = s === "sandbox" ?
|
|
315
|
+
L.info(f), P(y, i, e, n), I(d, i, e, n), H(f, i), F(h, i, f.length + 1, d);
|
|
316
|
+
s === "sandbox" && (b = bt("#i" + e));
|
|
317
|
+
u = s === "sandbox" ? bt(b.nodes()[0].contentDocument.body) : bt("body"), m = u.select('[id="'.concat(e, '"]')), g = u.select("#" + e + " g");
|
|
320
318
|
return [
|
|
321
319
|
4,
|
|
322
|
-
|
|
320
|
+
bt$1(g, i, [
|
|
323
321
|
"aggregation",
|
|
324
322
|
"extension",
|
|
325
323
|
"composition",
|
|
326
324
|
"dependency",
|
|
327
325
|
"lollipop"
|
|
328
|
-
], "classDiagram",
|
|
326
|
+
], "classDiagram", e)
|
|
329
327
|
];
|
|
330
328
|
case 1:
|
|
331
|
-
if (_state.sent(),
|
|
332
|
-
T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' +
|
|
329
|
+
if (_state.sent(), ei.insertTitle(m, "classTitleText", (_ref2 = t == null ? void 0 : t.titleTopMargin) !== null && _ref2 !== void 0 ? _ref2 : 5, n.db.getDiagramTitle()), k_(i, m, t == null ? void 0 : t.diagramPadding, t == null ? void 0 : t.useMaxWidth), !(t != null && t.htmlLabels)) {
|
|
330
|
+
T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' + e + '"] .edgeLabel .label');
|
|
333
331
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
334
332
|
try {
|
|
335
333
|
for(_iterator = M[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
336
334
|
w = _step.value;
|
|
337
|
-
L = w.getBBox(),
|
|
338
|
-
|
|
335
|
+
L$1 = w.getBBox(), x = T.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
336
|
+
x.setAttribute("rx", 0), x.setAttribute("ry", 0), x.setAttribute("width", L$1.width), x.setAttribute("height", L$1.height), w.insertBefore(x, w.firstChild);
|
|
339
337
|
}
|
|
340
338
|
} catch (err) {
|
|
341
339
|
_didIteratorError = true;
|
|
@@ -358,44 +356,44 @@ var q = function q(o, t, p, n) {
|
|
|
358
356
|
}
|
|
359
357
|
});
|
|
360
358
|
});
|
|
361
|
-
return function W(o,
|
|
359
|
+
return function W(o, e, p, n) {
|
|
362
360
|
return _ref.apply(this, arguments);
|
|
363
361
|
};
|
|
364
362
|
}();
|
|
365
363
|
function D(o) {
|
|
366
|
-
var
|
|
364
|
+
var e;
|
|
367
365
|
switch(o){
|
|
368
366
|
case 0:
|
|
369
|
-
|
|
367
|
+
e = "aggregation";
|
|
370
368
|
break;
|
|
371
369
|
case 1:
|
|
372
|
-
|
|
370
|
+
e = "extension";
|
|
373
371
|
break;
|
|
374
372
|
case 2:
|
|
375
|
-
|
|
373
|
+
e = "composition";
|
|
376
374
|
break;
|
|
377
375
|
case 3:
|
|
378
|
-
|
|
376
|
+
e = "dependency";
|
|
379
377
|
break;
|
|
380
378
|
case 4:
|
|
381
|
-
|
|
379
|
+
e = "lollipop";
|
|
382
380
|
break;
|
|
383
381
|
default:
|
|
384
|
-
|
|
382
|
+
e = "none";
|
|
385
383
|
}
|
|
386
|
-
return
|
|
384
|
+
return e;
|
|
387
385
|
}
|
|
388
386
|
var J = {
|
|
389
387
|
setConf: V,
|
|
390
388
|
draw: W
|
|
391
|
-
},
|
|
392
|
-
parser:
|
|
393
|
-
db:
|
|
389
|
+
}, ot = {
|
|
390
|
+
parser: zt,
|
|
391
|
+
db: Kt,
|
|
394
392
|
renderer: J,
|
|
395
|
-
styles:
|
|
393
|
+
styles: Yt,
|
|
396
394
|
init: function(o) {
|
|
397
|
-
o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute,
|
|
395
|
+
o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute, Kt.clear();
|
|
398
396
|
}
|
|
399
397
|
};
|
|
400
398
|
|
|
401
|
-
export {
|
|
399
|
+
export { ot as diagram };
|