vue-data-ui 3.22.0 → 3.22.2
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as me } from "./useConfig-
|
|
4
|
-
import { t as he } from "./usePrinter-
|
|
2
|
+
import { At as t, Et as n, Ft as r, G as i, H as a, J as o, Nt as s, S as c, Ut as l, Vt as ee, X as u, Y as te, d as ne, gt as re, i as ie, it as ae, kt as oe, n as se, t as ce, u as le, v as ue, wt as de, x as fe, y as pe } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as me } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as he } from "./usePrinter-Dng0UK-G.js";
|
|
5
5
|
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.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-APyFoLCQ.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-BCAOkqfM.js";
|
|
10
|
+
import { n as Se } from "./Title-CVYf1f8m.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-B-lM0iV1.js";
|
|
15
15
|
import { t as De } from "./A11yDataTable-DdRsVULz.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-C0D1tjig.js";
|
|
19
|
+
import { t as je } from "./Legend-BVDhEEsC.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-BmGCBJuU.js")), kt = _(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), At = _(() => import("./vue-ui-accordion-Di_givzQ.js").then((e) => e.n)), jt = _(() => import("./DataTable-DJZgdnIn.js")), Mt = _(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Nt = _(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), Pt = _(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), Ft = _(() => import("./BaseDraggableDialog-a9xCKjW-.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(a()), 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(() => l({
|
|
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: l({
|
|
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
|
+
}), t = {}, n = e.theme;
|
|
183
|
+
if (n) if (!Lt.value(e)) Rt(e), t = e;
|
|
184
184
|
else {
|
|
185
|
-
let
|
|
186
|
-
userConfig: Me[
|
|
185
|
+
let r = ye({
|
|
186
|
+
userConfig: Me[n] || O.config,
|
|
187
187
|
defaultConfig: e
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
t = {
|
|
190
190
|
...ye({
|
|
191
191
|
userConfig: O.config,
|
|
192
|
-
defaultConfig:
|
|
192
|
+
defaultConfig: r
|
|
193
193
|
}),
|
|
194
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
194
|
+
customPalette: e.customPalette.length ? e.customPalette : ee[n] || oe
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
else
|
|
198
|
-
return
|
|
197
|
+
else t = e;
|
|
198
|
+
return t;
|
|
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, xn(), Jt.value += 1, Yt.value += 1, Xt.value += 1, B.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = F.value.table.show, B.value.showTooltip = F.value.style.chart.tooltip.show, V.value.width = F.value.style.chart.width, V.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;
|
|
@@ -219,12 +219,12 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
219
219
|
setTimeout(() => {
|
|
220
220
|
let n = performance.now();
|
|
221
221
|
function c(l) {
|
|
222
|
-
let ee = Math.min((l - n) / t, 1),
|
|
223
|
-
M.value[o] =
|
|
224
|
-
let
|
|
222
|
+
let ee = Math.min((l - n) / t, 1), u = e * te(ee);
|
|
223
|
+
M.value[o] = u, M.value = [...M.value];
|
|
224
|
+
let ne = [], re = 0;
|
|
225
225
|
O.dataset.forEach((e, t) => {
|
|
226
|
-
let n =
|
|
227
|
-
n > Number.MIN_VALUE &&
|
|
226
|
+
let n = ue(e.series.reduce((e, t) => e + ue(s(t.values).reduce((e, t) => e + t, 0)), 0)) - ue(M.value.slice(re, re + e.series.length).reduce((e, t) => e + t, 0));
|
|
227
|
+
n > Number.MIN_VALUE && ne.push({
|
|
228
228
|
name: "__ghost__",
|
|
229
229
|
arcOf: e.name,
|
|
230
230
|
arcOfId: `${k.value}_${t}`,
|
|
@@ -237,7 +237,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
237
237
|
absoluteValues: [],
|
|
238
238
|
ghost: !0
|
|
239
239
|
}), re += e.series.length;
|
|
240
|
-
}), Zt.value =
|
|
240
|
+
}), Zt.value = ne, ee < 1 ? requestAnimationFrame(c) : (a += 1, a === i && r());
|
|
241
241
|
}
|
|
242
242
|
requestAnimationFrame(c);
|
|
243
243
|
}, o * n);
|
|
@@ -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, xn(), await vn();
|
|
272
272
|
});
|
|
273
|
-
let z = Ue(null),
|
|
274
|
-
function
|
|
275
|
-
if (
|
|
273
|
+
let z = Ue(null), yn = Ue(null), bn = f(() => !!F.value.debug);
|
|
274
|
+
function xn() {
|
|
275
|
+
if (n(O.dataset) ? (u({
|
|
276
276
|
componentName: "VueUiNestedDonuts",
|
|
277
277
|
type: "dataset",
|
|
278
|
-
debug:
|
|
278
|
+
debug: bn.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
|
+
V.value.width = e, V.value.height = t;
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
|
-
z.value && (
|
|
293
|
+
z.value && (yn.value && z.value.unobserve(yn.value), z.value.disconnect()), z.value = new ResizeObserver(e), yn.value = A.value.parentNode, z.value.observe(yn.value);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
Be(() => {
|
|
297
|
-
z.value && (
|
|
297
|
+
z.value && (yn.value && z.value.unobserve(yn.value), z.value.disconnect());
|
|
298
298
|
});
|
|
299
|
-
let { isPrinting:
|
|
299
|
+
let { isPrinting: Sn, isImaging: Cn, generatePdf: wn, generateImage: Tn } = 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
|
+
}), En = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), Dn = f(() => fe(F.value.customPalette)), B = 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
|
+
B.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 V = S({
|
|
316
316
|
width: F.value.style.chart.width,
|
|
317
317
|
height: F.value.style.chart.height
|
|
318
|
-
}),
|
|
319
|
-
function
|
|
318
|
+
}), H = Je;
|
|
319
|
+
function On({ 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
|
+
}), H("selectDatapoint", {
|
|
324
324
|
datapoint: e,
|
|
325
325
|
index: t
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function kn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = te }) {
|
|
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 U = S([]), W = 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: bn.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: bn.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: bn.value
|
|
355
355
|
}) : e.series.forEach((e, t) => {
|
|
356
356
|
[null, void 0].includes(e.name) && u({
|
|
357
357
|
componentName: "VueUiNestedDonuts",
|
|
@@ -359,21 +359,21 @@ 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: bn.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: bn.value
|
|
370
370
|
});
|
|
371
371
|
});
|
|
372
372
|
});
|
|
373
373
|
let e = 0;
|
|
374
374
|
return L.value.map((t, n) => ({
|
|
375
375
|
...t,
|
|
376
|
-
total: t.series.filter((e) => !
|
|
376
|
+
total: t.series.filter((e) => !U.value.includes(e.id)).map((e) => s(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
377
377
|
datasetIndex: n,
|
|
378
378
|
id: `${k.value}_${n}`,
|
|
379
379
|
series: t.series.map((r, i) => {
|
|
@@ -385,7 +385,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
385
385
|
id: `${k.value}_${n}_${i}`,
|
|
386
386
|
seriesIndex: i,
|
|
387
387
|
datasetIndex: n,
|
|
388
|
-
color: pe(r.color) ||
|
|
388
|
+
color: pe(r.color) || Dn.value[i] || oe[i % oe.length],
|
|
389
389
|
value: j.value ? M.value[e++] ?? 0 : a,
|
|
390
390
|
absoluteValues: r.values || []
|
|
391
391
|
};
|
|
@@ -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 G = f(() => Math.min(V.value.height, V.value.width) * (F.value.style.chart.layout.donut.strokeWidth / 512)), K = f(() => [...W.value].map((e, t) => {
|
|
399
|
+
let n = e.series.filter((e) => !U.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) => !U.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 An(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 q = S(K.value);
|
|
415
|
+
Ke(() => K.value, (e) => q.value = e);
|
|
416
|
+
function jn(e) {
|
|
417
417
|
let t = e.map((e) => e.id);
|
|
418
|
-
if (e.some((e) =>
|
|
418
|
+
if (e.some((e) => U.value.includes(e.id))) {
|
|
419
419
|
let e = new Set(t);
|
|
420
|
-
|
|
421
|
-
} else
|
|
422
|
-
|
|
420
|
+
U.value = U.value.filter((t) => !e.has(t));
|
|
421
|
+
} else U.value.push(...t);
|
|
422
|
+
H("selectLegend", K.value);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function J(e) {
|
|
425
425
|
let t = O.dataset.flatMap((e, t) => e.series.map((e, n) => ({
|
|
426
426
|
value: s(e.values).reduce((e, t) => e + t, 0),
|
|
427
427
|
id: `${k.value}_${t}_${n}`,
|
|
428
428
|
arcOfId: `${k.value}_${t}`
|
|
429
429
|
}))).find((t) => t.id === e.id);
|
|
430
430
|
if (!t) return;
|
|
431
|
-
let n =
|
|
431
|
+
let n = W.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = q.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = W.value.find((e) => e.id === t.arcOfId);
|
|
432
432
|
if (!a) return;
|
|
433
|
-
let o = a.series.map((e) => e.id), c =
|
|
434
|
-
|
|
433
|
+
let o = a.series.map((e) => e.id), c = An(o, o.length - 1, U.value);
|
|
434
|
+
U.value.includes(e.id) ? (U.value = U.value.filter((t) => t !== e.id), F.value.serieToggleAnimation.show ? kn({
|
|
435
435
|
from: i,
|
|
436
436
|
to: n,
|
|
437
437
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
438
438
|
onUpdate: (t) => {
|
|
439
|
-
|
|
439
|
+
q.value = q.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
|
+
H("selectLegend", K.value);
|
|
449
449
|
}
|
|
450
|
-
}) : (
|
|
450
|
+
}) : (q.value = q.value.map((t) => ({
|
|
451
451
|
...t,
|
|
452
452
|
series: t.series.map((t) => t.id === e.id ? {
|
|
453
453
|
...t,
|
|
454
454
|
value: n
|
|
455
455
|
} : t)
|
|
456
|
-
})),
|
|
456
|
+
})), H("selectLegend", K.value))) : c && (F.value.serieToggleAnimation.show ? kn({
|
|
457
457
|
from: i,
|
|
458
458
|
to: 0,
|
|
459
459
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
460
460
|
onUpdate: (t) => {
|
|
461
|
-
|
|
461
|
+
q.value = q.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
|
+
U.value.push(e.id), H("selectLegend", K.value);
|
|
471
471
|
}
|
|
472
|
-
}) : (
|
|
472
|
+
}) : (q.value = q.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
|
-
})),
|
|
479
|
-
}
|
|
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);
|
|
478
|
+
})), U.value.push(e.id), H("selectLegend", K.value)));
|
|
482
479
|
}
|
|
483
480
|
function Mn(e) {
|
|
484
|
-
|
|
485
|
-
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
486
|
-
W.value.includes(e.id) && Y({ id: e.id });
|
|
487
|
-
}) : W.value.includes(t.id) && Y({ id: t.id }));
|
|
481
|
+
return W.value.length ? W.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);
|
|
488
482
|
}
|
|
489
483
|
function Nn(e) {
|
|
490
|
-
let t =
|
|
484
|
+
let t = Mn(e);
|
|
491
485
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
492
|
-
|
|
493
|
-
}) :
|
|
486
|
+
U.value.includes(e.id) && J({ id: e.id });
|
|
487
|
+
}) : U.value.includes(t.id) && J({ id: t.id }));
|
|
494
488
|
}
|
|
495
|
-
|
|
496
|
-
let
|
|
489
|
+
function Pn(e) {
|
|
490
|
+
let t = Mn(e);
|
|
491
|
+
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
492
|
+
U.value.includes(e.id) || J({ id: e.id });
|
|
493
|
+
}) : U.value.includes(t.id) || J({ id: t.id }));
|
|
494
|
+
}
|
|
495
|
+
let Fn = f(() => G.value / W.value.length * F.value.style.chart.layout.donut.spacingRatio), In = f(() => q.value.map((e, t) => G.value - t * G.value / W.value.length)), Y = f(() => q.value.map((e, t) => {
|
|
496
|
+
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = G.value - t * G.value / q.value.length, i = j.value ? Zt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
|
|
497
497
|
...e,
|
|
498
498
|
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
499
|
-
})),
|
|
499
|
+
})), o = de({ series: [{
|
|
500
500
|
name: "_",
|
|
501
501
|
color: F.value.style.chart.layout.donut.emptyFill,
|
|
502
502
|
value: 1
|
|
503
|
-
}] },
|
|
504
|
-
a ${
|
|
505
|
-
a ${
|
|
503
|
+
}] }, V.value.width / 2, V.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Fn.value), s = `M ${V.value.width / 2},${V.value.height / 2 + r}
|
|
504
|
+
a ${r},${r} 0 1,1 0,${-2 * r}
|
|
505
|
+
a ${r},${r} 0 1,1 0,${2 * r}`;
|
|
506
506
|
return {
|
|
507
507
|
...e,
|
|
508
|
-
hasData:
|
|
509
|
-
radius:
|
|
510
|
-
skeleton:
|
|
511
|
-
fullCirclePath:
|
|
512
|
-
donut:
|
|
508
|
+
hasData: n,
|
|
509
|
+
radius: r,
|
|
510
|
+
skeleton: o,
|
|
511
|
+
fullCirclePath: s,
|
|
512
|
+
donut: de({ series: a }, V.value.width / 2, V.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Fn.value)
|
|
513
513
|
};
|
|
514
|
-
})),
|
|
515
|
-
let
|
|
514
|
+
})), Ln = f(() => [...W.value].map((e, t) => {
|
|
515
|
+
let n = t * G.value / W.value.length;
|
|
516
516
|
return {
|
|
517
|
-
sizeRatio:
|
|
518
|
-
donut:
|
|
517
|
+
sizeRatio: n,
|
|
518
|
+
donut: de({ series: [{ value: 1 }] }, V.value.width / 2, V.value.height / 2, G.value - n, G.value - n, 1.99999, 2, 1, 360, 105.25, G.value / W.value.length * F.value.style.chart.layout.donut.spacingRatio)[0]
|
|
519
519
|
};
|
|
520
|
-
})),
|
|
520
|
+
})), Rn = S(null), X = 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, Rn.value = null, Ht.value = null, X.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,36 +533,36 @@ 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: r = "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 = r, N.value = n, Rn.value = e.arcOfId, X.value = e.id, Z.value = n, Ht.value = e.id, zn.value = {
|
|
541
541
|
datapoint: e,
|
|
542
542
|
seriesIndex: n,
|
|
543
|
-
series:
|
|
543
|
+
series: q.value,
|
|
544
544
|
config: F.value
|
|
545
545
|
};
|
|
546
546
|
let a = F.value.style.chart.tooltip.customFormat;
|
|
547
|
-
if (
|
|
547
|
+
if (re(a) && ae(() => a({
|
|
548
548
|
seriesIndex: n,
|
|
549
549
|
datapoint: e,
|
|
550
|
-
series:
|
|
550
|
+
series: q.value,
|
|
551
551
|
config: F.value
|
|
552
552
|
}))) Vt.value = a({
|
|
553
553
|
seriesIndex: n,
|
|
554
554
|
datapoint: e,
|
|
555
|
-
series:
|
|
555
|
+
series: q.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
|
-
|
|
560
|
+
if (F.value.style.chart.tooltip.showAllItemsAtIndex && U.value.length === 0) {
|
|
561
|
+
let r = q.value.map((e) => e.series.find((e) => e.seriesIndex === n));
|
|
562
|
+
r.forEach((a, o) => {
|
|
563
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; ${o <
|
|
565
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${o < r.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
568
|
<circle cx="10" cy="10" r="10" fill="${a.color}"/>
|
|
@@ -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: ie(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, i({
|
|
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,7 +586,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
586
586
|
datapoint: e,
|
|
587
587
|
seriesIndex: n
|
|
588
588
|
}),
|
|
589
|
-
percentage:
|
|
589
|
+
percentage: i({
|
|
590
590
|
v: a.proportion * 100,
|
|
591
591
|
s: "%",
|
|
592
592
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
@@ -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>${ie(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, i({
|
|
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>(${i({
|
|
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>${i({
|
|
613
613
|
v: e.proportion * 100,
|
|
614
614
|
s: "%",
|
|
615
615
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
@@ -623,17 +623,17 @@ 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 && U.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 || U.value.length) return [null, void 0].includes(X.value) || X.value === e.id ? "" : `url(#blur_${k.value})`;
|
|
628
628
|
}
|
|
629
|
-
let Gn = f(() =>
|
|
630
|
-
let n = e.series.filter((e) => !
|
|
629
|
+
let Gn = f(() => W.value.map((e, t) => {
|
|
630
|
+
let n = e.series.filter((e) => !U.value.includes(e.id)), r = j.value ? n.map((e) => {
|
|
631
631
|
let n = L.value[t].series.findIndex((t) => t.name === e.name);
|
|
632
632
|
return s(L.value[t].series[n].values).reduce((e, t) => e + t, 0);
|
|
633
633
|
}).reduce((e, t) => e + t, 0) : n.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
634
634
|
return e.series.map((e, n) => {
|
|
635
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:
|
|
636
|
+
val: ie(F.value.style.chart.layout.labels.dataLabels.formatter, o, i({
|
|
637
637
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
638
638
|
v: o,
|
|
639
639
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -642,8 +642,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
642
642
|
datapoint: e,
|
|
643
643
|
seriesIndex: n
|
|
644
644
|
}),
|
|
645
|
-
percentage: isNaN(o /
|
|
646
|
-
v: o /
|
|
645
|
+
percentage: isNaN(o / r) || U.value.includes(e.id) ? "-" : i({
|
|
646
|
+
v: o / r * 100,
|
|
647
647
|
s: "%",
|
|
648
648
|
r: F.value.style.chart.legend.roundingPercentage
|
|
649
649
|
}),
|
|
@@ -662,10 +662,10 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
662
662
|
id: e.id,
|
|
663
663
|
seriesIndex: n,
|
|
664
664
|
datasetIndex: t,
|
|
665
|
-
total:
|
|
666
|
-
opacity:
|
|
667
|
-
segregate: () =>
|
|
668
|
-
isSegregated:
|
|
665
|
+
total: r,
|
|
666
|
+
opacity: U.value.includes(e.id) ? .5 : 1,
|
|
667
|
+
segregate: () => J(e),
|
|
668
|
+
isSegregated: U.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: q.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: q.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 = c([
|
|
693
693
|
[F.value.style.chart.title.text],
|
|
694
694
|
[F.value.style.chart.title.subtitle.text],
|
|
695
695
|
[
|
|
@@ -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 = i({
|
|
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) ? "-" : i({
|
|
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)), r = {
|
|
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: r
|
|
754
754
|
};
|
|
755
755
|
});
|
|
756
756
|
function Yn() {
|
|
757
|
-
return
|
|
757
|
+
return W.value;
|
|
758
758
|
}
|
|
759
759
|
function Xn() {
|
|
760
|
-
|
|
760
|
+
B.value.showTable = !B.value.showTable;
|
|
761
761
|
}
|
|
762
762
|
function Zn() {
|
|
763
|
-
|
|
763
|
+
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
764
764
|
}
|
|
765
765
|
function Qn() {
|
|
766
|
-
|
|
766
|
+
B.value.showTooltip = !B.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 = B.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(() => B.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
|
+
B.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
|
+
Tn();
|
|
868
868
|
}
|
|
869
869
|
async function fr() {
|
|
870
|
-
if (
|
|
870
|
+
if (H("copyAlt", {
|
|
871
871
|
config: F.value,
|
|
872
|
-
dataset:
|
|
872
|
+
dataset: q.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: q.value
|
|
880
880
|
}));
|
|
881
881
|
}
|
|
882
|
-
let $ = f(() =>
|
|
882
|
+
let $ = f(() => Y.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, Rn.value = null, Ht.value = null, X.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, Rn.value = null, Ht.value = null, X.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
|
+
On({
|
|
902
902
|
datapoint: e,
|
|
903
903
|
index: N.value,
|
|
904
904
|
seriesIndex: e.seriesIndex
|
|
@@ -932,26 +932,26 @@ 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: wn,
|
|
936
936
|
generateCsv: qn,
|
|
937
|
-
generateImage:
|
|
937
|
+
generateImage: Tn,
|
|
938
938
|
generateSvg: ur,
|
|
939
|
-
hideSeries:
|
|
940
|
-
showSeries:
|
|
939
|
+
hideSeries: Pn,
|
|
940
|
+
showSeries: Nn,
|
|
941
941
|
toggleTable: Xn,
|
|
942
942
|
toggleLabels: Zn,
|
|
943
943
|
toggleTooltip: Qn,
|
|
944
944
|
toggleAnnotator: er,
|
|
945
945
|
toggleFullscreen: sn,
|
|
946
946
|
copyAlt: fr
|
|
947
|
-
}), (e,
|
|
947
|
+
}), (e, n) => (x(), h("div", {
|
|
948
948
|
ref_key: "nestedDonutsChart",
|
|
949
949
|
ref: A,
|
|
950
950
|
class: y(`vue-data-ui-component vue-ui-nested-donuts ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
951
951
|
style: ze(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
952
952
|
id: `nested_donuts_${k.value}`,
|
|
953
|
-
onMouseenter:
|
|
954
|
-
onMouseleave:
|
|
953
|
+
onMouseenter: n[2] ||= () => E(pn)(!0),
|
|
954
|
+
onMouseleave: n[3] ||= () => E(pn)(!1)
|
|
955
955
|
}, [
|
|
956
956
|
g("div", {
|
|
957
957
|
id: `chart-instructions-${k.value}`,
|
|
@@ -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
|
+
En.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(Sn),
|
|
1029
|
+
isImaging: E(Cn),
|
|
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: B.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(wn),
|
|
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(ce),
|
|
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 ${V.value.width <= 0 ? .001 : V.value.width} ${V.value.height < 0 ? .001 : V.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,27 +1161,27 @@ 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: V.value.width <= 0 ? .001 : V.value.width,
|
|
1165
|
+
height: V.value.height < 0 ? .001 : V.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(
|
|
1169
|
-
|
|
1168
|
+
g("defs", null, [(x(!0), h(d, null, C(Ln.value, (e, t) => (x(), h("radialGradient", { id: `radial_${k.value}_${t}` }, [
|
|
1169
|
+
n[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 -
|
|
1176
|
-
"stop-color": E(
|
|
1175
|
+
offset: `${(1 - Fn.value / In.value[t]) * 100}%`,
|
|
1176
|
+
"stop-color": E(r)("#FFFFFF", 0),
|
|
1177
1177
|
"stop-opacity": "0"
|
|
1178
1178
|
}, null, 8, nt),
|
|
1179
1179
|
g("stop", {
|
|
1180
|
-
offset: `${(1 -
|
|
1180
|
+
offset: `${(1 - Fn.value / In.value[t] / 2) * 100}%`,
|
|
1181
1181
|
"stop-color": "#FFFFFF",
|
|
1182
1182
|
"stop-opacity": F.value.style.chart.gradientIntensity / 100
|
|
1183
1183
|
}, null, 8, rt),
|
|
1184
|
-
|
|
1184
|
+
n[5] ||= g("stop", {
|
|
1185
1185
|
offset: "100%",
|
|
1186
1186
|
"stop-color": "#FFFFFF",
|
|
1187
1187
|
"stop-opacity": "0"
|
|
@@ -1197,7 +1197,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1197
1197
|
in: "SourceGraphic",
|
|
1198
1198
|
stdDeviation: 2,
|
|
1199
1199
|
id: `blur_std_${k.value}`
|
|
1200
|
-
}, null, 8, at),
|
|
1200
|
+
}, null, 8, at), n[6] ||= g("feColorMatrix", {
|
|
1201
1201
|
type: "saturate",
|
|
1202
1202
|
values: "0"
|
|
1203
1203
|
}, null, -1)], 8, it), g("filter", {
|
|
@@ -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(Y.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(Y.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(Ln.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(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (n, r) => (x(), h("g", null, [r === 0 && V.value.width && V.value.height ? (x(), h("text", {
|
|
1240
1240
|
key: 0,
|
|
1241
1241
|
class: y({ animated: F.value.useCssAnimation }),
|
|
1242
1242
|
"text-anchor": "middle",
|
|
@@ -1250,55 +1250,55 @@ 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(se)({
|
|
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(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (t, n) => (x(), h("g", null, [n === 0 && V.value.width && V.value.height ? (x(), h("text", {
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
class: y({ animated: F.value.useCssAnimation }),
|
|
1259
|
-
x:
|
|
1259
|
+
x: V.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(se)({
|
|
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(Y.value, (e, n) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut.filter((e) => !e.ghost), (e, r) => (x(), h("g", { filter: Wn(e, r) }, [qe(g("text", {
|
|
1270
1270
|
class: y({ animated: F.value.useCssAnimation }),
|
|
1271
1271
|
opacity: +!!Un(e),
|
|
1272
|
-
"text-anchor": E(
|
|
1273
|
-
x: E(
|
|
1274
|
-
y: E(
|
|
1272
|
+
"text-anchor": E(le)(e, !0).anchor,
|
|
1273
|
+
x: E(le)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1274
|
+
y: E(ne)(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(t)(E(i)({
|
|
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, B.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(
|
|
1287
|
-
y: E(
|
|
1285
|
+
"text-anchor": E(le)(e, !0).anchor,
|
|
1286
|
+
x: E(le)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1287
|
+
y: E(ne)(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(t)(E(ie)(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, E(i)({
|
|
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,
|
|
1295
1295
|
r: F.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1296
1296
|
}), {
|
|
1297
1297
|
datapoint: e,
|
|
1298
|
-
seriesIndex:
|
|
1299
|
-
datapointIndex:
|
|
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(
|
|
1298
|
+
seriesIndex: n,
|
|
1299
|
+
datapointIndex: r
|
|
1300
|
+
}), F.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, bt), [[Ge, B.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showValue]])], 8, vt))), 256))]))), 256))])) : m("", !0),
|
|
1301
|
+
(x(!0), h(d, null, C(Y.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) => On({
|
|
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
|
+
...V.value,
|
|
1321
|
+
isPrintingImg: E(Sn) || E(Cn) || 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(Sn) || E(Cn) || 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: B.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(re)(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,
|
|
@@ -1387,26 +1387,26 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1387
1387
|
ref_key: "chartLegend",
|
|
1388
1388
|
ref: Gt,
|
|
1389
1389
|
class: y({ "vue-ui-nested-donuts-legend": Gn.value.length > 1 })
|
|
1390
|
-
}, [w(e.$slots, "legend", { legend: Gn.value }, () => [(x(!0), h(d, null, C(Gn.value, (e,
|
|
1391
|
-
key: `legend_${
|
|
1390
|
+
}, [w(e.$slots, "legend", { legend: Gn.value }, () => [(x(!0), h(d, null, C(Gn.value, (e, t) => (x(), p(je, {
|
|
1391
|
+
key: `legend_${t}_${Xt.value}`,
|
|
1392
1392
|
legendSet: e,
|
|
1393
1393
|
config: Kn.value,
|
|
1394
1394
|
isCursorPointer: I.value,
|
|
1395
|
-
onClickMarker:
|
|
1395
|
+
onClickMarker: n[0] ||= ({ legend: e }) => J(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) => J(e),
|
|
1400
|
+
style: ze(`opacity:${U.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
|
-
key: `toggle-${
|
|
1403
|
+
key: `toggle-${t}`,
|
|
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) => U.value.includes(e.id)),
|
|
1408
1408
|
isCursorPointer: I.value,
|
|
1409
|
-
onToggle: (t) =>
|
|
1409
|
+
onToggle: (t) => jn(e)
|
|
1410
1410
|
}, null, 8, [
|
|
1411
1411
|
"backgroundColor",
|
|
1412
1412
|
"color",
|
|
@@ -1471,7 +1471,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1471
1471
|
fn: D(() => [g("button", {
|
|
1472
1472
|
tabindex: "0",
|
|
1473
1473
|
class: "vue-ui-user-options-button",
|
|
1474
|
-
onClick:
|
|
1474
|
+
onClick: n[1] ||= (e) => qn(F.value.userOptions.callbacks.csv),
|
|
1475
1475
|
style: ze({ cursor: I.value ? "pointer" : "default" })
|
|
1476
1476
|
}, [Ie(E(kt), {
|
|
1477
1477
|
name: "fileCsv",
|