@digipair/skill-web-chatbot 0.8.36 → 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.
- 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
|
|
4
|
-
var
|
|
3
|
+
var stylesCacbff60 = require('./styles-cacbff60.cjs.js');
|
|
4
|
+
var graph0ee63739 = require('./graph-0ee63739.cjs.js');
|
|
5
5
|
var index = require('./index.cjs2.js');
|
|
6
|
-
var
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
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 {
|
|
@@ -135,8 +136,8 @@ function _ts_generator(thisArg, body) {
|
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
|
-
var h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup",
|
|
139
|
-
var y = {},
|
|
139
|
+
var h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup", _ = "statediagram", dt = "state", Et = "".concat(_, "-").concat(dt), U = "transition", St = "note", Tt = "note-edge", pt = "".concat(U, " ").concat(Tt), _t = "".concat(_, "-").concat(St), ut = "cluster", ft = "".concat(_, "-").concat(ut), Dt = "cluster-alt", bt = "".concat(_, "-").concat(Dt), V = "parent", Y = "note", At = "state", N = "----", ht = "".concat(N).concat(Y), v = "".concat(N).concat(V), W = "fill:none", m = "fill: #333", z = "c", j = "text", q = "normal";
|
|
140
|
+
var y = {}, d = 0;
|
|
140
141
|
var yt = function yt(t) {
|
|
141
142
|
var n = Object.keys(t);
|
|
142
143
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
@@ -160,12 +161,7 @@ var yt = function yt(t) {
|
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
}, gt = function gt(t, n) {
|
|
163
|
-
|
|
164
|
-
try {
|
|
165
|
-
return n.parser.parse(t), n.db.extract(n.db.getRootDocV2()), n.db.getClasses();
|
|
166
|
-
} catch (e) {
|
|
167
|
-
return e;
|
|
168
|
-
}
|
|
164
|
+
return n.db.extract(n.db.getRootDocV2()), n.db.getClasses();
|
|
169
165
|
};
|
|
170
166
|
function xt(t) {
|
|
171
167
|
return t == null ? "" : t.classes ? t.classes.join(" ") : "";
|
|
@@ -176,113 +172,113 @@ function R() {
|
|
|
176
172
|
return "".concat(At, "-").concat(t).concat(i, "-").concat(n);
|
|
177
173
|
}
|
|
178
174
|
var A = function(t, n, e, c, i, r) {
|
|
179
|
-
var
|
|
180
|
-
if (
|
|
175
|
+
var o = e.id, u = xt(c[o]);
|
|
176
|
+
if (o !== "root") {
|
|
181
177
|
var T = h;
|
|
182
|
-
e.start === !0 && (T = nt), e.start === !1 && (T = ct), e.type !==
|
|
183
|
-
id:
|
|
178
|
+
e.start === !0 && (T = nt), e.start === !1 && (T = ct), e.type !== stylesCacbff60.Et && (T = e.type), y[o] || (y[o] = {
|
|
179
|
+
id: o,
|
|
184
180
|
shape: T,
|
|
185
|
-
description: index.
|
|
186
|
-
classes: "".concat(
|
|
181
|
+
description: index.$n.sanitizeText(o, index.Vn()),
|
|
182
|
+
classes: "".concat(u, " ").concat(Et)
|
|
187
183
|
});
|
|
188
|
-
var
|
|
189
|
-
e.description && (Array.isArray(
|
|
184
|
+
var s = y[o];
|
|
185
|
+
e.description && (Array.isArray(s.description) ? (s.shape = C, s.description.push(e.description)) : s.description.length > 0 ? (s.shape = C, s.description === o ? s.description = [
|
|
190
186
|
e.description
|
|
191
|
-
] :
|
|
192
|
-
|
|
187
|
+
] : s.description = [
|
|
188
|
+
s.description,
|
|
193
189
|
e.description
|
|
194
|
-
]) : (
|
|
190
|
+
]) : (s.shape = h, s.description = e.description), s.description = index.$n.sanitizeTextOrArray(s.description, index.Vn())), s.description.length === 1 && s.shape === C && (s.shape = h), !s.type && e.doc && (index.L.info("Setting cluster for ", o, G(e)), s.type = "group", s.dir = G(e), s.shape = e.type === stylesCacbff60.te ? it : rt, s.classes = s.classes + " " + ft + " " + (r ? bt : ""));
|
|
195
191
|
var p = {
|
|
196
192
|
labelStyle: "",
|
|
197
|
-
shape:
|
|
198
|
-
labelText:
|
|
193
|
+
shape: s.shape,
|
|
194
|
+
labelText: s.description,
|
|
199
195
|
// typeof newNode.description === 'object'
|
|
200
196
|
// ? newNode.description[0]
|
|
201
197
|
// : newNode.description,
|
|
202
|
-
classes:
|
|
198
|
+
classes: s.classes,
|
|
203
199
|
style: "",
|
|
204
200
|
//styles.style,
|
|
205
|
-
id:
|
|
206
|
-
dir:
|
|
207
|
-
domId: R(
|
|
208
|
-
type:
|
|
201
|
+
id: o,
|
|
202
|
+
dir: s.dir,
|
|
203
|
+
domId: R(o, d),
|
|
204
|
+
type: s.type,
|
|
209
205
|
padding: 15
|
|
210
206
|
};
|
|
211
207
|
if (p.centerLabel = !0, e.note) {
|
|
212
|
-
var
|
|
208
|
+
var l = {
|
|
213
209
|
labelStyle: "",
|
|
214
210
|
shape: lt,
|
|
215
211
|
labelText: e.note.text,
|
|
216
|
-
classes:
|
|
212
|
+
classes: _t,
|
|
217
213
|
// useHtmlLabels: false,
|
|
218
214
|
style: "",
|
|
219
215
|
// styles.style,
|
|
220
|
-
id:
|
|
221
|
-
domId: R(
|
|
222
|
-
type:
|
|
216
|
+
id: o + ht + "-" + d,
|
|
217
|
+
domId: R(o, d, Y),
|
|
218
|
+
type: s.type,
|
|
223
219
|
padding: 15
|
|
224
|
-
},
|
|
220
|
+
}, a = {
|
|
225
221
|
labelStyle: "",
|
|
226
222
|
shape: at,
|
|
227
223
|
labelText: e.note.text,
|
|
228
|
-
classes:
|
|
224
|
+
classes: s.classes,
|
|
229
225
|
style: "",
|
|
230
226
|
// styles.style,
|
|
231
|
-
id:
|
|
232
|
-
domId: R(
|
|
227
|
+
id: o + v,
|
|
228
|
+
domId: R(o, d, V),
|
|
233
229
|
type: "group",
|
|
234
230
|
padding: 0
|
|
235
231
|
};
|
|
236
|
-
|
|
237
|
-
var f =
|
|
238
|
-
t.setNode(f,
|
|
239
|
-
var S =
|
|
240
|
-
e.note.position === "left of" && (S =
|
|
232
|
+
d++;
|
|
233
|
+
var f = o + v;
|
|
234
|
+
t.setNode(f, a), t.setNode(l.id, l), t.setNode(o, p), t.setParent(o, f), t.setParent(l.id, f);
|
|
235
|
+
var S = o, D = l.id;
|
|
236
|
+
e.note.position === "left of" && (S = l.id, D = o), t.setEdge(S, D, {
|
|
241
237
|
arrowhead: "none",
|
|
242
238
|
arrowType: "",
|
|
243
|
-
style:
|
|
239
|
+
style: W,
|
|
244
240
|
labelStyle: "",
|
|
245
241
|
classes: pt,
|
|
246
|
-
arrowheadStyle:
|
|
247
|
-
labelpos:
|
|
248
|
-
labelType:
|
|
249
|
-
thickness:
|
|
242
|
+
arrowheadStyle: m,
|
|
243
|
+
labelpos: z,
|
|
244
|
+
labelType: j,
|
|
245
|
+
thickness: q
|
|
250
246
|
});
|
|
251
|
-
} else t.setNode(
|
|
247
|
+
} else t.setNode(o, p);
|
|
252
248
|
}
|
|
253
|
-
n && n.id !== "root" && (index.
|
|
249
|
+
n && n.id !== "root" && (index.L.trace("Setting node ", o, " to be child of its parent ", n.id), t.setParent(o, n.id)), e.doc && (index.L.trace("Adding nodes children "), $t(t, e, e.doc, c, i, !r));
|
|
254
250
|
}, $t = function(t, n, e, c, i, r) {
|
|
255
|
-
index.
|
|
256
|
-
switch(
|
|
257
|
-
case
|
|
258
|
-
A(t, n,
|
|
251
|
+
index.L.trace("items", e), e.forEach(function(o) {
|
|
252
|
+
switch(o.stmt){
|
|
253
|
+
case stylesCacbff60._t:
|
|
254
|
+
A(t, n, o, c, i, r);
|
|
259
255
|
break;
|
|
260
|
-
case
|
|
261
|
-
A(t, n,
|
|
256
|
+
case stylesCacbff60.Et:
|
|
257
|
+
A(t, n, o, c, i, r);
|
|
262
258
|
break;
|
|
263
|
-
case
|
|
259
|
+
case stylesCacbff60.It:
|
|
264
260
|
{
|
|
265
|
-
A(t, n,
|
|
266
|
-
var
|
|
267
|
-
id: "edge" +
|
|
261
|
+
A(t, n, o.state1, c, i, r), A(t, n, o.state2, c, i, r);
|
|
262
|
+
var u = {
|
|
263
|
+
id: "edge" + d,
|
|
268
264
|
arrowhead: "normal",
|
|
269
265
|
arrowTypeEnd: "arrow_barb",
|
|
270
|
-
style:
|
|
266
|
+
style: W,
|
|
271
267
|
labelStyle: "",
|
|
272
|
-
label: index.
|
|
273
|
-
arrowheadStyle:
|
|
274
|
-
labelpos:
|
|
275
|
-
labelType:
|
|
276
|
-
thickness:
|
|
268
|
+
label: index.$n.sanitizeText(o.description, index.Vn()),
|
|
269
|
+
arrowheadStyle: m,
|
|
270
|
+
labelpos: z,
|
|
271
|
+
labelType: j,
|
|
272
|
+
thickness: q,
|
|
277
273
|
classes: U
|
|
278
274
|
};
|
|
279
|
-
t.setEdge(
|
|
275
|
+
t.setEdge(o.state1.id, o.state2.id, u, d), d++;
|
|
280
276
|
}
|
|
281
277
|
break;
|
|
282
278
|
}
|
|
283
279
|
});
|
|
284
280
|
}, G = function(t) {
|
|
285
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
281
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : stylesCacbff60.Ce;
|
|
286
282
|
var e = n;
|
|
287
283
|
if (t.doc) for(var c = 0; c < t.doc.length; c++){
|
|
288
284
|
var i = t.doc[c];
|
|
@@ -291,48 +287,48 @@ var A = function(t, n, e, c, i, r) {
|
|
|
291
287
|
return e;
|
|
292
288
|
}, Ct = function() {
|
|
293
289
|
var _ref = _async_to_generator(function(t, n, e, c) {
|
|
294
|
-
var _g, i, r,
|
|
290
|
+
var _g, i, r, o, u, T, s, p, l, a, f, S, D, L, P, O, k, K, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, x, B, b;
|
|
295
291
|
return _ts_generator(this, function(_state) {
|
|
296
292
|
switch(_state.label){
|
|
297
293
|
case 0:
|
|
298
|
-
index.
|
|
299
|
-
_g = index.
|
|
300
|
-
index.
|
|
301
|
-
T = c.db.getStates(),
|
|
294
|
+
index.L.info("Drawing state diagram (v2)", n), y = {}, c.db.getDirection();
|
|
295
|
+
_g = index.Vn(), i = _g.securityLevel, r = _g.state, o = r.nodeSpacing || 50, u = r.rankSpacing || 50;
|
|
296
|
+
index.L.info(c.db.getRootDocV2()), c.db.extract(c.db.getRootDocV2()), index.L.info(c.db.getRootDocV2());
|
|
297
|
+
T = c.db.getStates(), s = new graph0ee63739.Ze({
|
|
302
298
|
multigraph: !0,
|
|
303
299
|
compound: !0
|
|
304
300
|
}).setGraph({
|
|
305
301
|
rankdir: G(c.db.getRootDocV2()),
|
|
306
|
-
nodesep:
|
|
307
|
-
ranksep:
|
|
302
|
+
nodesep: o,
|
|
303
|
+
ranksep: u,
|
|
308
304
|
marginx: 8,
|
|
309
305
|
marginy: 8
|
|
310
306
|
}).setDefaultEdgeLabel(function() {
|
|
311
307
|
return {};
|
|
312
308
|
});
|
|
313
|
-
A(
|
|
314
|
-
i === "sandbox" && (p = index.
|
|
315
|
-
|
|
309
|
+
A(s, void 0, c.db.getRootDocV2(), T, c.db, !0);
|
|
310
|
+
i === "sandbox" && (p = index.bt("#i" + n));
|
|
311
|
+
l = i === "sandbox" ? index.bt(p.nodes()[0].contentDocument.body) : index.bt("body"), a = l.select('[id="'.concat(n, '"]')), f = l.select("#" + n + " g");
|
|
316
312
|
return [
|
|
317
313
|
4,
|
|
318
|
-
|
|
314
|
+
indexBb6d8841.bt(f, s, [
|
|
319
315
|
"barb"
|
|
320
|
-
],
|
|
316
|
+
], _, n)
|
|
321
317
|
];
|
|
322
318
|
case 1:
|
|
323
319
|
_state.sent();
|
|
324
320
|
S = 8;
|
|
325
|
-
index.
|
|
326
|
-
D =
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
index.
|
|
330
|
-
|
|
331
|
-
index.
|
|
332
|
-
|
|
321
|
+
index.ei.insertTitle(a, "statediagramTitleText", r.titleTopMargin, c.db.getDiagramTitle());
|
|
322
|
+
D = a.node().getBBox(), L = D.width + S * 2, P = D.height + S * 2;
|
|
323
|
+
a.attr("class", _);
|
|
324
|
+
O = a.node().getBBox();
|
|
325
|
+
index.Ol(a, P, L, r.useMaxWidth);
|
|
326
|
+
k = "".concat(O.x - S, " ").concat(O.y - S, " ").concat(L, " ").concat(P);
|
|
327
|
+
index.L.debug("viewBox ".concat(k)), a.attr("viewBox", k);
|
|
328
|
+
K = document.querySelectorAll('[id="' + n + '"] .edgeLabel .label');
|
|
333
329
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
334
330
|
try {
|
|
335
|
-
for(_iterator =
|
|
331
|
+
for(_iterator = K[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
336
332
|
x = _step.value;
|
|
337
333
|
B = x.getBBox(), b = document.createElementNS("http://www.w3.org/2000/svg", h);
|
|
338
334
|
b.setAttribute("rx", 0), b.setAttribute("ry", 0), b.setAttribute("width", B.width), b.setAttribute("height", B.height), x.insertBefore(b, x.firstChild);
|
|
@@ -364,14 +360,14 @@ var A = function(t, n, e, c, i, r) {
|
|
|
364
360
|
setConf: yt,
|
|
365
361
|
getClasses: gt,
|
|
366
362
|
draw: Ct
|
|
367
|
-
},
|
|
368
|
-
parser:
|
|
369
|
-
db:
|
|
363
|
+
}, Ut = {
|
|
364
|
+
parser: stylesCacbff60.De,
|
|
365
|
+
db: stylesCacbff60.Ae,
|
|
370
366
|
renderer: Rt,
|
|
371
|
-
styles:
|
|
367
|
+
styles: stylesCacbff60.Le,
|
|
372
368
|
init: function(t) {
|
|
373
|
-
t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute,
|
|
369
|
+
t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, stylesCacbff60.Ae.clear();
|
|
374
370
|
}
|
|
375
371
|
};
|
|
376
372
|
|
|
377
|
-
exports.diagram =
|
|
373
|
+
exports.diagram = Ut;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
1
|
+
import { D as De, A as Ae, L as Le, E as Et$1, t as te, I as It, _ as _t$1, C as Ce } from './styles-cacbff60.esm.js';
|
|
2
|
+
import { Z as Ze } from './graph-0ee63739.esm.js';
|
|
3
|
+
import { i as ei, O as Ol, c as L, V as Vn, b as bt$1, $ as $n } from './index.esm2.js';
|
|
4
|
+
import { b as bt$2 } 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 {
|
|
@@ -133,8 +134,8 @@ function _ts_generator(thisArg, body) {
|
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
|
-
var h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup",
|
|
137
|
-
var y = {},
|
|
137
|
+
var h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup", _ = "statediagram", dt = "state", Et = "".concat(_, "-").concat(dt), U = "transition", St = "note", Tt = "note-edge", pt = "".concat(U, " ").concat(Tt), _t = "".concat(_, "-").concat(St), ut = "cluster", ft = "".concat(_, "-").concat(ut), Dt = "cluster-alt", bt = "".concat(_, "-").concat(Dt), V = "parent", Y = "note", At = "state", N = "----", ht = "".concat(N).concat(Y), v = "".concat(N).concat(V), W = "fill:none", m = "fill: #333", z = "c", j = "text", q = "normal";
|
|
138
|
+
var y = {}, d = 0;
|
|
138
139
|
var yt = function yt(t) {
|
|
139
140
|
var n = Object.keys(t);
|
|
140
141
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
@@ -158,12 +159,7 @@ var yt = function yt(t) {
|
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
}, gt = function gt(t, n) {
|
|
161
|
-
|
|
162
|
-
try {
|
|
163
|
-
return n.parser.parse(t), n.db.extract(n.db.getRootDocV2()), n.db.getClasses();
|
|
164
|
-
} catch (e) {
|
|
165
|
-
return e;
|
|
166
|
-
}
|
|
162
|
+
return n.db.extract(n.db.getRootDocV2()), n.db.getClasses();
|
|
167
163
|
};
|
|
168
164
|
function xt(t) {
|
|
169
165
|
return t == null ? "" : t.classes ? t.classes.join(" ") : "";
|
|
@@ -174,113 +170,113 @@ function R() {
|
|
|
174
170
|
return "".concat(At, "-").concat(t).concat(i, "-").concat(n);
|
|
175
171
|
}
|
|
176
172
|
var A = function(t, n, e, c, i, r) {
|
|
177
|
-
var
|
|
178
|
-
if (
|
|
173
|
+
var o = e.id, u = xt(c[o]);
|
|
174
|
+
if (o !== "root") {
|
|
179
175
|
var T = h;
|
|
180
|
-
e.start === !0 && (T = nt), e.start === !1 && (T = ct), e.type !==
|
|
181
|
-
id:
|
|
176
|
+
e.start === !0 && (T = nt), e.start === !1 && (T = ct), e.type !== Et$1 && (T = e.type), y[o] || (y[o] = {
|
|
177
|
+
id: o,
|
|
182
178
|
shape: T,
|
|
183
|
-
description:
|
|
184
|
-
classes: "".concat(
|
|
179
|
+
description: $n.sanitizeText(o, Vn()),
|
|
180
|
+
classes: "".concat(u, " ").concat(Et)
|
|
185
181
|
});
|
|
186
|
-
var
|
|
187
|
-
e.description && (Array.isArray(
|
|
182
|
+
var s = y[o];
|
|
183
|
+
e.description && (Array.isArray(s.description) ? (s.shape = C, s.description.push(e.description)) : s.description.length > 0 ? (s.shape = C, s.description === o ? s.description = [
|
|
188
184
|
e.description
|
|
189
|
-
] :
|
|
190
|
-
|
|
185
|
+
] : s.description = [
|
|
186
|
+
s.description,
|
|
191
187
|
e.description
|
|
192
|
-
]) : (
|
|
188
|
+
]) : (s.shape = h, s.description = e.description), s.description = $n.sanitizeTextOrArray(s.description, Vn())), s.description.length === 1 && s.shape === C && (s.shape = h), !s.type && e.doc && (L.info("Setting cluster for ", o, G(e)), s.type = "group", s.dir = G(e), s.shape = e.type === te ? it : rt, s.classes = s.classes + " " + ft + " " + (r ? bt : ""));
|
|
193
189
|
var p = {
|
|
194
190
|
labelStyle: "",
|
|
195
|
-
shape:
|
|
196
|
-
labelText:
|
|
191
|
+
shape: s.shape,
|
|
192
|
+
labelText: s.description,
|
|
197
193
|
// typeof newNode.description === 'object'
|
|
198
194
|
// ? newNode.description[0]
|
|
199
195
|
// : newNode.description,
|
|
200
|
-
classes:
|
|
196
|
+
classes: s.classes,
|
|
201
197
|
style: "",
|
|
202
198
|
//styles.style,
|
|
203
|
-
id:
|
|
204
|
-
dir:
|
|
205
|
-
domId: R(
|
|
206
|
-
type:
|
|
199
|
+
id: o,
|
|
200
|
+
dir: s.dir,
|
|
201
|
+
domId: R(o, d),
|
|
202
|
+
type: s.type,
|
|
207
203
|
padding: 15
|
|
208
204
|
};
|
|
209
205
|
if (p.centerLabel = !0, e.note) {
|
|
210
|
-
var
|
|
206
|
+
var l = {
|
|
211
207
|
labelStyle: "",
|
|
212
208
|
shape: lt,
|
|
213
209
|
labelText: e.note.text,
|
|
214
|
-
classes:
|
|
210
|
+
classes: _t,
|
|
215
211
|
// useHtmlLabels: false,
|
|
216
212
|
style: "",
|
|
217
213
|
// styles.style,
|
|
218
|
-
id:
|
|
219
|
-
domId: R(
|
|
220
|
-
type:
|
|
214
|
+
id: o + ht + "-" + d,
|
|
215
|
+
domId: R(o, d, Y),
|
|
216
|
+
type: s.type,
|
|
221
217
|
padding: 15
|
|
222
|
-
},
|
|
218
|
+
}, a = {
|
|
223
219
|
labelStyle: "",
|
|
224
220
|
shape: at,
|
|
225
221
|
labelText: e.note.text,
|
|
226
|
-
classes:
|
|
222
|
+
classes: s.classes,
|
|
227
223
|
style: "",
|
|
228
224
|
// styles.style,
|
|
229
|
-
id:
|
|
230
|
-
domId: R(
|
|
225
|
+
id: o + v,
|
|
226
|
+
domId: R(o, d, V),
|
|
231
227
|
type: "group",
|
|
232
228
|
padding: 0
|
|
233
229
|
};
|
|
234
|
-
|
|
235
|
-
var f =
|
|
236
|
-
t.setNode(f,
|
|
237
|
-
var S
|
|
238
|
-
e.note.position === "left of" && (S
|
|
230
|
+
d++;
|
|
231
|
+
var f = o + v;
|
|
232
|
+
t.setNode(f, a), t.setNode(l.id, l), t.setNode(o, p), t.setParent(o, f), t.setParent(l.id, f);
|
|
233
|
+
var S = o, D = l.id;
|
|
234
|
+
e.note.position === "left of" && (S = l.id, D = o), t.setEdge(S, D, {
|
|
239
235
|
arrowhead: "none",
|
|
240
236
|
arrowType: "",
|
|
241
|
-
style:
|
|
237
|
+
style: W,
|
|
242
238
|
labelStyle: "",
|
|
243
239
|
classes: pt,
|
|
244
|
-
arrowheadStyle:
|
|
245
|
-
labelpos:
|
|
246
|
-
labelType:
|
|
247
|
-
thickness:
|
|
240
|
+
arrowheadStyle: m,
|
|
241
|
+
labelpos: z,
|
|
242
|
+
labelType: j,
|
|
243
|
+
thickness: q
|
|
248
244
|
});
|
|
249
|
-
} else t.setNode(
|
|
245
|
+
} else t.setNode(o, p);
|
|
250
246
|
}
|
|
251
|
-
n && n.id !== "root" && (
|
|
247
|
+
n && n.id !== "root" && (L.trace("Setting node ", o, " to be child of its parent ", n.id), t.setParent(o, n.id)), e.doc && (L.trace("Adding nodes children "), $t(t, e, e.doc, c, i, !r));
|
|
252
248
|
}, $t = function(t, n, e, c, i, r) {
|
|
253
|
-
|
|
254
|
-
switch(
|
|
255
|
-
case
|
|
256
|
-
A(t, n,
|
|
249
|
+
L.trace("items", e), e.forEach(function(o) {
|
|
250
|
+
switch(o.stmt){
|
|
251
|
+
case _t$1:
|
|
252
|
+
A(t, n, o, c, i, r);
|
|
257
253
|
break;
|
|
258
|
-
case
|
|
259
|
-
A(t, n,
|
|
254
|
+
case Et$1:
|
|
255
|
+
A(t, n, o, c, i, r);
|
|
260
256
|
break;
|
|
261
|
-
case
|
|
257
|
+
case It:
|
|
262
258
|
{
|
|
263
|
-
A(t, n,
|
|
264
|
-
var
|
|
265
|
-
id: "edge" +
|
|
259
|
+
A(t, n, o.state1, c, i, r), A(t, n, o.state2, c, i, r);
|
|
260
|
+
var u = {
|
|
261
|
+
id: "edge" + d,
|
|
266
262
|
arrowhead: "normal",
|
|
267
263
|
arrowTypeEnd: "arrow_barb",
|
|
268
|
-
style:
|
|
264
|
+
style: W,
|
|
269
265
|
labelStyle: "",
|
|
270
|
-
label:
|
|
271
|
-
arrowheadStyle:
|
|
272
|
-
labelpos:
|
|
273
|
-
labelType:
|
|
274
|
-
thickness:
|
|
266
|
+
label: $n.sanitizeText(o.description, Vn()),
|
|
267
|
+
arrowheadStyle: m,
|
|
268
|
+
labelpos: z,
|
|
269
|
+
labelType: j,
|
|
270
|
+
thickness: q,
|
|
275
271
|
classes: U
|
|
276
272
|
};
|
|
277
|
-
t.setEdge(
|
|
273
|
+
t.setEdge(o.state1.id, o.state2.id, u, d), d++;
|
|
278
274
|
}
|
|
279
275
|
break;
|
|
280
276
|
}
|
|
281
277
|
});
|
|
282
278
|
}, G = function(t) {
|
|
283
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
279
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ce;
|
|
284
280
|
var e = n;
|
|
285
281
|
if (t.doc) for(var c = 0; c < t.doc.length; c++){
|
|
286
282
|
var i = t.doc[c];
|
|
@@ -289,48 +285,48 @@ var A = function(t, n, e, c, i, r) {
|
|
|
289
285
|
return e;
|
|
290
286
|
}, Ct = function() {
|
|
291
287
|
var _ref = _async_to_generator(function(t, n, e, c) {
|
|
292
|
-
var _g, i, r,
|
|
288
|
+
var _g, i, r, o, u, T, s, p, l, a, f, S, D, L$1, P, O, k, K, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, x, B, b;
|
|
293
289
|
return _ts_generator(this, function(_state) {
|
|
294
290
|
switch(_state.label){
|
|
295
291
|
case 0:
|
|
296
|
-
|
|
297
|
-
_g =
|
|
298
|
-
|
|
299
|
-
T = c.db.getStates(),
|
|
292
|
+
L.info("Drawing state diagram (v2)", n), y = {}, c.db.getDirection();
|
|
293
|
+
_g = Vn(), i = _g.securityLevel, r = _g.state, o = r.nodeSpacing || 50, u = r.rankSpacing || 50;
|
|
294
|
+
L.info(c.db.getRootDocV2()), c.db.extract(c.db.getRootDocV2()), L.info(c.db.getRootDocV2());
|
|
295
|
+
T = c.db.getStates(), s = new Ze({
|
|
300
296
|
multigraph: !0,
|
|
301
297
|
compound: !0
|
|
302
298
|
}).setGraph({
|
|
303
299
|
rankdir: G(c.db.getRootDocV2()),
|
|
304
|
-
nodesep:
|
|
305
|
-
ranksep:
|
|
300
|
+
nodesep: o,
|
|
301
|
+
ranksep: u,
|
|
306
302
|
marginx: 8,
|
|
307
303
|
marginy: 8
|
|
308
304
|
}).setDefaultEdgeLabel(function() {
|
|
309
305
|
return {};
|
|
310
306
|
});
|
|
311
|
-
A(
|
|
312
|
-
i === "sandbox" && (p =
|
|
313
|
-
|
|
307
|
+
A(s, void 0, c.db.getRootDocV2(), T, c.db, !0);
|
|
308
|
+
i === "sandbox" && (p = bt$1("#i" + n));
|
|
309
|
+
l = i === "sandbox" ? bt$1(p.nodes()[0].contentDocument.body) : bt$1("body"), a = l.select('[id="'.concat(n, '"]')), f = l.select("#" + n + " g");
|
|
314
310
|
return [
|
|
315
311
|
4,
|
|
316
|
-
|
|
312
|
+
bt$2(f, s, [
|
|
317
313
|
"barb"
|
|
318
|
-
],
|
|
314
|
+
], _, n)
|
|
319
315
|
];
|
|
320
316
|
case 1:
|
|
321
317
|
_state.sent();
|
|
322
|
-
S
|
|
323
|
-
|
|
324
|
-
D =
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
318
|
+
S = 8;
|
|
319
|
+
ei.insertTitle(a, "statediagramTitleText", r.titleTopMargin, c.db.getDiagramTitle());
|
|
320
|
+
D = a.node().getBBox(), L$1 = D.width + S * 2, P = D.height + S * 2;
|
|
321
|
+
a.attr("class", _);
|
|
322
|
+
O = a.node().getBBox();
|
|
323
|
+
Ol(a, P, L$1, r.useMaxWidth);
|
|
324
|
+
k = "".concat(O.x - S, " ").concat(O.y - S, " ").concat(L$1, " ").concat(P);
|
|
325
|
+
L.debug("viewBox ".concat(k)), a.attr("viewBox", k);
|
|
326
|
+
K = document.querySelectorAll('[id="' + n + '"] .edgeLabel .label');
|
|
331
327
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
332
328
|
try {
|
|
333
|
-
for(_iterator =
|
|
329
|
+
for(_iterator = K[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
334
330
|
x = _step.value;
|
|
335
331
|
B = x.getBBox(), b = document.createElementNS("http://www.w3.org/2000/svg", h);
|
|
336
332
|
b.setAttribute("rx", 0), b.setAttribute("ry", 0), b.setAttribute("width", B.width), b.setAttribute("height", B.height), x.insertBefore(b, x.firstChild);
|
|
@@ -362,14 +358,14 @@ var A = function(t, n, e, c, i, r) {
|
|
|
362
358
|
setConf: yt,
|
|
363
359
|
getClasses: gt,
|
|
364
360
|
draw: Ct
|
|
365
|
-
},
|
|
366
|
-
parser:
|
|
367
|
-
db:
|
|
361
|
+
}, Ut = {
|
|
362
|
+
parser: De,
|
|
363
|
+
db: Ae,
|
|
368
364
|
renderer: Rt,
|
|
369
|
-
styles:
|
|
365
|
+
styles: Le,
|
|
370
366
|
init: function(t) {
|
|
371
|
-
t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute,
|
|
367
|
+
t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Ae.clear();
|
|
372
368
|
}
|
|
373
369
|
};
|
|
374
370
|
|
|
375
|
-
export {
|
|
371
|
+
export { Ut as diagram };
|