@studiolxd/brand 38.17.0 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +141 -0
- package/dist/_shared/brandmessagescontext.js +15 -0
- package/dist/_shared/calendargrid.js +42 -42
- package/dist/_shared/datepicker.js +41 -41
- package/dist/_shared/imagecropdialog.js +54 -54
- package/dist/_shared/tokens.js +4 -0
- package/dist/_types/atoms/StarRating/StarRating.d.ts +87 -30
- package/dist/_types/messages/BrandMessages.d.ts +26 -0
- package/dist/_types/messages/BrandMessagesContext.d.ts +21 -0
- package/dist/_types/messages/BrandMessagesProvider.d.ts +46 -0
- package/dist/_types/messages/index.d.ts +5 -0
- package/dist/_types/molecules/Card/Card.d.ts +12 -1
- package/dist/_types/molecules/ConfirmDialog/ConfirmDialog.d.ts +42 -2
- package/dist/_types/molecules/Pagination/Pagination.d.ts +40 -23
- package/dist/_types/organisms/DataTable/DataTable.d.ts +3 -2
- package/dist/accordion.js +26 -26
- package/dist/alert.js +26 -26
- package/dist/annotation-thread.js +1 -1
- package/dist/app-header.js +8 -8
- package/dist/app-launcher.js +34 -34
- package/dist/app-shell.js +14 -14
- package/dist/assistant-message.js +8 -8
- package/dist/async-multi-select-field.js +9 -9
- package/dist/async-multi-select.js +40 -40
- package/dist/async-select-field.js +9 -9
- package/dist/async-select.js +64 -64
- package/dist/avatar-upload.js +40 -40
- package/dist/avatar.js +5 -5
- package/dist/banner.js +9 -9
- package/dist/brand.css +11 -2
- package/dist/button.js +7 -7
- package/dist/calendar-planner.js +16 -16
- package/dist/calendar.js +38 -38
- package/dist/card.js +28 -29
- package/dist/carousel.js +19 -19
- package/dist/chart.js +137 -137
- package/dist/chat-shell.js +23 -23
- package/dist/checkbox-field.js +11 -11
- package/dist/checkbox.js +7 -7
- package/dist/close-button.js +6 -6
- package/dist/code-block.js +15 -15
- package/dist/code.js +5 -5
- package/dist/collapsible.js +1 -1
- package/dist/columns.js +7 -7
- package/dist/command-palette.js +14 -14
- package/dist/confirm-dialog.css +1 -1
- package/dist/confirm-dialog.js +65 -42
- package/dist/connector-auth-shell.js +9 -9
- package/dist/consent.js +23 -23
- package/dist/container.js +6 -6
- package/dist/conversation-list.js +19 -19
- package/dist/conversation-thread.js +15 -15
- package/dist/copy-button.js +9 -9
- package/dist/copyable-value.js +17 -17
- package/dist/data-table.js +29 -29
- package/dist/date-picker-field.js +9 -9
- package/dist/date-time-field.js +12 -12
- package/dist/description-list.js +12 -12
- package/dist/docs-search.js +1 -1
- package/dist/dots-button.js +7 -7
- package/dist/dropdown-field.js +13 -13
- package/dist/email.js +44 -44
- package/dist/error-text.js +4 -4
- package/dist/field-row.js +20 -20
- package/dist/figure.js +8 -8
- package/dist/file-upload-field.js +9 -9
- package/dist/file-upload.js +29 -29
- package/dist/filter-bar.js +10 -10
- package/dist/floating-dock.js +17 -17
- package/dist/form-field.js +43 -43
- package/dist/form.js +14 -14
- package/dist/heading.js +5 -5
- package/dist/input-field.js +20 -20
- package/dist/input-phone-field.js +9 -9
- package/dist/input-phone.js +19 -19
- package/dist/input.js +5 -5
- package/dist/kbd.js +5 -5
- package/dist/label.js +5 -5
- package/dist/link.js +7 -7
- package/dist/list.js +7 -7
- package/dist/menu-button.js +7 -7
- package/dist/message-bubble.js +5 -5
- package/dist/message-composer.js +13 -13
- package/dist/messages.js +12 -0
- package/dist/multi-select-field.js +9 -9
- package/dist/multi-select.js +52 -52
- package/dist/notification-button.js +8 -8
- package/dist/notification-panel.js +25 -25
- package/dist/number-input-field.js +9 -9
- package/dist/number-input.js +11 -11
- package/dist/otp-field.js +9 -9
- package/dist/otp-input.js +48 -48
- package/dist/pagination.js +92 -89
- package/dist/paragraph.js +5 -5
- package/dist/password-field.js +15 -15
- package/dist/prose.js +4 -4
- package/dist/public-page-shell.js +11 -11
- package/dist/radio-field.js +11 -11
- package/dist/radio-group.js +5 -5
- package/dist/radio.js +5 -5
- package/dist/scroll-area.js +11 -11
- package/dist/search-form.js +8 -8
- package/dist/select-field.js +9 -9
- package/dist/select.js +85 -85
- package/dist/separator.js +6 -6
- package/dist/sidebar.js +16 -16
- package/dist/site-header.js +14 -14
- package/dist/site-shell.js +6 -6
- package/dist/sparkline.js +9 -9
- package/dist/star-rating.css +1 -1
- package/dist/star-rating.js +55 -41
- package/dist/stat-tile.js +12 -12
- package/dist/steps.js +32 -32
- package/dist/switcher-field.js +13 -13
- package/dist/switcher.js +8 -8
- package/dist/table-of-contents.js +14 -14
- package/dist/tag.js +5 -5
- package/dist/text.js +7 -7
- package/dist/textarea-field.js +11 -11
- package/dist/textarea.js +5 -5
- package/dist/time-field.js +9 -9
- package/dist/time-select.js +17 -17
- package/dist/toaster.js +16 -16
- package/dist/toggle-group.js +7 -7
- package/dist/toggle.js +5 -5
- package/dist/tokens.css +11 -2
- package/dist/tooltip.js +16 -16
- package/dist/tree-view.js +41 -41
- package/dist/uptime-bars.js +34 -34
- package/dist/user-message.js +8 -8
- package/dist/visually-hidden.js +5 -5
- package/package.json +5 -1
- package/src/tokens/components/description-list.css +1 -1
- package/src/tokens/components/star-rating.css +5 -0
- package/src/tokens/molecules/confirm-dialog.css +1 -0
- package/src/tokens/scss/components/_description-list.scss +1 -1
- package/src/tokens/scss/components/_star-rating.scss +3 -0
- package/src/tokens/scss/molecules/_confirm-dialog.scss +1 -0
- package/src/tokens/surface-invert.css +2 -0
- package/src/tokens/surface-public.css +1 -0
- package/src/tokens/tokens.json +4 -0
package/dist/chart.js
CHANGED
|
@@ -4,8 +4,8 @@ import { VisuallyHidden as e } from "./visually-hidden.js";
|
|
|
4
4
|
import { Inline as t } from "./inline.js";
|
|
5
5
|
import { Tag as n } from "./tag.js";
|
|
6
6
|
import { t as r } from "./_shared/css-properties.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { forwardRef as i, useEffect as a, useId as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
8
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
9
|
//#region src/stories/organisms/Chart/Chart.tsx
|
|
10
10
|
var p = {
|
|
11
11
|
barRadius: 4,
|
|
@@ -38,11 +38,11 @@ function ee(e, t, n) {
|
|
|
38
38
|
if (!(t || n?.[e])) return e < g ? String(e + 1) : "muted";
|
|
39
39
|
}
|
|
40
40
|
function x({ className: e, index: t, color: n, palette: r, muted: i }) {
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ d("svg", {
|
|
42
42
|
className: e,
|
|
43
43
|
"aria-hidden": "true",
|
|
44
44
|
"data-slot": y(t, n, r),
|
|
45
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ d("rect", {
|
|
46
46
|
width: "100%",
|
|
47
47
|
height: "100%",
|
|
48
48
|
fill: i ? void 0 : b(t, n, r)
|
|
@@ -117,8 +117,8 @@ function ae(e, t, n, r, i, a) {
|
|
|
117
117
|
return r <= 0 ? `M ${e} ${t} L ${s(n, i)} A ${n} ${n} 0 ${o} 1 ${s(n, a)} Z` : `M ${s(n, i)} A ${n} ${n} 0 ${o} 1 ${s(n, a)} L ${s(r, a)} A ${r} ${r} 0 ${o} 0 ${s(r, i)} Z`;
|
|
118
118
|
}
|
|
119
119
|
function oe(e) {
|
|
120
|
-
let t =
|
|
121
|
-
return
|
|
120
|
+
let t = c(null), [n, r] = l(e);
|
|
121
|
+
return a(() => {
|
|
122
122
|
let e = t.current;
|
|
123
123
|
if (!e || typeof ResizeObserver > "u") return;
|
|
124
124
|
let n = new ResizeObserver((e) => {
|
|
@@ -128,17 +128,17 @@ function oe(e) {
|
|
|
128
128
|
return n.observe(e), () => n.disconnect();
|
|
129
129
|
}, []), [t, n];
|
|
130
130
|
}
|
|
131
|
-
var S =
|
|
132
|
-
let [ke, Ae] = oe(h), [T, E] =
|
|
131
|
+
var S = i(function({ type: i = "line", data: a, series: c, xKey: g, colors: S, orientation: se = "vertical", stacked: C = !1, emphasis: ce, height: le = 256, ariaLabel: ue, title: de, caption: fe, formatValue: pe, formatX: me, yTicks: he = 5, legend: ge, grid: _e = !0, tooltip: w = !0, valueLabels: ve, locale: ye = "es-ES", tableCaption: be = "Datos del gráfico", tableHint: xe = "Los datos completos están en la tabla que sigue; flechas para recorrer el gráfico.", categoryLabel: Se = "Categoría", valueLabel: Ce = "Valor", shareLabel: we = "Porcentaje", emptyMessage: Te = "Sin datos que mostrar", className: Ee, ...De }, Oe) {
|
|
132
|
+
let [ke, Ae] = oe(h), [T, E] = l(null), [je, Me] = l(!1), Ne = o(), Pe = s(() => new Intl.NumberFormat(ye), [ye]), Fe = s(() => new Intl.NumberFormat(ye, {
|
|
133
133
|
style: "percent",
|
|
134
134
|
maximumFractionDigits: 1
|
|
135
|
-
}), [ye]), D = (e, t) => pe ? pe(e, t) : Pe.format(e), O = (e) => me ? me(e) : String(e), Ie =
|
|
135
|
+
}), [ye]), D = (e, t) => pe ? pe(e, t) : Pe.format(e), O = (e) => me ? me(e) : String(e), Ie = i === "pie" || i === "donut", k = Ie || i === "funnel" || i === "treemap" || i === "radial-bar", A = i === "scatter", Le = i === "radar", j = k || Le, Re = ge ?? (k ? a.length > 1 : c.length > 1), ze = ve ?? (i === "line" || i === "area" ? "last" : "none"), M = a, N = M.length === 0 || c.length === 0, Be = [
|
|
136
136
|
"chart",
|
|
137
|
-
`chart--${
|
|
138
|
-
|
|
137
|
+
`chart--${i}`,
|
|
138
|
+
i === "bar" ? `chart--${se}` : "",
|
|
139
139
|
C ? "chart--stacked" : "",
|
|
140
140
|
Ee
|
|
141
|
-
].filter(Boolean).join(" "), Ve = M.map((e) =>
|
|
141
|
+
].filter(Boolean).join(" "), Ve = M.map((e) => c.map((t) => _(e[t.key]))), He = Ve.map((e) => e.reduce((e, t) => e + t, 0)), Ue = Ve.flat(), P = re(Ue.length ? Math.min(0, ...Ue) : 0, C ? Math.max(0, ...He) : Ue.length ? Math.max(0, ...Ue) : 1, he), We = P[0] ?? 0, F = P[P.length - 1] ?? 1, Ge = F - We || 1, Ke = P.map((e) => D(e)), qe = M.map((e) => typeof e[g] == "number" ? e[g] : 0), I = A ? re(Math.min(...qe, 0), Math.max(...qe, 1), he) : [], Je = I[0] ?? 0, Ye = (I[I.length - 1] ?? 1) - Je || 1, Xe = A ? I.map((e) => D(e)) : M.map((e) => O(v(e, g))), L = i === "bar" && se === "horizontal", Ze = L ? Xe : Ke, Qe = j ? p.padding : p.padding + Math.max(...Ze.map((e) => e.length), 1) * m + p.axisGap, $e = j ? 0 : Math.round(p.labelFontSize * 1.4) + p.axisGap, R = Qe, et = Math.max(R + 1, Ae - p.padding), z = p.padding, B = Math.max(z + 1, le - p.padding), V = et - R, H = B - z, tt = le + $e, U = (e) => B - (e - We) / Ge * H, W = (e) => R + (e - We) / Ge * V, nt = U(0), rt = W(0), it = M.length ? (L ? H : V) / M.length : 0, at = (e) => M.length > 1 ? R + e * V / (M.length - 1) : R + V / 2, ot = (e) => (L ? z : R) + it * (e + .5), G = (e) => R + (e - Je) / Ye * V, st = c[0]?.key ?? "", K = M.map((e) => _(e[st])), q = K.reduce((e, t) => e + t, 0), J = Math.max(1, Math.min(V, H) / 2 - p.labelFontSize * 2), Y = R + V / 2, X = z + H / 2, ct = K.map((e, t) => {
|
|
142
142
|
let n = K.slice(0, t).reduce((e, t) => e + t, 0), r = -Math.PI / 2 + (q > 0 ? n / q * Math.PI * 2 : 0);
|
|
143
143
|
return {
|
|
144
144
|
from: r,
|
|
@@ -154,7 +154,7 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
154
154
|
}, Z = (e) => !!ce && ce !== e, dt = (e) => {
|
|
155
155
|
if (j || M.length === 0) return null;
|
|
156
156
|
let t = e.currentTarget.getBoundingClientRect();
|
|
157
|
-
if (
|
|
157
|
+
if (i === "line" || i === "area") {
|
|
158
158
|
let n = e.clientX - t.left, r = M.length > 1 ? V / (M.length - 1) : V;
|
|
159
159
|
return Math.max(0, Math.min(M.length - 1, Math.round(n / r)));
|
|
160
160
|
}
|
|
@@ -175,9 +175,9 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
175
175
|
}, pt = (e) => {
|
|
176
176
|
Me(!0), e.key === "ArrowRight" || e.key === "ArrowDown" ? (e.preventDefault(), ft(1)) : e.key === "ArrowLeft" || e.key === "ArrowUp" ? (e.preventDefault(), ft(-1)) : e.key === "Home" ? (e.preventDefault(), E(0)) : e.key === "End" ? (e.preventDefault(), E(M.length - 1)) : e.key === "Escape" && E(null);
|
|
177
177
|
}, Q = [];
|
|
178
|
-
if (!N && (
|
|
178
|
+
if (!N && (i === "line" || i === "area")) {
|
|
179
179
|
let e = M.map(() => 0), t = null, n = [];
|
|
180
|
-
|
|
180
|
+
c.forEach((r, a) => {
|
|
181
181
|
let o = M.map((t, n) => {
|
|
182
182
|
let i = _(t[r.key]), a = i;
|
|
183
183
|
return C && (e[n] = (e[n] ?? 0) + i, a = e[n]), {
|
|
@@ -185,27 +185,27 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
185
185
|
y: U(a),
|
|
186
186
|
value: i
|
|
187
187
|
};
|
|
188
|
-
}),
|
|
189
|
-
if (
|
|
188
|
+
}), s = o.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x} ${e.y}`).join(" "), c = Z(r.key), l = y(a, r.color, S), u = c ? void 0 : b(a, r.color, S), f = o[0], m = o[o.length - 1];
|
|
189
|
+
if (i === "area" && f && m) {
|
|
190
190
|
let e = C && t ? [...t].reverse().map((e) => `L ${e.x} ${e.y}`).join(" ") : `L ${m.x} ${nt} L ${f.x} ${nt}`;
|
|
191
|
-
Q.push(/* @__PURE__ */
|
|
192
|
-
className: `chart__area${
|
|
193
|
-
"data-slot":
|
|
194
|
-
fill:
|
|
195
|
-
d: `${
|
|
191
|
+
Q.push(/* @__PURE__ */ d("path", {
|
|
192
|
+
className: `chart__area${c ? " chart__area--muted" : ""}`,
|
|
193
|
+
"data-slot": l,
|
|
194
|
+
fill: u,
|
|
195
|
+
d: `${s} ${e} Z`
|
|
196
196
|
}, `area-${r.key}`));
|
|
197
197
|
}
|
|
198
|
-
Q.push(/* @__PURE__ */
|
|
199
|
-
className: `chart__line${
|
|
200
|
-
"data-slot":
|
|
201
|
-
stroke:
|
|
202
|
-
d:
|
|
198
|
+
Q.push(/* @__PURE__ */ d("path", {
|
|
199
|
+
className: `chart__line${c ? " chart__line--muted" : ""}`,
|
|
200
|
+
"data-slot": l,
|
|
201
|
+
stroke: u,
|
|
202
|
+
d: s
|
|
203
203
|
}, `line-${r.key}`)), o.forEach((e, t) => {
|
|
204
204
|
let n = t === o.length - 1, i = T === t;
|
|
205
|
-
!n && !i || Q.push(/* @__PURE__ */
|
|
206
|
-
className: `chart__marker${
|
|
207
|
-
"data-slot":
|
|
208
|
-
fill:
|
|
205
|
+
!n && !i || Q.push(/* @__PURE__ */ d("circle", {
|
|
206
|
+
className: `chart__marker${c ? " chart__marker--muted" : ""}`,
|
|
207
|
+
"data-slot": l,
|
|
208
|
+
fill: u,
|
|
209
209
|
cx: e.x,
|
|
210
210
|
cy: e.y,
|
|
211
211
|
r: p.markerSize / 2,
|
|
@@ -228,7 +228,7 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
228
228
|
r.some((t) => Math.abs(t.x - e.x) < m * e.text.length && Math.abs(t.y - e.y) < p.labelFontSize * 1.2) || (r.push({
|
|
229
229
|
x: e.x,
|
|
230
230
|
y: e.y
|
|
231
|
-
}), Q.push(/* @__PURE__ */
|
|
231
|
+
}), Q.push(/* @__PURE__ */ d("text", {
|
|
232
232
|
className: "chart__value-label",
|
|
233
233
|
x: e.x,
|
|
234
234
|
y: e.y,
|
|
@@ -237,13 +237,13 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
237
237
|
}, e.key)));
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
if (!N &&
|
|
241
|
-
let e = Math.min(p.barMaxThickness *
|
|
240
|
+
if (!N && i === "bar") {
|
|
241
|
+
let e = Math.min(p.barMaxThickness * c.length + p.markGap * (c.length - 1), it * .72), t = C ? Math.min(p.barMaxThickness, it * .72) : Math.max(1, (e - p.markGap * (c.length - 1)) / c.length);
|
|
242
242
|
M.forEach((e, n) => {
|
|
243
|
-
let r = ot(n), i = 0,
|
|
244
|
-
|
|
245
|
-
let l = _(e[
|
|
246
|
-
C && (l >= 0 ? i = v :
|
|
243
|
+
let r = ot(n), i = 0, a = 0;
|
|
244
|
+
c.forEach((o, s) => {
|
|
245
|
+
let l = _(e[o.key]), u = Z(o.key), f = y(s, o.color, S), m = u ? void 0 : b(s, o.color, S), h = r + (C ? 0 : (s - (c.length - 1) / 2) * (t + p.markGap)) - t / 2, g = C ? l >= 0 ? i : a : 0, v = g + l;
|
|
246
|
+
C && (l >= 0 ? i = v : a = v);
|
|
247
247
|
let ee = C && g !== 0 ? p.markGap : 0, x = "";
|
|
248
248
|
if (L) {
|
|
249
249
|
let e = W(g) + (l >= 0 ? ee : 0), n = W(v);
|
|
@@ -252,32 +252,32 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
252
252
|
let e = U(g) - (l >= 0 ? ee : 0), n = U(v);
|
|
253
253
|
x = ie(h, Math.min(e, n), t, Math.abs(n - e), l >= 0 ? "top" : "bottom");
|
|
254
254
|
}
|
|
255
|
-
if (x && (Q.push(/* @__PURE__ */
|
|
255
|
+
if (x && (Q.push(/* @__PURE__ */ d("path", {
|
|
256
256
|
className: `chart__bar${u ? " chart__bar--muted" : ""}`,
|
|
257
257
|
"data-slot": f,
|
|
258
258
|
fill: m,
|
|
259
259
|
d: x,
|
|
260
260
|
"data-active": T === n || void 0
|
|
261
|
-
}, `bar-${n}-${
|
|
261
|
+
}, `bar-${n}-${o.key}`)), ze === "all" && !C)) {
|
|
262
262
|
let e = L ? W(v) : U(v);
|
|
263
|
-
Q.push(/* @__PURE__ */
|
|
263
|
+
Q.push(/* @__PURE__ */ d("text", {
|
|
264
264
|
className: "chart__value-label",
|
|
265
265
|
x: L ? e + p.axisGap : h + t / 2,
|
|
266
266
|
y: L ? h + t / 2 : e - p.axisGap,
|
|
267
267
|
textAnchor: L ? "start" : "middle",
|
|
268
268
|
dominantBaseline: L ? "middle" : "auto",
|
|
269
|
-
children: D(l,
|
|
270
|
-
}, `bar-label-${n}-${
|
|
269
|
+
children: D(l, o)
|
|
270
|
+
}, `bar-label-${n}-${o.key}`));
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
if (!N && Ie) {
|
|
276
|
-
let e =
|
|
276
|
+
let e = i === "donut" ? J * (1 - p.donutThickness) : 0;
|
|
277
277
|
ct.forEach((t, n) => {
|
|
278
278
|
if (t.to - t.from <= 0) return;
|
|
279
279
|
let r = String(v(M[n], g));
|
|
280
|
-
if (Q.push(/* @__PURE__ */
|
|
280
|
+
if (Q.push(/* @__PURE__ */ d("path", {
|
|
281
281
|
className: `chart__slice${Z(r) ? " chart__slice--muted" : ""}`,
|
|
282
282
|
"data-slot": y(n, void 0, S),
|
|
283
283
|
fill: Z(r) ? void 0 : b(n, void 0, S),
|
|
@@ -285,7 +285,7 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
285
285
|
"data-active": T === n || void 0
|
|
286
286
|
}, `slice-${n}`)), t.share >= .05) {
|
|
287
287
|
let e = (t.from + t.to) / 2, r = Y + (J + p.axisGap) * Math.cos(e), i = X + (J + p.axisGap) * Math.sin(e);
|
|
288
|
-
Q.push(/* @__PURE__ */
|
|
288
|
+
Q.push(/* @__PURE__ */ d("text", {
|
|
289
289
|
className: "chart__value-label",
|
|
290
290
|
x: r,
|
|
291
291
|
y: i,
|
|
@@ -296,32 +296,32 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
if (!N &&
|
|
299
|
+
if (!N && i === "funnel") {
|
|
300
300
|
let e = Math.max(...K, 1), t = H / Math.max(1, M.length), n = (t) => Math.max(0, t) / e * V;
|
|
301
301
|
K.forEach((e, r) => {
|
|
302
|
-
let i = z + t * r,
|
|
303
|
-
Q.push(/* @__PURE__ */
|
|
304
|
-
className: `chart__funnel-step${Z(
|
|
302
|
+
let i = z + t * r, a = Math.max(0, t - p.funnelGap), o = K[r + 1], s = String(v(M[r], g));
|
|
303
|
+
Q.push(/* @__PURE__ */ d("path", {
|
|
304
|
+
className: `chart__funnel-step${Z(s) ? " chart__funnel-step--muted" : ""}`,
|
|
305
305
|
"data-slot": y(r, void 0, S),
|
|
306
|
-
fill: Z(
|
|
306
|
+
fill: Z(s) ? void 0 : b(r, void 0, S),
|
|
307
307
|
"data-active": T === r || void 0,
|
|
308
|
-
d: te(Y, i,
|
|
309
|
-
}, `funnel-${r}`)), Q.push(/* @__PURE__ */
|
|
308
|
+
d: te(Y, i, a, n(e), n(o ?? e))
|
|
309
|
+
}, `funnel-${r}`)), Q.push(/* @__PURE__ */ d("text", {
|
|
310
310
|
className: "chart__value-label",
|
|
311
311
|
x: Y,
|
|
312
|
-
y: i +
|
|
312
|
+
y: i + a / 2,
|
|
313
313
|
textAnchor: "middle",
|
|
314
314
|
dominantBaseline: "middle",
|
|
315
315
|
children: `${O(v(M[r], g))} · ${D(e)}`
|
|
316
316
|
}, `funnel-label-${r}`));
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
if (!N &&
|
|
319
|
+
if (!N && i === "treemap" && ne(K.map((e, t) => ({
|
|
320
320
|
value: Math.max(0, e),
|
|
321
321
|
index: t
|
|
322
322
|
})).filter((e) => e.value > 0), R, z, V, H).forEach((e) => {
|
|
323
323
|
let t = String(v(M[e.index], g)), n = Math.max(0, e.w - p.treemapGap), r = Math.max(0, e.h - p.treemapGap);
|
|
324
|
-
Q.push(/* @__PURE__ */
|
|
324
|
+
Q.push(/* @__PURE__ */ d("rect", {
|
|
325
325
|
className: `chart__tile${Z(t) ? " chart__tile--muted" : ""}`,
|
|
326
326
|
"data-slot": y(e.index, void 0, S),
|
|
327
327
|
fill: Z(t) ? void 0 : b(e.index, void 0, S),
|
|
@@ -330,63 +330,63 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
330
330
|
y: e.y,
|
|
331
331
|
width: n,
|
|
332
332
|
height: r
|
|
333
|
-
}, `tile-${e.index}`)), n > m * 4 && r > p.labelFontSize * 2 && Q.push(/* @__PURE__ */
|
|
333
|
+
}, `tile-${e.index}`)), n > m * 4 && r > p.labelFontSize * 2 && Q.push(/* @__PURE__ */ d("text", {
|
|
334
334
|
className: "chart__tile-label",
|
|
335
335
|
"data-slot": ee(e.index, void 0, S),
|
|
336
336
|
x: e.x + p.axisGap,
|
|
337
337
|
y: e.y + p.axisGap + p.labelFontSize,
|
|
338
338
|
children: O(v(M[e.index], g))
|
|
339
339
|
}, `tile-label-${e.index}`));
|
|
340
|
-
}), !N &&
|
|
340
|
+
}), !N && i === "radial-bar") {
|
|
341
341
|
let e = Math.max(...K, 1), t = J / Math.max(1, M.length), n = Math.max(1, t - p.radialBarGap);
|
|
342
342
|
K.forEach((r, i) => {
|
|
343
|
-
let
|
|
344
|
-
Q.push(/* @__PURE__ */
|
|
343
|
+
let a = J - t * i, o = a - n, s = String(v(M[i], g)), c = Math.max(0, r) / e * Math.PI * 1.999;
|
|
344
|
+
Q.push(/* @__PURE__ */ d("path", {
|
|
345
345
|
className: "chart__radial-track",
|
|
346
|
-
d: ae(Y, X,
|
|
347
|
-
}, `radial-track-${i}`)), !(
|
|
348
|
-
className: `chart__radial-bar${Z(
|
|
346
|
+
d: ae(Y, X, a, o, -Math.PI / 2, -Math.PI / 2 + Math.PI * 1.999)
|
|
347
|
+
}, `radial-track-${i}`)), !(c <= 0) && Q.push(/* @__PURE__ */ d("path", {
|
|
348
|
+
className: `chart__radial-bar${Z(s) ? " chart__radial-bar--muted" : ""}`,
|
|
349
349
|
"data-slot": y(i, void 0, S),
|
|
350
|
-
fill: Z(
|
|
350
|
+
fill: Z(s) ? void 0 : b(i, void 0, S),
|
|
351
351
|
"data-active": T === i || void 0,
|
|
352
|
-
d: ae(Y, X,
|
|
352
|
+
d: ae(Y, X, a, o, -Math.PI / 2, -Math.PI / 2 + c)
|
|
353
353
|
}, `radial-bar-${i}`));
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
!N && A &&
|
|
356
|
+
!N && A && c.forEach((e, t) => {
|
|
357
357
|
let n = Z(e.key), r = y(t, e.color, S), i = n ? void 0 : b(t, e.color, S);
|
|
358
|
-
M.forEach((t,
|
|
359
|
-
let
|
|
360
|
-
typeof
|
|
358
|
+
M.forEach((t, a) => {
|
|
359
|
+
let o = t[e.key];
|
|
360
|
+
typeof o != "number" || !Number.isFinite(o) || Q.push(/* @__PURE__ */ d("circle", {
|
|
361
361
|
className: `chart__point${n ? " chart__point--muted" : ""}`,
|
|
362
362
|
"data-slot": r,
|
|
363
363
|
fill: i,
|
|
364
|
-
cx: G(qe[
|
|
365
|
-
cy: U(
|
|
364
|
+
cx: G(qe[a] ?? 0),
|
|
365
|
+
cy: U(o),
|
|
366
366
|
r: p.dotSize / 2,
|
|
367
|
-
"data-active": T ===
|
|
368
|
-
}, `point-${e.key}-${
|
|
367
|
+
"data-active": T === a || void 0
|
|
368
|
+
}, `point-${e.key}-${a}`));
|
|
369
369
|
});
|
|
370
|
-
}), !N && Le &&
|
|
371
|
-
let n = Z(e.key), r = y(t, e.color, S), i = n ? void 0 : b(t, e.color, S),
|
|
372
|
-
if (
|
|
373
|
-
let
|
|
374
|
-
Q.push(/* @__PURE__ */
|
|
370
|
+
}), !N && Le && c.forEach((e, t) => {
|
|
371
|
+
let n = Z(e.key), r = y(t, e.color, S), i = n ? void 0 : b(t, e.color, S), a = M.map((t, n) => ut(_(t[e.key]), n));
|
|
372
|
+
if (a.length === 0) return;
|
|
373
|
+
let o = `${a.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x} ${e.y}`).join(" ")} Z`;
|
|
374
|
+
Q.push(/* @__PURE__ */ d("path", {
|
|
375
375
|
className: `chart__radar-shape${n ? " chart__radar-shape--muted" : ""}`,
|
|
376
376
|
"data-slot": r,
|
|
377
377
|
fill: i,
|
|
378
378
|
stroke: i,
|
|
379
|
-
d:
|
|
380
|
-
}, `radar-${e.key}`)),
|
|
381
|
-
Q.push(/* @__PURE__ */
|
|
379
|
+
d: o
|
|
380
|
+
}, `radar-${e.key}`)), a.forEach((t, a) => {
|
|
381
|
+
Q.push(/* @__PURE__ */ d("circle", {
|
|
382
382
|
className: `chart__marker${n ? " chart__marker--muted" : ""}`,
|
|
383
383
|
"data-slot": r,
|
|
384
384
|
fill: i,
|
|
385
385
|
cx: t.x,
|
|
386
386
|
cy: t.y,
|
|
387
387
|
r: p.markerSize / 2,
|
|
388
|
-
"data-active": T ===
|
|
389
|
-
}, `radar-dot-${e.key}-${
|
|
388
|
+
"data-active": T === a || void 0
|
|
389
|
+
}, `radar-dot-${e.key}-${a}`));
|
|
390
390
|
});
|
|
391
391
|
});
|
|
392
392
|
let $ = T === null ? void 0 : M[T], mt = $ ? k ? [{
|
|
@@ -394,12 +394,12 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
394
394
|
label: String(v($, g)),
|
|
395
395
|
value: D(_($[st])),
|
|
396
396
|
index: T ?? 0
|
|
397
|
-
}] :
|
|
397
|
+
}] : c.map((e, t) => ({
|
|
398
398
|
key: e.key,
|
|
399
399
|
label: e.label,
|
|
400
400
|
value: D(_($[e.key]), e),
|
|
401
401
|
index: t
|
|
402
|
-
})) : [], ht = T === null ? 0 : j ? Y : A ? G(qe[T] ?? 0) :
|
|
402
|
+
})) : [], ht = T === null ? 0 : j ? Y : A ? G(qe[T] ?? 0) : i === "bar" && L ? W(F) : i === "bar" ? ot(T) : at(T), gt = T === null ? 0 : j ? X - J : i === "bar" && L ? ot(T) : z, _t = je && $ ? [k ? D(q) : O(v($, g)), ...mt.map((e) => `${e.label}: ${e.value}`)].join(" · ") : "", vt = r({
|
|
403
403
|
"inset-inline-start": `${R}px`,
|
|
404
404
|
"inset-block-start": `${z}px`,
|
|
405
405
|
width: `${V}px`,
|
|
@@ -408,39 +408,39 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
408
408
|
left: `${ht}px`,
|
|
409
409
|
top: `${gt}px`
|
|
410
410
|
});
|
|
411
|
-
return /* @__PURE__ */
|
|
411
|
+
return /* @__PURE__ */ f("figure", {
|
|
412
412
|
ref: Oe,
|
|
413
413
|
className: Be,
|
|
414
414
|
...De,
|
|
415
415
|
children: [
|
|
416
|
-
de ? /* @__PURE__ */
|
|
416
|
+
de ? /* @__PURE__ */ d("figcaption", {
|
|
417
417
|
className: "chart__title",
|
|
418
418
|
children: de
|
|
419
419
|
}) : null,
|
|
420
|
-
N ? /* @__PURE__ */
|
|
420
|
+
N ? /* @__PURE__ */ d("p", {
|
|
421
421
|
className: "chart__empty",
|
|
422
422
|
children: Te
|
|
423
|
-
}) : /* @__PURE__ */
|
|
423
|
+
}) : /* @__PURE__ */ f("div", {
|
|
424
424
|
className: "chart__plot",
|
|
425
425
|
ref: ke,
|
|
426
426
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ f("svg", {
|
|
428
428
|
className: "chart__canvas",
|
|
429
429
|
viewBox: `0 0 ${Ae} ${tt}`,
|
|
430
430
|
width: Ae,
|
|
431
431
|
height: tt,
|
|
432
432
|
"aria-hidden": "true",
|
|
433
433
|
children: [
|
|
434
|
-
_e && !j ? /* @__PURE__ */
|
|
434
|
+
_e && !j ? /* @__PURE__ */ d("g", {
|
|
435
435
|
className: "chart__grid",
|
|
436
436
|
"aria-hidden": "true",
|
|
437
|
-
children: P.map((e) => L ? /* @__PURE__ */
|
|
437
|
+
children: P.map((e) => L ? /* @__PURE__ */ d("line", {
|
|
438
438
|
className: "chart__grid-line",
|
|
439
439
|
x1: W(e),
|
|
440
440
|
y1: z,
|
|
441
441
|
x2: W(e),
|
|
442
442
|
y2: B
|
|
443
|
-
}, e) : /* @__PURE__ */
|
|
443
|
+
}, e) : /* @__PURE__ */ d("line", {
|
|
444
444
|
className: "chart__grid-line",
|
|
445
445
|
x1: R,
|
|
446
446
|
y1: U(e),
|
|
@@ -448,25 +448,25 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
448
448
|
y2: U(e)
|
|
449
449
|
}, e))
|
|
450
450
|
}) : null,
|
|
451
|
-
j ? null : /* @__PURE__ */
|
|
451
|
+
j ? null : /* @__PURE__ */ f("g", {
|
|
452
452
|
className: "chart__axes",
|
|
453
453
|
"aria-hidden": "true",
|
|
454
454
|
children: [
|
|
455
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ d("line", {
|
|
456
456
|
className: "chart__axis",
|
|
457
457
|
x1: L ? rt : R,
|
|
458
458
|
y1: L ? z : nt,
|
|
459
459
|
x2: L ? rt : et,
|
|
460
460
|
y2: L ? B : nt
|
|
461
461
|
}),
|
|
462
|
-
L ? Xe.map((e, t) => /* @__PURE__ */
|
|
462
|
+
L ? Xe.map((e, t) => /* @__PURE__ */ d("text", {
|
|
463
463
|
className: "chart__axis-label",
|
|
464
464
|
x: R - p.axisGap,
|
|
465
465
|
y: ot(t),
|
|
466
466
|
textAnchor: "end",
|
|
467
467
|
dominantBaseline: "middle",
|
|
468
468
|
children: e
|
|
469
|
-
}, `cat-${t}`)) : P.map((e, t) => /* @__PURE__ */
|
|
469
|
+
}, `cat-${t}`)) : P.map((e, t) => /* @__PURE__ */ d("text", {
|
|
470
470
|
className: "chart__axis-label",
|
|
471
471
|
x: R - p.axisGap,
|
|
472
472
|
y: U(e),
|
|
@@ -474,25 +474,25 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
474
474
|
dominantBaseline: "middle",
|
|
475
475
|
children: Ke[t]
|
|
476
476
|
}, `tick-${e}`)),
|
|
477
|
-
L ? P.map((e, t) => /* @__PURE__ */
|
|
477
|
+
L ? P.map((e, t) => /* @__PURE__ */ d("text", {
|
|
478
478
|
className: "chart__axis-label",
|
|
479
479
|
x: W(e),
|
|
480
480
|
y: B + p.axisGap + p.labelFontSize,
|
|
481
481
|
textAnchor: "middle",
|
|
482
482
|
children: Ke[t]
|
|
483
|
-
}, `vtick-${e}`)) : Xe.map((e, t) => /* @__PURE__ */
|
|
483
|
+
}, `vtick-${e}`)) : Xe.map((e, t) => /* @__PURE__ */ d("text", {
|
|
484
484
|
className: "chart__axis-label",
|
|
485
|
-
x: A ? G(I[t] ?? 0) :
|
|
485
|
+
x: A ? G(I[t] ?? 0) : i === "bar" ? ot(t) : at(t),
|
|
486
486
|
y: B + p.axisGap + p.labelFontSize,
|
|
487
|
-
textAnchor: A ? "middle" : t === 0 &&
|
|
487
|
+
textAnchor: A ? "middle" : t === 0 && i !== "bar" ? "start" : t === M.length - 1 && i !== "bar" ? "end" : "middle",
|
|
488
488
|
children: e
|
|
489
489
|
}, `cat-${t}`))
|
|
490
490
|
]
|
|
491
491
|
}),
|
|
492
|
-
_e && A ? /* @__PURE__ */
|
|
492
|
+
_e && A ? /* @__PURE__ */ d("g", {
|
|
493
493
|
className: "chart__grid",
|
|
494
494
|
"aria-hidden": "true",
|
|
495
|
-
children: I.map((e) => /* @__PURE__ */
|
|
495
|
+
children: I.map((e) => /* @__PURE__ */ d("line", {
|
|
496
496
|
className: "chart__grid-line",
|
|
497
497
|
x1: G(e),
|
|
498
498
|
y1: z,
|
|
@@ -500,25 +500,25 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
500
500
|
y2: B
|
|
501
501
|
}, `xgrid-${e}`))
|
|
502
502
|
}) : null,
|
|
503
|
-
Le && M.length > 0 ? /* @__PURE__ */
|
|
503
|
+
Le && M.length > 0 ? /* @__PURE__ */ f("g", {
|
|
504
504
|
className: "chart__radar-grid",
|
|
505
505
|
"aria-hidden": "true",
|
|
506
506
|
children: [
|
|
507
|
-
P.filter((e) => e > 0).map((e) => /* @__PURE__ */
|
|
507
|
+
P.filter((e) => e > 0).map((e) => /* @__PURE__ */ d("path", {
|
|
508
508
|
className: "chart__grid-line",
|
|
509
509
|
d: `${lt.map((t, n) => {
|
|
510
510
|
let r = J * (F > 0 ? e / F : 0);
|
|
511
511
|
return `${n === 0 ? "M" : "L"} ${Y + r * Math.cos(t)} ${X + r * Math.sin(t)}`;
|
|
512
512
|
}).join(" ")} Z`
|
|
513
513
|
}, `web-${e}`)),
|
|
514
|
-
lt.map((e, t) => /* @__PURE__ */
|
|
514
|
+
lt.map((e, t) => /* @__PURE__ */ d("line", {
|
|
515
515
|
className: "chart__grid-line",
|
|
516
516
|
x1: Y,
|
|
517
517
|
y1: X,
|
|
518
518
|
x2: Y + J * Math.cos(e),
|
|
519
519
|
y2: X + J * Math.sin(e)
|
|
520
520
|
}, `spoke-${t}`)),
|
|
521
|
-
lt.map((e, t) => /* @__PURE__ */
|
|
521
|
+
lt.map((e, t) => /* @__PURE__ */ d("text", {
|
|
522
522
|
className: "chart__axis-label",
|
|
523
523
|
x: Y + (J + p.axisGap) * Math.cos(e),
|
|
524
524
|
y: X + (J + p.axisGap) * Math.sin(e),
|
|
@@ -528,7 +528,7 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
528
528
|
}, `radar-cat-${t}`))
|
|
529
529
|
]
|
|
530
530
|
}) : null,
|
|
531
|
-
T !== null && w && (
|
|
531
|
+
T !== null && w && (i === "line" || i === "area") ? /* @__PURE__ */ d("line", {
|
|
532
532
|
className: "chart__crosshair",
|
|
533
533
|
"aria-hidden": "true",
|
|
534
534
|
x1: at(T),
|
|
@@ -536,11 +536,11 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
536
536
|
x2: at(T),
|
|
537
537
|
y2: B
|
|
538
538
|
}) : null,
|
|
539
|
-
/* @__PURE__ */
|
|
539
|
+
/* @__PURE__ */ d("g", {
|
|
540
540
|
className: "chart__marks",
|
|
541
541
|
children: Q
|
|
542
542
|
}),
|
|
543
|
-
|
|
543
|
+
i === "donut" ? /* @__PURE__ */ d("text", {
|
|
544
544
|
className: "chart__center-value",
|
|
545
545
|
x: Y,
|
|
546
546
|
y: X,
|
|
@@ -550,7 +550,7 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
550
550
|
}) : null
|
|
551
551
|
]
|
|
552
552
|
}),
|
|
553
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ d("div", {
|
|
554
554
|
ref: vt,
|
|
555
555
|
className: "chart__hit-layer",
|
|
556
556
|
role: "img",
|
|
@@ -566,29 +566,29 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
566
566
|
Me(!1), E(null);
|
|
567
567
|
} : void 0
|
|
568
568
|
}),
|
|
569
|
-
w && T !== null && $ ? /* @__PURE__ */
|
|
569
|
+
w && T !== null && $ ? /* @__PURE__ */ f("div", {
|
|
570
570
|
ref: yt,
|
|
571
571
|
className: "chart__tooltip",
|
|
572
572
|
"aria-hidden": "true",
|
|
573
|
-
children: [/* @__PURE__ */
|
|
573
|
+
children: [/* @__PURE__ */ d("p", {
|
|
574
574
|
className: "chart__tooltip-header",
|
|
575
575
|
children: k ? D(q) : O(v($, g))
|
|
576
|
-
}), /* @__PURE__ */
|
|
576
|
+
}), /* @__PURE__ */ d("ul", {
|
|
577
577
|
className: "chart__tooltip-list",
|
|
578
|
-
children: mt.map((e) => /* @__PURE__ */
|
|
578
|
+
children: mt.map((e) => /* @__PURE__ */ f("li", {
|
|
579
579
|
className: "chart__tooltip-row",
|
|
580
580
|
children: [
|
|
581
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ d(x, {
|
|
582
582
|
className: "chart__tooltip-key",
|
|
583
583
|
index: e.index,
|
|
584
|
-
color: k ? void 0 :
|
|
584
|
+
color: k ? void 0 : c[e.index]?.color,
|
|
585
585
|
palette: S
|
|
586
586
|
}),
|
|
587
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ d("span", {
|
|
588
588
|
className: "chart__tooltip-value",
|
|
589
589
|
children: e.value
|
|
590
590
|
}),
|
|
591
|
-
/* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ d("span", {
|
|
592
592
|
className: "chart__tooltip-label",
|
|
593
593
|
children: e.label
|
|
594
594
|
})
|
|
@@ -598,25 +598,25 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
598
598
|
}) : null
|
|
599
599
|
]
|
|
600
600
|
}),
|
|
601
|
-
Re && !N ? /* @__PURE__ */
|
|
601
|
+
Re && !N ? /* @__PURE__ */ d("div", {
|
|
602
602
|
className: "chart__legend",
|
|
603
|
-
children: /* @__PURE__ */
|
|
603
|
+
children: /* @__PURE__ */ d(t, {
|
|
604
604
|
gap: "sm",
|
|
605
605
|
children: (k ? M.map((e, t) => ({
|
|
606
606
|
key: String(v(e, g)),
|
|
607
607
|
label: O(v(e, g)),
|
|
608
608
|
index: t,
|
|
609
609
|
color: void 0
|
|
610
|
-
})) :
|
|
610
|
+
})) : c.map((e, t) => ({
|
|
611
611
|
key: e.key,
|
|
612
612
|
label: e.label,
|
|
613
613
|
index: t,
|
|
614
614
|
color: e.color
|
|
615
|
-
}))).map((e) => /* @__PURE__ */
|
|
615
|
+
}))).map((e) => /* @__PURE__ */ f(n, {
|
|
616
616
|
variant: "neutral",
|
|
617
617
|
className: `chart__legend-item${Z(e.key) ? " chart__legend-item--muted" : ""}`,
|
|
618
|
-
children: [/* @__PURE__ */
|
|
619
|
-
className: `chart__legend-swatch${
|
|
618
|
+
children: [/* @__PURE__ */ d(x, {
|
|
619
|
+
className: `chart__legend-swatch${i === "line" ? " chart__legend-swatch--line" : ""}`,
|
|
620
620
|
index: e.index,
|
|
621
621
|
color: e.color,
|
|
622
622
|
palette: S,
|
|
@@ -625,41 +625,41 @@ var S = s(function({ type: s = "line", data: c, series: d, xKey: g, colors: S, o
|
|
|
625
625
|
}, e.key))
|
|
626
626
|
})
|
|
627
627
|
}) : null,
|
|
628
|
-
fe ? /* @__PURE__ */
|
|
628
|
+
fe ? /* @__PURE__ */ d("p", {
|
|
629
629
|
className: "chart__caption",
|
|
630
630
|
children: fe
|
|
631
631
|
}) : null,
|
|
632
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ d(e, {
|
|
633
633
|
role: "status",
|
|
634
634
|
children: _t
|
|
635
635
|
}),
|
|
636
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ d(e, {
|
|
637
637
|
id: Ne,
|
|
638
638
|
children: xe
|
|
639
639
|
}),
|
|
640
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ d(e, {
|
|
641
641
|
as: "div",
|
|
642
|
-
children: /* @__PURE__ */
|
|
642
|
+
children: /* @__PURE__ */ f("table", {
|
|
643
643
|
className: "chart__table",
|
|
644
644
|
children: [
|
|
645
|
-
/* @__PURE__ */
|
|
646
|
-
/* @__PURE__ */
|
|
645
|
+
/* @__PURE__ */ d("caption", { children: be }),
|
|
646
|
+
/* @__PURE__ */ d("thead", { children: /* @__PURE__ */ f("tr", { children: [/* @__PURE__ */ d("th", {
|
|
647
647
|
scope: "col",
|
|
648
648
|
children: Se
|
|
649
|
-
}), k ? /* @__PURE__ */
|
|
649
|
+
}), k ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("th", {
|
|
650
650
|
scope: "col",
|
|
651
651
|
children: Ce
|
|
652
|
-
}), /* @__PURE__ */
|
|
652
|
+
}), /* @__PURE__ */ d("th", {
|
|
653
653
|
scope: "col",
|
|
654
654
|
children: we
|
|
655
|
-
})] }) :
|
|
655
|
+
})] }) : c.map((e) => /* @__PURE__ */ d("th", {
|
|
656
656
|
scope: "col",
|
|
657
657
|
children: e.label
|
|
658
658
|
}, e.key))] }) }),
|
|
659
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ d("tbody", { children: M.map((e, t) => /* @__PURE__ */ f("tr", { children: [/* @__PURE__ */ d("th", {
|
|
660
660
|
scope: "row",
|
|
661
661
|
children: O(v(e, g))
|
|
662
|
-
}), k ? /* @__PURE__ */
|
|
662
|
+
}), k ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("td", { children: D(_(e[st])) }), /* @__PURE__ */ d("td", { children: Fe.format(ct[t]?.share ?? 0) })] }) : c.map((t) => /* @__PURE__ */ d("td", { children: D(_(e[t.key]), t) }, t.key))] }, `row-${t}`)) })
|
|
663
663
|
]
|
|
664
664
|
})
|
|
665
665
|
})
|