@altimateai/ui-components 0.0.77-beta.3 → 0.0.77-beta.5
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/dist/Accordion.js +402 -0
- package/dist/CoachForm.css +1 -1
- package/dist/CoachForm.js +21630 -18090
- package/dist/Stack.js +2820 -2260
- package/dist/Switch.js +128 -87
- package/dist/ToggleGroup.js +5956 -4781
- package/dist/_basePickBy.js +25 -25
- package/dist/_baseUniq.js +122 -122
- package/dist/arc.js +36 -36
- package/dist/architectureDiagram-VXUJARFQ.js +1 -1
- package/dist/assets/icons/index.js +1 -1
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/c4Diagram-YG6GDRKO.js +22 -22
- package/dist/channel.js +2 -2
- package/dist/chatbotV2/index.d.ts +61 -10
- package/dist/chatbotV2/index.js +442 -56
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-B4BG7PRW.js +1 -1
- package/dist/chunk-DI55MBZ5.js +1 -1
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-QN33PNHL.js +5 -5
- package/dist/chunk-QZHKN3VN.js +1 -1
- package/dist/chunk-TZMSLE5B.js +1 -1
- package/dist/classDiagram-2ON5EDUG.js +1 -1
- package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
- package/dist/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/dagre-6UL2VRFP.js +58 -58
- package/dist/dayjs.min.js +1 -1
- package/dist/diagram-PSM6KHXK.js +48 -48
- package/dist/diagram-QEK2KX5R.js +26 -26
- package/dist/diagram-S2PKOQOG.js +9 -9
- package/dist/erDiagram-Q2GNP2WA.js +12 -12
- package/dist/flowDiagram-NV44I4VS.js +6 -6
- package/dist/ganttDiagram-LVOFAZNH.js +322 -322
- package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
- package/dist/graph.js +5 -5
- package/dist/index.css +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +24 -23
- package/dist/index2.css +1 -0
- package/dist/index2.js +22 -22
- package/dist/infoDiagram-F6ZHWCRC.js +14 -14
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +54 -54
- package/dist/layout.js +52 -52
- package/dist/lineage/index.js +381 -381
- package/dist/main.js +6 -6
- package/dist/mermaid-parser.core.js +1 -1
- package/dist/mindmap-definition-VGOIOE7T.js +16 -16
- package/dist/pieDiagram-ADFJNKIX.js +25 -25
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/redux-toolkit.modern.js +7 -7
- package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
- package/dist/sankeyDiagram-TZEHDZUN.js +16 -16
- package/dist/sequenceDiagram-WL72ISMW.js +28 -28
- package/dist/shadcn/index.d.ts +22 -35
- package/dist/shadcn/index.js +6232 -4805
- package/dist/stateDiagram-FKZM4ZOC.js +34 -34
- package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
- package/dist/storybook/Typography.stories.tsx +93 -120
- package/dist/timeline-definition-IT6M3QCI.js +54 -54
- package/dist/xychartDiagram-PRI3JC2R.js +32 -32
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { d as dt, C as Yn } from "./dayjs.min.js";
|
|
2
|
-
import {
|
|
3
|
-
import { g as yt, k as ln, A as ve, l as er,
|
|
4
|
-
import { B as ye,
|
|
5
|
-
import { j as h, A as dn,
|
|
2
|
+
import { aX as un, cj as Wn, ck as Xn, cl as Kn, cm as Gn, cn as Zn, co as rt, cp as Qn, cq as Jn } from "./CoachForm.js";
|
|
3
|
+
import { g as yt, k as ln, A as ve, l as er, m as Ie, u as cn, o as tr } from "./redux-toolkit.modern.js";
|
|
4
|
+
import { B as ye, a5 as $e, a6 as He, a7 as nr, S as oe, a8 as rr, i as or, j as ft, T as ir } from "./Stack.js";
|
|
5
|
+
import { j as h, A as dn, f as sr, g as ar, b as ur, e as lr, D as cr, E as dr, d as fr, C as pr } from "./index2.js";
|
|
6
6
|
import * as te from "react";
|
|
7
7
|
import Z, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as gr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as hr, Children as De, isValidElement as vr, useState as re, lazy as mr } from "react";
|
|
8
8
|
import Er, { createPortal as bt } from "react-dom";
|
|
9
|
-
import {
|
|
9
|
+
import { a as yr, F as Mt, b as br, A as gn, N as Lt, B as Cr } from "./ToggleGroup.js";
|
|
10
10
|
import { S as Sr } from "./Switch.js";
|
|
11
11
|
import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
|
|
12
12
|
const _r = () => {
|
|
@@ -4496,7 +4496,7 @@ const Hi = {
|
|
|
4496
4496
|
/* @__PURE__ */ h.jsx("img", { alt: "Teammate", src: e.avatar, className: "al-w-16 al-h-16 al-rounded" }),
|
|
4497
4497
|
/* @__PURE__ */ h.jsxs("div", { className: "al-ml-2 al-mt-2", children: [
|
|
4498
4498
|
/* @__PURE__ */ h.jsx(ft, { variant: "subheading", children: e.name }),
|
|
4499
|
-
/* @__PURE__ */ h.jsx(ft, { children: e.description })
|
|
4499
|
+
/* @__PURE__ */ h.jsx(ft, { variant: "body", children: e.description })
|
|
4500
4500
|
] })
|
|
4501
4501
|
] }),
|
|
4502
4502
|
/* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ac = Object.defineProperty;
|
|
2
2
|
var Ec = (n, e, t) => e in n ? Ac(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Ze = (n, e, t) => Ec(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import {
|
|
4
|
+
import { cy as $c, cz as kc, bK as Nl, c3 as xc, bO as Sc, bL as ee, az as Ic, aA as Ea, bV as Cc, bY as wl, bZ as Ll, c8 as $a, bW as Nc, aC as vt, aD as D, bM as ka, bG as wc } from "./CoachForm.js";
|
|
5
5
|
import { k as qt, j as Hs, g as nn, S as Lc, w as _c, x as bc, c as _l, v as z, y as bl, l as Oc, z as Pc, A as Mc, B as Dc, C as Fc, a as Ol, d as C, i as Ye, r as le, f as ke, D as Y } from "./_baseUniq.js";
|
|
6
6
|
import { j as js, m as x, d as Gc, f as Ne, g as Yt, i as zs, h as N, l as Xt, e as Uc } from "./_basePickBy.js";
|
|
7
7
|
import { c as ne } from "./clone.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as le } from "./chunk-55IACEB6.js";
|
|
2
2
|
import { s as he } from "./chunk-QN33PNHL.js";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as l, l as C, d as X, B as G, i as F, aG as de, x as ge, y as ue, W as pe, X as fe, Y as ye } from "./CoachForm.js";
|
|
4
4
|
const E = [];
|
|
5
5
|
for (let t = 0; t < 256; ++t)
|
|
6
6
|
E.push((t + 256).toString(16).slice(1));
|
|
@@ -32,7 +32,7 @@ var q = function() {
|
|
|
32
32
|
var t = /* @__PURE__ */ l(function(v, s, i, a) {
|
|
33
33
|
for (i = i || {}, a = v.length; a--; i[v[a]] = s) ;
|
|
34
34
|
return i;
|
|
35
|
-
}, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], D = [6, 7, 11],
|
|
35
|
+
}, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], D = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = {
|
|
36
36
|
trace: /* @__PURE__ */ l(function() {
|
|
37
37
|
}, "trace"),
|
|
38
38
|
yy: {},
|
|
@@ -87,7 +87,7 @@ var q = function() {
|
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
}, "anonymous"),
|
|
90
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(
|
|
90
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(J, [2, 14], { 7: K, 11: Q }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(A, [2, 11]), t(A, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
|
|
91
91
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
92
92
|
parseError: /* @__PURE__ */ l(function(s, i) {
|
|
93
93
|
if (i.recoverable)
|
|
@@ -115,15 +115,15 @@ var q = function() {
|
|
|
115
115
|
return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
|
|
116
116
|
}
|
|
117
117
|
l(te, "lex");
|
|
118
|
-
for (var S, O, k,
|
|
118
|
+
for (var S, O, k, W, I = {}, V, L, ie, B; ; ) {
|
|
119
119
|
if (O = a[a.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = U[O] && U[O][S]), typeof k > "u" || !k.length || !k[0]) {
|
|
120
|
-
var
|
|
120
|
+
var z = "";
|
|
121
121
|
B = [];
|
|
122
122
|
for (V in U[O])
|
|
123
123
|
this.terminals_[V] && V > re && B.push("'" + this.terminals_[V] + "'");
|
|
124
|
-
f.showPosition ?
|
|
124
|
+
f.showPosition ? z = "Parse error on line " + (M + 1) + `:
|
|
125
125
|
` + f.showPosition() + `
|
|
126
|
-
Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" :
|
|
126
|
+
Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : z = "Parse error on line " + (M + 1) + ": Unexpected " + (S == ee ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(z, {
|
|
127
127
|
text: f.match,
|
|
128
128
|
token: this.terminals_[S] || S,
|
|
129
129
|
line: f.yylineno,
|
|
@@ -146,7 +146,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
146
146
|
}, oe && (I._$.range = [
|
|
147
147
|
r[r.length - (L || 1)].range[0],
|
|
148
148
|
r[r.length - 1].range[1]
|
|
149
|
-
]),
|
|
149
|
+
]), W = this.performAction.apply(I, [
|
|
150
150
|
d,
|
|
151
151
|
Z,
|
|
152
152
|
M,
|
|
@@ -154,8 +154,8 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
154
154
|
k[1],
|
|
155
155
|
g,
|
|
156
156
|
r
|
|
157
|
-
].concat(ae)), typeof
|
|
158
|
-
return
|
|
157
|
+
].concat(ae)), typeof W < "u")
|
|
158
|
+
return W;
|
|
159
159
|
L && (a = a.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), g.push(I.$), r.push(I._$), ie = U[a[a.length - 2]][a[a.length - 1]], a.push(ie);
|
|
160
160
|
break;
|
|
161
161
|
case 3:
|
|
@@ -425,11 +425,11 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
425
425
|
};
|
|
426
426
|
return v;
|
|
427
427
|
}();
|
|
428
|
-
|
|
428
|
+
j.lexer = se;
|
|
429
429
|
function P() {
|
|
430
430
|
this.yy = {};
|
|
431
431
|
}
|
|
432
|
-
return l(P, "Parser"), P.prototype =
|
|
432
|
+
return l(P, "Parser"), P.prototype = j, j.Parser = P, new P();
|
|
433
433
|
}();
|
|
434
434
|
q.parser = q;
|
|
435
435
|
var De = q, x = {
|
|
@@ -463,7 +463,7 @@ var De = q, x = {
|
|
|
463
463
|
let h = !1;
|
|
464
464
|
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
|
|
465
465
|
const p = X();
|
|
466
|
-
let y = ((m = p.mindmap) == null ? void 0 : m.padding) ??
|
|
466
|
+
let y = ((m = p.mindmap) == null ? void 0 : m.padding) ?? G.mindmap.padding;
|
|
467
467
|
switch (u) {
|
|
468
468
|
case this.nodeType.ROUNDED_RECT:
|
|
469
469
|
case this.nodeType.RECT:
|
|
@@ -478,7 +478,7 @@ var De = q, x = {
|
|
|
478
478
|
descr: F(c, p),
|
|
479
479
|
type: u,
|
|
480
480
|
children: [],
|
|
481
|
-
width: ((w = p.mindmap) == null ? void 0 : w.maxNodeWidth) ??
|
|
481
|
+
width: ((w = p.mindmap) == null ? void 0 : w.maxNodeWidth) ?? G.mindmap.maxNodeWidth,
|
|
482
482
|
padding: y,
|
|
483
483
|
isRoot: h
|
|
484
484
|
}, b = this.getParent(e);
|
|
@@ -697,9 +697,9 @@ var De = q, x = {
|
|
|
697
697
|
m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" && (m.width = 0, m.padding = 10);
|
|
698
698
|
}), await ue(h, p), he(
|
|
699
699
|
p,
|
|
700
|
-
((_ = h.config.mindmap) == null ? void 0 : _.padding) ??
|
|
700
|
+
((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? G.mindmap.padding,
|
|
701
701
|
"mindmapDiagram",
|
|
702
|
-
((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ??
|
|
702
|
+
((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? G.mindmap.useMaxWidth
|
|
703
703
|
));
|
|
704
704
|
}, "draw"), Le = {
|
|
705
705
|
draw: ke
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aa as S, a2 as F, aF as Z, B as q, m as H, n as J, s as K, g as Q, c as X, b as Y, _ as g, l as z, r as ee, d as te, C as ae, G as re, O as ne, j as ie } from "./CoachForm.js";
|
|
2
2
|
import { p as se } from "./chunk-4BX2VUAB.js";
|
|
3
3
|
import { p as le } from "./mermaid-parser.core.js";
|
|
4
4
|
import "./redux-toolkit.modern.js";
|
|
@@ -11,15 +11,15 @@ function ue(e) {
|
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
13
13
|
function pe() {
|
|
14
|
-
var e = ue, a = ce, f = null, x = S(0), s = S(
|
|
14
|
+
var e = ue, a = ce, f = null, x = S(0), s = S(F), o = S(0);
|
|
15
15
|
function l(t) {
|
|
16
|
-
var n, c = (t = Z(t)).length, u, y, m = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(
|
|
16
|
+
var n, c = (t = Z(t)).length, u, y, m = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), h, D = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = D * (w < 0 ? -1 : 1), d;
|
|
17
17
|
for (n = 0; n < c; ++n)
|
|
18
18
|
(d = i[p[n] = n] = +e(t[n], n, t)) > 0 && (m += d);
|
|
19
|
-
for (a != null ? p.sort(function(A,
|
|
20
|
-
return a(i[A], i[
|
|
21
|
-
}) : f != null && p.sort(function(A,
|
|
22
|
-
return f(t[A], t[
|
|
19
|
+
for (a != null ? p.sort(function(A, C) {
|
|
20
|
+
return a(i[A], i[C]);
|
|
21
|
+
}) : f != null && p.sort(function(A, C) {
|
|
22
|
+
return f(t[A], t[C]);
|
|
23
23
|
}), n = 0, y = m ? (w - c * $) / m : 0; n < c; ++n, v = h)
|
|
24
24
|
u = p[n], d = i[u], h = v + (d > 0 ? d * y : 0) + $, i[u] = {
|
|
25
25
|
data: t[u],
|
|
@@ -27,7 +27,7 @@ function pe() {
|
|
|
27
27
|
value: d,
|
|
28
28
|
startAngle: v,
|
|
29
29
|
endAngle: h,
|
|
30
|
-
padAngle:
|
|
30
|
+
padAngle: D
|
|
31
31
|
};
|
|
32
32
|
return i;
|
|
33
33
|
}
|
|
@@ -56,7 +56,7 @@ var L = q.pie, G = {
|
|
|
56
56
|
throw new Error(
|
|
57
57
|
`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
|
|
58
58
|
);
|
|
59
|
-
T.has(e) || (T.set(e, a),
|
|
59
|
+
T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
|
|
60
60
|
}, "addSection"), me = /* @__PURE__ */ g(() => T, "getSections"), ve = /* @__PURE__ */ g((e) => {
|
|
61
61
|
N = e;
|
|
62
62
|
}, "setShowData"), Se = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
|
|
@@ -77,7 +77,7 @@ var L = q.pie, G = {
|
|
|
77
77
|
}, "populateDb"), ye = {
|
|
78
78
|
parse: /* @__PURE__ */ g(async (e) => {
|
|
79
79
|
const a = await le("pie", e);
|
|
80
|
-
|
|
80
|
+
z.debug(a), xe(a, _);
|
|
81
81
|
}, "parse")
|
|
82
82
|
}, we = /* @__PURE__ */ g((e) => `
|
|
83
83
|
.pieCircle{
|
|
@@ -107,20 +107,20 @@ var L = q.pie, G = {
|
|
|
107
107
|
font-family: ${e.fontFamily};
|
|
108
108
|
font-size: ${e.pieLegendTextSize};
|
|
109
109
|
}
|
|
110
|
-
`, "getStyles"), Ae = we,
|
|
110
|
+
`, "getStyles"), Ae = we, Ce = /* @__PURE__ */ g((e) => {
|
|
111
111
|
const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
|
|
112
112
|
return pe().value((s) => s.value)(f);
|
|
113
|
-
}, "createPieArcs"),
|
|
114
|
-
|
|
113
|
+
}, "createPieArcs"), De = /* @__PURE__ */ g((e, a, f, x) => {
|
|
114
|
+
z.debug(`rendering pie chart
|
|
115
115
|
` + e);
|
|
116
116
|
const s = x.db, o = te(), l = ae(s.getConfig(), o.pie), t = 40, n = 18, c = 4, u = 450, y = u, m = re(a), p = m.append("g");
|
|
117
117
|
p.attr("transform", "translate(" + y / 2 + "," + u / 2 + ")");
|
|
118
118
|
const { themeVariables: i } = o;
|
|
119
119
|
let [v] = ne(i.pieOuterStrokeWidth);
|
|
120
120
|
v ?? (v = 2);
|
|
121
|
-
const w = l.textPosition, h = Math.min(y, u) / 2 - t,
|
|
121
|
+
const w = l.textPosition, h = Math.min(y, u) / 2 - t, D = I().innerRadius(0).outerRadius(h), $ = I().innerRadius(h * w).outerRadius(h * w);
|
|
122
122
|
p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", h + v / 2).attr("class", "pieOuterCircle");
|
|
123
|
-
const d = s.getSections(), A =
|
|
123
|
+
const d = s.getSections(), A = Ce(d), C = [
|
|
124
124
|
i.pie1,
|
|
125
125
|
i.pie2,
|
|
126
126
|
i.pie3,
|
|
@@ -138,26 +138,26 @@ var L = q.pie, G = {
|
|
|
138
138
|
d.forEach((r) => {
|
|
139
139
|
b += r;
|
|
140
140
|
});
|
|
141
|
-
const
|
|
142
|
-
p.selectAll("mySlices").data(
|
|
143
|
-
const
|
|
141
|
+
const O = A.filter((r) => (r.data.value / b * 100).toFixed(0) !== "0"), E = oe(C);
|
|
142
|
+
p.selectAll("mySlices").data(O).enter().append("path").attr("d", D).attr("fill", (r) => E(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(O).enter().append("text").text((r) => (r.data.value / b * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
|
|
143
|
+
const W = [...d.entries()].map(([r, M]) => ({
|
|
144
144
|
label: r,
|
|
145
145
|
value: M
|
|
146
|
-
})), k = p.selectAll(".legend").data(
|
|
147
|
-
const R = n + c,
|
|
148
|
-
return "translate(" +
|
|
146
|
+
})), k = p.selectAll(".legend").data(W).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
|
|
147
|
+
const R = n + c, V = R * W.length / 2, j = 12 * n, U = M * R - V;
|
|
148
|
+
return "translate(" + j + "," + U + ")";
|
|
149
149
|
});
|
|
150
150
|
k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => E(r.label)).style("stroke", (r) => E(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
|
|
151
|
-
const
|
|
151
|
+
const B = Math.max(
|
|
152
152
|
...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
|
|
153
|
-
), P = y + t + n + c +
|
|
153
|
+
), P = y + t + n + c + B;
|
|
154
154
|
m.attr("viewBox", `0 0 ${P} ${u}`), ie(m, u, P, l.useMaxWidth);
|
|
155
|
-
}, "draw"), $e = { draw:
|
|
155
|
+
}, "draw"), $e = { draw: De }, ze = {
|
|
156
156
|
parser: ye,
|
|
157
157
|
db: _,
|
|
158
158
|
renderer: $e,
|
|
159
159
|
styles: Ae
|
|
160
160
|
};
|
|
161
161
|
export {
|
|
162
|
-
|
|
162
|
+
ze as diagram
|
|
163
163
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as o, I as _e, B as D, l as At, d as wt, i as Ae, n as ie, s as ke, g as Fe, m as Pe, b as ve, c as Ce, r as Le, j as Ee } from "./CoachForm.js";
|
|
2
2
|
import { s as zt } from "./redux-toolkit.modern.js";
|
|
3
3
|
import { l as ee } from "./linear.js";
|
|
4
4
|
var Vt = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as bt, B as pt,
|
|
1
|
+
import { c as bt, B as pt, a5 as mt, a8 as kt, S as yt, a6 as wt } from "./Stack.js";
|
|
2
2
|
import { j as $ } from "./index2.js";
|
|
3
3
|
import { Prism as vt } from "react-syntax-highlighter";
|
|
4
4
|
import { useState as Q, useCallback as St, useEffect as xt } from "react";
|
|
@@ -12498,7 +12498,7 @@ function w(e) {
|
|
|
12498
12498
|
export {
|
|
12499
12499
|
ms as A,
|
|
12500
12500
|
ue as C,
|
|
12501
|
-
|
|
12501
|
+
ss as I,
|
|
12502
12502
|
x as R,
|
|
12503
12503
|
K as T,
|
|
12504
12504
|
Qo as a,
|
|
@@ -12513,13 +12513,13 @@ export {
|
|
|
12513
12513
|
gs as j,
|
|
12514
12514
|
ks as k,
|
|
12515
12515
|
ds as l,
|
|
12516
|
-
|
|
12516
|
+
us as m,
|
|
12517
12517
|
Fr as n,
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12518
|
+
bs as o,
|
|
12519
|
+
mr as p,
|
|
12520
|
+
hs as q,
|
|
12521
12521
|
sc as r,
|
|
12522
12522
|
fs as s,
|
|
12523
|
-
|
|
12523
|
+
Cc as t,
|
|
12524
12524
|
ps as u
|
|
12525
12525
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as Ge } from "./chunk-55IACEB6.js";
|
|
2
2
|
import { s as ze } from "./chunk-QN33PNHL.js";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as m, s as Xe, g as Je, c as Ze, b as et, m as tt, n as st, d as Ne, l as qe, r as it, A as rt, x as nt, y as at, u as lt } from "./CoachForm.js";
|
|
4
4
|
var Ae = function() {
|
|
5
5
|
var e = /* @__PURE__ */ m(function(P, i, r, l) {
|
|
6
6
|
for (r = r || {}, l = P.length; l--; r[P[l]] = i) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, n as wt, m as St, r as Lt, e as Et, t as At, V as Tt } from "./CoachForm.js";
|
|
2
2
|
import { s as X } from "./redux-toolkit.modern.js";
|
|
3
3
|
import { o as Mt } from "./ordinal.js";
|
|
4
4
|
function Nt(t) {
|
|
@@ -210,13 +210,13 @@ function Bt() {
|
|
|
210
210
|
for (let c = 1, r = n.length; c < r; ++c) {
|
|
211
211
|
const k = n[c];
|
|
212
212
|
for (const w of k) {
|
|
213
|
-
let L = 0,
|
|
213
|
+
let L = 0, V = 0;
|
|
214
214
|
for (const { source: Y, value: et } of w.targetLinks) {
|
|
215
215
|
let H = et * (w.layer - Y.layer);
|
|
216
|
-
L += z(Y, w) * H,
|
|
216
|
+
L += z(Y, w) * H, V += H;
|
|
217
217
|
}
|
|
218
|
-
if (!(
|
|
219
|
-
let G = (L /
|
|
218
|
+
if (!(V > 0)) continue;
|
|
219
|
+
let G = (L / V - w.y0) * f;
|
|
220
220
|
w.y0 += G, w.y1 += G, E(w);
|
|
221
221
|
}
|
|
222
222
|
o === void 0 && k.sort(Q), O(k, u);
|
|
@@ -226,13 +226,13 @@ function Bt() {
|
|
|
226
226
|
for (let c = n.length, r = c - 2; r >= 0; --r) {
|
|
227
227
|
const k = n[r];
|
|
228
228
|
for (const w of k) {
|
|
229
|
-
let L = 0,
|
|
229
|
+
let L = 0, V = 0;
|
|
230
230
|
for (const { target: Y, value: et } of w.sourceLinks) {
|
|
231
231
|
let H = et * (Y.layer - w.layer);
|
|
232
|
-
L += I(w, Y) * H,
|
|
232
|
+
L += I(w, Y) * H, V += H;
|
|
233
233
|
}
|
|
234
|
-
if (!(
|
|
235
|
-
let G = (L /
|
|
234
|
+
if (!(V > 0)) continue;
|
|
235
|
+
let G = (L / V - w.y0) * f;
|
|
236
236
|
w.y0 += G, w.y1 += G, E(w);
|
|
237
237
|
}
|
|
238
238
|
o === void 0 && k.sort(Q), O(k, u);
|
|
@@ -293,7 +293,7 @@ function Bt() {
|
|
|
293
293
|
}
|
|
294
294
|
return b;
|
|
295
295
|
}
|
|
296
|
-
var st = Math.PI, rt = 2 * st,
|
|
296
|
+
var st = Math.PI, rt = 2 * st, F = 1e-6, Rt = rt - F;
|
|
297
297
|
function ot() {
|
|
298
298
|
this._x0 = this._y0 = // start of current subpath
|
|
299
299
|
this._x1 = this._y1 = null, this._ = "";
|
|
@@ -324,18 +324,18 @@ ot.prototype = kt.prototype = {
|
|
|
324
324
|
if (h < 0) throw new Error("negative radius: " + h);
|
|
325
325
|
if (this._x1 === null)
|
|
326
326
|
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
327
|
-
else if (x >
|
|
327
|
+
else if (x > F) if (!(Math.abs(l * _ - s * o) > F) || !h)
|
|
328
328
|
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
329
329
|
else {
|
|
330
330
|
var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), $ = C / N, R = C / T;
|
|
331
|
-
Math.abs($ - 1) >
|
|
331
|
+
Math.abs($ - 1) > F && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
arc: function(t, e, i, a, h, d) {
|
|
335
335
|
t = +t, e = +e, i = +i, d = !!d;
|
|
336
336
|
var m = i * Math.cos(a), _ = i * Math.sin(a), s = t + m, o = e + _, l = 1 ^ d, x = d ? a - h : h - a;
|
|
337
337
|
if (i < 0) throw new Error("negative radius: " + i);
|
|
338
|
-
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) >
|
|
338
|
+
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > F || Math.abs(this._y1 - o) > F) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > F && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
|
|
339
339
|
},
|
|
340
340
|
rect: function(t, e, i, a) {
|
|
341
341
|
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
|
|
@@ -349,10 +349,10 @@ function dt(t) {
|
|
|
349
349
|
return t;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Vt(t) {
|
|
353
353
|
return t[0];
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ft(t) {
|
|
356
356
|
return t[1];
|
|
357
357
|
}
|
|
358
358
|
var Wt = Array.prototype.slice;
|
|
@@ -363,7 +363,7 @@ function Gt(t) {
|
|
|
363
363
|
return t.target;
|
|
364
364
|
}
|
|
365
365
|
function Yt(t) {
|
|
366
|
-
var e = Ut, i = Gt, a =
|
|
366
|
+
var e = Ut, i = Gt, a = Vt, h = Ft, d = null;
|
|
367
367
|
function m() {
|
|
368
368
|
var _, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
|
|
369
369
|
if (d || (d = _ = kt()), t(d, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), _) return d = null, _ + "" || null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ct, a as Xt, d as we, b as ve, c as
|
|
2
|
-
import {
|
|
1
|
+
import { g as ct, a as Xt, d as we, b as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B.js";
|
|
2
|
+
import { _ as f, s as se, c as Ie, m as Le, g as Ae, b as _e, n as ke, d as st, o as Pe, J as Ne, r as Se, l as Q, i as St, v as Me, e as I, K as z, L as At, u as F, a as Re, j as De, k as re, M as Ce, N as ie, D as Ht, O as ne, Z as Oe } from "./CoachForm.js";
|
|
3
3
|
import { I as Be } from "./chunk-QZHKN3VN.js";
|
|
4
4
|
import { s as Mt } from "./redux-toolkit.modern.js";
|
|
5
5
|
var Ut = function() {
|
|
@@ -249,27 +249,27 @@ var Ut = function() {
|
|
|
249
249
|
return et = m.pop() || W.lex() || jt, typeof et != "number" && (et instanceof Array && (m = et, et = m.pop()), et = _.symbols_[et] || et), et;
|
|
250
250
|
}
|
|
251
251
|
f(te, "lex");
|
|
252
|
-
for (var
|
|
253
|
-
if (yt = L[L.length - 1], this.defaultActions[yt] ? it = this.defaultActions[yt] : ((
|
|
252
|
+
for (var J, yt, it, qt, bt = {}, Pt, ht, ee, Nt; ; ) {
|
|
253
|
+
if (yt = L[L.length - 1], this.defaultActions[yt] ? it = this.defaultActions[yt] : ((J === null || typeof J > "u") && (J = te()), it = It[yt] && It[yt][J]), typeof it > "u" || !it.length || !it[0]) {
|
|
254
254
|
var zt = "";
|
|
255
255
|
Nt = [];
|
|
256
256
|
for (Pt in It[yt])
|
|
257
257
|
this.terminals_[Pt] && Pt > Te && Nt.push("'" + this.terminals_[Pt] + "'");
|
|
258
258
|
W.showPosition ? zt = "Parse error on line " + (kt + 1) + `:
|
|
259
259
|
` + W.showPosition() + `
|
|
260
|
-
Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[
|
|
260
|
+
Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt = "Parse error on line " + (kt + 1) + ": Unexpected " + (J == jt ? "end of input" : "'" + (this.terminals_[J] || J) + "'"), this.parseError(zt, {
|
|
261
261
|
text: W.match,
|
|
262
|
-
token: this.terminals_[
|
|
262
|
+
token: this.terminals_[J] || J,
|
|
263
263
|
line: W.yylineno,
|
|
264
264
|
loc: Ft,
|
|
265
265
|
expected: Nt
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
if (it[0] instanceof Array && it.length > 1)
|
|
269
|
-
throw new Error("Parse Error: multiple actions possible at state: " + yt + ", token: " +
|
|
269
|
+
throw new Error("Parse Error: multiple actions possible at state: " + yt + ", token: " + J);
|
|
270
270
|
switch (it[0]) {
|
|
271
271
|
case 1:
|
|
272
|
-
L.push(
|
|
272
|
+
L.push(J), B.push(W.yytext), d.push(W.yylloc), L.push(it[1]), J = null, $t = W.yyleng, u = W.yytext, kt = W.yylineno, Ft = W.yylloc;
|
|
273
273
|
break;
|
|
274
274
|
case 2:
|
|
275
275
|
if (ht = this.productions_[it[1]][1], bt.$ = B[B.length - ht], bt._$ = {
|
|
@@ -842,7 +842,7 @@ var Ve = Ut, Ye = {
|
|
|
842
842
|
text: r,
|
|
843
843
|
wrap: s
|
|
844
844
|
};
|
|
845
|
-
return
|
|
845
|
+
return Q.debug(`parseMessage: ${JSON.stringify(i)}`), i;
|
|
846
846
|
}
|
|
847
847
|
// We expect the box statement to be color first then description
|
|
848
848
|
// The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
|
|
@@ -888,7 +888,7 @@ var Ve = Ut, Ye = {
|
|
|
888
888
|
const i = JSON.parse(r);
|
|
889
889
|
this.insertLinks(s, i);
|
|
890
890
|
} catch (r) {
|
|
891
|
-
|
|
891
|
+
Q.error("error while parsing actor link text", r);
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
addALink(t, n) {
|
|
@@ -901,7 +901,7 @@ var Ve = Ut, Ye = {
|
|
|
901
901
|
const h = i.slice(0, c - 1).trim(), o = i.slice(c + 1).trim();
|
|
902
902
|
r[h] = o, this.insertLinks(s, r);
|
|
903
903
|
} catch (r) {
|
|
904
|
-
|
|
904
|
+
Q.error("error while parsing actor link text", r);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
insertLinks(t, n) {
|
|
@@ -917,7 +917,7 @@ var Ve = Ut, Ye = {
|
|
|
917
917
|
const r = St(n.text, st()), i = JSON.parse(r);
|
|
918
918
|
this.insertProperties(s, i);
|
|
919
919
|
} catch (r) {
|
|
920
|
-
|
|
920
|
+
Q.error("error while parsing actor properties text", r);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
insertProperties(t, n) {
|
|
@@ -936,7 +936,7 @@ var Ve = Ut, Ye = {
|
|
|
936
936
|
const i = r.innerHTML, c = JSON.parse(i);
|
|
937
937
|
c.properties && this.insertProperties(s, c.properties), c.links && this.insertLinks(s, c.links);
|
|
938
938
|
} catch (i) {
|
|
939
|
-
|
|
939
|
+
Q.error("error while parsing actor details text", i);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
getActorProperty(t, n) {
|
|
@@ -1324,7 +1324,7 @@ var Ve = Ut, Ye = {
|
|
|
1324
1324
|
const g = Lt(o, a);
|
|
1325
1325
|
if (t.rectData = a, (b = t.properties) != null && b.icon) {
|
|
1326
1326
|
const w = t.properties.icon.trim();
|
|
1327
|
-
w.charAt(0) === "@" ?
|
|
1327
|
+
w.charAt(0) === "@" ? Jt(o, a.x + a.width - 20, a.y + 10, w.substr(1)) : Qt(o, a.x + a.width - 20, a.y + 10, w);
|
|
1328
1328
|
}
|
|
1329
1329
|
dt(n, z(t.description))(
|
|
1330
1330
|
t.description,
|
|
@@ -1358,7 +1358,7 @@ var Ve = Ut, Ye = {
|
|
|
1358
1358
|
}, y = Lt(o, a);
|
|
1359
1359
|
if (Lt(o, x), t.rectData = a, (k = t.properties) != null && k.icon) {
|
|
1360
1360
|
const N = t.properties.icon.trim();
|
|
1361
|
-
N.charAt(0) === "@" ?
|
|
1361
|
+
N.charAt(0) === "@" ? Jt(o, a.x + a.width - 20, a.y + 10, N.substr(1)) : Qt(o, a.x + a.width - 20, a.y + 10, N);
|
|
1362
1362
|
}
|
|
1363
1363
|
dt(n, z(t.description))(
|
|
1364
1364
|
t.description,
|
|
@@ -1399,7 +1399,7 @@ var Ve = Ut, Ye = {
|
|
|
1399
1399
|
a ${x},${g} 0 0 0 0,${a.height}`
|
|
1400
1400
|
).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", p), y.attr("transform", `translate(${x}, ${-(a.height / 2)})`), b.attr("transform", `translate(${a.width - x}, ${-a.height / 2})`), t.rectData = a, (S = t.properties) != null && S.icon) {
|
|
1401
1401
|
const M = t.properties.icon.trim(), C = a.x + a.width - 20, Y = a.y + 10;
|
|
1402
|
-
M.charAt(0) === "@" ?
|
|
1402
|
+
M.charAt(0) === "@" ? Jt(o, C, Y, M.substr(1)) : Qt(o, C, Y, M);
|
|
1403
1403
|
}
|
|
1404
1404
|
dt(n, z(t.description))(
|
|
1405
1405
|
t.description,
|
|
@@ -1418,7 +1418,7 @@ var Ve = Ut, Ye = {
|
|
|
1418
1418
|
t.height = M.height, w = M.height;
|
|
1419
1419
|
}
|
|
1420
1420
|
return w;
|
|
1421
|
-
}, "drawActorTypeQueue"),
|
|
1421
|
+
}, "drawActorTypeQueue"), Je = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1422
1422
|
var w;
|
|
1423
1423
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 75, h = e.append("g").lower();
|
|
1424
1424
|
s || (P++, h.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = P);
|
|
@@ -1440,7 +1440,7 @@ var Ve = Ut, Ye = {
|
|
|
1440
1440
|
{ class: `actor ${ut}` },
|
|
1441
1441
|
n
|
|
1442
1442
|
), t.height;
|
|
1443
|
-
}, "drawActorTypeControl"),
|
|
1443
|
+
}, "drawActorTypeControl"), Qe = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1444
1444
|
var w;
|
|
1445
1445
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 75, h = e.append("g").lower(), o = e.append("g");
|
|
1446
1446
|
let a = ut;
|
|
@@ -1541,9 +1541,9 @@ var Ve = Ut, Ye = {
|
|
|
1541
1541
|
case "boundary":
|
|
1542
1542
|
return await $e(e, t, n, s);
|
|
1543
1543
|
case "control":
|
|
1544
|
-
return await Qe(e, t, n, s);
|
|
1545
|
-
case "entity":
|
|
1546
1544
|
return await Je(e, t, n, s);
|
|
1545
|
+
case "entity":
|
|
1546
|
+
return await Qe(e, t, n, s);
|
|
1547
1547
|
case "database":
|
|
1548
1548
|
return await Ze(e, t, n, s);
|
|
1549
1549
|
case "collections":
|
|
@@ -1993,7 +1993,7 @@ function nt(e, t, n, s, r) {
|
|
|
1993
1993
|
const c = e[t.id].width, h = Et(l);
|
|
1994
1994
|
t.message = F.wrapLabel(`[${t.message}]`, c - 2 * l.wrapPadding, h), t.width = c, t.wrap = !0;
|
|
1995
1995
|
const o = F.calculateTextDimensions(t.message, h), a = I.getMax(o.height, l.labelBoxHeight);
|
|
1996
|
-
i = s + a,
|
|
1996
|
+
i = s + a, Q.debug(`${a} - ${t.message}`);
|
|
1997
1997
|
}
|
|
1998
1998
|
r(t), T.bumpVerticalPos(i);
|
|
1999
1999
|
}
|
|
@@ -2059,7 +2059,7 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2059
2059
|
let c;
|
|
2060
2060
|
r === "sandbox" && (c = Mt("#i" + t));
|
|
2061
2061
|
const h = r === "sandbox" ? Mt(c.nodes()[0].contentDocument.body) : Mt("body"), o = r === "sandbox" ? c.nodes()[0].contentDocument : document;
|
|
2062
|
-
T.init(),
|
|
2062
|
+
T.init(), Q.debug(s.db);
|
|
2063
2063
|
const a = r === "sandbox" ? h.select(`[id="${t}"]`) : Mt(`[id="${t}"]`), p = s.db.getActors(), g = s.db.getCreatedActors(), x = s.db.getDestroyedActors(), y = s.db.getBoxes();
|
|
2064
2064
|
let b = s.db.getActorKeys();
|
|
2065
2065
|
const w = s.db.getMessages(), k = s.db.getDiagramTitle(), N = s.db.hasAtLeastOneBox(), S = s.db.hasAtLeastOneBoxWithTitle(), M = await xe(p, w, s);
|
|
@@ -2227,7 +2227,7 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2227
2227
|
x
|
|
2228
2228
|
), at.push({ messageModel: tt, lineStartY: R }), T.models.addMessage(tt);
|
|
2229
2229
|
} catch (R) {
|
|
2230
|
-
|
|
2230
|
+
Q.error("error while drawing message", R);
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
2233
|
[
|
|
@@ -2243,7 +2243,7 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2243
2243
|
s.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
2244
2244
|
].includes(E.type) && (H = H + Z), G++;
|
|
2245
2245
|
}
|
|
2246
|
-
|
|
2246
|
+
Q.debug("createdActors", g), Q.debug("destroyedActors", x), await Kt(a, p, b, !1);
|
|
2247
2247
|
for (const E of at)
|
|
2248
2248
|
await xs(a, E.messageModel, E.lineStartY, s);
|
|
2249
2249
|
l.mirrorActors && await Kt(a, p, b, !0), U.forEach((E) => V.drawBackgroundRect(a, E)), ce(a, p, b, l);
|
|
@@ -2267,7 +2267,7 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2267
2267
|
a.attr(
|
|
2268
2268
|
"viewBox",
|
|
2269
2269
|
O.startx - l.diagramMarginX + " -" + (l.diagramMarginY + D) + " " + rt + " " + (K + D)
|
|
2270
|
-
),
|
|
2270
|
+
), Q.debug("models:", T.models);
|
|
2271
2271
|
}, "draw");
|
|
2272
2272
|
async function xe(e, t, n) {
|
|
2273
2273
|
const s = {};
|
|
@@ -2303,7 +2303,7 @@ async function xe(e, t, n) {
|
|
|
2303
2303
|
g / 2
|
|
2304
2304
|
)));
|
|
2305
2305
|
}
|
|
2306
|
-
return
|
|
2306
|
+
return Q.debug("maxMessageWidthPerActor:", s), s;
|
|
2307
2307
|
}
|
|
2308
2308
|
f(xe, "getMaxMessageWidthPerActor");
|
|
2309
2309
|
var Ts = /* @__PURE__ */ f(function(e) {
|
|
@@ -2384,7 +2384,7 @@ var Es = /* @__PURE__ */ f(async function(e, t, n) {
|
|
|
2384
2384
|
e.message,
|
|
2385
2385
|
a.width - 2 * l.wrapPadding,
|
|
2386
2386
|
mt(l)
|
|
2387
|
-
)),
|
|
2387
|
+
)), Q.debug(
|
|
2388
2388
|
`NM:[${a.startx},${a.stopx},${a.starty},${a.stopy}:${a.width},${a.height}=${e.message}]`
|
|
2389
2389
|
), a;
|
|
2390
2390
|
}, "buildNoteModel"), bs = /* @__PURE__ */ f(function(e, t, n) {
|
|
@@ -2500,7 +2500,7 @@ var Es = /* @__PURE__ */ f(async function(e, t, n) {
|
|
|
2500
2500
|
c.from = I.getMin(o.startx, c.from), c.to = I.getMax(o.stopx, c.to), c.width = I.getMax(c.width, o.width) - l.labelBoxWidth;
|
|
2501
2501
|
}));
|
|
2502
2502
|
}
|
|
2503
|
-
return T.activations = [],
|
|
2503
|
+
return T.activations = [], Q.debug("Loop type widths:", r), r;
|
|
2504
2504
|
}, "calculateLoopBounds"), ws = {
|
|
2505
2505
|
bounds: T,
|
|
2506
2506
|
drawActors: Kt,
|