dynamic-mui 2.0.26 → 2.2.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/README.md +218 -37
- package/dist/AxisSharedComponents-BbsKw1BT.js +3 -0
- package/dist/AxisSharedComponents-xLtpOLH_.mjs +605 -0
- package/dist/ChartsAxis-CANvBdY9.mjs +47 -0
- package/dist/ChartsAxis-EZ7m_KrU.js +1 -0
- package/dist/ChartsGrid-BCRTvNTr.js +3 -0
- package/dist/ChartsGrid-C_HT7qpL.mjs +381 -0
- package/dist/ChartsWrapper-CM7EDyAK.js +5 -0
- package/dist/ChartsWrapper-CO5_Z6BD.mjs +1878 -0
- package/dist/ChartsXAxis-CPmuCRhq.mjs +487 -0
- package/dist/ChartsXAxis-DFFY1sPg.js +3 -0
- package/dist/ChartsYAxis-DLUMr9vG.mjs +392 -0
- package/dist/ChartsYAxis-fpevi1sP.js +1 -0
- package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +237 -0
- package/dist/XmlShapeDeserializer-XKJAoqLc.js +1 -0
- package/dist/ai/client.d.ts +2 -0
- package/dist/ai/index.d.ts +4 -0
- package/dist/ai/mapping.d.ts +14 -0
- package/dist/ai/react/AIFill.d.ts +25 -0
- package/dist/ai/react/AIForm.d.ts +29 -0
- package/dist/ai/react/AIFormGenerator.d.ts +20 -0
- package/dist/ai/react/AISchemaReview.d.ts +18 -0
- package/dist/ai/react/AITextAssist.d.ts +35 -0
- package/dist/ai/react/AIVisionImport.d.ts +21 -0
- package/dist/ai/react/index.d.ts +6 -0
- package/dist/ai/types.d.ts +107 -0
- package/dist/clampAngle-BvZjnf53.mjs +11 -0
- package/dist/clampAngle-DpAsDoeT.js +1 -0
- package/dist/components/FormGenerator.d.ts +46 -1
- package/dist/components/controls/AddressField/addressfield.d.ts +2 -0
- package/dist/components/controls/Alert/alert.d.ts +3 -0
- package/dist/components/controls/AsyncAutocomplete/asyncautocomplete.d.ts +9 -0
- package/dist/components/controls/Button/button.d.ts +3 -0
- package/dist/components/controls/CascadeSelect/cascadeselect.d.ts +2 -0
- package/dist/components/controls/CheckBox/checkbox.d.ts +1 -1
- package/dist/components/controls/ChipSelect/chipselect.d.ts +3 -0
- package/dist/components/controls/ColorPicker/colorpicker.d.ts +3 -0
- package/dist/components/controls/Computed/computed.d.ts +7 -0
- package/dist/components/controls/ConsentField/consentfield.d.ts +3 -0
- package/dist/components/controls/CurrencyField/currencyfield.d.ts +2 -0
- package/dist/components/controls/DateRangePicker/daterangepicker.d.ts +3 -0
- package/dist/components/controls/EditableTable/editabletable.d.ts +2 -0
- package/dist/components/controls/FileUpload/fileupload.d.ts +3 -0
- package/dist/components/controls/FormWizard/formwizard.d.ts +2 -0
- package/dist/components/controls/GeoField/geofield.d.ts +6 -0
- package/dist/components/controls/IntlPhone/intlphone.d.ts +2 -0
- package/dist/components/controls/KeyValueField/keyvaluefield.d.ts +2 -0
- package/dist/components/controls/LocationField/locationfield.d.ts +1 -1
- package/dist/components/controls/MarkdownEditor/markdowneditor.d.ts +3 -0
- package/dist/components/controls/MatrixField/matrixfield.d.ts +3 -0
- package/dist/components/controls/MultiTextbox/multitextbox.d.ts +1 -1
- package/dist/components/controls/NpsScale/npsscale.d.ts +3 -0
- package/dist/components/controls/NumberField/numberfield.d.ts +1 -1
- package/dist/components/controls/NumberStepper/numberstepper.d.ts +2 -0
- package/dist/components/controls/OtpField/otpfield.d.ts +2 -0
- package/dist/components/controls/PasswordField/passwordfield.d.ts +2 -0
- package/dist/components/controls/PhoneField/phonefield.d.ts +2 -0
- package/dist/components/controls/Radio/radio.d.ts +1 -1
- package/dist/components/controls/Rating/rating.d.ts +3 -0
- package/dist/components/controls/RichTextEditor/richtexteditor.d.ts +3 -0
- package/dist/components/controls/Select/select.d.ts +1 -1
- package/dist/components/controls/Slider/slider.d.ts +3 -0
- package/dist/components/controls/SummaryField/summaryfield.d.ts +7 -0
- package/dist/components/controls/Switch/switch.d.ts +1 -1
- package/dist/components/controls/TagsInput/tagsinput.d.ts +3 -0
- package/dist/components/controls/TextField/textfield.d.ts +1 -1
- package/dist/components/controls/ToggleButtons/togglebuttons.d.ts +3 -0
- package/dist/components/controls/index.d.ts +60 -0
- package/dist/createSelector-B-9FwV16.mjs +430 -0
- package/dist/createSelector-f0oqn8Lr.js +7 -0
- package/dist/date-utils-CFUUt6NL.js +4 -0
- package/dist/date-utils-pGzaKb0p.mjs +477 -0
- package/dist/dynamic-mui.cjs.js +1 -1
- package/dist/dynamic-mui.es.js +19 -6
- package/dist/index--8Zky9Oh.js +299 -0
- package/dist/index-6WTs1Xy_.js +1 -0
- package/dist/index-B1R1akM2.js +1 -0
- package/dist/index-BW8_rRff.js +7 -0
- package/dist/index-BXFVK_GX.js +1 -0
- package/dist/index-B_KNUTjy.js +1 -0
- package/dist/index-BhaKvHkU.mjs +62051 -0
- package/dist/index-Bif92ima.js +1 -0
- package/dist/index-BnZOu8CL.js +1 -0
- package/dist/index-CDxpgRlR.mjs +7 -0
- package/dist/index-CThMfvtJ.mjs +2555 -0
- package/dist/index-CVqLvm8B.js +1 -0
- package/dist/index-CodJBIn6.mjs +1665 -0
- package/dist/index-Cr6Wp_S-.mjs +3141 -0
- package/dist/index-CslPwsrf.mjs +4 -0
- package/dist/index-CuV0MQzZ.mjs +1173 -0
- package/dist/{index-BGfWFaIb.mjs → index-DA0XouZs.mjs} +16 -16
- package/dist/index-DKS5Sz9e.js +14 -0
- package/dist/index-DSkYYZuW.mjs +4 -0
- package/dist/index-DU78_FiA.js +1 -0
- package/dist/index-D_mYhgJ0.js +10 -0
- package/dist/index-DcWfyXJp.mjs +92 -0
- package/dist/index-Dlimbnxj.mjs +2965 -0
- package/dist/index-MllWgTJ5.mjs +9372 -0
- package/dist/index-in5z9hUb.js +133 -0
- package/dist/index-qUW7FnZ-.mjs +20540 -0
- package/dist/index.browser-BSu11T_q.mjs +363 -0
- package/dist/index.browser-By7-GABP.js +4 -0
- package/dist/index.d.ts +4 -1
- package/dist/isDeepEqual-BHfPvf9U.mjs +393 -0
- package/dist/isDeepEqual-CqxZGVRk.js +1 -0
- package/dist/loadCognitoIdentity-DtYTy-DW.js +1 -0
- package/dist/loadCognitoIdentity-DzdR91GB.mjs +872 -0
- package/dist/loadSts-Cic6UToN.mjs +593 -0
- package/dist/loadSts-csbFP6zX.js +1 -0
- package/dist/noAuth-B8ui2kBg.mjs +71 -0
- package/dist/noAuth-JPA2o4dt.js +1 -0
- package/dist/playground/AIContext.d.ts +18 -0
- package/dist/playground/AIPanel.d.ts +10 -0
- package/dist/playground/DemoGallery.d.ts +6 -0
- package/dist/playground/Sidebar.d.ts +9 -1
- package/dist/playground/demoForms.d.ts +3 -0
- package/dist/playground/demoRecipes.d.ts +15 -0
- package/dist/playground/demoVariants.d.ts +11 -0
- package/dist/schema.d.ts +404 -0
- package/dist/theme/theme.d.ts +5 -0
- package/dist/types.d.ts +97 -10
- package/dist/useAxis-DSbfEtO7.js +3 -0
- package/dist/useAxis-SiNBMMWq.mjs +3010 -0
- package/dist/useChartContainerProps-Bl3hO-r1.mjs +5418 -0
- package/dist/useChartContainerProps-C_C_PZoi.js +12 -0
- package/dist/useItemHighlightedGetter-9CIwqsGj.js +1 -0
- package/dist/useItemHighlightedGetter-CTISrNdV.mjs +88 -0
- package/dist/util/helper.d.ts +2 -30
- package/dist/util/premiumStyles.d.ts +27 -0
- package/dist/util/rules.d.ts +35 -0
- package/package.json +2 -2
- package/dist/index-BHROoqH4.js +0 -1
- package/dist/index-S6BQaF_5.js +0 -465
- package/dist/index-Wtsz8Yiv.mjs +0 -102315
- package/dist/loadCognitoIdentity-CiUaDv6q.mjs +0 -935
- package/dist/loadCognitoIdentity-DN_MCNUl.js +0 -1
|
@@ -0,0 +1,1173 @@
|
|
|
1
|
+
import { a as W, b as ye, j as P, _ as C, i as Fe, h as ue, c as le, s as xe, g as ce, P as e, u as He } from "./index-BhaKvHkU.mjs";
|
|
2
|
+
import * as Y from "react";
|
|
3
|
+
import { b as Me, h as Ee, j as E, e as Se, D as De } from "./useAxis-SiNBMMWq.mjs";
|
|
4
|
+
import { u as $e, b as Pe, c as we, A as oe, d as de, e as Ie, f as Ve, g as _e, C as Ue, h as Ge, i as We, j as ze } from "./ChartsWrapper-CO5_Z6BD.mjs";
|
|
5
|
+
import { i as he, j as N, t as Be, k as V, l as S, m as te, n as Ae, p as me, o as G, q as T, r as $, v as be, w as Ke, x as Je, y as fe, z as Qe, A as Xe, B as Ye, D as Ze, E as en, F as nn, u as sn, C as an, a as rn } from "./useChartContainerProps-Bl3hO-r1.mjs";
|
|
6
|
+
import { G as Kn } from "./useChartContainerProps-Bl3hO-r1.mjs";
|
|
7
|
+
import { w as tn, u as on } from "./useItemHighlightedGetter-CTISrNdV.mjs";
|
|
8
|
+
import { f as dn } from "./isDeepEqual-BHfPvf9U.mjs";
|
|
9
|
+
function un(n) {
|
|
10
|
+
return n.innerRadius;
|
|
11
|
+
}
|
|
12
|
+
function ln(n) {
|
|
13
|
+
return n.outerRadius;
|
|
14
|
+
}
|
|
15
|
+
function cn(n) {
|
|
16
|
+
return n.startAngle;
|
|
17
|
+
}
|
|
18
|
+
function gn(n) {
|
|
19
|
+
return n.endAngle;
|
|
20
|
+
}
|
|
21
|
+
function Rn(n) {
|
|
22
|
+
return n && n.padAngle;
|
|
23
|
+
}
|
|
24
|
+
function pn(n, a, i, d, g, A, c, r) {
|
|
25
|
+
var R = i - n, l = d - a, s = c - g, t = r - A, o = t * R - s * l;
|
|
26
|
+
if (!(o * o < N))
|
|
27
|
+
return o = (s * (a - A) - t * (n - g)) / o, [n + o * R, a + o * l];
|
|
28
|
+
}
|
|
29
|
+
function X(n, a, i, d, g, A, c) {
|
|
30
|
+
var r = n - i, R = a - d, l = (c ? A : -A) / G(r * r + R * R), s = l * R, t = -l * r, o = n + s, u = a + t, p = i + s, f = d + t, m = (o + p) / 2, y = (u + f) / 2, b = p - o, I = f - u, v = b * b + I * I, j = g - A, O = o * f - p * u, F = (I < 0 ? -1 : 1) * G(Je(0, j * j * v - O * O)), L = (O * I - b * F) / v, H = (-O * b - I * F) / v, q = (O * I + b * F) / v, k = (-O * b + I * F) / v, M = L - m, h = H - y, x = q - m, w = k - y;
|
|
31
|
+
return M * M + h * h > x * x + w * w && (L = q, H = k), {
|
|
32
|
+
cx: L,
|
|
33
|
+
cy: H,
|
|
34
|
+
x01: -s,
|
|
35
|
+
y01: -t,
|
|
36
|
+
x11: L * (g / j - 1),
|
|
37
|
+
y11: H * (g / j - 1)
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function Le() {
|
|
41
|
+
var n = un, a = ln, i = $(0), d = null, g = cn, A = gn, c = Rn, r = null, R = tn(l);
|
|
42
|
+
function l() {
|
|
43
|
+
var s, t, o = +n.apply(this, arguments), u = +a.apply(this, arguments), p = g.apply(this, arguments) - he, f = A.apply(this, arguments) - he, m = Ae(f - p), y = f > p;
|
|
44
|
+
if (r || (r = s = R()), u < o && (t = u, u = o, o = t), !(u > N)) r.moveTo(0, 0);
|
|
45
|
+
else if (m > Be - N)
|
|
46
|
+
r.moveTo(u * V(p), u * S(p)), r.arc(0, 0, u, p, f, !y), o > N && (r.moveTo(o * V(f), o * S(f)), r.arc(0, 0, o, f, p, y));
|
|
47
|
+
else {
|
|
48
|
+
var b = p, I = f, v = p, j = f, O = m, F = m, L = c.apply(this, arguments) / 2, H = L > N && (d ? +d.apply(this, arguments) : G(o * o + u * u)), q = te(Ae(u - o) / 2, +i.apply(this, arguments)), k = q, M = q, h, x;
|
|
49
|
+
if (H > N) {
|
|
50
|
+
var w = be(H / o * S(L)), z = be(H / u * S(L));
|
|
51
|
+
(O -= w * 2) > N ? (w *= y ? 1 : -1, v += w, j -= w) : (O = 0, v = j = (p + f) / 2), (F -= z * 2) > N ? (z *= y ? 1 : -1, b += z, I -= z) : (F = 0, b = I = (p + f) / 2);
|
|
52
|
+
}
|
|
53
|
+
var _ = u * V(b), U = u * S(b), B = o * V(j), K = o * S(j);
|
|
54
|
+
if (q > N) {
|
|
55
|
+
var J = u * V(I), Q = u * S(I), ee = o * V(v), ne = o * S(v), D;
|
|
56
|
+
if (m < me)
|
|
57
|
+
if (D = pn(_, U, ee, ne, J, Q, B, K)) {
|
|
58
|
+
var ie = _ - D[0], se = U - D[1], ae = J - D[0], re = Q - D[1], Re = 1 / S(Ke((ie * ae + se * re) / (G(ie * ie + se * se) * G(ae * ae + re * re))) / 2), pe = G(D[0] * D[0] + D[1] * D[1]);
|
|
59
|
+
k = te(q, (o - pe) / (Re - 1)), M = te(q, (u - pe) / (Re + 1));
|
|
60
|
+
} else
|
|
61
|
+
k = M = 0;
|
|
62
|
+
}
|
|
63
|
+
F > N ? M > N ? (h = X(ee, ne, _, U, u, M, y), x = X(J, Q, B, K, u, M, y), r.moveTo(h.cx + h.x01, h.cy + h.y01), M < q ? r.arc(h.cx, h.cy, M, T(h.y01, h.x01), T(x.y01, x.x01), !y) : (r.arc(h.cx, h.cy, M, T(h.y01, h.x01), T(h.y11, h.x11), !y), r.arc(0, 0, u, T(h.cy + h.y11, h.cx + h.x11), T(x.cy + x.y11, x.cx + x.x11), !y), r.arc(x.cx, x.cy, M, T(x.y11, x.x11), T(x.y01, x.x01), !y))) : (r.moveTo(_, U), r.arc(0, 0, u, b, I, !y)) : r.moveTo(_, U), !(o > N) || !(O > N) ? r.lineTo(B, K) : k > N ? (h = X(B, K, J, Q, o, -k, y), x = X(_, U, ee, ne, o, -k, y), r.lineTo(h.cx + h.x01, h.cy + h.y01), k < q ? r.arc(h.cx, h.cy, k, T(h.y01, h.x01), T(x.y01, x.x01), !y) : (r.arc(h.cx, h.cy, k, T(h.y01, h.x01), T(h.y11, h.x11), !y), r.arc(0, 0, o, T(h.cy + h.y11, h.cx + h.x11), T(x.cy + x.y11, x.cx + x.x11), y), r.arc(x.cx, x.cy, k, T(x.y11, x.x11), T(x.y01, x.x01), !y))) : r.arc(0, 0, o, j, v, y);
|
|
64
|
+
}
|
|
65
|
+
if (r.closePath(), s) return r = null, s + "" || null;
|
|
66
|
+
}
|
|
67
|
+
return l.centroid = function() {
|
|
68
|
+
var s = (+n.apply(this, arguments) + +a.apply(this, arguments)) / 2, t = (+g.apply(this, arguments) + +A.apply(this, arguments)) / 2 - me / 2;
|
|
69
|
+
return [V(t) * s, S(t) * s];
|
|
70
|
+
}, l.innerRadius = function(s) {
|
|
71
|
+
return arguments.length ? (n = typeof s == "function" ? s : $(+s), l) : n;
|
|
72
|
+
}, l.outerRadius = function(s) {
|
|
73
|
+
return arguments.length ? (a = typeof s == "function" ? s : $(+s), l) : a;
|
|
74
|
+
}, l.cornerRadius = function(s) {
|
|
75
|
+
return arguments.length ? (i = typeof s == "function" ? s : $(+s), l) : i;
|
|
76
|
+
}, l.padRadius = function(s) {
|
|
77
|
+
return arguments.length ? (d = s == null ? null : typeof s == "function" ? s : $(+s), l) : d;
|
|
78
|
+
}, l.startAngle = function(s) {
|
|
79
|
+
return arguments.length ? (g = typeof s == "function" ? s : $(+s), l) : g;
|
|
80
|
+
}, l.endAngle = function(s) {
|
|
81
|
+
return arguments.length ? (A = typeof s == "function" ? s : $(+s), l) : A;
|
|
82
|
+
}, l.padAngle = function(s) {
|
|
83
|
+
return arguments.length ? (c = typeof s == "function" ? s : $(+s), l) : c;
|
|
84
|
+
}, l.context = function(s) {
|
|
85
|
+
return arguments.length ? (r = s ?? null, l) : r;
|
|
86
|
+
}, l;
|
|
87
|
+
}
|
|
88
|
+
function Ce() {
|
|
89
|
+
return $e("pie");
|
|
90
|
+
}
|
|
91
|
+
function ke() {
|
|
92
|
+
return Me().use(Ee).pie ?? {};
|
|
93
|
+
}
|
|
94
|
+
function hn(n, a) {
|
|
95
|
+
const i = E(n.startAngle, a.startAngle), d = E(n.endAngle, a.endAngle), g = E(n.innerRadius, a.innerRadius), A = E(n.outerRadius, a.outerRadius), c = E(n.paddingAngle, a.paddingAngle), r = E(n.cornerRadius, a.cornerRadius);
|
|
96
|
+
return (R) => ({
|
|
97
|
+
startAngle: i(R),
|
|
98
|
+
endAngle: d(R),
|
|
99
|
+
innerRadius: g(R),
|
|
100
|
+
outerRadius: A(R),
|
|
101
|
+
paddingAngle: c(R),
|
|
102
|
+
cornerRadius: r(R)
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function An(n) {
|
|
106
|
+
const a = {
|
|
107
|
+
startAngle: (n.startAngle + n.endAngle) / 2,
|
|
108
|
+
endAngle: (n.startAngle + n.endAngle) / 2,
|
|
109
|
+
innerRadius: n.innerRadius,
|
|
110
|
+
outerRadius: n.outerRadius,
|
|
111
|
+
paddingAngle: n.paddingAngle,
|
|
112
|
+
cornerRadius: n.cornerRadius
|
|
113
|
+
};
|
|
114
|
+
return Pe({
|
|
115
|
+
startAngle: n.startAngle,
|
|
116
|
+
endAngle: n.endAngle,
|
|
117
|
+
innerRadius: n.innerRadius,
|
|
118
|
+
outerRadius: n.outerRadius,
|
|
119
|
+
paddingAngle: n.paddingAngle,
|
|
120
|
+
cornerRadius: n.cornerRadius
|
|
121
|
+
}, {
|
|
122
|
+
createInterpolator: hn,
|
|
123
|
+
transformProps: (i) => ({
|
|
124
|
+
d: Le().cornerRadius(i.cornerRadius)({
|
|
125
|
+
padAngle: i.paddingAngle,
|
|
126
|
+
innerRadius: i.innerRadius,
|
|
127
|
+
outerRadius: i.outerRadius,
|
|
128
|
+
startAngle: i.startAngle,
|
|
129
|
+
endAngle: i.endAngle
|
|
130
|
+
}),
|
|
131
|
+
visibility: i.startAngle === i.endAngle ? "hidden" : "visible"
|
|
132
|
+
}),
|
|
133
|
+
applyProps(i, d) {
|
|
134
|
+
i.setAttribute("d", d.d), i.setAttribute("visibility", d.visibility);
|
|
135
|
+
},
|
|
136
|
+
initialProps: a,
|
|
137
|
+
skip: n.skipAnimation,
|
|
138
|
+
ref: n.ref
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function mn(n, a) {
|
|
142
|
+
const i = E(n.startAngle, a.startAngle), d = E(n.endAngle, a.endAngle), g = E(n.innerRadius, a.innerRadius), A = E(n.outerRadius, a.outerRadius), c = E(n.paddingAngle, a.paddingAngle), r = E(n.cornerRadius, a.cornerRadius);
|
|
143
|
+
return (R) => ({
|
|
144
|
+
startAngle: i(R),
|
|
145
|
+
endAngle: d(R),
|
|
146
|
+
innerRadius: g(R),
|
|
147
|
+
outerRadius: A(R),
|
|
148
|
+
paddingAngle: c(R),
|
|
149
|
+
cornerRadius: r(R)
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function bn(n) {
|
|
153
|
+
const a = {
|
|
154
|
+
startAngle: (n.startAngle + n.endAngle) / 2,
|
|
155
|
+
endAngle: (n.startAngle + n.endAngle) / 2,
|
|
156
|
+
innerRadius: n.arcLabelRadius ?? n.innerRadius,
|
|
157
|
+
outerRadius: n.arcLabelRadius ?? n.outerRadius,
|
|
158
|
+
paddingAngle: n.paddingAngle,
|
|
159
|
+
cornerRadius: n.cornerRadius
|
|
160
|
+
};
|
|
161
|
+
return Pe({
|
|
162
|
+
startAngle: n.startAngle,
|
|
163
|
+
endAngle: n.endAngle,
|
|
164
|
+
innerRadius: n.arcLabelRadius ?? n.innerRadius,
|
|
165
|
+
outerRadius: n.arcLabelRadius ?? n.outerRadius,
|
|
166
|
+
paddingAngle: n.paddingAngle,
|
|
167
|
+
cornerRadius: n.cornerRadius
|
|
168
|
+
}, {
|
|
169
|
+
createInterpolator: mn,
|
|
170
|
+
transformProps: (i) => {
|
|
171
|
+
const [d, g] = Le().cornerRadius(i.cornerRadius).centroid({
|
|
172
|
+
padAngle: i.paddingAngle,
|
|
173
|
+
startAngle: i.startAngle,
|
|
174
|
+
endAngle: i.endAngle,
|
|
175
|
+
innerRadius: i.innerRadius,
|
|
176
|
+
outerRadius: i.outerRadius
|
|
177
|
+
});
|
|
178
|
+
return {
|
|
179
|
+
x: d,
|
|
180
|
+
y: g
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
applyProps(i, {
|
|
184
|
+
x: d,
|
|
185
|
+
y: g
|
|
186
|
+
}) {
|
|
187
|
+
i.setAttribute("x", d.toString()), i.setAttribute("y", g.toString());
|
|
188
|
+
},
|
|
189
|
+
initialProps: a,
|
|
190
|
+
skip: n.skipAnimation,
|
|
191
|
+
ref: n.ref
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
const fn = ["className", "classes", "color", "dataIndex", "id", "isFaded", "isHighlighted", "isFocused", "onClick", "cornerRadius", "startAngle", "endAngle", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "stroke", "skipInteraction"];
|
|
195
|
+
function yn(n) {
|
|
196
|
+
return ce("MuiPieArc", n);
|
|
197
|
+
}
|
|
198
|
+
const xn = ue("MuiPieArc", ["root", "highlighted", "faded", "series", "focusIndicator"]), Pn = (n) => {
|
|
199
|
+
const {
|
|
200
|
+
classes: a,
|
|
201
|
+
id: i,
|
|
202
|
+
isFaded: d,
|
|
203
|
+
isHighlighted: g,
|
|
204
|
+
dataIndex: A
|
|
205
|
+
} = n, c = {
|
|
206
|
+
root: ["root", `series-${i}`, `data-index-${A}`, g && "highlighted", d && "faded"]
|
|
207
|
+
};
|
|
208
|
+
return le(c, yn, a);
|
|
209
|
+
}, In = xe("path", {
|
|
210
|
+
name: "MuiPieArc",
|
|
211
|
+
slot: "Root",
|
|
212
|
+
overridesResolver: (n, a) => a.arc
|
|
213
|
+
// FIXME: Inconsistent naming with slot
|
|
214
|
+
})({
|
|
215
|
+
transitionProperty: "opacity, fill, filter",
|
|
216
|
+
transitionDuration: `${de}ms`,
|
|
217
|
+
transitionTimingFunction: oe
|
|
218
|
+
}), Z = /* @__PURE__ */ Y.forwardRef(function(a, i) {
|
|
219
|
+
const {
|
|
220
|
+
className: d,
|
|
221
|
+
classes: g,
|
|
222
|
+
color: A,
|
|
223
|
+
dataIndex: c,
|
|
224
|
+
id: r,
|
|
225
|
+
isFaded: R,
|
|
226
|
+
isHighlighted: l,
|
|
227
|
+
isFocused: s,
|
|
228
|
+
onClick: t,
|
|
229
|
+
cornerRadius: o,
|
|
230
|
+
startAngle: u,
|
|
231
|
+
endAngle: p,
|
|
232
|
+
innerRadius: f,
|
|
233
|
+
outerRadius: m,
|
|
234
|
+
paddingAngle: y,
|
|
235
|
+
skipAnimation: b,
|
|
236
|
+
stroke: I,
|
|
237
|
+
skipInteraction: v
|
|
238
|
+
} = a, j = W(a, fn), O = ye(), F = I ?? (O.vars || O).palette.background.paper, L = {
|
|
239
|
+
id: r,
|
|
240
|
+
dataIndex: c,
|
|
241
|
+
classes: g,
|
|
242
|
+
color: A,
|
|
243
|
+
isFaded: R,
|
|
244
|
+
isHighlighted: l,
|
|
245
|
+
isFocused: s
|
|
246
|
+
}, H = Pn(L), q = we({
|
|
247
|
+
type: "pie",
|
|
248
|
+
seriesId: r,
|
|
249
|
+
dataIndex: c
|
|
250
|
+
}, v), k = An({
|
|
251
|
+
cornerRadius: o,
|
|
252
|
+
startAngle: u,
|
|
253
|
+
endAngle: p,
|
|
254
|
+
innerRadius: f,
|
|
255
|
+
outerRadius: m,
|
|
256
|
+
paddingAngle: y,
|
|
257
|
+
skipAnimation: b,
|
|
258
|
+
ref: i
|
|
259
|
+
});
|
|
260
|
+
return /* @__PURE__ */ P.jsx(In, C({
|
|
261
|
+
onClick: t,
|
|
262
|
+
cursor: t ? "pointer" : "unset",
|
|
263
|
+
ownerState: L,
|
|
264
|
+
className: Fe(H.root, d),
|
|
265
|
+
fill: L.color,
|
|
266
|
+
opacity: L.isFaded ? 0.3 : 1,
|
|
267
|
+
filter: L.isHighlighted ? "brightness(120%)" : "none",
|
|
268
|
+
stroke: F,
|
|
269
|
+
strokeWidth: 1,
|
|
270
|
+
strokeLinejoin: "round",
|
|
271
|
+
"data-highlighted": L.isHighlighted || void 0,
|
|
272
|
+
"data-faded": L.isFaded || void 0
|
|
273
|
+
}, j, q, k));
|
|
274
|
+
});
|
|
275
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "PieArc");
|
|
276
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
277
|
+
// ----------------------------- Warning --------------------------------
|
|
278
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
279
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
280
|
+
// ----------------------------------------------------------------------
|
|
281
|
+
classes: e.object,
|
|
282
|
+
cornerRadius: e.number.isRequired,
|
|
283
|
+
dataIndex: e.number.isRequired,
|
|
284
|
+
endAngle: e.number.isRequired,
|
|
285
|
+
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
286
|
+
innerRadius: e.number.isRequired,
|
|
287
|
+
isFaded: e.bool.isRequired,
|
|
288
|
+
isFocused: e.bool.isRequired,
|
|
289
|
+
isHighlighted: e.bool.isRequired,
|
|
290
|
+
outerRadius: e.number.isRequired,
|
|
291
|
+
paddingAngle: e.number.isRequired,
|
|
292
|
+
/**
|
|
293
|
+
* If `true`, the animation is disabled.
|
|
294
|
+
*/
|
|
295
|
+
skipAnimation: e.bool,
|
|
296
|
+
/**
|
|
297
|
+
* If `true`, the default event handlers are disabled.
|
|
298
|
+
* Those are used, for example, to display a tooltip or highlight the arc on hover.
|
|
299
|
+
*/
|
|
300
|
+
skipInteraction: e.bool,
|
|
301
|
+
startAngle: e.number.isRequired
|
|
302
|
+
});
|
|
303
|
+
function Ln() {
|
|
304
|
+
const n = Ie();
|
|
305
|
+
return (a) => n !== null && dn(n, a);
|
|
306
|
+
}
|
|
307
|
+
function Te(n, a, i, d) {
|
|
308
|
+
const {
|
|
309
|
+
faded: g,
|
|
310
|
+
highlighted: A,
|
|
311
|
+
paddingAngle: c = 0,
|
|
312
|
+
cornerRadius: r = 0
|
|
313
|
+
} = n, {
|
|
314
|
+
radius: {
|
|
315
|
+
inner: R = 0,
|
|
316
|
+
label: l,
|
|
317
|
+
outer: s
|
|
318
|
+
}
|
|
319
|
+
} = a, t = C({
|
|
320
|
+
additionalRadius: 0
|
|
321
|
+
}, d && g || i && A || {}), o = Math.max(0, Se(t.paddingAngle ?? c)), u = Math.max(0, t.innerRadius ?? R), p = Math.max(0, t.outerRadius ?? s + t.additionalRadius), f = t.cornerRadius ?? r, m = t.arcLabelRadius ?? l ?? (u + p) / 2;
|
|
322
|
+
return {
|
|
323
|
+
paddingAngle: o,
|
|
324
|
+
innerRadius: u,
|
|
325
|
+
outerRadius: p,
|
|
326
|
+
cornerRadius: f,
|
|
327
|
+
arcLabelRadius: m
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function ve(n) {
|
|
331
|
+
const {
|
|
332
|
+
id: a,
|
|
333
|
+
data: i,
|
|
334
|
+
faded: d,
|
|
335
|
+
highlighted: g
|
|
336
|
+
} = n, {
|
|
337
|
+
isFaded: A,
|
|
338
|
+
isHighlighted: c
|
|
339
|
+
} = on(), r = Ln();
|
|
340
|
+
return Y.useMemo(() => i.map((l, s) => {
|
|
341
|
+
const t = {
|
|
342
|
+
seriesId: a,
|
|
343
|
+
dataIndex: s
|
|
344
|
+
}, o = c(t), u = !o && A(t), p = r({
|
|
345
|
+
type: "pie",
|
|
346
|
+
seriesId: a,
|
|
347
|
+
dataIndex: s
|
|
348
|
+
}), f = Te(n, {
|
|
349
|
+
radius: {
|
|
350
|
+
inner: n.innerRadius ?? 0,
|
|
351
|
+
outer: n.outerRadius,
|
|
352
|
+
label: n.arcLabelRadius ?? 0,
|
|
353
|
+
available: 0
|
|
354
|
+
}
|
|
355
|
+
}, o, u), m = C({
|
|
356
|
+
additionalRadius: 0
|
|
357
|
+
}, u && d || o && g || {});
|
|
358
|
+
return C({}, l, m, {
|
|
359
|
+
dataIndex: s,
|
|
360
|
+
isFaded: u,
|
|
361
|
+
isHighlighted: o,
|
|
362
|
+
isFocused: p
|
|
363
|
+
}, f);
|
|
364
|
+
}), [i, a, c, A, r, n, d, g]);
|
|
365
|
+
}
|
|
366
|
+
const Cn = ["slots", "slotProps", "innerRadius", "outerRadius", "cornerRadius", "paddingAngle", "id", "highlighted", "faded", "data", "onItemClick", "skipAnimation"];
|
|
367
|
+
function Oe(n) {
|
|
368
|
+
const {
|
|
369
|
+
slots: a,
|
|
370
|
+
slotProps: i,
|
|
371
|
+
innerRadius: d = 0,
|
|
372
|
+
outerRadius: g,
|
|
373
|
+
cornerRadius: A = 0,
|
|
374
|
+
paddingAngle: c = 0,
|
|
375
|
+
id: r,
|
|
376
|
+
highlighted: R,
|
|
377
|
+
faded: l = {
|
|
378
|
+
additionalRadius: -5
|
|
379
|
+
},
|
|
380
|
+
data: s,
|
|
381
|
+
onItemClick: t,
|
|
382
|
+
skipAnimation: o
|
|
383
|
+
} = n, u = W(n, Cn), p = ve({
|
|
384
|
+
innerRadius: d,
|
|
385
|
+
outerRadius: g,
|
|
386
|
+
cornerRadius: A,
|
|
387
|
+
paddingAngle: c,
|
|
388
|
+
id: r,
|
|
389
|
+
highlighted: R,
|
|
390
|
+
faded: l,
|
|
391
|
+
data: s
|
|
392
|
+
});
|
|
393
|
+
if (s.length === 0)
|
|
394
|
+
return null;
|
|
395
|
+
const f = a?.pieArc ?? Z;
|
|
396
|
+
return /* @__PURE__ */ P.jsx("g", C({}, u, {
|
|
397
|
+
children: p.map((m, y) => /* @__PURE__ */ P.jsx(f, C({
|
|
398
|
+
startAngle: m.startAngle,
|
|
399
|
+
endAngle: m.endAngle,
|
|
400
|
+
paddingAngle: m.paddingAngle,
|
|
401
|
+
innerRadius: m.innerRadius,
|
|
402
|
+
outerRadius: m.outerRadius,
|
|
403
|
+
cornerRadius: m.cornerRadius,
|
|
404
|
+
skipAnimation: o ?? !1,
|
|
405
|
+
id: r,
|
|
406
|
+
color: m.color,
|
|
407
|
+
dataIndex: y,
|
|
408
|
+
isFaded: m.isFaded,
|
|
409
|
+
isHighlighted: m.isHighlighted,
|
|
410
|
+
isFocused: m.isFocused,
|
|
411
|
+
onClick: t && ((b) => {
|
|
412
|
+
t(b, {
|
|
413
|
+
type: "pie",
|
|
414
|
+
seriesId: r,
|
|
415
|
+
dataIndex: y
|
|
416
|
+
}, m);
|
|
417
|
+
})
|
|
418
|
+
}, i?.pieArc), m.dataIndex))
|
|
419
|
+
}));
|
|
420
|
+
}
|
|
421
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
422
|
+
// ----------------------------- Warning --------------------------------
|
|
423
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
424
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
425
|
+
// ----------------------------------------------------------------------
|
|
426
|
+
/**
|
|
427
|
+
* The radius between circle center and the arc label in px.
|
|
428
|
+
* @default (innerRadius - outerRadius) / 2
|
|
429
|
+
*/
|
|
430
|
+
arcLabelRadius: e.number,
|
|
431
|
+
/**
|
|
432
|
+
* The radius applied to arc corners (similar to border radius).
|
|
433
|
+
* @default 0
|
|
434
|
+
*/
|
|
435
|
+
cornerRadius: e.number,
|
|
436
|
+
data: e.arrayOf(e.shape({
|
|
437
|
+
color: e.string.isRequired,
|
|
438
|
+
endAngle: e.number.isRequired,
|
|
439
|
+
formattedValue: e.string.isRequired,
|
|
440
|
+
id: e.oneOfType([e.number, e.string]),
|
|
441
|
+
index: e.number.isRequired,
|
|
442
|
+
label: e.oneOfType([e.func, e.string]),
|
|
443
|
+
labelMarkType: e.oneOfType([e.oneOf(["circle", "line", "square"]), e.func]),
|
|
444
|
+
padAngle: e.number.isRequired,
|
|
445
|
+
startAngle: e.number.isRequired,
|
|
446
|
+
value: e.number.isRequired
|
|
447
|
+
})).isRequired,
|
|
448
|
+
/**
|
|
449
|
+
* Override the arc attributes when it is faded.
|
|
450
|
+
* @default { additionalRadius: -5 }
|
|
451
|
+
*/
|
|
452
|
+
faded: e.shape({
|
|
453
|
+
additionalRadius: e.number,
|
|
454
|
+
arcLabelRadius: e.number,
|
|
455
|
+
color: e.string,
|
|
456
|
+
cornerRadius: e.number,
|
|
457
|
+
innerRadius: e.number,
|
|
458
|
+
outerRadius: e.number,
|
|
459
|
+
paddingAngle: e.number
|
|
460
|
+
}),
|
|
461
|
+
/**
|
|
462
|
+
* Override the arc attributes when it is highlighted.
|
|
463
|
+
*/
|
|
464
|
+
highlighted: e.shape({
|
|
465
|
+
additionalRadius: e.number,
|
|
466
|
+
arcLabelRadius: e.number,
|
|
467
|
+
color: e.string,
|
|
468
|
+
cornerRadius: e.number,
|
|
469
|
+
innerRadius: e.number,
|
|
470
|
+
outerRadius: e.number,
|
|
471
|
+
paddingAngle: e.number
|
|
472
|
+
}),
|
|
473
|
+
/**
|
|
474
|
+
* The id of this series.
|
|
475
|
+
*/
|
|
476
|
+
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
477
|
+
/**
|
|
478
|
+
* The radius between circle center and the beginning of the arc.
|
|
479
|
+
* @default 0
|
|
480
|
+
*/
|
|
481
|
+
innerRadius: e.number,
|
|
482
|
+
/**
|
|
483
|
+
* Callback fired when a pie item is clicked.
|
|
484
|
+
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
485
|
+
* @param {PieItemIdentifier} pieItemIdentifier The pie item identifier.
|
|
486
|
+
* @param {DefaultizedPieValueType} item The pie item.
|
|
487
|
+
*/
|
|
488
|
+
onItemClick: e.func,
|
|
489
|
+
/**
|
|
490
|
+
* The radius between circle center and the end of the arc.
|
|
491
|
+
*/
|
|
492
|
+
outerRadius: e.number.isRequired,
|
|
493
|
+
/**
|
|
494
|
+
* The padding angle (deg) between two arcs.
|
|
495
|
+
* @default 0
|
|
496
|
+
*/
|
|
497
|
+
paddingAngle: e.number,
|
|
498
|
+
/**
|
|
499
|
+
* If `true`, animations are skipped.
|
|
500
|
+
* @default false
|
|
501
|
+
*/
|
|
502
|
+
skipAnimation: e.bool,
|
|
503
|
+
/**
|
|
504
|
+
* The props used for each component slot.
|
|
505
|
+
* @default {}
|
|
506
|
+
*/
|
|
507
|
+
slotProps: e.object,
|
|
508
|
+
/**
|
|
509
|
+
* Overridable component slots.
|
|
510
|
+
* @default {}
|
|
511
|
+
*/
|
|
512
|
+
slots: e.object
|
|
513
|
+
});
|
|
514
|
+
const kn = ["id", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden"];
|
|
515
|
+
function Tn(n) {
|
|
516
|
+
return ce("MuiPieArcLabel", n);
|
|
517
|
+
}
|
|
518
|
+
const vn = ue("MuiPieArcLabel", ["root", "highlighted", "faded", "animate", "series"]), On = (n) => {
|
|
519
|
+
const {
|
|
520
|
+
classes: a,
|
|
521
|
+
id: i,
|
|
522
|
+
isFaded: d,
|
|
523
|
+
isHighlighted: g,
|
|
524
|
+
skipAnimation: A
|
|
525
|
+
} = n, c = {
|
|
526
|
+
root: ["root", `series-${i}`, g && "highlighted", d && "faded", !A && "animate"]
|
|
527
|
+
};
|
|
528
|
+
return le(c, Tn, a);
|
|
529
|
+
}, qn = xe("text", {
|
|
530
|
+
name: "MuiPieArcLabel",
|
|
531
|
+
slot: "Root"
|
|
532
|
+
})(({
|
|
533
|
+
theme: n
|
|
534
|
+
}) => ({
|
|
535
|
+
fill: (n.vars || n).palette.text.primary,
|
|
536
|
+
textAnchor: "middle",
|
|
537
|
+
dominantBaseline: "middle",
|
|
538
|
+
pointerEvents: "none",
|
|
539
|
+
animationName: "animate-opacity",
|
|
540
|
+
animationDuration: "0s",
|
|
541
|
+
animationTimingFunction: oe,
|
|
542
|
+
transitionDuration: `${de}ms`,
|
|
543
|
+
transitionProperty: "opacity",
|
|
544
|
+
transitionTimingFunction: oe,
|
|
545
|
+
[`&.${vn.animate}`]: {
|
|
546
|
+
animationDuration: `${de}ms`
|
|
547
|
+
},
|
|
548
|
+
"@keyframes animate-opacity": {
|
|
549
|
+
from: {
|
|
550
|
+
opacity: 0
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
})), ge = /* @__PURE__ */ Y.forwardRef(function(a, i) {
|
|
554
|
+
const {
|
|
555
|
+
id: d,
|
|
556
|
+
classes: g,
|
|
557
|
+
color: A,
|
|
558
|
+
startAngle: c,
|
|
559
|
+
endAngle: r,
|
|
560
|
+
paddingAngle: R,
|
|
561
|
+
arcLabelRadius: l,
|
|
562
|
+
cornerRadius: s,
|
|
563
|
+
formattedArcLabel: t,
|
|
564
|
+
isHighlighted: o,
|
|
565
|
+
isFaded: u,
|
|
566
|
+
skipAnimation: p,
|
|
567
|
+
hidden: f
|
|
568
|
+
} = a, m = W(a, kn), b = On({
|
|
569
|
+
id: d,
|
|
570
|
+
classes: g,
|
|
571
|
+
isFaded: u,
|
|
572
|
+
isHighlighted: o,
|
|
573
|
+
skipAnimation: p
|
|
574
|
+
}), I = bn({
|
|
575
|
+
cornerRadius: s,
|
|
576
|
+
startAngle: c,
|
|
577
|
+
endAngle: r,
|
|
578
|
+
innerRadius: l,
|
|
579
|
+
outerRadius: l,
|
|
580
|
+
paddingAngle: R,
|
|
581
|
+
skipAnimation: p,
|
|
582
|
+
ref: i
|
|
583
|
+
});
|
|
584
|
+
return /* @__PURE__ */ P.jsx(qn, C({
|
|
585
|
+
className: b.root
|
|
586
|
+
}, m, I, {
|
|
587
|
+
opacity: f ? 0 : 1,
|
|
588
|
+
children: t
|
|
589
|
+
}));
|
|
590
|
+
});
|
|
591
|
+
process.env.NODE_ENV !== "production" && (ge.displayName = "PieArcLabel");
|
|
592
|
+
process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
593
|
+
// ----------------------------- Warning --------------------------------
|
|
594
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
595
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
596
|
+
// ----------------------------------------------------------------------
|
|
597
|
+
arcLabelRadius: e.number.isRequired,
|
|
598
|
+
classes: e.object,
|
|
599
|
+
color: e.string.isRequired,
|
|
600
|
+
cornerRadius: e.number.isRequired,
|
|
601
|
+
endAngle: e.number.isRequired,
|
|
602
|
+
formattedArcLabel: e.string,
|
|
603
|
+
hidden: e.bool,
|
|
604
|
+
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
605
|
+
innerRadius: e.number.isRequired,
|
|
606
|
+
isFaded: e.bool.isRequired,
|
|
607
|
+
isHighlighted: e.bool.isRequired,
|
|
608
|
+
outerRadius: e.number.isRequired,
|
|
609
|
+
paddingAngle: e.number.isRequired,
|
|
610
|
+
skipAnimation: e.bool.isRequired,
|
|
611
|
+
startAngle: e.number.isRequired
|
|
612
|
+
});
|
|
613
|
+
const jn = ["arcLabel", "arcLabelMinAngle", "arcLabelRadius", "cornerRadius", "data", "faded", "highlighted", "id", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "slotProps", "slots"], Nn = 180 / Math.PI;
|
|
614
|
+
function Fn(n, a, i) {
|
|
615
|
+
if (!n || (i.endAngle - i.startAngle) * Nn < a)
|
|
616
|
+
return null;
|
|
617
|
+
switch (n) {
|
|
618
|
+
case "label":
|
|
619
|
+
return fe(i.label, "arc");
|
|
620
|
+
case "value":
|
|
621
|
+
return i.value?.toString();
|
|
622
|
+
case "formattedValue":
|
|
623
|
+
return i.formattedValue;
|
|
624
|
+
default:
|
|
625
|
+
return n(C({}, i, {
|
|
626
|
+
label: fe(i.label, "arc")
|
|
627
|
+
}));
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function qe(n) {
|
|
631
|
+
const {
|
|
632
|
+
arcLabel: a,
|
|
633
|
+
arcLabelMinAngle: i = 0,
|
|
634
|
+
arcLabelRadius: d,
|
|
635
|
+
cornerRadius: g = 0,
|
|
636
|
+
data: A,
|
|
637
|
+
faded: c = {
|
|
638
|
+
additionalRadius: -5
|
|
639
|
+
},
|
|
640
|
+
highlighted: r,
|
|
641
|
+
id: R,
|
|
642
|
+
innerRadius: l,
|
|
643
|
+
outerRadius: s,
|
|
644
|
+
paddingAngle: t = 0,
|
|
645
|
+
skipAnimation: o,
|
|
646
|
+
slotProps: u,
|
|
647
|
+
slots: p
|
|
648
|
+
} = n, f = W(n, jn), m = ve({
|
|
649
|
+
innerRadius: l,
|
|
650
|
+
outerRadius: s,
|
|
651
|
+
arcLabelRadius: d,
|
|
652
|
+
cornerRadius: g,
|
|
653
|
+
paddingAngle: t,
|
|
654
|
+
id: R,
|
|
655
|
+
highlighted: r,
|
|
656
|
+
faded: c,
|
|
657
|
+
data: A
|
|
658
|
+
});
|
|
659
|
+
if (A.length === 0)
|
|
660
|
+
return null;
|
|
661
|
+
const y = p?.pieArcLabel ?? ge;
|
|
662
|
+
return /* @__PURE__ */ P.jsx("g", C({}, f, {
|
|
663
|
+
children: m.map((b) => /* @__PURE__ */ P.jsx(y, C({
|
|
664
|
+
startAngle: b.startAngle,
|
|
665
|
+
endAngle: b.endAngle,
|
|
666
|
+
paddingAngle: b.paddingAngle,
|
|
667
|
+
innerRadius: b.innerRadius,
|
|
668
|
+
outerRadius: b.outerRadius,
|
|
669
|
+
arcLabelRadius: b.arcLabelRadius,
|
|
670
|
+
cornerRadius: b.cornerRadius,
|
|
671
|
+
hidden: b.hidden,
|
|
672
|
+
id: R,
|
|
673
|
+
color: b.color,
|
|
674
|
+
isFaded: b.isFaded,
|
|
675
|
+
isHighlighted: b.isHighlighted,
|
|
676
|
+
formattedArcLabel: Fn(a, i, b),
|
|
677
|
+
skipAnimation: o ?? !1
|
|
678
|
+
}, u?.pieArcLabel), b.id ?? b.dataIndex))
|
|
679
|
+
}));
|
|
680
|
+
}
|
|
681
|
+
process.env.NODE_ENV !== "production" && (qe.propTypes = {
|
|
682
|
+
// ----------------------------- Warning --------------------------------
|
|
683
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
684
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
685
|
+
// ----------------------------------------------------------------------
|
|
686
|
+
/**
|
|
687
|
+
* The label displayed into the arc.
|
|
688
|
+
*/
|
|
689
|
+
arcLabel: e.oneOfType([e.oneOf(["formattedValue", "label", "value"]), e.func]),
|
|
690
|
+
/**
|
|
691
|
+
* The minimal angle required to display the arc label.
|
|
692
|
+
* @default 0
|
|
693
|
+
*/
|
|
694
|
+
arcLabelMinAngle: e.number,
|
|
695
|
+
/**
|
|
696
|
+
* The radius between circle center and the arc label in px.
|
|
697
|
+
* @default (innerRadius - outerRadius) / 2
|
|
698
|
+
*/
|
|
699
|
+
arcLabelRadius: e.number,
|
|
700
|
+
/**
|
|
701
|
+
* The radius applied to arc corners (similar to border radius).
|
|
702
|
+
* @default 0
|
|
703
|
+
*/
|
|
704
|
+
cornerRadius: e.number,
|
|
705
|
+
data: e.arrayOf(e.shape({
|
|
706
|
+
color: e.string.isRequired,
|
|
707
|
+
endAngle: e.number.isRequired,
|
|
708
|
+
formattedValue: e.string.isRequired,
|
|
709
|
+
id: e.oneOfType([e.number, e.string]),
|
|
710
|
+
index: e.number.isRequired,
|
|
711
|
+
label: e.oneOfType([e.func, e.string]),
|
|
712
|
+
labelMarkType: e.oneOfType([e.oneOf(["circle", "line", "square"]), e.func]),
|
|
713
|
+
padAngle: e.number.isRequired,
|
|
714
|
+
startAngle: e.number.isRequired,
|
|
715
|
+
value: e.number.isRequired
|
|
716
|
+
})).isRequired,
|
|
717
|
+
/**
|
|
718
|
+
* Override the arc attributes when it is faded.
|
|
719
|
+
* @default { additionalRadius: -5 }
|
|
720
|
+
*/
|
|
721
|
+
faded: e.shape({
|
|
722
|
+
additionalRadius: e.number,
|
|
723
|
+
arcLabelRadius: e.number,
|
|
724
|
+
color: e.string,
|
|
725
|
+
cornerRadius: e.number,
|
|
726
|
+
innerRadius: e.number,
|
|
727
|
+
outerRadius: e.number,
|
|
728
|
+
paddingAngle: e.number
|
|
729
|
+
}),
|
|
730
|
+
/**
|
|
731
|
+
* Override the arc attributes when it is highlighted.
|
|
732
|
+
*/
|
|
733
|
+
highlighted: e.shape({
|
|
734
|
+
additionalRadius: e.number,
|
|
735
|
+
arcLabelRadius: e.number,
|
|
736
|
+
color: e.string,
|
|
737
|
+
cornerRadius: e.number,
|
|
738
|
+
innerRadius: e.number,
|
|
739
|
+
outerRadius: e.number,
|
|
740
|
+
paddingAngle: e.number
|
|
741
|
+
}),
|
|
742
|
+
/**
|
|
743
|
+
* The id of this series.
|
|
744
|
+
*/
|
|
745
|
+
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
746
|
+
/**
|
|
747
|
+
* The radius between circle center and the beginning of the arc.
|
|
748
|
+
* @default 0
|
|
749
|
+
*/
|
|
750
|
+
innerRadius: e.number,
|
|
751
|
+
/**
|
|
752
|
+
* The radius between circle center and the end of the arc.
|
|
753
|
+
*/
|
|
754
|
+
outerRadius: e.number.isRequired,
|
|
755
|
+
/**
|
|
756
|
+
* The padding angle (deg) between two arcs.
|
|
757
|
+
* @default 0
|
|
758
|
+
*/
|
|
759
|
+
paddingAngle: e.number,
|
|
760
|
+
/**
|
|
761
|
+
* If `true`, animations are skipped.
|
|
762
|
+
* @default false
|
|
763
|
+
*/
|
|
764
|
+
skipAnimation: e.bool,
|
|
765
|
+
/**
|
|
766
|
+
* The props used for each component slot.
|
|
767
|
+
* @default {}
|
|
768
|
+
*/
|
|
769
|
+
slotProps: e.object,
|
|
770
|
+
/**
|
|
771
|
+
* Overridable component slots.
|
|
772
|
+
* @default {}
|
|
773
|
+
*/
|
|
774
|
+
slots: e.object
|
|
775
|
+
});
|
|
776
|
+
function Hn(n) {
|
|
777
|
+
return ce("MuiPieChart", n);
|
|
778
|
+
}
|
|
779
|
+
ue("MuiPieChart", ["root", "series", "seriesLabels"]);
|
|
780
|
+
const Mn = (n) => le({
|
|
781
|
+
root: ["root"],
|
|
782
|
+
series: ["series"],
|
|
783
|
+
seriesLabels: ["seriesLabels"]
|
|
784
|
+
}, Hn, n);
|
|
785
|
+
function je(n) {
|
|
786
|
+
const {
|
|
787
|
+
skipAnimation: a,
|
|
788
|
+
slots: i,
|
|
789
|
+
slotProps: d,
|
|
790
|
+
onItemClick: g
|
|
791
|
+
} = n, A = Ce(), c = ke(), r = Ve(a), R = Mn();
|
|
792
|
+
if (A === void 0)
|
|
793
|
+
return null;
|
|
794
|
+
const {
|
|
795
|
+
series: l,
|
|
796
|
+
seriesOrder: s
|
|
797
|
+
} = A;
|
|
798
|
+
return /* @__PURE__ */ P.jsxs("g", {
|
|
799
|
+
children: [s.map((t) => {
|
|
800
|
+
const {
|
|
801
|
+
cornerRadius: o,
|
|
802
|
+
paddingAngle: u,
|
|
803
|
+
data: p,
|
|
804
|
+
highlighted: f,
|
|
805
|
+
faded: m
|
|
806
|
+
} = l[t];
|
|
807
|
+
return /* @__PURE__ */ P.jsx("g", {
|
|
808
|
+
className: R.series,
|
|
809
|
+
transform: `translate(${c[t].center.x}, ${c[t].center.y})`,
|
|
810
|
+
"data-series": t,
|
|
811
|
+
children: /* @__PURE__ */ P.jsx(Oe, {
|
|
812
|
+
innerRadius: c[t].radius.inner,
|
|
813
|
+
outerRadius: c[t].radius.outer,
|
|
814
|
+
cornerRadius: o,
|
|
815
|
+
paddingAngle: u,
|
|
816
|
+
id: t,
|
|
817
|
+
data: p,
|
|
818
|
+
skipAnimation: r,
|
|
819
|
+
highlighted: f,
|
|
820
|
+
faded: m,
|
|
821
|
+
onItemClick: g,
|
|
822
|
+
slots: i,
|
|
823
|
+
slotProps: d
|
|
824
|
+
})
|
|
825
|
+
}, t);
|
|
826
|
+
}), s.map((t) => {
|
|
827
|
+
const {
|
|
828
|
+
cornerRadius: o,
|
|
829
|
+
paddingAngle: u,
|
|
830
|
+
arcLabel: p,
|
|
831
|
+
arcLabelMinAngle: f,
|
|
832
|
+
data: m
|
|
833
|
+
} = l[t];
|
|
834
|
+
return /* @__PURE__ */ P.jsx("g", {
|
|
835
|
+
className: R.seriesLabels,
|
|
836
|
+
transform: `translate(${c[t].center.x}, ${c[t].center.y})`,
|
|
837
|
+
"data-series": t,
|
|
838
|
+
children: /* @__PURE__ */ P.jsx(qe, {
|
|
839
|
+
innerRadius: c[t].radius.inner,
|
|
840
|
+
outerRadius: c[t].radius.outer,
|
|
841
|
+
arcLabelRadius: c[t].radius.label,
|
|
842
|
+
cornerRadius: o,
|
|
843
|
+
paddingAngle: u,
|
|
844
|
+
id: t,
|
|
845
|
+
data: m,
|
|
846
|
+
skipAnimation: r,
|
|
847
|
+
arcLabel: p,
|
|
848
|
+
arcLabelMinAngle: f,
|
|
849
|
+
slots: i,
|
|
850
|
+
slotProps: d
|
|
851
|
+
})
|
|
852
|
+
}, t);
|
|
853
|
+
})]
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
857
|
+
// ----------------------------- Warning --------------------------------
|
|
858
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
859
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
860
|
+
// ----------------------------------------------------------------------
|
|
861
|
+
/**
|
|
862
|
+
* Callback fired when a pie item is clicked.
|
|
863
|
+
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
864
|
+
* @param {PieItemIdentifier} pieItemIdentifier The pie item identifier.
|
|
865
|
+
* @param {DefaultizedPieValueType} item The pie item.
|
|
866
|
+
*/
|
|
867
|
+
onItemClick: e.func,
|
|
868
|
+
/**
|
|
869
|
+
* If `true`, animations are skipped.
|
|
870
|
+
* @default false
|
|
871
|
+
*/
|
|
872
|
+
skipAnimation: e.bool,
|
|
873
|
+
/**
|
|
874
|
+
* The props used for each component slot.
|
|
875
|
+
* @default {}
|
|
876
|
+
*/
|
|
877
|
+
slotProps: e.object,
|
|
878
|
+
/**
|
|
879
|
+
* Overridable component slots.
|
|
880
|
+
* @default {}
|
|
881
|
+
*/
|
|
882
|
+
slots: e.object
|
|
883
|
+
});
|
|
884
|
+
const En = [Qe, Xe, Ye, Ze, en], Sn = ["arcLabelRadius"];
|
|
885
|
+
function Dn(n) {
|
|
886
|
+
const a = ye(), i = Ie(), d = ke(), {
|
|
887
|
+
isHighlighted: g,
|
|
888
|
+
isFaded: A
|
|
889
|
+
} = _e(i), c = Ce();
|
|
890
|
+
if (i === null || i.type !== "pie" || !c)
|
|
891
|
+
return null;
|
|
892
|
+
const r = c?.series[i.seriesId], {
|
|
893
|
+
center: R,
|
|
894
|
+
radius: l
|
|
895
|
+
} = d[i.seriesId];
|
|
896
|
+
if (!r || !R || !l)
|
|
897
|
+
return null;
|
|
898
|
+
const s = r.data[i.dataIndex], t = Te(r, d[i.seriesId], g, A), o = W(t, Sn);
|
|
899
|
+
return /* @__PURE__ */ P.jsx(Z, C({
|
|
900
|
+
transform: `translate(${d[r.id].center.x}, ${d[r.id].center.y})`,
|
|
901
|
+
startAngle: s.startAngle,
|
|
902
|
+
endAngle: s.endAngle,
|
|
903
|
+
color: "transparent",
|
|
904
|
+
pointerEvents: "none",
|
|
905
|
+
skipInteraction: !0,
|
|
906
|
+
skipAnimation: !0,
|
|
907
|
+
stroke: (a.vars ?? a).palette.text.primary,
|
|
908
|
+
id: r.id,
|
|
909
|
+
className: xn.focusIndicator,
|
|
910
|
+
dataIndex: i.dataIndex,
|
|
911
|
+
isFaded: !1,
|
|
912
|
+
isHighlighted: !1,
|
|
913
|
+
isFocused: !1,
|
|
914
|
+
strokeWidth: 3
|
|
915
|
+
}, o, n));
|
|
916
|
+
}
|
|
917
|
+
const $n = ["series", "width", "height", "margin", "colors", "sx", "skipAnimation", "hideLegend", "children", "slots", "slotProps", "onItemClick", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar"], Ne = /* @__PURE__ */ Y.forwardRef(function(a, i) {
|
|
918
|
+
const d = He({
|
|
919
|
+
props: a,
|
|
920
|
+
name: "MuiPieChart"
|
|
921
|
+
}), {
|
|
922
|
+
series: g,
|
|
923
|
+
width: A,
|
|
924
|
+
height: c,
|
|
925
|
+
margin: r,
|
|
926
|
+
colors: R,
|
|
927
|
+
sx: l,
|
|
928
|
+
skipAnimation: s,
|
|
929
|
+
hideLegend: t,
|
|
930
|
+
children: o,
|
|
931
|
+
slots: u,
|
|
932
|
+
slotProps: p,
|
|
933
|
+
onItemClick: f,
|
|
934
|
+
loading: m,
|
|
935
|
+
highlightedItem: y,
|
|
936
|
+
onHighlightChange: b,
|
|
937
|
+
className: I,
|
|
938
|
+
showToolbar: v
|
|
939
|
+
} = d, j = W(d, $n), O = nn(r, De), {
|
|
940
|
+
chartDataProviderProps: F,
|
|
941
|
+
chartsSurfaceProps: L
|
|
942
|
+
} = sn(C({}, j, {
|
|
943
|
+
series: g.map((k) => C({
|
|
944
|
+
type: "pie"
|
|
945
|
+
}, k)),
|
|
946
|
+
width: A,
|
|
947
|
+
height: c,
|
|
948
|
+
margin: O,
|
|
949
|
+
colors: R,
|
|
950
|
+
highlightedItem: y,
|
|
951
|
+
onHighlightChange: b,
|
|
952
|
+
className: I,
|
|
953
|
+
skipAnimation: s,
|
|
954
|
+
plugins: En
|
|
955
|
+
}), i), H = u?.tooltip ?? Ue, q = u?.toolbar;
|
|
956
|
+
return /* @__PURE__ */ P.jsx(an, C({}, F, {
|
|
957
|
+
children: /* @__PURE__ */ P.jsxs(Ge, {
|
|
958
|
+
legendPosition: p?.legend?.position,
|
|
959
|
+
legendDirection: p?.legend?.direction ?? "vertical",
|
|
960
|
+
sx: l,
|
|
961
|
+
hideLegend: t ?? !1,
|
|
962
|
+
children: [v && q ? /* @__PURE__ */ P.jsx(q, C({}, p?.toolbar)) : null, !t && /* @__PURE__ */ P.jsx(We, {
|
|
963
|
+
direction: p?.legend?.direction ?? "vertical",
|
|
964
|
+
slots: u,
|
|
965
|
+
slotProps: p
|
|
966
|
+
}), /* @__PURE__ */ P.jsxs(rn, C({}, L, {
|
|
967
|
+
children: [/* @__PURE__ */ P.jsx(je, {
|
|
968
|
+
slots: u,
|
|
969
|
+
slotProps: p,
|
|
970
|
+
onItemClick: f
|
|
971
|
+
}), /* @__PURE__ */ P.jsx(Dn, {}), /* @__PURE__ */ P.jsx(ze, {
|
|
972
|
+
loading: m,
|
|
973
|
+
slots: u,
|
|
974
|
+
slotProps: p
|
|
975
|
+
}), o]
|
|
976
|
+
})), !m && /* @__PURE__ */ P.jsx(H, C({
|
|
977
|
+
trigger: "item"
|
|
978
|
+
}, p?.tooltip))]
|
|
979
|
+
})
|
|
980
|
+
}));
|
|
981
|
+
});
|
|
982
|
+
process.env.NODE_ENV !== "production" && (Ne.displayName = "PieChart");
|
|
983
|
+
process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
984
|
+
// ----------------------------- Warning --------------------------------
|
|
985
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
986
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
987
|
+
// ----------------------------------------------------------------------
|
|
988
|
+
apiRef: e.shape({
|
|
989
|
+
current: e.object
|
|
990
|
+
}),
|
|
991
|
+
children: e.node,
|
|
992
|
+
className: e.string,
|
|
993
|
+
/**
|
|
994
|
+
* Color palette used to colorize multiple series.
|
|
995
|
+
* @default rainbowSurgePalette
|
|
996
|
+
*/
|
|
997
|
+
colors: e.oneOfType([e.arrayOf(e.string), e.func]),
|
|
998
|
+
/**
|
|
999
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
1000
|
+
*/
|
|
1001
|
+
dataset: e.arrayOf(e.object),
|
|
1002
|
+
desc: e.string,
|
|
1003
|
+
enableKeyboardNavigation: e.bool,
|
|
1004
|
+
/**
|
|
1005
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
1006
|
+
*/
|
|
1007
|
+
height: e.number,
|
|
1008
|
+
/**
|
|
1009
|
+
* List of hidden series and/or items.
|
|
1010
|
+
*
|
|
1011
|
+
* Different chart types use different keys.
|
|
1012
|
+
*
|
|
1013
|
+
* @example
|
|
1014
|
+
* ```ts
|
|
1015
|
+
* [
|
|
1016
|
+
* {
|
|
1017
|
+
* type: 'pie',
|
|
1018
|
+
* seriesId: 'series-1',
|
|
1019
|
+
* dataIndex: 3,
|
|
1020
|
+
* },
|
|
1021
|
+
* {
|
|
1022
|
+
* type: 'line',
|
|
1023
|
+
* seriesId: 'series-2',
|
|
1024
|
+
* }
|
|
1025
|
+
* ]
|
|
1026
|
+
* ```
|
|
1027
|
+
*/
|
|
1028
|
+
hiddenItems: e.arrayOf(e.shape({
|
|
1029
|
+
dataIndex: e.number,
|
|
1030
|
+
seriesId: e.oneOfType([e.number, e.string]),
|
|
1031
|
+
type: e.oneOf(["pie"]).isRequired
|
|
1032
|
+
})),
|
|
1033
|
+
/**
|
|
1034
|
+
* If `true`, the legend is not rendered.
|
|
1035
|
+
*/
|
|
1036
|
+
hideLegend: e.bool,
|
|
1037
|
+
/**
|
|
1038
|
+
* The highlighted item.
|
|
1039
|
+
* Used when the highlight is controlled.
|
|
1040
|
+
*/
|
|
1041
|
+
highlightedItem: e.shape({
|
|
1042
|
+
dataIndex: e.number,
|
|
1043
|
+
seriesId: e.oneOfType([e.number, e.string]).isRequired
|
|
1044
|
+
}),
|
|
1045
|
+
/**
|
|
1046
|
+
* This prop is used to help implement the accessibility logic.
|
|
1047
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
1048
|
+
*/
|
|
1049
|
+
id: e.string,
|
|
1050
|
+
/**
|
|
1051
|
+
* List of initially hidden series and/or items.
|
|
1052
|
+
* Used for uncontrolled state.
|
|
1053
|
+
*
|
|
1054
|
+
* Different chart types use different keys.
|
|
1055
|
+
*
|
|
1056
|
+
* @example
|
|
1057
|
+
* ```ts
|
|
1058
|
+
* [
|
|
1059
|
+
* {
|
|
1060
|
+
* type: 'pie',
|
|
1061
|
+
* seriesId: 'series-1',
|
|
1062
|
+
* dataIndex: 3,
|
|
1063
|
+
* },
|
|
1064
|
+
* {
|
|
1065
|
+
* type: 'line',
|
|
1066
|
+
* seriesId: 'series-2',
|
|
1067
|
+
* }
|
|
1068
|
+
* ]
|
|
1069
|
+
* ```
|
|
1070
|
+
*/
|
|
1071
|
+
initialHiddenItems: e.arrayOf(e.shape({
|
|
1072
|
+
dataIndex: e.number,
|
|
1073
|
+
seriesId: e.oneOfType([e.number, e.string]),
|
|
1074
|
+
type: e.oneOf(["pie"]).isRequired
|
|
1075
|
+
})),
|
|
1076
|
+
/**
|
|
1077
|
+
* If `true`, a loading overlay is displayed.
|
|
1078
|
+
* @default false
|
|
1079
|
+
*/
|
|
1080
|
+
loading: e.bool,
|
|
1081
|
+
/**
|
|
1082
|
+
* Localized text for chart components.
|
|
1083
|
+
*/
|
|
1084
|
+
localeText: e.object,
|
|
1085
|
+
/**
|
|
1086
|
+
* The margin between the SVG and the drawing area.
|
|
1087
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
1088
|
+
*
|
|
1089
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
1090
|
+
*/
|
|
1091
|
+
margin: e.oneOfType([e.number, e.shape({
|
|
1092
|
+
bottom: e.number,
|
|
1093
|
+
left: e.number,
|
|
1094
|
+
right: e.number,
|
|
1095
|
+
top: e.number
|
|
1096
|
+
})]),
|
|
1097
|
+
/**
|
|
1098
|
+
* Callback fired when any hidden identifiers change.
|
|
1099
|
+
* @param {VisibilityIdentifier[]} hiddenItems The new list of hidden identifiers.
|
|
1100
|
+
*/
|
|
1101
|
+
onHiddenItemsChange: e.func,
|
|
1102
|
+
/**
|
|
1103
|
+
* The callback fired when the highlighted item changes.
|
|
1104
|
+
*
|
|
1105
|
+
* @param {HighlightItemData | null} highlightedItem The newly highlighted item.
|
|
1106
|
+
*/
|
|
1107
|
+
onHighlightChange: e.func,
|
|
1108
|
+
/**
|
|
1109
|
+
* Callback fired when a pie arc is clicked.
|
|
1110
|
+
*/
|
|
1111
|
+
onItemClick: e.func,
|
|
1112
|
+
/**
|
|
1113
|
+
* The callback fired when the tooltip item changes.
|
|
1114
|
+
*
|
|
1115
|
+
* @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
|
|
1116
|
+
*/
|
|
1117
|
+
onTooltipItemChange: e.func,
|
|
1118
|
+
/**
|
|
1119
|
+
* The series to display in the pie chart.
|
|
1120
|
+
* An array of [[PieSeries]] objects.
|
|
1121
|
+
*/
|
|
1122
|
+
series: e.arrayOf(e.object).isRequired,
|
|
1123
|
+
/**
|
|
1124
|
+
* If true, shows the default chart toolbar.
|
|
1125
|
+
* @default false
|
|
1126
|
+
*/
|
|
1127
|
+
showToolbar: e.bool,
|
|
1128
|
+
/**
|
|
1129
|
+
* If `true`, animations are skipped.
|
|
1130
|
+
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
1131
|
+
*/
|
|
1132
|
+
skipAnimation: e.bool,
|
|
1133
|
+
/**
|
|
1134
|
+
* The props used for each component slot.
|
|
1135
|
+
* @default {}
|
|
1136
|
+
*/
|
|
1137
|
+
slotProps: e.object,
|
|
1138
|
+
/**
|
|
1139
|
+
* Overridable component slots.
|
|
1140
|
+
* @default {}
|
|
1141
|
+
*/
|
|
1142
|
+
slots: e.object,
|
|
1143
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1144
|
+
theme: e.oneOf(["dark", "light"]),
|
|
1145
|
+
title: e.string,
|
|
1146
|
+
/**
|
|
1147
|
+
* The tooltip item.
|
|
1148
|
+
* Used when the tooltip is controlled.
|
|
1149
|
+
*/
|
|
1150
|
+
tooltipItem: e.shape({
|
|
1151
|
+
dataIndex: e.number.isRequired,
|
|
1152
|
+
seriesId: e.oneOfType([e.number, e.string]).isRequired,
|
|
1153
|
+
type: e.oneOf(["pie"]).isRequired
|
|
1154
|
+
}),
|
|
1155
|
+
/**
|
|
1156
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
1157
|
+
*/
|
|
1158
|
+
width: e.number
|
|
1159
|
+
});
|
|
1160
|
+
export {
|
|
1161
|
+
En as PIE_CHART_PLUGINS,
|
|
1162
|
+
Z as PieArc,
|
|
1163
|
+
ge as PieArcLabel,
|
|
1164
|
+
qe as PieArcLabelPlot,
|
|
1165
|
+
Oe as PieArcPlot,
|
|
1166
|
+
Ne as PieChart,
|
|
1167
|
+
je as PiePlot,
|
|
1168
|
+
Tn as getPieArcLabelUtilityClass,
|
|
1169
|
+
yn as getPieArcUtilityClass,
|
|
1170
|
+
Kn as getPieCoordinates,
|
|
1171
|
+
xn as pieArcClasses,
|
|
1172
|
+
vn as pieArcLabelClasses
|
|
1173
|
+
};
|