@digipair/skill-web-chatbot 0.89.0 → 0.91.0-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.
Files changed (136) hide show
  1. package/.swcrc +28 -0
  2. package/README.md +7 -0
  3. package/eslint.config.mjs +22 -0
  4. package/package.json +22 -7
  5. package/rollup.config.cjs +28 -0
  6. package/src/digipair__engine.d.ts +2 -0
  7. package/src/handlebars.d.ts +1 -0
  8. package/src/index.html +18 -0
  9. package/src/lib/chat.element.ts +603 -0
  10. package/src/lib/common.data.ts +1 -0
  11. package/src/lib/config.ts +30 -0
  12. package/src/lib/digipair-full.data.ts +101 -0
  13. package/src/lib/digipair-full.element.ts +358 -0
  14. package/src/lib/digipair.data.ts +103 -0
  15. package/src/lib/digipair.element.ts +446 -0
  16. package/src/lib/inputs.element.ts +46 -0
  17. package/src/lib/mermaid.d.ts +1 -0
  18. package/src/lib/message.interface.ts +10 -0
  19. package/src/lib/pins/chatbot.actions.ts +32 -0
  20. package/src/lib/tools/css-selector.ts +12 -0
  21. package/tsconfig.json +13 -0
  22. package/tsconfig.lib.json +19 -0
  23. package/SAP-icons.cjs.js +0 -2489
  24. package/SAP-icons.cjs2.js +0 -2489
  25. package/SAP-icons.esm.js +0 -2482
  26. package/SAP-icons.esm2.js +0 -2482
  27. package/Tableau10-558cc280.cjs.js +0 -9
  28. package/Tableau10-558cc280.esm.js +0 -7
  29. package/arc-d1f6357e.cjs.js +0 -88
  30. package/arc-d1f6357e.esm.js +0 -86
  31. package/array-2ff2c7a6.cjs.js +0 -7
  32. package/array-2ff2c7a6.esm.js +0 -5
  33. package/blockDiagram-5dc23a45.cjs.js +0 -2921
  34. package/blockDiagram-5dc23a45.esm.js +0 -2919
  35. package/c4Diagram-1e775db3.cjs.js +0 -4387
  36. package/c4Diagram-1e775db3.esm.js +0 -4385
  37. package/channel-ebbc4130.cjs.js +0 -9
  38. package/channel-ebbc4130.esm.js +0 -7
  39. package/classDiagram-f52caa06.cjs.js +0 -209
  40. package/classDiagram-f52caa06.esm.js +0 -207
  41. package/classDiagram-v2-640c694e.cjs.js +0 -401
  42. package/classDiagram-v2-640c694e.esm.js +0 -399
  43. package/clone-afc2f047.cjs.js +0 -10
  44. package/clone-afc2f047.esm.js +0 -8
  45. package/createText-03b82060.cjs.js +0 -2936
  46. package/createText-03b82060.esm.js +0 -2933
  47. package/edges-16357fde.cjs.js +0 -1998
  48. package/edges-16357fde.esm.js +0 -1981
  49. package/erDiagram-c7ff1bec.cjs.js +0 -1807
  50. package/erDiagram-c7ff1bec.esm.js +0 -1805
  51. package/flowDb-9a89ea33.cjs.js +0 -5542
  52. package/flowDb-9a89ea33.esm.js +0 -5538
  53. package/flowDiagram-aadb13b0.cjs.js +0 -1351
  54. package/flowDiagram-aadb13b0.esm.js +0 -1349
  55. package/flowDiagram-v2-f2119625.cjs.js +0 -31
  56. package/flowDiagram-v2-f2119625.esm.js +0 -29
  57. package/flowchart-elk-definition-cf813a97.cjs.js +0 -50257
  58. package/flowchart-elk-definition-cf813a97.esm.js +0 -50255
  59. package/ganttDiagram-3c2fde2b.cjs.js +0 -3710
  60. package/ganttDiagram-3c2fde2b.esm.js +0 -3708
  61. package/gitGraphDiagram-c3a0619c.cjs.js +0 -3820
  62. package/gitGraphDiagram-c3a0619c.esm.js +0 -3818
  63. package/graph-0ee63739.cjs.js +0 -961
  64. package/graph-0ee63739.esm.js +0 -938
  65. package/index-bb6d8841.cjs.js +0 -648
  66. package/index-bb6d8841.esm.js +0 -646
  67. package/index.cjs.d.ts +0 -1
  68. package/index.cjs.js +0 -17
  69. package/index.cjs2.js +0 -60723
  70. package/index.esm.js +0 -1
  71. package/index.esm2.js +0 -60574
  72. package/infoDiagram-2f5c50c0.cjs.js +0 -460
  73. package/infoDiagram-2f5c50c0.esm.js +0 -458
  74. package/init-f9637058.cjs.js +0 -17
  75. package/init-f9637058.esm.js +0 -15
  76. package/journeyDiagram-14fe341a.cjs.js +0 -1061
  77. package/journeyDiagram-14fe341a.esm.js +0 -1059
  78. package/katex-d90b6d29.cjs.js +0 -25690
  79. package/katex-d90b6d29.esm.js +0 -25688
  80. package/layout-fd473db2.cjs.js +0 -1626
  81. package/layout-fd473db2.esm.js +0 -1619
  82. package/libs/engine/src/index.d.ts +0 -2
  83. package/libs/engine/src/lib/alias.interface.d.ts +0 -9
  84. package/libs/engine/src/lib/engine.d.ts +0 -13
  85. package/libs/engine/src/lib/pins-settings.interface.d.ts +0 -15
  86. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +0 -28
  87. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +0 -1
  88. package/libs/skill-web-chatbot/src/lib/config.d.ts +0 -9
  89. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +0 -1
  90. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +0 -36
  91. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +0 -1
  92. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +0 -44
  93. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +0 -10
  94. package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +0 -10
  95. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -1
  96. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +0 -1
  97. package/line-24d93f1b.cjs.js +0 -34
  98. package/line-24d93f1b.esm.js +0 -32
  99. package/linear-9bcf74c4.cjs.js +0 -537
  100. package/linear-9bcf74c4.esm.js +0 -531
  101. package/mindmap-definition-9399c7e6.cjs.js +0 -20489
  102. package/mindmap-definition-9399c7e6.esm.js +0 -20487
  103. package/ordinal-5695958c.cjs.js +0 -331
  104. package/ordinal-5695958c.esm.js +0 -329
  105. package/path-428ebac9.cjs.js +0 -317
  106. package/path-428ebac9.esm.js +0 -314
  107. package/pieDiagram-828dae43.cjs.js +0 -951
  108. package/pieDiagram-828dae43.esm.js +0 -949
  109. package/quadrantDiagram-5fa00455.cjs.js +0 -2410
  110. package/quadrantDiagram-5fa00455.esm.js +0 -2408
  111. package/requirementDiagram-03163dc4.cjs.js +0 -2267
  112. package/requirementDiagram-03163dc4.esm.js +0 -2265
  113. package/sankeyDiagram-52ec8976.cjs.js +0 -1848
  114. package/sankeyDiagram-52ec8976.esm.js +0 -1846
  115. package/sequenceDiagram-b517d154.cjs.js +0 -5949
  116. package/sequenceDiagram-b517d154.esm.js +0 -5947
  117. package/stateDiagram-fca82b5b.cjs.js +0 -283
  118. package/stateDiagram-fca82b5b.esm.js +0 -281
  119. package/stateDiagram-v2-ed04200a.cjs.js +0 -373
  120. package/stateDiagram-v2-ed04200a.esm.js +0 -371
  121. package/styles-11e81fdd.cjs.js +0 -3944
  122. package/styles-11e81fdd.esm.js +0 -3940
  123. package/styles-cacbff60.cjs.js +0 -2120
  124. package/styles-cacbff60.esm.js +0 -2111
  125. package/styles-e75131e4.cjs.js +0 -671
  126. package/styles-e75131e4.esm.js +0 -661
  127. package/svgDrawCommon-ecc5f780.cjs.js +0 -68
  128. package/svgDrawCommon-ecc5f780.esm.js +0 -60
  129. package/timeline-definition-4ee9bff4.cjs.js +0 -1161
  130. package/timeline-definition-4ee9bff4.esm.js +0 -1159
  131. package/xychartDiagram-e5e6b652.cjs.js +0 -3150
  132. package/xychartDiagram-e5e6b652.esm.js +0 -3148
  133. /package/{index.d.ts → src/index.d.ts} +0 -0
  134. /package/{libs/skill-web-chatbot/src/index.d.ts → src/index.ts} +0 -0
  135. /package/{schema.fr.json → src/schema.fr.json} +0 -0
  136. /package/{schema.json → src/schema.json} +0 -0
@@ -1,371 +0,0 @@
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';
10
- import './array-2ff2c7a6.esm.js';
11
- import './path-428ebac9.esm.js';
12
-
13
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
14
- try {
15
- var info = gen[key](arg);
16
- var value = info.value;
17
- } catch (error) {
18
- reject(error);
19
- return;
20
- }
21
- if (info.done) {
22
- resolve(value);
23
- } else {
24
- Promise.resolve(value).then(_next, _throw);
25
- }
26
- }
27
- function _async_to_generator(fn) {
28
- return function() {
29
- var self = this, args = arguments;
30
- return new Promise(function(resolve, reject) {
31
- var gen = fn.apply(self, args);
32
- function _next(value) {
33
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
34
- }
35
- function _throw(err) {
36
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
37
- }
38
- _next(undefined);
39
- });
40
- };
41
- }
42
- function _ts_generator(thisArg, body) {
43
- var f, y, t, g, _ = {
44
- label: 0,
45
- sent: function() {
46
- if (t[0] & 1) throw t[1];
47
- return t[1];
48
- },
49
- trys: [],
50
- ops: []
51
- };
52
- return g = {
53
- next: verb(0),
54
- "throw": verb(1),
55
- "return": verb(2)
56
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
57
- return this;
58
- }), g;
59
- function verb(n) {
60
- return function(v) {
61
- return step([
62
- n,
63
- v
64
- ]);
65
- };
66
- }
67
- function step(op) {
68
- if (f) throw new TypeError("Generator is already executing.");
69
- while(_)try {
70
- 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;
71
- if (y = 0, t) op = [
72
- op[0] & 2,
73
- t.value
74
- ];
75
- switch(op[0]){
76
- case 0:
77
- case 1:
78
- t = op;
79
- break;
80
- case 4:
81
- _.label++;
82
- return {
83
- value: op[1],
84
- done: false
85
- };
86
- case 5:
87
- _.label++;
88
- y = op[1];
89
- op = [
90
- 0
91
- ];
92
- continue;
93
- case 7:
94
- op = _.ops.pop();
95
- _.trys.pop();
96
- continue;
97
- default:
98
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
99
- _ = 0;
100
- continue;
101
- }
102
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
103
- _.label = op[1];
104
- break;
105
- }
106
- if (op[0] === 6 && _.label < t[1]) {
107
- _.label = t[1];
108
- t = op;
109
- break;
110
- }
111
- if (t && _.label < t[2]) {
112
- _.label = t[2];
113
- _.ops.push(op);
114
- break;
115
- }
116
- if (t[2]) _.ops.pop();
117
- _.trys.pop();
118
- continue;
119
- }
120
- op = body.call(thisArg, _);
121
- } catch (e) {
122
- op = [
123
- 6,
124
- e
125
- ];
126
- y = 0;
127
- } finally{
128
- f = t = 0;
129
- }
130
- if (op[0] & 5) throw op[1];
131
- return {
132
- value: op[0] ? op[1] : void 0,
133
- done: true
134
- };
135
- }
136
- }
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;
139
- var yt = function yt(t) {
140
- var n = Object.keys(t);
141
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
142
- try {
143
- for(var _iterator = n[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
144
- var e = _step.value;
145
- t[e];
146
- }
147
- } catch (err) {
148
- _didIteratorError = true;
149
- _iteratorError = err;
150
- } finally{
151
- try {
152
- if (!_iteratorNormalCompletion && _iterator.return != null) {
153
- _iterator.return();
154
- }
155
- } finally{
156
- if (_didIteratorError) {
157
- throw _iteratorError;
158
- }
159
- }
160
- }
161
- }, gt = function gt(t, n) {
162
- return n.db.extract(n.db.getRootDocV2()), n.db.getClasses();
163
- };
164
- function xt(t) {
165
- return t == null ? "" : t.classes ? t.classes.join(" ") : "";
166
- }
167
- function R() {
168
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : N;
169
- var i = e !== null && e.length > 0 ? "".concat(c).concat(e) : "";
170
- return "".concat(At, "-").concat(t).concat(i, "-").concat(n);
171
- }
172
- var A = function(t, n, e, c, i, r) {
173
- var o = e.id, u = xt(c[o]);
174
- if (o !== "root") {
175
- var T = h;
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,
178
- shape: T,
179
- description: $n.sanitizeText(o, Vn()),
180
- classes: "".concat(u, " ").concat(Et)
181
- });
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 = [
184
- e.description
185
- ] : s.description = [
186
- s.description,
187
- e.description
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 : ""));
189
- var p = {
190
- labelStyle: "",
191
- shape: s.shape,
192
- labelText: s.description,
193
- // typeof newNode.description === 'object'
194
- // ? newNode.description[0]
195
- // : newNode.description,
196
- classes: s.classes,
197
- style: "",
198
- //styles.style,
199
- id: o,
200
- dir: s.dir,
201
- domId: R(o, d),
202
- type: s.type,
203
- padding: 15
204
- };
205
- if (p.centerLabel = !0, e.note) {
206
- var l = {
207
- labelStyle: "",
208
- shape: lt,
209
- labelText: e.note.text,
210
- classes: _t,
211
- // useHtmlLabels: false,
212
- style: "",
213
- // styles.style,
214
- id: o + ht + "-" + d,
215
- domId: R(o, d, Y),
216
- type: s.type,
217
- padding: 15
218
- }, a = {
219
- labelStyle: "",
220
- shape: at,
221
- labelText: e.note.text,
222
- classes: s.classes,
223
- style: "",
224
- // styles.style,
225
- id: o + v,
226
- domId: R(o, d, V),
227
- type: "group",
228
- padding: 0
229
- };
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, {
235
- arrowhead: "none",
236
- arrowType: "",
237
- style: W,
238
- labelStyle: "",
239
- classes: pt,
240
- arrowheadStyle: m,
241
- labelpos: z,
242
- labelType: j,
243
- thickness: q
244
- });
245
- } else t.setNode(o, p);
246
- }
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));
248
- }, $t = function(t, n, e, c, i, r) {
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);
253
- break;
254
- case Et$1:
255
- A(t, n, o, c, i, r);
256
- break;
257
- case It:
258
- {
259
- A(t, n, o.state1, c, i, r), A(t, n, o.state2, c, i, r);
260
- var u = {
261
- id: "edge" + d,
262
- arrowhead: "normal",
263
- arrowTypeEnd: "arrow_barb",
264
- style: W,
265
- labelStyle: "",
266
- label: $n.sanitizeText(o.description, Vn()),
267
- arrowheadStyle: m,
268
- labelpos: z,
269
- labelType: j,
270
- thickness: q,
271
- classes: U
272
- };
273
- t.setEdge(o.state1.id, o.state2.id, u, d), d++;
274
- }
275
- break;
276
- }
277
- });
278
- }, G = function(t) {
279
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ce;
280
- var e = n;
281
- if (t.doc) for(var c = 0; c < t.doc.length; c++){
282
- var i = t.doc[c];
283
- i.stmt === "dir" && (e = i.value);
284
- }
285
- return e;
286
- }, Ct = function() {
287
- var _ref = _async_to_generator(function(t, n, e, c) {
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;
289
- return _ts_generator(this, function(_state) {
290
- switch(_state.label){
291
- case 0:
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({
296
- multigraph: !0,
297
- compound: !0
298
- }).setGraph({
299
- rankdir: G(c.db.getRootDocV2()),
300
- nodesep: o,
301
- ranksep: u,
302
- marginx: 8,
303
- marginy: 8
304
- }).setDefaultEdgeLabel(function() {
305
- return {};
306
- });
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");
310
- return [
311
- 4,
312
- bt$2(f, s, [
313
- "barb"
314
- ], _, n)
315
- ];
316
- case 1:
317
- _state.sent();
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');
327
- _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
328
- try {
329
- for(_iterator = K[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
330
- x = _step.value;
331
- B = x.getBBox(), b = document.createElementNS("http://www.w3.org/2000/svg", h);
332
- b.setAttribute("rx", 0), b.setAttribute("ry", 0), b.setAttribute("width", B.width), b.setAttribute("height", B.height), x.insertBefore(b, x.firstChild);
333
- }
334
- } catch (err) {
335
- _didIteratorError = true;
336
- _iteratorError = err;
337
- } finally{
338
- try {
339
- if (!_iteratorNormalCompletion && _iterator.return != null) {
340
- _iterator.return();
341
- }
342
- } finally{
343
- if (_didIteratorError) {
344
- throw _iteratorError;
345
- }
346
- }
347
- }
348
- return [
349
- 2
350
- ];
351
- }
352
- });
353
- });
354
- return function Ct(t, n, e, c) {
355
- return _ref.apply(this, arguments);
356
- };
357
- }(), Rt = {
358
- setConf: yt,
359
- getClasses: gt,
360
- draw: Ct
361
- }, Ut = {
362
- parser: De,
363
- db: Ae,
364
- renderer: Rt,
365
- styles: Le,
366
- init: function(t) {
367
- t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Ae.clear();
368
- }
369
- };
370
-
371
- export { Ut as diagram };