@digipair/skill-web-chatbot 0.8.37 → 0.8.39

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 (129) hide show
  1. package/Tableau10-558cc280.cjs.js +9 -0
  2. package/Tableau10-558cc280.esm.js +7 -0
  3. package/arc-d1f6357e.cjs.js +88 -0
  4. package/arc-d1f6357e.esm.js +86 -0
  5. package/blockDiagram-5dc23a45.cjs.js +2921 -0
  6. package/blockDiagram-5dc23a45.esm.js +2919 -0
  7. package/{c4Diagram-1bdb45a8.cjs.js → c4Diagram-1e775db3.cjs.js} +1904 -2130
  8. package/{c4Diagram-1bdb45a8.esm.js → c4Diagram-1e775db3.esm.js} +1906 -2132
  9. package/channel-ebbc4130.cjs.js +9 -0
  10. package/channel-ebbc4130.esm.js +7 -0
  11. package/classDiagram-f52caa06.cjs.js +209 -0
  12. package/classDiagram-f52caa06.esm.js +207 -0
  13. package/{classDiagram-v2-6dc3b9c3.cjs.js → classDiagram-v2-640c694e.cjs.js} +74 -76
  14. package/{classDiagram-v2-6dc3b9c3.esm.js → classDiagram-v2-640c694e.esm.js} +75 -77
  15. package/clone-afc2f047.cjs.js +10 -0
  16. package/clone-afc2f047.esm.js +8 -0
  17. package/createText-03b82060.cjs.js +2936 -0
  18. package/createText-03b82060.esm.js +2933 -0
  19. package/edges-16357fde.cjs.js +1998 -0
  20. package/edges-16357fde.esm.js +1981 -0
  21. package/erDiagram-c7ff1bec.cjs.js +1807 -0
  22. package/erDiagram-c7ff1bec.esm.js +1805 -0
  23. package/flowDb-9a89ea33.cjs.js +5542 -0
  24. package/flowDb-9a89ea33.esm.js +5538 -0
  25. package/flowDiagram-aadb13b0.cjs.js +1351 -0
  26. package/flowDiagram-aadb13b0.esm.js +1349 -0
  27. package/flowDiagram-v2-f2119625.cjs.js +31 -0
  28. package/flowDiagram-v2-f2119625.esm.js +29 -0
  29. package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
  30. package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
  31. package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
  32. package/ganttDiagram-3c2fde2b.esm.js +3708 -0
  33. package/{gitGraphDiagram-c3fe571f.cjs.js → gitGraphDiagram-c3a0619c.cjs.js} +1608 -1651
  34. package/{gitGraphDiagram-c3fe571f.esm.js → gitGraphDiagram-c3a0619c.esm.js} +1609 -1652
  35. package/graph-0ee63739.cjs.js +961 -0
  36. package/graph-0ee63739.esm.js +938 -0
  37. package/index-bb6d8841.cjs.js +648 -0
  38. package/index-bb6d8841.esm.js +646 -0
  39. package/index.cjs2.js +5410 -4623
  40. package/index.esm.js +1 -1
  41. package/index.esm2.js +5291 -4527
  42. package/{infoDiagram-9c10eab1.cjs.js → infoDiagram-2f5c50c0.cjs.js} +63 -70
  43. package/{infoDiagram-9c10eab1.esm.js → infoDiagram-2f5c50c0.esm.js} +64 -71
  44. package/journeyDiagram-14fe341a.cjs.js +1061 -0
  45. package/journeyDiagram-14fe341a.esm.js +1059 -0
  46. package/katex-d90b6d29.cjs.js +25690 -0
  47. package/katex-d90b6d29.esm.js +25688 -0
  48. package/layout-fd473db2.cjs.js +1626 -0
  49. package/layout-fd473db2.esm.js +1619 -0
  50. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -2
  51. package/line-24d93f1b.cjs.js +34 -0
  52. package/line-24d93f1b.esm.js +32 -0
  53. package/linear-9bcf74c4.cjs.js +537 -0
  54. package/linear-9bcf74c4.esm.js +531 -0
  55. package/{mindmap-definition-a9d0f378.cjs.js → mindmap-definition-9399c7e6.cjs.js} +7874 -7610
  56. package/{mindmap-definition-a9d0f378.esm.js → mindmap-definition-9399c7e6.esm.js} +7875 -7611
  57. package/package.json +1 -1
  58. package/path-428ebac9.cjs.js +317 -0
  59. package/path-428ebac9.esm.js +314 -0
  60. package/pieDiagram-828dae43.cjs.js +951 -0
  61. package/pieDiagram-828dae43.esm.js +949 -0
  62. package/{quadrantDiagram-1763608a.cjs.js → quadrantDiagram-5fa00455.cjs.js} +1117 -1340
  63. package/{quadrantDiagram-1763608a.esm.js → quadrantDiagram-5fa00455.esm.js} +1118 -1341
  64. package/{requirementDiagram-779d93b3.cjs.js → requirementDiagram-03163dc4.cjs.js} +1044 -1228
  65. package/{requirementDiagram-779d93b3.esm.js → requirementDiagram-03163dc4.esm.js} +1045 -1229
  66. package/{sankeyDiagram-86a66bae.cjs.js → sankeyDiagram-52ec8976.cjs.js} +337 -339
  67. package/{sankeyDiagram-86a66bae.esm.js → sankeyDiagram-52ec8976.esm.js} +338 -340
  68. package/sequenceDiagram-b517d154.cjs.js +5949 -0
  69. package/sequenceDiagram-b517d154.esm.js +5947 -0
  70. package/{stateDiagram-6f4bb19d.cjs.js → stateDiagram-fca82b5b.cjs.js} +62 -61
  71. package/{stateDiagram-6f4bb19d.esm.js → stateDiagram-fca82b5b.esm.js} +65 -64
  72. package/{stateDiagram-v2-d72c79bd.cjs.js → stateDiagram-v2-ed04200a.cjs.js} +96 -100
  73. package/{stateDiagram-v2-d72c79bd.esm.js → stateDiagram-v2-ed04200a.esm.js} +98 -102
  74. package/{styles-659d7242.cjs.js → styles-11e81fdd.cjs.js} +1990 -1965
  75. package/{styles-659d7242.esm.js → styles-11e81fdd.esm.js} +1989 -1964
  76. package/{styles-3fb7b9cf.cjs.js → styles-cacbff60.cjs.js} +935 -1192
  77. package/{styles-3fb7b9cf.esm.js → styles-cacbff60.esm.js} +929 -1186
  78. package/styles-e75131e4.cjs.js +671 -0
  79. package/styles-e75131e4.esm.js +661 -0
  80. package/svgDrawCommon-ecc5f780.cjs.js +68 -0
  81. package/svgDrawCommon-ecc5f780.esm.js +60 -0
  82. package/timeline-definition-4ee9bff4.cjs.js +1161 -0
  83. package/timeline-definition-4ee9bff4.esm.js +1159 -0
  84. package/xychartDiagram-e5e6b652.cjs.js +3150 -0
  85. package/xychartDiagram-e5e6b652.esm.js +3148 -0
  86. package/arc-da8fd8d8.cjs.js +0 -88
  87. package/arc-da8fd8d8.esm.js +0 -86
  88. package/classDiagram-185c1a10.cjs.js +0 -96
  89. package/classDiagram-185c1a10.esm.js +0 -94
  90. package/constant-2fe7eae5.cjs.js +0 -58
  91. package/constant-2fe7eae5.esm.js +0 -55
  92. package/createText-94e3ebbf.cjs.js +0 -2775
  93. package/createText-94e3ebbf.esm.js +0 -2773
  94. package/edges-558884ee.cjs.js +0 -1450
  95. package/edges-558884ee.esm.js +0 -1436
  96. package/erDiagram-97139f44.cjs.js +0 -1949
  97. package/erDiagram-97139f44.esm.js +0 -1947
  98. package/flowDb-a4faf166.cjs.js +0 -6918
  99. package/flowDb-a4faf166.esm.js +0 -6914
  100. package/flowDiagram-ccbbb58d.cjs.js +0 -999
  101. package/flowDiagram-ccbbb58d.esm.js +0 -997
  102. package/flowDiagram-v2-79ccd6da.cjs.js +0 -29
  103. package/flowDiagram-v2-79ccd6da.esm.js +0 -27
  104. package/flowchart-elk-definition-7863a61f.cjs.js +0 -48577
  105. package/flowchart-elk-definition-7863a61f.esm.js +0 -48575
  106. package/ganttDiagram-3eff0dd8.cjs.js +0 -3855
  107. package/ganttDiagram-3eff0dd8.esm.js +0 -3853
  108. package/index-d0b453e2.cjs.js +0 -609
  109. package/index-d0b453e2.esm.js +0 -607
  110. package/journeyDiagram-b6904cec.cjs.js +0 -1292
  111. package/journeyDiagram-b6904cec.esm.js +0 -1290
  112. package/layout-c5a37d74.cjs.js +0 -2808
  113. package/layout-c5a37d74.esm.js +0 -2795
  114. package/line-ce5d1152.cjs.js +0 -34
  115. package/line-ce5d1152.esm.js +0 -32
  116. package/linear-db016d0c.cjs.js +0 -485
  117. package/linear-db016d0c.esm.js +0 -479
  118. package/pieDiagram-fd367f1f.cjs.js +0 -1157
  119. package/pieDiagram-fd367f1f.esm.js +0 -1155
  120. package/sequenceDiagram-169f11ec.cjs.js +0 -4805
  121. package/sequenceDiagram-169f11ec.esm.js +0 -4803
  122. package/styles-3814544c.cjs.js +0 -534
  123. package/styles-3814544c.esm.js +0 -524
  124. package/svgDraw-af99a425.cjs.js +0 -144
  125. package/svgDraw-af99a425.esm.js +0 -141
  126. package/svgDrawCommon-ebe6c236.cjs.js +0 -70
  127. package/svgDrawCommon-ebe6c236.esm.js +0 -62
  128. package/timeline-definition-65183566.cjs.js +0 -1394
  129. package/timeline-definition-65183566.esm.js +0 -1392
@@ -1,524 +0,0 @@
1
- import { X as Xt, A } from './layout-c5a37d74.esm.js';
2
- import { v as v0, S, i as ia, U as Ut, B as Bn, y as y0, g as gf, Z as mt, _ as ks, a0 as ah, a1 as Ue, H as Ha, a2 as I, a3 as Ot, f as Oi, G as Gg, a as At } from './index.esm2.js';
3
- import { J as Je } from './flowDb-a4faf166.esm.js';
4
- import { g as gt } from './index-d0b453e2.esm.js';
5
-
6
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
7
- try {
8
- var info = gen[key](arg);
9
- var value = info.value;
10
- } catch (error) {
11
- reject(error);
12
- return;
13
- }
14
- if (info.done) {
15
- resolve(value);
16
- } else {
17
- Promise.resolve(value).then(_next, _throw);
18
- }
19
- }
20
- function _async_to_generator(fn) {
21
- return function() {
22
- var self = this, args = arguments;
23
- return new Promise(function(resolve, reject) {
24
- var gen = fn.apply(self, args);
25
- function _next(value) {
26
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
27
- }
28
- function _throw(err) {
29
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
30
- }
31
- _next(undefined);
32
- });
33
- };
34
- }
35
- function _type_of(obj) {
36
- "@swc/helpers - typeof";
37
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
38
- }
39
- function _ts_generator(thisArg, body) {
40
- var f, y, t, g, _ = {
41
- label: 0,
42
- sent: function() {
43
- if (t[0] & 1) throw t[1];
44
- return t[1];
45
- },
46
- trys: [],
47
- ops: []
48
- };
49
- return g = {
50
- next: verb(0),
51
- "throw": verb(1),
52
- "return": verb(2)
53
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
54
- return this;
55
- }), g;
56
- function verb(n) {
57
- return function(v) {
58
- return step([
59
- n,
60
- v
61
- ]);
62
- };
63
- }
64
- function step(op) {
65
- if (f) throw new TypeError("Generator is already executing.");
66
- while(_)try {
67
- 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;
68
- if (y = 0, t) op = [
69
- op[0] & 2,
70
- t.value
71
- ];
72
- switch(op[0]){
73
- case 0:
74
- case 1:
75
- t = op;
76
- break;
77
- case 4:
78
- _.label++;
79
- return {
80
- value: op[1],
81
- done: false
82
- };
83
- case 5:
84
- _.label++;
85
- y = op[1];
86
- op = [
87
- 0
88
- ];
89
- continue;
90
- case 7:
91
- op = _.ops.pop();
92
- _.trys.pop();
93
- continue;
94
- default:
95
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
96
- _ = 0;
97
- continue;
98
- }
99
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
100
- _.label = op[1];
101
- break;
102
- }
103
- if (op[0] === 6 && _.label < t[1]) {
104
- _.label = t[1];
105
- t = op;
106
- break;
107
- }
108
- if (t && _.label < t[2]) {
109
- _.label = t[2];
110
- _.ops.push(op);
111
- break;
112
- }
113
- if (t[2]) _.ops.pop();
114
- _.trys.pop();
115
- continue;
116
- }
117
- op = body.call(thisArg, _);
118
- } catch (e) {
119
- op = [
120
- 6,
121
- e
122
- ];
123
- y = 0;
124
- } finally{
125
- f = t = 0;
126
- }
127
- if (op[0] & 5) throw op[1];
128
- return {
129
- value: op[0] ? op[1] : void 0,
130
- done: true
131
- };
132
- }
133
- }
134
- function j(e) {
135
- return typeof e == "string" ? new mt([
136
- document.querySelectorAll(e)
137
- ], [
138
- document.documentElement
139
- ]) : new mt([
140
- ah(e)
141
- ], ks);
142
- }
143
- var O = function(e, l) {
144
- return I.lang.round(Ot.parse(e)[l]);
145
- }, ee = O;
146
- function ue(e, l) {
147
- return !!e.children(l).length;
148
- }
149
- function we(e) {
150
- return L(e.v) + ":" + L(e.w) + ":" + L(e.name);
151
- }
152
- var te = /:/g;
153
- function L(e) {
154
- return e ? String(e).replace(te, "\\:") : "";
155
- }
156
- function re(e, l) {
157
- l && e.attr("style", l);
158
- }
159
- function he(e, l, c) {
160
- l && e.attr("class", l).attr("class", c + " " + e.attr("class"));
161
- }
162
- function ye(e, l) {
163
- var c = l.graph();
164
- if (Xt(c)) {
165
- var a = c.transition;
166
- if (Ha(a)) return a(e);
167
- }
168
- return e;
169
- }
170
- function le(e, l) {
171
- var c = e.append("foreignObject").attr("width", "100000"), a = c.append("xhtml:div");
172
- a.attr("xmlns", "http://www.w3.org/1999/xhtml");
173
- var i = l.label;
174
- switch(typeof i === "undefined" ? "undefined" : _type_of(i)){
175
- case "function":
176
- a.insert(i);
177
- break;
178
- case "object":
179
- a.insert(function() {
180
- return i;
181
- });
182
- break;
183
- default:
184
- a.html(i);
185
- }
186
- re(a, l.labelStyle), a.style("display", "inline-block"), a.style("white-space", "nowrap");
187
- var d = a.node().getBoundingClientRect();
188
- return c.attr("width", d.width).attr("height", d.height), c;
189
- }
190
- var z = {}, ae = function ae(e) {
191
- var l = Object.keys(e);
192
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
193
- try {
194
- for(var _iterator = l[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
195
- var c = _step.value;
196
- z[c] = e[c];
197
- }
198
- } catch (err) {
199
- _didIteratorError = true;
200
- _iteratorError = err;
201
- } finally{
202
- try {
203
- if (!_iteratorNormalCompletion && _iterator.return != null) {
204
- _iterator.return();
205
- }
206
- } finally{
207
- if (_didIteratorError) {
208
- throw _iteratorError;
209
- }
210
- }
211
- }
212
- }, q = function q(e, l, c, a, i, d) {
213
- var w = a.select('[id="'.concat(c, '"]'));
214
- Object.keys(e).forEach(function(f) {
215
- var r = e[f];
216
- var g = "default";
217
- r.classes.length > 0 && (g = r.classes.join(" ")), g = g + " flowchart-label";
218
- var h = v0(r.styles);
219
- var t = r.text !== void 0 ? r.text : r.id, s;
220
- if (S.info("vertex", r, r.labelType), r.labelType === "markdown") S.info("vertex", r, r.labelType);
221
- else if (ia(Ut().flowchart.htmlLabels)) {
222
- var m = {
223
- label: t.replace(/fa[blrs]?:fa-[\w-]+/g, function(k) {
224
- return "<i class='".concat(k.replace(":", " "), "'></i>");
225
- })
226
- };
227
- s = le(w, m).node(), s.parentNode.removeChild(s);
228
- } else {
229
- var m1 = i.createElementNS("http://www.w3.org/2000/svg", "text");
230
- m1.setAttribute("style", h.labelStyle.replace("color:", "fill:"));
231
- var k = t.split(Bn.lineBreakRegex);
232
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
233
- try {
234
- for(var _iterator = k[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
235
- var T = _step.value;
236
- var S$1 = i.createElementNS("http://www.w3.org/2000/svg", "tspan");
237
- S$1.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), S$1.setAttribute("dy", "1em"), S$1.setAttribute("x", "1"), S$1.textContent = T, m1.appendChild(S$1);
238
- }
239
- } catch (err) {
240
- _didIteratorError = true;
241
- _iteratorError = err;
242
- } finally{
243
- try {
244
- if (!_iteratorNormalCompletion && _iterator.return != null) {
245
- _iterator.return();
246
- }
247
- } finally{
248
- if (_didIteratorError) {
249
- throw _iteratorError;
250
- }
251
- }
252
- }
253
- s = m1;
254
- }
255
- var p = 0, n = "";
256
- switch(r.type){
257
- case "round":
258
- p = 5, n = "rect";
259
- break;
260
- case "square":
261
- n = "rect";
262
- break;
263
- case "diamond":
264
- n = "question";
265
- break;
266
- case "hexagon":
267
- n = "hexagon";
268
- break;
269
- case "odd":
270
- n = "rect_left_inv_arrow";
271
- break;
272
- case "lean_right":
273
- n = "lean_right";
274
- break;
275
- case "lean_left":
276
- n = "lean_left";
277
- break;
278
- case "trapezoid":
279
- n = "trapezoid";
280
- break;
281
- case "inv_trapezoid":
282
- n = "inv_trapezoid";
283
- break;
284
- case "odd_right":
285
- n = "rect_left_inv_arrow";
286
- break;
287
- case "circle":
288
- n = "circle";
289
- break;
290
- case "ellipse":
291
- n = "ellipse";
292
- break;
293
- case "stadium":
294
- n = "stadium";
295
- break;
296
- case "subroutine":
297
- n = "subroutine";
298
- break;
299
- case "cylinder":
300
- n = "cylinder";
301
- break;
302
- case "group":
303
- n = "rect";
304
- break;
305
- case "doublecircle":
306
- n = "doublecircle";
307
- break;
308
- default:
309
- n = "rect";
310
- }
311
- l.setNode(r.id, {
312
- labelStyle: h.labelStyle,
313
- shape: n,
314
- labelText: t,
315
- labelType: r.labelType,
316
- rx: p,
317
- ry: p,
318
- class: g,
319
- style: h.style,
320
- id: r.id,
321
- link: r.link,
322
- linkTarget: r.linkTarget,
323
- tooltip: d.db.getTooltip(r.id) || "",
324
- domId: d.db.lookUpDomId(r.id),
325
- haveCallback: r.haveCallback,
326
- width: r.type === "group" ? 500 : void 0,
327
- dir: r.dir,
328
- type: r.type,
329
- props: r.props,
330
- padding: Ut().flowchart.padding
331
- }), S.info("setNode", {
332
- labelStyle: h.labelStyle,
333
- labelType: r.labelType,
334
- shape: n,
335
- labelText: t,
336
- rx: p,
337
- ry: p,
338
- class: g,
339
- style: h.style,
340
- id: r.id,
341
- domId: d.db.lookUpDomId(r.id),
342
- width: r.type === "group" ? 500 : void 0,
343
- type: r.type,
344
- dir: r.dir,
345
- props: r.props,
346
- padding: Ut().flowchart.padding
347
- });
348
- });
349
- }, P = function P(e, l, c) {
350
- S.info("abc78 edges = ", e);
351
- var a = 0, i = {}, d, w;
352
- if (e.defaultStyle !== void 0) {
353
- var o = v0(e.defaultStyle);
354
- d = o.style, w = o.labelStyle;
355
- }
356
- e.forEach(function(o) {
357
- a++;
358
- var f = "L-" + o.start + "-" + o.end;
359
- i[f] === void 0 ? (i[f] = 0, S.info("abc78 new entry", f, i[f])) : (i[f]++, S.info("abc78 new entry", f, i[f]));
360
- var r = f + "-" + i[f];
361
- S.info("abc78 new link id to be used is", f, r, i[f]);
362
- var g = "LS-" + o.start, h = "LE-" + o.end, t = {
363
- style: "",
364
- labelStyle: ""
365
- };
366
- switch(t.minlen = o.length || 1, o.type === "arrow_open" ? t.arrowhead = "none" : t.arrowhead = "normal", t.arrowTypeStart = "arrow_open", t.arrowTypeEnd = "arrow_open", o.type){
367
- case "double_arrow_cross":
368
- t.arrowTypeStart = "arrow_cross";
369
- case "arrow_cross":
370
- t.arrowTypeEnd = "arrow_cross";
371
- break;
372
- case "double_arrow_point":
373
- t.arrowTypeStart = "arrow_point";
374
- case "arrow_point":
375
- t.arrowTypeEnd = "arrow_point";
376
- break;
377
- case "double_arrow_circle":
378
- t.arrowTypeStart = "arrow_circle";
379
- case "arrow_circle":
380
- t.arrowTypeEnd = "arrow_circle";
381
- break;
382
- }
383
- var s = "", p = "";
384
- switch(o.stroke){
385
- case "normal":
386
- s = "fill:none;", d !== void 0 && (s = d), w !== void 0 && (p = w), t.thickness = "normal", t.pattern = "solid";
387
- break;
388
- case "dotted":
389
- t.thickness = "normal", t.pattern = "dotted", t.style = "fill:none;stroke-width:2px;stroke-dasharray:3;";
390
- break;
391
- case "thick":
392
- t.thickness = "thick", t.pattern = "solid", t.style = "stroke-width: 3.5px;fill:none;";
393
- break;
394
- case "invisible":
395
- t.thickness = "invisible", t.pattern = "solid", t.style = "stroke-width: 0;fill:none;";
396
- break;
397
- }
398
- if (o.style !== void 0) {
399
- var n = v0(o.style);
400
- s = n.style, p = n.labelStyle;
401
- }
402
- t.style = t.style += s, t.labelStyle = t.labelStyle += p, o.interpolate !== void 0 ? t.curve = y0(o.interpolate, gf) : e.defaultInterpolate !== void 0 ? t.curve = y0(e.defaultInterpolate, gf) : t.curve = y0(z.curve, gf), o.text === void 0 ? o.style !== void 0 && (t.arrowheadStyle = "fill: #333") : (t.arrowheadStyle = "fill: #333", t.labelpos = "c"), t.labelType = o.labelType, t.label = o.text.replace(Bn.lineBreakRegex, "\n"), o.style === void 0 && (t.style = t.style || "stroke: #333; stroke-width: 1.5px;fill:none;"), t.labelStyle = t.labelStyle.replace("color:", "fill:"), t.id = r, t.classes = "flowchart-link " + g + " " + h, l.setEdge(o.start, o.end, t, a);
403
- });
404
- }, ne = function ne(e, l) {
405
- S.info("Extracting classes"), l.db.clear();
406
- try {
407
- return l.parse(e), l.db.getClasses();
408
- } catch (e) {
409
- return;
410
- }
411
- }, oe = function() {
412
- var _ref = _async_to_generator(function(e, l, c, a) {
413
- var i, _C, d, w, o, f, r, g, h, t, s, p, b, n, m, k, b1, T, S$1, b2, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, x, v, y;
414
- return _ts_generator(this, function(_state) {
415
- switch(_state.label){
416
- case 0:
417
- S.info("Drawing flowchart"), a.db.clear(), Je.setGen("gen-2"), a.parser.parse(e);
418
- i = a.db.getDirection();
419
- i === void 0 && (i = "TD");
420
- _C = Ut(), d = _C.securityLevel, w = _C.flowchart, o = w.nodeSpacing || 50, f = w.rankSpacing || 50;
421
- d === "sandbox" && (r = At("#i" + l));
422
- g = d === "sandbox" ? At(r.nodes()[0].contentDocument.body) : At("body"), h = d === "sandbox" ? r.nodes()[0].contentDocument : document, t = new A({
423
- multigraph: !0,
424
- compound: !0
425
- }).setGraph({
426
- rankdir: i,
427
- nodesep: o,
428
- ranksep: f,
429
- marginx: 0,
430
- marginy: 0
431
- }).setDefaultEdgeLabel(function() {
432
- return {};
433
- });
434
- p = a.db.getSubGraphs();
435
- S.info("Subgraphs - ", p);
436
- for(b = p.length - 1; b >= 0; b--)s = p[b], S.info("Subgraph - ", s), a.db.addVertex(s.id, {
437
- text: s.title,
438
- type: s.labelType
439
- }, "group", void 0, s.classes, s.dir);
440
- n = a.db.getVertices(), m = a.db.getEdges();
441
- S.info("Edges", m);
442
- k = 0;
443
- for(k = p.length - 1; k >= 0; k--){
444
- s = p[k], j("cluster").append("text");
445
- for(b1 = 0; b1 < s.nodes.length; b1++)S.info("Setting up subgraphs", s.nodes[b1], s.id), t.setParent(s.nodes[b1], s.id);
446
- }
447
- q(n, t, l, g, h, a), P(m, t);
448
- T = g.select('[id="'.concat(l, '"]')), S$1 = g.select("#" + l + " g");
449
- return [
450
- 4,
451
- gt(S$1, t, [
452
- "point",
453
- "circle",
454
- "cross"
455
- ], "flowchart", l)
456
- ];
457
- case 1:
458
- if (_state.sent(), Oi.insertTitle(T, "flowchartTitleText", w.titleTopMargin, a.db.getDiagramTitle()), Gg(t, T, w.diagramPadding, w.useMaxWidth), a.db.indexNodes("subGraph" + k), !w.htmlLabels) {
459
- b2 = h.querySelectorAll('[id="' + l + '"] .edgeLabel .label');
460
- _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
461
- try {
462
- for(_iterator = b2[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
463
- x = _step.value;
464
- v = x.getBBox(), y = h.createElementNS("http://www.w3.org/2000/svg", "rect");
465
- y.setAttribute("rx", 0), y.setAttribute("ry", 0), y.setAttribute("width", v.width), y.setAttribute("height", v.height), x.insertBefore(y, x.firstChild);
466
- }
467
- } catch (err) {
468
- _didIteratorError = true;
469
- _iteratorError = err;
470
- } finally{
471
- try {
472
- if (!_iteratorNormalCompletion && _iterator.return != null) {
473
- _iterator.return();
474
- }
475
- } finally{
476
- if (_didIteratorError) {
477
- throw _iteratorError;
478
- }
479
- }
480
- }
481
- }
482
- Object.keys(n).forEach(function(b) {
483
- var x = n[b];
484
- if (x.link) {
485
- var v = At("#" + l + ' [id="' + b + '"]');
486
- if (v) {
487
- var y = h.createElementNS("http://www.w3.org/2000/svg", "a");
488
- y.setAttributeNS("http://www.w3.org/2000/svg", "class", x.classes.join(" ")), y.setAttributeNS("http://www.w3.org/2000/svg", "href", x.link), y.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), d === "sandbox" ? y.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : x.linkTarget && y.setAttributeNS("http://www.w3.org/2000/svg", "target", x.linkTarget);
489
- var N = v.insert(function() {
490
- return y;
491
- }, ":first-child"), B = v.select(".label-container");
492
- B && N.append(function() {
493
- return B.node();
494
- });
495
- var D = v.select(".label");
496
- D && N.append(function() {
497
- return D.node();
498
- });
499
- }
500
- }
501
- });
502
- return [
503
- 2
504
- ];
505
- }
506
- });
507
- });
508
- return function oe(e, l, c, a) {
509
- return _ref.apply(this, arguments);
510
- };
511
- }(), ge = {
512
- setConf: ae,
513
- addVertices: q,
514
- addEdges: P,
515
- getClasses: ne,
516
- draw: oe
517
- }, se = function(e, l) {
518
- var c = ee, a = c(e, "r"), i = c(e, "g"), d = c(e, "b");
519
- return Ue(a, i, d, l);
520
- }, ie = function(e) {
521
- return ".label {\n font-family: ".concat(e.fontFamily, ";\n color: ").concat(e.nodeTextColor || e.textColor, ";\n }\n .cluster-label text {\n fill: ").concat(e.titleColor, ";\n }\n .cluster-label span,p {\n color: ").concat(e.titleColor, ";\n }\n\n .label text,span,p {\n fill: ").concat(e.nodeTextColor || e.textColor, ";\n color: ").concat(e.nodeTextColor || e.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg, ";\n stroke: ").concat(e.nodeBorder, ";\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(e.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(e.lineColor, ";\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ").concat(e.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(e.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n background-color: ").concat(e.edgeLabelBackground, ";\n fill: ").concat(e.edgeLabelBackground, ";\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ").concat(se(e.edgeLabelBackground, 0.5), ";\n // background-color: \n }\n\n .cluster rect {\n fill: ").concat(e.clusterBkg, ";\n stroke: ").concat(e.clusterBorder, ";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(e.titleColor, ";\n }\n\n .cluster span,p {\n color: ").concat(e.titleColor, ";\n }\n /* .cluster div {\n color: ").concat(e.titleColor, ";\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(e.fontFamily, ";\n font-size: 12px;\n background: ").concat(e.tertiaryColor, ";\n border: 1px solid ").concat(e.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(e.textColor, ";\n }\n");
522
- }, ke = ie;
523
-
524
- export { ge as g, he as h, j, ke as k, le as l, re as r, ue as u, we as w, ye as y };
@@ -1,144 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index.cjs2.js');
4
- var lineCe5d1152 = require('./line-ce5d1152.cjs.js');
5
-
6
- var S = 0;
7
- var O = function O(i, e, t, n, r) {
8
- var o = function o(d) {
9
- switch(d){
10
- case r.db.relationType.AGGREGATION:
11
- return "aggregation";
12
- case r.db.relationType.EXTENSION:
13
- return "extension";
14
- case r.db.relationType.COMPOSITION:
15
- return "composition";
16
- case r.db.relationType.DEPENDENCY:
17
- return "dependency";
18
- case r.db.relationType.LOLLIPOP:
19
- return "lollipop";
20
- }
21
- };
22
- e.points = e.points.filter(function(d) {
23
- return !Number.isNaN(d.y);
24
- });
25
- var l = e.points, g = lineCe5d1152.S().x(function(d) {
26
- return d.x;
27
- }).y(function(d) {
28
- return d.y;
29
- }).curve(index.yf), s = i.append("path").attr("d", g(l)).attr("id", "edge" + S).attr("class", "relation");
30
- var p = "";
31
- n.arrowMarkerAbsolute && (p = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, p = p.replace(/\(/g, "\\("), p = p.replace(/\)/g, "\\)")), t.relation.lineType == 1 && s.attr("class", "relation dashed-line"), t.relation.lineType == 10 && s.attr("class", "relation dotted-line"), t.relation.type1 !== "none" && s.attr("marker-start", "url(" + p + "#" + o(t.relation.type1) + "Start)"), t.relation.type2 !== "none" && s.attr("marker-end", "url(" + p + "#" + o(t.relation.type2) + "End)");
32
- var h, a;
33
- var c = e.points.length;
34
- var b = index.Oi.calcLabelPosition(e.points);
35
- h = b.x, a = b.y;
36
- var u, m, B, T;
37
- if (c % 2 !== 0 && c > 1) {
38
- var d = index.Oi.calcCardinalityPosition(t.relation.type1 !== "none", e.points, e.points[0]), w = index.Oi.calcCardinalityPosition(t.relation.type2 !== "none", e.points, e.points[c - 1]);
39
- index.S.debug("cardinality_1_point " + JSON.stringify(d)), index.S.debug("cardinality_2_point " + JSON.stringify(w)), u = d.x, m = d.y, B = w.x, T = w.y;
40
- }
41
- if (t.title !== void 0) {
42
- var d1 = i.append("g").attr("class", "classLabel"), w1 = d1.append("text").attr("class", "label").attr("x", h).attr("y", a).attr("fill", "red").attr("text-anchor", "middle").text(t.title);
43
- window.label = w1;
44
- var y = w1.node().getBBox();
45
- d1.insert("rect", ":first-child").attr("class", "box").attr("x", y.x - n.padding / 2).attr("y", y.y - n.padding / 2).attr("width", y.width + n.padding).attr("height", y.height + n.padding);
46
- }
47
- index.S.info("Rendering relation " + JSON.stringify(t)), t.relationTitle1 !== void 0 && t.relationTitle1 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", u).attr("y", m).attr("fill", "black").attr("font-size", "6").text(t.relationTitle1), t.relationTitle2 !== void 0 && t.relationTitle2 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", B).attr("y", T).attr("fill", "black").attr("font-size", "6").text(t.relationTitle2), S++;
48
- }, P = function P(i, e, t, n) {
49
- index.S.debug("Rendering class ", e, t);
50
- var r = e.id, o = {
51
- id: r,
52
- label: e.id,
53
- width: 0,
54
- height: 0
55
- }, l = i.append("g").attr("id", n.db.lookUpDomId(r)).attr("class", "classGroup");
56
- var g;
57
- e.link ? g = l.append("svg:a").attr("xlink:href", e.link).attr("target", e.linkTarget).append("text").attr("y", t.textHeight + t.padding).attr("x", 0) : g = l.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
58
- var s = !0;
59
- e.annotations.forEach(function(x) {
60
- var H = g.append("tspan").text("\xab" + x + "\xbb");
61
- s || H.attr("dy", t.textHeight), s = !1;
62
- });
63
- var p = E(e);
64
- var h = g.append("tspan").text(p).attr("class", "title");
65
- s || h.attr("dy", t.textHeight);
66
- var a = g.node().getBBox().height, c = l.append("line").attr("x1", 0).attr("y1", t.padding + a + t.dividerMargin / 2).attr("y2", t.padding + a + t.dividerMargin / 2), b = l.append("text").attr("x", t.padding).attr("y", a + t.dividerMargin + t.textHeight).attr("fill", "white").attr("class", "classText");
67
- s = !0, e.members.forEach(function(x) {
68
- _(b, x, s, t), s = !1;
69
- });
70
- var u = b.node().getBBox(), m = l.append("line").attr("x1", 0).attr("y1", t.padding + a + t.dividerMargin + u.height).attr("y2", t.padding + a + t.dividerMargin + u.height), B = l.append("text").attr("x", t.padding).attr("y", a + 2 * t.dividerMargin + u.height + t.textHeight).attr("fill", "white").attr("class", "classText");
71
- s = !0, e.methods.forEach(function(x) {
72
- _(B, x, s, t), s = !1;
73
- });
74
- var T = l.node().getBBox();
75
- var d = " ";
76
- e.cssClasses.length > 0 && (d = d + e.cssClasses.join(" "));
77
- var y = l.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", T.width + 2 * t.padding).attr("height", T.height + t.padding + 0.5 * t.dividerMargin).attr("class", d).node().getBBox().width;
78
- return g.node().childNodes.forEach(function(x) {
79
- x.setAttribute("x", (y - x.getBBox().width) / 2);
80
- }), e.tooltip && g.insert("title").text(e.tooltip), c.attr("x2", y), m.attr("x2", y), o.width = y, o.height = T.height + t.padding + 0.5 * t.dividerMargin, o;
81
- }, E = function E(i) {
82
- var e = i.id;
83
- return i.type && (e += "<" + i.type + ">"), e;
84
- }, A = function A(i, e, t, n) {
85
- index.S.debug("Rendering note ", e, t);
86
- var r = e.id, o = {
87
- id: r,
88
- text: e.text,
89
- width: 0,
90
- height: 0
91
- }, l = i.append("g").attr("id", r).attr("class", "classGroup");
92
- var g = l.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
93
- var s = JSON.parse('"'.concat(e.text, '"')).split("\n");
94
- s.forEach(function(c) {
95
- index.S.debug("Adding line: ".concat(c)), g.append("tspan").text(c).attr("class", "title").attr("dy", t.textHeight);
96
- });
97
- var p = l.node().getBBox(), a = l.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", p.width + 2 * t.padding).attr("height", p.height + s.length * t.textHeight + t.padding + 0.5 * t.dividerMargin).node().getBBox().width;
98
- return g.node().childNodes.forEach(function(c) {
99
- c.setAttribute("x", (a - c.getBBox().width) / 2);
100
- }), o.width = a, o.height = p.height + s.length * t.textHeight + t.padding + 0.5 * t.dividerMargin, o;
101
- }, M = function M(i) {
102
- var e = "", t = "", n = "", r = "", o = i.substring(0, 1), l = i.substring(i.length - 1, i.length);
103
- o.match(/[#+~-]/) && (r = o);
104
- var g = /[\s\w)~]/;
105
- l.match(g) || (t = C(l));
106
- var s = r === "" ? 0 : 1;
107
- var p = t === "" ? i.length : i.length - 1;
108
- i = i.substring(s, p);
109
- var h = i.indexOf("("), a = i.indexOf(")");
110
- if (h > 1 && a > h && a <= i.length) {
111
- var b = i.substring(0, h).trim();
112
- var u = i.substring(h + 1, a);
113
- if (e = r + b + "(" + index.hd(u.trim()) + ")", a < i.length) {
114
- var m = i.substring(a + 1, a + 2);
115
- t === "" && !m.match(g) ? (t = C(m), n = i.substring(a + 2).trim()) : n = i.substring(a + 1).trim(), n !== "" && (n.charAt(0) === ":" && (n = n.substring(1).trim()), n = " : " + index.hd(n), e += n);
116
- }
117
- } else e = r + index.hd(i);
118
- return {
119
- displayText: e,
120
- cssStyle: t
121
- };
122
- }, _ = function _(i, e, t, n) {
123
- var r = M(e);
124
- var o = i.append("tspan").attr("x", n.padding).text(r.displayText);
125
- r.cssStyle !== "" && o.attr("style", r.cssStyle), t || o.attr("dy", n.textHeight);
126
- }, C = function C(i) {
127
- switch(i){
128
- case "*":
129
- return "font-style:italic;";
130
- case "$":
131
- return "text-decoration:underline;";
132
- default:
133
- return "";
134
- }
135
- }, R = {
136
- getClassTitleString: E,
137
- drawClass: P,
138
- drawEdge: O,
139
- drawNote: A,
140
- parseMember: M
141
- };
142
-
143
- exports.M = M;
144
- exports.R = R;