vue-data-ui 3.20.11 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-eS823iMF.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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-heatmap.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/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-R-aXpHvF.js} +78 -78
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +5 -1
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
- package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
- package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
- package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
- package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
- package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
- package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
- package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
- package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
- package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
- package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
- package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
- package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
- package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
- package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
- package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
- package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
- package/dist/vue-ui-xy-omDIF90L.js +0 -4744
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as t, Ct as n, G as r, H as i, Ht as a, J as o, Mt as s, Ot as c, Pt as l, S as ee, Tt as te, X as u, Y as ne, d as re, ht as ie, i as ae, it as oe, kt as se, n as ce, t as le, u as ue, v as de, x as fe, y as pe } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as me } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
-
import { t as he } from "./usePrinter-
|
|
4
|
+
import { t as he } from "./usePrinter-6n2MzVyV.js";
|
|
5
5
|
import { n as ge, t as _e } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
6
|
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ye } from "./useNestedProp-
|
|
7
|
+
import { t as ye } from "./useNestedProp-DtcXIg7n.js";
|
|
8
8
|
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as xe } from "./img-
|
|
10
|
-
import { n as Se } from "./Title-
|
|
9
|
+
import { t as xe } from "./img-C_RNNswI.js";
|
|
10
|
+
import { n as Se } from "./Title-DH6G8_cZ.js";
|
|
11
11
|
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as we } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as Te } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as Ee } from "./BaseLegendToggle-
|
|
14
|
+
import { t as Ee } from "./BaseLegendToggle-BNRi408o.js";
|
|
15
15
|
import { t as De } from "./A11yDataTable-BCbtxMU6.js";
|
|
16
16
|
import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Ae } from "./labelUtils-
|
|
19
|
-
import { t as je } from "./Legend-
|
|
18
|
+
import { t as Ae } from "./labelUtils-Bycs-017.js";
|
|
19
|
+
import { t as je } from "./Legend-BLhREbj7.js";
|
|
20
20
|
import { t as Me } from "./vue_ui_nested_donuts-B8csIoVO.js";
|
|
21
21
|
import { Fragment as d, Teleport as Ne, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Le, nextTick as Re, normalizeClass as y, normalizeProps as b, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as T, toRefs as We, unref as E, vShow as Ge, watch as Ke, withCtx as D, withDirectives as qe } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-nested-donuts.vue
|
|
@@ -106,14 +106,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
106
106
|
"copyAlt"
|
|
107
107
|
],
|
|
108
108
|
setup(e, { expose: Ce, emit: Je }) {
|
|
109
|
-
let Ot = _(() => import("./Tooltip-
|
|
109
|
+
let Ot = _(() => import("./Tooltip-979Ytd8R.js")), kt = _(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), At = _(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), jt = _(() => import("./DataTable-DweDyHc1.js")), Mt = _(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Nt = _(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Pt = _(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Ft = _(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_nested_donuts: It } = me(), { isThemeValid: Lt, warnInvalidTheme: Rt } = be(), O = e, zt = f({
|
|
110
110
|
get() {
|
|
111
111
|
return !!O.dataset && O.dataset.length;
|
|
112
112
|
},
|
|
113
113
|
set(e) {
|
|
114
114
|
return e;
|
|
115
115
|
}
|
|
116
|
-
}), k = S(
|
|
116
|
+
}), k = S(i()), Bt = S(!1), Vt = S(""), Ht = S(null), Ut = S(0), A = S(null), Wt = S(null), Gt = S(null), Kt = S(null), qt = S(null), Jt = S(0), Yt = S(0), Xt = S(0), j = S(!0), M = S([]), Zt = S([]), Qt = S(!1), $t = S(null), en = S(null), tn = S(!1), nn = S(!1), N = S(null), rn = S({
|
|
117
117
|
x: 0,
|
|
118
118
|
y: 0
|
|
119
119
|
}), an = S("pointer"), on = S(!1), P = S(!1);
|
|
@@ -139,7 +139,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
139
139
|
color: "#CACACA"
|
|
140
140
|
}
|
|
141
141
|
]
|
|
142
|
-
}, ln = f(() =>
|
|
142
|
+
}, ln = f(() => a({
|
|
143
143
|
defaultConfig: {
|
|
144
144
|
useCssAnimation: !1,
|
|
145
145
|
table: { show: !1 },
|
|
@@ -170,7 +170,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
170
170
|
});
|
|
171
171
|
},
|
|
172
172
|
skeletonDataset: O.config?.skeletonDataset ?? [cn, cn],
|
|
173
|
-
skeletonConfig:
|
|
173
|
+
skeletonConfig: a({
|
|
174
174
|
defaultConfig: F.value,
|
|
175
175
|
userConfig: ln.value
|
|
176
176
|
})
|
|
@@ -179,26 +179,26 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
179
179
|
let e = ye({
|
|
180
180
|
userConfig: O.config,
|
|
181
181
|
defaultConfig: It
|
|
182
|
-
}),
|
|
183
|
-
if (
|
|
182
|
+
}), n = {}, r = e.theme;
|
|
183
|
+
if (r) if (!Lt.value(e)) Rt(e), n = e;
|
|
184
184
|
else {
|
|
185
|
-
let
|
|
186
|
-
userConfig: Me[
|
|
185
|
+
let i = ye({
|
|
186
|
+
userConfig: Me[r] || O.config,
|
|
187
187
|
defaultConfig: e
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
n = {
|
|
190
190
|
...ye({
|
|
191
191
|
userConfig: O.config,
|
|
192
|
-
defaultConfig:
|
|
192
|
+
defaultConfig: i
|
|
193
193
|
}),
|
|
194
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
194
|
+
customPalette: e.customPalette.length ? e.customPalette : t[r] || c
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
else
|
|
198
|
-
return
|
|
197
|
+
else n = e;
|
|
198
|
+
return n;
|
|
199
199
|
}
|
|
200
200
|
Ke(() => O.config, (e) => {
|
|
201
|
-
un.value || (F.value = hn()), fn.value = !F.value.userOptions.showOnChartHover,
|
|
201
|
+
un.value || (F.value = hn()), fn.value = !F.value.userOptions.showOnChartHover, bn(), Jt.value += 1, Yt.value += 1, Xt.value += 1, V.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, V.value.showTable = F.value.table.show, V.value.showTooltip = F.value.style.chart.tooltip.show, H.value.width = F.value.style.chart.width, H.value.height = F.value.style.chart.height;
|
|
202
202
|
}, { deep: !0 });
|
|
203
203
|
let gn = f(() => {
|
|
204
204
|
let { top: e, right: t, bottom: n, left: r } = F.value.style.chart.padding;
|
|
@@ -210,55 +210,55 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
210
210
|
left: r
|
|
211
211
|
};
|
|
212
212
|
});
|
|
213
|
-
function _n(e,
|
|
214
|
-
return new Promise((
|
|
215
|
-
let
|
|
216
|
-
M.value = Array(
|
|
217
|
-
let
|
|
218
|
-
e.forEach((e,
|
|
213
|
+
function _n(e, t = 1e3, n = 50) {
|
|
214
|
+
return new Promise((r) => {
|
|
215
|
+
let i = e.length;
|
|
216
|
+
M.value = Array(i).fill(0), Zt.value = [];
|
|
217
|
+
let a = 0;
|
|
218
|
+
e.forEach((e, o) => {
|
|
219
219
|
setTimeout(() => {
|
|
220
|
-
let
|
|
220
|
+
let n = performance.now();
|
|
221
221
|
function c(l) {
|
|
222
|
-
let ee = Math.min((l -
|
|
223
|
-
M.value[
|
|
222
|
+
let ee = Math.min((l - n) / t, 1), te = e * ne(ee);
|
|
223
|
+
M.value[o] = te, M.value = [...M.value];
|
|
224
224
|
let u = [], re = 0;
|
|
225
|
-
O.dataset.forEach((e,
|
|
226
|
-
let
|
|
227
|
-
|
|
225
|
+
O.dataset.forEach((e, t) => {
|
|
226
|
+
let n = de(e.series.reduce((e, t) => e + de(s(t.values).reduce((e, t) => e + t, 0)), 0)) - de(M.value.slice(re, re + e.series.length).reduce((e, t) => e + t, 0));
|
|
227
|
+
n > Number.MIN_VALUE && u.push({
|
|
228
228
|
name: "__ghost__",
|
|
229
229
|
arcOf: e.name,
|
|
230
|
-
arcOfId: `${k.value}_${
|
|
231
|
-
id: `ghost_${k.value}_${
|
|
230
|
+
arcOfId: `${k.value}_${t}`,
|
|
231
|
+
id: `ghost_${k.value}_${t}`,
|
|
232
232
|
seriesIndex: -1,
|
|
233
|
-
datasetIndex:
|
|
233
|
+
datasetIndex: t,
|
|
234
234
|
color: "transparent",
|
|
235
|
-
value:
|
|
236
|
-
fullValue:
|
|
235
|
+
value: n,
|
|
236
|
+
fullValue: n,
|
|
237
237
|
absoluteValues: [],
|
|
238
238
|
ghost: !0
|
|
239
239
|
}), re += e.series.length;
|
|
240
|
-
}), Zt.value = u, ee < 1 ? requestAnimationFrame(c) : (
|
|
240
|
+
}), Zt.value = u, ee < 1 ? requestAnimationFrame(c) : (a += 1, a === i && r());
|
|
241
241
|
}
|
|
242
242
|
requestAnimationFrame(c);
|
|
243
|
-
},
|
|
243
|
+
}, o * n);
|
|
244
244
|
});
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
async function vn() {
|
|
248
248
|
if (F.value.startAnimation?.show) {
|
|
249
|
-
let e = L.value.flatMap((e) => e.series).map((e) =>
|
|
250
|
-
M.value = e.map(() => 0), j.value = !0, Zt.value = L.value.map((e,
|
|
251
|
-
let
|
|
249
|
+
let e = L.value.flatMap((e) => e.series).map((e) => s(e.values).reduce((e, t) => e + t, 0));
|
|
250
|
+
M.value = e.map(() => 0), j.value = !0, Zt.value = L.value.map((e, t) => {
|
|
251
|
+
let n = e.series.reduce((e, t) => e + s(t.values).reduce((e, t) => e + t, 0), 0);
|
|
252
252
|
return {
|
|
253
253
|
name: "__ghost__",
|
|
254
254
|
arcOf: e.name,
|
|
255
|
-
arcOfId: `${k.value}_${
|
|
256
|
-
id: `ghost_${k.value}_${
|
|
255
|
+
arcOfId: `${k.value}_${t}`,
|
|
256
|
+
id: `ghost_${k.value}_${t}`,
|
|
257
257
|
seriesIndex: -1,
|
|
258
|
-
datasetIndex:
|
|
258
|
+
datasetIndex: t,
|
|
259
259
|
color: "transparent",
|
|
260
|
-
value:
|
|
261
|
-
fullValue:
|
|
260
|
+
value: n,
|
|
261
|
+
fullValue: n,
|
|
262
262
|
absoluteValues: [],
|
|
263
263
|
ghost: !0
|
|
264
264
|
};
|
|
@@ -268,14 +268,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
268
268
|
} else j.value = !1;
|
|
269
269
|
}
|
|
270
270
|
Ve(async () => {
|
|
271
|
-
Qt.value = !0,
|
|
271
|
+
Qt.value = !0, bn(), await vn();
|
|
272
272
|
});
|
|
273
|
-
let z = Ue(null),
|
|
274
|
-
function
|
|
275
|
-
if (
|
|
273
|
+
let z = Ue(null), B = Ue(null), yn = f(() => !!F.value.debug);
|
|
274
|
+
function bn() {
|
|
275
|
+
if (te(O.dataset) ? (u({
|
|
276
276
|
componentName: "VueUiNestedDonuts",
|
|
277
277
|
type: "dataset",
|
|
278
|
-
debug:
|
|
278
|
+
debug: yn.value
|
|
279
279
|
}), zt.value = !1, dn.value = !0) : dn.value = F.value.loading, F.value.responsive) {
|
|
280
280
|
let e = we(() => {
|
|
281
281
|
let { width: e, height: t } = Te({
|
|
@@ -287,45 +287,45 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
287
287
|
padding: gn.value
|
|
288
288
|
});
|
|
289
289
|
requestAnimationFrame(() => {
|
|
290
|
-
|
|
290
|
+
H.value.width = e, H.value.height = t;
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
|
-
z.value && (
|
|
293
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = A.value.parentNode, z.value.observe(B.value);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
Be(() => {
|
|
297
|
-
z.value && (
|
|
297
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
298
298
|
});
|
|
299
|
-
let { isPrinting:
|
|
299
|
+
let { isPrinting: xn, isImaging: Sn, generatePdf: Cn, generateImage: wn } = he({
|
|
300
300
|
elementId: `nested_donuts_${k.value}`,
|
|
301
301
|
fileName: F.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
302
302
|
options: F.value.userOptions.print
|
|
303
|
-
}),
|
|
303
|
+
}), Tn = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), En = f(() => fe(F.value.customPalette)), V = S({
|
|
304
304
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
305
305
|
showTable: F.value.table.show,
|
|
306
306
|
showTooltip: F.value.style.chart.tooltip.show
|
|
307
307
|
});
|
|
308
308
|
Ke(F, () => {
|
|
309
|
-
|
|
309
|
+
V.value = {
|
|
310
310
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
311
311
|
showTable: F.value.table.show,
|
|
312
312
|
showTooltip: F.value.style.chart.tooltip.show
|
|
313
313
|
};
|
|
314
314
|
}, { immediate: !0 });
|
|
315
|
-
let
|
|
315
|
+
let H = S({
|
|
316
316
|
width: F.value.style.chart.width,
|
|
317
317
|
height: F.value.style.chart.height
|
|
318
|
-
}),
|
|
319
|
-
function
|
|
318
|
+
}), U = Je;
|
|
319
|
+
function Dn({ datapoint: e, index: t, seriesIndex: n }) {
|
|
320
320
|
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
321
321
|
datapoint: e,
|
|
322
322
|
seriesIndex: n
|
|
323
|
-
}),
|
|
323
|
+
}), U("selectDatapoint", {
|
|
324
324
|
datapoint: e,
|
|
325
325
|
index: t
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function On({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = ne }) {
|
|
329
329
|
let o = performance.now();
|
|
330
330
|
function s(c) {
|
|
331
331
|
let l = Math.min((c - o) / n, 1), ee = a(l);
|
|
@@ -333,25 +333,25 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
333
333
|
}
|
|
334
334
|
requestAnimationFrame(s);
|
|
335
335
|
}
|
|
336
|
-
let
|
|
336
|
+
let W = S([]), G = f(() => {
|
|
337
337
|
un.value, L.value.forEach((e, t) => {
|
|
338
338
|
[null, void 0].includes(e.name) && u({
|
|
339
339
|
componentName: "VueUiNestedDonuts",
|
|
340
340
|
type: "datasetSerieAttribute",
|
|
341
341
|
property: "name",
|
|
342
342
|
index: t,
|
|
343
|
-
debug:
|
|
343
|
+
debug: yn.value
|
|
344
344
|
}), [null, void 0].includes(e.series) ? u({
|
|
345
345
|
componentName: "VueUiNestedDonuts",
|
|
346
346
|
type: "datasetSerieAttribute",
|
|
347
347
|
property: "series",
|
|
348
348
|
index: t,
|
|
349
|
-
debug:
|
|
349
|
+
debug: yn.value
|
|
350
350
|
}) : e.series.length === 0 ? u({
|
|
351
351
|
componentName: "VueUiNestedDonuts",
|
|
352
352
|
type: "datasetAttributeEmpty",
|
|
353
353
|
property: `series at index ${t}`,
|
|
354
|
-
debug:
|
|
354
|
+
debug: yn.value
|
|
355
355
|
}) : e.series.forEach((e, t) => {
|
|
356
356
|
[null, void 0].includes(e.name) && u({
|
|
357
357
|
componentName: "VueUiNestedDonuts",
|
|
@@ -359,35 +359,35 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
359
359
|
property: "name",
|
|
360
360
|
index: t,
|
|
361
361
|
key: "serie",
|
|
362
|
-
debug:
|
|
362
|
+
debug: yn.value
|
|
363
363
|
}), [null, void 0].includes(e.values) && u({
|
|
364
364
|
componentName: "VueUiNestedDonuts",
|
|
365
365
|
type: "datasetSerieAttribute",
|
|
366
366
|
property: "values",
|
|
367
367
|
index: t,
|
|
368
368
|
key: "serie",
|
|
369
|
-
debug:
|
|
369
|
+
debug: yn.value
|
|
370
370
|
});
|
|
371
371
|
});
|
|
372
372
|
});
|
|
373
373
|
let e = 0;
|
|
374
|
-
return L.value.map((
|
|
375
|
-
...
|
|
376
|
-
total:
|
|
377
|
-
datasetIndex:
|
|
378
|
-
id: `${k.value}_${
|
|
379
|
-
series:
|
|
380
|
-
let
|
|
374
|
+
return L.value.map((t, n) => ({
|
|
375
|
+
...t,
|
|
376
|
+
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => s(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
377
|
+
datasetIndex: n,
|
|
378
|
+
id: `${k.value}_${n}`,
|
|
379
|
+
series: t.series.map((r, i) => {
|
|
380
|
+
let a = s(r.values).reduce((e, t) => e + t, 0);
|
|
381
381
|
return {
|
|
382
|
-
name:
|
|
383
|
-
arcOf:
|
|
384
|
-
arcOfId: `${k.value}_${
|
|
385
|
-
id: `${k.value}_${
|
|
386
|
-
seriesIndex:
|
|
387
|
-
datasetIndex:
|
|
388
|
-
color: pe(
|
|
389
|
-
value: j.value ? M.value[e++] ?? 0 :
|
|
390
|
-
absoluteValues:
|
|
382
|
+
name: r.name,
|
|
383
|
+
arcOf: t.name,
|
|
384
|
+
arcOfId: `${k.value}_${n}`,
|
|
385
|
+
id: `${k.value}_${n}_${i}`,
|
|
386
|
+
seriesIndex: i,
|
|
387
|
+
datasetIndex: n,
|
|
388
|
+
color: pe(r.color) || En.value[i] || c[i % c.length],
|
|
389
|
+
value: j.value ? M.value[e++] ?? 0 : a,
|
|
390
|
+
absoluteValues: r.values || []
|
|
391
391
|
};
|
|
392
392
|
})
|
|
393
393
|
}));
|
|
@@ -395,48 +395,48 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
395
395
|
Ke(() => O.dataset, (e) => {
|
|
396
396
|
Array.isArray(e) && e.length > 0 && (dn.value = !1);
|
|
397
397
|
}, { immediate: !0 });
|
|
398
|
-
let
|
|
399
|
-
let n = e.series.filter((e) => !
|
|
398
|
+
let K = f(() => Math.min(H.value.height, H.value.width) * (F.value.style.chart.layout.donut.strokeWidth / 512)), q = f(() => [...G.value].map((e, t) => {
|
|
399
|
+
let n = e.series.filter((e) => !W.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
400
400
|
return {
|
|
401
401
|
...e,
|
|
402
402
|
total: n,
|
|
403
|
-
series: e.series.filter((e) => !
|
|
403
|
+
series: e.series.filter((e) => !W.value.includes(e.id)).map((e) => ({
|
|
404
404
|
...e,
|
|
405
405
|
proportion: e.value / n
|
|
406
406
|
}))
|
|
407
407
|
};
|
|
408
408
|
}));
|
|
409
|
-
function
|
|
409
|
+
function kn(e, t, n) {
|
|
410
410
|
let r = 0;
|
|
411
411
|
for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
|
|
412
412
|
return r < t;
|
|
413
413
|
}
|
|
414
|
-
let
|
|
415
|
-
Ke(() =>
|
|
416
|
-
function
|
|
414
|
+
let J = S(q.value);
|
|
415
|
+
Ke(() => q.value, (e) => J.value = e);
|
|
416
|
+
function An(e) {
|
|
417
417
|
let t = e.map((e) => e.id);
|
|
418
|
-
if (e.some((e) =>
|
|
418
|
+
if (e.some((e) => W.value.includes(e.id))) {
|
|
419
419
|
let e = new Set(t);
|
|
420
|
-
|
|
421
|
-
} else
|
|
422
|
-
|
|
420
|
+
W.value = W.value.filter((t) => !e.has(t));
|
|
421
|
+
} else W.value.push(...t);
|
|
422
|
+
U("selectLegend", q.value);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
let
|
|
426
|
-
value:
|
|
427
|
-
id: `${k.value}_${
|
|
428
|
-
arcOfId: `${k.value}_${
|
|
424
|
+
function Y(e) {
|
|
425
|
+
let t = O.dataset.flatMap((e, t) => e.series.map((e, n) => ({
|
|
426
|
+
value: s(e.values).reduce((e, t) => e + t, 0),
|
|
427
|
+
id: `${k.value}_${t}_${n}`,
|
|
428
|
+
arcOfId: `${k.value}_${t}`
|
|
429
429
|
}))).find((t) => t.id === e.id);
|
|
430
|
-
if (!
|
|
431
|
-
let
|
|
432
|
-
if (!
|
|
433
|
-
let
|
|
434
|
-
|
|
435
|
-
from:
|
|
436
|
-
to:
|
|
430
|
+
if (!t) return;
|
|
431
|
+
let n = G.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = G.value.find((e) => e.id === t.arcOfId);
|
|
432
|
+
if (!a) return;
|
|
433
|
+
let o = a.series.map((e) => e.id), c = kn(o, o.length - 1, W.value);
|
|
434
|
+
W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), F.value.serieToggleAnimation.show ? On({
|
|
435
|
+
from: i,
|
|
436
|
+
to: n,
|
|
437
437
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
438
438
|
onUpdate: (t) => {
|
|
439
|
-
|
|
439
|
+
J.value = J.value.map((n) => ({
|
|
440
440
|
...n,
|
|
441
441
|
series: n.series.map((n) => n.id === e.id ? {
|
|
442
442
|
...n,
|
|
@@ -445,20 +445,20 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
445
445
|
}));
|
|
446
446
|
},
|
|
447
447
|
onDone: () => {
|
|
448
|
-
|
|
448
|
+
U("selectLegend", q.value);
|
|
449
449
|
}
|
|
450
|
-
}) : (
|
|
450
|
+
}) : (J.value = J.value.map((t) => ({
|
|
451
451
|
...t,
|
|
452
452
|
series: t.series.map((t) => t.id === e.id ? {
|
|
453
453
|
...t,
|
|
454
|
-
value:
|
|
454
|
+
value: n
|
|
455
455
|
} : t)
|
|
456
|
-
})),
|
|
457
|
-
from:
|
|
456
|
+
})), U("selectLegend", q.value))) : c && (F.value.serieToggleAnimation.show ? On({
|
|
457
|
+
from: i,
|
|
458
458
|
to: 0,
|
|
459
459
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
460
460
|
onUpdate: (t) => {
|
|
461
|
-
|
|
461
|
+
J.value = J.value.map((n) => ({
|
|
462
462
|
...n,
|
|
463
463
|
series: n.series.map((n) => n.id === e.id ? {
|
|
464
464
|
...n,
|
|
@@ -467,62 +467,62 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
467
467
|
}));
|
|
468
468
|
},
|
|
469
469
|
onDone: () => {
|
|
470
|
-
|
|
470
|
+
W.value.push(e.id), U("selectLegend", q.value);
|
|
471
471
|
}
|
|
472
|
-
}) : (
|
|
472
|
+
}) : (J.value = J.value.map((t) => ({
|
|
473
473
|
...t,
|
|
474
474
|
series: t.series.map((t) => t.id === e.id ? {
|
|
475
475
|
...t,
|
|
476
476
|
value: 0
|
|
477
477
|
} : t)
|
|
478
|
-
})),
|
|
478
|
+
})), W.value.push(e.id), U("selectLegend", q.value)));
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
480
|
+
function jn(e) {
|
|
481
|
+
return G.value.length ? G.value.flatMap((e) => e.series).filter((t) => t.name === e) || (F.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null);
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
let t =
|
|
483
|
+
function Mn(e) {
|
|
484
|
+
let t = jn(e);
|
|
485
485
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
486
|
-
|
|
487
|
-
}) :
|
|
486
|
+
W.value.includes(e.id) && Y({ id: e.id });
|
|
487
|
+
}) : W.value.includes(t.id) && Y({ id: t.id }));
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
let t =
|
|
489
|
+
function Nn(e) {
|
|
490
|
+
let t = jn(e);
|
|
491
491
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
492
|
-
|
|
493
|
-
}) :
|
|
492
|
+
W.value.includes(e.id) || Y({ id: e.id });
|
|
493
|
+
}) : W.value.includes(t.id) || Y({ id: t.id }));
|
|
494
494
|
}
|
|
495
|
-
let
|
|
496
|
-
let
|
|
495
|
+
let Pn = f(() => K.value / G.value.length * F.value.style.chart.layout.donut.spacingRatio), Fn = f(() => J.value.map((e, t) => K.value - t * K.value / G.value.length)), X = f(() => J.value.map((e, t) => {
|
|
496
|
+
let r = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, i = K.value - t * K.value / J.value.length, a = j.value ? Zt.value.find((e) => e.datasetIndex === t) : null, o = [...e.series, ...a ? [a] : []].map((e) => ({
|
|
497
497
|
...e,
|
|
498
498
|
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
499
|
-
})),
|
|
499
|
+
})), s = n({ series: [{
|
|
500
500
|
name: "_",
|
|
501
501
|
color: F.value.style.chart.layout.donut.emptyFill,
|
|
502
502
|
value: 1
|
|
503
|
-
}] },
|
|
504
|
-
a ${
|
|
505
|
-
a ${
|
|
503
|
+
}] }, H.value.width / 2, H.value.height / 2, i, i, 1.99999, 2, 1, 360, 105.25, Pn.value), c = `M ${H.value.width / 2},${H.value.height / 2 + i}
|
|
504
|
+
a ${i},${i} 0 1,1 0,${-2 * i}
|
|
505
|
+
a ${i},${i} 0 1,1 0,${2 * i}`;
|
|
506
506
|
return {
|
|
507
507
|
...e,
|
|
508
|
-
hasData:
|
|
509
|
-
radius:
|
|
510
|
-
skeleton:
|
|
511
|
-
fullCirclePath:
|
|
512
|
-
donut:
|
|
508
|
+
hasData: r,
|
|
509
|
+
radius: i,
|
|
510
|
+
skeleton: s,
|
|
511
|
+
fullCirclePath: c,
|
|
512
|
+
donut: n({ series: o }, H.value.width / 2, H.value.height / 2, i, i, 1.99999, 2, 1, 360, 105.25, Pn.value)
|
|
513
513
|
};
|
|
514
|
-
})),
|
|
515
|
-
let
|
|
514
|
+
})), In = f(() => [...G.value].map((e, t) => {
|
|
515
|
+
let r = t * K.value / G.value.length;
|
|
516
516
|
return {
|
|
517
|
-
sizeRatio:
|
|
518
|
-
donut:
|
|
517
|
+
sizeRatio: r,
|
|
518
|
+
donut: n({ series: [{ value: 1 }] }, H.value.width / 2, H.value.height / 2, K.value - r, K.value - r, 1.99999, 2, 1, 360, 105.25, K.value / G.value.length * F.value.style.chart.layout.donut.spacingRatio)[0]
|
|
519
519
|
};
|
|
520
|
-
})),
|
|
520
|
+
})), Ln = S(null), Rn = S(null), Z = S(null), zn = S(null);
|
|
521
521
|
function Bn({ datapoint: e, seriesIndex: t }) {
|
|
522
522
|
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
523
523
|
datapoint: e,
|
|
524
524
|
seriesIndex: t
|
|
525
|
-
}), Bt.value = !1,
|
|
525
|
+
}), Bt.value = !1, Ln.value = null, Ht.value = null, Rn.value = null, Z.value = null, N.value = null, an.value = "pointer";
|
|
526
526
|
}
|
|
527
527
|
function Vn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
528
528
|
return Ae({
|
|
@@ -533,42 +533,42 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
533
533
|
showPercentage: r
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
|
-
function Hn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode:
|
|
536
|
+
function Hn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode: i = "pointer" }) {
|
|
537
537
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
538
538
|
datapoint: e,
|
|
539
539
|
seriesIndex: n
|
|
540
|
-
}), an.value =
|
|
540
|
+
}), an.value = i, N.value = n, Ln.value = e.arcOfId, Rn.value = e.id, Z.value = n, Ht.value = e.id, zn.value = {
|
|
541
541
|
datapoint: e,
|
|
542
542
|
seriesIndex: n,
|
|
543
|
-
series:
|
|
543
|
+
series: J.value,
|
|
544
544
|
config: F.value
|
|
545
545
|
};
|
|
546
|
-
let
|
|
547
|
-
if (
|
|
546
|
+
let a = F.value.style.chart.tooltip.customFormat;
|
|
547
|
+
if (ie(a) && oe(() => a({
|
|
548
548
|
seriesIndex: n,
|
|
549
549
|
datapoint: e,
|
|
550
|
-
series:
|
|
550
|
+
series: J.value,
|
|
551
551
|
config: F.value
|
|
552
|
-
}))) Vt.value =
|
|
552
|
+
}))) Vt.value = a({
|
|
553
553
|
seriesIndex: n,
|
|
554
554
|
datapoint: e,
|
|
555
|
-
series:
|
|
555
|
+
series: J.value,
|
|
556
556
|
config: F.value
|
|
557
557
|
});
|
|
558
558
|
else {
|
|
559
559
|
let t = "";
|
|
560
|
-
if (F.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
561
|
-
let
|
|
562
|
-
|
|
563
|
-
if (!
|
|
560
|
+
if (F.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) {
|
|
561
|
+
let i = J.value.map((e) => e.series.find((e) => e.seriesIndex === n));
|
|
562
|
+
i.forEach((a, o) => {
|
|
563
|
+
if (!a) return "";
|
|
564
564
|
t += `
|
|
565
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${
|
|
565
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${o < i.length - 1 ? `border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor}` : ""}">
|
|
566
566
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
567
567
|
<svg viewBox="0 0 20 20" height="${F.value.style.chart.tooltip.fontSize}" width="${F.value.style.chart.tooltip.fontSize}">
|
|
568
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
568
|
+
<circle cx="10" cy="10" r="10" fill="${a.color}"/>
|
|
569
569
|
</svg>
|
|
570
570
|
<span>
|
|
571
|
-
${
|
|
571
|
+
${a.arcOf ?? ""} - ${a.name}
|
|
572
572
|
</span>
|
|
573
573
|
</div>
|
|
574
574
|
<span>
|
|
@@ -577,7 +577,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
577
577
|
config: F.value.style.chart.tooltip,
|
|
578
578
|
showVal: F.value.style.chart.tooltip.showValue,
|
|
579
579
|
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
580
|
-
val:
|
|
580
|
+
val: ae(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, r({
|
|
581
581
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
582
582
|
v: e.value,
|
|
583
583
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -586,8 +586,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
586
586
|
datapoint: e,
|
|
587
587
|
seriesIndex: n
|
|
588
588
|
}),
|
|
589
|
-
percentage:
|
|
590
|
-
v:
|
|
589
|
+
percentage: r({
|
|
590
|
+
v: a.proportion * 100,
|
|
591
591
|
s: "%",
|
|
592
592
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
593
593
|
})
|
|
@@ -597,7 +597,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
597
597
|
</div>
|
|
598
598
|
`;
|
|
599
599
|
});
|
|
600
|
-
} else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, F.value.style.chart.tooltip.showValue && (t += `<b>${
|
|
600
|
+
} else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, F.value.style.chart.tooltip.showValue && (t += `<b>${ae(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, r({
|
|
601
601
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
602
602
|
v: e.value,
|
|
603
603
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -605,11 +605,11 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
605
605
|
}), {
|
|
606
606
|
datapoint: e,
|
|
607
607
|
seriesIndex: n
|
|
608
|
-
})}</b>`), F.value.style.chart.tooltip.showPercentage && (F.value.style.chart.tooltip.showValue ? t += `<span>(${
|
|
608
|
+
})}</b>`), F.value.style.chart.tooltip.showPercentage && (F.value.style.chart.tooltip.showValue ? t += `<span>(${r({
|
|
609
609
|
v: e.proportion * 100,
|
|
610
610
|
s: "%",
|
|
611
611
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
612
|
-
})})</span></div>` : t += `<b>${
|
|
612
|
+
})})</span></div>` : t += `<b>${r({
|
|
613
613
|
v: e.proportion * 100,
|
|
614
614
|
s: "%",
|
|
615
615
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
@@ -623,27 +623,27 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
623
623
|
}
|
|
624
624
|
function Wn(e, t) {
|
|
625
625
|
if (!F.value.useBlurOnHover) return "";
|
|
626
|
-
if (F.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
627
|
-
if (!F.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
626
|
+
if (F.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) return [null, void 0].includes(Z.value) || Z.value === t ? "" : `url(#blur_${k.value})`;
|
|
627
|
+
if (!F.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(Rn.value) || Rn.value === e.id ? "" : `url(#blur_${k.value})`;
|
|
628
628
|
}
|
|
629
|
-
let Gn = f(() =>
|
|
630
|
-
let
|
|
631
|
-
let
|
|
632
|
-
return
|
|
633
|
-
}).reduce((e, t) => e + t, 0) :
|
|
634
|
-
return e.series.map((e,
|
|
635
|
-
let a =
|
|
636
|
-
val:
|
|
629
|
+
let Gn = f(() => G.value.map((e, t) => {
|
|
630
|
+
let n = e.series.filter((e) => !W.value.includes(e.id)), i = j.value ? n.map((e) => {
|
|
631
|
+
let n = L.value[t].series.findIndex((t) => t.name === e.name);
|
|
632
|
+
return s(L.value[t].series[n].values).reduce((e, t) => e + t, 0);
|
|
633
|
+
}).reduce((e, t) => e + t, 0) : n.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
634
|
+
return e.series.map((e, n) => {
|
|
635
|
+
let a = s(L.value[t].series[n].values).reduce((e, t) => e + t, 0), o = j.value ? a : e.value, c = Vn({
|
|
636
|
+
val: ae(F.value.style.chart.layout.labels.dataLabels.formatter, o, r({
|
|
637
637
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
638
|
-
v:
|
|
638
|
+
v: o,
|
|
639
639
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
640
640
|
r: F.value.style.chart.legend.roundingValue
|
|
641
641
|
}), {
|
|
642
642
|
datapoint: e,
|
|
643
|
-
seriesIndex:
|
|
643
|
+
seriesIndex: n
|
|
644
644
|
}),
|
|
645
|
-
percentage: isNaN(
|
|
646
|
-
v:
|
|
645
|
+
percentage: isNaN(o / i) || W.value.includes(e.id) ? "-" : r({
|
|
646
|
+
v: o / i * 100,
|
|
647
647
|
s: "%",
|
|
648
648
|
r: F.value.style.chart.legend.roundingPercentage
|
|
649
649
|
}),
|
|
@@ -654,18 +654,18 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
654
654
|
return {
|
|
655
655
|
name: e.name,
|
|
656
656
|
color: e.color,
|
|
657
|
-
value:
|
|
657
|
+
value: o,
|
|
658
658
|
display: l,
|
|
659
659
|
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${l}`,
|
|
660
660
|
shape: "circle",
|
|
661
661
|
arcOf: e.arcOf,
|
|
662
662
|
id: e.id,
|
|
663
|
-
seriesIndex:
|
|
664
|
-
datasetIndex:
|
|
663
|
+
seriesIndex: n,
|
|
664
|
+
datasetIndex: t,
|
|
665
665
|
total: i,
|
|
666
|
-
opacity:
|
|
667
|
-
segregate: () =>
|
|
668
|
-
isSegregated:
|
|
666
|
+
opacity: W.value.includes(e.id) ? .5 : 1,
|
|
667
|
+
segregate: () => Y(e),
|
|
668
|
+
isSegregated: W.value.includes(e.id)
|
|
669
669
|
};
|
|
670
670
|
});
|
|
671
671
|
})), Kn = f(() => ({
|
|
@@ -676,12 +676,12 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
676
676
|
paddingBottom: 12,
|
|
677
677
|
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
678
678
|
})), Q = f(() => ({
|
|
679
|
-
head:
|
|
679
|
+
head: J.value.flatMap((e) => e.series.map((t) => ({
|
|
680
680
|
name: `${e.name} - ${t.name}`,
|
|
681
681
|
color: t.color,
|
|
682
682
|
total: e.total
|
|
683
683
|
}))),
|
|
684
|
-
body:
|
|
684
|
+
body: J.value.flatMap((e) => e.series.map((e) => e.value))
|
|
685
685
|
}));
|
|
686
686
|
function qn(e = null) {
|
|
687
687
|
Re(() => {
|
|
@@ -689,7 +689,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
689
689
|
[e.name],
|
|
690
690
|
[Q.value.body[t]],
|
|
691
691
|
[isNaN(Q.value.body[t] / e.total) ? "-" : Q.value.body[t] / e.total * 100]
|
|
692
|
-
]), n =
|
|
692
|
+
]), n = ee([
|
|
693
693
|
[F.value.style.chart.title.text],
|
|
694
694
|
[F.value.style.chart.title.subtitle.text],
|
|
695
695
|
[
|
|
@@ -698,7 +698,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
698
698
|
["%"]
|
|
699
699
|
]
|
|
700
700
|
].concat(t));
|
|
701
|
-
e ? e(n) :
|
|
701
|
+
e ? e(n) : o({
|
|
702
702
|
csvContent: n,
|
|
703
703
|
title: F.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
704
704
|
});
|
|
@@ -710,7 +710,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
710
710
|
F.value.table.columnNames.value,
|
|
711
711
|
F.value.table.columnNames.percentage
|
|
712
712
|
], t = Q.value.head.map((e, t) => {
|
|
713
|
-
let n =
|
|
713
|
+
let n = r({
|
|
714
714
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
715
715
|
v: Q.value.body[t],
|
|
716
716
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -722,13 +722,13 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
722
722
|
name: e.name
|
|
723
723
|
},
|
|
724
724
|
n,
|
|
725
|
-
isNaN(Q.value.body[t] / e.total) ? "-" :
|
|
725
|
+
isNaN(Q.value.body[t] / e.total) ? "-" : r({
|
|
726
726
|
v: Q.value.body[t] / e.total * 100,
|
|
727
727
|
s: "%",
|
|
728
728
|
r: F.value.table.td.roundingPercentage
|
|
729
729
|
})
|
|
730
730
|
];
|
|
731
|
-
}), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
|
|
731
|
+
}), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
|
|
732
732
|
th: {
|
|
733
733
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
734
734
|
color: F.value.table.th.color,
|
|
@@ -750,20 +750,20 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
750
750
|
head: e,
|
|
751
751
|
body: t,
|
|
752
752
|
a11yBody: n,
|
|
753
|
-
config:
|
|
753
|
+
config: i
|
|
754
754
|
};
|
|
755
755
|
});
|
|
756
756
|
function Yn() {
|
|
757
|
-
return
|
|
757
|
+
return G.value;
|
|
758
758
|
}
|
|
759
759
|
function Xn() {
|
|
760
|
-
|
|
760
|
+
V.value.showTable = !V.value.showTable;
|
|
761
761
|
}
|
|
762
762
|
function Zn() {
|
|
763
|
-
|
|
763
|
+
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
764
764
|
}
|
|
765
765
|
function Qn() {
|
|
766
|
-
|
|
766
|
+
V.value.showTooltip = !V.value.showTooltip;
|
|
767
767
|
}
|
|
768
768
|
let $n = S(!1);
|
|
769
769
|
function er() {
|
|
@@ -793,7 +793,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
793
793
|
R.value && R.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
794
794
|
}
|
|
795
795
|
let ir = f(() => {
|
|
796
|
-
let e = F.value.table.useDialog && !F.value.table.show, t =
|
|
796
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = V.value.showTable;
|
|
797
797
|
return {
|
|
798
798
|
component: e ? Ft : At,
|
|
799
799
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -823,11 +823,11 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
});
|
|
826
|
-
Ke(() =>
|
|
826
|
+
Ke(() => V.value.showTable, (e) => {
|
|
827
827
|
F.value.table.show || (e && F.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
|
|
828
828
|
});
|
|
829
829
|
function ar() {
|
|
830
|
-
|
|
830
|
+
V.value.showTable = !1, en.value && en.value.setTableIconState(!1);
|
|
831
831
|
}
|
|
832
832
|
let or = f(() => F.value.style.chart.backgroundColor), sr = f(() => F.value.style.chart.legend), { exportSvg: cr, getSvg: lr } = ve({
|
|
833
833
|
svg: R,
|
|
@@ -864,41 +864,41 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
864
864
|
tn.value = !1;
|
|
865
865
|
return;
|
|
866
866
|
}
|
|
867
|
-
|
|
867
|
+
wn();
|
|
868
868
|
}
|
|
869
869
|
async function fr() {
|
|
870
|
-
if (
|
|
870
|
+
if (U("copyAlt", {
|
|
871
871
|
config: F.value,
|
|
872
|
-
dataset:
|
|
872
|
+
dataset: J.value
|
|
873
873
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
874
874
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
875
875
|
return;
|
|
876
876
|
}
|
|
877
877
|
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
878
878
|
config: F.value,
|
|
879
|
-
dataset:
|
|
879
|
+
dataset: J.value
|
|
880
880
|
}));
|
|
881
881
|
}
|
|
882
|
-
let $ = f(() =>
|
|
882
|
+
let $ = f(() => X.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
|
|
883
883
|
function pr() {
|
|
884
884
|
N.value = null, on.value = !0;
|
|
885
885
|
}
|
|
886
886
|
function mr() {
|
|
887
|
-
N.value = null, an.value = "pointer", Bt.value = !1,
|
|
887
|
+
N.value = null, an.value = "pointer", Bt.value = !1, Ln.value = null, Ht.value = null, Rn.value = null, Z.value = null, on.value = !1;
|
|
888
888
|
}
|
|
889
889
|
function hr(e) {
|
|
890
890
|
if (!R.value || $n.value || document.activeElement !== R.value || !$.value.length) return;
|
|
891
891
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
892
892
|
if (!t && !n && !r && !i) return;
|
|
893
893
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
894
|
-
N.value = null, an.value = "pointer", Bt.value = !1,
|
|
894
|
+
N.value = null, an.value = "pointer", Bt.value = !1, Ln.value = null, Ht.value = null, Rn.value = null, Z.value = null;
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
897
|
if (r) {
|
|
898
898
|
if (N.value === null) return;
|
|
899
899
|
let e = $.value[N.value];
|
|
900
900
|
if (!e) return;
|
|
901
|
-
|
|
901
|
+
Dn({
|
|
902
902
|
datapoint: e,
|
|
903
903
|
index: N.value,
|
|
904
904
|
seriesIndex: e.seriesIndex
|
|
@@ -932,12 +932,12 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
932
932
|
autoSize: rr,
|
|
933
933
|
getData: Yn,
|
|
934
934
|
getImage: tr,
|
|
935
|
-
generatePdf:
|
|
935
|
+
generatePdf: Cn,
|
|
936
936
|
generateCsv: qn,
|
|
937
|
-
generateImage:
|
|
937
|
+
generateImage: wn,
|
|
938
938
|
generateSvg: ur,
|
|
939
|
-
hideSeries:
|
|
940
|
-
showSeries:
|
|
939
|
+
hideSeries: Nn,
|
|
940
|
+
showSeries: Mn,
|
|
941
941
|
toggleTable: Xn,
|
|
942
942
|
toggleLabels: Zn,
|
|
943
943
|
toggleTooltip: Qn,
|
|
@@ -994,7 +994,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
994
994
|
"active",
|
|
995
995
|
"isCursorPointer"
|
|
996
996
|
])) : m("", !0),
|
|
997
|
-
|
|
997
|
+
Tn.value ? (x(), h("div", {
|
|
998
998
|
key: 2,
|
|
999
999
|
ref_key: "noTitle",
|
|
1000
1000
|
ref: qt,
|
|
@@ -1025,8 +1025,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1025
1025
|
key: `user_option_${Ut.value}`,
|
|
1026
1026
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
1027
1027
|
color: F.value.style.chart.color,
|
|
1028
|
-
isPrinting: E(
|
|
1029
|
-
isImaging: E(
|
|
1028
|
+
isPrinting: E(xn),
|
|
1029
|
+
isImaging: E(Sn),
|
|
1030
1030
|
uid: k.value,
|
|
1031
1031
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
1032
1032
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
@@ -1038,7 +1038,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1038
1038
|
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
1039
1039
|
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
1040
1040
|
isFullscreen: P.value,
|
|
1041
|
-
isTooltip:
|
|
1041
|
+
isTooltip: V.value.showTooltip,
|
|
1042
1042
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
1043
1043
|
chartElement: A.value,
|
|
1044
1044
|
position: F.value.userOptions.position,
|
|
@@ -1049,7 +1049,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1049
1049
|
tableDialog: F.value.table.useDialog,
|
|
1050
1050
|
isCursorPointer: I.value,
|
|
1051
1051
|
onToggleFullscreen: sn,
|
|
1052
|
-
onGeneratePdf: E(
|
|
1052
|
+
onGeneratePdf: E(Cn),
|
|
1053
1053
|
onGenerateCsv: qn,
|
|
1054
1054
|
onGenerateImage: dr,
|
|
1055
1055
|
onGenerateSvg: ur,
|
|
@@ -1138,14 +1138,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1138
1138
|
g("div", Qe, [(x(), h("svg", {
|
|
1139
1139
|
ref_key: "svgRef",
|
|
1140
1140
|
ref: R,
|
|
1141
|
-
xmlns: E(
|
|
1141
|
+
xmlns: E(le),
|
|
1142
1142
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1143
1143
|
class: y({
|
|
1144
1144
|
"vue-data-ui-fullscreen--on": P.value,
|
|
1145
1145
|
"vue-data-ui-fulscreen--off": !P.value,
|
|
1146
1146
|
"vue-data-ui-svg": !0
|
|
1147
1147
|
}),
|
|
1148
|
-
viewBox: `0 0 ${
|
|
1148
|
+
viewBox: `0 0 ${H.value.width <= 0 ? .001 : H.value.width} ${H.value.height < 0 ? .001 : H.value.height}`,
|
|
1149
1149
|
style: ze(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color};${gn.value.css}`),
|
|
1150
1150
|
tabindex: "0",
|
|
1151
1151
|
onFocus: pr,
|
|
@@ -1161,23 +1161,23 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
x: 0,
|
|
1163
1163
|
y: 0,
|
|
1164
|
-
width:
|
|
1165
|
-
height:
|
|
1164
|
+
width: H.value.width <= 0 ? .001 : H.value.width,
|
|
1165
|
+
height: H.value.height < 0 ? .001 : H.value.height,
|
|
1166
1166
|
style: { pointerEvents: "none" }
|
|
1167
1167
|
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : m("", !0),
|
|
1168
|
-
g("defs", null, [(x(!0), h(d, null, C(
|
|
1168
|
+
g("defs", null, [(x(!0), h(d, null, C(In.value, (e, n) => (x(), h("radialGradient", { id: `radial_${k.value}_${n}` }, [
|
|
1169
1169
|
t[4] ||= g("stop", {
|
|
1170
1170
|
offset: "0%",
|
|
1171
1171
|
"stop-color": "#FFFFFF",
|
|
1172
1172
|
"stop-opacity": "0"
|
|
1173
1173
|
}, null, -1),
|
|
1174
1174
|
g("stop", {
|
|
1175
|
-
offset: `${(1 -
|
|
1175
|
+
offset: `${(1 - Pn.value / Fn.value[n]) * 100}%`,
|
|
1176
1176
|
"stop-color": E(l)("#FFFFFF", 0),
|
|
1177
1177
|
"stop-opacity": "0"
|
|
1178
1178
|
}, null, 8, nt),
|
|
1179
1179
|
g("stop", {
|
|
1180
|
-
offset: `${(1 -
|
|
1180
|
+
offset: `${(1 - Pn.value / Fn.value[n] / 2) * 100}%`,
|
|
1181
1181
|
"stop-color": "#FFFFFF",
|
|
1182
1182
|
"stop-opacity": F.value.style.chart.gradientIntensity / 100
|
|
1183
1183
|
}, null, 8, rt),
|
|
@@ -1210,13 +1210,13 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1210
1210
|
"flood-opacity": "0.5",
|
|
1211
1211
|
"flood-color": F.value.style.chart.layout.donut.shadowColor
|
|
1212
1212
|
}, null, 8, st)], 8, ot)]),
|
|
1213
|
-
g("defs", null, [(x(!0), h(d, null, C(
|
|
1213
|
+
g("defs", null, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("path", {
|
|
1214
1214
|
key: `path-full-${t}`,
|
|
1215
1215
|
id: `path-full-${t}-${k.value}`,
|
|
1216
1216
|
d: e.fullCirclePath,
|
|
1217
1217
|
fill: "none"
|
|
1218
1218
|
}, null, 8, ct))), 128))]),
|
|
1219
|
-
(x(!0), h(d, null, C(
|
|
1219
|
+
(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("g", null, [e.hasData ? (x(!0), h(d, { key: 0 }, C(e.donut.filter((e) => !e.ghost), (e, t) => (x(), h("g", null, [g("path", {
|
|
1220
1220
|
class: "vue-ui-donut-arc-path",
|
|
1221
1221
|
d: e.arcSlice,
|
|
1222
1222
|
fill: e.color,
|
|
@@ -1230,13 +1230,13 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1230
1230
|
stroke: F.value.style.chart.layout.donut.borderColorAuto ? F.value.style.chart.backgroundColor : F.value.style.chart.layout.donut.borderColor,
|
|
1231
1231
|
"stroke-width": F.value.style.chart.layout.donut.borderWidth
|
|
1232
1232
|
}, null, 8, ut)]))), 256))]))), 256)),
|
|
1233
|
-
F.value.style.chart.useGradient ? (x(), h("g", dt, [(x(!0), h(d, null, C(
|
|
1233
|
+
F.value.style.chart.useGradient ? (x(), h("g", dt, [(x(!0), h(d, null, C(In.value, (e, t) => (x(), h("g", null, [g("path", {
|
|
1234
1234
|
d: e.donut.arcSlice,
|
|
1235
1235
|
fill: `url(#radial_${k.value}_${t})`,
|
|
1236
1236
|
stroke: "transparent",
|
|
1237
1237
|
"stroke-width": "0"
|
|
1238
1238
|
}, null, 8, ft)]))), 256))])) : m("", !0),
|
|
1239
|
-
F.value.style.chart.layout.labels.dataLabels.showDonutName ? (x(), h("g", pt, [F.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (x(!0), h(d, { key: 0 }, C(
|
|
1239
|
+
F.value.style.chart.layout.labels.dataLabels.showDonutName ? (x(), h("g", pt, [F.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (x(!0), h(d, { key: 0 }, C(X.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (n, r) => (x(), h("g", null, [r === 0 && H.value.width && H.value.height ? (x(), h("text", {
|
|
1240
1240
|
key: 0,
|
|
1241
1241
|
class: y({ animated: F.value.useCssAnimation }),
|
|
1242
1242
|
"text-anchor": "middle",
|
|
@@ -1250,45 +1250,45 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1250
1250
|
"text-anchor": "middle",
|
|
1251
1251
|
method: "align",
|
|
1252
1252
|
spacing: "auto"
|
|
1253
|
-
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(
|
|
1253
|
+
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(ce)({
|
|
1254
1254
|
source: e.name,
|
|
1255
1255
|
length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1256
|
-
}) : e.name), 9, ht)], 10, mt)) : m("", !0)]))), 256))]))), 256)) : (x(!0), h(d, { key: 1 }, C(
|
|
1256
|
+
}) : e.name), 9, ht)], 10, mt)) : m("", !0)]))), 256))]))), 256)) : (x(!0), h(d, { key: 1 }, C(X.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (t, n) => (x(), h("g", null, [n === 0 && H.value.width && H.value.height ? (x(), h("text", {
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
class: y({ animated: F.value.useCssAnimation }),
|
|
1259
|
-
x:
|
|
1259
|
+
x: H.value.width / 2,
|
|
1260
1260
|
y: t.startY - F.value.style.chart.layout.labels.dataLabels.fontSize + F.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1261
1261
|
"text-anchor": "middle",
|
|
1262
1262
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1263
1263
|
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1264
1264
|
fill: F.value.style.chart.layout.labels.dataLabels.color
|
|
1265
|
-
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(
|
|
1265
|
+
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(ce)({
|
|
1266
1266
|
source: e.name,
|
|
1267
1267
|
length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1268
1268
|
}) : e.name), 11, gt)) : m("", !0)]))), 256))]))), 256))])) : m("", !0),
|
|
1269
|
-
F.value.style.chart.layout.labels.dataLabels.show ? (x(), h("g", _t, [(x(!0), h(d, null, C(
|
|
1269
|
+
F.value.style.chart.layout.labels.dataLabels.show ? (x(), h("g", _t, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut.filter((e) => !e.ghost), (e, n) => (x(), h("g", { filter: Wn(e, n) }, [qe(g("text", {
|
|
1270
1270
|
class: y({ animated: F.value.useCssAnimation }),
|
|
1271
1271
|
opacity: +!!Un(e),
|
|
1272
|
-
"text-anchor": E(
|
|
1273
|
-
x: E(
|
|
1272
|
+
"text-anchor": E(ue)(e, !0).anchor,
|
|
1273
|
+
x: E(ue)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1274
1274
|
y: E(re)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst && F.value.style.chart.layout.labels.dataLabels.showValue ? F.value.style.chart.layout.labels.dataLabels.fontSize : 0),
|
|
1275
1275
|
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1276
1276
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1277
1277
|
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1278
|
-
}, T(E(
|
|
1278
|
+
}, T(E(se)(E(r)({
|
|
1279
1279
|
v: e.proportion * 100,
|
|
1280
1280
|
s: "%",
|
|
1281
1281
|
r: F.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1282
|
-
}), F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, yt), [[Ge,
|
|
1282
|
+
}), F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, yt), [[Ge, V.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showPercentage]]), qe(g("text", {
|
|
1283
1283
|
class: y({ animated: F.value.useCssAnimation }),
|
|
1284
1284
|
opacity: +!!Un(e),
|
|
1285
|
-
"text-anchor": E(
|
|
1286
|
-
x: E(
|
|
1285
|
+
"text-anchor": E(ue)(e, !0).anchor,
|
|
1286
|
+
x: E(ue)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1287
1287
|
y: E(re)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst || !F.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : F.value.style.chart.layout.labels.dataLabels.fontSize),
|
|
1288
1288
|
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1289
1289
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1290
1290
|
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1291
|
-
}, T(E(
|
|
1291
|
+
}, T(E(se)(E(ae)(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, E(r)({
|
|
1292
1292
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1293
1293
|
v: e.value,
|
|
1294
1294
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1297,8 +1297,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1297
1297
|
datapoint: e,
|
|
1298
1298
|
seriesIndex: t,
|
|
1299
1299
|
datapointIndex: n
|
|
1300
|
-
}), F.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, bt), [[Ge,
|
|
1301
|
-
(x(!0), h(d, null, C(
|
|
1300
|
+
}), F.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, bt), [[Ge, V.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showValue]])], 8, vt))), 256))]))), 256))])) : m("", !0),
|
|
1301
|
+
(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (e, t) => (x(), h("g", null, [g("path", {
|
|
1302
1302
|
d: e.arcSlice,
|
|
1303
1303
|
fill: Ht.value === e.id ? F.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1304
1304
|
onMouseenter: (t) => Hn({
|
|
@@ -1306,7 +1306,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1306
1306
|
relativeIndex: $.value.findIndex((t) => t.id === e.id),
|
|
1307
1307
|
seriesIndex: e.seriesIndex
|
|
1308
1308
|
}),
|
|
1309
|
-
onClick: (n) =>
|
|
1309
|
+
onClick: (n) => Dn({
|
|
1310
1310
|
datapoint: e,
|
|
1311
1311
|
index: t,
|
|
1312
1312
|
seriesIndex: e.seriesIndex
|
|
@@ -1317,18 +1317,18 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1317
1317
|
})
|
|
1318
1318
|
}, null, 40, xt)]))), 256))]))), 256)),
|
|
1319
1319
|
w(e.$slots, "svg", { svg: {
|
|
1320
|
-
...
|
|
1321
|
-
isPrintingImg: E(
|
|
1320
|
+
...H.value,
|
|
1321
|
+
isPrintingImg: E(xn) || E(Sn) || tn.value,
|
|
1322
1322
|
isPrintingSvg: nn.value
|
|
1323
1323
|
} }, void 0, !0)
|
|
1324
1324
|
], 512)], 46, $e)), e.$slots.hint ? (x(), h("div", St, [w(e.$slots, "hint", b(v({
|
|
1325
1325
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1326
1326
|
isVisible: on.value
|
|
1327
1327
|
})), void 0, !0)])) : m("", !0)]),
|
|
1328
|
-
e.$slots.watermark ? (x(), h("div", Ct, [w(e.$slots, "watermark", b(v({ isPrinting: E(
|
|
1328
|
+
e.$slots.watermark ? (x(), h("div", Ct, [w(e.$slots, "watermark", b(v({ isPrinting: E(xn) || E(Sn) || tn.value || nn.value })), void 0, !0)])) : m("", !0),
|
|
1329
1329
|
Ie(E(Ot), {
|
|
1330
1330
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1331
|
-
show:
|
|
1331
|
+
show: V.value.showTooltip && Bt.value,
|
|
1332
1332
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1333
1333
|
color: F.value.style.chart.tooltip.color,
|
|
1334
1334
|
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
@@ -1342,7 +1342,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1342
1342
|
parent: A.value,
|
|
1343
1343
|
content: Vt.value,
|
|
1344
1344
|
isFullscreen: P.value,
|
|
1345
|
-
isCustom: E(
|
|
1345
|
+
isCustom: E(ie)(F.value.style.chart.tooltip.customFormat),
|
|
1346
1346
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
1347
1347
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1348
1348
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
@@ -1392,21 +1392,21 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1392
1392
|
legendSet: e,
|
|
1393
1393
|
config: Kn.value,
|
|
1394
1394
|
isCursorPointer: I.value,
|
|
1395
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1395
|
+
onClickMarker: t[0] ||= ({ legend: e }) => Y(e)
|
|
1396
1396
|
}, {
|
|
1397
1397
|
legendTitle: D(({ titleSet: e }) => [e[0] && e[0].arcOf ? (x(), h("div", Tt, T(e[0].arcOf), 1)) : m("", !0)]),
|
|
1398
1398
|
item: D(({ legend: e, index: t }) => [g("div", {
|
|
1399
|
-
onClick: (t) =>
|
|
1400
|
-
style: ze(`opacity:${
|
|
1399
|
+
onClick: (t) => Y(e),
|
|
1400
|
+
style: ze(`opacity:${W.value.includes(e.id) ? .5 : 1}`)
|
|
1401
1401
|
}, T(e.display), 13, Et)]),
|
|
1402
1402
|
legendToggle: D(() => [e.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !E(un) ? (x(), p(Ee, {
|
|
1403
1403
|
key: `toggle-${n}`,
|
|
1404
1404
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1405
1405
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1406
1406
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
1407
|
-
checked: e.some((e) =>
|
|
1407
|
+
checked: e.some((e) => W.value.includes(e.id)),
|
|
1408
1408
|
isCursorPointer: I.value,
|
|
1409
|
-
onToggle: (t) =>
|
|
1409
|
+
onToggle: (t) => An(e)
|
|
1410
1410
|
}, null, 8, [
|
|
1411
1411
|
"backgroundColor",
|
|
1412
1412
|
"color",
|