@divami-artefacts/ai-design-system 1.0.21 → 1.0.23
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/index.cjs +1 -1
- package/dist/index.js +259 -251
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1805,27 +1805,27 @@ function ut({ points: e = [], "data-testid": t }) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
//#endregion
|
|
1807
1807
|
//#region src/components/trend/Trend.tsx
|
|
1808
|
-
var dt = 680, q = 280, ft = 54, pt = 28, mt = 64, ht = f.font, gt = 12;
|
|
1809
|
-
function
|
|
1808
|
+
var dt = 680, q = 280, ft = 54, pt = 28, mt = 64, ht = f.font, gt = 12, _t = Math.PI * 2, vt = 72, yt = 20, bt = 5e3;
|
|
1809
|
+
function xt({ points: e = [], "data-testid": t }) {
|
|
1810
1810
|
let r = a(null), o = a(null), l = a(0), d = i(() => e.filter((e) => typeof e == "object" && !!e), [e]), p = i(() => {
|
|
1811
1811
|
if (d.length <= 1) return mt;
|
|
1812
1812
|
let e = document.createElement("canvas").getContext("2d");
|
|
1813
1813
|
if (!e) return mt;
|
|
1814
1814
|
e.font = ht;
|
|
1815
|
-
let t = Math.max(...d.map((t) => e.measureText(t.week).width));
|
|
1816
|
-
return Math.max(mt,
|
|
1817
|
-
}, [d]), m = Math.round(p / 2), g =
|
|
1818
|
-
width:
|
|
1815
|
+
let t = Math.max(1, Math.ceil(d.length / yt)), n = Math.max(...d.filter((e, n) => n % t === 0).map((t) => e.measureText(t.week).width));
|
|
1816
|
+
return Math.max(mt, n + gt);
|
|
1817
|
+
}, [d]), m = Math.round(p / 2), g = pt + m + Math.max(0, d.length - 1) * p, _ = Math.max(dt - ft, Math.min(g, bt)), { tooltip: y, hitZonesRef: b } = w(r, {
|
|
1818
|
+
width: _,
|
|
1819
1819
|
height: q
|
|
1820
1820
|
});
|
|
1821
1821
|
return n(() => {
|
|
1822
1822
|
let e = r.current;
|
|
1823
1823
|
if (!e) return;
|
|
1824
|
-
let t = v(e,
|
|
1824
|
+
let t = v(e, _, q), n = o.current ? v(o.current, ft, q) : null;
|
|
1825
1825
|
l.current = 0;
|
|
1826
|
-
let i =
|
|
1827
|
-
x: m + t *
|
|
1828
|
-
y: 30 +
|
|
1826
|
+
let i = d.length <= vt ? vt : Math.max(24, Math.round(vt * (vt / d.length))), a = _ - pt, s = q - 30 - 54, c = Math.max(...d.map((e) => e.count), 1), g = d.length, y = g > 1 ? (a - m) / (g - 1) : a - m, x = Math.max(1, Math.ceil(p / y)), S = d.map((e, t) => ({
|
|
1827
|
+
x: m + t * y,
|
|
1828
|
+
y: 30 + s - e.count / c * s,
|
|
1829
1829
|
point: e
|
|
1830
1830
|
}));
|
|
1831
1831
|
n && (n.clearRect(0, 0, ft, q), n.letterSpacing = f.letterSpacing, [
|
|
@@ -1834,52 +1834,60 @@ function _t({ points: e = [], "data-testid": t }) {
|
|
|
1834
1834
|
.75,
|
|
1835
1835
|
1
|
|
1836
1836
|
].forEach((e) => {
|
|
1837
|
-
let t = 30 +
|
|
1838
|
-
n.font = f.font, n.fillStyle = f.color, n.textAlign = "right", n.fillText(String(Math.round(
|
|
1839
|
-
}), n.save(), n.translate(12, 30 +
|
|
1840
|
-
let
|
|
1837
|
+
let t = 30 + s - e * s;
|
|
1838
|
+
n.font = f.font, n.fillStyle = f.color, n.textAlign = "right", n.fillText(String(Math.round(c * e)), ft - 6, t + 3);
|
|
1839
|
+
}), n.save(), n.translate(12, 30 + s / 2), n.rotate(-Math.PI / 2), n.font = f.font, n.fillStyle = f.color, n.textAlign = "center", n.fillText("Count", 0, 0), n.restore());
|
|
1840
|
+
let C = t.createLinearGradient(0, 30, 0, 30 + s);
|
|
1841
|
+
C.addColorStop(0, h(u.blue, .22)), C.addColorStop(1, h(u.blue, .02));
|
|
1842
|
+
let w = 0, E, O = (e) => {
|
|
1843
|
+
t.font = ht, t.fillStyle = f.color, t.textAlign = "center";
|
|
1844
|
+
for (let n = 0; n < e; n++) n % x === 0 && t.fillText(S[n].point.week, S[n].x, q - 54 + 14);
|
|
1845
|
+
}, k = () => {
|
|
1841
1846
|
l.current++;
|
|
1842
|
-
let e = Math.min(l.current /
|
|
1843
|
-
t.clearRect(0, 0,
|
|
1847
|
+
let e = Math.min(l.current / i, 1), n = D(e), r = e >= 1;
|
|
1848
|
+
t.clearRect(0, 0, _, q), t.letterSpacing = f.letterSpacing, [
|
|
1844
1849
|
.25,
|
|
1845
1850
|
.5,
|
|
1846
1851
|
.75,
|
|
1847
1852
|
1
|
|
1848
1853
|
].forEach((e) => {
|
|
1849
|
-
let n = 30 +
|
|
1850
|
-
t.strokeStyle = h(u.bd, .18), t.lineWidth = 1, t.setLineDash([3, 5]), t.beginPath(), t.moveTo(0, n), t.lineTo(
|
|
1851
|
-
}), t.font = f.font, t.fillStyle = f.color, t.textAlign = "center", t.fillText("Period", m + (
|
|
1852
|
-
let
|
|
1853
|
-
if (
|
|
1854
|
-
t.beginPath(), t.moveTo(
|
|
1855
|
-
for (let e = 1; e <
|
|
1856
|
-
let n =
|
|
1857
|
-
t.lineTo(
|
|
1854
|
+
let n = 30 + s - e * s;
|
|
1855
|
+
t.strokeStyle = h(u.bd, .18), t.lineWidth = 1, t.setLineDash([3, 5]), t.beginPath(), t.moveTo(0, n), t.lineTo(a, n), t.stroke(), t.setLineDash([]);
|
|
1856
|
+
}), t.font = f.font, t.fillStyle = f.color, t.textAlign = "center", t.fillText("Period", m + (a - m) / 2, q - 6), t.strokeStyle = h(u.bd, .3), t.lineWidth = 1, t.beginPath(), t.moveTo(m, 30 + s), t.lineTo(a, 30 + s), t.stroke();
|
|
1857
|
+
let o = n * (g - 1), c = Math.floor(o) + 1;
|
|
1858
|
+
if (c >= 2) {
|
|
1859
|
+
t.beginPath(), t.moveTo(S[0].x, 30 + s), t.lineTo(S[0].x, S[0].y);
|
|
1860
|
+
for (let e = 1; e < c; e++) {
|
|
1861
|
+
let n = o - Math.floor(o), r = e === c - 1 && e === Math.ceil(o) && n > 0, i = r ? S[e - 1].x + (S[e].x - S[e - 1].x) * n : S[e].x, a = r ? S[e - 1].y + (S[e].y - S[e - 1].y) * n : S[e].y;
|
|
1862
|
+
t.lineTo(i, a);
|
|
1858
1863
|
}
|
|
1859
|
-
t.lineTo(
|
|
1860
|
-
let e = t.createLinearGradient(0, 30, 0, 30 + a);
|
|
1861
|
-
e.addColorStop(0, h(u.blue, .22)), e.addColorStop(1, h(u.blue, .02)), t.fillStyle = e, t.fill();
|
|
1864
|
+
t.lineTo(S[c - 1].x, 30 + s), t.closePath(), t.fillStyle = C, t.fill();
|
|
1862
1865
|
}
|
|
1863
1866
|
t.beginPath();
|
|
1864
|
-
for (let e = 0; e <
|
|
1865
|
-
let n =
|
|
1866
|
-
e === 0 ? t.moveTo(
|
|
1867
|
+
for (let e = 0; e < c; e++) {
|
|
1868
|
+
let n = o - Math.floor(o), r = e === c - 1 && e > 0 && e === Math.ceil(o) && n > 0, i = r ? S[e - 1].x + (S[e].x - S[e - 1].x) * n : S[e].x, a = r ? S[e - 1].y + (S[e].y - S[e - 1].y) * n : S[e].y;
|
|
1869
|
+
e === 0 ? t.moveTo(i, a) : t.lineTo(i, a);
|
|
1867
1870
|
}
|
|
1868
|
-
t.strokeStyle = h(u.blue, .85), t.lineWidth = 2, t.stroke(),
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1871
|
+
t.strokeStyle = h(u.blue, .85), t.lineWidth = 2, t.stroke(), t.fillStyle = h(u.blue, .8), t.beginPath();
|
|
1872
|
+
for (let e = 0; e < c; e++) t.moveTo(S[e].x + 3.5, S[e].y), t.arc(S[e].x, S[e].y, 3.5, 0, _t);
|
|
1873
|
+
if (t.fill(), c > w) {
|
|
1874
|
+
b.current = [];
|
|
1875
|
+
for (let e = 0; e < c; e++) T(b.current, `pt-${e}`, S[e].x, S[e].y, 10, {
|
|
1876
|
+
label: S[e].point.week,
|
|
1877
|
+
value: `${S[e].point.count} submissions`,
|
|
1878
|
+
sublabel: `£${S[e].point.value}M value`,
|
|
1873
1879
|
color: u.blue
|
|
1874
|
-
})
|
|
1875
|
-
|
|
1880
|
+
});
|
|
1881
|
+
w = c;
|
|
1882
|
+
}
|
|
1883
|
+
r && O(g), r || (E = requestAnimationFrame(k));
|
|
1876
1884
|
};
|
|
1877
|
-
return
|
|
1885
|
+
return k(), () => cancelAnimationFrame(E);
|
|
1878
1886
|
}, [
|
|
1879
1887
|
d,
|
|
1880
|
-
|
|
1888
|
+
_,
|
|
1881
1889
|
p,
|
|
1882
|
-
|
|
1890
|
+
b
|
|
1883
1891
|
]), d.length < 2 ? /* @__PURE__ */ s(I, {
|
|
1884
1892
|
width: dt,
|
|
1885
1893
|
height: q,
|
|
@@ -1909,7 +1917,7 @@ function _t({ points: e = [], "data-testid": t }) {
|
|
|
1909
1917
|
children: /* @__PURE__ */ c("div", {
|
|
1910
1918
|
style: {
|
|
1911
1919
|
position: "relative",
|
|
1912
|
-
width:
|
|
1920
|
+
width: _,
|
|
1913
1921
|
height: q
|
|
1914
1922
|
},
|
|
1915
1923
|
children: [/* @__PURE__ */ s("canvas", {
|
|
@@ -1917,13 +1925,13 @@ function _t({ points: e = [], "data-testid": t }) {
|
|
|
1917
1925
|
role: "img",
|
|
1918
1926
|
"aria-label": "Trend chart — count over time",
|
|
1919
1927
|
style: {
|
|
1920
|
-
width:
|
|
1928
|
+
width: _,
|
|
1921
1929
|
height: q,
|
|
1922
1930
|
display: "block"
|
|
1923
1931
|
}
|
|
1924
1932
|
}), /* @__PURE__ */ s(C, {
|
|
1925
|
-
...
|
|
1926
|
-
parentW:
|
|
1933
|
+
...y,
|
|
1934
|
+
parentW: _,
|
|
1927
1935
|
parentH: q
|
|
1928
1936
|
})]
|
|
1929
1937
|
})
|
|
@@ -1932,38 +1940,38 @@ function _t({ points: e = [], "data-testid": t }) {
|
|
|
1932
1940
|
}
|
|
1933
1941
|
//#endregion
|
|
1934
1942
|
//#region src/components/proportionalBandChart/ProportionalBandChart.tsx
|
|
1935
|
-
var J = 680,
|
|
1936
|
-
function
|
|
1943
|
+
var J = 680, St = 240;
|
|
1944
|
+
function Ct(e, t, n) {
|
|
1937
1945
|
if (e.measureText(t).width <= n) return t;
|
|
1938
1946
|
let r = t;
|
|
1939
1947
|
for (; r.length > 0 && e.measureText(`${r}…`).width > n;) r = r.slice(0, -1);
|
|
1940
1948
|
return `${r}…`;
|
|
1941
1949
|
}
|
|
1942
|
-
var
|
|
1950
|
+
var wt = {
|
|
1943
1951
|
Critical: u.red,
|
|
1944
1952
|
High: u.orange,
|
|
1945
1953
|
Medium: u.amber,
|
|
1946
1954
|
Low: u.green
|
|
1947
1955
|
};
|
|
1948
|
-
function
|
|
1956
|
+
function Tt({ severities: e = [], "data-testid": t }) {
|
|
1949
1957
|
let r = a(null), o = a(/* @__PURE__ */ new Map()), l = a(0), { hoveredRef: d, tooltip: m, hitZonesRef: g } = w(r, {
|
|
1950
1958
|
width: J,
|
|
1951
|
-
height:
|
|
1959
|
+
height: St
|
|
1952
1960
|
}), _ = i(() => e.filter((e) => typeof e == "object" && !!e), [e]);
|
|
1953
1961
|
return n(() => {
|
|
1954
1962
|
let e = r.current;
|
|
1955
1963
|
if (!e) return;
|
|
1956
|
-
let t = v(e, J,
|
|
1964
|
+
let t = v(e, J, St);
|
|
1957
1965
|
l.current = 0;
|
|
1958
|
-
let n = _.reduce((e, t) => e + t.count, 0), i = J - 28 - 28, a =
|
|
1966
|
+
let n = _.reduce((e, t) => e + t.count, 0), i = J - 28 - 28, a = St - 50 - 52, s = _.map((e) => e.count / n * i), c, m = () => {
|
|
1959
1967
|
l.current++;
|
|
1960
1968
|
let e = l.current;
|
|
1961
|
-
t.clearRect(0, 0, J,
|
|
1969
|
+
t.clearRect(0, 0, J, St), t.letterSpacing = f.letterSpacing;
|
|
1962
1970
|
let r = O(Math.min(e / 60, 1));
|
|
1963
1971
|
N(o.current, d.current), g.current = [], t.strokeStyle = h(u.bd, .2), t.lineWidth = 1, t.beginPath(), t.rect(28, 50, i, a), t.stroke(), t.strokeStyle = h(u.t2, .15), t.lineWidth = 1, t.setLineDash([4, 4]), t.beginPath(), t.moveTo(J / 2, 50), t.lineTo(J / 2, 50 + a), t.stroke(), t.setLineDash([]);
|
|
1964
1972
|
let v = 28;
|
|
1965
1973
|
_.forEach((e, i) => {
|
|
1966
|
-
let c =
|
|
1974
|
+
let c = wt[e.severity] ?? u.blue, l = s[i];
|
|
1967
1975
|
l * r;
|
|
1968
1976
|
let d = o.current.get(e.severity) ?? 0, m = v + l / 2, _ = l * .85;
|
|
1969
1977
|
m - _ / 2;
|
|
@@ -1975,7 +1983,7 @@ function xt({ severities: e = [], "data-testid": t }) {
|
|
|
1975
1983
|
color: c
|
|
1976
1984
|
}), r > .5) {
|
|
1977
1985
|
let i = Math.min(1, (r - .5) / .5), o = v + l / 2;
|
|
1978
|
-
t.globalAlpha = i, t.font = f.font, t.fillStyle = d > 0 ? c : h(c, .9), t.textAlign = "center", t.fillText(
|
|
1986
|
+
t.globalAlpha = i, t.font = f.font, t.fillStyle = d > 0 ? c : h(c, .9), t.textAlign = "center", t.fillText(Ct(t, e.severity, l - 12), o, 38), t.font = p.font, t.fillStyle = d > 0 ? u.t1 : h(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;
|
|
1979
1987
|
}
|
|
1980
1988
|
v += l;
|
|
1981
1989
|
});
|
|
@@ -1985,14 +1993,14 @@ function xt({ severities: e = [], "data-testid": t }) {
|
|
|
1985
1993
|
return m(), () => cancelAnimationFrame(c);
|
|
1986
1994
|
}, [_]), _.length === 0 ? /* @__PURE__ */ s(I, {
|
|
1987
1995
|
width: J,
|
|
1988
|
-
height:
|
|
1996
|
+
height: St,
|
|
1989
1997
|
"data-testid": t
|
|
1990
1998
|
}) : /* @__PURE__ */ c("div", {
|
|
1991
1999
|
"data-testid": t,
|
|
1992
2000
|
style: {
|
|
1993
2001
|
position: "relative",
|
|
1994
2002
|
width: J,
|
|
1995
|
-
height:
|
|
2003
|
+
height: St
|
|
1996
2004
|
},
|
|
1997
2005
|
children: [/* @__PURE__ */ s("canvas", {
|
|
1998
2006
|
ref: r,
|
|
@@ -2000,48 +2008,48 @@ function xt({ severities: e = [], "data-testid": t }) {
|
|
|
2000
2008
|
"aria-label": "Early Warning severity distribution — prism spectrum bands",
|
|
2001
2009
|
style: {
|
|
2002
2010
|
width: J,
|
|
2003
|
-
height:
|
|
2011
|
+
height: St,
|
|
2004
2012
|
display: "block"
|
|
2005
2013
|
}
|
|
2006
2014
|
}), /* @__PURE__ */ s(C, {
|
|
2007
2015
|
...m,
|
|
2008
2016
|
parentW: J,
|
|
2009
|
-
parentH:
|
|
2017
|
+
parentH: St
|
|
2010
2018
|
})]
|
|
2011
2019
|
});
|
|
2012
2020
|
}
|
|
2013
2021
|
//#endregion
|
|
2014
2022
|
//#region src/components/hubAndSpokeRadialChart/HubAndSpokeRadialChart.tsx
|
|
2015
|
-
var Y = 460,
|
|
2023
|
+
var Y = 460, X = 300, Et = {
|
|
2016
2024
|
Open: u.red,
|
|
2017
2025
|
Submitted: u.amber,
|
|
2018
2026
|
Closed: u.green
|
|
2019
2027
|
};
|
|
2020
|
-
function
|
|
2028
|
+
function Dt({ segments: e = [], title: t, "data-testid": r }) {
|
|
2021
2029
|
let o = a(null), l = a(0), d = a(/* @__PURE__ */ new Map()), { hoveredRef: m, tooltip: g, hitZonesRef: _ } = w(o, {
|
|
2022
2030
|
width: Y,
|
|
2023
|
-
height:
|
|
2031
|
+
height: X
|
|
2024
2032
|
}), S = i(() => e.filter((e) => typeof e == "object" && !!e), [e]);
|
|
2025
2033
|
return n(() => {
|
|
2026
2034
|
let e = o.current;
|
|
2027
2035
|
if (!e) return;
|
|
2028
|
-
let t = v(e, Y,
|
|
2036
|
+
let t = v(e, Y, X);
|
|
2029
2037
|
l.current = 0;
|
|
2030
|
-
let n = Y * .5, r =
|
|
2038
|
+
let n = Y * .5, r = X * .54, i = Y * .22, a = S.reduce((e, t) => e + t.count, 0), s = Math.max(...S.map((e) => e.count), 1), c, g = () => {
|
|
2031
2039
|
l.current++;
|
|
2032
2040
|
let e = l.current;
|
|
2033
|
-
t.clearRect(0, 0, Y,
|
|
2041
|
+
t.clearRect(0, 0, Y, X), t.letterSpacing = f.letterSpacing, _.current = [], d.current.forEach((e, t) => {
|
|
2034
2042
|
let n = t === m.current ? 1 : 0, r = e + (n - e) * .12;
|
|
2035
2043
|
Math.abs(r - n) < .005 ? n === 0 ? d.current.delete(t) : d.current.set(t, 1) : d.current.set(t, r);
|
|
2036
|
-
}), m.current && !d.current.has(m.current) && d.current.set(m.current, 0), b(t, Y,
|
|
2037
|
-
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, d = r + Math.sin(c) * i, f =
|
|
2044
|
+
}), m.current && !d.current.has(m.current) && d.current.set(m.current, 0), b(t, Y, X, e, 40, h(u.blue, .04)), S.forEach((a, o) => {
|
|
2045
|
+
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, d = r + Math.sin(c) * i, f = Et[a.status] ?? u.blue, m = 2 + a.count / s * 8;
|
|
2038
2046
|
t.beginPath(), t.moveTo(n, r), t.lineTo(l, d), t.strokeStyle = h(f, .08), t.lineWidth = m * 2, t.stroke(), t.beginPath(), t.moveTo(n, r), t.lineTo(l, d), t.strokeStyle = h(f, .25), t.lineWidth = 1, t.stroke();
|
|
2039
2047
|
let g = (e * .005 + o * .33) % 1, _ = n + (l - n) * g, v = r + (d - r) * g;
|
|
2040
2048
|
y(t, _, v, 6, f, .4), t.beginPath(), t.arc(_, v, 2, 0, Math.PI * 2), t.fillStyle = h(f, .8), t.fill();
|
|
2041
2049
|
let b = (n + l) / 2, x = (r + d) / 2;
|
|
2042
2050
|
t.font = p.font, t.textAlign = "center", t.textBaseline = "middle", t.fillStyle = h(f, .85), t.fillText(String(a.count), b, x);
|
|
2043
2051
|
}), S.forEach((e, o) => {
|
|
2044
|
-
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, p = r + Math.sin(c) * i, m =
|
|
2052
|
+
let c = o / 3 * Math.PI * 2 - Math.PI / 2, l = n + Math.cos(c) * i, p = r + Math.sin(c) * i, m = Et[e.status] ?? u.blue, g = 10 + e.count / s * 18, v = d.current.get(e.status) ?? 0;
|
|
2045
2053
|
y(t, l, p, g * 2.5, m, .2 + v * .15);
|
|
2046
2054
|
let b = t.createRadialGradient(l, p - g * .2, 0, l, p, g);
|
|
2047
2055
|
b.addColorStop(0, h(m, .8 + v * .2)), b.addColorStop(1, h(m, .4 + v * .1)), t.beginPath(), t.arc(l, p, g, 0, Math.PI * 2), t.fillStyle = b, t.fill(), t.font = "bold " + f.font, t.textAlign = "center", t.textBaseline = "middle", t.fillStyle = h(u.t1, .9), t.fillText(e.status, l, p), T(_.current, e.status, l, p, g + 6, {
|
|
@@ -2058,19 +2066,19 @@ function wt({ segments: e = [], title: t, "data-testid": r }) {
|
|
|
2058
2066
|
label: "Total EW Status",
|
|
2059
2067
|
value: `${a} Early Warnings`,
|
|
2060
2068
|
color: u.t2
|
|
2061
|
-
}), x(t, Y,
|
|
2069
|
+
}), x(t, Y, X, e, .015), c = requestAnimationFrame(g);
|
|
2062
2070
|
};
|
|
2063
2071
|
return g(), () => cancelAnimationFrame(c);
|
|
2064
2072
|
}, [S, t]), S.length === 0 ? /* @__PURE__ */ s(I, {
|
|
2065
2073
|
width: Y,
|
|
2066
|
-
height:
|
|
2074
|
+
height: X,
|
|
2067
2075
|
"data-testid": r
|
|
2068
2076
|
}) : /* @__PURE__ */ c("div", {
|
|
2069
2077
|
"data-testid": r,
|
|
2070
2078
|
style: {
|
|
2071
2079
|
position: "relative",
|
|
2072
2080
|
width: Y,
|
|
2073
|
-
height:
|
|
2081
|
+
height: X
|
|
2074
2082
|
},
|
|
2075
2083
|
children: [/* @__PURE__ */ s("canvas", {
|
|
2076
2084
|
ref: o,
|
|
@@ -2078,21 +2086,21 @@ function wt({ segments: e = [], title: t, "data-testid": r }) {
|
|
|
2078
2086
|
"aria-label": t ?? "EW status arc visualization",
|
|
2079
2087
|
style: {
|
|
2080
2088
|
width: Y,
|
|
2081
|
-
height:
|
|
2089
|
+
height: X,
|
|
2082
2090
|
display: "block",
|
|
2083
2091
|
borderRadius: 8
|
|
2084
2092
|
}
|
|
2085
2093
|
}), /* @__PURE__ */ s(C, {
|
|
2086
2094
|
...g,
|
|
2087
2095
|
parentW: Y,
|
|
2088
|
-
parentH:
|
|
2096
|
+
parentH: X
|
|
2089
2097
|
})]
|
|
2090
2098
|
});
|
|
2091
2099
|
}
|
|
2092
2100
|
//#endregion
|
|
2093
2101
|
//#region src/components/trendChart/TrendChart.tsx
|
|
2094
|
-
var
|
|
2095
|
-
function
|
|
2102
|
+
var Ot = 280, Z = 96;
|
|
2103
|
+
function kt({ points: e = [], className: t, colors: r }) {
|
|
2096
2104
|
let o = a(null), d = a(/* @__PURE__ */ new Map()), f = a(0), p = i(() => e.map(([e, t]) => {
|
|
2097
2105
|
let n = String(t).match(/-?\d+(\.\d+)?/);
|
|
2098
2106
|
return {
|
|
@@ -2100,18 +2108,18 @@ function Et({ points: e = [], className: t, colors: r }) {
|
|
|
2100
2108
|
value: n ? Number(n[0]) : 0
|
|
2101
2109
|
};
|
|
2102
2110
|
}), [e]), { mouseRef: m, hoveredRef: g, tooltip: _, hitZonesRef: b } = w(o, {
|
|
2103
|
-
width:
|
|
2104
|
-
height:
|
|
2111
|
+
width: Ot,
|
|
2112
|
+
height: Z
|
|
2105
2113
|
});
|
|
2106
2114
|
return n(() => {
|
|
2107
2115
|
let e = o.current;
|
|
2108
2116
|
if (!e) return;
|
|
2109
|
-
let t = v(e,
|
|
2117
|
+
let t = v(e, Ot, Z);
|
|
2110
2118
|
f.current = 0;
|
|
2111
2119
|
let n = r?.line ?? u.blue, i = r?.point ?? u.blue, a = r?.axisLine ?? u.bd, s, c = () => {
|
|
2112
2120
|
f.current++;
|
|
2113
2121
|
let e = f.current;
|
|
2114
|
-
if (t.clearRect(0, 0,
|
|
2122
|
+
if (t.clearRect(0, 0, Ot, Z), p.length < 2) {
|
|
2115
2123
|
s = requestAnimationFrame(c);
|
|
2116
2124
|
return;
|
|
2117
2125
|
}
|
|
@@ -2120,9 +2128,9 @@ function Et({ points: e = [], className: t, colors: r }) {
|
|
|
2120
2128
|
right: 12,
|
|
2121
2129
|
top: 16,
|
|
2122
2130
|
bottom: 20
|
|
2123
|
-
}, o =
|
|
2124
|
-
if (N(d.current, g.current), b.current = [], t.strokeStyle = h(a, .3), t.lineWidth = .5, t.setLineDash([]), t.beginPath(), t.moveTo(r.left,
|
|
2125
|
-
t.fillText(e.label.replace("Day ", "D"), C(n),
|
|
2131
|
+
}, o = Ot - r.left - r.right, l = Z - r.top - r.bottom, _ = p.map((e) => e.value), v = Math.min(..._), x = Math.max(..._) - v || 1, C = (e) => r.left + e / (p.length - 1) * o, w = (e) => r.top + (1 - (e - v) / x) * l, E = 1 - (1 - Math.min(e / 48, 1)) ** 3, D = Math.max(2, Math.floor(E * p.length));
|
|
2132
|
+
if (N(d.current, g.current), b.current = [], t.strokeStyle = h(a, .3), t.lineWidth = .5, t.setLineDash([]), t.beginPath(), t.moveTo(r.left, Z - r.bottom), t.lineTo(Ot - r.right, Z - r.bottom), t.stroke(), t.font = "9px 'JetBrains Mono', monospace", t.fillStyle = h(u.t4, .9), t.textAlign = "center", p.forEach((e, n) => {
|
|
2133
|
+
t.fillText(e.label.replace("Day ", "D"), C(n), Z - 4);
|
|
2126
2134
|
}), m.current.over && g.current) {
|
|
2127
2135
|
let e = parseInt(g.current.split("-")[1]);
|
|
2128
2136
|
isNaN(e) || S(t, C(e), r.top, r.top + l);
|
|
@@ -2158,44 +2166,44 @@ function Et({ points: e = [], className: t, colors: r }) {
|
|
|
2158
2166
|
children: /* @__PURE__ */ c("div", {
|
|
2159
2167
|
style: {
|
|
2160
2168
|
position: "relative",
|
|
2161
|
-
width:
|
|
2162
|
-
height:
|
|
2169
|
+
width: Ot,
|
|
2170
|
+
height: Z
|
|
2163
2171
|
},
|
|
2164
2172
|
children: [/* @__PURE__ */ s("canvas", {
|
|
2165
2173
|
ref: o,
|
|
2166
2174
|
role: "img",
|
|
2167
2175
|
"aria-label": "trend chart",
|
|
2168
2176
|
style: {
|
|
2169
|
-
width:
|
|
2170
|
-
height:
|
|
2177
|
+
width: Ot,
|
|
2178
|
+
height: Z,
|
|
2171
2179
|
display: "block",
|
|
2172
2180
|
borderRadius: 8
|
|
2173
2181
|
}
|
|
2174
2182
|
}), /* @__PURE__ */ s(C, {
|
|
2175
2183
|
..._,
|
|
2176
|
-
parentW:
|
|
2177
|
-
parentH:
|
|
2184
|
+
parentW: Ot,
|
|
2185
|
+
parentH: Z
|
|
2178
2186
|
})]
|
|
2179
2187
|
})
|
|
2180
2188
|
});
|
|
2181
2189
|
}
|
|
2182
2190
|
//#endregion
|
|
2183
2191
|
//#region src/components/segmentedSplitBarChart/SegmentedSplitBarChart.tsx
|
|
2184
|
-
var
|
|
2185
|
-
function
|
|
2186
|
-
let r = a(null), l = a(/* @__PURE__ */ new Map()), d = a(0), [g, _] = o(!1), b = i(() => e.filter((e) => typeof e == "object" && !!e), [e]), x = i(() => g ? b : b.slice(0,
|
|
2187
|
-
width:
|
|
2192
|
+
var At = 680, jt = 8, Mt = 26, Nt = 14, Pt = 16, Ft = 32;
|
|
2193
|
+
function It({ items: e = [], "data-testid": t }) {
|
|
2194
|
+
let r = a(null), l = a(/* @__PURE__ */ new Map()), d = a(0), [g, _] = o(!1), b = i(() => e.filter((e) => typeof e == "object" && !!e), [e]), x = i(() => g ? b : b.slice(0, jt), [b, g]), S = Pt + Ft + x.length * (Mt + Nt) - Nt, { hoveredRef: T, tooltip: D, hitZonesRef: k } = w(r, {
|
|
2195
|
+
width: At,
|
|
2188
2196
|
height: S
|
|
2189
2197
|
});
|
|
2190
2198
|
return n(() => {
|
|
2191
2199
|
let e = r.current;
|
|
2192
2200
|
if (!e) return;
|
|
2193
|
-
let t = v(e,
|
|
2201
|
+
let t = v(e, At, S);
|
|
2194
2202
|
d.current = 0;
|
|
2195
|
-
let n =
|
|
2203
|
+
let n = Pt, i = Ft, a = Mt, o = Nt, s = At - 60 - 28, c = Math.max(...x.map((e) => (e.implemented ?? 0) + (e.unimplemented ?? 0))), g = x.length * (a + o) - o, _ = n + (S - n - i - g) / 2, b, C = () => {
|
|
2196
2204
|
d.current++;
|
|
2197
2205
|
let e = d.current;
|
|
2198
|
-
t.clearRect(0, 0,
|
|
2206
|
+
t.clearRect(0, 0, At, S);
|
|
2199
2207
|
let n = O(Math.min(e / 60, 1));
|
|
2200
2208
|
N(l.current, T.current), k.current = [], x.forEach((e, r) => {
|
|
2201
2209
|
let i = M(n, r, x.length, O), d = _ + r * (a + o), m = (e.implemented ?? 0) + (e.unimplemented ?? 0), g = (e.implemented ?? 0) / c * s * i, v = (e.unimplemented ?? 0) / c * s * i, b = `${e.id}-impl`, S = `${e.id}-un`, C = l.current.get(b) ?? 0, w = l.current.get(S) ?? 0;
|
|
@@ -2226,16 +2234,16 @@ function Nt({ items: e = [], "data-testid": t }) {
|
|
|
2226
2234
|
};
|
|
2227
2235
|
return C(), () => cancelAnimationFrame(b);
|
|
2228
2236
|
}, [x, S]), b.length === 0 ? /* @__PURE__ */ s(I, {
|
|
2229
|
-
width:
|
|
2237
|
+
width: At,
|
|
2230
2238
|
height: 160,
|
|
2231
2239
|
"data-testid": t
|
|
2232
2240
|
}) : /* @__PURE__ */ c("div", {
|
|
2233
2241
|
"data-testid": t,
|
|
2234
|
-
style: { width:
|
|
2242
|
+
style: { width: At },
|
|
2235
2243
|
children: [/* @__PURE__ */ c("div", {
|
|
2236
2244
|
style: {
|
|
2237
2245
|
position: "relative",
|
|
2238
|
-
width:
|
|
2246
|
+
width: At,
|
|
2239
2247
|
height: S
|
|
2240
2248
|
},
|
|
2241
2249
|
children: [/* @__PURE__ */ s("canvas", {
|
|
@@ -2243,16 +2251,16 @@ function Nt({ items: e = [], "data-testid": t }) {
|
|
|
2243
2251
|
role: "img",
|
|
2244
2252
|
"aria-label": "Implemented vs unimplemented variations per contractor — split bar",
|
|
2245
2253
|
style: {
|
|
2246
|
-
width:
|
|
2254
|
+
width: At,
|
|
2247
2255
|
height: S,
|
|
2248
2256
|
display: "block"
|
|
2249
2257
|
}
|
|
2250
2258
|
}), /* @__PURE__ */ s(C, {
|
|
2251
2259
|
...D,
|
|
2252
|
-
parentW:
|
|
2260
|
+
parentW: At,
|
|
2253
2261
|
parentH: S
|
|
2254
2262
|
})]
|
|
2255
|
-
}), b.length >
|
|
2263
|
+
}), b.length > jt && /* @__PURE__ */ s("div", {
|
|
2256
2264
|
style: { marginTop: 8 },
|
|
2257
2265
|
children: /* @__PURE__ */ s(ae, {
|
|
2258
2266
|
expanded: g,
|
|
@@ -2263,18 +2271,18 @@ function Nt({ items: e = [], "data-testid": t }) {
|
|
|
2263
2271
|
}
|
|
2264
2272
|
//#endregion
|
|
2265
2273
|
//#region src/components/weeklyFlow/WeeklyFlow.tsx
|
|
2266
|
-
var
|
|
2267
|
-
function
|
|
2274
|
+
var Lt = 800, Rt = 360;
|
|
2275
|
+
function zt({ items: e = [], "data-testid": t }) {
|
|
2268
2276
|
let r = a(null), i = a(/* @__PURE__ */ new Map()), o = a(0), { hoveredRef: l, tooltip: m, hitZonesRef: g } = w(r, {
|
|
2269
|
-
width:
|
|
2270
|
-
height:
|
|
2277
|
+
width: Lt,
|
|
2278
|
+
height: Rt
|
|
2271
2279
|
});
|
|
2272
2280
|
return n(() => {
|
|
2273
2281
|
let t = r.current;
|
|
2274
2282
|
if (!t) return;
|
|
2275
|
-
let n = v(t,
|
|
2283
|
+
let n = v(t, Lt, Rt);
|
|
2276
2284
|
o.current = 0;
|
|
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), m =
|
|
2285
|
+
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), m = Rt - 20 - 26, _ = m - 6 * (e.length - 1), b = 20, x = e.map((e, t) => {
|
|
2278
2286
|
let n = Math.max(24, (e.total ?? 0) / (c || 1) * _), r = {
|
|
2279
2287
|
x: 100 - 110 / 2,
|
|
2280
2288
|
y: b,
|
|
@@ -2302,16 +2310,16 @@ function It({ items: e = [], "data-testid": t }) {
|
|
|
2302
2310
|
}, j, P = () => {
|
|
2303
2311
|
o.current++;
|
|
2304
2312
|
let t = o.current;
|
|
2305
|
-
n.clearRect(0, 0,
|
|
2313
|
+
n.clearRect(0, 0, Lt, Rt), n.letterSpacing = f.letterSpacing;
|
|
2306
2314
|
let r = D(Math.min(t / 80, 1));
|
|
2307
2315
|
if (N(i.current, l.current), g.current = [], e.forEach((t, o) => {
|
|
2308
2316
|
let c = x[o], l = M(r, o, e.length, D), u = i.current.get(t.id) ?? 0;
|
|
2309
2317
|
if (l < .01) return;
|
|
2310
2318
|
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 * C), v = Math.max(2, (t.variation ?? 0) / s * w), y = O.y + e.slice(0, o).reduce((e, t) => e + (t.base ?? 0) / a * C, 0) + _ / 2, b = k.y + e.slice(0, o).reduce((e, t) => e + (t.variation ?? 0) / s * w, 0) + v / 2, S = u * .2 + .18;
|
|
2311
|
-
|
|
2319
|
+
Bt(n, c.x + 110, h, 420 - 110 / 2, y, _ * l, c.color, S), Bt(n, c.x + 110, g, 420 - 110 / 2, b, v * l, c.color, S * .75);
|
|
2312
2320
|
}), r > .3) {
|
|
2313
2321
|
let e = Math.min(1, (r - .3) / .7), t = A.y + a / c * m / 2, i = A.y + m - s / c * m / 2;
|
|
2314
|
-
|
|
2322
|
+
Bt(n, 475, O.cy, 720 - 110 / 2, t, C * e, u.blue, .25 * e), Bt(n, 475, k.cy, 720 - 110 / 2, i, w * e, u.amber, .22 * e);
|
|
2315
2323
|
}
|
|
2316
2324
|
if ([
|
|
2317
2325
|
"Contractors",
|
|
@@ -2323,7 +2331,7 @@ function It({ items: e = [], "data-testid": t }) {
|
|
|
2323
2331
|
420,
|
|
2324
2332
|
720
|
|
2325
2333
|
][t];
|
|
2326
|
-
n.font = f.font, n.fillStyle = f.color, n.textAlign = "center", n.fillText(e, r,
|
|
2334
|
+
n.font = f.font, n.fillStyle = f.color, n.textAlign = "center", n.fillText(e, r, Rt - 8);
|
|
2327
2335
|
}), e.forEach((t, a) => {
|
|
2328
2336
|
let o = x[a], s = M(r, a, e.length, D), c = i.current.get(t.id) ?? 0;
|
|
2329
2337
|
E(g.current, t.id, o.x, o.y, 110, o.h, {
|
|
@@ -2347,32 +2355,32 @@ function It({ items: e = [], "data-testid": t }) {
|
|
|
2347
2355
|
"data-testid": t,
|
|
2348
2356
|
style: {
|
|
2349
2357
|
position: "relative",
|
|
2350
|
-
width:
|
|
2351
|
-
height:
|
|
2358
|
+
width: Lt,
|
|
2359
|
+
height: Rt
|
|
2352
2360
|
},
|
|
2353
2361
|
children: [/* @__PURE__ */ s("canvas", {
|
|
2354
2362
|
ref: r,
|
|
2355
2363
|
role: "img",
|
|
2356
2364
|
"aria-label": "Weekly report flow — base value and variations per contractor flowing to total commitment",
|
|
2357
2365
|
style: {
|
|
2358
|
-
width:
|
|
2359
|
-
height:
|
|
2366
|
+
width: Lt,
|
|
2367
|
+
height: Rt,
|
|
2360
2368
|
display: "block"
|
|
2361
2369
|
}
|
|
2362
2370
|
}), /* @__PURE__ */ s(C, {
|
|
2363
2371
|
...m,
|
|
2364
|
-
parentW:
|
|
2365
|
-
parentH:
|
|
2372
|
+
parentW: Lt,
|
|
2373
|
+
parentH: Rt
|
|
2366
2374
|
})]
|
|
2367
2375
|
});
|
|
2368
2376
|
}
|
|
2369
|
-
function
|
|
2377
|
+
function Bt(e, t, n, r, i, a, o, s) {
|
|
2370
2378
|
let c = (t + r) / 2;
|
|
2371
2379
|
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 = h(o, s), e.fill();
|
|
2372
2380
|
}
|
|
2373
2381
|
//#endregion
|
|
2374
2382
|
//#region src/components/visualizationRenderer/VisualizationRenderer.tsx
|
|
2375
|
-
function
|
|
2383
|
+
function Vt({ config: e, className: t }) {
|
|
2376
2384
|
return e.type === "line" ? /* @__PURE__ */ s(Ie, {
|
|
2377
2385
|
rows: e.rows,
|
|
2378
2386
|
className: t
|
|
@@ -2396,62 +2404,62 @@ function Rt({ config: e, className: t }) {
|
|
|
2396
2404
|
}) : e.type === "flow" ? /* @__PURE__ */ s(it, {
|
|
2397
2405
|
selectedEntity: e.selectedEntity,
|
|
2398
2406
|
className: t
|
|
2399
|
-
}) : e.type === "trend" ? /* @__PURE__ */ s(
|
|
2407
|
+
}) : e.type === "trend" ? /* @__PURE__ */ s(kt, {
|
|
2400
2408
|
points: e.points,
|
|
2401
2409
|
className: t
|
|
2402
2410
|
}) : e.type === "mini-bars" ? /* @__PURE__ */ s(ze, {
|
|
2403
2411
|
rows: e.rows,
|
|
2404
2412
|
className: t
|
|
2405
|
-
}) : e.type === "stacked-horizontal-bar-chart" ? /* @__PURE__ */ s(Ae, { data: e.data }) : e.type === "multi-metric-constellation-chart" ? /* @__PURE__ */ s(Ce, { items: e.items }) : e.type === "progress-race-chart" ? /* @__PURE__ */ s(fe, { items: e.items }) : e.type === "hub-and-spoke-radial-chart" ? /* @__PURE__ */ s(
|
|
2413
|
+
}) : e.type === "stacked-horizontal-bar-chart" ? /* @__PURE__ */ s(Ae, { data: e.data }) : e.type === "multi-metric-constellation-chart" ? /* @__PURE__ */ s(Ce, { items: e.items }) : e.type === "progress-race-chart" ? /* @__PURE__ */ s(fe, { items: e.items }) : e.type === "hub-and-spoke-radial-chart" ? /* @__PURE__ */ s(Dt, {
|
|
2406
2414
|
segments: e.segments,
|
|
2407
2415
|
title: e.title
|
|
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(
|
|
2416
|
+
}) : 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(Tt, { severities: e.severities }) : e.type === "radial-fan-tree-chart" ? /* @__PURE__ */ s(We, {
|
|
2409
2417
|
total: e.total,
|
|
2410
2418
|
items: e.items
|
|
2411
2419
|
}) : e.type === "semi-circular-gauge-chart" ? /* @__PURE__ */ s(he, {
|
|
2412
2420
|
value: e.value,
|
|
2413
2421
|
confirmed: e.confirmed,
|
|
2414
2422
|
total: e.total
|
|
2415
|
-
}) : e.type === "segmented-split-bar-chart" ? /* @__PURE__ */ s(
|
|
2423
|
+
}) : e.type === "segmented-split-bar-chart" ? /* @__PURE__ */ s(It, { items: e.items }) : e.type === "balance-scale-chart" ? /* @__PURE__ */ s(ct, {
|
|
2416
2424
|
left: e.left,
|
|
2417
2425
|
right: e.right
|
|
2418
|
-
}) : e.type === "area-line-chart" ? /* @__PURE__ */ s(ut, { points: e.points }) : e.type === "trend-view" ? /* @__PURE__ */ s(
|
|
2426
|
+
}) : e.type === "area-line-chart" ? /* @__PURE__ */ s(ut, { points: e.points }) : e.type === "trend-view" ? /* @__PURE__ */ s(xt, { points: e.points }) : e.type === "weekly-flow" ? /* @__PURE__ */ s(zt, { items: e.items }) : /* @__PURE__ */ s("div", {
|
|
2419
2427
|
className: "viz-empty",
|
|
2420
2428
|
children: "Visualization unavailable"
|
|
2421
2429
|
});
|
|
2422
2430
|
}
|
|
2423
2431
|
//#endregion
|
|
2424
2432
|
//#region src/utils/mounts.tsx
|
|
2425
|
-
var
|
|
2426
|
-
function
|
|
2433
|
+
var Ht = [];
|
|
2434
|
+
function Ut(e) {
|
|
2427
2435
|
try {
|
|
2428
2436
|
return JSON.parse(decodeURIComponent(e));
|
|
2429
2437
|
} catch {
|
|
2430
2438
|
return null;
|
|
2431
2439
|
}
|
|
2432
2440
|
}
|
|
2433
|
-
function
|
|
2434
|
-
for (;
|
|
2435
|
-
let e =
|
|
2441
|
+
function Wt() {
|
|
2442
|
+
for (; Ht.length;) {
|
|
2443
|
+
let e = Ht.pop();
|
|
2436
2444
|
e && e.unmount();
|
|
2437
2445
|
}
|
|
2438
2446
|
}
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2447
|
+
function Gt() {
|
|
2448
|
+
Wt(), document.querySelectorAll("[data-d3-viz]").forEach((t) => {
|
|
2441
2449
|
let n = t.dataset.d3Viz;
|
|
2442
2450
|
if (!n) return;
|
|
2443
|
-
let r =
|
|
2451
|
+
let r = Ut(n);
|
|
2444
2452
|
if (!r) return;
|
|
2445
2453
|
let i = e(t);
|
|
2446
|
-
|
|
2454
|
+
Ht.push(i), i.render(/* @__PURE__ */ s(Vt, { config: r }));
|
|
2447
2455
|
});
|
|
2448
2456
|
}
|
|
2449
|
-
function
|
|
2457
|
+
function Kt(e) {
|
|
2450
2458
|
return encodeURIComponent(JSON.stringify(e));
|
|
2451
2459
|
}
|
|
2452
2460
|
//#endregion
|
|
2453
2461
|
//#region src/components/donutChart/DonutChart.tsx
|
|
2454
|
-
function
|
|
2462
|
+
function qt({ rows: e = [], className: t, colors: n }) {
|
|
2455
2463
|
return /* @__PURE__ */ s(Je, {
|
|
2456
2464
|
rows: e,
|
|
2457
2465
|
variant: "donut",
|
|
@@ -2461,7 +2469,7 @@ function Wt({ rows: e = [], className: t, colors: n }) {
|
|
|
2461
2469
|
}
|
|
2462
2470
|
//#endregion
|
|
2463
2471
|
//#region src/components/keyHighlights/KeyHighlights.tsx
|
|
2464
|
-
var
|
|
2472
|
+
var Q = {
|
|
2465
2473
|
bg: "transparent",
|
|
2466
2474
|
border: "transparent",
|
|
2467
2475
|
t1: u.t1,
|
|
@@ -2471,20 +2479,20 @@ var Z = {
|
|
|
2471
2479
|
red: u.red,
|
|
2472
2480
|
amber: u.amber,
|
|
2473
2481
|
green: u.green
|
|
2474
|
-
},
|
|
2482
|
+
}, $ = "'Satoshi Variable', 'DM Sans', sans-serif", Jt = {
|
|
2475
2483
|
color: "#F7F7F7",
|
|
2476
|
-
fontFamily:
|
|
2484
|
+
fontFamily: $,
|
|
2477
2485
|
fontSize: 24,
|
|
2478
2486
|
fontWeight: 500,
|
|
2479
2487
|
lineHeight: "32px"
|
|
2480
|
-
},
|
|
2488
|
+
}, Yt = {
|
|
2481
2489
|
color: "#C2C2C2",
|
|
2482
|
-
fontFamily:
|
|
2490
|
+
fontFamily: $,
|
|
2483
2491
|
fontSize: 18,
|
|
2484
2492
|
fontWeight: 400,
|
|
2485
2493
|
lineHeight: "20px"
|
|
2486
2494
|
};
|
|
2487
|
-
function
|
|
2495
|
+
function Xt({ chips: e = [] }) {
|
|
2488
2496
|
return /* @__PURE__ */ s("div", {
|
|
2489
2497
|
style: {
|
|
2490
2498
|
display: "flex",
|
|
@@ -2499,20 +2507,20 @@ function Kt({ chips: e = [] }) {
|
|
|
2499
2507
|
alignItems: "baseline",
|
|
2500
2508
|
gap: 8,
|
|
2501
2509
|
padding: "8px 12px",
|
|
2502
|
-
background:
|
|
2503
|
-
border: `1px solid ${
|
|
2510
|
+
background: Q.bg,
|
|
2511
|
+
border: `1px solid ${Q.border}`,
|
|
2504
2512
|
borderRadius: 5,
|
|
2505
2513
|
boxSizing: "border-box"
|
|
2506
2514
|
},
|
|
2507
2515
|
children: [/* @__PURE__ */ s("span", {
|
|
2508
2516
|
style: {
|
|
2509
|
-
...
|
|
2510
|
-
color: e.color ??
|
|
2517
|
+
...Jt,
|
|
2518
|
+
color: e.color ?? Q.t1
|
|
2511
2519
|
},
|
|
2512
2520
|
children: e.value
|
|
2513
2521
|
}), /* @__PURE__ */ s("span", {
|
|
2514
2522
|
style: {
|
|
2515
|
-
|
|
2523
|
+
...Yt,
|
|
2516
2524
|
flex: 1
|
|
2517
2525
|
},
|
|
2518
2526
|
children: e.label
|
|
@@ -2520,7 +2528,7 @@ function Kt({ chips: e = [] }) {
|
|
|
2520
2528
|
}, t))
|
|
2521
2529
|
});
|
|
2522
2530
|
}
|
|
2523
|
-
function
|
|
2531
|
+
function Zt({ items: e = [] }) {
|
|
2524
2532
|
return /* @__PURE__ */ s("div", {
|
|
2525
2533
|
style: {
|
|
2526
2534
|
display: "flex",
|
|
@@ -2537,24 +2545,24 @@ function qt({ items: e = [] }) {
|
|
|
2537
2545
|
padding: 24,
|
|
2538
2546
|
gap: 8,
|
|
2539
2547
|
flexShrink: 0,
|
|
2540
|
-
border: `1px solid ${
|
|
2541
|
-
background:
|
|
2548
|
+
border: `1px solid ${Q.border}`,
|
|
2549
|
+
background: Q.bg,
|
|
2542
2550
|
boxSizing: "border-box"
|
|
2543
2551
|
},
|
|
2544
2552
|
children: [/* @__PURE__ */ s("div", {
|
|
2545
2553
|
style: {
|
|
2546
|
-
...
|
|
2547
|
-
color: e.color ??
|
|
2554
|
+
...Jt,
|
|
2555
|
+
color: e.color ?? Q.t1
|
|
2548
2556
|
},
|
|
2549
2557
|
children: e.value
|
|
2550
2558
|
}), /* @__PURE__ */ s("div", {
|
|
2551
|
-
style: {
|
|
2559
|
+
style: { ...Yt },
|
|
2552
2560
|
children: e.label
|
|
2553
2561
|
})]
|
|
2554
2562
|
}, t))
|
|
2555
2563
|
});
|
|
2556
2564
|
}
|
|
2557
|
-
function
|
|
2565
|
+
function Qt({ items: e = [] }) {
|
|
2558
2566
|
return /* @__PURE__ */ s("div", {
|
|
2559
2567
|
style: {
|
|
2560
2568
|
display: "flex",
|
|
@@ -2567,28 +2575,28 @@ function Jt({ items: e = [] }) {
|
|
|
2567
2575
|
alignItems: "center",
|
|
2568
2576
|
gap: 12,
|
|
2569
2577
|
padding: "9px 14px",
|
|
2570
|
-
background:
|
|
2571
|
-
border: `1px solid ${
|
|
2578
|
+
background: Q.bg,
|
|
2579
|
+
border: `1px solid ${Q.border}`
|
|
2572
2580
|
},
|
|
2573
2581
|
children: [
|
|
2574
2582
|
/* @__PURE__ */ s("span", {
|
|
2575
2583
|
style: {
|
|
2576
2584
|
fontSize: 18,
|
|
2577
2585
|
fontWeight: 500,
|
|
2578
|
-
color: e.color ??
|
|
2579
|
-
background: (e.color ??
|
|
2586
|
+
color: e.color ?? Q.t2,
|
|
2587
|
+
background: (e.color ?? Q.t2) + "22",
|
|
2580
2588
|
padding: "2px 8px",
|
|
2581
2589
|
borderRadius: 4,
|
|
2582
|
-
fontFamily:
|
|
2590
|
+
fontFamily: $,
|
|
2583
2591
|
flexShrink: 0
|
|
2584
2592
|
},
|
|
2585
2593
|
children: e.name
|
|
2586
2594
|
}),
|
|
2587
2595
|
/* @__PURE__ */ s("span", {
|
|
2588
2596
|
style: {
|
|
2589
|
-
...
|
|
2597
|
+
...Jt,
|
|
2590
2598
|
fontSize: 18,
|
|
2591
|
-
color: e.color ??
|
|
2599
|
+
color: e.color ?? Q.t1,
|
|
2592
2600
|
minWidth: 70,
|
|
2593
2601
|
flexShrink: 0
|
|
2594
2602
|
},
|
|
@@ -2596,7 +2604,7 @@ function Jt({ items: e = [] }) {
|
|
|
2596
2604
|
}),
|
|
2597
2605
|
/* @__PURE__ */ s("span", {
|
|
2598
2606
|
style: {
|
|
2599
|
-
|
|
2607
|
+
...Yt,
|
|
2600
2608
|
flex: 1
|
|
2601
2609
|
},
|
|
2602
2610
|
children: e.kpiLabel
|
|
@@ -2605,7 +2613,7 @@ function Jt({ items: e = [] }) {
|
|
|
2605
2613
|
}, t))
|
|
2606
2614
|
});
|
|
2607
2615
|
}
|
|
2608
|
-
function
|
|
2616
|
+
function $t({ items: e = [] }) {
|
|
2609
2617
|
return /* @__PURE__ */ s("div", {
|
|
2610
2618
|
style: {
|
|
2611
2619
|
display: "flex",
|
|
@@ -2622,28 +2630,28 @@ function Yt({ items: e = [] }) {
|
|
|
2622
2630
|
padding: 24,
|
|
2623
2631
|
gap: 8,
|
|
2624
2632
|
flexShrink: 0,
|
|
2625
|
-
background:
|
|
2633
|
+
background: Q.bg,
|
|
2626
2634
|
boxSizing: "border-box"
|
|
2627
2635
|
},
|
|
2628
2636
|
children: [/* @__PURE__ */ s("div", {
|
|
2629
2637
|
style: {
|
|
2630
|
-
...
|
|
2631
|
-
color: e.color ??
|
|
2638
|
+
...Jt,
|
|
2639
|
+
color: e.color ?? Q.t1
|
|
2632
2640
|
},
|
|
2633
2641
|
children: e.value
|
|
2634
2642
|
}), /* @__PURE__ */ s("div", {
|
|
2635
|
-
style: {
|
|
2643
|
+
style: { ...Yt },
|
|
2636
2644
|
children: e.label
|
|
2637
2645
|
})]
|
|
2638
2646
|
}, t))
|
|
2639
2647
|
});
|
|
2640
2648
|
}
|
|
2641
|
-
var
|
|
2642
|
-
red:
|
|
2643
|
-
amber:
|
|
2644
|
-
green:
|
|
2649
|
+
var en = {
|
|
2650
|
+
red: Q.red,
|
|
2651
|
+
amber: Q.amber,
|
|
2652
|
+
green: Q.green
|
|
2645
2653
|
};
|
|
2646
|
-
function
|
|
2654
|
+
function tn({ items: e = [] }) {
|
|
2647
2655
|
return /* @__PURE__ */ s("div", {
|
|
2648
2656
|
style: {
|
|
2649
2657
|
display: "flex",
|
|
@@ -2651,15 +2659,15 @@ function Zt({ items: e = [] }) {
|
|
|
2651
2659
|
gap: 5
|
|
2652
2660
|
},
|
|
2653
2661
|
children: e.map((e, t) => {
|
|
2654
|
-
let n =
|
|
2662
|
+
let n = en[e.severity];
|
|
2655
2663
|
return /* @__PURE__ */ c("div", {
|
|
2656
2664
|
style: {
|
|
2657
2665
|
display: "flex",
|
|
2658
2666
|
alignItems: "flex-start",
|
|
2659
2667
|
gap: 10,
|
|
2660
2668
|
padding: "10px 14px",
|
|
2661
|
-
background:
|
|
2662
|
-
border: `1px solid ${
|
|
2669
|
+
background: Q.bg,
|
|
2670
|
+
border: `1px solid ${Q.border}`
|
|
2663
2671
|
},
|
|
2664
2672
|
children: [/* @__PURE__ */ s("span", { style: {
|
|
2665
2673
|
width: 7,
|
|
@@ -2669,14 +2677,14 @@ function Zt({ items: e = [] }) {
|
|
|
2669
2677
|
flexShrink: 0,
|
|
2670
2678
|
marginTop: 5
|
|
2671
2679
|
} }), /* @__PURE__ */ s("span", {
|
|
2672
|
-
style: {
|
|
2680
|
+
style: { ...Yt },
|
|
2673
2681
|
children: e.text
|
|
2674
2682
|
})]
|
|
2675
2683
|
}, t);
|
|
2676
2684
|
})
|
|
2677
2685
|
});
|
|
2678
2686
|
}
|
|
2679
|
-
function
|
|
2687
|
+
function nn({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
2680
2688
|
let a = t - e;
|
|
2681
2689
|
return /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
2682
2690
|
style: {
|
|
@@ -2700,8 +2708,8 @@ function Qt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2700
2708
|
top: 43,
|
|
2701
2709
|
left: 0,
|
|
2702
2710
|
fontSize: 16,
|
|
2703
|
-
color:
|
|
2704
|
-
fontFamily:
|
|
2711
|
+
color: Q.t4,
|
|
2712
|
+
fontFamily: $
|
|
2705
2713
|
},
|
|
2706
2714
|
children: [e, n]
|
|
2707
2715
|
}),
|
|
@@ -2711,8 +2719,8 @@ function Qt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2711
2719
|
top: 43,
|
|
2712
2720
|
right: 0,
|
|
2713
2721
|
fontSize: 16,
|
|
2714
|
-
color:
|
|
2715
|
-
fontFamily:
|
|
2722
|
+
color: Q.t4,
|
|
2723
|
+
fontFamily: $
|
|
2716
2724
|
},
|
|
2717
2725
|
children: [t, n]
|
|
2718
2726
|
}),
|
|
@@ -2735,7 +2743,7 @@ function Qt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2735
2743
|
style: {
|
|
2736
2744
|
fontSize: 18,
|
|
2737
2745
|
color: o,
|
|
2738
|
-
fontFamily:
|
|
2746
|
+
fontFamily: $,
|
|
2739
2747
|
whiteSpace: "nowrap"
|
|
2740
2748
|
},
|
|
2741
2749
|
children: t.name
|
|
@@ -2744,7 +2752,7 @@ function Qt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2744
2752
|
fontSize: 18,
|
|
2745
2753
|
fontWeight: 500,
|
|
2746
2754
|
color: o,
|
|
2747
|
-
fontFamily:
|
|
2755
|
+
fontFamily: $,
|
|
2748
2756
|
whiteSpace: "nowrap"
|
|
2749
2757
|
},
|
|
2750
2758
|
children: [t.val, n]
|
|
@@ -2767,7 +2775,7 @@ function Qt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2767
2775
|
style: {
|
|
2768
2776
|
fontSize: 18,
|
|
2769
2777
|
color: o,
|
|
2770
|
-
fontFamily:
|
|
2778
|
+
fontFamily: $,
|
|
2771
2779
|
whiteSpace: "nowrap"
|
|
2772
2780
|
},
|
|
2773
2781
|
children: t.name
|
|
@@ -2776,7 +2784,7 @@ function Qt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2776
2784
|
fontSize: 18,
|
|
2777
2785
|
fontWeight: 500,
|
|
2778
2786
|
color: o,
|
|
2779
|
-
fontFamily:
|
|
2787
|
+
fontFamily: $,
|
|
2780
2788
|
whiteSpace: "nowrap"
|
|
2781
2789
|
},
|
|
2782
2790
|
children: [t.val, n]
|
|
@@ -2786,9 +2794,9 @@ function Qt({ min: e, max: t, unit: n, dots: r = [], chips: i = [] }) {
|
|
|
2786
2794
|
}, r);
|
|
2787
2795
|
})
|
|
2788
2796
|
]
|
|
2789
|
-
}), i && i.length > 0 && /* @__PURE__ */ s(
|
|
2797
|
+
}), i && i.length > 0 && /* @__PURE__ */ s(Xt, { chips: i })] });
|
|
2790
2798
|
}
|
|
2791
|
-
function
|
|
2799
|
+
function rn({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i, rightLabel: a, rightValue: o, rightColor: l, chips: d }) {
|
|
2792
2800
|
let f = r ?? u.blue, p = l ?? u.blue;
|
|
2793
2801
|
return /* @__PURE__ */ c("div", { children: [
|
|
2794
2802
|
/* @__PURE__ */ c("div", {
|
|
@@ -2814,7 +2822,7 @@ function $t({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2814
2822
|
fontSize: 18,
|
|
2815
2823
|
fontWeight: 500,
|
|
2816
2824
|
color: f,
|
|
2817
|
-
fontFamily:
|
|
2825
|
+
fontFamily: $
|
|
2818
2826
|
},
|
|
2819
2827
|
children: n
|
|
2820
2828
|
})
|
|
@@ -2837,7 +2845,7 @@ function $t({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2837
2845
|
fontSize: 18,
|
|
2838
2846
|
fontWeight: 500,
|
|
2839
2847
|
color: p,
|
|
2840
|
-
fontFamily:
|
|
2848
|
+
fontFamily: $
|
|
2841
2849
|
},
|
|
2842
2850
|
children: o
|
|
2843
2851
|
})
|
|
@@ -2855,7 +2863,7 @@ function $t({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2855
2863
|
style: {
|
|
2856
2864
|
fontSize: 18,
|
|
2857
2865
|
color: f,
|
|
2858
|
-
fontFamily:
|
|
2866
|
+
fontFamily: $
|
|
2859
2867
|
},
|
|
2860
2868
|
children: [
|
|
2861
2869
|
e,
|
|
@@ -2872,7 +2880,7 @@ function $t({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2872
2880
|
style: {
|
|
2873
2881
|
fontSize: 18,
|
|
2874
2882
|
color: p,
|
|
2875
|
-
fontFamily:
|
|
2883
|
+
fontFamily: $
|
|
2876
2884
|
},
|
|
2877
2885
|
children: [
|
|
2878
2886
|
i,
|
|
@@ -2882,10 +2890,10 @@ function $t({ leftPct: e, leftLabel: t, leftValue: n, leftColor: r, rightPct: i,
|
|
|
2882
2890
|
})
|
|
2883
2891
|
})]
|
|
2884
2892
|
}),
|
|
2885
|
-
d && d.length > 0 && /* @__PURE__ */ s(
|
|
2893
|
+
d && d.length > 0 && /* @__PURE__ */ s(Xt, { chips: d })
|
|
2886
2894
|
] });
|
|
2887
2895
|
}
|
|
2888
|
-
function
|
|
2896
|
+
function an({ pct: e, label: t, color: n, chips: r }) {
|
|
2889
2897
|
let i = n ?? u.blue, a = 2 * Math.PI * 30, o = a * (1 - e / 100);
|
|
2890
2898
|
return /* @__PURE__ */ c("div", {
|
|
2891
2899
|
style: {
|
|
@@ -2935,7 +2943,7 @@ function en({ pct: e, label: t, color: n, chips: r }) {
|
|
|
2935
2943
|
fontSize: 18,
|
|
2936
2944
|
fontWeight: 500,
|
|
2937
2945
|
color: i,
|
|
2938
|
-
fontFamily:
|
|
2946
|
+
fontFamily: $
|
|
2939
2947
|
},
|
|
2940
2948
|
children: [e, "%"]
|
|
2941
2949
|
})
|
|
@@ -2944,7 +2952,7 @@ function en({ pct: e, label: t, color: n, chips: r }) {
|
|
|
2944
2952
|
style: { flex: 1 },
|
|
2945
2953
|
children: [/* @__PURE__ */ s("div", {
|
|
2946
2954
|
style: {
|
|
2947
|
-
|
|
2955
|
+
...Yt,
|
|
2948
2956
|
marginBottom: 10
|
|
2949
2957
|
},
|
|
2950
2958
|
children: t
|
|
@@ -2960,18 +2968,18 @@ function en({ pct: e, label: t, color: n, chips: r }) {
|
|
|
2960
2968
|
alignItems: "baseline",
|
|
2961
2969
|
gap: 8,
|
|
2962
2970
|
padding: "7px 10px",
|
|
2963
|
-
background:
|
|
2964
|
-
border: `1px solid ${
|
|
2971
|
+
background: Q.bg,
|
|
2972
|
+
border: `1px solid ${Q.border}`,
|
|
2965
2973
|
borderRadius: 5
|
|
2966
2974
|
},
|
|
2967
2975
|
children: [/* @__PURE__ */ s("span", {
|
|
2968
2976
|
style: {
|
|
2969
|
-
...
|
|
2970
|
-
color: e.color ??
|
|
2977
|
+
...Jt,
|
|
2978
|
+
color: e.color ?? Q.t1
|
|
2971
2979
|
},
|
|
2972
2980
|
children: e.value
|
|
2973
2981
|
}), /* @__PURE__ */ s("span", {
|
|
2974
|
-
style: {
|
|
2982
|
+
style: { ...Yt },
|
|
2975
2983
|
children: e.label
|
|
2976
2984
|
})]
|
|
2977
2985
|
}, t))
|
|
@@ -2979,16 +2987,16 @@ function en({ pct: e, label: t, color: n, chips: r }) {
|
|
|
2979
2987
|
})]
|
|
2980
2988
|
});
|
|
2981
2989
|
}
|
|
2982
|
-
var
|
|
2990
|
+
var on = {
|
|
2983
2991
|
green: "#34D39918",
|
|
2984
2992
|
amber: "#FBBF2418",
|
|
2985
2993
|
red: "#F0606018"
|
|
2986
|
-
},
|
|
2994
|
+
}, sn = {
|
|
2987
2995
|
green: "#34D399",
|
|
2988
2996
|
amber: "#FBBF24",
|
|
2989
2997
|
red: "#F06060"
|
|
2990
2998
|
};
|
|
2991
|
-
function
|
|
2999
|
+
function cn({ items: e = [] }) {
|
|
2992
3000
|
return /* @__PURE__ */ s("div", {
|
|
2993
3001
|
style: {
|
|
2994
3002
|
display: "flex",
|
|
@@ -3001,19 +3009,19 @@ function rn({ items: e = [] }) {
|
|
|
3001
3009
|
alignItems: "center",
|
|
3002
3010
|
gap: 10,
|
|
3003
3011
|
padding: "8px 12px",
|
|
3004
|
-
background:
|
|
3005
|
-
border: `1px solid ${
|
|
3012
|
+
background: Q.bg,
|
|
3013
|
+
border: `1px solid ${Q.border}`
|
|
3006
3014
|
},
|
|
3007
3015
|
children: [
|
|
3008
3016
|
/* @__PURE__ */ s("span", {
|
|
3009
3017
|
style: {
|
|
3010
3018
|
fontSize: 18,
|
|
3011
3019
|
fontWeight: 500,
|
|
3012
|
-
color: e.color ??
|
|
3013
|
-
background: (e.color ??
|
|
3020
|
+
color: e.color ?? Q.t2,
|
|
3021
|
+
background: (e.color ?? Q.t2) + "1A",
|
|
3014
3022
|
padding: "2px 7px",
|
|
3015
3023
|
borderRadius: 4,
|
|
3016
|
-
fontFamily:
|
|
3024
|
+
fontFamily: $,
|
|
3017
3025
|
flexShrink: 0,
|
|
3018
3026
|
minWidth: 62,
|
|
3019
3027
|
textAlign: "center"
|
|
@@ -3031,7 +3039,7 @@ function rn({ items: e = [] }) {
|
|
|
3031
3039
|
children: /* @__PURE__ */ s("div", { style: {
|
|
3032
3040
|
height: "100%",
|
|
3033
3041
|
width: `${e.pct}%`,
|
|
3034
|
-
background: e.color ??
|
|
3042
|
+
background: e.color ?? Q.t2,
|
|
3035
3043
|
borderRadius: 2,
|
|
3036
3044
|
opacity: .75
|
|
3037
3045
|
} })
|
|
@@ -3040,8 +3048,8 @@ function rn({ items: e = [] }) {
|
|
|
3040
3048
|
style: {
|
|
3041
3049
|
fontSize: 18,
|
|
3042
3050
|
fontWeight: 500,
|
|
3043
|
-
color: e.color ??
|
|
3044
|
-
fontFamily:
|
|
3051
|
+
color: e.color ?? Q.t1,
|
|
3052
|
+
fontFamily: $,
|
|
3045
3053
|
flexShrink: 0,
|
|
3046
3054
|
minWidth: 52,
|
|
3047
3055
|
textAlign: "right"
|
|
@@ -3052,11 +3060,11 @@ function rn({ items: e = [] }) {
|
|
|
3052
3060
|
style: {
|
|
3053
3061
|
fontSize: 18,
|
|
3054
3062
|
fontWeight: 500,
|
|
3055
|
-
color:
|
|
3056
|
-
background:
|
|
3063
|
+
color: sn[e.badgeSeverity],
|
|
3064
|
+
background: on[e.badgeSeverity],
|
|
3057
3065
|
padding: "2px 7px",
|
|
3058
3066
|
borderRadius: 4,
|
|
3059
|
-
fontFamily:
|
|
3067
|
+
fontFamily: $,
|
|
3060
3068
|
flexShrink: 0,
|
|
3061
3069
|
minWidth: 72,
|
|
3062
3070
|
textAlign: "center"
|
|
@@ -3065,7 +3073,7 @@ function rn({ items: e = [] }) {
|
|
|
3065
3073
|
}),
|
|
3066
3074
|
e.sublabel && /* @__PURE__ */ s("span", {
|
|
3067
3075
|
style: {
|
|
3068
|
-
|
|
3076
|
+
...Yt,
|
|
3069
3077
|
flexShrink: 0,
|
|
3070
3078
|
minWidth: 80,
|
|
3071
3079
|
textAlign: "right"
|
|
@@ -3076,12 +3084,12 @@ function rn({ items: e = [] }) {
|
|
|
3076
3084
|
}, t))
|
|
3077
3085
|
});
|
|
3078
3086
|
}
|
|
3079
|
-
var
|
|
3080
|
-
red:
|
|
3081
|
-
amber:
|
|
3082
|
-
green:
|
|
3087
|
+
var ln = {
|
|
3088
|
+
red: Q.red,
|
|
3089
|
+
amber: Q.amber,
|
|
3090
|
+
green: Q.green
|
|
3083
3091
|
};
|
|
3084
|
-
function
|
|
3092
|
+
function un({ items: e = [] }) {
|
|
3085
3093
|
return /* @__PURE__ */ s("div", {
|
|
3086
3094
|
style: {
|
|
3087
3095
|
display: "flex",
|
|
@@ -3089,7 +3097,7 @@ function on({ items: e = [] }) {
|
|
|
3089
3097
|
gap: 5
|
|
3090
3098
|
},
|
|
3091
3099
|
children: e.map((e, t) => {
|
|
3092
|
-
let n =
|
|
3100
|
+
let n = ln[e.severity];
|
|
3093
3101
|
return /* @__PURE__ */ c("div", {
|
|
3094
3102
|
style: {
|
|
3095
3103
|
display: "flex",
|
|
@@ -3111,7 +3119,7 @@ function on({ items: e = [] }) {
|
|
|
3111
3119
|
/* @__PURE__ */ s("span", {
|
|
3112
3120
|
style: {
|
|
3113
3121
|
flex: 1,
|
|
3114
|
-
|
|
3122
|
+
...Yt
|
|
3115
3123
|
},
|
|
3116
3124
|
children: e.text
|
|
3117
3125
|
}),
|
|
@@ -3123,14 +3131,14 @@ function on({ items: e = [] }) {
|
|
|
3123
3131
|
background: n + "20",
|
|
3124
3132
|
padding: "2px 7px",
|
|
3125
3133
|
borderRadius: 4,
|
|
3126
|
-
fontFamily:
|
|
3134
|
+
fontFamily: $,
|
|
3127
3135
|
flexShrink: 0
|
|
3128
3136
|
},
|
|
3129
3137
|
children: e.tag
|
|
3130
3138
|
}),
|
|
3131
3139
|
/* @__PURE__ */ s("span", {
|
|
3132
3140
|
style: {
|
|
3133
|
-
|
|
3141
|
+
...Yt,
|
|
3134
3142
|
flexShrink: 0,
|
|
3135
3143
|
marginTop: 1
|
|
3136
3144
|
},
|
|
@@ -3141,7 +3149,7 @@ function on({ items: e = [] }) {
|
|
|
3141
3149
|
})
|
|
3142
3150
|
});
|
|
3143
3151
|
}
|
|
3144
|
-
function
|
|
3152
|
+
function dn({ columns: e = [], rows: t = [] }) {
|
|
3145
3153
|
return /* @__PURE__ */ c("div", {
|
|
3146
3154
|
style: {
|
|
3147
3155
|
display: "flex",
|
|
@@ -3154,15 +3162,15 @@ function sn({ columns: e = [], rows: t = [] }) {
|
|
|
3154
3162
|
alignItems: "center",
|
|
3155
3163
|
gap: 10,
|
|
3156
3164
|
padding: "0 12px 6px",
|
|
3157
|
-
borderBottom: `1px solid ${
|
|
3165
|
+
borderBottom: `1px solid ${Q.border}`
|
|
3158
3166
|
},
|
|
3159
3167
|
children: [/* @__PURE__ */ s("div", { style: { minWidth: 64 } }), e.map((e, t) => /* @__PURE__ */ s("div", {
|
|
3160
3168
|
style: {
|
|
3161
3169
|
flex: 1,
|
|
3162
3170
|
fontSize: 18,
|
|
3163
3171
|
fontWeight: 500,
|
|
3164
|
-
color:
|
|
3165
|
-
fontFamily:
|
|
3172
|
+
color: Q.t2,
|
|
3173
|
+
fontFamily: $,
|
|
3166
3174
|
textTransform: "uppercase",
|
|
3167
3175
|
letterSpacing: .6
|
|
3168
3176
|
},
|
|
@@ -3174,18 +3182,18 @@ function sn({ columns: e = [], rows: t = [] }) {
|
|
|
3174
3182
|
alignItems: "center",
|
|
3175
3183
|
gap: 10,
|
|
3176
3184
|
padding: "8px 12px",
|
|
3177
|
-
background:
|
|
3178
|
-
border: `1px solid ${
|
|
3185
|
+
background: Q.bg,
|
|
3186
|
+
border: `1px solid ${Q.border}`
|
|
3179
3187
|
},
|
|
3180
3188
|
children: [/* @__PURE__ */ s("span", {
|
|
3181
3189
|
style: {
|
|
3182
3190
|
fontSize: 18,
|
|
3183
3191
|
fontWeight: 600,
|
|
3184
|
-
color:
|
|
3185
|
-
background: (e.color ??
|
|
3192
|
+
color: Q.t2,
|
|
3193
|
+
background: (e.color ?? Q.t4) + "1A",
|
|
3186
3194
|
padding: "2px 8px",
|
|
3187
3195
|
borderRadius: 4,
|
|
3188
|
-
fontFamily:
|
|
3196
|
+
fontFamily: $,
|
|
3189
3197
|
flexShrink: 0,
|
|
3190
3198
|
minWidth: 64,
|
|
3191
3199
|
textAlign: "center"
|
|
@@ -3196,29 +3204,29 @@ function sn({ columns: e = [], rows: t = [] }) {
|
|
|
3196
3204
|
flex: 1,
|
|
3197
3205
|
fontSize: 18,
|
|
3198
3206
|
fontWeight: 500,
|
|
3199
|
-
color: e.color ??
|
|
3200
|
-
fontFamily:
|
|
3207
|
+
color: e.color ?? Q.t1,
|
|
3208
|
+
fontFamily: $
|
|
3201
3209
|
},
|
|
3202
3210
|
children: t
|
|
3203
3211
|
}, n))]
|
|
3204
3212
|
}, t))]
|
|
3205
3213
|
});
|
|
3206
3214
|
}
|
|
3207
|
-
function
|
|
3215
|
+
function fn({ block: e }) {
|
|
3208
3216
|
if (!e) return null;
|
|
3209
3217
|
switch (e.type) {
|
|
3210
|
-
case "stats": return /* @__PURE__ */ s(
|
|
3211
|
-
case "ranked": return /* @__PURE__ */ s(
|
|
3212
|
-
case "chips": return /* @__PURE__ */ s(
|
|
3213
|
-
case "badges": return /* @__PURE__ */ s(
|
|
3214
|
-
case "dot-strip": return /* @__PURE__ */ s(
|
|
3218
|
+
case "stats": return /* @__PURE__ */ s(Zt, { items: e.items });
|
|
3219
|
+
case "ranked": return /* @__PURE__ */ s(Qt, { items: e.items });
|
|
3220
|
+
case "chips": return /* @__PURE__ */ s($t, { items: e.items });
|
|
3221
|
+
case "badges": return /* @__PURE__ */ s(tn, { items: e.items });
|
|
3222
|
+
case "dot-strip": return /* @__PURE__ */ s(nn, {
|
|
3215
3223
|
min: e.min,
|
|
3216
3224
|
max: e.max,
|
|
3217
3225
|
unit: e.unit,
|
|
3218
3226
|
dots: e.dots,
|
|
3219
3227
|
chips: e.chips
|
|
3220
3228
|
});
|
|
3221
|
-
case "proportion": return /* @__PURE__ */ s(
|
|
3229
|
+
case "proportion": return /* @__PURE__ */ s(rn, {
|
|
3222
3230
|
leftPct: e.leftPct,
|
|
3223
3231
|
leftLabel: e.leftLabel,
|
|
3224
3232
|
leftValue: e.leftValue,
|
|
@@ -3229,15 +3237,15 @@ function cn({ block: e }) {
|
|
|
3229
3237
|
rightColor: e.rightColor,
|
|
3230
3238
|
chips: e.chips
|
|
3231
3239
|
});
|
|
3232
|
-
case "ring": return /* @__PURE__ */ s(
|
|
3240
|
+
case "ring": return /* @__PURE__ */ s(an, {
|
|
3233
3241
|
pct: e.pct,
|
|
3234
3242
|
label: e.label,
|
|
3235
3243
|
color: e.color,
|
|
3236
3244
|
chips: e.chips
|
|
3237
3245
|
});
|
|
3238
|
-
case "scorecard-rows": return /* @__PURE__ */ s(
|
|
3239
|
-
case "flags-list": return /* @__PURE__ */ s(
|
|
3240
|
-
case "comparison-rows": return /* @__PURE__ */ s(
|
|
3246
|
+
case "scorecard-rows": return /* @__PURE__ */ s(cn, { items: e.items });
|
|
3247
|
+
case "flags-list": return /* @__PURE__ */ s(un, { items: e.items });
|
|
3248
|
+
case "comparison-rows": return /* @__PURE__ */ s(dn, {
|
|
3241
3249
|
columns: e.columns,
|
|
3242
3250
|
rows: e.rows
|
|
3243
3251
|
});
|
|
@@ -3246,14 +3254,14 @@ function cn({ block: e }) {
|
|
|
3246
3254
|
}
|
|
3247
3255
|
//#endregion
|
|
3248
3256
|
//#region src/components/keyHighlights/Takeaway.tsx
|
|
3249
|
-
var
|
|
3257
|
+
var pn = "'Satoshi Variable', 'DM Sans', sans-serif", mn = {
|
|
3250
3258
|
color: "#C2C2C2",
|
|
3251
|
-
fontFamily:
|
|
3259
|
+
fontFamily: pn,
|
|
3252
3260
|
fontSize: 18,
|
|
3253
3261
|
fontWeight: 400,
|
|
3254
3262
|
lineHeight: "20px"
|
|
3255
3263
|
};
|
|
3256
|
-
function
|
|
3264
|
+
function hn({ text: e }) {
|
|
3257
3265
|
return /* @__PURE__ */ c("div", {
|
|
3258
3266
|
style: {
|
|
3259
3267
|
padding: "8px 0px",
|
|
@@ -3266,16 +3274,16 @@ function dn({ text: e }) {
|
|
|
3266
3274
|
fontSize: 18,
|
|
3267
3275
|
fontWeight: 500,
|
|
3268
3276
|
color: u.t1,
|
|
3269
|
-
fontFamily:
|
|
3277
|
+
fontFamily: pn,
|
|
3270
3278
|
lineHeight: "20px",
|
|
3271
3279
|
marginRight: 8
|
|
3272
3280
|
},
|
|
3273
3281
|
children: "Takeaway"
|
|
3274
3282
|
}), /* @__PURE__ */ s("span", {
|
|
3275
|
-
style: { ...
|
|
3283
|
+
style: { ...mn },
|
|
3276
3284
|
children: e
|
|
3277
3285
|
})]
|
|
3278
3286
|
});
|
|
3279
3287
|
}
|
|
3280
3288
|
//#endregion
|
|
3281
|
-
export { te as AreaChart, ie as BarChart, l as ChartFrame,
|
|
3289
|
+
export { te as AreaChart, ie as BarChart, l as ChartFrame, qt as DonutChart, fn as KeyHighlights, Ie as LineChart, ze as MiniBars, Je as PieChart, it as ProcessSankey, at as RankingSankey, Xe as SankeySvg, ee as SeriesChart, hn as Takeaway, xt as Trend, kt as TrendChart, Vt as VisualizationRenderer, Wt as cleanupVisualizationMounts, Gt as hydrateVisualizationMounts, Kt as serializeVisualizationConfig };
|