@digipair/skill-web-chatbot 0.3.0
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/SAP-icons.cjs.js +2489 -0
- package/SAP-icons.cjs2.js +2489 -0
- package/SAP-icons.esm.js +2482 -0
- package/SAP-icons.esm2.js +2482 -0
- package/arc-da8fd8d8.cjs.js +88 -0
- package/arc-da8fd8d8.esm.js +86 -0
- package/array-2ff2c7a6.cjs.js +7 -0
- package/array-2ff2c7a6.esm.js +5 -0
- package/c4Diagram-1bdb45a8.cjs.js +4613 -0
- package/c4Diagram-1bdb45a8.esm.js +4611 -0
- package/classDiagram-185c1a10.cjs.js +96 -0
- package/classDiagram-185c1a10.esm.js +94 -0
- package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
- package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
- package/constant-2fe7eae5.cjs.js +58 -0
- package/constant-2fe7eae5.esm.js +55 -0
- package/createText-94e3ebbf.cjs.js +2775 -0
- package/createText-94e3ebbf.esm.js +2773 -0
- package/debug.html +18 -0
- package/edges-558884ee.cjs.js +1450 -0
- package/edges-558884ee.esm.js +1436 -0
- package/erDiagram-97139f44.cjs.js +1949 -0
- package/erDiagram-97139f44.esm.js +1947 -0
- package/flowDb-a4faf166.cjs.js +6918 -0
- package/flowDb-a4faf166.esm.js +6914 -0
- package/flowDiagram-ccbbb58d.cjs.js +999 -0
- package/flowDiagram-ccbbb58d.esm.js +997 -0
- package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
- package/flowDiagram-v2-79ccd6da.esm.js +27 -0
- package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
- package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
- package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
- package/ganttDiagram-3eff0dd8.esm.js +3853 -0
- package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
- package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
- package/index-d0b453e2.cjs.js +609 -0
- package/index-d0b453e2.esm.js +607 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +17 -0
- package/index.cjs2.js +43619 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/index.esm2.js +43493 -0
- package/infoDiagram-9c10eab1.cjs.js +467 -0
- package/infoDiagram-9c10eab1.esm.js +465 -0
- package/init-f9637058.cjs.js +17 -0
- package/init-f9637058.esm.js +15 -0
- package/journeyDiagram-b6904cec.cjs.js +1292 -0
- package/journeyDiagram-b6904cec.esm.js +1290 -0
- package/layout-c5a37d74.cjs.js +2808 -0
- package/layout-c5a37d74.esm.js +2795 -0
- package/libs/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/engine.d.ts +27 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
- package/libs/skill-web-chatbot/src/index.d.ts +3 -0
- package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
- package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
- package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
- package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
- package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
- package/line-ce5d1152.cjs.js +34 -0
- package/line-ce5d1152.esm.js +32 -0
- package/linear-db016d0c.cjs.js +485 -0
- package/linear-db016d0c.esm.js +479 -0
- package/mindmap-definition-a9d0f378.cjs.js +20225 -0
- package/mindmap-definition-a9d0f378.esm.js +20223 -0
- package/ordinal-5695958c.cjs.js +331 -0
- package/ordinal-5695958c.esm.js +329 -0
- package/package.json +8 -0
- package/pieDiagram-fd367f1f.cjs.js +1157 -0
- package/pieDiagram-fd367f1f.esm.js +1155 -0
- package/quadrantDiagram-1763608a.cjs.js +2633 -0
- package/quadrantDiagram-1763608a.esm.js +2631 -0
- package/requirementDiagram-779d93b3.cjs.js +2451 -0
- package/requirementDiagram-779d93b3.esm.js +2449 -0
- package/sankeyDiagram-86a66bae.cjs.js +1850 -0
- package/sankeyDiagram-86a66bae.esm.js +1848 -0
- package/sequenceDiagram-169f11ec.cjs.js +4805 -0
- package/sequenceDiagram-169f11ec.esm.js +4803 -0
- package/stateDiagram-6f4bb19d.cjs.js +282 -0
- package/stateDiagram-6f4bb19d.esm.js +280 -0
- package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
- package/stateDiagram-v2-d72c79bd.esm.js +375 -0
- package/styles-3814544c.cjs.js +534 -0
- package/styles-3814544c.esm.js +524 -0
- package/styles-3fb7b9cf.cjs.js +2377 -0
- package/styles-3fb7b9cf.esm.js +2368 -0
- package/styles-659d7242.cjs.js +3919 -0
- package/styles-659d7242.esm.js +3915 -0
- package/svgDraw-af99a425.cjs.js +144 -0
- package/svgDraw-af99a425.esm.js +141 -0
- package/svgDrawCommon-ebe6c236.cjs.js +70 -0
- package/svgDrawCommon-ebe6c236.esm.js +62 -0
- package/timeline-definition-65183566.cjs.js +1394 -0
- package/timeline-definition-65183566.esm.js +1392 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles659d7242 = require('./styles-659d7242.cjs.js');
|
|
4
|
+
var index = require('./index.cjs2.js');
|
|
5
|
+
var layoutC5a37d74 = require('./layout-c5a37d74.cjs.js');
|
|
6
|
+
var svgDrawAf99a425 = require('./svgDraw-af99a425.cjs.js');
|
|
7
|
+
require('./line-ce5d1152.cjs.js');
|
|
8
|
+
require('./array-2ff2c7a6.cjs.js');
|
|
9
|
+
require('./constant-2fe7eae5.cjs.js');
|
|
10
|
+
|
|
11
|
+
var h = {};
|
|
12
|
+
var g = 20, p = function p(r) {
|
|
13
|
+
var o = Object.entries(h).find(function(k) {
|
|
14
|
+
return k[1].label === r;
|
|
15
|
+
});
|
|
16
|
+
if (o) return o[0];
|
|
17
|
+
}, D = function D(r) {
|
|
18
|
+
r.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"), r.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"), r.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"), r.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"), r.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"), r.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"), r.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"), r.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");
|
|
19
|
+
}, $ = function $(r, o, k, a) {
|
|
20
|
+
var c = index.Ut().class;
|
|
21
|
+
h = {}, index.S.info("Rendering diagram " + r);
|
|
22
|
+
var L = index.Ut().securityLevel;
|
|
23
|
+
var y;
|
|
24
|
+
L === "sandbox" && (y = index.At("#i" + o));
|
|
25
|
+
var x = L === "sandbox" ? index.At(y.nodes()[0].contentDocument.body) : index.At("body"), n = x.select("[id='".concat(o, "']"));
|
|
26
|
+
D(n);
|
|
27
|
+
var e = new layoutC5a37d74.A({
|
|
28
|
+
multigraph: !0
|
|
29
|
+
});
|
|
30
|
+
e.setGraph({
|
|
31
|
+
isMultiGraph: !0
|
|
32
|
+
}), e.setDefaultEdgeLabel(function() {
|
|
33
|
+
return {};
|
|
34
|
+
});
|
|
35
|
+
var u = a.db.getClasses(), N = Object.keys(u);
|
|
36
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
37
|
+
try {
|
|
38
|
+
for(var _iterator = N[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
39
|
+
var t = _step.value;
|
|
40
|
+
var s = u[t], i = svgDrawAf99a425.R.drawClass(n, s, c, a);
|
|
41
|
+
h[i.id] = i, e.setNode(i.id, i), index.S.info("Org height: " + i.height);
|
|
42
|
+
}
|
|
43
|
+
} catch (err) {
|
|
44
|
+
_didIteratorError = true;
|
|
45
|
+
_iteratorError = err;
|
|
46
|
+
} finally{
|
|
47
|
+
try {
|
|
48
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
49
|
+
_iterator.return();
|
|
50
|
+
}
|
|
51
|
+
} finally{
|
|
52
|
+
if (_didIteratorError) {
|
|
53
|
+
throw _iteratorError;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
a.db.getRelations().forEach(function(t) {
|
|
58
|
+
index.S.info("tjoho" + p(t.id1) + p(t.id2) + JSON.stringify(t)), e.setEdge(p(t.id1), p(t.id2), {
|
|
59
|
+
relation: t
|
|
60
|
+
}, t.title || "DEFAULT");
|
|
61
|
+
}), a.db.getNotes().forEach(function(t) {
|
|
62
|
+
index.S.debug("Adding note: ".concat(JSON.stringify(t)));
|
|
63
|
+
var s = svgDrawAf99a425.R.drawNote(n, t, c, a);
|
|
64
|
+
h[s.id] = s, e.setNode(s.id, s), t.class && t.class in u && e.setEdge(t.id, p(t.class), {
|
|
65
|
+
relation: {
|
|
66
|
+
id1: t.id,
|
|
67
|
+
id2: t.class,
|
|
68
|
+
relation: {
|
|
69
|
+
type1: "none",
|
|
70
|
+
type2: "none",
|
|
71
|
+
lineType: 10
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, "DEFAULT");
|
|
75
|
+
}), layoutC5a37d74.zs(e), e.nodes().forEach(function(t) {
|
|
76
|
+
t !== void 0 && e.node(t) !== void 0 && (index.S.debug("Node " + t + ": " + JSON.stringify(e.node(t))), x.select("#" + (a.db.lookUpDomId(t) || t)).attr("transform", "translate(" + (e.node(t).x - e.node(t).width / 2) + "," + (e.node(t).y - e.node(t).height / 2) + " )"));
|
|
77
|
+
}), e.edges().forEach(function(t) {
|
|
78
|
+
t !== void 0 && e.edge(t) !== void 0 && (index.S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t))), svgDrawAf99a425.R.drawEdge(n, e.edge(t), e.edge(t).relation, c, a));
|
|
79
|
+
});
|
|
80
|
+
var f = n.node().getBBox(), E = f.width + g * 2, b = f.height + g * 2;
|
|
81
|
+
index.Yg(n, b, E, c.useMaxWidth);
|
|
82
|
+
var w = "".concat(f.x - g, " ").concat(f.y - g, " ").concat(E, " ").concat(b);
|
|
83
|
+
index.S.debug("viewBox ".concat(w)), n.attr("viewBox", w);
|
|
84
|
+
}, B = {
|
|
85
|
+
draw: $
|
|
86
|
+
}, V = {
|
|
87
|
+
parser: styles659d7242.Lt,
|
|
88
|
+
db: styles659d7242.It,
|
|
89
|
+
renderer: B,
|
|
90
|
+
styles: styles659d7242.xt,
|
|
91
|
+
init: function(r) {
|
|
92
|
+
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute, styles659d7242.It.clear();
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
exports.diagram = V;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { L as Lt, I as It, x as xt } from './styles-659d7242.esm.js';
|
|
2
|
+
import { U as Ut, S, a as At, Y as Yg } from './index.esm2.js';
|
|
3
|
+
import { A, z as zs } from './layout-c5a37d74.esm.js';
|
|
4
|
+
import { R } from './svgDraw-af99a425.esm.js';
|
|
5
|
+
import './line-ce5d1152.esm.js';
|
|
6
|
+
import './array-2ff2c7a6.esm.js';
|
|
7
|
+
import './constant-2fe7eae5.esm.js';
|
|
8
|
+
|
|
9
|
+
var h = {};
|
|
10
|
+
var g = 20, p = function p(r) {
|
|
11
|
+
var o = Object.entries(h).find(function(k) {
|
|
12
|
+
return k[1].label === r;
|
|
13
|
+
});
|
|
14
|
+
if (o) return o[0];
|
|
15
|
+
}, D = function D(r) {
|
|
16
|
+
r.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"), r.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"), r.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"), r.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"), r.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"), r.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"), r.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"), r.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");
|
|
17
|
+
}, $ = function $(r, o, k, a) {
|
|
18
|
+
var c = Ut().class;
|
|
19
|
+
h = {}, S.info("Rendering diagram " + r);
|
|
20
|
+
var L = Ut().securityLevel;
|
|
21
|
+
var y;
|
|
22
|
+
L === "sandbox" && (y = At("#i" + o));
|
|
23
|
+
var x = L === "sandbox" ? At(y.nodes()[0].contentDocument.body) : At("body"), n = x.select("[id='".concat(o, "']"));
|
|
24
|
+
D(n);
|
|
25
|
+
var e = new A({
|
|
26
|
+
multigraph: !0
|
|
27
|
+
});
|
|
28
|
+
e.setGraph({
|
|
29
|
+
isMultiGraph: !0
|
|
30
|
+
}), e.setDefaultEdgeLabel(function() {
|
|
31
|
+
return {};
|
|
32
|
+
});
|
|
33
|
+
var u = a.db.getClasses(), N = Object.keys(u);
|
|
34
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
35
|
+
try {
|
|
36
|
+
for(var _iterator = N[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
37
|
+
var t = _step.value;
|
|
38
|
+
var s = u[t], i = R.drawClass(n, s, c, a);
|
|
39
|
+
h[i.id] = i, e.setNode(i.id, i), S.info("Org height: " + i.height);
|
|
40
|
+
}
|
|
41
|
+
} catch (err) {
|
|
42
|
+
_didIteratorError = true;
|
|
43
|
+
_iteratorError = err;
|
|
44
|
+
} finally{
|
|
45
|
+
try {
|
|
46
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47
|
+
_iterator.return();
|
|
48
|
+
}
|
|
49
|
+
} finally{
|
|
50
|
+
if (_didIteratorError) {
|
|
51
|
+
throw _iteratorError;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
a.db.getRelations().forEach(function(t) {
|
|
56
|
+
S.info("tjoho" + p(t.id1) + p(t.id2) + JSON.stringify(t)), e.setEdge(p(t.id1), p(t.id2), {
|
|
57
|
+
relation: t
|
|
58
|
+
}, t.title || "DEFAULT");
|
|
59
|
+
}), a.db.getNotes().forEach(function(t) {
|
|
60
|
+
S.debug("Adding note: ".concat(JSON.stringify(t)));
|
|
61
|
+
var s = R.drawNote(n, t, c, a);
|
|
62
|
+
h[s.id] = s, e.setNode(s.id, s), t.class && t.class in u && e.setEdge(t.id, p(t.class), {
|
|
63
|
+
relation: {
|
|
64
|
+
id1: t.id,
|
|
65
|
+
id2: t.class,
|
|
66
|
+
relation: {
|
|
67
|
+
type1: "none",
|
|
68
|
+
type2: "none",
|
|
69
|
+
lineType: 10
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}, "DEFAULT");
|
|
73
|
+
}), zs(e), e.nodes().forEach(function(t) {
|
|
74
|
+
t !== void 0 && e.node(t) !== void 0 && (S.debug("Node " + t + ": " + JSON.stringify(e.node(t))), x.select("#" + (a.db.lookUpDomId(t) || t)).attr("transform", "translate(" + (e.node(t).x - e.node(t).width / 2) + "," + (e.node(t).y - e.node(t).height / 2) + " )"));
|
|
75
|
+
}), e.edges().forEach(function(t) {
|
|
76
|
+
t !== void 0 && e.edge(t) !== void 0 && (S.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t))), R.drawEdge(n, e.edge(t), e.edge(t).relation, c, a));
|
|
77
|
+
});
|
|
78
|
+
var f = n.node().getBBox(), E = f.width + g * 2, b = f.height + g * 2;
|
|
79
|
+
Yg(n, b, E, c.useMaxWidth);
|
|
80
|
+
var w = "".concat(f.x - g, " ").concat(f.y - g, " ").concat(E, " ").concat(b);
|
|
81
|
+
S.debug("viewBox ".concat(w)), n.attr("viewBox", w);
|
|
82
|
+
}, B = {
|
|
83
|
+
draw: $
|
|
84
|
+
}, V = {
|
|
85
|
+
parser: Lt,
|
|
86
|
+
db: It,
|
|
87
|
+
renderer: B,
|
|
88
|
+
styles: xt,
|
|
89
|
+
init: function(r) {
|
|
90
|
+
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute, It.clear();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export { V as diagram };
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles659d7242 = require('./styles-659d7242.cjs.js');
|
|
4
|
+
var index = require('./index.cjs2.js');
|
|
5
|
+
var layoutC5a37d74 = require('./layout-c5a37d74.cjs.js');
|
|
6
|
+
var indexD0b453e2 = require('./index-d0b453e2.cjs.js');
|
|
7
|
+
require('./edges-558884ee.cjs.js');
|
|
8
|
+
require('./createText-94e3ebbf.cjs.js');
|
|
9
|
+
require('./svgDraw-af99a425.cjs.js');
|
|
10
|
+
require('./line-ce5d1152.cjs.js');
|
|
11
|
+
require('./array-2ff2c7a6.cjs.js');
|
|
12
|
+
require('./constant-2fe7eae5.cjs.js');
|
|
13
|
+
|
|
14
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
15
|
+
try {
|
|
16
|
+
var info = gen[key](arg);
|
|
17
|
+
var value = info.value;
|
|
18
|
+
} catch (error) {
|
|
19
|
+
reject(error);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (info.done) {
|
|
23
|
+
resolve(value);
|
|
24
|
+
} else {
|
|
25
|
+
Promise.resolve(value).then(_next, _throw);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function _async_to_generator(fn) {
|
|
29
|
+
return function() {
|
|
30
|
+
var self = this, args = arguments;
|
|
31
|
+
return new Promise(function(resolve, reject) {
|
|
32
|
+
var gen = fn.apply(self, args);
|
|
33
|
+
function _next(value) {
|
|
34
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
35
|
+
}
|
|
36
|
+
function _throw(err) {
|
|
37
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
38
|
+
}
|
|
39
|
+
_next(undefined);
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function _define_property(obj, key, value) {
|
|
44
|
+
if (key in obj) {
|
|
45
|
+
Object.defineProperty(obj, key, {
|
|
46
|
+
value: value,
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true,
|
|
49
|
+
writable: true
|
|
50
|
+
});
|
|
51
|
+
} else {
|
|
52
|
+
obj[key] = value;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
}
|
|
56
|
+
function _object_spread(target) {
|
|
57
|
+
for(var i = 1; i < arguments.length; i++){
|
|
58
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
59
|
+
var ownKeys = Object.keys(source);
|
|
60
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
61
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
62
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
ownKeys.forEach(function(key) {
|
|
66
|
+
_define_property(target, key, source[key]);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return target;
|
|
70
|
+
}
|
|
71
|
+
function _ts_generator(thisArg, body) {
|
|
72
|
+
var f, y, t, g, _ = {
|
|
73
|
+
label: 0,
|
|
74
|
+
sent: function() {
|
|
75
|
+
if (t[0] & 1) throw t[1];
|
|
76
|
+
return t[1];
|
|
77
|
+
},
|
|
78
|
+
trys: [],
|
|
79
|
+
ops: []
|
|
80
|
+
};
|
|
81
|
+
return g = {
|
|
82
|
+
next: verb(0),
|
|
83
|
+
"throw": verb(1),
|
|
84
|
+
"return": verb(2)
|
|
85
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
86
|
+
return this;
|
|
87
|
+
}), g;
|
|
88
|
+
function verb(n) {
|
|
89
|
+
return function(v) {
|
|
90
|
+
return step([
|
|
91
|
+
n,
|
|
92
|
+
v
|
|
93
|
+
]);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function step(op) {
|
|
97
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
98
|
+
while(_)try {
|
|
99
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
100
|
+
if (y = 0, t) op = [
|
|
101
|
+
op[0] & 2,
|
|
102
|
+
t.value
|
|
103
|
+
];
|
|
104
|
+
switch(op[0]){
|
|
105
|
+
case 0:
|
|
106
|
+
case 1:
|
|
107
|
+
t = op;
|
|
108
|
+
break;
|
|
109
|
+
case 4:
|
|
110
|
+
_.label++;
|
|
111
|
+
return {
|
|
112
|
+
value: op[1],
|
|
113
|
+
done: false
|
|
114
|
+
};
|
|
115
|
+
case 5:
|
|
116
|
+
_.label++;
|
|
117
|
+
y = op[1];
|
|
118
|
+
op = [
|
|
119
|
+
0
|
|
120
|
+
];
|
|
121
|
+
continue;
|
|
122
|
+
case 7:
|
|
123
|
+
op = _.ops.pop();
|
|
124
|
+
_.trys.pop();
|
|
125
|
+
continue;
|
|
126
|
+
default:
|
|
127
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
128
|
+
_ = 0;
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
132
|
+
_.label = op[1];
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
136
|
+
_.label = t[1];
|
|
137
|
+
t = op;
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
if (t && _.label < t[2]) {
|
|
141
|
+
_.label = t[2];
|
|
142
|
+
_.ops.push(op);
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
if (t[2]) _.ops.pop();
|
|
146
|
+
_.trys.pop();
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
op = body.call(thisArg, _);
|
|
150
|
+
} catch (e) {
|
|
151
|
+
op = [
|
|
152
|
+
6,
|
|
153
|
+
e
|
|
154
|
+
];
|
|
155
|
+
y = 0;
|
|
156
|
+
} finally{
|
|
157
|
+
f = t = 0;
|
|
158
|
+
}
|
|
159
|
+
if (op[0] & 5) throw op[1];
|
|
160
|
+
return {
|
|
161
|
+
value: op[0] ? op[1] : void 0,
|
|
162
|
+
done: true
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
var S = function(o) {
|
|
167
|
+
return index.Bn.sanitizeText(o, index.Ut());
|
|
168
|
+
};
|
|
169
|
+
var v = {
|
|
170
|
+
dividerMargin: 10,
|
|
171
|
+
padding: 5,
|
|
172
|
+
textHeight: 10,
|
|
173
|
+
curve: void 0
|
|
174
|
+
};
|
|
175
|
+
var q = function q(o, t, p, n) {
|
|
176
|
+
var e = Object.keys(o);
|
|
177
|
+
index.S.info("keys:", e), index.S.info(o), e.forEach(function(s) {
|
|
178
|
+
var y, d;
|
|
179
|
+
var _ref;
|
|
180
|
+
var l = o[s], i = {
|
|
181
|
+
shape: "rect",
|
|
182
|
+
id: l.id,
|
|
183
|
+
domId: l.domId,
|
|
184
|
+
labelText: S(l.id),
|
|
185
|
+
labelStyle: "",
|
|
186
|
+
style: "fill: none; stroke: black",
|
|
187
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
188
|
+
padding: (_ref = (y = index.Ut().flowchart) == null ? void 0 : y.padding) !== null && _ref !== void 0 ? _ref : (d = index.Ut().class) == null ? void 0 : d.padding
|
|
189
|
+
};
|
|
190
|
+
t.setNode(l.id, i), I(l.classes, t, p, n, l.id), index.S.info("setNode", i);
|
|
191
|
+
});
|
|
192
|
+
}, I = function I(o, t, p, n, e) {
|
|
193
|
+
var s = Object.keys(o);
|
|
194
|
+
index.S.info("keys:", s), index.S.info(o), s.filter(function(l) {
|
|
195
|
+
return o[l].parent == e;
|
|
196
|
+
}).forEach(function(l) {
|
|
197
|
+
var u, m;
|
|
198
|
+
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 = {
|
|
203
|
+
labelStyle: y.labelStyle,
|
|
204
|
+
shape: h,
|
|
205
|
+
labelText: S(d),
|
|
206
|
+
classData: a,
|
|
207
|
+
rx: f,
|
|
208
|
+
ry: f,
|
|
209
|
+
class: i,
|
|
210
|
+
style: y.style,
|
|
211
|
+
id: a.id,
|
|
212
|
+
domId: a.domId,
|
|
213
|
+
tooltip: n.db.getTooltip(a.id, e) || "",
|
|
214
|
+
haveCallback: a.haveCallback,
|
|
215
|
+
link: a.link,
|
|
216
|
+
width: a.type === "group" ? 500 : void 0,
|
|
217
|
+
type: a.type,
|
|
218
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
219
|
+
padding: (_ref = (u = index.Ut().flowchart) == null ? void 0 : u.padding) !== null && _ref !== void 0 ? _ref : (m = index.Ut().class) == null ? void 0 : m.padding
|
|
220
|
+
};
|
|
221
|
+
t.setNode(a.id, b), e && t.setParent(a.id, e), index.S.info("setNode", b);
|
|
222
|
+
});
|
|
223
|
+
}, F = function F(o, t, p, n) {
|
|
224
|
+
index.S.info(o), o.forEach(function(e, s) {
|
|
225
|
+
var m, x;
|
|
226
|
+
var _ref;
|
|
227
|
+
var l = e, a = "", i = {
|
|
228
|
+
labelStyle: "",
|
|
229
|
+
style: ""
|
|
230
|
+
}, y = l.text, d = 0, f = "note", h = {
|
|
231
|
+
labelStyle: i.labelStyle,
|
|
232
|
+
shape: f,
|
|
233
|
+
labelText: S(y),
|
|
234
|
+
noteData: l,
|
|
235
|
+
rx: d,
|
|
236
|
+
ry: d,
|
|
237
|
+
class: a,
|
|
238
|
+
style: i.style,
|
|
239
|
+
id: l.id,
|
|
240
|
+
domId: l.id,
|
|
241
|
+
tooltip: "",
|
|
242
|
+
type: "note",
|
|
243
|
+
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
244
|
+
padding: (_ref = (m = index.Ut().flowchart) == null ? void 0 : m.padding) !== null && _ref !== void 0 ? _ref : (x = index.Ut().class) == null ? void 0 : x.padding
|
|
245
|
+
};
|
|
246
|
+
if (t.setNode(l.id, h), index.S.info("setNode", h), !l.class || !(l.class in n)) return;
|
|
247
|
+
var b = p + s, u = {
|
|
248
|
+
id: "edgeNote".concat(b),
|
|
249
|
+
//Set relationship style and line type
|
|
250
|
+
classes: "relation",
|
|
251
|
+
pattern: "dotted",
|
|
252
|
+
// Set link type for rendering
|
|
253
|
+
arrowhead: "none",
|
|
254
|
+
//Set edge extra labels
|
|
255
|
+
startLabelRight: "",
|
|
256
|
+
endLabelLeft: "",
|
|
257
|
+
//Set relation arrow types
|
|
258
|
+
arrowTypeStart: "none",
|
|
259
|
+
arrowTypeEnd: "none",
|
|
260
|
+
style: "fill:none",
|
|
261
|
+
labelStyle: "",
|
|
262
|
+
curve: index.y0(v.curve, index.gf)
|
|
263
|
+
};
|
|
264
|
+
t.setEdge(l.id, l.class, u, b);
|
|
265
|
+
});
|
|
266
|
+
}, H = function H(o, t) {
|
|
267
|
+
var p = index.Ut().flowchart;
|
|
268
|
+
var n = 0;
|
|
269
|
+
o.forEach(function(e) {
|
|
270
|
+
var l;
|
|
271
|
+
n++;
|
|
272
|
+
var s = {
|
|
273
|
+
//Set relationship style and line type
|
|
274
|
+
classes: "relation",
|
|
275
|
+
pattern: e.relation.lineType == 1 ? "dashed" : "solid",
|
|
276
|
+
id: "id" + n,
|
|
277
|
+
// Set link type for rendering
|
|
278
|
+
arrowhead: e.type === "arrow_open" ? "none" : "normal",
|
|
279
|
+
//Set edge extra labels
|
|
280
|
+
startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
|
|
281
|
+
endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
|
|
282
|
+
//Set relation arrow types
|
|
283
|
+
arrowTypeStart: D(e.relation.type1),
|
|
284
|
+
arrowTypeEnd: D(e.relation.type2),
|
|
285
|
+
style: "fill:none",
|
|
286
|
+
labelStyle: "",
|
|
287
|
+
curve: index.y0(p == null ? void 0 : p.curve, index.gf)
|
|
288
|
+
};
|
|
289
|
+
if (index.S.info(s, e), e.style !== void 0) {
|
|
290
|
+
var a = index.v0(e.style);
|
|
291
|
+
s.style = a.style, s.labelStyle = a.labelStyle;
|
|
292
|
+
}
|
|
293
|
+
var _ref;
|
|
294
|
+
e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((_ref = (l = index.Ut().flowchart) == null ? void 0 : l.htmlLabels) !== null && _ref !== void 0 ? _ref : index.Ut().htmlLabels) ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(index.Bn.lineBreakRegex, "\n"), 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, n);
|
|
295
|
+
});
|
|
296
|
+
}, V = function V(o) {
|
|
297
|
+
v = _object_spread({}, v, o);
|
|
298
|
+
}, W = function() {
|
|
299
|
+
var _ref = _async_to_generator(function(o, t, p, n) {
|
|
300
|
+
var _r_flowchart, e, s, _ref, _ref1, l, a, i, y, d, f, h, b, u, m, x, _ref2, T, M, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, w, L, g;
|
|
301
|
+
return _ts_generator(this, function(_state) {
|
|
302
|
+
switch(_state.label){
|
|
303
|
+
case 0:
|
|
304
|
+
index.S.info("Drawing class - ", t);
|
|
305
|
+
e = (_r_flowchart = index.Ut().flowchart) !== null && _r_flowchart !== void 0 ? _r_flowchart : index.Ut().class, s = index.Ut().securityLevel;
|
|
306
|
+
index.S.info("config:", e);
|
|
307
|
+
l = (_ref = e == null ? void 0 : e.nodeSpacing) !== null && _ref !== void 0 ? _ref : 50, a = (_ref1 = e == null ? void 0 : e.rankSpacing) !== null && _ref1 !== void 0 ? _ref1 : 50, i = new layoutC5a37d74.A({
|
|
308
|
+
multigraph: !0,
|
|
309
|
+
compound: !0
|
|
310
|
+
}).setGraph({
|
|
311
|
+
rankdir: n.db.getDirection(),
|
|
312
|
+
nodesep: l,
|
|
313
|
+
ranksep: a,
|
|
314
|
+
marginx: 8,
|
|
315
|
+
marginy: 8
|
|
316
|
+
}).setDefaultEdgeLabel(function() {
|
|
317
|
+
return {};
|
|
318
|
+
}), y = n.db.getNamespaces(), d = n.db.getClasses(), f = n.db.getRelations(), h = n.db.getNotes();
|
|
319
|
+
index.S.info(f), q(y, i, t, n), I(d, i, t, n), H(f, i), F(h, i, f.length + 1, d);
|
|
320
|
+
s === "sandbox" && (b = index.At("#i" + t));
|
|
321
|
+
u = s === "sandbox" ? index.At(b.nodes()[0].contentDocument.body) : index.At("body"), m = u.select('[id="'.concat(t, '"]')), x = u.select("#" + t + " g");
|
|
322
|
+
return [
|
|
323
|
+
4,
|
|
324
|
+
indexD0b453e2.gt(x, i, [
|
|
325
|
+
"aggregation",
|
|
326
|
+
"extension",
|
|
327
|
+
"composition",
|
|
328
|
+
"dependency",
|
|
329
|
+
"lollipop"
|
|
330
|
+
], "classDiagram", t)
|
|
331
|
+
];
|
|
332
|
+
case 1:
|
|
333
|
+
if (_state.sent(), index.Oi.insertTitle(m, "classTitleText", (_ref2 = e == null ? void 0 : e.titleTopMargin) !== null && _ref2 !== void 0 ? _ref2 : 5, n.db.getDiagramTitle()), index.Gg(i, m, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
334
|
+
T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
|
|
335
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
336
|
+
try {
|
|
337
|
+
for(_iterator = M[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
338
|
+
w = _step.value;
|
|
339
|
+
L = w.getBBox(), g = T.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
340
|
+
g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width", L.width), g.setAttribute("height", L.height), w.insertBefore(g, w.firstChild);
|
|
341
|
+
}
|
|
342
|
+
} catch (err) {
|
|
343
|
+
_didIteratorError = true;
|
|
344
|
+
_iteratorError = err;
|
|
345
|
+
} finally{
|
|
346
|
+
try {
|
|
347
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
348
|
+
_iterator.return();
|
|
349
|
+
}
|
|
350
|
+
} finally{
|
|
351
|
+
if (_didIteratorError) {
|
|
352
|
+
throw _iteratorError;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return [
|
|
358
|
+
2
|
|
359
|
+
];
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
return function W(o, t, p, n) {
|
|
364
|
+
return _ref.apply(this, arguments);
|
|
365
|
+
};
|
|
366
|
+
}();
|
|
367
|
+
function D(o) {
|
|
368
|
+
var t;
|
|
369
|
+
switch(o){
|
|
370
|
+
case 0:
|
|
371
|
+
t = "aggregation";
|
|
372
|
+
break;
|
|
373
|
+
case 1:
|
|
374
|
+
t = "extension";
|
|
375
|
+
break;
|
|
376
|
+
case 2:
|
|
377
|
+
t = "composition";
|
|
378
|
+
break;
|
|
379
|
+
case 3:
|
|
380
|
+
t = "dependency";
|
|
381
|
+
break;
|
|
382
|
+
case 4:
|
|
383
|
+
t = "lollipop";
|
|
384
|
+
break;
|
|
385
|
+
default:
|
|
386
|
+
t = "none";
|
|
387
|
+
}
|
|
388
|
+
return t;
|
|
389
|
+
}
|
|
390
|
+
var J = {
|
|
391
|
+
setConf: V,
|
|
392
|
+
draw: W
|
|
393
|
+
}, se = {
|
|
394
|
+
parser: styles659d7242.Lt,
|
|
395
|
+
db: styles659d7242.It,
|
|
396
|
+
renderer: J,
|
|
397
|
+
styles: styles659d7242.xt,
|
|
398
|
+
init: function(o) {
|
|
399
|
+
o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute, styles659d7242.It.clear();
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
exports.diagram = se;
|