@divami-artefacts/ai-design-system 1.0.10 → 1.0.12
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/canvas/canvasUtils.d.ts +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +281 -267
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18,12 +18,12 @@ var u = {
|
|
|
18
18
|
blue: "#2970FF",
|
|
19
19
|
cyan: "#36BFFA",
|
|
20
20
|
orange: "#EF6820",
|
|
21
|
-
red: "#
|
|
22
|
-
green: "#
|
|
21
|
+
red: "#EF6820",
|
|
22
|
+
green: "#71B941",
|
|
23
23
|
purple: "#7A5AF8",
|
|
24
24
|
amber: "#FAC515",
|
|
25
25
|
t1: "#F7F7F7",
|
|
26
|
-
t2: "#
|
|
26
|
+
t2: "#C2C2C2",
|
|
27
27
|
t3: "#94979C",
|
|
28
28
|
t4: "#334155"
|
|
29
29
|
}, d = [
|
|
@@ -34,11 +34,11 @@ var u = {
|
|
|
34
34
|
u.green,
|
|
35
35
|
u.red
|
|
36
36
|
], f = {
|
|
37
|
-
font: "400
|
|
38
|
-
color:
|
|
37
|
+
font: "400 14px 'Satoshi Variable', 'DM Sans', sans-serif",
|
|
38
|
+
color: "#C2C2C2"
|
|
39
39
|
}, p = {
|
|
40
|
-
font: "400
|
|
41
|
-
color:
|
|
40
|
+
font: "400 14px 'Satoshi Variable', 'DM Sans', sans-serif",
|
|
41
|
+
color: "#C2C2C2"
|
|
42
42
|
};
|
|
43
43
|
function m(e, t = 1) {
|
|
44
44
|
let n = e.replace("#", "");
|
|
@@ -466,7 +466,7 @@ function ae({ expanded: e, onToggle: t, labelExpanded: n = "View Less", labelCol
|
|
|
466
466
|
boxSizing: "border-box",
|
|
467
467
|
border: "none",
|
|
468
468
|
borderRadius: 6,
|
|
469
|
-
color: "#
|
|
469
|
+
color: "#71B941",
|
|
470
470
|
fontSize: 14,
|
|
471
471
|
fontFamily: "'Satoshi Variable', 'DM Sans', sans-serif",
|
|
472
472
|
fontStyle: "normal",
|
|
@@ -622,7 +622,7 @@ function he({ value: e, confirmed: t, total: r, "data-testid": i }) {
|
|
|
622
622
|
}
|
|
623
623
|
].forEach(({ label: e, angle: t }) => {
|
|
624
624
|
let n = a + Math.cos(t) * 166, r = 220 + Math.sin(t) * 166;
|
|
625
|
-
i.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", i.fillStyle = m(u.
|
|
625
|
+
i.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", i.fillStyle = m(u.t2, .55), i.textAlign = "center", i.fillText(e, n, r + 3);
|
|
626
626
|
});
|
|
627
627
|
let _ = s + e / 100 * d * o, y = e >= 66 ? u.green : e >= 33 ? u.amber : u.red;
|
|
628
628
|
v(i, a + Math.cos(_) * 194 / 2, 220 + Math.sin(_) * 194 / 2, 18, y, .35 * o), i.beginPath(), i.arc(a, 220, 194 / 2, s, _), i.strokeStyle = m(y, .7 * o), i.lineWidth = 38, i.lineCap = "round", i.stroke(), i.lineCap = "butt";
|
|
@@ -758,19 +758,19 @@ function Se({ items: e = [], "data-testid": t }) {
|
|
|
758
758
|
let c = A(n, .05, 5e-4) * .3 + .7, l = 3.5 * c, u = `star-${i}-${s}`, f = r.current.get(u) ?? 0, p = e.createRadialGradient(o.x, o.y, 0, o.x, o.y, l * 4);
|
|
759
759
|
p.addColorStop(0, m(a, (.2 + .1 * f) * c)), p.addColorStop(1, m(a, 0)), e.fillStyle = p, e.beginPath(), e.arc(o.x, o.y, l * 4, 0, Math.PI * 2), e.fill(), e.beginPath(), e.arc(o.x, o.y, l + f * 2, 0, Math.PI * 2), e.fillStyle = m(a, (.8 + .2 * f) * c), e.fill();
|
|
760
760
|
let h = Math.sin(o.angle) < -.3;
|
|
761
|
-
e.textAlign = "center", e.textBaseline = "middle", h ? (e.font = "400
|
|
761
|
+
e.textAlign = "center", e.textBaseline = "middle", h ? (e.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.fillStyle = m(a, .5 + .15 * f), e.fillText(o.short, o.x, o.y - 24), e.font = "500 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.fillStyle = m(a, .8 + .15 * f), e.fillText(o.label, o.x, o.y - 11)) : (e.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.fillStyle = m(a, .5 + .15 * f), e.fillText(o.short, o.x, o.y + 11), e.font = "500 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.fillStyle = m(a, .8 + .15 * f), e.fillText(o.label, o.x, o.y + 24)), w(d.current, u, o.x, o.y, l * 4 + 2, {
|
|
762
762
|
label: o.name,
|
|
763
763
|
value: o.label,
|
|
764
764
|
sublabel: t.abbreviation ?? t.name.slice(0, 6),
|
|
765
765
|
color: a
|
|
766
766
|
});
|
|
767
|
-
}), s > 0 && v(e, t.cx, t.cy, 16 * s, a, .15 * s), e.beginPath(), e.arc(t.cx, t.cy, t.baseR + 12, 0, Math.PI * 2), e.strokeStyle = m(a, .1 + A(n, .03, 5e-4) * .05), e.lineWidth = 1, e.stroke(), e.font = "500
|
|
767
|
+
}), s > 0 && v(e, t.cx, t.cy, 16 * s, a, .15 * s), e.beginPath(), e.arc(t.cx, t.cy, t.baseR + 12, 0, Math.PI * 2), e.strokeStyle = m(a, .1 + A(n, .03, 5e-4) * .05), e.lineWidth = 1, e.stroke(), e.font = "500 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.textAlign = "center", e.textBaseline = "alphabetic", e.fillStyle = m(u.t2, .65 + s * .25), e.fillText(t.abbreviation ?? t.name.slice(0, 6), t.cx, t.cy + t.baseR + 26), w(d.current, o, t.cx, t.cy, t.baseR + 5, {
|
|
768
768
|
label: t.name,
|
|
769
769
|
value: `£${t.total ?? 0}M total`,
|
|
770
770
|
sublabel: `${t.percentage ?? 0}% committed · scatter ${t.scatter.toFixed(1)}`,
|
|
771
771
|
color: a
|
|
772
772
|
});
|
|
773
|
-
}), e.font = "400
|
|
773
|
+
}), e.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.textAlign = "center", e.textBaseline = "middle", e.fillStyle = u.t2, e.fillText("▲ top = Base value · ▼▸ lower-right = Variations · ◂▼ lower-left = Commitment % · hover stars for details", R / 2, z - 14), b(e, R, z, n, .012);
|
|
774
774
|
}, !0), p.length === 0 ? /* @__PURE__ */ s(F, {
|
|
775
775
|
width: R,
|
|
776
776
|
height: z,
|
|
@@ -824,12 +824,12 @@ function ke({ data: e, "data-testid": t }) {
|
|
|
824
824
|
return ge(n, Ce, w, (e, t) => {
|
|
825
825
|
M(r.current, A.current), N.current = [], y.forEach((n, i) => {
|
|
826
826
|
let a = Ee[i % Ee.length], o = j(t, i, b, D), s = B.top + i * (V + O), c = B.left + De, l = r.current.get(n.id) ?? 0, d = Math.max(n.base ?? 0, 0), p = Math.max(n.total ?? 0, 0), h = d / x * E * o, g = p / x * E * o, _ = g - h;
|
|
827
|
-
e.font = "
|
|
827
|
+
e.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.fillStyle = l > 0 ? a : f.color, e.textAlign = "right", e.textBaseline = "middle", e.fillText(n.abbreviation ?? n.name.slice(0, 6), c - 8, s + V / 2), e.fillStyle = m(u.bd, .25), e.beginPath(), e.roundRect(c, s, E, V, 4), e.fill(), h > 0 && (l > 0 && v(e, c + h / 2, s + V / 2, h * .3, a, .1 * l), e.fillStyle = m(a, .5 + l * .15), e.beginPath(), e.roundRect(c, s, h, V, 4), e.fill()), _ > 2 && (e.fillStyle = m(a, .22 + l * .08), e.beginPath(), e.roundRect(c + h, s, _, V, [
|
|
828
828
|
0,
|
|
829
829
|
4,
|
|
830
830
|
4,
|
|
831
831
|
0
|
|
832
|
-
]), e.fill(), e.setLineDash([2, 3]), e.strokeStyle = m(a, .55), e.lineWidth = 1, e.beginPath(), e.moveTo(c + h, s + 3), e.lineTo(c + h, s + V - 3), e.stroke(), e.setLineDash([])), l > 0 && g > 0 && (e.strokeStyle = m(a, .5 * l), e.lineWidth = 1, e.setLineDash([]), e.beginPath(), e.roundRect(c, s, g, V, 4), e.stroke()), o > .35 && (e.globalAlpha = Math.min(1, (o - .35) / .4), e.font = "
|
|
832
|
+
]), e.fill(), e.setLineDash([2, 3]), e.strokeStyle = m(a, .55), e.lineWidth = 1, e.beginPath(), e.moveTo(c + h, s + 3), e.lineTo(c + h, s + V - 3), e.stroke(), e.setLineDash([])), l > 0 && g > 0 && (e.strokeStyle = m(a, .5 * l), e.lineWidth = 1, e.setLineDash([]), e.beginPath(), e.roundRect(c, s, g, V, 4), e.stroke()), o > .35 && (e.globalAlpha = Math.min(1, (o - .35) / .4), e.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.fillStyle = l > 0 ? a : "#F7F9FA", e.textAlign = "left", e.textBaseline = "middle", e.fillText(Oe(n.total ?? 0), c + g + 6, s + V / 2), e.globalAlpha = 1), T(N.current, n.id, c, s, Math.max(g, 1), V, {
|
|
833
833
|
label: n.name,
|
|
834
834
|
value: `${Oe(n.total ?? 0)} total`,
|
|
835
835
|
sublabel: `Base ${Oe(n.base ?? 0)} + Var ${Oe(n.variation ?? 0)} · ${n.percentage ?? 0}% committed`,
|
|
@@ -837,7 +837,7 @@ function ke({ data: e, "data-testid": t }) {
|
|
|
837
837
|
});
|
|
838
838
|
});
|
|
839
839
|
let n = w - 14;
|
|
840
|
-
e.textBaseline = "middle", e.font = "400
|
|
840
|
+
e.textBaseline = "middle", e.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.textAlign = "left", e.fillStyle = m(u.cyan, .5), e.beginPath(), e.roundRect(B.left + De, n - 3, 14, 6, 2), e.fill(), e.fillStyle = p.color, e.fillText("base value", B.left + De + 18, n), e.fillStyle = m(u.cyan, .22), e.beginPath(), e.roundRect(B.left + De + 94, n - 3, 14, 6, 2), e.fill(), e.setLineDash([2, 3]), e.strokeStyle = m(u.cyan, .5), e.lineWidth = .5, e.beginPath(), e.moveTo(B.left + De + 101, n - 3), e.lineTo(B.left + De + 101, n + 3), e.stroke(), e.setLineDash([]), e.fillStyle = p.color, e.fillText("approved variations", B.left + De + 112, n), e.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", e.textAlign = "right", e.fillStyle = p.color, e.fillText(`Portfolio: ${Oe(h?.total ?? 0)}`, Ce - 8, n);
|
|
841
841
|
}, !0, { easing: D }), k ? /* @__PURE__ */ s(F, {
|
|
842
842
|
width: Ce,
|
|
843
843
|
height: we,
|
|
@@ -979,7 +979,7 @@ function Fe({ items: e = [], "data-testid": t }) {
|
|
|
979
979
|
} else t.beginPath(), t.arc(a, _, 1, 0, Math.PI * 2), t.fillStyle = m(d, .08), t.fill();
|
|
980
980
|
}
|
|
981
981
|
let _ = c + a * g + 16;
|
|
982
|
-
t.font = `${o ? "bold " : ""}
|
|
982
|
+
t.font = `${o ? "bold " : ""}14px 'Satoshi Variable', 'DM Sans', sans-serif`, t.textAlign = "center", t.textBaseline = "alphabetic", t.fillStyle = o ? u.cyan : m(u.t2, .65), t.fillText(n.category, s + r * f + f / 2, _);
|
|
983
983
|
}), b(t, U, W, e, .015), S = requestAnimationFrame(C);
|
|
984
984
|
};
|
|
985
985
|
return C(), () => cancelAnimationFrame(S);
|
|
@@ -1024,14 +1024,13 @@ function Ie({ rows: e = [], className: t, colors: n }) {
|
|
|
1024
1024
|
//#endregion
|
|
1025
1025
|
//#region src/components/constants.ts
|
|
1026
1026
|
var Le = [
|
|
1027
|
-
"#
|
|
1028
|
-
"#
|
|
1029
|
-
"#
|
|
1030
|
-
"#
|
|
1031
|
-
"#
|
|
1032
|
-
"#
|
|
1033
|
-
"#
|
|
1034
|
-
"#D92D20"
|
|
1027
|
+
"#4C93D9",
|
|
1028
|
+
"#5DA537",
|
|
1029
|
+
"#F3862C",
|
|
1030
|
+
"#4F72C6",
|
|
1031
|
+
"#A0B724",
|
|
1032
|
+
"#EEBF3B",
|
|
1033
|
+
"#3C45D1"
|
|
1035
1034
|
], Re = {
|
|
1036
1035
|
nodes: [
|
|
1037
1036
|
{
|
|
@@ -1114,47 +1113,55 @@ function ze({ rows: e = [], className: t, colors: n }) {
|
|
|
1114
1113
|
}
|
|
1115
1114
|
//#endregion
|
|
1116
1115
|
//#region src/components/radialFanTreeChart/RadialFanTreeChart.tsx
|
|
1117
|
-
var Be = 680, Ve = 320;
|
|
1118
|
-
function
|
|
1119
|
-
let o = a(null), l = a(/* @__PURE__ */ new Map()), p = a(0), { hoveredRef:
|
|
1116
|
+
var Be = 680, Ve = 320, He = 60, Ue = 28;
|
|
1117
|
+
function We({ total: e = 0, items: t = [], "data-testid": r }) {
|
|
1118
|
+
let o = a(null), l = a(/* @__PURE__ */ new Map()), p = a(0), h = i(() => t.filter((e) => typeof e == "object" && !!e), [t]), g = i(() => Math.max(Ve, He + Math.max(0, h.length - 1) * Ue), [h.length]), { hoveredRef: y, tooltip: b, hitZonesRef: x } = C(o, {
|
|
1120
1119
|
width: Be,
|
|
1121
|
-
height:
|
|
1122
|
-
})
|
|
1120
|
+
height: g
|
|
1121
|
+
});
|
|
1123
1122
|
return n(() => {
|
|
1124
1123
|
let t = o.current;
|
|
1125
1124
|
if (!t) return;
|
|
1126
|
-
let n = _(t, Be,
|
|
1125
|
+
let n = _(t, Be, g);
|
|
1127
1126
|
p.current = 0;
|
|
1128
|
-
let r =
|
|
1127
|
+
let r = g / 2, i = Be - 80, a = Math.max(...h.map((e) => e.count ?? 0)), s = (g - 60) / (h.length - 1), c = h.map((e, t) => ({
|
|
1129
1128
|
x: i,
|
|
1130
1129
|
y: 30 + t * s
|
|
1131
|
-
})),
|
|
1130
|
+
})), b, S = () => {
|
|
1132
1131
|
p.current++;
|
|
1133
1132
|
let t = p.current;
|
|
1134
|
-
n.clearRect(0, 0, Be,
|
|
1133
|
+
n.clearRect(0, 0, Be, g);
|
|
1135
1134
|
let o = E(Math.min(t / 72, 1));
|
|
1136
|
-
M(l.current,
|
|
1137
|
-
let p = d[s % d.length],
|
|
1138
|
-
if (
|
|
1139
|
-
let S = 88 + (i - 88) * .4, C = r, T = 88 + (i - 88) * .6, D =
|
|
1135
|
+
M(l.current, y.current), x.current = [], v(n, 88, r, 48 * o, u.blue, .15 * o), h.forEach((t, s) => {
|
|
1136
|
+
let p = d[s % d.length], g = j(o, s, h.length, E), _ = c[s], y = l.current.get(t.id) ?? 0, b = Math.max(1.5, (t.count ?? 0) / a * 6);
|
|
1137
|
+
if (g < .01) return;
|
|
1138
|
+
let S = 88 + (i - 88) * .4, C = r, T = 88 + (i - 88) * .6, D = _.y, O = g;
|
|
1140
1139
|
n.beginPath();
|
|
1141
1140
|
for (let e = 0; e <= 40; e++) {
|
|
1142
|
-
let t = e / 40 * O, i = (1 - t) ** 3 * 88 + 3 * (1 - t) ** 2 * t * S + 3 * (1 - t) * t ** 2 * T + t ** 3 *
|
|
1141
|
+
let t = e / 40 * O, i = (1 - t) ** 3 * 88 + 3 * (1 - t) ** 2 * t * S + 3 * (1 - t) * t ** 2 * T + t ** 3 * _.x, a = (1 - t) ** 3 * r + 3 * (1 - t) ** 2 * t * C + 3 * (1 - t) * t ** 2 * D + t ** 3 * _.y;
|
|
1143
1142
|
e === 0 ? n.moveTo(i, a) : n.lineTo(i, a);
|
|
1144
1143
|
}
|
|
1145
|
-
if (n.strokeStyle = m(p,
|
|
1146
|
-
let r = Math.min(1, (
|
|
1147
|
-
v(n,
|
|
1144
|
+
if (n.strokeStyle = m(p, y > 0 ? .8 : .45), n.lineWidth = b * (y > 0 ? 1.3 : 1), n.stroke(), g > .85) {
|
|
1145
|
+
let r = Math.min(1, (g - .85) / .15), i = 4 + (t.count ?? 0) / a * 12;
|
|
1146
|
+
v(n, _.x, _.y, i * 2.5, p, (.25 + y * .2) * r), n.beginPath(), n.arc(_.x, _.y, i * r, 0, Math.PI * 2), n.fillStyle = m(p, (.7 + y * .2) * r), n.fill(), w(x.current, t.id, _.x, _.y, i + 8, {
|
|
1148
1147
|
label: t.name,
|
|
1149
1148
|
value: `${t.count ?? 0} NCEs raised`,
|
|
1150
1149
|
sublabel: `${Math.round((t.count ?? 0) / e * 100)}% of all NCEs`,
|
|
1151
1150
|
color: p
|
|
1152
|
-
}), n.globalAlpha = r, n.font = f.font, n.
|
|
1151
|
+
}), n.globalAlpha = r, n.font = f.font, n.textAlign = "left";
|
|
1152
|
+
let o = t.abbreviation ?? t.name.slice(0, 6), s = ` ${t.count ?? 0}`, c = _.x + i + 6, l = _.y + 4;
|
|
1153
|
+
n.fillStyle = y > 0 ? p : m(u.t2, .85), n.fillText(o, c, l);
|
|
1154
|
+
let d = n.measureText(o).width;
|
|
1155
|
+
n.fillStyle = y > 0 ? p : u.t1, n.fillText(s, c + d, l), n.globalAlpha = 1;
|
|
1153
1156
|
}
|
|
1154
|
-
}), n.beginPath(), n.arc(88, r, 32 * o, 0, Math.PI * 2), n.fillStyle = u.bgL, n.fill(), n.strokeStyle = m(u.blue, .6 * o), n.lineWidth = 2, n.stroke(), o > .4 && (n.globalAlpha = Math.min(1, (o - .4) / .4), n.font = "500 24px 'Satoshi Variable', 'DM Sans', sans-serif", n.fillStyle = u.t1, n.textAlign = "center", n.fillText(String(e), 88, r + 5), n.font = f.font, n.fillStyle = f.color, n.fillText("NCEs", 88, r + 18), n.globalAlpha = 1),
|
|
1157
|
+
}), n.beginPath(), n.arc(88, r, 32 * o, 0, Math.PI * 2), n.fillStyle = u.bgL, n.fill(), n.strokeStyle = m(u.blue, .6 * o), n.lineWidth = 2, n.stroke(), o > .4 && (n.globalAlpha = Math.min(1, (o - .4) / .4), n.font = "500 24px 'Satoshi Variable', 'DM Sans', sans-serif", n.fillStyle = u.t1, n.textAlign = "center", n.fillText(String(e), 88, r + 5), n.font = f.font, n.fillStyle = f.color, n.fillText("NCEs", 88, r + 18), n.globalAlpha = 1), b = requestAnimationFrame(S);
|
|
1155
1158
|
};
|
|
1156
|
-
return
|
|
1157
|
-
}, [
|
|
1159
|
+
return S(), () => cancelAnimationFrame(b);
|
|
1160
|
+
}, [
|
|
1161
|
+
e,
|
|
1162
|
+
h,
|
|
1163
|
+
g
|
|
1164
|
+
]), h.length === 0 ? /* @__PURE__ */ s(F, {
|
|
1158
1165
|
width: Be,
|
|
1159
1166
|
height: Ve,
|
|
1160
1167
|
"data-testid": r
|
|
@@ -1163,7 +1170,7 @@ function He({ total: e = 0, items: t = [], "data-testid": r }) {
|
|
|
1163
1170
|
style: {
|
|
1164
1171
|
position: "relative",
|
|
1165
1172
|
width: Be,
|
|
1166
|
-
height:
|
|
1173
|
+
height: g
|
|
1167
1174
|
},
|
|
1168
1175
|
children: [/* @__PURE__ */ s("canvas", {
|
|
1169
1176
|
ref: o,
|
|
@@ -1171,33 +1178,33 @@ function He({ total: e = 0, items: t = [], "data-testid": r }) {
|
|
|
1171
1178
|
"aria-label": "NCE fault tree — NCEs per contractor as branching tree",
|
|
1172
1179
|
style: {
|
|
1173
1180
|
width: Be,
|
|
1174
|
-
height:
|
|
1181
|
+
height: g,
|
|
1175
1182
|
display: "block"
|
|
1176
1183
|
}
|
|
1177
1184
|
}), /* @__PURE__ */ s(S, {
|
|
1178
|
-
...
|
|
1185
|
+
...b,
|
|
1179
1186
|
parentW: Be,
|
|
1180
|
-
parentH:
|
|
1187
|
+
parentH: g
|
|
1181
1188
|
})]
|
|
1182
1189
|
});
|
|
1183
1190
|
}
|
|
1184
1191
|
//#endregion
|
|
1185
1192
|
//#region src/components/pieChart/PieChart.tsx
|
|
1186
|
-
var
|
|
1187
|
-
function
|
|
1193
|
+
var Ge = 192, Ke = Ge, qe = Ge + 80;
|
|
1194
|
+
function Je({ rows: e = [], variant: t, className: r, colors: i }) {
|
|
1188
1195
|
let o = a(null), f = a(/* @__PURE__ */ new Map()), p = a(0), h = i?.slices ?? d, { hoveredRef: y, tooltip: b, hitZonesRef: x } = C(o, {
|
|
1189
|
-
width:
|
|
1190
|
-
height:
|
|
1196
|
+
width: Ke,
|
|
1197
|
+
height: qe
|
|
1191
1198
|
});
|
|
1192
1199
|
return n(() => {
|
|
1193
1200
|
let n = o.current;
|
|
1194
1201
|
if (!n) return;
|
|
1195
|
-
let r = _(n,
|
|
1202
|
+
let r = _(n, Ke, qe);
|
|
1196
1203
|
p.current = 0;
|
|
1197
|
-
let i =
|
|
1204
|
+
let i = Ke / 2, a = Ge / 2, s = Ge * .4, c = t === "donut" ? Ge * .21 : 0, l = e.reduce((e, t) => e + (t.pricing ?? 0), 0) || 1, d, b = () => {
|
|
1198
1205
|
p.current++;
|
|
1199
1206
|
let n = p.current;
|
|
1200
|
-
r.clearRect(0, 0,
|
|
1207
|
+
r.clearRect(0, 0, Ke, qe);
|
|
1201
1208
|
let o = 1 - (1 - Math.min(n / 48, 1)) ** 3;
|
|
1202
1209
|
M(f.current, y.current), x.current = [];
|
|
1203
1210
|
let _ = -Math.PI / 2;
|
|
@@ -1211,10 +1218,10 @@ function Ke({ rows: e = [], variant: t, className: r, colors: i }) {
|
|
|
1211
1218
|
let O = A(n, .03, 3e-4), k = s + b * 6 + (b > 0 ? O * 2 : 0);
|
|
1212
1219
|
r.beginPath(), r.moveTo(i + Math.cos(_) * c, a + Math.sin(_) * c), r.arc(i, a, k, _, g), c > 0 ? r.arc(i, a, c, g, _, !0) : r.lineTo(i, a), r.closePath(), r.fillStyle = m(y, .7 + b * .2), r.fill(), r.strokeStyle = m(u.bg, .8), r.lineWidth = 1.5, r.stroke(), _ = g;
|
|
1213
1220
|
}), t === "donut" && e.length > 0 && v(r, i, a, c * .8, u.blue, .06);
|
|
1214
|
-
let S =
|
|
1221
|
+
let S = Ge + 12;
|
|
1215
1222
|
e.forEach((e, t) => {
|
|
1216
1223
|
let n = h[t % h.length], i = (e.pricing ?? 0) / l, a = f.current.get(e.id ?? `sl-${t}`) ?? 0, o = S + t * 18;
|
|
1217
|
-
r.beginPath(), r.arc(8, o, 4, 0, Math.PI * 2), r.fillStyle = m(n, .8 + a * .2), r.fill(), r.font = "9px 'JetBrains Mono', monospace", r.fillStyle = m(u.t2, .7 + a * .2), r.textAlign = "left", r.fillText(e.vendor, 18, o + 3.5), r.font = "bold 9px 'JetBrains Mono', monospace", r.fillStyle = g(u.t3, n, a), r.textAlign = "right", r.fillText(`${e.pricing ?? 0} (${Math.round(i * 100)}%)`,
|
|
1224
|
+
r.beginPath(), r.arc(8, o, 4, 0, Math.PI * 2), r.fillStyle = m(n, .8 + a * .2), r.fill(), r.font = "9px 'JetBrains Mono', monospace", r.fillStyle = m(u.t2, .7 + a * .2), r.textAlign = "left", r.fillText(e.vendor, 18, o + 3.5), r.font = "bold 9px 'JetBrains Mono', monospace", r.fillStyle = g(u.t3, n, a), r.textAlign = "right", r.fillText(`${e.pricing ?? 0} (${Math.round(i * 100)}%)`, Ke - 4, o + 3.5);
|
|
1218
1225
|
}), d = requestAnimationFrame(b);
|
|
1219
1226
|
};
|
|
1220
1227
|
return b(), () => cancelAnimationFrame(d);
|
|
@@ -1228,30 +1235,30 @@ function Ke({ rows: e = [], variant: t, className: r, colors: i }) {
|
|
|
1228
1235
|
children: /* @__PURE__ */ c("div", {
|
|
1229
1236
|
style: {
|
|
1230
1237
|
position: "relative",
|
|
1231
|
-
width:
|
|
1232
|
-
height:
|
|
1238
|
+
width: Ke,
|
|
1239
|
+
height: qe
|
|
1233
1240
|
},
|
|
1234
1241
|
children: [/* @__PURE__ */ s("canvas", {
|
|
1235
1242
|
ref: o,
|
|
1236
1243
|
role: "img",
|
|
1237
1244
|
"aria-label": `${t} chart`,
|
|
1238
1245
|
style: {
|
|
1239
|
-
width:
|
|
1240
|
-
height:
|
|
1246
|
+
width: Ke,
|
|
1247
|
+
height: qe,
|
|
1241
1248
|
display: "block",
|
|
1242
1249
|
borderRadius: 8
|
|
1243
1250
|
}
|
|
1244
1251
|
}), /* @__PURE__ */ s(S, {
|
|
1245
1252
|
...b,
|
|
1246
|
-
parentW:
|
|
1247
|
-
parentH:
|
|
1253
|
+
parentW: Ke,
|
|
1254
|
+
parentH: qe
|
|
1248
1255
|
})]
|
|
1249
1256
|
})
|
|
1250
1257
|
});
|
|
1251
1258
|
}
|
|
1252
1259
|
//#endregion
|
|
1253
1260
|
//#region src/components/sankey/SankeySvg.tsx
|
|
1254
|
-
function
|
|
1261
|
+
function Ye(e, t, n, r) {
|
|
1255
1262
|
let i = new Set(t.map((e) => e.source)), a = new Set(t.map((e) => e.target)), o = /* @__PURE__ */ new Map(), s = [];
|
|
1256
1263
|
for (e.forEach((e) => {
|
|
1257
1264
|
i.has(e.id) && !a.has(e.id) && s.push({
|
|
@@ -1296,8 +1303,8 @@ function qe(e, t, n, r) {
|
|
|
1296
1303
|
});
|
|
1297
1304
|
}), f;
|
|
1298
1305
|
}
|
|
1299
|
-
function
|
|
1300
|
-
let y = a(null), x = a(/* @__PURE__ */ new Map()), E = a(0), D = a([]), O = g?.nodes ?? d, k = g?.links ?? u.bd, j = g?.activeLinks ?? u.blue, ee = g?.activeNodes ?? u.blue, N = i(() =>
|
|
1306
|
+
function Xe({ nodes: e, links: t, width: r = 960, height: o = 280, ariaLabel: f, selectedEntity: p, className: h, colors: g }) {
|
|
1307
|
+
let y = a(null), x = a(/* @__PURE__ */ new Map()), E = a(0), D = a([]), O = g?.nodes ?? d, k = g?.links ?? u.bd, j = g?.activeLinks ?? u.blue, ee = g?.activeNodes ?? u.blue, N = i(() => Ye(e, t, r, o), [
|
|
1301
1308
|
e,
|
|
1302
1309
|
t,
|
|
1303
1310
|
r,
|
|
@@ -1397,7 +1404,7 @@ function Je({ nodes: e, links: t, width: r = 960, height: o = 280, ariaLabel: f,
|
|
|
1397
1404
|
}
|
|
1398
1405
|
//#endregion
|
|
1399
1406
|
//#region src/canvas/CausalFlowCanvas.tsx
|
|
1400
|
-
var
|
|
1407
|
+
var Ze = [
|
|
1401
1408
|
{
|
|
1402
1409
|
x: .13,
|
|
1403
1410
|
y: .48
|
|
@@ -1430,7 +1437,7 @@ var Ye = [
|
|
|
1430
1437
|
x: .92,
|
|
1431
1438
|
y: .22
|
|
1432
1439
|
}
|
|
1433
|
-
],
|
|
1440
|
+
], Qe = [
|
|
1434
1441
|
u.blue,
|
|
1435
1442
|
u.cyan,
|
|
1436
1443
|
u.orange,
|
|
@@ -1439,7 +1446,7 @@ var Ye = [
|
|
|
1439
1446
|
u.green,
|
|
1440
1447
|
u.amber,
|
|
1441
1448
|
u.t2
|
|
1442
|
-
],
|
|
1449
|
+
], $e = [
|
|
1443
1450
|
26,
|
|
1444
1451
|
24,
|
|
1445
1452
|
24,
|
|
@@ -1449,21 +1456,21 @@ var Ye = [
|
|
|
1449
1456
|
22,
|
|
1450
1457
|
22
|
|
1451
1458
|
];
|
|
1452
|
-
function
|
|
1459
|
+
function et(e, t) {
|
|
1453
1460
|
let n = 1 - t;
|
|
1454
1461
|
return {
|
|
1455
1462
|
x: n * n * n * e.p0.x + 3 * n * n * t * e.p1.x + 3 * n * t * t * e.p2.x + t * t * t * e.p3.x,
|
|
1456
1463
|
y: n * n * n * e.p0.y + 3 * n * n * t * e.p1.y + 3 * n * t * t * e.p2.y + t * t * t * e.p3.y
|
|
1457
1464
|
};
|
|
1458
1465
|
}
|
|
1459
|
-
function
|
|
1466
|
+
function tt(e, t) {
|
|
1460
1467
|
let n = 1 - t, r = 3 * n * n * (e.p1.x - e.p0.x) + 6 * n * t * (e.p2.x - e.p1.x) + 3 * t * t * (e.p3.x - e.p2.x), i = 3 * n * n * (e.p1.y - e.p0.y) + 6 * n * t * (e.p2.y - e.p1.y) + 3 * t * t * (e.p3.y - e.p2.y), a = Math.sqrt(r * r + i * i) || 1;
|
|
1461
1468
|
return {
|
|
1462
1469
|
x: -i / a,
|
|
1463
1470
|
y: r / a
|
|
1464
1471
|
};
|
|
1465
1472
|
}
|
|
1466
|
-
function
|
|
1473
|
+
function nt(e, t) {
|
|
1467
1474
|
let n = t.x - e.x, r = t.y - e.y;
|
|
1468
1475
|
return {
|
|
1469
1476
|
p0: {
|
|
@@ -1484,7 +1491,7 @@ function et(e, t) {
|
|
|
1484
1491
|
}
|
|
1485
1492
|
};
|
|
1486
1493
|
}
|
|
1487
|
-
function
|
|
1494
|
+
function rt({ nodes: e, links: t, width: r = 960, height: o = 280, selectedEntity: l }) {
|
|
1488
1495
|
let d = a(null), f = a(0), p = a([]), { hoveredRef: h, tooltip: x, hitZonesRef: T } = C(d, {
|
|
1489
1496
|
width: r,
|
|
1490
1497
|
height: o
|
|
@@ -1492,15 +1499,15 @@ function tt({ nodes: e, links: t, width: r = 960, height: o = 280, selectedEntit
|
|
|
1492
1499
|
let t = /* @__PURE__ */ new Map();
|
|
1493
1500
|
return e.forEach((e, n) => t.set(e.id, n)), t;
|
|
1494
1501
|
}, [e]), O = i(() => t.length > 0 ? Math.max(...t.map((e) => e.value)) : 100, [t]), k = (e) => O > 1 ? e / 100 : e, j = i(() => e.map((e, t) => {
|
|
1495
|
-
let n =
|
|
1502
|
+
let n = Ze[t % Ze.length];
|
|
1496
1503
|
return {
|
|
1497
1504
|
id: e.id,
|
|
1498
1505
|
label: e.name,
|
|
1499
1506
|
sub: e.valueLabel ?? "",
|
|
1500
1507
|
x: n.x * r,
|
|
1501
1508
|
y: n.y * o,
|
|
1502
|
-
r:
|
|
1503
|
-
color:
|
|
1509
|
+
r: $e[t % $e.length],
|
|
1510
|
+
color: Qe[t % Qe.length]
|
|
1504
1511
|
};
|
|
1505
1512
|
}), [
|
|
1506
1513
|
e,
|
|
@@ -1522,7 +1529,7 @@ function tt({ nodes: e, links: t, width: r = 960, height: o = 280, selectedEntit
|
|
|
1522
1529
|
if (t.clearRect(0, 0, r, o), T.current = [], y(t, r, o, e, 50, m(u.blue, .05)), M.forEach((e, n) => {
|
|
1523
1530
|
let r = j[e.fromIdx], i = j[e.toIdx];
|
|
1524
1531
|
if (!r || !i) return;
|
|
1525
|
-
let a = !!l && (r.id === l || i.id === l), o = g(r.color, i.color, .5), s = a ? .18 : .05, c = a ? .25 : .1, d =
|
|
1532
|
+
let a = !!l && (r.id === l || i.id === l), o = g(r.color, i.color, .5), s = a ? .18 : .05, c = a ? .25 : .1, d = nt(r, i);
|
|
1526
1533
|
t.beginPath(), t.moveTo(d.p0.x, d.p0.y), t.bezierCurveTo(d.p1.x, d.p1.y, d.p2.x, d.p2.y, d.p3.x, d.p3.y), t.strokeStyle = m(o, s), t.lineWidth = 16, t.lineCap = "round", t.stroke(), t.strokeStyle = m(o, c), t.lineWidth = 1.5, t.stroke();
|
|
1527
1534
|
for (let t = 0; t < e.conf * 2.5; t++) Math.random() < .45 && p.current.push({
|
|
1528
1535
|
edgeIdx: n,
|
|
@@ -1531,7 +1538,7 @@ function tt({ nodes: e, links: t, width: r = 960, height: o = 280, selectedEntit
|
|
|
1531
1538
|
off: (Math.random() - .5) * 13,
|
|
1532
1539
|
sz: .7 + Math.random() * 2
|
|
1533
1540
|
});
|
|
1534
|
-
let f =
|
|
1541
|
+
let f = et(d, .5), h = `${Math.round(e.conf * 100)}%`;
|
|
1535
1542
|
t.font = "bold 12px 'JetBrains Mono', monospace", t.textBaseline = "middle";
|
|
1536
1543
|
let _ = t.measureText(h).width + 14;
|
|
1537
1544
|
t.fillStyle = "rgba(10,16,24,0.88)", t.beginPath(), t.roundRect(f.x - _ / 2, f.y - 11, _, 22, 6), t.fill(), t.strokeStyle = m(u.cyan, .25), t.lineWidth = 1, t.stroke(), t.fillStyle = m(u.cyan, .9), t.textAlign = "center", t.fillText(h, f.x, f.y);
|
|
@@ -1541,7 +1548,7 @@ function tt({ nodes: e, links: t, width: r = 960, height: o = 280, selectedEntit
|
|
|
1541
1548
|
if (!n) return !1;
|
|
1542
1549
|
let r = j[n.fromIdx], i = j[n.toIdx];
|
|
1543
1550
|
if (!r || !i) return !1;
|
|
1544
|
-
let a =
|
|
1551
|
+
let a = nt(r, i), o = et(a, e.t), s = tt(a, e.t), c = o.x + s.x * e.off, l = o.y + s.y * e.off, u = Math.sin(e.t * Math.PI) * .7, d = g(r.color, i.color, e.t);
|
|
1545
1552
|
return v(t, c, l, e.sz * 3, d, u * .1), t.beginPath(), t.arc(c, l, e.sz, 0, Math.PI * 2), t.fillStyle = m(d, u), t.fill(), !0;
|
|
1546
1553
|
}), p.current.length > 350 && (p.current = p.current.slice(-350)), j.forEach((n, r) => {
|
|
1547
1554
|
let i = l === n.id, a = h.current === `node-${r}`, o = A(e, .03, 3e-4) * .1 + 1, s = n.r * o * (i ? 1.15 : 1);
|
|
@@ -1598,8 +1605,8 @@ function tt({ nodes: e, links: t, width: r = 960, height: o = 280, selectedEntit
|
|
|
1598
1605
|
}
|
|
1599
1606
|
//#endregion
|
|
1600
1607
|
//#region src/components/sankey/ProcessSankey.tsx
|
|
1601
|
-
function
|
|
1602
|
-
return /* @__PURE__ */ s(
|
|
1608
|
+
function it({ selectedEntity: e, colors: t }) {
|
|
1609
|
+
return /* @__PURE__ */ s(rt, {
|
|
1603
1610
|
nodes: Re.nodes,
|
|
1604
1611
|
links: Re.links,
|
|
1605
1612
|
width: 960,
|
|
@@ -1609,7 +1616,7 @@ function nt({ selectedEntity: e, colors: t }) {
|
|
|
1609
1616
|
}
|
|
1610
1617
|
//#endregion
|
|
1611
1618
|
//#region src/components/sankey/RankingSankey.tsx
|
|
1612
|
-
function
|
|
1619
|
+
function at({ rows: e = [], className: t, colors: n }) {
|
|
1613
1620
|
let { nodes: r, links: a } = i(() => {
|
|
1614
1621
|
let t = e.slice(0, 5);
|
|
1615
1622
|
return {
|
|
@@ -1627,7 +1634,7 @@ function rt({ rows: e = [], className: t, colors: n }) {
|
|
|
1627
1634
|
}))
|
|
1628
1635
|
};
|
|
1629
1636
|
}, [e]);
|
|
1630
|
-
return /* @__PURE__ */ s(
|
|
1637
|
+
return /* @__PURE__ */ s(Xe, {
|
|
1631
1638
|
nodes: r,
|
|
1632
1639
|
links: a,
|
|
1633
1640
|
width: 760,
|
|
@@ -1639,20 +1646,20 @@ function rt({ rows: e = [], className: t, colors: n }) {
|
|
|
1639
1646
|
}
|
|
1640
1647
|
//#endregion
|
|
1641
1648
|
//#region src/components/balanceScaleChart/BalanceScaleChart.tsx
|
|
1642
|
-
var
|
|
1643
|
-
function
|
|
1649
|
+
var ot = 500, st = 320;
|
|
1650
|
+
function ct({ left: e, right: t, "data-testid": r }) {
|
|
1644
1651
|
let i = a(null), o = a(0);
|
|
1645
1652
|
return n(() => {
|
|
1646
1653
|
let n = i.current;
|
|
1647
1654
|
if (!n) return;
|
|
1648
|
-
let r = _(n,
|
|
1655
|
+
let r = _(n, ot, st);
|
|
1649
1656
|
o.current = 0;
|
|
1650
|
-
let a =
|
|
1657
|
+
let a = ot / 2, s = Math.max(e.value, t.value), c = (e.value - t.value) / s * 14, l, d = () => {
|
|
1651
1658
|
o.current++;
|
|
1652
1659
|
let n = o.current;
|
|
1653
|
-
r.clearRect(0, 0,
|
|
1660
|
+
r.clearRect(0, 0, ot, st);
|
|
1654
1661
|
let i = E(Math.min(n / 80, 1)), p = c * k(Math.min(n / 80, 1)) * Math.PI / 180;
|
|
1655
|
-
r.strokeStyle = m(u.bd, .5 * i), r.lineWidth = 2, r.beginPath(), r.moveTo(a, 100), r.lineTo(a,
|
|
1662
|
+
r.strokeStyle = m(u.bd, .5 * i), r.lineWidth = 2, r.beginPath(), r.moveTo(a, 100), r.lineTo(a, st - 80), r.stroke(), r.beginPath(), r.arc(a, 100, 5 * i, 0, Math.PI * 2), r.fillStyle = u.t2, r.fill();
|
|
1656
1663
|
let h = {
|
|
1657
1664
|
x: a - Math.cos(p) * 160,
|
|
1658
1665
|
y: 100 + Math.sin(-p) * 160
|
|
@@ -1669,7 +1676,7 @@ function ot({ left: e, right: t, "data-testid": r }) {
|
|
|
1669
1676
|
6
|
|
1670
1677
|
]), r.fill(), r.strokeStyle = m(u.green, .7 * i), r.lineWidth = 1.5, r.stroke(), r.strokeStyle = m(u.t3, .35 * i), r.lineWidth = 1, [-90 / 3, 90 / 3].forEach((e) => {
|
|
1671
1678
|
r.beginPath(), r.moveTo(h.x + e, h.y + 4), r.lineTo(h.x + e, y), r.stroke();
|
|
1672
|
-
}), i > .5 && (r.globalAlpha = Math.min(1, (i - .5) / .5), r.font = "bold 14px '
|
|
1679
|
+
}), i > .5 && (r.globalAlpha = Math.min(1, (i - .5) / .5), r.font = "bold 14px 'Satoshi Variable', 'DM Sans', sans-serif", r.fillStyle = u.green, r.textAlign = "center", r.fillText(e.label, h.x, y + _ + 18), r.font = f.font, r.fillStyle = f.color, r.fillText("Accepted", h.x, y + _ + 32), r.fillText(`${e.count} quotations`, h.x, y + _ + 44), r.globalAlpha = 1);
|
|
1673
1680
|
let b = Math.max(20, t.value / s * 100 * i), x = g.y + 18;
|
|
1674
1681
|
r.fillStyle = m(u.amber, .3 * i), r.strokeStyle = m(u.amber, .5 * i), r.lineWidth = 1.5, r.beginPath(), r.roundRect(g.x - 90 / 2, x, 90, b, [
|
|
1675
1682
|
0,
|
|
@@ -1678,23 +1685,23 @@ function ot({ left: e, right: t, "data-testid": r }) {
|
|
|
1678
1685
|
6
|
|
1679
1686
|
]), r.fill(), r.stroke(), r.strokeStyle = m(u.t3, .35 * i), r.lineWidth = 1, [-90 / 3, 90 / 3].forEach((e) => {
|
|
1680
1687
|
r.beginPath(), r.moveTo(g.x + e, g.y + 4), r.lineTo(g.x + e, x), r.stroke();
|
|
1681
|
-
}), i > .5 && (r.globalAlpha = Math.min(1, (i - .5) / .5), r.font = "bold 14px '
|
|
1688
|
+
}), i > .5 && (r.globalAlpha = Math.min(1, (i - .5) / .5), r.font = "bold 14px 'Satoshi Variable', 'DM Sans', sans-serif", r.fillStyle = u.amber, r.textAlign = "center", r.fillText(t.label, g.x, x + b + 18), r.font = f.font, r.fillStyle = f.color, r.fillText("Submitted", g.x, x + b + 32), r.fillText(`${t.count} quotations`, g.x, x + b + 44), r.globalAlpha = 1), i > .85 && Math.abs(c) > 1 && (r.globalAlpha = Math.min(1, (i - .85) / .15) * .6, r.font = f.font, r.fillStyle = f.color, r.textAlign = "center", r.fillText(`${Math.abs(c).toFixed(1)}° tilt toward accepted`, a, st - 12), r.globalAlpha = 1), l = requestAnimationFrame(d);
|
|
1682
1689
|
};
|
|
1683
1690
|
return d(), () => cancelAnimationFrame(l);
|
|
1684
1691
|
}, [e, t]), /* @__PURE__ */ s("div", {
|
|
1685
1692
|
"data-testid": r,
|
|
1686
1693
|
style: {
|
|
1687
1694
|
position: "relative",
|
|
1688
|
-
width:
|
|
1689
|
-
height:
|
|
1695
|
+
width: ot,
|
|
1696
|
+
height: st
|
|
1690
1697
|
},
|
|
1691
1698
|
children: /* @__PURE__ */ s("canvas", {
|
|
1692
1699
|
ref: i,
|
|
1693
1700
|
role: "img",
|
|
1694
1701
|
"aria-label": "Quotation balance — accepted vs submitted quotation value",
|
|
1695
1702
|
style: {
|
|
1696
|
-
width:
|
|
1697
|
-
height:
|
|
1703
|
+
width: ot,
|
|
1704
|
+
height: st,
|
|
1698
1705
|
display: "block"
|
|
1699
1706
|
}
|
|
1700
1707
|
})
|
|
@@ -1702,25 +1709,25 @@ function ot({ left: e, right: t, "data-testid": r }) {
|
|
|
1702
1709
|
}
|
|
1703
1710
|
//#endregion
|
|
1704
1711
|
//#region src/components/areaLineChart/AreaLineChart.tsx
|
|
1705
|
-
var
|
|
1706
|
-
function
|
|
1712
|
+
var lt = 680, G = 280;
|
|
1713
|
+
function ut({ points: e = [], "data-testid": t }) {
|
|
1707
1714
|
let r = a(null), o = a(/* @__PURE__ */ new Map()), l = a(0), { hoveredRef: d, tooltip: p, hitZonesRef: h } = C(r, {
|
|
1708
|
-
width:
|
|
1715
|
+
width: lt,
|
|
1709
1716
|
height: G
|
|
1710
1717
|
}), g = i(() => e.filter((e) => typeof e == "object" && !!e), [e]);
|
|
1711
1718
|
return n(() => {
|
|
1712
1719
|
let e = r.current;
|
|
1713
1720
|
if (!e) return;
|
|
1714
|
-
let t = _(e,
|
|
1721
|
+
let t = _(e, lt, G);
|
|
1715
1722
|
l.current = 0;
|
|
1716
|
-
let n =
|
|
1723
|
+
let n = lt - 54 - 28, i = G - 30 - 54, a = Math.max(...g.map((e) => e.count), 1), s = g.length, c = s > 1 ? n / (s - 1) : n, p = g.map((e, t) => ({
|
|
1717
1724
|
x: 54 + t * c,
|
|
1718
1725
|
y: 30 + i - e.count / a * i,
|
|
1719
1726
|
point: e
|
|
1720
1727
|
})), y, b = () => {
|
|
1721
1728
|
l.current++;
|
|
1722
1729
|
let e = l.current;
|
|
1723
|
-
t.clearRect(0, 0,
|
|
1730
|
+
t.clearRect(0, 0, lt, G);
|
|
1724
1731
|
let r = E(Math.min(e / 72, 1));
|
|
1725
1732
|
M(o.current, d.current), h.current = [], [
|
|
1726
1733
|
.25,
|
|
@@ -1763,7 +1770,7 @@ function ct({ points: e = [], "data-testid": t }) {
|
|
|
1763
1770
|
};
|
|
1764
1771
|
return b(), () => cancelAnimationFrame(y);
|
|
1765
1772
|
}, [g]), g.length < 2 ? /* @__PURE__ */ s(F, {
|
|
1766
|
-
width:
|
|
1773
|
+
width: lt,
|
|
1767
1774
|
height: G,
|
|
1768
1775
|
"data-testid": t
|
|
1769
1776
|
}) : /* @__PURE__ */ s("div", {
|
|
@@ -1776,7 +1783,7 @@ function ct({ points: e = [], "data-testid": t }) {
|
|
|
1776
1783
|
children: /* @__PURE__ */ c("div", {
|
|
1777
1784
|
style: {
|
|
1778
1785
|
position: "relative",
|
|
1779
|
-
width:
|
|
1786
|
+
width: lt,
|
|
1780
1787
|
height: G
|
|
1781
1788
|
},
|
|
1782
1789
|
children: [/* @__PURE__ */ s("canvas", {
|
|
@@ -1784,13 +1791,13 @@ function ct({ points: e = [], "data-testid": t }) {
|
|
|
1784
1791
|
role: "img",
|
|
1785
1792
|
"aria-label": "Trend chart — count over time",
|
|
1786
1793
|
style: {
|
|
1787
|
-
width:
|
|
1794
|
+
width: lt,
|
|
1788
1795
|
height: G,
|
|
1789
1796
|
display: "block"
|
|
1790
1797
|
}
|
|
1791
1798
|
}), /* @__PURE__ */ s(S, {
|
|
1792
1799
|
...p,
|
|
1793
|
-
parentW:
|
|
1800
|
+
parentW: lt,
|
|
1794
1801
|
parentH: G
|
|
1795
1802
|
})]
|
|
1796
1803
|
})
|
|
@@ -1798,37 +1805,37 @@ function ct({ points: e = [], "data-testid": t }) {
|
|
|
1798
1805
|
}
|
|
1799
1806
|
//#endregion
|
|
1800
1807
|
//#region src/components/trend/Trend.tsx
|
|
1801
|
-
var
|
|
1802
|
-
function
|
|
1808
|
+
var dt = 680, K = 280, ft = 54, pt = 28, mt = 64, ht = "500 14px 'Satoshi Variable', 'DM Sans', sans-serif", gt = 12;
|
|
1809
|
+
function _t({ points: e = [], "data-testid": t }) {
|
|
1803
1810
|
let r = a(null), o = a(null), l = a(0), d = i(() => e.filter((e) => typeof e == "object" && !!e), [e]), p = i(() => {
|
|
1804
|
-
if (d.length <= 1) return
|
|
1811
|
+
if (d.length <= 1) return mt;
|
|
1805
1812
|
let e = document.createElement("canvas").getContext("2d");
|
|
1806
|
-
if (!e) return
|
|
1807
|
-
e.font =
|
|
1813
|
+
if (!e) return mt;
|
|
1814
|
+
e.font = ht;
|
|
1808
1815
|
let t = Math.max(...d.map((t) => e.measureText(t.week).width));
|
|
1809
|
-
return Math.max(
|
|
1810
|
-
}, [d]), h = Math.max(
|
|
1816
|
+
return Math.max(mt, t + gt);
|
|
1817
|
+
}, [d]), h = Math.max(dt - ft, pt + Math.max(0, d.length - 1) * p), { tooltip: g, hitZonesRef: v } = C(r, {
|
|
1811
1818
|
width: h,
|
|
1812
1819
|
height: K
|
|
1813
1820
|
});
|
|
1814
1821
|
return n(() => {
|
|
1815
1822
|
let e = r.current;
|
|
1816
1823
|
if (!e) return;
|
|
1817
|
-
let t = _(e, h, K), n = o.current ? _(o.current,
|
|
1824
|
+
let t = _(e, h, K), n = o.current ? _(o.current, ft, K) : null;
|
|
1818
1825
|
l.current = 0;
|
|
1819
|
-
let i = h -
|
|
1826
|
+
let i = h - pt, a = K - 30 - 54, s = Math.max(...d.map((e) => e.count), 1), c = d.length, g = c > 1 ? Math.max(i / (c - 1), p) : i, y = d.map((e, t) => ({
|
|
1820
1827
|
x: t * g,
|
|
1821
1828
|
y: 30 + a - e.count / s * a,
|
|
1822
1829
|
point: e
|
|
1823
1830
|
}));
|
|
1824
|
-
n && (n.clearRect(0, 0,
|
|
1831
|
+
n && (n.clearRect(0, 0, ft, K), n.fillStyle = u.bg, n.fillRect(0, 0, ft, K), [
|
|
1825
1832
|
.25,
|
|
1826
1833
|
.5,
|
|
1827
1834
|
.75,
|
|
1828
1835
|
1
|
|
1829
1836
|
].forEach((e) => {
|
|
1830
1837
|
let t = 30 + a - e * a;
|
|
1831
|
-
n.font = f.font, n.fillStyle = f.color, n.textAlign = "right", n.fillText(String(Math.round(s * e)),
|
|
1838
|
+
n.font = f.font, n.fillStyle = f.color, n.textAlign = "right", n.fillText(String(Math.round(s * e)), ft - 6, t + 3);
|
|
1832
1839
|
}), n.save(), n.translate(12, 30 + a / 2), n.rotate(-Math.PI / 2), n.font = f.font, n.fillStyle = f.color, n.textAlign = "center", n.fillText("Count", 0, 0), n.restore());
|
|
1833
1840
|
let b, x = () => {
|
|
1834
1841
|
l.current++;
|
|
@@ -1846,7 +1853,7 @@ function ht({ points: e = [], "data-testid": t }) {
|
|
|
1846
1853
|
if (o >= 2) {
|
|
1847
1854
|
t.beginPath(), t.moveTo(y[0].x, 30 + a), t.lineTo(y[0].x, y[0].y);
|
|
1848
1855
|
for (let e = 1; e < o; e++) {
|
|
1849
|
-
let n = r - Math.floor(r), i = e === o - 1 && e === Math.ceil(r), a = i ? y[e - 1].x + (y[e].x - y[e - 1].x) * n : y[e].x, s = i ? y[e - 1].y + (y[e].y - y[e - 1].y) * n : y[e].y;
|
|
1856
|
+
let n = r - Math.floor(r), i = e === o - 1 && e === Math.ceil(r) && n > 0, a = i ? y[e - 1].x + (y[e].x - y[e - 1].x) * n : y[e].x, s = i ? y[e - 1].y + (y[e].y - y[e - 1].y) * n : y[e].y;
|
|
1850
1857
|
t.lineTo(a, s);
|
|
1851
1858
|
}
|
|
1852
1859
|
t.lineTo(y[o - 1].x, 30 + a), t.closePath();
|
|
@@ -1855,7 +1862,7 @@ function ht({ points: e = [], "data-testid": t }) {
|
|
|
1855
1862
|
}
|
|
1856
1863
|
t.beginPath();
|
|
1857
1864
|
for (let e = 0; e < o; e++) {
|
|
1858
|
-
let n = r - Math.floor(r), i = e === o - 1 && e > 0 && e === Math.ceil(r), a = i ? y[e - 1].x + (y[e].x - y[e - 1].x) * n : y[e].x, s = i ? y[e - 1].y + (y[e].y - y[e - 1].y) * n : y[e].y;
|
|
1865
|
+
let n = r - Math.floor(r), i = e === o - 1 && e > 0 && e === Math.ceil(r) && n > 0, a = i ? y[e - 1].x + (y[e].x - y[e - 1].x) * n : y[e].x, s = i ? y[e - 1].y + (y[e].y - y[e - 1].y) * n : y[e].y;
|
|
1859
1866
|
e === 0 ? t.moveTo(a, s) : t.lineTo(a, s);
|
|
1860
1867
|
}
|
|
1861
1868
|
t.strokeStyle = m(u.cyan, .85), t.lineWidth = 2, t.stroke(), v.current = [], y.forEach((e, n) => {
|
|
@@ -1864,7 +1871,7 @@ function ht({ points: e = [], "data-testid": t }) {
|
|
|
1864
1871
|
value: `${e.point.count} submissions`,
|
|
1865
1872
|
sublabel: `£${e.point.value}M value`,
|
|
1866
1873
|
color: u.cyan
|
|
1867
|
-
}), t.beginPath(), t.arc(e.x, e.y, 3.5, 0, Math.PI * 2), t.fillStyle = m(u.cyan, .8), t.fill(), t.font =
|
|
1874
|
+
}), t.beginPath(), t.arc(e.x, e.y, 3.5, 0, Math.PI * 2), t.fillStyle = m(u.cyan, .8), t.fill(), t.font = ht, t.fillStyle = f.color, t.textAlign = n === 0 ? "left" : n === y.length - 1 ? "right" : "center", t.fillText(e.point.week, e.x, K - 54 + 14));
|
|
1868
1875
|
}), e < 1 && (b = requestAnimationFrame(x));
|
|
1869
1876
|
};
|
|
1870
1877
|
return x(), () => cancelAnimationFrame(b);
|
|
@@ -1874,7 +1881,7 @@ function ht({ points: e = [], "data-testid": t }) {
|
|
|
1874
1881
|
p,
|
|
1875
1882
|
v
|
|
1876
1883
|
]), d.length < 2 ? /* @__PURE__ */ s(F, {
|
|
1877
|
-
width:
|
|
1884
|
+
width: dt,
|
|
1878
1885
|
height: K,
|
|
1879
1886
|
"data-testid": t
|
|
1880
1887
|
}) : /* @__PURE__ */ c("div", {
|
|
@@ -1888,7 +1895,7 @@ function ht({ points: e = [], "data-testid": t }) {
|
|
|
1888
1895
|
ref: o,
|
|
1889
1896
|
"aria-hidden": "true",
|
|
1890
1897
|
style: {
|
|
1891
|
-
width:
|
|
1898
|
+
width: ft,
|
|
1892
1899
|
height: K,
|
|
1893
1900
|
display: "block",
|
|
1894
1901
|
flexShrink: 0
|
|
@@ -1925,31 +1932,38 @@ function ht({ points: e = [], "data-testid": t }) {
|
|
|
1925
1932
|
}
|
|
1926
1933
|
//#endregion
|
|
1927
1934
|
//#region src/components/proportionalBandChart/ProportionalBandChart.tsx
|
|
1928
|
-
var q = 680,
|
|
1935
|
+
var q = 680, vt = 240;
|
|
1936
|
+
function yt(e, t, n) {
|
|
1937
|
+
if (e.measureText(t).width <= n) return t;
|
|
1938
|
+
let r = t;
|
|
1939
|
+
for (; r.length > 0 && e.measureText(`${r}…`).width > n;) r = r.slice(0, -1);
|
|
1940
|
+
return `${r}…`;
|
|
1941
|
+
}
|
|
1942
|
+
var bt = {
|
|
1929
1943
|
Critical: u.red,
|
|
1930
1944
|
High: u.orange,
|
|
1931
1945
|
Medium: u.amber,
|
|
1932
1946
|
Low: u.green
|
|
1933
1947
|
};
|
|
1934
|
-
function
|
|
1948
|
+
function xt({ severities: e = [], "data-testid": t }) {
|
|
1935
1949
|
let r = a(null), o = a(/* @__PURE__ */ new Map()), l = a(0), { hoveredRef: d, tooltip: p, hitZonesRef: h } = C(r, {
|
|
1936
1950
|
width: q,
|
|
1937
|
-
height:
|
|
1951
|
+
height: vt
|
|
1938
1952
|
}), g = i(() => e.filter((e) => typeof e == "object" && !!e), [e]);
|
|
1939
1953
|
return n(() => {
|
|
1940
1954
|
let e = r.current;
|
|
1941
1955
|
if (!e) return;
|
|
1942
|
-
let t = _(e, q,
|
|
1956
|
+
let t = _(e, q, vt);
|
|
1943
1957
|
l.current = 0;
|
|
1944
|
-
let n = g.reduce((e, t) => e + t.count, 0), i = q - 28 - 28, a =
|
|
1958
|
+
let n = g.reduce((e, t) => e + t.count, 0), i = q - 28 - 28, a = vt - 50 - 52, s = g.map((e) => e.count / n * i), c, p = () => {
|
|
1945
1959
|
l.current++;
|
|
1946
1960
|
let e = l.current;
|
|
1947
|
-
t.clearRect(0, 0, q,
|
|
1961
|
+
t.clearRect(0, 0, q, vt);
|
|
1948
1962
|
let r = D(Math.min(e / 60, 1));
|
|
1949
1963
|
M(o.current, d.current), h.current = [], t.strokeStyle = m(u.bd, .2), t.lineWidth = 1, t.beginPath(), t.rect(28, 50, i, a), t.stroke(), t.strokeStyle = m(u.t4, .15), t.lineWidth = 1, t.setLineDash([4, 4]), t.beginPath(), t.moveTo(q / 2, 50), t.lineTo(q / 2, 50 + a), t.stroke(), t.setLineDash([]);
|
|
1950
1964
|
let _ = 28;
|
|
1951
1965
|
g.forEach((e, i) => {
|
|
1952
|
-
let c =
|
|
1966
|
+
let c = bt[e.severity] ?? u.blue, l = s[i];
|
|
1953
1967
|
l * r;
|
|
1954
1968
|
let d = o.current.get(e.severity) ?? 0, p = _ + l / 2, g = l * .85;
|
|
1955
1969
|
p - g / 2;
|
|
@@ -1961,7 +1975,7 @@ function vt({ severities: e = [], "data-testid": t }) {
|
|
|
1961
1975
|
color: c
|
|
1962
1976
|
}), r > .5) {
|
|
1963
1977
|
let i = Math.min(1, (r - .5) / .5), o = _ + l / 2;
|
|
1964
|
-
t.globalAlpha = i, t.font = "bold " + f.font, t.fillStyle = d > 0 ? c : m(c, .9), t.textAlign = "center", t.fillText(e.severity, o, 38), t.font = "bold " + f.font, t.fillStyle = d > 0 ? u.t1 : m(u.t1, .85), t.fillText(String(e.count), o, 50 + a / 2 + 6), t.font = f.font, t.fillStyle = d > 0 ? c : f.color, t.fillText(`${Math.round(e.count / n * 100)}%`, o, 50 + a + 18), t.globalAlpha = 1;
|
|
1978
|
+
t.globalAlpha = i, t.font = "bold " + f.font, t.fillStyle = d > 0 ? c : m(c, .9), t.textAlign = "center", t.fillText(yt(t, e.severity, l - 12), o, 38), t.font = "bold " + f.font, t.fillStyle = d > 0 ? u.t1 : m(u.t1, .85), t.fillText(String(e.count), o, 50 + a / 2 + 6), t.font = f.font, t.fillStyle = d > 0 ? c : f.color, t.fillText(`${Math.round(e.count / n * 100)}%`, o, 50 + a + 18), t.globalAlpha = 1;
|
|
1965
1979
|
}
|
|
1966
1980
|
_ += l;
|
|
1967
1981
|
});
|
|
@@ -1971,14 +1985,14 @@ function vt({ severities: e = [], "data-testid": t }) {
|
|
|
1971
1985
|
return p(), () => cancelAnimationFrame(c);
|
|
1972
1986
|
}, [g]), g.length === 0 ? /* @__PURE__ */ s(F, {
|
|
1973
1987
|
width: q,
|
|
1974
|
-
height:
|
|
1988
|
+
height: vt,
|
|
1975
1989
|
"data-testid": t
|
|
1976
1990
|
}) : /* @__PURE__ */ c("div", {
|
|
1977
1991
|
"data-testid": t,
|
|
1978
1992
|
style: {
|
|
1979
1993
|
position: "relative",
|
|
1980
1994
|
width: q,
|
|
1981
|
-
height:
|
|
1995
|
+
height: vt
|
|
1982
1996
|
},
|
|
1983
1997
|
children: [/* @__PURE__ */ s("canvas", {
|
|
1984
1998
|
ref: r,
|
|
@@ -1986,24 +2000,24 @@ function vt({ severities: e = [], "data-testid": t }) {
|
|
|
1986
2000
|
"aria-label": "Early Warning severity distribution — prism spectrum bands",
|
|
1987
2001
|
style: {
|
|
1988
2002
|
width: q,
|
|
1989
|
-
height:
|
|
2003
|
+
height: vt,
|
|
1990
2004
|
display: "block"
|
|
1991
2005
|
}
|
|
1992
2006
|
}), /* @__PURE__ */ s(S, {
|
|
1993
2007
|
...p,
|
|
1994
2008
|
parentW: q,
|
|
1995
|
-
parentH:
|
|
2009
|
+
parentH: vt
|
|
1996
2010
|
})]
|
|
1997
2011
|
});
|
|
1998
2012
|
}
|
|
1999
2013
|
//#endregion
|
|
2000
2014
|
//#region src/components/hubAndSpokeRadialChart/HubAndSpokeRadialChart.tsx
|
|
2001
|
-
var J = 460, Y = 300,
|
|
2015
|
+
var J = 460, Y = 300, St = {
|
|
2002
2016
|
Open: u.red,
|
|
2003
2017
|
Submitted: u.amber,
|
|
2004
2018
|
Closed: u.green
|
|
2005
2019
|
};
|
|
2006
|
-
function
|
|
2020
|
+
function Ct({ segments: e = [], title: t, "data-testid": r }) {
|
|
2007
2021
|
let o = a(null), l = a(0), d = a(/* @__PURE__ */ new Map()), { hoveredRef: p, tooltip: h, hitZonesRef: g } = C(o, {
|
|
2008
2022
|
width: J,
|
|
2009
2023
|
height: Y
|
|
@@ -2020,14 +2034,14 @@ function bt({ segments: e = [], title: t, "data-testid": r }) {
|
|
|
2020
2034
|
let n = t === p.current ? 1 : 0, r = e + (n - e) * .12;
|
|
2021
2035
|
Math.abs(r - n) < .005 ? n === 0 ? d.current.delete(t) : d.current.set(t, 1) : d.current.set(t, r);
|
|
2022
2036
|
}), p.current && !d.current.has(p.current) && d.current.set(p.current, 0), y(t, J, Y, e, 40, m(u.blue, .04)), x.forEach((a, o) => {
|
|
2023
|
-
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, d = r + Math.sin(c) * i, p =
|
|
2037
|
+
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, d = r + Math.sin(c) * i, p = St[a.status] ?? u.blue, h = 2 + a.count / s * 8;
|
|
2024
2038
|
t.beginPath(), t.moveTo(n, r), t.lineTo(l, d), t.strokeStyle = m(p, .08), t.lineWidth = h * 2, t.stroke(), t.beginPath(), t.moveTo(n, r), t.lineTo(l, d), t.strokeStyle = m(p, .25), t.lineWidth = 1, t.stroke();
|
|
2025
2039
|
let g = (e * .005 + o * .33) % 1, _ = n + (l - n) * g, y = r + (d - r) * g;
|
|
2026
2040
|
v(t, _, y, 6, p, .4), t.beginPath(), t.arc(_, y, 2, 0, Math.PI * 2), t.fillStyle = m(p, .8), t.fill();
|
|
2027
2041
|
let b = (n + l) / 2, x = (r + d) / 2;
|
|
2028
2042
|
t.font = "bold " + f.font, t.textAlign = "center", t.textBaseline = "middle", t.fillStyle = m(p, .85), t.fillText(String(a.count), b, x);
|
|
2029
2043
|
}), x.forEach((e, o) => {
|
|
2030
|
-
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, p = r + Math.sin(c) * i, h =
|
|
2044
|
+
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, p = r + Math.sin(c) * i, h = St[e.status] ?? u.blue, _ = 10 + e.count / s * 18, y = d.current.get(e.status) ?? 0;
|
|
2031
2045
|
v(t, l, p, _ * 2.5, h, .2 + y * .15);
|
|
2032
2046
|
let b = t.createRadialGradient(l, p - _ * .2, 0, l, p, _);
|
|
2033
2047
|
b.addColorStop(0, m(h, .8 + y * .2)), b.addColorStop(1, m(h, .4 + y * .1)), t.beginPath(), t.arc(l, p, _, 0, Math.PI * 2), t.fillStyle = b, t.fill(), t.font = "bold " + f.font, t.textAlign = "center", t.textBaseline = "middle", t.fillStyle = m(u.t1, .9), t.fillText(e.status, l, p), w(g.current, e.status, l, p, _ + 6, {
|
|
@@ -2077,8 +2091,8 @@ function bt({ segments: e = [], title: t, "data-testid": r }) {
|
|
|
2077
2091
|
}
|
|
2078
2092
|
//#endregion
|
|
2079
2093
|
//#region src/components/trendChart/TrendChart.tsx
|
|
2080
|
-
var
|
|
2081
|
-
function
|
|
2094
|
+
var wt = 280, X = 96;
|
|
2095
|
+
function Tt({ points: e = [], className: t, colors: r }) {
|
|
2082
2096
|
let o = a(null), d = a(/* @__PURE__ */ new Map()), f = a(0), p = i(() => e.map(([e, t]) => {
|
|
2083
2097
|
let n = String(t).match(/-?\d+(\.\d+)?/);
|
|
2084
2098
|
return {
|
|
@@ -2086,18 +2100,18 @@ function St({ points: e = [], className: t, colors: r }) {
|
|
|
2086
2100
|
value: n ? Number(n[0]) : 0
|
|
2087
2101
|
};
|
|
2088
2102
|
}), [e]), { mouseRef: h, hoveredRef: g, tooltip: y, hitZonesRef: b } = C(o, {
|
|
2089
|
-
width:
|
|
2103
|
+
width: wt,
|
|
2090
2104
|
height: X
|
|
2091
2105
|
});
|
|
2092
2106
|
return n(() => {
|
|
2093
2107
|
let e = o.current;
|
|
2094
2108
|
if (!e) return;
|
|
2095
|
-
let t = _(e,
|
|
2109
|
+
let t = _(e, wt, X);
|
|
2096
2110
|
f.current = 0;
|
|
2097
2111
|
let n = r?.line ?? u.blue, i = r?.point ?? u.blue, a = r?.axisLine ?? u.bd, s, c = () => {
|
|
2098
2112
|
f.current++;
|
|
2099
2113
|
let e = f.current;
|
|
2100
|
-
if (t.clearRect(0, 0,
|
|
2114
|
+
if (t.clearRect(0, 0, wt, X), p.length < 2) {
|
|
2101
2115
|
s = requestAnimationFrame(c);
|
|
2102
2116
|
return;
|
|
2103
2117
|
}
|
|
@@ -2106,8 +2120,8 @@ function St({ points: e = [], className: t, colors: r }) {
|
|
|
2106
2120
|
right: 12,
|
|
2107
2121
|
top: 16,
|
|
2108
2122
|
bottom: 20
|
|
2109
|
-
}, o =
|
|
2110
|
-
if (M(d.current, g.current), b.current = [], t.strokeStyle = m(a, .3), t.lineWidth = .5, t.setLineDash([]), t.beginPath(), t.moveTo(r.left, X - r.bottom), t.lineTo(
|
|
2123
|
+
}, o = wt - r.left - r.right, l = X - r.top - r.bottom, _ = p.map((e) => e.value), y = Math.min(..._), S = Math.max(..._) - y || 1, C = (e) => r.left + e / (p.length - 1) * o, T = (e) => r.top + (1 - (e - y) / S) * l, E = 1 - (1 - Math.min(e / 48, 1)) ** 3, D = Math.max(2, Math.floor(E * p.length));
|
|
2124
|
+
if (M(d.current, g.current), b.current = [], t.strokeStyle = m(a, .3), t.lineWidth = .5, t.setLineDash([]), t.beginPath(), t.moveTo(r.left, X - r.bottom), t.lineTo(wt - r.right, X - r.bottom), t.stroke(), t.font = "9px 'JetBrains Mono', monospace", t.fillStyle = m(u.t4, .9), t.textAlign = "center", p.forEach((e, n) => {
|
|
2111
2125
|
t.fillText(e.label.replace("Day ", "D"), C(n), X - 4);
|
|
2112
2126
|
}), h.current.over && g.current) {
|
|
2113
2127
|
let e = parseInt(g.current.split("-")[1]);
|
|
@@ -2144,7 +2158,7 @@ function St({ points: e = [], className: t, colors: r }) {
|
|
|
2144
2158
|
children: /* @__PURE__ */ c("div", {
|
|
2145
2159
|
style: {
|
|
2146
2160
|
position: "relative",
|
|
2147
|
-
width:
|
|
2161
|
+
width: wt,
|
|
2148
2162
|
height: X
|
|
2149
2163
|
},
|
|
2150
2164
|
children: [/* @__PURE__ */ s("canvas", {
|
|
@@ -2152,14 +2166,14 @@ function St({ points: e = [], className: t, colors: r }) {
|
|
|
2152
2166
|
role: "img",
|
|
2153
2167
|
"aria-label": "trend chart",
|
|
2154
2168
|
style: {
|
|
2155
|
-
width:
|
|
2169
|
+
width: wt,
|
|
2156
2170
|
height: X,
|
|
2157
2171
|
display: "block",
|
|
2158
2172
|
borderRadius: 8
|
|
2159
2173
|
}
|
|
2160
2174
|
}), /* @__PURE__ */ s(S, {
|
|
2161
2175
|
...y,
|
|
2162
|
-
parentW:
|
|
2176
|
+
parentW: wt,
|
|
2163
2177
|
parentH: X
|
|
2164
2178
|
})]
|
|
2165
2179
|
})
|
|
@@ -2167,21 +2181,21 @@ function St({ points: e = [], className: t, colors: r }) {
|
|
|
2167
2181
|
}
|
|
2168
2182
|
//#endregion
|
|
2169
2183
|
//#region src/components/segmentedSplitBarChart/SegmentedSplitBarChart.tsx
|
|
2170
|
-
var
|
|
2171
|
-
function
|
|
2172
|
-
let r = a(null), l = a(/* @__PURE__ */ new Map()), d = a(0), [f, h] = o(!1), g = i(() => e.filter((e) => typeof e == "object" && !!e), [e]), y = i(() => f ? g : g.slice(0,
|
|
2173
|
-
width:
|
|
2184
|
+
var Et = 680, Dt = 8, Ot = 26, kt = 14, At = 16, jt = 32;
|
|
2185
|
+
function Mt({ items: e = [], "data-testid": t }) {
|
|
2186
|
+
let r = a(null), l = a(/* @__PURE__ */ new Map()), d = a(0), [f, h] = o(!1), g = i(() => e.filter((e) => typeof e == "object" && !!e), [e]), y = i(() => f ? g : g.slice(0, Dt), [g, f]), b = At + jt + y.length * (Ot + kt) - kt, { hoveredRef: x, tooltip: w, hitZonesRef: E } = C(r, {
|
|
2187
|
+
width: Et,
|
|
2174
2188
|
height: b
|
|
2175
2189
|
});
|
|
2176
2190
|
return n(() => {
|
|
2177
2191
|
let e = r.current;
|
|
2178
2192
|
if (!e) return;
|
|
2179
|
-
let t = _(e,
|
|
2193
|
+
let t = _(e, Et, b);
|
|
2180
2194
|
d.current = 0;
|
|
2181
|
-
let n =
|
|
2195
|
+
let n = At, i = jt, a = Ot, o = kt, s = Et - 60 - 28, c = Math.max(...y.map((e) => (e.implemented ?? 0) + (e.unimplemented ?? 0))), f = y.length * (a + o) - o, h = n + (b - n - i - f) / 2, g, S = () => {
|
|
2182
2196
|
d.current++;
|
|
2183
2197
|
let e = d.current;
|
|
2184
|
-
t.clearRect(0, 0,
|
|
2198
|
+
t.clearRect(0, 0, Et, b);
|
|
2185
2199
|
let n = D(Math.min(e / 60, 1));
|
|
2186
2200
|
M(l.current, x.current), E.current = [], y.forEach((e, r) => {
|
|
2187
2201
|
let i = j(n, r, y.length, D), d = h + r * (a + o), f = (e.implemented ?? 0) + (e.unimplemented ?? 0), p = (e.implemented ?? 0) / c * s * i, g = (e.unimplemented ?? 0) / c * s * i, _ = `${e.id}-impl`, b = `${e.id}-un`, x = l.current.get(_) ?? 0, S = l.current.get(b) ?? 0;
|
|
@@ -2208,20 +2222,20 @@ function kt({ items: e = [], "data-testid": t }) {
|
|
|
2208
2222
|
]), t.fill(), t.stroke(), g > 28 && i > .5 && (t.font = "500 14px 'Satoshi Variable', 'DM Sans', sans-serif", t.fillStyle = S > 0 ? u.amber : u.t2, t.textAlign = "center", t.fillText(String(e.unimplemented ?? 0), 60 + p + g / 2, d + a / 2 + 4))), p > 0 && g > 0 && (t.strokeStyle = m(u.bg, .7), t.lineWidth = 2, t.beginPath(), t.moveTo(60 + p, d), t.lineTo(60 + p, d + a), t.stroke());
|
|
2209
2223
|
});
|
|
2210
2224
|
let r = h + f + 24, i = 60 + s / 2;
|
|
2211
|
-
t.font = "400
|
|
2225
|
+
t.font = "400 14px 'Satoshi Variable', 'DM Sans', sans-serif", t.textAlign = "right", t.fillStyle = u.green, t.fillText("■ Implemented", i - 10, r), t.textAlign = "left", t.fillStyle = p.color, t.fillText("■ Unimplemented", i + 10, r), g = requestAnimationFrame(S);
|
|
2212
2226
|
};
|
|
2213
2227
|
return S(), () => cancelAnimationFrame(g);
|
|
2214
2228
|
}, [y, b]), g.length === 0 ? /* @__PURE__ */ s(F, {
|
|
2215
|
-
width:
|
|
2229
|
+
width: Et,
|
|
2216
2230
|
height: 160,
|
|
2217
2231
|
"data-testid": t
|
|
2218
2232
|
}) : /* @__PURE__ */ c("div", {
|
|
2219
2233
|
"data-testid": t,
|
|
2220
|
-
style: { width:
|
|
2234
|
+
style: { width: Et },
|
|
2221
2235
|
children: [/* @__PURE__ */ c("div", {
|
|
2222
2236
|
style: {
|
|
2223
2237
|
position: "relative",
|
|
2224
|
-
width:
|
|
2238
|
+
width: Et,
|
|
2225
2239
|
height: b
|
|
2226
2240
|
},
|
|
2227
2241
|
children: [/* @__PURE__ */ s("canvas", {
|
|
@@ -2229,16 +2243,16 @@ function kt({ items: e = [], "data-testid": t }) {
|
|
|
2229
2243
|
role: "img",
|
|
2230
2244
|
"aria-label": "Implemented vs unimplemented variations per contractor — split bar",
|
|
2231
2245
|
style: {
|
|
2232
|
-
width:
|
|
2246
|
+
width: Et,
|
|
2233
2247
|
height: b,
|
|
2234
2248
|
display: "block"
|
|
2235
2249
|
}
|
|
2236
2250
|
}), /* @__PURE__ */ s(S, {
|
|
2237
2251
|
...w,
|
|
2238
|
-
parentW:
|
|
2252
|
+
parentW: Et,
|
|
2239
2253
|
parentH: b
|
|
2240
2254
|
})]
|
|
2241
|
-
}), g.length >
|
|
2255
|
+
}), g.length > Dt && /* @__PURE__ */ s("div", {
|
|
2242
2256
|
style: { marginTop: 8 },
|
|
2243
2257
|
children: /* @__PURE__ */ s(ae, {
|
|
2244
2258
|
expanded: f,
|
|
@@ -2249,18 +2263,18 @@ function kt({ items: e = [], "data-testid": t }) {
|
|
|
2249
2263
|
}
|
|
2250
2264
|
//#endregion
|
|
2251
2265
|
//#region src/components/weeklyFlow/WeeklyFlow.tsx
|
|
2252
|
-
var
|
|
2253
|
-
function
|
|
2266
|
+
var Nt = 800, Pt = 360;
|
|
2267
|
+
function Ft({ items: e = [], "data-testid": t }) {
|
|
2254
2268
|
let r = a(null), i = a(/* @__PURE__ */ new Map()), o = a(0), { hoveredRef: l, tooltip: f, hitZonesRef: p } = C(r, {
|
|
2255
|
-
width:
|
|
2256
|
-
height:
|
|
2269
|
+
width: Nt,
|
|
2270
|
+
height: Pt
|
|
2257
2271
|
});
|
|
2258
2272
|
return n(() => {
|
|
2259
2273
|
let t = r.current;
|
|
2260
2274
|
if (!t) return;
|
|
2261
|
-
let n = _(t,
|
|
2275
|
+
let n = _(t, Nt, Pt);
|
|
2262
2276
|
o.current = 0;
|
|
2263
|
-
let a = e.reduce((e, t) => e + (t.base ?? 0), 0), s = e.reduce((e, t) => e + (t.variation ?? 0), 0), c = e.reduce((e, t) => e + (t.total ?? 0), 0), f =
|
|
2277
|
+
let a = e.reduce((e, t) => e + (t.base ?? 0), 0), s = e.reduce((e, t) => e + (t.variation ?? 0), 0), c = e.reduce((e, t) => e + (t.total ?? 0), 0), f = Pt - 20 - 26, h = f - 6 * (e.length - 1), g = 20, y = e.map((e, t) => {
|
|
2264
2278
|
let n = Math.max(24, (e.total ?? 0) / (c || 1) * h), r = {
|
|
2265
2279
|
x: 100 - 110 / 2,
|
|
2266
2280
|
y: g,
|
|
@@ -2288,16 +2302,16 @@ function Mt({ items: e = [], "data-testid": t }) {
|
|
|
2288
2302
|
}, k, A = () => {
|
|
2289
2303
|
o.current++;
|
|
2290
2304
|
let t = o.current;
|
|
2291
|
-
n.clearRect(0, 0,
|
|
2305
|
+
n.clearRect(0, 0, Nt, Pt);
|
|
2292
2306
|
let r = E(Math.min(t / 80, 1));
|
|
2293
2307
|
if (M(i.current, l.current), p.current = [], e.forEach((t, o) => {
|
|
2294
2308
|
let c = y[o], l = j(r, o, e.length, E), u = i.current.get(t.id) ?? 0;
|
|
2295
2309
|
if (l < .01) return;
|
|
2296
2310
|
let d = (t.base ?? 0) / (t.total || 1), f = (t.variation ?? 0) / (t.total || 1), p = c.h * d, m = c.h * f, h = c.y + p / 2, g = c.y + p + m / 2, _ = Math.max(2, (t.base ?? 0) / a * x), v = Math.max(2, (t.variation ?? 0) / s * S), b = w.y + e.slice(0, o).reduce((e, t) => e + (t.base ?? 0) / a * x, 0) + _ / 2, C = D.y + e.slice(0, o).reduce((e, t) => e + (t.variation ?? 0) / s * S, 0) + v / 2, T = u * .2 + .18;
|
|
2297
|
-
|
|
2311
|
+
It(n, c.x + 110, h, 420 - 110 / 2, b, _ * l, c.color, T), It(n, c.x + 110, g, 420 - 110 / 2, C, v * l, c.color, T * .75);
|
|
2298
2312
|
}), r > .3) {
|
|
2299
2313
|
let e = Math.min(1, (r - .3) / .7), t = O.y + a / c * f / 2, i = O.y + f - s / c * f / 2;
|
|
2300
|
-
|
|
2314
|
+
It(n, 475, w.cy, 720 - 110 / 2, t, x * e, u.blue, .25 * e), It(n, 475, D.cy, 720 - 110 / 2, i, S * e, u.amber, .22 * e);
|
|
2301
2315
|
}
|
|
2302
2316
|
if ([
|
|
2303
2317
|
"Contractors",
|
|
@@ -2309,7 +2323,7 @@ function Mt({ items: e = [], "data-testid": t }) {
|
|
|
2309
2323
|
420,
|
|
2310
2324
|
720
|
|
2311
2325
|
][t];
|
|
2312
|
-
n.font = "400 12px 'Satoshi Variable', 'DM Sans', sans-serif", n.fillStyle = m(u.t3, .5), n.textAlign = "center", n.fillText(e, r,
|
|
2326
|
+
n.font = "400 12px 'Satoshi Variable', 'DM Sans', sans-serif", n.fillStyle = m(u.t3, .5), n.textAlign = "center", n.fillText(e, r, Pt - 8);
|
|
2313
2327
|
}), e.forEach((t, a) => {
|
|
2314
2328
|
let o = y[a], s = j(r, a, e.length, E), c = i.current.get(t.id) ?? 0;
|
|
2315
2329
|
T(p.current, t.id, o.x, o.y, 110, o.h, {
|
|
@@ -2333,32 +2347,32 @@ function Mt({ items: e = [], "data-testid": t }) {
|
|
|
2333
2347
|
"data-testid": t,
|
|
2334
2348
|
style: {
|
|
2335
2349
|
position: "relative",
|
|
2336
|
-
width:
|
|
2337
|
-
height:
|
|
2350
|
+
width: Nt,
|
|
2351
|
+
height: Pt
|
|
2338
2352
|
},
|
|
2339
2353
|
children: [/* @__PURE__ */ s("canvas", {
|
|
2340
2354
|
ref: r,
|
|
2341
2355
|
role: "img",
|
|
2342
2356
|
"aria-label": "Weekly report flow — base value and variations per contractor flowing to total commitment",
|
|
2343
2357
|
style: {
|
|
2344
|
-
width:
|
|
2345
|
-
height:
|
|
2358
|
+
width: Nt,
|
|
2359
|
+
height: Pt,
|
|
2346
2360
|
display: "block"
|
|
2347
2361
|
}
|
|
2348
2362
|
}), /* @__PURE__ */ s(S, {
|
|
2349
2363
|
...f,
|
|
2350
|
-
parentW:
|
|
2351
|
-
parentH:
|
|
2364
|
+
parentW: Nt,
|
|
2365
|
+
parentH: Pt
|
|
2352
2366
|
})]
|
|
2353
2367
|
});
|
|
2354
2368
|
}
|
|
2355
|
-
function
|
|
2369
|
+
function It(e, t, n, r, i, a, o, s) {
|
|
2356
2370
|
let c = (t + r) / 2;
|
|
2357
2371
|
e.beginPath(), e.moveTo(t, n - a / 2), e.bezierCurveTo(c, n - a / 2, c, i - a / 2, r, i - a / 2), e.lineTo(r, i + a / 2), e.bezierCurveTo(c, i + a / 2, c, n + a / 2, t, n + a / 2), e.closePath(), e.fillStyle = m(o, s), e.fill();
|
|
2358
2372
|
}
|
|
2359
2373
|
//#endregion
|
|
2360
2374
|
//#region src/components/visualizationRenderer/VisualizationRenderer.tsx
|
|
2361
|
-
function
|
|
2375
|
+
function Lt({ config: e, className: t }) {
|
|
2362
2376
|
return e.type === "line" ? /* @__PURE__ */ s(Ie, {
|
|
2363
2377
|
rows: e.rows,
|
|
2364
2378
|
className: t
|
|
@@ -2368,77 +2382,77 @@ function Pt({ config: e, className: t }) {
|
|
|
2368
2382
|
}) : e.type === "bar" ? /* @__PURE__ */ s(ie, {
|
|
2369
2383
|
rows: e.rows,
|
|
2370
2384
|
className: t
|
|
2371
|
-
}) : e.type === "pie" ? /* @__PURE__ */ s(
|
|
2385
|
+
}) : e.type === "pie" ? /* @__PURE__ */ s(Je, {
|
|
2372
2386
|
rows: e.rows,
|
|
2373
2387
|
variant: "pie",
|
|
2374
2388
|
className: t
|
|
2375
|
-
}) : e.type === "donut" ? /* @__PURE__ */ s(
|
|
2389
|
+
}) : e.type === "donut" ? /* @__PURE__ */ s(Je, {
|
|
2376
2390
|
rows: e.rows,
|
|
2377
2391
|
variant: "donut",
|
|
2378
2392
|
className: t
|
|
2379
|
-
}) : e.type === "sankey" ? /* @__PURE__ */ s(
|
|
2393
|
+
}) : e.type === "sankey" ? /* @__PURE__ */ s(at, {
|
|
2380
2394
|
rows: e.rows,
|
|
2381
2395
|
className: t
|
|
2382
|
-
}) : e.type === "flow" ? /* @__PURE__ */ s(
|
|
2396
|
+
}) : e.type === "flow" ? /* @__PURE__ */ s(it, {
|
|
2383
2397
|
selectedEntity: e.selectedEntity,
|
|
2384
2398
|
className: t
|
|
2385
|
-
}) : e.type === "trend" ? /* @__PURE__ */ s(
|
|
2399
|
+
}) : e.type === "trend" ? /* @__PURE__ */ s(Tt, {
|
|
2386
2400
|
points: e.points,
|
|
2387
2401
|
className: t
|
|
2388
2402
|
}) : e.type === "mini-bars" ? /* @__PURE__ */ s(ze, {
|
|
2389
2403
|
rows: e.rows,
|
|
2390
2404
|
className: t
|
|
2391
|
-
}) : e.type === "stacked-horizontal-bar-chart" ? /* @__PURE__ */ s(ke, { data: e.data }) : e.type === "multi-metric-constellation-chart" ? /* @__PURE__ */ s(Se, { items: e.items }) : e.type === "progress-race-chart" ? /* @__PURE__ */ s(fe, { items: e.items }) : e.type === "hub-and-spoke-radial-chart" ? /* @__PURE__ */ s(
|
|
2405
|
+
}) : e.type === "stacked-horizontal-bar-chart" ? /* @__PURE__ */ s(ke, { data: e.data }) : e.type === "multi-metric-constellation-chart" ? /* @__PURE__ */ s(Se, { items: e.items }) : e.type === "progress-race-chart" ? /* @__PURE__ */ s(fe, { items: e.items }) : e.type === "hub-and-spoke-radial-chart" ? /* @__PURE__ */ s(Ct, {
|
|
2392
2406
|
segments: e.segments,
|
|
2393
2407
|
title: e.title
|
|
2394
|
-
}) : e.type === "dot-matrix-chart" ? /* @__PURE__ */ s(Fe, { items: e.items }) : e.type === "ranked-card-leaderboard" ? /* @__PURE__ */ s(Pe, { items: e.items }) : e.type === "proportional-band-chart" ? /* @__PURE__ */ s(
|
|
2408
|
+
}) : e.type === "dot-matrix-chart" ? /* @__PURE__ */ s(Fe, { items: e.items }) : e.type === "ranked-card-leaderboard" ? /* @__PURE__ */ s(Pe, { items: e.items }) : e.type === "proportional-band-chart" ? /* @__PURE__ */ s(xt, { severities: e.severities }) : e.type === "radial-fan-tree-chart" ? /* @__PURE__ */ s(We, {
|
|
2395
2409
|
total: e.total,
|
|
2396
2410
|
items: e.items
|
|
2397
2411
|
}) : e.type === "semi-circular-gauge-chart" ? /* @__PURE__ */ s(he, {
|
|
2398
2412
|
value: e.value,
|
|
2399
2413
|
confirmed: e.confirmed,
|
|
2400
2414
|
total: e.total
|
|
2401
|
-
}) : e.type === "segmented-split-bar-chart" ? /* @__PURE__ */ s(
|
|
2415
|
+
}) : e.type === "segmented-split-bar-chart" ? /* @__PURE__ */ s(Mt, { items: e.items }) : e.type === "balance-scale-chart" ? /* @__PURE__ */ s(ct, {
|
|
2402
2416
|
left: e.left,
|
|
2403
2417
|
right: e.right
|
|
2404
|
-
}) : e.type === "area-line-chart" ? /* @__PURE__ */ s(
|
|
2418
|
+
}) : e.type === "area-line-chart" ? /* @__PURE__ */ s(ut, { points: e.points }) : e.type === "trend-view" ? /* @__PURE__ */ s(_t, { points: e.points }) : e.type === "weekly-flow" ? /* @__PURE__ */ s(Ft, { items: e.items }) : /* @__PURE__ */ s("div", {
|
|
2405
2419
|
className: "viz-empty",
|
|
2406
2420
|
children: "Visualization unavailable"
|
|
2407
2421
|
});
|
|
2408
2422
|
}
|
|
2409
2423
|
//#endregion
|
|
2410
2424
|
//#region src/utils/mounts.tsx
|
|
2411
|
-
var
|
|
2412
|
-
function
|
|
2425
|
+
var Rt = [];
|
|
2426
|
+
function zt(e) {
|
|
2413
2427
|
try {
|
|
2414
2428
|
return JSON.parse(decodeURIComponent(e));
|
|
2415
2429
|
} catch {
|
|
2416
2430
|
return null;
|
|
2417
2431
|
}
|
|
2418
2432
|
}
|
|
2419
|
-
function
|
|
2420
|
-
for (;
|
|
2421
|
-
let e =
|
|
2433
|
+
function Bt() {
|
|
2434
|
+
for (; Rt.length;) {
|
|
2435
|
+
let e = Rt.pop();
|
|
2422
2436
|
e && e.unmount();
|
|
2423
2437
|
}
|
|
2424
2438
|
}
|
|
2425
|
-
function
|
|
2426
|
-
|
|
2439
|
+
function Vt() {
|
|
2440
|
+
Bt(), document.querySelectorAll("[data-d3-viz]").forEach((t) => {
|
|
2427
2441
|
let n = t.dataset.d3Viz;
|
|
2428
2442
|
if (!n) return;
|
|
2429
|
-
let r =
|
|
2443
|
+
let r = zt(n);
|
|
2430
2444
|
if (!r) return;
|
|
2431
2445
|
let i = e(t);
|
|
2432
|
-
|
|
2446
|
+
Rt.push(i), i.render(/* @__PURE__ */ s(Lt, { config: r }));
|
|
2433
2447
|
});
|
|
2434
2448
|
}
|
|
2435
|
-
function
|
|
2449
|
+
function Ht(e) {
|
|
2436
2450
|
return encodeURIComponent(JSON.stringify(e));
|
|
2437
2451
|
}
|
|
2438
2452
|
//#endregion
|
|
2439
2453
|
//#region src/components/donutChart/DonutChart.tsx
|
|
2440
|
-
function
|
|
2441
|
-
return /* @__PURE__ */ s(
|
|
2454
|
+
function Ut({ rows: e = [], className: t, colors: n }) {
|
|
2455
|
+
return /* @__PURE__ */ s(Je, {
|
|
2442
2456
|
rows: e,
|
|
2443
2457
|
variant: "donut",
|
|
2444
2458
|
className: t,
|
|
@@ -2457,20 +2471,20 @@ var Z = {
|
|
|
2457
2471
|
red: u.red,
|
|
2458
2472
|
amber: u.amber,
|
|
2459
2473
|
green: u.green
|
|
2460
|
-
}, Q = "'Satoshi Variable', 'DM Sans', sans-serif",
|
|
2474
|
+
}, Q = "'Satoshi Variable', 'DM Sans', sans-serif", Wt = {
|
|
2461
2475
|
color: "#F7F7F7",
|
|
2462
2476
|
fontFamily: Q,
|
|
2463
2477
|
fontSize: 24,
|
|
2464
2478
|
fontWeight: 500,
|
|
2465
2479
|
lineHeight: "32px"
|
|
2466
2480
|
}, $ = {
|
|
2467
|
-
color: "#
|
|
2481
|
+
color: "#C2C2C2",
|
|
2468
2482
|
fontFamily: Q,
|
|
2469
|
-
fontSize:
|
|
2483
|
+
fontSize: 16,
|
|
2470
2484
|
fontWeight: 400,
|
|
2471
2485
|
lineHeight: "20px"
|
|
2472
2486
|
};
|
|
2473
|
-
function
|
|
2487
|
+
function Gt({ chips: e = [] }) {
|
|
2474
2488
|
return /* @__PURE__ */ s("div", {
|
|
2475
2489
|
style: {
|
|
2476
2490
|
display: "flex",
|
|
@@ -2492,7 +2506,7 @@ function Ht({ chips: e = [] }) {
|
|
|
2492
2506
|
},
|
|
2493
2507
|
children: [/* @__PURE__ */ s("span", {
|
|
2494
2508
|
style: {
|
|
2495
|
-
...
|
|
2509
|
+
...Wt,
|
|
2496
2510
|
color: e.color ?? Z.t1
|
|
2497
2511
|
},
|
|
2498
2512
|
children: e.value
|
|
@@ -2506,7 +2520,7 @@ function Ht({ chips: e = [] }) {
|
|
|
2506
2520
|
}, t))
|
|
2507
2521
|
});
|
|
2508
2522
|
}
|
|
2509
|
-
function
|
|
2523
|
+
function Kt({ items: e = [] }) {
|
|
2510
2524
|
return /* @__PURE__ */ s("div", {
|
|
2511
2525
|
style: {
|
|
2512
2526
|
display: "flex",
|
|
@@ -2529,7 +2543,7 @@ function Ut({ items: e = [] }) {
|
|
|
2529
2543
|
},
|
|
2530
2544
|
children: [/* @__PURE__ */ s("div", {
|
|
2531
2545
|
style: {
|
|
2532
|
-
...
|
|
2546
|
+
...Wt,
|
|
2533
2547
|
color: e.color ?? Z.t1
|
|
2534
2548
|
},
|
|
2535
2549
|
children: e.value
|
|
@@ -2540,7 +2554,7 @@ function Ut({ items: e = [] }) {
|
|
|
2540
2554
|
}, t))
|
|
2541
2555
|
});
|
|
2542
2556
|
}
|
|
2543
|
-
function
|
|
2557
|
+
function qt({ items: e = [] }) {
|
|
2544
2558
|
return /* @__PURE__ */ s("div", {
|
|
2545
2559
|
style: {
|
|
2546
2560
|
display: "flex",
|
|
@@ -2559,7 +2573,7 @@ function Wt({ items: e = [] }) {
|
|
|
2559
2573
|
children: [
|
|
2560
2574
|
/* @__PURE__ */ s("span", {
|
|
2561
2575
|
style: {
|
|
2562
|
-
fontSize:
|
|
2576
|
+
fontSize: 16,
|
|
2563
2577
|
fontWeight: 600,
|
|
2564
2578
|
color: e.color ?? Z.t2,
|
|
2565
2579
|
background: (e.color ?? Z.t2) + "22",
|
|
@@ -2572,8 +2586,8 @@ function Wt({ items: e = [] }) {
|
|
|
2572
2586
|
}),
|
|
2573
2587
|
/* @__PURE__ */ s("span", {
|
|
2574
2588
|
style: {
|
|
2575
|
-
...
|
|
2576
|
-
fontSize:
|
|
2589
|
+
...Wt,
|
|
2590
|
+
fontSize: 16,
|
|
2577
2591
|
color: e.color ?? Z.t1,
|
|
2578
2592
|
minWidth: 70,
|
|
2579
2593
|
flexShrink: 0
|
|
@@ -2591,7 +2605,7 @@ function Wt({ items: e = [] }) {
|
|
|
2591
2605
|
}, t))
|
|
2592
2606
|
});
|
|
2593
2607
|
}
|
|
2594
|
-
function
|
|
2608
|
+
function Jt({ items: e = [] }) {
|
|
2595
2609
|
return /* @__PURE__ */ s("div", {
|
|
2596
2610
|
style: {
|
|
2597
2611
|
display: "flex",
|
|
@@ -2614,7 +2628,7 @@ function Gt({ items: e = [] }) {
|
|
|
2614
2628
|
},
|
|
2615
2629
|
children: [/* @__PURE__ */ s("div", {
|
|
2616
2630
|
style: {
|
|
2617
|
-
...
|
|
2631
|
+
...Wt,
|
|
2618
2632
|
color: e.color ?? Z.t1
|
|
2619
2633
|
},
|
|
2620
2634
|
children: e.value
|
|
@@ -2625,12 +2639,12 @@ function Gt({ items: e = [] }) {
|
|
|
2625
2639
|
}, t))
|
|
2626
2640
|
});
|
|
2627
2641
|
}
|
|
2628
|
-
var
|
|
2642
|
+
var Yt = {
|
|
2629
2643
|
red: Z.red,
|
|
2630
2644
|
amber: Z.amber,
|
|
2631
2645
|
green: Z.green
|
|
2632
2646
|
};
|
|
2633
|
-
function
|
|
2647
|
+
function Xt({ items: e = [] }) {
|
|
2634
2648
|
return /* @__PURE__ */ s("div", {
|
|
2635
2649
|
style: {
|
|
2636
2650
|
display: "flex",
|
|
@@ -2638,7 +2652,7 @@ function qt({ items: e = [] }) {
|
|
|
2638
2652
|
gap: 5
|
|
2639
2653
|
},
|
|
2640
2654
|
children: e.map((e, t) => {
|
|
2641
|
-
let n =
|
|
2655
|
+
let n = Yt[e.severity];
|
|
2642
2656
|
return /* @__PURE__ */ c("div", {
|
|
2643
2657
|
style: {
|
|
2644
2658
|
display: "flex",
|
|
@@ -2663,7 +2677,7 @@ function qt({ items: e = [] }) {
|
|
|
2663
2677
|
})
|
|
2664
2678
|
});
|
|
2665
2679
|
}
|
|
2666
|
-
function
|
|
2680
|
+
function Zt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
2667
2681
|
let a = t - e;
|
|
2668
2682
|
return /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
2669
2683
|
style: {
|
|
@@ -2686,7 +2700,7 @@ function Jt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2686
2700
|
position: "absolute",
|
|
2687
2701
|
top: 43,
|
|
2688
2702
|
left: 0,
|
|
2689
|
-
fontSize:
|
|
2703
|
+
fontSize: 16,
|
|
2690
2704
|
color: Z.t4,
|
|
2691
2705
|
fontFamily: Q
|
|
2692
2706
|
},
|
|
@@ -2697,7 +2711,7 @@ function Jt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2697
2711
|
position: "absolute",
|
|
2698
2712
|
top: 43,
|
|
2699
2713
|
right: 0,
|
|
2700
|
-
fontSize:
|
|
2714
|
+
fontSize: 16,
|
|
2701
2715
|
color: Z.t4,
|
|
2702
2716
|
fontFamily: Q
|
|
2703
2717
|
},
|
|
@@ -2720,7 +2734,7 @@ function Jt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2720
2734
|
},
|
|
2721
2735
|
children: [/* @__PURE__ */ s("div", {
|
|
2722
2736
|
style: {
|
|
2723
|
-
fontSize:
|
|
2737
|
+
fontSize: 16,
|
|
2724
2738
|
color: o,
|
|
2725
2739
|
fontFamily: Q,
|
|
2726
2740
|
whiteSpace: "nowrap"
|
|
@@ -2728,7 +2742,7 @@ function Jt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2728
2742
|
children: t.name
|
|
2729
2743
|
}), /* @__PURE__ */ c("div", {
|
|
2730
2744
|
style: {
|
|
2731
|
-
fontSize:
|
|
2745
|
+
fontSize: 16,
|
|
2732
2746
|
fontWeight: 700,
|
|
2733
2747
|
color: o,
|
|
2734
2748
|
fontFamily: Q,
|
|
@@ -2752,7 +2766,7 @@ function Jt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2752
2766
|
},
|
|
2753
2767
|
children: [/* @__PURE__ */ s("div", {
|
|
2754
2768
|
style: {
|
|
2755
|
-
fontSize:
|
|
2769
|
+
fontSize: 16,
|
|
2756
2770
|
color: o,
|
|
2757
2771
|
fontFamily: Q,
|
|
2758
2772
|
whiteSpace: "nowrap"
|
|
@@ -2760,7 +2774,7 @@ function Jt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2760
2774
|
children: t.name
|
|
2761
2775
|
}), /* @__PURE__ */ c("div", {
|
|
2762
2776
|
style: {
|
|
2763
|
-
fontSize:
|
|
2777
|
+
fontSize: 16,
|
|
2764
2778
|
fontWeight: 700,
|
|
2765
2779
|
color: o,
|
|
2766
2780
|
fontFamily: Q,
|
|
@@ -2773,9 +2787,9 @@ function Jt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2773
2787
|
}, r);
|
|
2774
2788
|
})
|
|
2775
2789
|
]
|
|
2776
|
-
}), i && i.length > 0 && /* @__PURE__ */ s(
|
|
2790
|
+
}), i && i.length > 0 && /* @__PURE__ */ s(Gt, { chips: i })] });
|
|
2777
2791
|
}
|
|
2778
|
-
function
|
|
2792
|
+
function Qt({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i, rightLabel: a, rightValue: o, rightColor: l, chips: d }) {
|
|
2779
2793
|
let f = r ?? u.blue, p = l ?? u.cyan;
|
|
2780
2794
|
return /* @__PURE__ */ c("div", { children: [
|
|
2781
2795
|
/* @__PURE__ */ c("div", {
|
|
@@ -2798,7 +2812,7 @@ function Yt({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2798
2812
|
},
|
|
2799
2813
|
children: /* @__PURE__ */ s("span", {
|
|
2800
2814
|
style: {
|
|
2801
|
-
fontSize:
|
|
2815
|
+
fontSize: 16,
|
|
2802
2816
|
fontWeight: 700,
|
|
2803
2817
|
color: f,
|
|
2804
2818
|
fontFamily: Q
|
|
@@ -2821,7 +2835,7 @@ function Yt({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2821
2835
|
},
|
|
2822
2836
|
children: /* @__PURE__ */ s("span", {
|
|
2823
2837
|
style: {
|
|
2824
|
-
fontSize:
|
|
2838
|
+
fontSize: 16,
|
|
2825
2839
|
fontWeight: 700,
|
|
2826
2840
|
color: p,
|
|
2827
2841
|
fontFamily: Q
|
|
@@ -2840,7 +2854,7 @@ function Yt({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2840
2854
|
style: { width: `${e}%` },
|
|
2841
2855
|
children: /* @__PURE__ */ c("span", {
|
|
2842
2856
|
style: {
|
|
2843
|
-
fontSize:
|
|
2857
|
+
fontSize: 16,
|
|
2844
2858
|
color: f,
|
|
2845
2859
|
fontFamily: Q
|
|
2846
2860
|
},
|
|
@@ -2857,7 +2871,7 @@ function Yt({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2857
2871
|
},
|
|
2858
2872
|
children: /* @__PURE__ */ c("span", {
|
|
2859
2873
|
style: {
|
|
2860
|
-
fontSize:
|
|
2874
|
+
fontSize: 16,
|
|
2861
2875
|
color: p,
|
|
2862
2876
|
fontFamily: Q
|
|
2863
2877
|
},
|
|
@@ -2869,10 +2883,10 @@ function Yt({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2869
2883
|
})
|
|
2870
2884
|
})]
|
|
2871
2885
|
}),
|
|
2872
|
-
d && d.length > 0 && /* @__PURE__ */ s(
|
|
2886
|
+
d && d.length > 0 && /* @__PURE__ */ s(Gt, { chips: d })
|
|
2873
2887
|
] });
|
|
2874
2888
|
}
|
|
2875
|
-
function
|
|
2889
|
+
function $t({ pct: e, label: t, color: n, chips: r }) {
|
|
2876
2890
|
let i = n ?? u.blue, a = 2 * Math.PI * 30, o = a * (1 - e / 100);
|
|
2877
2891
|
return /* @__PURE__ */ c("div", {
|
|
2878
2892
|
style: {
|
|
@@ -2919,7 +2933,7 @@ function Xt({ pct: e, label: t, color: n, chips: r }) {
|
|
|
2919
2933
|
},
|
|
2920
2934
|
children: /* @__PURE__ */ c("div", {
|
|
2921
2935
|
style: {
|
|
2922
|
-
fontSize:
|
|
2936
|
+
fontSize: 16,
|
|
2923
2937
|
fontWeight: 700,
|
|
2924
2938
|
color: i,
|
|
2925
2939
|
fontFamily: Q
|
|
@@ -2953,7 +2967,7 @@ function Xt({ pct: e, label: t, color: n, chips: r }) {
|
|
|
2953
2967
|
},
|
|
2954
2968
|
children: [/* @__PURE__ */ s("span", {
|
|
2955
2969
|
style: {
|
|
2956
|
-
...
|
|
2970
|
+
...Wt,
|
|
2957
2971
|
color: e.color ?? Z.t1
|
|
2958
2972
|
},
|
|
2959
2973
|
children: e.value
|
|
@@ -2966,16 +2980,16 @@ function Xt({ pct: e, label: t, color: n, chips: r }) {
|
|
|
2966
2980
|
})]
|
|
2967
2981
|
});
|
|
2968
2982
|
}
|
|
2969
|
-
var
|
|
2983
|
+
var en = {
|
|
2970
2984
|
green: "#34D39918",
|
|
2971
2985
|
amber: "#FBBF2418",
|
|
2972
2986
|
red: "#F0606018"
|
|
2973
|
-
},
|
|
2987
|
+
}, tn = {
|
|
2974
2988
|
green: "#34D399",
|
|
2975
2989
|
amber: "#FBBF24",
|
|
2976
2990
|
red: "#F06060"
|
|
2977
2991
|
};
|
|
2978
|
-
function
|
|
2992
|
+
function nn({ items: e = [] }) {
|
|
2979
2993
|
return /* @__PURE__ */ s("div", {
|
|
2980
2994
|
style: {
|
|
2981
2995
|
display: "flex",
|
|
@@ -2994,7 +3008,7 @@ function $t({ items: e = [] }) {
|
|
|
2994
3008
|
children: [
|
|
2995
3009
|
/* @__PURE__ */ s("span", {
|
|
2996
3010
|
style: {
|
|
2997
|
-
fontSize:
|
|
3011
|
+
fontSize: 16,
|
|
2998
3012
|
fontWeight: 600,
|
|
2999
3013
|
color: e.color ?? Z.t2,
|
|
3000
3014
|
background: (e.color ?? Z.t2) + "1A",
|
|
@@ -3025,7 +3039,7 @@ function $t({ items: e = [] }) {
|
|
|
3025
3039
|
}),
|
|
3026
3040
|
/* @__PURE__ */ s("span", {
|
|
3027
3041
|
style: {
|
|
3028
|
-
fontSize:
|
|
3042
|
+
fontSize: 16,
|
|
3029
3043
|
fontWeight: 700,
|
|
3030
3044
|
color: e.color ?? Z.t1,
|
|
3031
3045
|
fontFamily: Q,
|
|
@@ -3037,10 +3051,10 @@ function $t({ items: e = [] }) {
|
|
|
3037
3051
|
}),
|
|
3038
3052
|
e.badge && e.badgeSeverity && /* @__PURE__ */ s("span", {
|
|
3039
3053
|
style: {
|
|
3040
|
-
fontSize:
|
|
3054
|
+
fontSize: 16,
|
|
3041
3055
|
fontWeight: 600,
|
|
3042
|
-
color:
|
|
3043
|
-
background:
|
|
3056
|
+
color: tn[e.badgeSeverity],
|
|
3057
|
+
background: en[e.badgeSeverity],
|
|
3044
3058
|
padding: "2px 7px",
|
|
3045
3059
|
borderRadius: 4,
|
|
3046
3060
|
fontFamily: Q,
|
|
@@ -3063,12 +3077,12 @@ function $t({ items: e = [] }) {
|
|
|
3063
3077
|
}, t))
|
|
3064
3078
|
});
|
|
3065
3079
|
}
|
|
3066
|
-
var
|
|
3080
|
+
var rn = {
|
|
3067
3081
|
red: Z.red,
|
|
3068
3082
|
amber: Z.amber,
|
|
3069
3083
|
green: Z.green
|
|
3070
3084
|
};
|
|
3071
|
-
function
|
|
3085
|
+
function an({ items: e = [] }) {
|
|
3072
3086
|
return /* @__PURE__ */ s("div", {
|
|
3073
3087
|
style: {
|
|
3074
3088
|
display: "flex",
|
|
@@ -3076,7 +3090,7 @@ function tn({ items: e = [] }) {
|
|
|
3076
3090
|
gap: 5
|
|
3077
3091
|
},
|
|
3078
3092
|
children: e.map((e, t) => {
|
|
3079
|
-
let n =
|
|
3093
|
+
let n = rn[e.severity];
|
|
3080
3094
|
return /* @__PURE__ */ c("div", {
|
|
3081
3095
|
style: {
|
|
3082
3096
|
display: "flex",
|
|
@@ -3104,7 +3118,7 @@ function tn({ items: e = [] }) {
|
|
|
3104
3118
|
}),
|
|
3105
3119
|
/* @__PURE__ */ s("span", {
|
|
3106
3120
|
style: {
|
|
3107
|
-
fontSize:
|
|
3121
|
+
fontSize: 16,
|
|
3108
3122
|
fontWeight: 600,
|
|
3109
3123
|
color: n,
|
|
3110
3124
|
background: n + "20",
|
|
@@ -3128,7 +3142,7 @@ function tn({ items: e = [] }) {
|
|
|
3128
3142
|
})
|
|
3129
3143
|
});
|
|
3130
3144
|
}
|
|
3131
|
-
function
|
|
3145
|
+
function on({ columns: e = [], rows: t = [] }) {
|
|
3132
3146
|
return /* @__PURE__ */ c("div", {
|
|
3133
3147
|
style: {
|
|
3134
3148
|
display: "flex",
|
|
@@ -3146,7 +3160,7 @@ function nn({ columns: e = [], rows: t = [] }) {
|
|
|
3146
3160
|
children: [/* @__PURE__ */ s("div", { style: { minWidth: 64 } }), e.map((e, t) => /* @__PURE__ */ s("div", {
|
|
3147
3161
|
style: {
|
|
3148
3162
|
flex: 1,
|
|
3149
|
-
fontSize:
|
|
3163
|
+
fontSize: 16,
|
|
3150
3164
|
fontWeight: 600,
|
|
3151
3165
|
color: Z.t2,
|
|
3152
3166
|
fontFamily: Q,
|
|
@@ -3166,7 +3180,7 @@ function nn({ columns: e = [], rows: t = [] }) {
|
|
|
3166
3180
|
},
|
|
3167
3181
|
children: [/* @__PURE__ */ s("span", {
|
|
3168
3182
|
style: {
|
|
3169
|
-
fontSize:
|
|
3183
|
+
fontSize: 16,
|
|
3170
3184
|
fontWeight: 600,
|
|
3171
3185
|
color: Z.t2,
|
|
3172
3186
|
background: (e.color ?? Z.t4) + "1A",
|
|
@@ -3181,7 +3195,7 @@ function nn({ columns: e = [], rows: t = [] }) {
|
|
|
3181
3195
|
}), e.cells.map((t, n) => /* @__PURE__ */ s("span", {
|
|
3182
3196
|
style: {
|
|
3183
3197
|
flex: 1,
|
|
3184
|
-
fontSize:
|
|
3198
|
+
fontSize: 16,
|
|
3185
3199
|
fontWeight: 700,
|
|
3186
3200
|
color: e.color ?? Z.t1,
|
|
3187
3201
|
fontFamily: Q
|
|
@@ -3191,18 +3205,18 @@ function nn({ columns: e = [], rows: t = [] }) {
|
|
|
3191
3205
|
}, t))]
|
|
3192
3206
|
});
|
|
3193
3207
|
}
|
|
3194
|
-
function
|
|
3208
|
+
function sn({ text: e }) {
|
|
3195
3209
|
return /* @__PURE__ */ c("div", {
|
|
3196
3210
|
style: {
|
|
3197
3211
|
padding: "8px 12px",
|
|
3198
3212
|
border: `1px solid ${u.bd}`,
|
|
3199
|
-
borderLeft: "4px solid #
|
|
3213
|
+
borderLeft: "4px solid #71B941",
|
|
3200
3214
|
borderRadius: 5,
|
|
3201
|
-
background: `linear-gradient(90deg, rgba(
|
|
3215
|
+
background: `linear-gradient(90deg, rgba(113, 185, 65, 0.10) -48.4%, rgba(19, 22, 27, 0.10) 83.98%), ${u.sf}`
|
|
3202
3216
|
},
|
|
3203
3217
|
children: [/* @__PURE__ */ s("span", {
|
|
3204
3218
|
style: {
|
|
3205
|
-
fontSize:
|
|
3219
|
+
fontSize: 16,
|
|
3206
3220
|
fontWeight: 500,
|
|
3207
3221
|
color: u.t1,
|
|
3208
3222
|
fontFamily: Q,
|
|
@@ -3216,22 +3230,22 @@ function rn({ text: e }) {
|
|
|
3216
3230
|
})]
|
|
3217
3231
|
});
|
|
3218
3232
|
}
|
|
3219
|
-
function
|
|
3233
|
+
function cn({ block: e }) {
|
|
3220
3234
|
if (!e) return null;
|
|
3221
3235
|
let t = (() => {
|
|
3222
3236
|
switch (e.type) {
|
|
3223
|
-
case "stats": return /* @__PURE__ */ s(
|
|
3224
|
-
case "ranked": return /* @__PURE__ */ s(
|
|
3225
|
-
case "chips": return /* @__PURE__ */ s(
|
|
3226
|
-
case "badges": return /* @__PURE__ */ s(
|
|
3227
|
-
case "dot-strip": return /* @__PURE__ */ s(
|
|
3237
|
+
case "stats": return /* @__PURE__ */ s(Kt, { items: e.items });
|
|
3238
|
+
case "ranked": return /* @__PURE__ */ s(qt, { items: e.items });
|
|
3239
|
+
case "chips": return /* @__PURE__ */ s(Jt, { items: e.items });
|
|
3240
|
+
case "badges": return /* @__PURE__ */ s(Xt, { items: e.items });
|
|
3241
|
+
case "dot-strip": return /* @__PURE__ */ s(Zt, {
|
|
3228
3242
|
min: e.min,
|
|
3229
3243
|
max: e.max,
|
|
3230
3244
|
unit: e.unit,
|
|
3231
3245
|
dots: e.dots,
|
|
3232
3246
|
chips: e.chips
|
|
3233
3247
|
});
|
|
3234
|
-
case "proportion": return /* @__PURE__ */ s(
|
|
3248
|
+
case "proportion": return /* @__PURE__ */ s(Qt, {
|
|
3235
3249
|
leftPct: e.leftPct,
|
|
3236
3250
|
leftLabel: e.leftLabel,
|
|
3237
3251
|
leftValue: e.leftValue,
|
|
@@ -3242,15 +3256,15 @@ function an({ block: e }) {
|
|
|
3242
3256
|
rightColor: e.rightColor,
|
|
3243
3257
|
chips: e.chips
|
|
3244
3258
|
});
|
|
3245
|
-
case "ring": return /* @__PURE__ */ s(
|
|
3259
|
+
case "ring": return /* @__PURE__ */ s($t, {
|
|
3246
3260
|
pct: e.pct,
|
|
3247
3261
|
label: e.label,
|
|
3248
3262
|
color: e.color,
|
|
3249
3263
|
chips: e.chips
|
|
3250
3264
|
});
|
|
3251
|
-
case "scorecard-rows": return /* @__PURE__ */ s(
|
|
3252
|
-
case "flags-list": return /* @__PURE__ */ s(
|
|
3253
|
-
case "comparison-rows": return /* @__PURE__ */ s(
|
|
3265
|
+
case "scorecard-rows": return /* @__PURE__ */ s(nn, { items: e.items });
|
|
3266
|
+
case "flags-list": return /* @__PURE__ */ s(an, { items: e.items });
|
|
3267
|
+
case "comparison-rows": return /* @__PURE__ */ s(on, {
|
|
3254
3268
|
columns: e.columns,
|
|
3255
3269
|
rows: e.rows
|
|
3256
3270
|
});
|
|
@@ -3263,8 +3277,8 @@ function an({ block: e }) {
|
|
|
3263
3277
|
flexDirection: "column",
|
|
3264
3278
|
gap: 24
|
|
3265
3279
|
},
|
|
3266
|
-
children: [t, /* @__PURE__ */ s(
|
|
3280
|
+
children: [t, /* @__PURE__ */ s(sn, { text: e.takeaway })]
|
|
3267
3281
|
}) : t;
|
|
3268
3282
|
}
|
|
3269
3283
|
//#endregion
|
|
3270
|
-
export { ne as AreaChart, ie as BarChart, l as ChartFrame,
|
|
3284
|
+
export { ne as AreaChart, ie as BarChart, l as ChartFrame, Ut as DonutChart, cn as KeyHighlights, Ie as LineChart, ze as MiniBars, Je as PieChart, it as ProcessSankey, at as RankingSankey, Xe as SankeySvg, te as SeriesChart, _t as Trend, Tt as TrendChart, Lt as VisualizationRenderer, Bt as cleanupVisualizationMounts, Vt as hydrateVisualizationMounts, Ht as serializeVisualizationConfig };
|