vue-data-ui 3.19.8 → 3.19.9
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 +1 -1
- package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-Dl9W5zJD.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-nsosW-n5.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
- package/dist/{vue-ui-age-pyramid-Bu3bocZx.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
- package/dist/{vue-ui-bullet-COSSZ7RU.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
- package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-LQuPTOlm.js} +1 -1
- package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
- package/dist/{vue-ui-carousel-table-Q2uTIELA.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
- package/dist/{vue-ui-chestnut-DdNKhXkN.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
- package/dist/{vue-ui-chord-CYzGIRtA.js → vue-ui-chord-YflKRyWK.js} +1 -1
- package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
- package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-C5_wkWul.js} +1 -1
- package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-mH0baWM3.js} +1 -1
- package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
- package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-BYBtwXy_.js} +1 -1
- package/dist/{vue-ui-donut-BSanYbqb.js → vue-ui-donut-B3L7jeHL.js} +434 -432
- package/dist/{vue-ui-donut-evolution-BVttNIzH.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
- package/dist/{vue-ui-dumbbell-D-KcBLOF.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
- package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-BYYyk5KL.js} +1 -1
- package/dist/{vue-ui-funnel-COwXzAbB.js → vue-ui-funnel-BfY509t-.js} +1 -1
- package/dist/{vue-ui-galaxy-Cg9VStNF.js → vue-ui-galaxy-D061gTYS.js} +260 -257
- package/dist/{vue-ui-gauge-DHWCS6jR.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
- package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BwOMFUVr.js} +1 -1
- package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
- package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
- package/dist/{vue-ui-history-plot-CgPjudHv.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
- package/dist/{vue-ui-horizontal-bar-CpQCmBQD.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
- package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
- package/dist/{vue-ui-molecule-CvfwMxYY.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
- package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-C-LWBXmg.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
- package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-MN-PjNJq.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
- package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
- package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
- package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-D2pVd53z.js} +115 -112
- package/dist/{vue-ui-relation-circle-MxYh6hSt.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
- package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
- package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-DkHS5dwd.js} +105 -102
- package/dist/{vue-ui-scatter-DrS1nrwL.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
- package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
- package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
- package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
- package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
- package/dist/{vue-ui-sparkline-BAWc3ROJ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
- package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
- package/dist/{vue-ui-stackline-DwtlEdOE.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
- package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
- package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-DuA_CfGn.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
- package/dist/{vue-ui-thermometer-Io8LdW1o.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
- package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-9LNNDl4q.js} +1 -1
- package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
- package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-BexKMBhz.js} +373 -373
- package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
- package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-BETHlWsO.js} +1 -1
- package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
- package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-CcgbuSp_.js} +1 -1
- package/dist/{vue-ui-xy-BCeOqJYR.js → vue-ui-xy-BQ1YONCq.js} +280 -277
- package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
- package/dist/vue-ui-sparkstackbar-BI8zG-DG.js +0 -662
|
@@ -2,28 +2,28 @@ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
|
2
2
|
import { $ as t, Ct as n, E as r, G as i, H as a, J as o, Lt as s, Mt as c, S as l, St as u, Tt as d, V as ee, X as te, Y as f, bt as ne, d as p, et as m, i as h, jt as re, o as ie, ot as ae, p as oe, pt as se, t as ce, u as g, v as le, x as ue, y as de, zt as fe } from "./lib-BkiwukKO.js";
|
|
3
3
|
import { t as pe } from "./useConfig-ByaaSKhz.js";
|
|
4
4
|
import { t as me } from "./usePrinter-X0yWOynH.js";
|
|
5
|
-
import { n as he, t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as
|
|
5
|
+
import { n as he, t as ge } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as _e } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as ve } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
+
import { t as ye } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as be } from "./img-BjOr008R.js";
|
|
10
|
+
import { n as xe } from "./Title-__gWq2g6.js";
|
|
11
|
+
import { t as Se } from "./Shape-DEGOZ6GG.js";
|
|
12
|
+
import { t as Ce } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
13
|
+
import { c as we } from "./canvas-lib-DTaADQOK.js";
|
|
14
|
+
import { t as Te } from "./useResponsive-CrAInupd.js";
|
|
15
|
+
import { t as Ee } from "./BaseLegendToggle-CJTwLGXL.js";
|
|
16
|
+
import { t as De } from "./A11yDataTable-q2-8fSlJ.js";
|
|
17
|
+
import { t as Oe } from "./useUserOptionState-CjPJPTg2.js";
|
|
18
|
+
import { t as ke } from "./useChartAccessibility-Do37qcw2.js";
|
|
19
|
+
import { n as Ae, t as je } from "./labelUtils-Cr97N8E1.js";
|
|
20
|
+
import { t as Me } from "./vue_ui_donut-Cx2_BGcQ.js";
|
|
21
|
+
import { t as Ne } from "./Legend-Gg5Q4Clb.js";
|
|
22
|
+
import { Fragment as _, Teleport as Pe, computed as v, createBlock as Fe, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as ze, guardReactiveProps as S, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ue, onMounted as We, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as k, toRefs as qe, unref as A, useSlots as Je, vShow as Ye, watch as Xe, withCtx as j, withDirectives as Ze } from "vue";
|
|
23
23
|
//#region src/useSmallArcLayouts.js
|
|
24
24
|
function Qe(e) {
|
|
25
25
|
let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: d, isSmallArc: ee } = e;
|
|
26
|
-
return { smallArcLayoutsClassic:
|
|
26
|
+
return { smallArcLayoutsClassic: v(() => {
|
|
27
27
|
if (t.value.type !== "classic") return {};
|
|
28
28
|
let e = {}, te = n.value || [];
|
|
29
29
|
if (!te.length) return e;
|
|
@@ -132,36 +132,36 @@ function Qe(e) {
|
|
|
132
132
|
let he = te.map((e, t) => le({
|
|
133
133
|
arc: e,
|
|
134
134
|
index: t
|
|
135
|
-
})).filter(ue),
|
|
135
|
+
})).filter(ue), ge = {
|
|
136
136
|
TL: [],
|
|
137
137
|
TR: [],
|
|
138
138
|
BL: [],
|
|
139
139
|
BR: []
|
|
140
140
|
};
|
|
141
141
|
return he.forEach((e) => {
|
|
142
|
-
|
|
143
|
-
}), Object.keys(
|
|
144
|
-
fe(
|
|
142
|
+
ge[de(e)].push(e);
|
|
143
|
+
}), Object.keys(ge).forEach((e) => {
|
|
144
|
+
fe(ge[e], e);
|
|
145
145
|
}), me({
|
|
146
|
-
candidateList:
|
|
146
|
+
candidateList: ge.TL,
|
|
147
147
|
side: "left",
|
|
148
148
|
bandMarkerX: ae,
|
|
149
149
|
startY: p,
|
|
150
150
|
direction: "down"
|
|
151
151
|
}), me({
|
|
152
|
-
candidateList:
|
|
152
|
+
candidateList: ge.TR,
|
|
153
153
|
side: "right",
|
|
154
154
|
bandMarkerX: oe,
|
|
155
155
|
startY: p,
|
|
156
156
|
direction: "down"
|
|
157
|
-
}),
|
|
158
|
-
candidateList:
|
|
157
|
+
}), ge.BL.length > 1 && me({
|
|
158
|
+
candidateList: ge.BL,
|
|
159
159
|
side: "left",
|
|
160
160
|
bandMarkerX: ae,
|
|
161
161
|
startY: m,
|
|
162
162
|
direction: "up"
|
|
163
|
-
}),
|
|
164
|
-
candidateList:
|
|
163
|
+
}), ge.BR.length > 1 && me({
|
|
164
|
+
candidateList: ge.BR,
|
|
165
165
|
side: "right",
|
|
166
166
|
bandMarkerX: oe,
|
|
167
167
|
startY: m,
|
|
@@ -382,7 +382,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
382
382
|
}, _n = ["id"], vn = ["onClick"], yn = {
|
|
383
383
|
key: 8,
|
|
384
384
|
class: "vue-ui-donut-hollow"
|
|
385
|
-
}, bn = ["innerHTML"], xn = /* @__PURE__ */
|
|
385
|
+
}, bn = ["innerHTML"], xn = /* @__PURE__ */ Ce({
|
|
386
386
|
__name: "vue-ui-donut",
|
|
387
387
|
props: {
|
|
388
388
|
config: {
|
|
@@ -403,24 +403,24 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
403
403
|
"selectDatapoint",
|
|
404
404
|
"copyAlt"
|
|
405
405
|
],
|
|
406
|
-
setup(e, { expose:
|
|
407
|
-
let xn =
|
|
406
|
+
setup(e, { expose: Ce, emit: $e }) {
|
|
407
|
+
let xn = ze(() => import("./Tooltip-CuWEYGr3.js")), Sn = ze(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Cn = ze(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), wn = ze(() => import("./DataTable-DmE8Oo4i.js")), Tn = ze(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), En = ze(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Dn = ze(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), On = ze(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_donut: kn } = pe(), { isThemeValid: An, warnInvalidTheme: jn } = ye(), Mn = Je(), M = e, Nn = v({
|
|
408
408
|
get() {
|
|
409
409
|
return !!M.dataset && M.dataset.length;
|
|
410
410
|
},
|
|
411
411
|
set(e) {
|
|
412
412
|
return e;
|
|
413
413
|
}
|
|
414
|
-
}), N =
|
|
414
|
+
}), N = Ke(null), Pn = E(null), Fn = E(null), In = E(null), Ln = Ke(null), Rn = Ke(null), zn = Ke(null), Bn = Ke(null), Vn = Ke(null), Hn = Ke(null), Un = E(0), Wn = E(0), Gn = E(0), Kn = E(!1), qn = E(null), Jn = E(null), Yn = E(!1), Xn = E(!1), Zn = E(null), Qn = E({
|
|
415
415
|
x: 0,
|
|
416
416
|
y: 0
|
|
417
|
-
}), $n =
|
|
417
|
+
}), $n = E("pointer"), er = E(!1), tr = v({
|
|
418
418
|
get: () => L.value.style.chart.layout.labels.percentage.fontSize,
|
|
419
419
|
set: (e) => e
|
|
420
|
-
}), P =
|
|
420
|
+
}), P = v({
|
|
421
421
|
get: () => L.value.style.chart.layout.labels.name.fontSize,
|
|
422
422
|
set: (e) => e
|
|
423
|
-
}), nr =
|
|
423
|
+
}), nr = v({
|
|
424
424
|
get: () => L.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
425
425
|
set: (e) => e
|
|
426
426
|
}), rr = !1, ir = () => {
|
|
@@ -467,11 +467,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
467
467
|
});
|
|
468
468
|
}));
|
|
469
469
|
};
|
|
470
|
-
|
|
470
|
+
We(async () => {
|
|
471
471
|
Kn.value = !0, sr(), requestAnimationFrame(ir);
|
|
472
472
|
});
|
|
473
473
|
let ar;
|
|
474
|
-
|
|
474
|
+
We(() => {
|
|
475
475
|
N.value && (ar = new ResizeObserver((e) => {
|
|
476
476
|
for (let t of e) {
|
|
477
477
|
let { width: e, height: n } = t.contentRect;
|
|
@@ -481,12 +481,12 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
}), ar.observe(N.value.parentElement));
|
|
484
|
-
}),
|
|
484
|
+
}), Ue(() => {
|
|
485
485
|
ar?.disconnect();
|
|
486
|
-
}),
|
|
486
|
+
}), Ue(() => {
|
|
487
487
|
zn.value && (Bn.value && zn.value.unobserve(Bn.value), zn.value.disconnect());
|
|
488
488
|
});
|
|
489
|
-
let or =
|
|
489
|
+
let or = v(() => !!L.value.debug);
|
|
490
490
|
function sr() {
|
|
491
491
|
if (u(M.dataset) ? (te({
|
|
492
492
|
componentName: "VueUiDonut",
|
|
@@ -514,8 +514,8 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
514
514
|
debug: or.value
|
|
515
515
|
});
|
|
516
516
|
})), u(M.dataset) || (gr.value = L.value.loading), L.value.responsive) {
|
|
517
|
-
let e =
|
|
518
|
-
let { width: e, height: t } =
|
|
517
|
+
let e = we(() => {
|
|
518
|
+
let { width: e, height: t } = Te({
|
|
519
519
|
chart: N.value,
|
|
520
520
|
title: L.value.style.chart.title.text ? Ln.value : null,
|
|
521
521
|
legend: L.value.style.chart.legend.show ? Rn.value : null,
|
|
@@ -530,21 +530,21 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
530
530
|
zn.value && (Bn.value && zn.value.unobserve(Bn.value), zn.value.disconnect()), zn.value = new ResizeObserver(e), Bn.value = N.value.parentNode, zn.value.observe(Bn.value);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
let F =
|
|
533
|
+
let F = E(a()), cr = E(!1), lr = E(""), I = E(null), ur = E(0);
|
|
534
534
|
function dr() {
|
|
535
|
-
let e =
|
|
535
|
+
let e = ve({
|
|
536
536
|
userConfig: M.config,
|
|
537
537
|
defaultConfig: kn
|
|
538
538
|
}), t = {}, n = e.theme;
|
|
539
539
|
if (!n) t = e;
|
|
540
540
|
else if (!An.value(e)) jn(e), t = e;
|
|
541
541
|
else {
|
|
542
|
-
let r =
|
|
543
|
-
userConfig:
|
|
542
|
+
let r = ve({
|
|
543
|
+
userConfig: Me[n] || M.config,
|
|
544
544
|
defaultConfig: e
|
|
545
545
|
});
|
|
546
546
|
t = {
|
|
547
|
-
...
|
|
547
|
+
...ve({
|
|
548
548
|
userConfig: M.config,
|
|
549
549
|
defaultConfig: r
|
|
550
550
|
}),
|
|
@@ -553,7 +553,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
553
553
|
}
|
|
554
554
|
return t;
|
|
555
555
|
}
|
|
556
|
-
let L =
|
|
556
|
+
let L = E(dr()), fr = v(() => L.value.userOptions.useCursorPointer), pr = v(() => fe({
|
|
557
557
|
defaultConfig: {
|
|
558
558
|
useCssAnimation: !1,
|
|
559
559
|
table: { show: !1 },
|
|
@@ -606,7 +606,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
606
606
|
defaultConfig: L.value,
|
|
607
607
|
userConfig: pr.value
|
|
608
608
|
})
|
|
609
|
-
}), R =
|
|
609
|
+
}), R = E(!0), vr = E(0), yr = E(!1), br = null;
|
|
610
610
|
function xr(e = 1e3) {
|
|
611
611
|
return new Promise((t) => {
|
|
612
612
|
let n = performance.now();
|
|
@@ -622,7 +622,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
622
622
|
let t = hr.value === _r, n = L.value.startAnimation?.show;
|
|
623
623
|
!t && n ? (yr.value = !0, await xr(L.value.startAnimation.durationMs || 1e3)) : vr.value = 1, R.value = !1;
|
|
624
624
|
}, { immediate: !0 });
|
|
625
|
-
let { userOptionsVisible: Sr, setUserOptionsVisibility: Cr, keepUserOptionState: wr } =
|
|
625
|
+
let { userOptionsVisible: Sr, setUserOptionsVisibility: Cr, keepUserOptionState: wr } = Oe({ config: L.value }), { svgRef: z } = ke({ config: L.value.style.chart.title });
|
|
626
626
|
function Tr() {
|
|
627
627
|
Cr(!0);
|
|
628
628
|
}
|
|
@@ -632,7 +632,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
632
632
|
Xe(() => M.config, (e) => {
|
|
633
633
|
mr.value || (L.value = dr()), Sr.value = !L.value.userOptions.showOnChartHover, sr(), Un.value += 1, Wn.value += 1, Gn.value += 1, B.value.dataLabels.show = L.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show, V.value.height = L.value.style.chart.height, V.value.width = L.value.style.chart.width;
|
|
634
634
|
}, { deep: !0 });
|
|
635
|
-
let Dr =
|
|
635
|
+
let Dr = v(() => {
|
|
636
636
|
let { top: e, right: t, bottom: n, left: r } = L.value.style.chart.padding;
|
|
637
637
|
return {
|
|
638
638
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -645,7 +645,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
645
645
|
elementId: `donut__${F.value}`,
|
|
646
646
|
fileName: L.value.style.chart.title.text || "vue-ui-donut",
|
|
647
647
|
options: L.value.userOptions.print
|
|
648
|
-
}), Mr =
|
|
648
|
+
}), Mr = v(() => L.value.userOptions.show && !L.value.style.chart.title.text), Nr = v(() => ue(L.value.customPalette)), B = E({
|
|
649
649
|
dataLabels: { show: L.value.style.chart.layout.labels.dataLabels.show },
|
|
650
650
|
showTable: L.value.table.show,
|
|
651
651
|
showTooltip: L.value.style.chart.tooltip.show
|
|
@@ -657,14 +657,14 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
657
657
|
showTooltip: L.value.style.chart.tooltip.show
|
|
658
658
|
};
|
|
659
659
|
}, { immediate: !0 });
|
|
660
|
-
let V =
|
|
660
|
+
let V = E({
|
|
661
661
|
height: L.value.style.chart.height,
|
|
662
662
|
width: L.value.style.chart.width
|
|
663
|
-
}), Pr =
|
|
663
|
+
}), Pr = v(() => {
|
|
664
664
|
if (L.value.pie) return G.value;
|
|
665
665
|
let e = L.value.style.chart.layout.donut.strokeWidth / 512, t = Math.min(V.value.width, V.value.height) * e, n = t > G.value ? G.value : t;
|
|
666
666
|
return Math.max(n, 12 * (1 + e));
|
|
667
|
-
}), Fr = $e, H =
|
|
667
|
+
}), Fr = $e, H = v(() => hr.value.sort((e, t) => {
|
|
668
668
|
let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
|
|
669
669
|
return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
|
|
670
670
|
}).map((e, t) => ({
|
|
@@ -681,7 +681,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
681
681
|
Xe(() => M.dataset, (e) => {
|
|
682
682
|
Array.isArray(e) && e.length > 0 && (gr.value = !1);
|
|
683
683
|
}, { immediate: !0 });
|
|
684
|
-
let U =
|
|
684
|
+
let U = Ke(H.value);
|
|
685
685
|
Xe(() => H.value, (e) => {
|
|
686
686
|
U.value = e, requestAnimationFrame(ir);
|
|
687
687
|
});
|
|
@@ -692,8 +692,15 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
692
692
|
value: e.value
|
|
693
693
|
}));
|
|
694
694
|
}
|
|
695
|
-
let W =
|
|
696
|
-
function zr(
|
|
695
|
+
let W = E([]), Lr = E(!1), Rr = E(null);
|
|
696
|
+
function zr() {
|
|
697
|
+
Fr("selectLegend", qr.value.map((e) => ({
|
|
698
|
+
name: e.name,
|
|
699
|
+
color: e.color,
|
|
700
|
+
value: e.value
|
|
701
|
+
})));
|
|
702
|
+
}
|
|
703
|
+
function Br({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = f }) {
|
|
697
704
|
let o = performance.now();
|
|
698
705
|
function s(c) {
|
|
699
706
|
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
@@ -701,12 +708,12 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
701
708
|
}
|
|
702
709
|
requestAnimationFrame(s);
|
|
703
710
|
}
|
|
704
|
-
function
|
|
705
|
-
W.value.length ? W.value = [] :
|
|
711
|
+
function Vr() {
|
|
712
|
+
W.value.length ? W.value = [] : Jr.value.forEach((e, t) => {
|
|
706
713
|
W.value.push(t);
|
|
707
|
-
});
|
|
714
|
+
}), zr();
|
|
708
715
|
}
|
|
709
|
-
function
|
|
716
|
+
function Hr(e) {
|
|
710
717
|
let t = H.value.find((t, n) => n === e), n = U.value.find((t, n) => n === e).value;
|
|
711
718
|
if (W.value.includes(e)) {
|
|
712
719
|
W.value = W.value.filter((t) => t !== e);
|
|
@@ -715,10 +722,10 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
715
722
|
U.value = U.value.map((t, n) => e === n ? {
|
|
716
723
|
...t,
|
|
717
724
|
value: r
|
|
718
|
-
} : t);
|
|
725
|
+
} : t), zr();
|
|
719
726
|
}
|
|
720
727
|
function a() {
|
|
721
|
-
Lr.value = !0, Rr.value = e,
|
|
728
|
+
Lr.value = !0, Rr.value = e, Br({
|
|
722
729
|
from: n,
|
|
723
730
|
to: r,
|
|
724
731
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -739,10 +746,10 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
739
746
|
W.value.push(e), U.value = U.value.map((t, n) => e === n ? {
|
|
740
747
|
...t,
|
|
741
748
|
value: 0
|
|
742
|
-
} : t);
|
|
749
|
+
} : t), zr();
|
|
743
750
|
}
|
|
744
751
|
function r() {
|
|
745
|
-
Lr.value = !0, Rr.value = e,
|
|
752
|
+
Lr.value = !0, Rr.value = e, Br({
|
|
746
753
|
from: n,
|
|
747
754
|
to: 0,
|
|
748
755
|
duration: L.value.serieToggleAnimation.durationMs,
|
|
@@ -759,31 +766,26 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
759
766
|
}
|
|
760
767
|
L.value.serieToggleAnimation.show && L.value.type === "classic" ? r() : t();
|
|
761
768
|
}
|
|
762
|
-
Fr("selectLegend", Kr.value.map((e) => ({
|
|
763
|
-
name: e.name,
|
|
764
|
-
color: e.color,
|
|
765
|
-
value: e.value
|
|
766
|
-
})));
|
|
767
|
-
}
|
|
768
|
-
function Hr(e) {
|
|
769
|
-
return H.value.length ? H.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiDonut - There are no series to show."), null);
|
|
770
769
|
}
|
|
771
770
|
function Ur(e) {
|
|
772
|
-
|
|
773
|
-
t !== null && W.value.includes(t.seriesIndex) && Vr(t.seriesIndex);
|
|
771
|
+
return H.value.length ? H.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiDonut - There are no series to show."), null);
|
|
774
772
|
}
|
|
775
773
|
function Wr(e) {
|
|
776
|
-
let t =
|
|
777
|
-
t !== null &&
|
|
774
|
+
let t = Ur(e);
|
|
775
|
+
t !== null && W.value.includes(t.seriesIndex) && Hr(t.seriesIndex);
|
|
776
|
+
}
|
|
777
|
+
function Gr(e) {
|
|
778
|
+
let t = Ur(e);
|
|
779
|
+
t !== null && (W.value.includes(t.seriesIndex) || Hr(t.seriesIndex));
|
|
778
780
|
}
|
|
779
|
-
let
|
|
781
|
+
let Kr = v(() => hr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), qr = v(() => {
|
|
780
782
|
if (R.value && !mr.value) {
|
|
781
783
|
let e = vr.value, t = H.value.map((t) => ({
|
|
782
784
|
...t,
|
|
783
785
|
value: t.value * e,
|
|
784
786
|
color: t.color,
|
|
785
787
|
ghost: !1
|
|
786
|
-
})), n =
|
|
788
|
+
})), n = Kr.value * (1 - e);
|
|
787
789
|
return n > 0 && t.push({
|
|
788
790
|
name: "__ghost__",
|
|
789
791
|
value: n,
|
|
@@ -799,7 +801,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
799
801
|
...e,
|
|
800
802
|
seriesIndex: t
|
|
801
803
|
})).filter((e, t) => !W.value.includes(t));
|
|
802
|
-
}),
|
|
804
|
+
}), Jr = v(() => hr.value.map((e, t) => {
|
|
803
805
|
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / hr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
804
806
|
return {
|
|
805
807
|
name: e.name,
|
|
@@ -818,13 +820,13 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
818
820
|
}), {
|
|
819
821
|
datapoint: e,
|
|
820
822
|
index: t
|
|
821
|
-
}), r = h(L.value.style.chart.layout.labels.percentage.formatter,
|
|
822
|
-
v:
|
|
823
|
+
}), r = h(L.value.style.chart.layout.labels.percentage.formatter, ai(e), i({
|
|
824
|
+
v: ai(e),
|
|
823
825
|
s: "%",
|
|
824
826
|
r: L.value.style.chart.legend.roundingPercentage
|
|
825
|
-
})), a =
|
|
827
|
+
})), a = xi({
|
|
826
828
|
val: n,
|
|
827
|
-
percentage: W.value.includes(t) ? `${
|
|
829
|
+
percentage: W.value.includes(t) ? `${bi(e.proportion * 100)}%` : r,
|
|
828
830
|
showVal: L.value.style.chart.legend.showValue,
|
|
829
831
|
showPercentage: L.value.style.chart.legend.showPercentage,
|
|
830
832
|
config: L.value.style.chart.legend
|
|
@@ -832,21 +834,21 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
832
834
|
return {
|
|
833
835
|
...e,
|
|
834
836
|
opacity: W.value.includes(t) ? .5 : 1,
|
|
835
|
-
segregate: () => !Lr.value &&
|
|
837
|
+
segregate: () => !Lr.value && Hr(t),
|
|
836
838
|
isSegregated: W.value.includes(t),
|
|
837
839
|
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${a}`
|
|
838
840
|
};
|
|
839
|
-
})),
|
|
841
|
+
})), Yr = v(() => ({
|
|
840
842
|
cy: "donut-div-legend",
|
|
841
843
|
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
842
844
|
color: L.value.style.chart.legend.color,
|
|
843
845
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
844
846
|
paddingBottom: 12,
|
|
845
847
|
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
846
|
-
})), G =
|
|
848
|
+
})), G = v(() => {
|
|
847
849
|
let e = L.value.style.chart.layout.donut.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(V.value.width * t, V.value.height * t);
|
|
848
850
|
return Math.max(12, n);
|
|
849
|
-
}), K =
|
|
851
|
+
}), K = v(() => ne({ series: qr.value }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), Xr = v(() => Math.abs(qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Zr = v(() => ne({ series: [{
|
|
850
852
|
value: 1,
|
|
851
853
|
color: L.value.style.chart.layout.donut.emptyFill,
|
|
852
854
|
name: "_",
|
|
@@ -854,10 +856,10 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
854
856
|
patternIndex: -1,
|
|
855
857
|
ghost: !1,
|
|
856
858
|
absoluteValues: [1]
|
|
857
|
-
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), q =
|
|
858
|
-
let e = Math.max(...
|
|
859
|
+
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), q = v(() => K.value.filter((e) => !e.ghost)), J = v(() => {
|
|
860
|
+
let e = Math.max(...qr.value.map((e) => e.value));
|
|
859
861
|
return r({
|
|
860
|
-
series:
|
|
862
|
+
series: qr.value.map((t) => t.value / e),
|
|
861
863
|
center: {
|
|
862
864
|
x: V.value.width / 2,
|
|
863
865
|
y: V.value.height / 2
|
|
@@ -866,10 +868,10 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
866
868
|
hasGhost: R.value
|
|
867
869
|
});
|
|
868
870
|
});
|
|
869
|
-
function
|
|
871
|
+
function Qr(e) {
|
|
870
872
|
return e.x > V.value.width / 2 + 6 ? "start" : e.x < V.value.width / 2 - 6 ? "end" : "middle";
|
|
871
873
|
}
|
|
872
|
-
function
|
|
874
|
+
function $r(e) {
|
|
873
875
|
return e.middlePoint.y > V.value.height / 2 ? n({
|
|
874
876
|
initX: e.middlePoint.x,
|
|
875
877
|
initY: e.middlePoint.y,
|
|
@@ -887,8 +889,8 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
887
889
|
function Y(e) {
|
|
888
890
|
return e.proportion * 100 > L.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
889
891
|
}
|
|
890
|
-
function
|
|
891
|
-
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (
|
|
892
|
+
function ei(e, t) {
|
|
893
|
+
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (ri.value[t] ?? e.proportion ?? 0) * 100;
|
|
892
894
|
return i > n && i <= r;
|
|
893
895
|
}
|
|
894
896
|
let { smallArcLayoutsClassic: X } = Qe({
|
|
@@ -903,28 +905,28 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
903
905
|
calcMarkerOffsetY: p,
|
|
904
906
|
animatingIndex: Rr,
|
|
905
907
|
segregated: W,
|
|
906
|
-
isSmallArc:
|
|
908
|
+
isSmallArc: ei
|
|
907
909
|
});
|
|
908
|
-
function
|
|
909
|
-
let n = e.value /
|
|
910
|
+
function ti(e, t) {
|
|
911
|
+
let n = e.value / ni(t);
|
|
910
912
|
return isNaN(n) ? 0 : h(L.value.style.chart.layout.labels.percentage.formatter, n * 100, i({
|
|
911
913
|
v: n * 100,
|
|
912
914
|
s: "%",
|
|
913
915
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
914
916
|
}), { datapoint: e });
|
|
915
917
|
}
|
|
916
|
-
function
|
|
918
|
+
function ni(e) {
|
|
917
919
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
918
920
|
}
|
|
919
|
-
let Z =
|
|
921
|
+
let Z = v(() => qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)), ri = v(() => {
|
|
920
922
|
let e = H.value.reduce((e, t) => e + t.value, 0);
|
|
921
923
|
return e <= 0 ? [] : H.value.map((t) => t.value / e);
|
|
922
|
-
}),
|
|
923
|
-
function
|
|
924
|
+
}), ii = v(() => Z.value / qr.value.length);
|
|
925
|
+
function ai(e) {
|
|
924
926
|
return Lr.value ? e.proportion * 100 : e.value / Z.value * 100;
|
|
925
927
|
}
|
|
926
|
-
let
|
|
927
|
-
function
|
|
928
|
+
let oi = E(null), si = E(!1);
|
|
929
|
+
function ci({ datapoint: e, seriesIndex: t }) {
|
|
928
930
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
929
931
|
datapoint: e,
|
|
930
932
|
seriesIndex: t
|
|
@@ -934,25 +936,25 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
934
936
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
935
937
|
datapoint: e,
|
|
936
938
|
seriesIndex: n
|
|
937
|
-
}), $n.value = a, Zn.value = t,
|
|
939
|
+
}), $n.value = a, Zn.value = t, oi.value = {
|
|
938
940
|
datapoint: e,
|
|
939
941
|
seriesIndex: n,
|
|
940
942
|
config: L.value,
|
|
941
943
|
series: H.value
|
|
942
944
|
}, cr.value = r, I.value = t;
|
|
943
945
|
let o = "", s = L.value.style.chart.tooltip.customFormat;
|
|
944
|
-
if (
|
|
946
|
+
if (si.value = !1, se(s)) try {
|
|
945
947
|
let t = s({
|
|
946
948
|
seriesIndex: n,
|
|
947
949
|
datapoint: e,
|
|
948
950
|
series: H.value,
|
|
949
951
|
config: L.value
|
|
950
952
|
});
|
|
951
|
-
typeof t == "string" && (lr.value = t,
|
|
953
|
+
typeof t == "string" && (lr.value = t, si.value = !0);
|
|
952
954
|
} catch {
|
|
953
|
-
console.warn("Custom format cannot be applied."),
|
|
955
|
+
console.warn("Custom format cannot be applied."), si.value = !1;
|
|
954
956
|
}
|
|
955
|
-
|
|
957
|
+
si.value || (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${Mn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${F.value}_${n})"/>` : ""}</svg>`, o += `<b>${xi({
|
|
956
958
|
showVal: L.value.style.chart.tooltip.showValue,
|
|
957
959
|
showPercentage: L.value.style.chart.tooltip.showPercentage,
|
|
958
960
|
val: `<span>${h(L.value.style.chart.layout.labels.value.formatter, e.value, i({
|
|
@@ -977,7 +979,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
977
979
|
config: L.value.style.chart.tooltip
|
|
978
980
|
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (o += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), lr.value = `<div>${o}</div>`);
|
|
979
981
|
}
|
|
980
|
-
function
|
|
982
|
+
function li(e, t) {
|
|
981
983
|
let n = X.value[t];
|
|
982
984
|
if (n) return {
|
|
983
985
|
textAnchor: n.textAnchor,
|
|
@@ -991,8 +993,8 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
991
993
|
y: p(e)
|
|
992
994
|
};
|
|
993
995
|
}
|
|
994
|
-
function
|
|
995
|
-
let { textAnchor: r, x: i } =
|
|
996
|
+
function ui(e, t, n) {
|
|
997
|
+
let { textAnchor: r, x: i } = li(e, t), a = Si(e), o = `
|
|
996
998
|
<tspan
|
|
997
999
|
class="vue-data-ui-datalabel-inline"
|
|
998
1000
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
@@ -1020,8 +1022,8 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1020
1022
|
`;
|
|
1021
1023
|
}), r === "end" ? `${L.value.style.chart.layout.labels.name.show ? c : ""}${o}` : `${o}${L.value.style.chart.layout.labels.name.show ? c : ""}`;
|
|
1022
1024
|
}
|
|
1023
|
-
function
|
|
1024
|
-
let r = J.value[t].middlePoint, i =
|
|
1025
|
+
function di(e, t) {
|
|
1026
|
+
let r = J.value[t].middlePoint, i = Qr(r), a = n({
|
|
1025
1027
|
initX: r.x,
|
|
1026
1028
|
initY: r.y,
|
|
1027
1029
|
offset: 42,
|
|
@@ -1029,7 +1031,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1029
1031
|
centerY: V.value.height / 2
|
|
1030
1032
|
}), o = a.x;
|
|
1031
1033
|
a.y;
|
|
1032
|
-
let s =
|
|
1034
|
+
let s = Si(e), c = `
|
|
1033
1035
|
<tspan
|
|
1034
1036
|
class="vue-data-ui-datalabel-value"
|
|
1035
1037
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
@@ -1057,27 +1059,27 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1057
1059
|
`;
|
|
1058
1060
|
}), i === "end" ? `${L.value.style.chart.layout.labels.name.show ? u : ""}${c}` : `${c}${L.value.style.chart.layout.labels.name.show ? u : ""}`;
|
|
1059
1061
|
}
|
|
1060
|
-
function
|
|
1062
|
+
function fi(e) {
|
|
1061
1063
|
return L.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${F.value})` : "";
|
|
1062
1064
|
}
|
|
1063
|
-
function
|
|
1065
|
+
function pi(e) {
|
|
1064
1066
|
if (!Lr.value || Rr.value === null || e.seriesIndex !== Rr.value) return 1;
|
|
1065
1067
|
let t = (e.proportion ?? 0) * 100, n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, i = n;
|
|
1066
1068
|
return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
|
|
1067
1069
|
}
|
|
1068
|
-
let
|
|
1069
|
-
head:
|
|
1070
|
+
let mi = v(() => ({
|
|
1071
|
+
head: qr.value.map((e) => ({
|
|
1070
1072
|
name: e.name,
|
|
1071
1073
|
color: e.color
|
|
1072
1074
|
})),
|
|
1073
|
-
body:
|
|
1075
|
+
body: qr.value.map((e) => e.value)
|
|
1074
1076
|
}));
|
|
1075
|
-
function
|
|
1076
|
-
|
|
1077
|
-
let t =
|
|
1077
|
+
function hi(e = null) {
|
|
1078
|
+
Ve(() => {
|
|
1079
|
+
let t = mi.value.head.map((e, t) => [
|
|
1078
1080
|
[e.name],
|
|
1079
|
-
[
|
|
1080
|
-
[isNaN(
|
|
1081
|
+
[mi.value.body[t]],
|
|
1082
|
+
[isNaN(mi.value.body[t] / Z.value) ? "-" : mi.value.body[t] / Z.value * 100]
|
|
1081
1083
|
]), n = l([
|
|
1082
1084
|
[L.value.style.chart.title.text],
|
|
1083
1085
|
[L.value.style.chart.title.subtitle.text],
|
|
@@ -1093,7 +1095,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1093
1095
|
});
|
|
1094
1096
|
});
|
|
1095
1097
|
}
|
|
1096
|
-
let
|
|
1098
|
+
let gi = v(() => {
|
|
1097
1099
|
let e = [
|
|
1098
1100
|
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
1099
1101
|
i({
|
|
@@ -1103,13 +1105,13 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1103
1105
|
r: L.value.table.td.roundingValue
|
|
1104
1106
|
}),
|
|
1105
1107
|
"100%"
|
|
1106
|
-
], t =
|
|
1108
|
+
], t = mi.value.head.map((e, t) => [
|
|
1107
1109
|
{
|
|
1108
1110
|
color: e.color,
|
|
1109
1111
|
name: e.name || "-"
|
|
1110
1112
|
},
|
|
1111
|
-
|
|
1112
|
-
isNaN(
|
|
1113
|
+
mi.value.body[t],
|
|
1114
|
+
isNaN(mi.value.body[t] / Z.value) ? "-" : (mi.value.body[t] / Z.value * 100).toFixed(L.value.table.td.roundingPercentage) + "%"
|
|
1113
1115
|
]), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
|
|
1114
1116
|
th: {
|
|
1115
1117
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -1134,19 +1136,19 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1134
1136
|
a11yBody: n,
|
|
1135
1137
|
config: r
|
|
1136
1138
|
};
|
|
1137
|
-
}),
|
|
1138
|
-
function
|
|
1139
|
-
|
|
1139
|
+
}), _i = E(!1);
|
|
1140
|
+
function vi(e) {
|
|
1141
|
+
_i.value = e, ur.value += 1;
|
|
1140
1142
|
}
|
|
1141
|
-
let
|
|
1142
|
-
function
|
|
1143
|
-
return
|
|
1143
|
+
let yi = v(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1144
|
+
function bi(e) {
|
|
1145
|
+
return Ae({
|
|
1144
1146
|
num: e,
|
|
1145
1147
|
rounding: L.value.style.chart.legend.roundingPercentage
|
|
1146
1148
|
});
|
|
1147
1149
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return
|
|
1150
|
+
function xi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
1151
|
+
return je({
|
|
1150
1152
|
config: i,
|
|
1151
1153
|
val: e,
|
|
1152
1154
|
percentage: t,
|
|
@@ -1154,15 +1156,15 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1154
1156
|
showPercentage: r
|
|
1155
1157
|
});
|
|
1156
1158
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return
|
|
1159
|
+
function Si(e) {
|
|
1160
|
+
return xi({
|
|
1159
1161
|
val: h(L.value.style.chart.layout.labels.value.formatter, e.value, i({
|
|
1160
1162
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1161
1163
|
v: e.value,
|
|
1162
1164
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1163
1165
|
r: L.value.style.chart.layout.labels.value.rounding
|
|
1164
1166
|
}), { datapoint: e }),
|
|
1165
|
-
percentage:
|
|
1167
|
+
percentage: ti(e, q.value),
|
|
1166
1168
|
showVal: L.value.style.chart.layout.labels.value.show,
|
|
1167
1169
|
showPercentage: L.value.style.chart.layout.labels.percentage.show,
|
|
1168
1170
|
config: L.value.style.chart.layout.labels.dataLabels
|
|
@@ -1177,22 +1179,22 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1177
1179
|
index: t
|
|
1178
1180
|
});
|
|
1179
1181
|
}
|
|
1180
|
-
function
|
|
1182
|
+
function Ci() {
|
|
1181
1183
|
B.value.showTable = !B.value.showTable;
|
|
1182
1184
|
}
|
|
1183
|
-
function
|
|
1185
|
+
function wi() {
|
|
1184
1186
|
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
1185
1187
|
}
|
|
1186
|
-
function
|
|
1188
|
+
function Ti() {
|
|
1187
1189
|
B.value.showTooltip = !B.value.showTooltip;
|
|
1188
1190
|
}
|
|
1189
|
-
let
|
|
1190
|
-
function
|
|
1191
|
-
|
|
1191
|
+
let Ei = E(!1);
|
|
1192
|
+
function Di() {
|
|
1193
|
+
Ei.value = !Ei.value;
|
|
1192
1194
|
}
|
|
1193
|
-
async function
|
|
1195
|
+
async function Oi({ scale: e = 2 } = {}) {
|
|
1194
1196
|
if (!N.value) return;
|
|
1195
|
-
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
1197
|
+
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
1196
1198
|
domElement: N.value,
|
|
1197
1199
|
base64: !0,
|
|
1198
1200
|
img: !0,
|
|
@@ -1207,12 +1209,12 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1207
1209
|
aspectRatio: r
|
|
1208
1210
|
};
|
|
1209
1211
|
}
|
|
1210
|
-
function
|
|
1212
|
+
function ki() {
|
|
1211
1213
|
if (!Pn.value) return;
|
|
1212
1214
|
let { x: e, y: t, width: n, height: r } = Pn.value.getBBox();
|
|
1213
1215
|
z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
1214
1216
|
}
|
|
1215
|
-
let
|
|
1217
|
+
let Ai = v(() => {
|
|
1216
1218
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
1217
1219
|
return {
|
|
1218
1220
|
component: e ? On : Cn,
|
|
@@ -1222,7 +1224,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1222
1224
|
color: L.value.table.th.color,
|
|
1223
1225
|
headerColor: L.value.table.th.color,
|
|
1224
1226
|
headerBg: L.value.table.th.backgroundColor,
|
|
1225
|
-
isFullscreen:
|
|
1227
|
+
isFullscreen: _i.value,
|
|
1226
1228
|
fullscreenParent: N.value,
|
|
1227
1229
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1228
1230
|
isCursorPointer: fr.value
|
|
@@ -1246,36 +1248,36 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1246
1248
|
Xe(() => B.value.showTable, (e) => {
|
|
1247
1249
|
L.value.table.show || (e && L.value.table.useDialog && qn.value ? qn.value.open() : "close" in qn.value && qn.value.close());
|
|
1248
1250
|
});
|
|
1249
|
-
function
|
|
1251
|
+
function ji() {
|
|
1250
1252
|
B.value.showTable = !1, Jn.value && Jn.value.setTableIconState(!1);
|
|
1251
1253
|
}
|
|
1252
|
-
let
|
|
1254
|
+
let Mi = v(() => Jr.value.map((e) => ({
|
|
1253
1255
|
...e,
|
|
1254
1256
|
name: e.display
|
|
1255
|
-
}))),
|
|
1257
|
+
}))), Ni = v(() => L.value.style.chart.backgroundColor), Pi = v(() => L.value.style.chart.legend), { exportSvg: Fi, getSvg: Ii } = _e({
|
|
1256
1258
|
svg: z,
|
|
1257
|
-
title:
|
|
1258
|
-
legend:
|
|
1259
|
-
legendItems:
|
|
1260
|
-
backgroundColor:
|
|
1259
|
+
title: v(() => L.value.style.chart.title),
|
|
1260
|
+
legend: Pi,
|
|
1261
|
+
legendItems: Mi,
|
|
1262
|
+
backgroundColor: Ni
|
|
1261
1263
|
});
|
|
1262
|
-
async function
|
|
1263
|
-
Xn.value = !0, await
|
|
1264
|
+
async function Li({ isCb: e }) {
|
|
1265
|
+
Xn.value = !0, await Ve();
|
|
1264
1266
|
try {
|
|
1265
1267
|
if (e) {
|
|
1266
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1268
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Ii();
|
|
1267
1269
|
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
1268
1270
|
blob: e,
|
|
1269
1271
|
url: t,
|
|
1270
1272
|
text: n,
|
|
1271
1273
|
dataUrl: r
|
|
1272
1274
|
}));
|
|
1273
|
-
} else await Promise.resolve(
|
|
1275
|
+
} else await Promise.resolve(Fi());
|
|
1274
1276
|
} finally {
|
|
1275
1277
|
Xn.value = !1;
|
|
1276
1278
|
}
|
|
1277
1279
|
}
|
|
1278
|
-
function
|
|
1280
|
+
function Ri(e) {
|
|
1279
1281
|
if (e?.stage === "start") {
|
|
1280
1282
|
Yn.value = !0;
|
|
1281
1283
|
return;
|
|
@@ -1286,7 +1288,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1286
1288
|
}
|
|
1287
1289
|
jr();
|
|
1288
1290
|
}
|
|
1289
|
-
async function
|
|
1291
|
+
async function zi() {
|
|
1290
1292
|
if (Fr("copyAlt", {
|
|
1291
1293
|
config: L.value,
|
|
1292
1294
|
dataset: U.value
|
|
@@ -1299,14 +1301,14 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1299
1301
|
dataset: U.value
|
|
1300
1302
|
}));
|
|
1301
1303
|
}
|
|
1302
|
-
function
|
|
1304
|
+
function Bi() {
|
|
1303
1305
|
Zn.value = null, er.value = !0;
|
|
1304
1306
|
}
|
|
1305
|
-
function
|
|
1307
|
+
function Vi() {
|
|
1306
1308
|
Zn.value = null, $n.value = "pointer", cr.value = !1, I.value = null, er.value = !1;
|
|
1307
1309
|
}
|
|
1308
|
-
function
|
|
1309
|
-
if (!z.value ||
|
|
1310
|
+
function Hi(e) {
|
|
1311
|
+
if (!z.value || Ei.value || document.activeElement !== z.value || !q.value.length) return;
|
|
1310
1312
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1311
1313
|
if (!t && !n && !r && !i) return;
|
|
1312
1314
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -1323,7 +1325,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1323
1325
|
let a = Zn.value, o = I.value, s = a !== null && a >= 0 && a < q.value.length, c = o !== null && o >= 0 && o < q.value.length;
|
|
1324
1326
|
s ? n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= q.value.length && (a = 0), a < 0 && (a = q.value.length - 1)) : a = n ? 0 : q.value.length - 1;
|
|
1325
1327
|
let l = q.value[a];
|
|
1326
|
-
l && (Zn.value = a,
|
|
1328
|
+
l && (Zn.value = a, Ui(a), Q({
|
|
1327
1329
|
datapoint: l,
|
|
1328
1330
|
relativeIndex: a,
|
|
1329
1331
|
seriesIndex: l.seriesIndex,
|
|
@@ -1331,7 +1333,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1331
1333
|
triggerMode: "keyboard"
|
|
1332
1334
|
}));
|
|
1333
1335
|
}
|
|
1334
|
-
function
|
|
1336
|
+
function Ui(e) {
|
|
1335
1337
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1336
1338
|
let n = V.value.width / 2, r = V.value.height / 2;
|
|
1337
1339
|
if (L.value.type === "classic") {
|
|
@@ -1351,44 +1353,44 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1351
1353
|
y: i.top + r / V.value.height * i.height
|
|
1352
1354
|
};
|
|
1353
1355
|
}
|
|
1354
|
-
let
|
|
1355
|
-
headers:
|
|
1356
|
-
rows:
|
|
1356
|
+
let Wi = v(() => ({
|
|
1357
|
+
headers: gi.value?.colNames ?? [],
|
|
1358
|
+
rows: gi.value?.a11yBody ?? []
|
|
1357
1359
|
}));
|
|
1358
|
-
return
|
|
1359
|
-
autoSize:
|
|
1360
|
+
return Ce({
|
|
1361
|
+
autoSize: ki,
|
|
1360
1362
|
getData: Ir,
|
|
1361
|
-
getImage:
|
|
1363
|
+
getImage: Oi,
|
|
1362
1364
|
generatePdf: Ar,
|
|
1363
|
-
generateCsv:
|
|
1365
|
+
generateCsv: hi,
|
|
1364
1366
|
generateImage: jr,
|
|
1365
|
-
generateSvg:
|
|
1366
|
-
hideSeries:
|
|
1367
|
-
showSeries:
|
|
1368
|
-
toggleTable:
|
|
1369
|
-
toggleLabels:
|
|
1370
|
-
toggleTooltip:
|
|
1371
|
-
toggleAnnotator:
|
|
1372
|
-
toggleFullscreen:
|
|
1373
|
-
copyAlt:
|
|
1374
|
-
}), (t, r) => (
|
|
1367
|
+
generateSvg: Li,
|
|
1368
|
+
hideSeries: Gr,
|
|
1369
|
+
showSeries: Wr,
|
|
1370
|
+
toggleTable: Ci,
|
|
1371
|
+
toggleLabels: wi,
|
|
1372
|
+
toggleTooltip: Ti,
|
|
1373
|
+
toggleAnnotator: Di,
|
|
1374
|
+
toggleFullscreen: vi,
|
|
1375
|
+
copyAlt: zi
|
|
1376
|
+
}), (t, r) => (T(), b("div", {
|
|
1375
1377
|
ref_key: "donutChart",
|
|
1376
1378
|
ref: N,
|
|
1377
|
-
class:
|
|
1378
|
-
style:
|
|
1379
|
+
class: He(`vue-data-ui-component vue-ui-donut ${_i.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1380
|
+
style: w(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height:100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1379
1381
|
id: `donut__${F.value}`,
|
|
1380
1382
|
onMouseenter: Tr,
|
|
1381
1383
|
onMouseleave: Er
|
|
1382
1384
|
}, [
|
|
1383
|
-
|
|
1385
|
+
x("div", {
|
|
1384
1386
|
id: `chart-instructions-${F.value}`,
|
|
1385
1387
|
class: "sr-only"
|
|
1386
|
-
}, [
|
|
1387
|
-
|
|
1388
|
+
}, [x("p", null, k(L.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
1389
|
+
Wi.value?.rows?.length ? (T(), Fe(De, {
|
|
1388
1390
|
key: 0,
|
|
1389
1391
|
uid: F.value,
|
|
1390
|
-
head:
|
|
1391
|
-
body:
|
|
1392
|
+
head: Wi.value.headers,
|
|
1393
|
+
body: Wi.value.rows,
|
|
1392
1394
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1393
1395
|
caption: L.value.a11y.translations.tableCaption
|
|
1394
1396
|
}, null, 8, [
|
|
@@ -1397,22 +1399,22 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1397
1399
|
"body",
|
|
1398
1400
|
"notice",
|
|
1399
1401
|
"caption"
|
|
1400
|
-
])) :
|
|
1401
|
-
L.value.userOptions.buttons.annotator && A(z) ? (
|
|
1402
|
+
])) : y("", !0),
|
|
1403
|
+
L.value.userOptions.buttons.annotator && A(z) ? (T(), Fe(A(Tn), {
|
|
1402
1404
|
key: 1,
|
|
1403
1405
|
color: L.value.style.chart.color,
|
|
1404
1406
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1405
|
-
active:
|
|
1407
|
+
active: Ei.value,
|
|
1406
1408
|
svgRef: A(z),
|
|
1407
1409
|
isCursorPointer: fr.value,
|
|
1408
|
-
onClose:
|
|
1410
|
+
onClose: Di
|
|
1409
1411
|
}, {
|
|
1410
|
-
"annotator-action-close": j(() => [
|
|
1411
|
-
"annotator-action-color": j(({ color: e }) => [
|
|
1412
|
-
"annotator-action-draw": j(({ mode: e }) => [
|
|
1413
|
-
"annotator-action-undo": j(({ disabled: e }) => [
|
|
1414
|
-
"annotator-action-redo": j(({ disabled: e }) => [
|
|
1415
|
-
"annotator-action-delete": j(({ disabled: e }) => [
|
|
1412
|
+
"annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1413
|
+
"annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
|
|
1414
|
+
"annotator-action-draw": j(({ mode: e }) => [O(t.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
|
|
1415
|
+
"annotator-action-undo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
|
|
1416
|
+
"annotator-action-redo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
|
|
1417
|
+
"annotator-action-delete": j(({ disabled: e }) => [O(t.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
|
|
1416
1418
|
_: 3
|
|
1417
1419
|
}, 8, [
|
|
1418
1420
|
"color",
|
|
@@ -1420,21 +1422,21 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1420
1422
|
"active",
|
|
1421
1423
|
"svgRef",
|
|
1422
1424
|
"isCursorPointer"
|
|
1423
|
-
])) :
|
|
1424
|
-
|
|
1425
|
-
Mr.value ? (
|
|
1425
|
+
])) : y("", !0),
|
|
1426
|
+
O(t.$slots, "userConfig", {}, void 0, !0),
|
|
1427
|
+
Mr.value ? (T(), b("div", {
|
|
1426
1428
|
key: 2,
|
|
1427
1429
|
ref_key: "noTitle",
|
|
1428
1430
|
ref: Hn,
|
|
1429
1431
|
class: "vue-data-ui-no-title-space",
|
|
1430
1432
|
style: "height:36px; width: 100%;background:transparent"
|
|
1431
|
-
}, null, 512)) :
|
|
1432
|
-
L.value.style.chart.title.text ? (
|
|
1433
|
+
}, null, 512)) : y("", !0),
|
|
1434
|
+
L.value.style.chart.title.text ? (T(), b("div", {
|
|
1433
1435
|
key: 3,
|
|
1434
1436
|
ref_key: "chartTitle",
|
|
1435
1437
|
ref: Ln,
|
|
1436
1438
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1437
|
-
}, [(
|
|
1439
|
+
}, [(T(), Fe(xe, {
|
|
1438
1440
|
key: `title_${Un.value}`,
|
|
1439
1441
|
config: {
|
|
1440
1442
|
title: {
|
|
@@ -1446,9 +1448,9 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1446
1448
|
...L.value.style.chart.title.subtitle
|
|
1447
1449
|
}
|
|
1448
1450
|
}
|
|
1449
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1450
|
-
|
|
1451
|
-
L.value.userOptions.show && Nn.value && (A(wr) || A(Sr)) ? (
|
|
1451
|
+
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1452
|
+
x("div", { id: `legend-top-${F.value}` }, null, 8, nt),
|
|
1453
|
+
L.value.userOptions.show && Nn.value && (A(wr) || A(Sr)) ? (T(), Fe(A(En), {
|
|
1452
1454
|
ref_key: "userOptionsRef",
|
|
1453
1455
|
ref: Jn,
|
|
1454
1456
|
key: `user_option_${ur.value}`,
|
|
@@ -1466,32 +1468,32 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1466
1468
|
hasLabel: L.value.userOptions.buttons.labels,
|
|
1467
1469
|
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1468
1470
|
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1469
|
-
isFullscreen:
|
|
1471
|
+
isFullscreen: _i.value,
|
|
1470
1472
|
chartElement: N.value,
|
|
1471
1473
|
position: L.value.userOptions.position,
|
|
1472
1474
|
callbacks: L.value.userOptions.callbacks,
|
|
1473
1475
|
isTooltip: B.value.showTooltip,
|
|
1474
1476
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1475
1477
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1476
|
-
isAnnotation:
|
|
1478
|
+
isAnnotation: Ei.value,
|
|
1477
1479
|
printScale: L.value.userOptions.print.scale,
|
|
1478
1480
|
tableDialog: L.value.table.useDialog,
|
|
1479
1481
|
isCursorPointer: fr.value,
|
|
1480
|
-
onToggleFullscreen:
|
|
1482
|
+
onToggleFullscreen: vi,
|
|
1481
1483
|
onGeneratePdf: A(Ar),
|
|
1482
|
-
onGenerateCsv:
|
|
1483
|
-
onGenerateImage:
|
|
1484
|
-
onGenerateSvg:
|
|
1485
|
-
onToggleTable:
|
|
1486
|
-
onToggleLabels:
|
|
1487
|
-
onToggleTooltip:
|
|
1488
|
-
onToggleAnnotator:
|
|
1489
|
-
onCopyAlt:
|
|
1490
|
-
style:
|
|
1491
|
-
},
|
|
1484
|
+
onGenerateCsv: hi,
|
|
1485
|
+
onGenerateImage: Ri,
|
|
1486
|
+
onGenerateSvg: Li,
|
|
1487
|
+
onToggleTable: Ci,
|
|
1488
|
+
onToggleLabels: wi,
|
|
1489
|
+
onToggleTooltip: Ti,
|
|
1490
|
+
onToggleAnnotator: Di,
|
|
1491
|
+
onCopyAlt: zi,
|
|
1492
|
+
style: w({ visibility: A(wr) ? A(Sr) ? "visible" : "hidden" : "visible" })
|
|
1493
|
+
}, Ie({ _: 2 }, [
|
|
1492
1494
|
t.$slots.menuIcon ? {
|
|
1493
1495
|
name: "menuIcon",
|
|
1494
|
-
fn: j(({ isOpen: e, color: n }) => [
|
|
1496
|
+
fn: j(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(S({
|
|
1495
1497
|
isOpen: e,
|
|
1496
1498
|
color: n
|
|
1497
1499
|
})), void 0, !0)]),
|
|
@@ -1499,42 +1501,42 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1499
1501
|
} : void 0,
|
|
1500
1502
|
t.$slots.optionTooltip ? {
|
|
1501
1503
|
name: "optionTooltip",
|
|
1502
|
-
fn: j(() => [
|
|
1504
|
+
fn: j(() => [O(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1503
1505
|
key: "1"
|
|
1504
1506
|
} : void 0,
|
|
1505
1507
|
t.$slots.optionPdf ? {
|
|
1506
1508
|
name: "optionPdf",
|
|
1507
|
-
fn: j(() => [
|
|
1509
|
+
fn: j(() => [O(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1508
1510
|
key: "2"
|
|
1509
1511
|
} : void 0,
|
|
1510
1512
|
t.$slots.optionCsv ? {
|
|
1511
1513
|
name: "optionCsv",
|
|
1512
|
-
fn: j(() => [
|
|
1514
|
+
fn: j(() => [O(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1513
1515
|
key: "3"
|
|
1514
1516
|
} : void 0,
|
|
1515
1517
|
t.$slots.optionImg ? {
|
|
1516
1518
|
name: "optionImg",
|
|
1517
|
-
fn: j(() => [
|
|
1519
|
+
fn: j(() => [O(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1518
1520
|
key: "4"
|
|
1519
1521
|
} : void 0,
|
|
1520
1522
|
t.$slots.optionSvg ? {
|
|
1521
1523
|
name: "optionSvg",
|
|
1522
|
-
fn: j(() => [
|
|
1524
|
+
fn: j(() => [O(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1523
1525
|
key: "5"
|
|
1524
1526
|
} : void 0,
|
|
1525
1527
|
t.$slots.optionTable ? {
|
|
1526
1528
|
name: "optionTable",
|
|
1527
|
-
fn: j(() => [
|
|
1529
|
+
fn: j(() => [O(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1528
1530
|
key: "6"
|
|
1529
1531
|
} : void 0,
|
|
1530
1532
|
t.$slots.optionLabels ? {
|
|
1531
1533
|
name: "optionLabels",
|
|
1532
|
-
fn: j(() => [
|
|
1534
|
+
fn: j(() => [O(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1533
1535
|
key: "7"
|
|
1534
1536
|
} : void 0,
|
|
1535
1537
|
t.$slots.optionFullscreen ? {
|
|
1536
1538
|
name: "optionFullscreen",
|
|
1537
|
-
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [
|
|
1539
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [O(t.$slots, "optionFullscreen", C(S({
|
|
1538
1540
|
toggleFullscreen: e,
|
|
1539
1541
|
isFullscreen: n
|
|
1540
1542
|
})), void 0, !0)]),
|
|
@@ -1542,7 +1544,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1542
1544
|
} : void 0,
|
|
1543
1545
|
t.$slots.optionAnnotator ? {
|
|
1544
1546
|
name: "optionAnnotator",
|
|
1545
|
-
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [
|
|
1547
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [O(t.$slots, "optionAnnotator", C(S({
|
|
1546
1548
|
toggleAnnotator: e,
|
|
1547
1549
|
isAnnotator: n
|
|
1548
1550
|
})), void 0, !0)]),
|
|
@@ -1550,120 +1552,120 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1550
1552
|
} : void 0,
|
|
1551
1553
|
t.$slots.optionAltCopy ? {
|
|
1552
1554
|
name: "optionAltCopy",
|
|
1553
|
-
fn: j(({ altCopy: e }) => [
|
|
1555
|
+
fn: j(({ altCopy: e }) => [O(t.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
|
|
1554
1556
|
key: "10"
|
|
1555
1557
|
} : void 0,
|
|
1556
1558
|
t.$slots["custom-menu-before"] ? {
|
|
1557
1559
|
name: "custom-menu-before",
|
|
1558
|
-
fn: j(() => [
|
|
1560
|
+
fn: j(() => [O(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1559
1561
|
key: "11"
|
|
1560
1562
|
} : void 0,
|
|
1561
1563
|
t.$slots["custom-menu-after"] ? {
|
|
1562
1564
|
name: "custom-menu-after",
|
|
1563
|
-
fn: j(() => [
|
|
1565
|
+
fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1564
1566
|
key: "12"
|
|
1565
1567
|
} : void 0
|
|
1566
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1567
|
-
|
|
1568
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : y("", !0),
|
|
1569
|
+
x("div", rt, [(T(), b("svg", {
|
|
1568
1570
|
ref_key: "svgRef",
|
|
1569
1571
|
ref: z,
|
|
1570
1572
|
xmlns: A(ce),
|
|
1571
1573
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1572
|
-
class:
|
|
1573
|
-
"vue-data-ui-fullscreen--on":
|
|
1574
|
-
"vue-data-ui-fulscreen--off": !
|
|
1574
|
+
class: He({
|
|
1575
|
+
"vue-data-ui-fullscreen--on": _i.value,
|
|
1576
|
+
"vue-data-ui-fulscreen--off": !_i.value,
|
|
1575
1577
|
"vue-data-ui-svg": !0
|
|
1576
1578
|
}),
|
|
1577
1579
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
1578
|
-
style:
|
|
1580
|
+
style: w(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${Dr.value.css}`),
|
|
1579
1581
|
tabindex: "0",
|
|
1580
|
-
onFocus:
|
|
1581
|
-
onBlur:
|
|
1582
|
-
onKeydown:
|
|
1583
|
-
}, [
|
|
1582
|
+
onFocus: Bi,
|
|
1583
|
+
onBlur: Vi,
|
|
1584
|
+
onKeydown: Hi
|
|
1585
|
+
}, [x("g", {
|
|
1584
1586
|
ref_key: "G",
|
|
1585
1587
|
ref: Pn,
|
|
1586
1588
|
class: "vue-data-ui-g"
|
|
1587
1589
|
}, [
|
|
1588
|
-
|
|
1589
|
-
t.$slots["chart-background"] ? (
|
|
1590
|
+
Re(A(Dn)),
|
|
1591
|
+
t.$slots["chart-background"] ? (T(), b("foreignObject", {
|
|
1590
1592
|
key: 0,
|
|
1591
1593
|
x: 0,
|
|
1592
1594
|
y: 0,
|
|
1593
1595
|
width: V.value.width <= 0 ? 10 : V.value.width,
|
|
1594
1596
|
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
1595
1597
|
style: { pointerEvents: "none" }
|
|
1596
|
-
}, [
|
|
1597
|
-
L.value.type === "classic" && !isNaN(Pr.value / G.value) ? (
|
|
1598
|
+
}, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, at)) : y("", !0),
|
|
1599
|
+
L.value.type === "classic" && !isNaN(Pr.value / G.value) ? (T(), b("defs", ot, [L.value.style.chart.useGradient ? (T(), b("radialGradient", {
|
|
1598
1600
|
key: 0,
|
|
1599
1601
|
id: `gradient_${F.value}`
|
|
1600
1602
|
}, [
|
|
1601
|
-
|
|
1603
|
+
x("stop", {
|
|
1602
1604
|
offset: "0%",
|
|
1603
1605
|
"stop-color": A(re)(L.value.style.chart.backgroundColor, 0),
|
|
1604
1606
|
"stop-opacity": "0"
|
|
1605
1607
|
}, null, 8, ct),
|
|
1606
|
-
|
|
1608
|
+
x("stop", {
|
|
1607
1609
|
offset: `${(1 - Pr.value / G.value) * 100}%`,
|
|
1608
1610
|
"stop-color": A(re)("#FFFFFF", 0),
|
|
1609
1611
|
"stop-opacity": "0"
|
|
1610
1612
|
}, null, 8, lt),
|
|
1611
|
-
|
|
1613
|
+
x("stop", {
|
|
1612
1614
|
offset: `${(1 - Pr.value / G.value / 2) * 100}%`,
|
|
1613
1615
|
"stop-color": A(re)("#FFFFFF", L.value.style.chart.gradientIntensity)
|
|
1614
1616
|
}, null, 8, ut),
|
|
1615
|
-
|
|
1617
|
+
x("stop", {
|
|
1616
1618
|
offset: "100%",
|
|
1617
1619
|
"stop-color": A(re)(L.value.style.chart.backgroundColor, 0),
|
|
1618
1620
|
"stop-opacity": "0"
|
|
1619
1621
|
}, null, 8, dt)
|
|
1620
|
-
], 8, st)) :
|
|
1621
|
-
L.value.type === "polar" ? (
|
|
1622
|
+
], 8, st)) : y("", !0)])) : y("", !0),
|
|
1623
|
+
L.value.type === "polar" ? (T(), b("defs", ft, [(T(!0), b(_, null, D(J.value, (e, t) => (T(), b("radialGradient", {
|
|
1622
1624
|
id: `polar_gradient_${t}_${F.value}`,
|
|
1623
1625
|
cx: (isNaN(e.middlePoint.x / V.value.width * 100) ? 0 : e.middlePoint.x / V.value.width * 100) + "%",
|
|
1624
1626
|
cy: (isNaN(e.middlePoint.y / V.value.height * 100) ? 0 : e.middlePoint.y / V.value.height * 100) + "%",
|
|
1625
1627
|
r: "62%"
|
|
1626
|
-
}, [
|
|
1628
|
+
}, [x("stop", {
|
|
1627
1629
|
offset: "0%",
|
|
1628
1630
|
"stop-color": A(c)(K.value[t].color, .05),
|
|
1629
1631
|
"stop-opacity": L.value.style.chart.gradientIntensity / 100
|
|
1630
|
-
}, null, 8, mt),
|
|
1632
|
+
}, null, 8, mt), x("stop", {
|
|
1631
1633
|
offset: "100%",
|
|
1632
1634
|
"stop-color": K.value[t].color
|
|
1633
|
-
}, null, 8, ht)], 8, pt))), 256))])) :
|
|
1634
|
-
|
|
1635
|
-
|
|
1635
|
+
}, null, 8, ht)], 8, pt))), 256))])) : y("", !0),
|
|
1636
|
+
x("defs", null, [
|
|
1637
|
+
x("filter", {
|
|
1636
1638
|
id: `blur_${F.value}`,
|
|
1637
1639
|
x: "-50%",
|
|
1638
1640
|
y: "-50%",
|
|
1639
1641
|
width: "200%",
|
|
1640
1642
|
height: "200%"
|
|
1641
|
-
}, [
|
|
1643
|
+
}, [x("feGaussianBlur", {
|
|
1642
1644
|
in: "SourceGraphic",
|
|
1643
1645
|
stdDeviation: 2,
|
|
1644
1646
|
id: `blur_std_${F.value}`
|
|
1645
|
-
}, null, 8, _t), r[5] ||=
|
|
1647
|
+
}, null, 8, _t), r[5] ||= x("feColorMatrix", {
|
|
1646
1648
|
type: "saturate",
|
|
1647
1649
|
values: "0"
|
|
1648
1650
|
}, null, -1)], 8, gt),
|
|
1649
|
-
|
|
1651
|
+
x("filter", {
|
|
1650
1652
|
id: `shadow_${F.value}`,
|
|
1651
1653
|
"color-interpolation-filters": "sRGB"
|
|
1652
|
-
}, [
|
|
1654
|
+
}, [x("feDropShadow", {
|
|
1653
1655
|
dx: "0",
|
|
1654
1656
|
dy: "0",
|
|
1655
1657
|
stdDeviation: "10",
|
|
1656
1658
|
"flood-opacity": "0.5",
|
|
1657
1659
|
"flood-color": L.value.style.chart.layout.donut.shadowColor
|
|
1658
1660
|
}, null, 8, yt)], 8, vt),
|
|
1659
|
-
|
|
1661
|
+
x("filter", {
|
|
1660
1662
|
id: `drop_shadow_${F.value}`,
|
|
1661
1663
|
"color-interpolation-filters": "sRGB",
|
|
1662
1664
|
x: "-50%",
|
|
1663
1665
|
y: "-50%",
|
|
1664
1666
|
width: "200%",
|
|
1665
1667
|
height: "200%"
|
|
1666
|
-
}, [
|
|
1668
|
+
}, [x("feDropShadow", {
|
|
1667
1669
|
dx: "0",
|
|
1668
1670
|
dy: "0",
|
|
1669
1671
|
stdDeviation: "3",
|
|
@@ -1671,7 +1673,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1671
1673
|
"flood-color": L.value.style.chart.layout.donut.shadowColor
|
|
1672
1674
|
}, null, 8, xt)], 8, bt)
|
|
1673
1675
|
]),
|
|
1674
|
-
L.value.type === "classic" ? (
|
|
1676
|
+
L.value.type === "classic" ? (T(!0), b(_, { key: 3 }, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [Y(e) && B.value.dataLabels.show ? (T(), b("path", {
|
|
1675
1677
|
key: 0,
|
|
1676
1678
|
d: A(X)[t]?.connectorPath || A(oe)(e, {
|
|
1677
1679
|
x: V.value.width / 2,
|
|
@@ -1682,9 +1684,9 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1682
1684
|
"stroke-linecap": "round",
|
|
1683
1685
|
"stroke-linejoin": "round",
|
|
1684
1686
|
fill: "none",
|
|
1685
|
-
filter:
|
|
1686
|
-
}, null, 8, St)) :
|
|
1687
|
-
L.value.type === "polar" ? (
|
|
1687
|
+
filter: fi(t)
|
|
1688
|
+
}, null, 8, St)) : y("", !0)]))), 256)) : y("", !0),
|
|
1689
|
+
L.value.type === "polar" ? (T(!0), b(_, { key: 4 }, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [Y(e) && B.value.dataLabels.show ? (T(), b("path", {
|
|
1688
1690
|
key: 0,
|
|
1689
1691
|
d: `M ${A(n)({
|
|
1690
1692
|
initX: J.value[t].middlePoint.x,
|
|
@@ -1704,82 +1706,82 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1704
1706
|
"stroke-linecap": "round",
|
|
1705
1707
|
"stroke-linejoin": "round",
|
|
1706
1708
|
fill: "none",
|
|
1707
|
-
filter:
|
|
1708
|
-
style:
|
|
1709
|
-
}, null, 12, Ct)) :
|
|
1710
|
-
L.value.type === "classic" && L.value.style.chart.layout.donut.useShadow ? (
|
|
1709
|
+
filter: fi(t),
|
|
1710
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1711
|
+
}, null, 12, Ct)) : y("", !0)]))), 256)) : y("", !0),
|
|
1712
|
+
L.value.type === "classic" && L.value.style.chart.layout.donut.useShadow ? (T(), b("circle", {
|
|
1711
1713
|
key: 5,
|
|
1712
1714
|
cx: V.value.width / 2,
|
|
1713
1715
|
cy: V.value.height / 2,
|
|
1714
1716
|
r: G.value <= 0 ? 10 : G.value,
|
|
1715
1717
|
fill: L.value.style.chart.backgroundColor,
|
|
1716
1718
|
filter: `url(#shadow_${F.value})`
|
|
1717
|
-
}, null, 8, wt)) :
|
|
1718
|
-
t.$slots.pattern ? (
|
|
1719
|
+
}, null, 8, wt)) : y("", !0),
|
|
1720
|
+
t.$slots.pattern ? (T(), b("g", Tt, [(T(!0), b(_, null, D(e.dataset, (e, n) => (T(), b("defs", { key: `pattern-${e.patternIndex}` }, [O(t.$slots, "pattern", Be({ ref_for: !0 }, {
|
|
1719
1721
|
seriesIndex: n,
|
|
1720
1722
|
patternId: `pattern_${F.value}_${n}`
|
|
1721
|
-
}), void 0, !0)]))), 128))])) :
|
|
1722
|
-
Z.value && L.value.type === "classic" ? (
|
|
1723
|
-
(
|
|
1723
|
+
}), void 0, !0)]))), 128))])) : y("", !0),
|
|
1724
|
+
Z.value && L.value.type === "classic" ? (T(), b(_, { key: 7 }, [
|
|
1725
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1724
1726
|
stroke: L.value.style.chart.backgroundColor,
|
|
1725
1727
|
d: e.arcSlice,
|
|
1726
1728
|
fill: "#FFFFFF"
|
|
1727
1729
|
}, null, 8, Et))), 256)),
|
|
1728
|
-
(
|
|
1730
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1729
1731
|
class: "vue-ui-donut-arc-path",
|
|
1730
1732
|
d: e.arcSlice,
|
|
1731
1733
|
fill: e.color,
|
|
1732
1734
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1733
1735
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1734
|
-
filter:
|
|
1736
|
+
filter: fi(t)
|
|
1735
1737
|
}, null, 8, Dt))), 256)),
|
|
1736
|
-
t.$slots.pattern ? (
|
|
1738
|
+
t.$slots.pattern ? (T(), b("g", Ot, [(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1737
1739
|
class: "vue-ui-donut-arc-path",
|
|
1738
1740
|
d: e.arcSlice,
|
|
1739
1741
|
fill: `url(#${e.pattern})`,
|
|
1740
1742
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1741
1743
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1742
|
-
filter:
|
|
1743
|
-
}, null, 8, kt))), 256))])) :
|
|
1744
|
-
], 64)) :
|
|
1745
|
-
Z.value && L.value.type === "polar" ? (
|
|
1746
|
-
(
|
|
1744
|
+
filter: fi(t)
|
|
1745
|
+
}, null, 8, kt))), 256))])) : y("", !0)
|
|
1746
|
+
], 64)) : y("", !0),
|
|
1747
|
+
Z.value && L.value.type === "polar" ? (T(), b(_, { key: 8 }, [K.value.length > 1 ? (T(), b("g", At, [
|
|
1748
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1747
1749
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1748
1750
|
d: J.value[t].path,
|
|
1749
1751
|
fill: "#FFFFFF",
|
|
1750
|
-
style:
|
|
1752
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1751
1753
|
}, null, 12, jt))), 256)),
|
|
1752
|
-
L.value.style.chart.layout.donut.useShadow ? (
|
|
1754
|
+
L.value.style.chart.layout.donut.useShadow ? (T(), b("g", Mt, [(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1753
1755
|
class: "vue-ui-donut-arc-path",
|
|
1754
1756
|
d: J.value[t].path,
|
|
1755
1757
|
fill: "transparent",
|
|
1756
1758
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1757
1759
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1758
1760
|
filter: `url(#drop_shadow_${F.value})`,
|
|
1759
|
-
style:
|
|
1760
|
-
}, null, 12, Nt))), 256))])) :
|
|
1761
|
-
t.$slots.pattern ? (
|
|
1761
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1762
|
+
}, null, 12, Nt))), 256))])) : y("", !0),
|
|
1763
|
+
t.$slots.pattern ? (T(), b("g", Pt, [(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1762
1764
|
class: "vue-ui-donut-arc-path",
|
|
1763
1765
|
d: J.value[t].path,
|
|
1764
1766
|
fill: `url(#${e.pattern})`,
|
|
1765
1767
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1766
1768
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1767
|
-
filter:
|
|
1768
|
-
style:
|
|
1769
|
+
filter: fi(t),
|
|
1770
|
+
style: w({
|
|
1769
1771
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1770
1772
|
transformOrigin: "center"
|
|
1771
1773
|
})
|
|
1772
|
-
}, null, 12, Ft))), 256))])) :
|
|
1773
|
-
(
|
|
1774
|
+
}, null, 12, Ft))), 256))])) : y("", !0),
|
|
1775
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1774
1776
|
class: "vue-ui-donut-arc-path",
|
|
1775
1777
|
d: J.value[t].path,
|
|
1776
1778
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_${t}_${F.value})` : e.color,
|
|
1777
1779
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1778
1780
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1779
|
-
filter:
|
|
1780
|
-
style:
|
|
1781
|
+
filter: fi(t),
|
|
1782
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1781
1783
|
}, null, 12, It))), 256))
|
|
1782
|
-
])) : (
|
|
1784
|
+
])) : (T(), b("g", Lt, [t.$slots.pattern ? (T(), b("circle", {
|
|
1783
1785
|
key: 0,
|
|
1784
1786
|
cx: V.value.width / 2,
|
|
1785
1787
|
cy: V.value.height / 2,
|
|
@@ -1787,34 +1789,34 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1787
1789
|
fill: `url(#pattern_${F.value}_${K.value[0].patternIndex})`,
|
|
1788
1790
|
stroke: L.value.style.chart.backgroundColor,
|
|
1789
1791
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1790
|
-
}, null, 8, Rt)) :
|
|
1792
|
+
}, null, 8, Rt)) : y("", !0), x("circle", {
|
|
1791
1793
|
cx: V.value.width / 2,
|
|
1792
1794
|
cy: V.value.height / 2,
|
|
1793
1795
|
r: G.value,
|
|
1794
1796
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_0_${F.value})` : K.value[0].color,
|
|
1795
1797
|
stroke: L.value.style.chart.backgroundColor,
|
|
1796
1798
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1797
|
-
}, null, 8, zt)]))], 64)) : (
|
|
1799
|
+
}, null, 8, zt)]))], 64)) : (T(), b(_, { key: 9 }, [L.value.type === "classic" && !Xr.value ? (T(), b("g", Bt, [(T(!0), b(_, null, D(Zr.value, (e, t) => (T(), b("path", {
|
|
1798
1800
|
class: "vue-ui-donut-arc-path",
|
|
1799
1801
|
d: e.arcSlice,
|
|
1800
1802
|
fill: e.color,
|
|
1801
1803
|
stroke: L.value.style.chart.backgroundColor,
|
|
1802
1804
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1803
|
-
}, null, 8, Vt))), 256))])) :
|
|
1805
|
+
}, null, 8, Vt))), 256))])) : y("", !0), x("circle", {
|
|
1804
1806
|
cx: V.value.width / 2,
|
|
1805
1807
|
cy: V.value.height / 2,
|
|
1806
1808
|
r: G.value <= 0 ? 10 : G.value,
|
|
1807
1809
|
fill: "transparent",
|
|
1808
1810
|
stroke: L.value.style.chart.backgroundColor
|
|
1809
1811
|
}, null, 8, Ht)], 64)),
|
|
1810
|
-
L.value.style.chart.useGradient && L.value.type === "classic" ? (
|
|
1812
|
+
L.value.style.chart.useGradient && L.value.type === "classic" ? (T(), b("circle", {
|
|
1811
1813
|
key: 10,
|
|
1812
1814
|
cx: V.value.width / 2,
|
|
1813
1815
|
cy: V.value.height / 2,
|
|
1814
1816
|
r: G.value <= 0 ? 10 : G.value,
|
|
1815
1817
|
fill: `url(#gradient_${F.value})`
|
|
1816
|
-
}, null, 8, Ut)) :
|
|
1817
|
-
|
|
1818
|
+
}, null, 8, Ut)) : y("", !0),
|
|
1819
|
+
x("circle", {
|
|
1818
1820
|
ref_key: "circle_hollow",
|
|
1819
1821
|
ref: In,
|
|
1820
1822
|
style: { pointerEvents: "none" },
|
|
@@ -1823,7 +1825,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1823
1825
|
cy: V.value.height / 2,
|
|
1824
1826
|
r: Math.max(.1, Pr.value * 1.7)
|
|
1825
1827
|
}, null, 8, Wt),
|
|
1826
|
-
Z.value ? (
|
|
1828
|
+
Z.value ? (T(), b(_, { key: 11 }, [K.value.length > 1 || L.value.type === "classic" ? (T(), b("g", Gt, [(T(!0), b(_, null, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("path", {
|
|
1827
1829
|
d: L.value.type === "classic" ? e.arcSlice : J.value[t].path,
|
|
1828
1830
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1829
1831
|
fill: I.value === t ? L.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
@@ -1833,12 +1835,12 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1833
1835
|
seriesIndex: e.seriesIndex,
|
|
1834
1836
|
show: !0
|
|
1835
1837
|
}),
|
|
1836
|
-
onMouseleave: (t) =>
|
|
1838
|
+
onMouseleave: (t) => ci({
|
|
1837
1839
|
datapoint: e,
|
|
1838
1840
|
seriesIndex: e.seriesIndex
|
|
1839
1841
|
}),
|
|
1840
1842
|
onClick: (n) => $(e, t)
|
|
1841
|
-
}, null, 40, Kt))), 256))])) : (
|
|
1843
|
+
}, null, 40, Kt))), 256))])) : (T(), b("g", qt, [x("circle", {
|
|
1842
1844
|
cx: V.value.width / 2,
|
|
1843
1845
|
cy: V.value.height / 2,
|
|
1844
1846
|
r: G.value,
|
|
@@ -1849,84 +1851,84 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1849
1851
|
seriesIndex: K.value[0].seriesIndex,
|
|
1850
1852
|
show: !0
|
|
1851
1853
|
}),
|
|
1852
|
-
onMouseleave: r[1] ||= (e) =>
|
|
1854
|
+
onMouseleave: r[1] ||= (e) => ci({
|
|
1853
1855
|
datapoint: K.value[0],
|
|
1854
1856
|
seriesIndex: K.value[0].seriesIndex
|
|
1855
1857
|
}),
|
|
1856
1858
|
onClick: r[2] ||= (e) => $(K.value[0], t.i)
|
|
1857
|
-
}, null, 40, Jt)]))], 64)) :
|
|
1858
|
-
L.value.type === "classic" ? (
|
|
1859
|
+
}, null, 40, Jt)]))], 64)) : y("", !0),
|
|
1860
|
+
L.value.type === "classic" ? (T(), b("g", {
|
|
1859
1861
|
key: 12,
|
|
1860
1862
|
ref_key: "G_hollow",
|
|
1861
1863
|
ref: Fn,
|
|
1862
1864
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1863
1865
|
}, [
|
|
1864
|
-
L.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1866
|
+
L.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
|
|
1865
1867
|
key: 0,
|
|
1866
1868
|
"text-anchor": "middle",
|
|
1867
1869
|
x: V.value.width / 2,
|
|
1868
1870
|
y: V.value.height / 2 - (L.value.style.chart.layout.labels.hollow.average.show ? L.value.style.chart.layout.labels.hollow.total.fontSize : 0) + L.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
1869
1871
|
fill: L.value.style.chart.layout.labels.hollow.total.color,
|
|
1870
1872
|
"font-size": L.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1871
|
-
style:
|
|
1872
|
-
},
|
|
1873
|
-
L.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1873
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1874
|
+
}, k(L.value.style.chart.layout.labels.hollow.total.text), 13, Yt)) : y("", !0),
|
|
1875
|
+
L.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
|
|
1874
1876
|
key: 1,
|
|
1875
1877
|
"text-anchor": "middle",
|
|
1876
1878
|
x: V.value.width / 2,
|
|
1877
1879
|
y: V.value.height / 2 + L.value.style.chart.layout.labels.hollow.total.fontSize - (L.value.style.chart.layout.labels.hollow.average.show ? L.value.style.chart.layout.labels.hollow.total.fontSize : 0) + L.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
1878
1880
|
fill: L.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1879
1881
|
"font-size": L.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1880
|
-
style:
|
|
1881
|
-
},
|
|
1882
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1883
|
+
}, k(A(h)(L.value.style.chart.layout.labels.hollow.total.value.formatter, Z.value, A(i)({
|
|
1882
1884
|
p: L.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1883
1885
|
v: Z.value,
|
|
1884
1886
|
s: L.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1885
|
-
}))), 13, Xt)) :
|
|
1886
|
-
L.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1887
|
+
}))), 13, Xt)) : y("", !0),
|
|
1888
|
+
L.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
|
|
1887
1889
|
key: 2,
|
|
1888
1890
|
"text-anchor": "middle",
|
|
1889
1891
|
x: V.value.width / 2,
|
|
1890
1892
|
y: V.value.height / 2 + (L.value.style.chart.layout.labels.hollow.total.show ? L.value.style.chart.layout.labels.hollow.average.fontSize : 0) + L.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
1891
1893
|
fill: L.value.style.chart.layout.labels.hollow.average.color,
|
|
1892
1894
|
"font-size": L.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1893
|
-
style:
|
|
1894
|
-
},
|
|
1895
|
-
L.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1895
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1896
|
+
}, k(L.value.style.chart.layout.labels.hollow.average.text), 13, Zt)) : y("", !0),
|
|
1897
|
+
L.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
|
|
1896
1898
|
key: 3,
|
|
1897
1899
|
"text-anchor": "middle",
|
|
1898
1900
|
x: V.value.width / 2,
|
|
1899
1901
|
y: V.value.height / 2 + (L.value.style.chart.layout.labels.hollow.total.show ? L.value.style.chart.layout.labels.hollow.average.fontSize : 0) + L.value.style.chart.layout.labels.hollow.average.fontSize + L.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
1900
1902
|
fill: L.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1901
1903
|
"font-size": L.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1902
|
-
style:
|
|
1903
|
-
},
|
|
1904
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1905
|
+
}, k(Lr.value || R.value ? "--" : A(h)(L.value.style.chart.layout.labels.hollow.average.value.formatter, A(m)(ii.value), A(i)({
|
|
1904
1906
|
p: L.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1905
|
-
v: A(m)(
|
|
1907
|
+
v: A(m)(ii.value),
|
|
1906
1908
|
s: L.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1907
1909
|
r: L.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1908
|
-
}))), 13, Qt)) :
|
|
1909
|
-
], 512)) :
|
|
1910
|
-
(
|
|
1911
|
-
filter:
|
|
1912
|
-
class:
|
|
1910
|
+
}))), 13, Qt)) : y("", !0)
|
|
1911
|
+
], 512)) : y("", !0),
|
|
1912
|
+
(T(!0), b(_, null, D(q.value.filter((e) => !e.ghost), (e, r) => (T(), b("g", {
|
|
1913
|
+
filter: fi(r),
|
|
1914
|
+
class: He({ animated: L.value.useCssAnimation }),
|
|
1913
1915
|
key: e.seriesIndex,
|
|
1914
|
-
opacity:
|
|
1915
|
-
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
1916
|
+
opacity: pi(e)
|
|
1917
|
+
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (T(), b("g", en, [(T(), b("foreignObject", {
|
|
1916
1918
|
x: A(g)(e, !0).anchor === "end" ? A(g)(e).x - 120 : A(g)(e, !0).anchor === "middle" ? A(g)(e).x - 60 : A(g)(e).x,
|
|
1917
|
-
y: A(p)(e) - (
|
|
1919
|
+
y: A(p)(e) - (yi.value ? 20 : 0),
|
|
1918
1920
|
width: "120",
|
|
1919
1921
|
height: "60",
|
|
1920
1922
|
style: { overflow: "visible" }
|
|
1921
|
-
}, [
|
|
1923
|
+
}, [x("div", null, [O(t.$slots, "dataLabel", Be({ ref_for: !0 }, {
|
|
1922
1924
|
datapoint: e,
|
|
1923
1925
|
isBlur: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value === r,
|
|
1924
|
-
isSafari:
|
|
1926
|
+
isSafari: yi.value,
|
|
1925
1927
|
isVisible: Y(e) && B.value.dataLabels.show,
|
|
1926
1928
|
textAlign: A(g)(e, !0, 16, !0).anchor,
|
|
1927
1929
|
flexAlign: A(g)(e, !0, 16).anchor,
|
|
1928
|
-
percentage:
|
|
1929
|
-
}), void 0, !0)])], 8, tn))])) : (
|
|
1930
|
+
percentage: ti(e, q.value)
|
|
1931
|
+
}), void 0, !0)])], 8, tn))])) : (T(), b("g", nn, [L.value.type === "classic" ? (T(), b(_, { key: 0 }, [Y(e) && B.value.dataLabels.show ? (T(), b("circle", {
|
|
1930
1932
|
key: 0,
|
|
1931
1933
|
cx: A(X)[r]?.markerX ?? A(g)(e).x,
|
|
1932
1934
|
cy: A(X)[r]?.markerY ?? A(p)(e) - 3.5,
|
|
@@ -1942,11 +1944,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1942
1944
|
seriesIndex: e.seriesIndex,
|
|
1943
1945
|
show: !0
|
|
1944
1946
|
}),
|
|
1945
|
-
onMouseleave: (t) =>
|
|
1947
|
+
onMouseleave: (t) => ci({
|
|
1946
1948
|
datapoint: e,
|
|
1947
1949
|
seriesIndex: e.seriesIndex
|
|
1948
1950
|
})
|
|
1949
|
-
}, null, 40, rn)) :
|
|
1951
|
+
}, null, 40, rn)) : y("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine || A(X)[r] ? Ze((T(), b("text", {
|
|
1950
1952
|
key: 1,
|
|
1951
1953
|
class: "vue-data-ui-datalabel-inline",
|
|
1952
1954
|
"text-anchor": A(X)[r]?.textAnchor || A(g)(e, !0, 12).anchor,
|
|
@@ -1959,19 +1961,19 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1959
1961
|
seriesIndex: e.seriesIndex,
|
|
1960
1962
|
show: !0
|
|
1961
1963
|
}),
|
|
1962
|
-
onMouseleave: (t) =>
|
|
1964
|
+
onMouseleave: (t) => ci({
|
|
1963
1965
|
datapoint: e,
|
|
1964
1966
|
seriesIndex: e.seriesIndex
|
|
1965
1967
|
}),
|
|
1966
|
-
innerHTML:
|
|
1967
|
-
}, null, 40, an)), [[Ye, Y(e) && B.value.dataLabels.show]]) : (
|
|
1968
|
+
innerHTML: ui(e, r, !!A(X)[r])
|
|
1969
|
+
}, null, 40, an)), [[Ye, Y(e) && B.value.dataLabels.show]]) : (T(), b(_, { key: 2 }, [Ze(x("text", {
|
|
1968
1970
|
class: "vue-data-ui-datalabel-value",
|
|
1969
1971
|
"text-anchor": A(X)[r]?.textAnchor || A(g)(e, !0, 12).anchor,
|
|
1970
1972
|
x: A(X)[r]?.labelX ?? A(g)(e, !0, 12).x,
|
|
1971
1973
|
y: A(X)[r]?.labelY ?? A(p)(e),
|
|
1972
1974
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
1973
1975
|
"font-size": tr.value + "px",
|
|
1974
|
-
style:
|
|
1976
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1975
1977
|
onClick: (t) => $(e, r),
|
|
1976
1978
|
onMouseenter: (t) => Q({
|
|
1977
1979
|
datapoint: e,
|
|
@@ -1979,18 +1981,18 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1979
1981
|
seriesIndex: e.seriesIndex,
|
|
1980
1982
|
show: !0
|
|
1981
1983
|
}),
|
|
1982
|
-
onMouseleave: (t) =>
|
|
1984
|
+
onMouseleave: (t) => ci({
|
|
1983
1985
|
datapoint: e,
|
|
1984
1986
|
seriesIndex: e.seriesIndex
|
|
1985
1987
|
})
|
|
1986
|
-
},
|
|
1988
|
+
}, k(Si(e)), 45, on), [[Ye, Y(e) && B.value.dataLabels.show]]), Ze(x("text", {
|
|
1987
1989
|
class: "vue-data-ui-datalabel-name",
|
|
1988
1990
|
"text-anchor": A(X)[r]?.textAnchor || A(g)(e).anchor,
|
|
1989
1991
|
x: A(X)[r]?.labelX ?? A(g)(e, !0, 12).x,
|
|
1990
1992
|
y: (A(X)[r]?.labelY ?? A(p)(e)) + P.value * 1.2,
|
|
1991
1993
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
1992
1994
|
"font-size": P.value + "px",
|
|
1993
|
-
style:
|
|
1995
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1994
1996
|
onClick: (t) => $(e, r),
|
|
1995
1997
|
onMouseenter: (t) => Q({
|
|
1996
1998
|
datapoint: e,
|
|
@@ -1998,7 +2000,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1998
2000
|
seriesIndex: e.seriesIndex,
|
|
1999
2001
|
show: !0
|
|
2000
2002
|
}),
|
|
2001
|
-
onMouseleave: (t) =>
|
|
2003
|
+
onMouseleave: (t) => ci({
|
|
2002
2004
|
datapoint: e,
|
|
2003
2005
|
seriesIndex: e.seriesIndex
|
|
2004
2006
|
}),
|
|
@@ -2009,7 +2011,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2009
2011
|
x: A(X)[r]?.labelX ?? A(g)(e, !0, 12).x,
|
|
2010
2012
|
y: (A(X)[r]?.labelY ?? A(p)(e)) + P.value
|
|
2011
2013
|
})
|
|
2012
|
-
}, null, 44, sn), [[Ye, Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show]])], 64))], 64)) :
|
|
2014
|
+
}, null, 44, sn), [[Ye, Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show]])], 64))], 64)) : y("", !0), L.value.type === "polar" ? (T(), b(_, { key: 1 }, [Y(e) && B.value.dataLabels.show ? (T(), b("circle", {
|
|
2013
2015
|
key: 0,
|
|
2014
2016
|
cx: A(n)({
|
|
2015
2017
|
initX: J.value[r].middlePoint.x,
|
|
@@ -2037,15 +2039,15 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2037
2039
|
seriesIndex: e.seriesIndex,
|
|
2038
2040
|
show: !0
|
|
2039
2041
|
}),
|
|
2040
|
-
onMouseleave: (t) =>
|
|
2042
|
+
onMouseleave: (t) => ci({
|
|
2041
2043
|
datapoint: e,
|
|
2042
2044
|
seriesIndex: e.seriesIndex
|
|
2043
2045
|
}),
|
|
2044
|
-
style:
|
|
2045
|
-
}, null, 44, cn)) :
|
|
2046
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
2047
|
+
}, null, 44, cn)) : y("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine ? Ze((T(), b("text", {
|
|
2046
2048
|
key: 1,
|
|
2047
2049
|
class: "vue-data-ui-datalabel-inline",
|
|
2048
|
-
"text-anchor":
|
|
2050
|
+
"text-anchor": Qr(J.value[r].middlePoint),
|
|
2049
2051
|
x: A(n)({
|
|
2050
2052
|
initX: J.value[r].middlePoint.x,
|
|
2051
2053
|
initY: J.value[r].middlePoint.y,
|
|
@@ -2060,7 +2062,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2060
2062
|
centerX: V.value.width / 2,
|
|
2061
2063
|
centerY: V.value.height / 2
|
|
2062
2064
|
}).y,
|
|
2063
|
-
style:
|
|
2065
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
|
|
2064
2066
|
onClick: (t) => $(e, r),
|
|
2065
2067
|
onMouseenter: (t) => Q({
|
|
2066
2068
|
datapoint: e,
|
|
@@ -2068,15 +2070,15 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2068
2070
|
seriesIndex: e.seriesIndex,
|
|
2069
2071
|
show: !0
|
|
2070
2072
|
}),
|
|
2071
|
-
onMouseleave: (t) =>
|
|
2073
|
+
onMouseleave: (t) => ci({
|
|
2072
2074
|
datapoint: e,
|
|
2073
2075
|
seriesIndex: e.seriesIndex
|
|
2074
2076
|
}),
|
|
2075
|
-
innerHTML:
|
|
2076
|
-
}, null, 44, ln)), [[Ye, Y(e) && B.value.dataLabels.show]]) : (
|
|
2077
|
+
innerHTML: di(e, r)
|
|
2078
|
+
}, null, 44, ln)), [[Ye, Y(e) && B.value.dataLabels.show]]) : (T(), b(_, { key: 2 }, [Y(e) && B.value.dataLabels.show ? (T(), b("text", {
|
|
2077
2079
|
key: 0,
|
|
2078
2080
|
class: "vue-data-ui-datalabel-value",
|
|
2079
|
-
"text-anchor":
|
|
2081
|
+
"text-anchor": Qr(J.value[r].middlePoint),
|
|
2080
2082
|
x: A(n)({
|
|
2081
2083
|
initX: J.value[r].middlePoint.x,
|
|
2082
2084
|
initY: J.value[r].middlePoint.y,
|
|
@@ -2093,7 +2095,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2093
2095
|
}).y,
|
|
2094
2096
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
2095
2097
|
"font-size": tr.value,
|
|
2096
|
-
style:
|
|
2098
|
+
style: w({
|
|
2097
2099
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2098
2100
|
fontWeight: L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
2099
2101
|
}),
|
|
@@ -2104,14 +2106,14 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2104
2106
|
seriesIndex: e.seriesIndex,
|
|
2105
2107
|
show: !0
|
|
2106
2108
|
}),
|
|
2107
|
-
onMouseleave: (t) =>
|
|
2109
|
+
onMouseleave: (t) => ci({
|
|
2108
2110
|
datapoint: e,
|
|
2109
2111
|
seriesIndex: e.seriesIndex
|
|
2110
2112
|
})
|
|
2111
|
-
},
|
|
2113
|
+
}, k(Si(e)), 45, un)) : y("", !0), Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show ? (T(), b("text", {
|
|
2112
2114
|
key: 1,
|
|
2113
2115
|
class: "vue-data-ui-datalabel-name",
|
|
2114
|
-
"text-anchor":
|
|
2116
|
+
"text-anchor": Qr(J.value[r].middlePoint),
|
|
2115
2117
|
x: A(n)({
|
|
2116
2118
|
initX: J.value[r].middlePoint.x,
|
|
2117
2119
|
initY: J.value[r].middlePoint.y,
|
|
@@ -2128,7 +2130,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2128
2130
|
}).y + P.value * 1.2,
|
|
2129
2131
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
2130
2132
|
"font-size": P.value,
|
|
2131
|
-
style:
|
|
2133
|
+
style: w({
|
|
2132
2134
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2133
2135
|
fontWeight: L.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
2134
2136
|
}),
|
|
@@ -2139,7 +2141,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2139
2141
|
seriesIndex: e.seriesIndex,
|
|
2140
2142
|
show: !0
|
|
2141
2143
|
}),
|
|
2142
|
-
onMouseleave: (t) =>
|
|
2144
|
+
onMouseleave: (t) => ci({
|
|
2143
2145
|
datapoint: e,
|
|
2144
2146
|
seriesIndex: e.seriesIndex
|
|
2145
2147
|
}),
|
|
@@ -2162,7 +2164,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2162
2164
|
centerY: V.value.height / 2
|
|
2163
2165
|
}).y + P.value * 1.2
|
|
2164
2166
|
})
|
|
2165
|
-
}, null, 44, dn)) :
|
|
2167
|
+
}, null, 44, dn)) : y("", !0)], 64))], 64)) : y("", !0)])), B.value.dataLabels.show && L.value.style.chart.comments.show && e.comment ? (T(), b("g", fn, [Y(e) && L.value.type === "classic" ? (T(), b("foreignObject", {
|
|
2166
2168
|
key: 0,
|
|
2167
2169
|
x: L.value.style.chart.comments.offsetX + (A(g)(e, !0).anchor === "end" ? A(g)(e).x - L.value.style.chart.comments.width : A(g)(e, !0).anchor === "middle" ? A(g)(e).x - L.value.style.chart.comments.width / 2 : A(g)(e).x),
|
|
2168
2170
|
y: A(p)(e) + 24 + L.value.style.chart.comments.offsetY,
|
|
@@ -2172,20 +2174,20 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2172
2174
|
overflow: "visible",
|
|
2173
2175
|
"pointer-events": "none"
|
|
2174
2176
|
}
|
|
2175
|
-
}, [
|
|
2177
|
+
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2176
2178
|
...e,
|
|
2177
2179
|
textAlign: A(g)(e, !0, 16, !0).anchor,
|
|
2178
2180
|
flexAlign: A(g)(e, !0, 16).anchor,
|
|
2179
2181
|
isFirstLoad: R.value
|
|
2180
|
-
} }, void 0, !0)])], 8, pn)) :
|
|
2182
|
+
} }, void 0, !0)])], 8, pn)) : y("", !0), Y(e) && L.value.type === "polar" ? (T(), b("foreignObject", {
|
|
2181
2183
|
key: 1,
|
|
2182
|
-
x: L.value.style.chart.comments.offsetX + (
|
|
2184
|
+
x: L.value.style.chart.comments.offsetX + (Qr(J.value[r].middlePoint) === "end" ? A(n)({
|
|
2183
2185
|
initX: J.value[r].middlePoint.x,
|
|
2184
2186
|
initY: J.value[r].middlePoint.y,
|
|
2185
2187
|
offset: 42,
|
|
2186
2188
|
centerX: V.value.width / 2,
|
|
2187
2189
|
centerY: V.value.height / 2
|
|
2188
|
-
}).x - L.value.style.chart.comments.width :
|
|
2190
|
+
}).x - L.value.style.chart.comments.width : Qr(J.value[r].middlePoint) === "middle" ? A(n)({
|
|
2189
2191
|
initX: J.value[r].middlePoint.x,
|
|
2190
2192
|
initY: J.value[r].middlePoint.y,
|
|
2191
2193
|
offset: 42,
|
|
@@ -2198,68 +2200,68 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2198
2200
|
centerX: V.value.width / 2,
|
|
2199
2201
|
centerY: V.value.height / 2
|
|
2200
2202
|
}).x),
|
|
2201
|
-
y:
|
|
2203
|
+
y: $r(J.value[r]) + L.value.style.chart.comments.offsetY,
|
|
2202
2204
|
width: L.value.style.chart.comments.width,
|
|
2203
2205
|
height: "200",
|
|
2204
|
-
style:
|
|
2206
|
+
style: w({
|
|
2205
2207
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2206
2208
|
overflow: "visible",
|
|
2207
2209
|
pointerEvents: "none"
|
|
2208
2210
|
})
|
|
2209
|
-
}, [
|
|
2211
|
+
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2210
2212
|
...e,
|
|
2211
|
-
textAlign:
|
|
2212
|
-
flexAlign:
|
|
2213
|
+
textAlign: Qr(J.value[r].middlePoint),
|
|
2214
|
+
flexAlign: Qr(J.value[r].middlePoint),
|
|
2213
2215
|
isFirstLoad: R.value
|
|
2214
|
-
} }, void 0, !0)])], 12, mn)) :
|
|
2215
|
-
|
|
2216
|
+
} }, void 0, !0)])], 12, mn)) : y("", !0)])) : y("", !0)], 10, $t))), 128)),
|
|
2217
|
+
O(t.$slots, "svg", { svg: {
|
|
2216
2218
|
...V.value,
|
|
2217
2219
|
datapoints: K.value,
|
|
2218
2220
|
isPrintingImg: A(Or) || A(kr) || Yn.value,
|
|
2219
2221
|
isPrintingSvg: Xn.value
|
|
2220
2222
|
} }, void 0, !0)
|
|
2221
|
-
], 512)], 46, it)), t.$slots.hint ? (
|
|
2223
|
+
], 512)], 46, it)), t.$slots.hint ? (T(), b("div", hn, [O(t.$slots, "hint", C(S({
|
|
2222
2224
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
2223
2225
|
isVisible: er.value
|
|
2224
|
-
})), void 0, !0)])) :
|
|
2225
|
-
t.$slots.watermark ? (
|
|
2226
|
-
|
|
2227
|
-
Kn.value && (L.value.style.chart.legend.show || t.$slots.legend) ? (
|
|
2226
|
+
})), void 0, !0)])) : y("", !0)]),
|
|
2227
|
+
t.$slots.watermark ? (T(), b("div", gn, [O(t.$slots, "watermark", C(S({ isPrinting: A(Or) || A(kr) || Yn.value || Xn.value })), void 0, !0)])) : y("", !0),
|
|
2228
|
+
x("div", { id: `legend-bottom-${F.value}` }, null, 8, _n),
|
|
2229
|
+
Kn.value && (L.value.style.chart.legend.show || t.$slots.legend) ? (T(), Fe(Pe, {
|
|
2228
2230
|
key: 6,
|
|
2229
2231
|
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2230
|
-
}, [
|
|
2232
|
+
}, [x("div", {
|
|
2231
2233
|
ref_key: "chartLegend",
|
|
2232
2234
|
ref: Rn
|
|
2233
|
-
}, [
|
|
2235
|
+
}, [O(t.$slots, "legend", { legend: Jr.value }, () => [L.value.style.chart.legend.show ? (T(), Fe(Ne, {
|
|
2234
2236
|
key: `legend_${Gn.value}`,
|
|
2235
|
-
legendSet:
|
|
2236
|
-
config:
|
|
2237
|
-
onClickMarker: r[3] ||= ({ i: e }) =>
|
|
2237
|
+
legendSet: Jr.value,
|
|
2238
|
+
config: Yr.value,
|
|
2239
|
+
onClickMarker: r[3] ||= ({ i: e }) => Hr(e),
|
|
2238
2240
|
isCursorPointer: fr.value
|
|
2239
|
-
},
|
|
2240
|
-
item: j(({ legend: e, index: t }) => [
|
|
2241
|
-
style:
|
|
2241
|
+
}, Ie({
|
|
2242
|
+
item: j(({ legend: e, index: t }) => [x("div", {
|
|
2243
|
+
style: w(`opacity:${W.value.includes(t) ? .5 : 1}`),
|
|
2242
2244
|
onClick: (t) => e.segregate()
|
|
2243
|
-
},
|
|
2244
|
-
legendToggle: j(() => [
|
|
2245
|
+
}, k(e.display), 13, vn)]),
|
|
2246
|
+
legendToggle: j(() => [Jr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !A(mr) ? (T(), Fe(Ee, {
|
|
2245
2247
|
key: 0,
|
|
2246
2248
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2247
2249
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
2248
2250
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
2249
2251
|
checked: W.value.length > 0,
|
|
2250
2252
|
isCursorPointer: fr.value,
|
|
2251
|
-
onToggle:
|
|
2253
|
+
onToggle: Vr
|
|
2252
2254
|
}, null, 8, [
|
|
2253
2255
|
"backgroundColor",
|
|
2254
2256
|
"color",
|
|
2255
2257
|
"fontSize",
|
|
2256
2258
|
"checked",
|
|
2257
2259
|
"isCursorPointer"
|
|
2258
|
-
])) :
|
|
2260
|
+
])) : y("", !0)]),
|
|
2259
2261
|
_: 2
|
|
2260
2262
|
}, [t.$slots.pattern ? {
|
|
2261
2263
|
name: "legend-pattern",
|
|
2262
|
-
fn: j(({ legend: e, index: t }) => [
|
|
2264
|
+
fn: j(({ legend: e, index: t }) => [Re(Se, {
|
|
2263
2265
|
shape: e.shape,
|
|
2264
2266
|
radius: 30,
|
|
2265
2267
|
stroke: "none",
|
|
@@ -2274,20 +2276,20 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2274
2276
|
"legendSet",
|
|
2275
2277
|
"config",
|
|
2276
2278
|
"isCursorPointer"
|
|
2277
|
-
])) :
|
|
2278
|
-
t.$slots.source ? (
|
|
2279
|
+
])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
|
|
2280
|
+
t.$slots.source ? (T(), b("div", {
|
|
2279
2281
|
key: 7,
|
|
2280
2282
|
ref_key: "source",
|
|
2281
2283
|
ref: Vn,
|
|
2282
2284
|
dir: "auto"
|
|
2283
|
-
}, [
|
|
2284
|
-
t.$slots.hollow ? (
|
|
2285
|
+
}, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2286
|
+
t.$slots.hollow ? (T(), b("div", yn, [O(t.$slots, "hollow", C(S({
|
|
2285
2287
|
total: Z.value,
|
|
2286
|
-
average:
|
|
2288
|
+
average: ii.value,
|
|
2287
2289
|
dataset: H.value,
|
|
2288
2290
|
...V.value
|
|
2289
|
-
})), void 0, !0)])) :
|
|
2290
|
-
|
|
2291
|
+
})), void 0, !0)])) : y("", !0),
|
|
2292
|
+
Re(A(xn), {
|
|
2291
2293
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
2292
2294
|
show: B.value.showTooltip && cr.value,
|
|
2293
2295
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
@@ -2302,8 +2304,8 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2302
2304
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
2303
2305
|
parent: N.value,
|
|
2304
2306
|
content: lr.value,
|
|
2305
|
-
isCustom:
|
|
2306
|
-
isFullscreen:
|
|
2307
|
+
isCustom: si.value,
|
|
2308
|
+
isFullscreen: _i.value,
|
|
2307
2309
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
2308
2310
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
2309
2311
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
@@ -2311,9 +2313,9 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2311
2313
|
isA11yMode: $n.value === "keyboard",
|
|
2312
2314
|
a11yPosition: Qn.value
|
|
2313
2315
|
}, {
|
|
2314
|
-
"tooltip-before": j(() => [
|
|
2315
|
-
tooltip: j(() => [
|
|
2316
|
-
"tooltip-after": j(() => [
|
|
2316
|
+
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(S({ ...oi.value })), void 0, !0)]),
|
|
2317
|
+
tooltip: j(() => [O(t.$slots, "tooltip", C(S({ ...oi.value })), void 0, !0)]),
|
|
2318
|
+
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(S({ ...oi.value })), void 0, !0)]),
|
|
2317
2319
|
_: 3
|
|
2318
2320
|
}, 8, [
|
|
2319
2321
|
"teleportTo",
|
|
@@ -2339,30 +2341,30 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2339
2341
|
"isA11yMode",
|
|
2340
2342
|
"a11yPosition"
|
|
2341
2343
|
]),
|
|
2342
|
-
Nn.value && L.value.userOptions.buttons.table ? (
|
|
2344
|
+
Nn.value && L.value.userOptions.buttons.table ? (T(), Fe(Ge(Ai.value.component), Be({ key: 9 }, Ai.value.props, {
|
|
2343
2345
|
ref_key: "tableUnit",
|
|
2344
2346
|
ref: qn,
|
|
2345
|
-
onClose:
|
|
2346
|
-
}),
|
|
2347
|
-
content: j(() => [(
|
|
2347
|
+
onClose: ji
|
|
2348
|
+
}), Ie({
|
|
2349
|
+
content: j(() => [(T(), Fe(A(wn), {
|
|
2348
2350
|
key: `table_${Wn.value}`,
|
|
2349
|
-
colNames:
|
|
2350
|
-
head:
|
|
2351
|
-
body:
|
|
2352
|
-
config:
|
|
2353
|
-
title: L.value.table.useDialog ? "" :
|
|
2351
|
+
colNames: gi.value.colNames,
|
|
2352
|
+
head: gi.value.head,
|
|
2353
|
+
body: gi.value.body,
|
|
2354
|
+
config: gi.value.config,
|
|
2355
|
+
title: L.value.table.useDialog ? "" : Ai.value.title,
|
|
2354
2356
|
withCloseButton: !L.value.table.useDialog,
|
|
2355
2357
|
isCursorPointer: fr.value,
|
|
2356
|
-
onClose:
|
|
2358
|
+
onClose: ji
|
|
2357
2359
|
}, {
|
|
2358
|
-
th: j(({ th: e }) => [
|
|
2360
|
+
th: j(({ th: e }) => [x("div", {
|
|
2359
2361
|
innerHTML: e,
|
|
2360
2362
|
style: {
|
|
2361
2363
|
display: "flex",
|
|
2362
2364
|
"align-items": "center"
|
|
2363
2365
|
}
|
|
2364
2366
|
}, null, 8, bn)]),
|
|
2365
|
-
td: j(({ td: e }) => [
|
|
2367
|
+
td: j(({ td: e }) => [Le(k(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : A(h)(L.value.style.chart.layout.labels.percentage.formatter, e, A(i)({
|
|
2366
2368
|
v: e,
|
|
2367
2369
|
s: "%",
|
|
2368
2370
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -2385,24 +2387,24 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2385
2387
|
_: 2
|
|
2386
2388
|
}, [L.value.table.useDialog ? {
|
|
2387
2389
|
name: "title",
|
|
2388
|
-
fn: j(() => [
|
|
2390
|
+
fn: j(() => [Le(k(Ai.value.title), 1)]),
|
|
2389
2391
|
key: "0"
|
|
2390
2392
|
} : void 0, L.value.table.useDialog ? {
|
|
2391
2393
|
name: "actions",
|
|
2392
|
-
fn: j(() => [
|
|
2394
|
+
fn: j(() => [x("button", {
|
|
2393
2395
|
tabindex: "0",
|
|
2394
2396
|
class: "vue-ui-user-options-button",
|
|
2395
|
-
onClick: r[4] ||= (e) =>
|
|
2396
|
-
style:
|
|
2397
|
-
}, [
|
|
2397
|
+
onClick: r[4] ||= (e) => hi(L.value.userOptions.callbacks.csv),
|
|
2398
|
+
style: w({ cursor: fr.value ? "pointer" : "default" })
|
|
2399
|
+
}, [Re(A(Sn), {
|
|
2398
2400
|
name: "fileCsv",
|
|
2399
|
-
stroke:
|
|
2401
|
+
stroke: Ai.value.props.color
|
|
2400
2402
|
}, null, 8, ["stroke"])], 4)]),
|
|
2401
2403
|
key: "1"
|
|
2402
|
-
} : void 0]), 1040)) :
|
|
2403
|
-
|
|
2404
|
+
} : void 0]), 1040)) : y("", !0),
|
|
2405
|
+
O(t.$slots, "skeleton", {}, () => [A(mr) ? (T(), Fe(ge, { key: 0 })) : y("", !0)], !0)
|
|
2404
2406
|
], 46, et));
|
|
2405
2407
|
}
|
|
2406
|
-
}, [["__scopeId", "data-v-
|
|
2408
|
+
}, [["__scopeId", "data-v-568e9c77"]]);
|
|
2407
2409
|
//#endregion
|
|
2408
2410
|
export { $e as n, xn as t };
|