vue-data-ui 3.22.3 → 3.22.5
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-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-CqE8ssFu.js} +1 -1
- package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.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-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
- package/dist/{package-KQdsc0if.js → package-YOcaZtwF.js} +1 -1
- package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-BUbY65H0.js → render-common-B80rr2N_.js} +22 -22
- 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 +60 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-mqURXOql.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BZ1Slxfu.js +1757 -0
- package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-uUVFZo8M.js} +289 -289
- package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-RGCGF_cO.js +710 -0
- package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-CiUmHi6k.js} +259 -259
- package/dist/vue-ui-candlestick-BJUk5fMm.js +1826 -0
- package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-BksIDurC.js} +122 -122
- package/dist/vue-ui-chestnut-B3OHA5rg.js +2010 -0
- package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-DETV2viY.js} +53 -53
- package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-DddaioRm.js} +46 -46
- package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-D2-hWt_G.js} +4 -4
- package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-Dp7pV6Ps.js} +49 -49
- package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-D91C5cXo.js} +70 -70
- package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-CMA3U4ZS.js} +4 -4
- package/dist/vue-ui-donut-DObpw5zP.js +2410 -0
- package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-DpiS28CQ.js} +193 -193
- package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-2B61hvv2.js} +419 -419
- package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cmr65TNE.js} +341 -341
- package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-7Yfsu6AY.js} +72 -72
- package/dist/vue-ui-funnel-BLRBDW1a.js +777 -0
- package/dist/vue-ui-galaxy-B9cxOcoE.js +1077 -0
- package/dist/vue-ui-gauge-yo4G5HMt.js +920 -0
- package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-BOHI6oMZ.js} +18 -18
- package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DI-35oK-.js} +62 -62
- package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-DBVM90VE.js} +293 -293
- package/dist/vue-ui-history-plot-BiWpOHKE.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-XBrvSxtJ.js} +75 -75
- package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-55wwhSBh.js} +12 -12
- package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-DB3rmTw1.js} +213 -213
- package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-izcbwGOc.js} +40 -40
- package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DRJ1QT2n.js} +255 -255
- package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-xTZOmmtb.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BxQ7D2_o.js +1416 -0
- package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-BvAmtyAE.js} +57 -57
- package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CJ1xQgYc.js} +654 -654
- package/dist/vue-ui-radar-C26C6p7e.js +1281 -0
- package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-Dl1aWFAI.js +924 -0
- package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-BbJa5C-d.js} +468 -468
- package/dist/vue-ui-rings-CyrvskTi.js +1246 -0
- package/dist/vue-ui-scatter-D9Iw5xlb.js +2413 -0
- package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-C4D0i9ho.js} +22 -22
- package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-CMb7UI2t.js} +24 -24
- package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-DEawjWhg.js} +35 -35
- package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-mubHGQF_.js} +56 -56
- package/dist/vue-ui-sparkhistogram-D8N-jNBt.js +560 -0
- package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-D4p0PS3-.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-DnrZkIIc.js} +126 -126
- package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-BzHSHKqe.js} +147 -147
- package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-CWSvsW1n.js} +417 -417
- package/dist/vue-ui-strip-plot-pPiVqFYo.js +1729 -0
- package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-BzqQKuL-.js} +64 -64
- package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-BnavmY2R.js} +19 -19
- package/dist/vue-ui-thermometer-ePIxpTuE.js +763 -0
- package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-BQZxD91f.js} +6 -6
- package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-CDOlCWS8.js} +10 -10
- package/dist/vue-ui-treemap-DrZlX_7n.js +1587 -0
- package/dist/vue-ui-waffle-BpZrFfUb.js +1362 -0
- package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-DRfyK9q9.js} +29 -29
- package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-D0JUA9I9.js} +28 -28
- package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-Dx-41fUM.js} +127 -127
- package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-BLSGO4Lm.js} +760 -760
- package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-DpRqQ09J.js} +410 -410
- package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend--t7Mbp9Z.js +0 -115
- package/dist/Slicer-CpBaahpI.js +0 -1144
- package/dist/exposedLib-BkRxoSB9.js +0 -19
- package/dist/img-CyjhDDaM.js +0 -74
- package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
- package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
- package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
- package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
- package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
- package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
- package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
- package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
- package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
- package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
- package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
- package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
- package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
- package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
- package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
- package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
- package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
|
@@ -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 { Et as t, Ft as n, Gt as r, Lt as i, Mt as a, Ot as o, Q as s, S as c, Ut as l, W as ee, X as te, Z as ne, b as re, d as ie, i as ae, jt as oe, n as se, ot as ce, q as u, t as le, u as ue, v as de, vt as fe, w as pe } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as me } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as he } from "./usePrinter-C0wAS8yc.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-BjkuFaz1.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-B29J8tV5.js";
|
|
10
|
+
import { n as Se } from "./Title-DDEEO-Nr.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-C4Usj0LI.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-BFcL_t-A.js";
|
|
19
|
+
import { t as je } from "./Legend-DXOzbXb-.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-BhKov422.js")), kt = _(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), At = _(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), jt = _(() => import("./DataTable-PidUPOit.js")), Mt = _(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Nt = _(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Pt = _(() => import("./PackageVersion-CqE8ssFu.js").then((e) => e.t)), Ft = _(() => import("./BaseDraggableDialog-DjzNWkiE.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(ee()), 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(() => r({
|
|
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: r({
|
|
174
174
|
defaultConfig: F.value,
|
|
175
175
|
userConfig: ln.value
|
|
176
176
|
})
|
|
@@ -191,14 +191,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
191
191
|
userConfig: O.config,
|
|
192
192
|
defaultConfig: r
|
|
193
193
|
}),
|
|
194
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
194
|
+
customPalette: e.customPalette.length ? e.customPalette : l[n] || oe
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
else t = e;
|
|
198
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, 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,21 +210,21 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
210
210
|
left: r
|
|
211
211
|
};
|
|
212
212
|
});
|
|
213
|
-
function _n(e, t = 1e3,
|
|
214
|
-
return new Promise((
|
|
215
|
-
let
|
|
216
|
-
M.value = Array(
|
|
217
|
-
let
|
|
218
|
-
e.forEach((e,
|
|
213
|
+
function _n(e, t = 1e3, r = 50) {
|
|
214
|
+
return new Promise((i) => {
|
|
215
|
+
let a = e.length;
|
|
216
|
+
M.value = Array(a).fill(0), Zt.value = [];
|
|
217
|
+
let o = 0;
|
|
218
|
+
e.forEach((e, s) => {
|
|
219
219
|
setTimeout(() => {
|
|
220
|
-
let
|
|
220
|
+
let r = performance.now();
|
|
221
221
|
function c(l) {
|
|
222
|
-
let ee = Math.min((l -
|
|
223
|
-
M.value[
|
|
224
|
-
let
|
|
222
|
+
let ee = Math.min((l - r) / t, 1), te = e * ne(ee);
|
|
223
|
+
M.value[s] = te, M.value = [...M.value];
|
|
224
|
+
let re = [], ie = 0;
|
|
225
225
|
O.dataset.forEach((e, t) => {
|
|
226
|
-
let
|
|
227
|
-
|
|
226
|
+
let r = de(e.series.reduce((e, t) => e + de(n(t.values).reduce((e, t) => e + t, 0)), 0)) - de(M.value.slice(ie, ie + e.series.length).reduce((e, t) => e + t, 0));
|
|
227
|
+
r > Number.MIN_VALUE && re.push({
|
|
228
228
|
name: "__ghost__",
|
|
229
229
|
arcOf: e.name,
|
|
230
230
|
arcOfId: `${k.value}_${t}`,
|
|
@@ -232,23 +232,23 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
232
232
|
seriesIndex: -1,
|
|
233
233
|
datasetIndex: t,
|
|
234
234
|
color: "transparent",
|
|
235
|
-
value:
|
|
236
|
-
fullValue:
|
|
235
|
+
value: r,
|
|
236
|
+
fullValue: r,
|
|
237
237
|
absoluteValues: [],
|
|
238
238
|
ghost: !0
|
|
239
|
-
}),
|
|
240
|
-
}), Zt.value =
|
|
239
|
+
}), ie += e.series.length;
|
|
240
|
+
}), Zt.value = re, ee < 1 ? requestAnimationFrame(c) : (o += 1, o === a && i());
|
|
241
241
|
}
|
|
242
242
|
requestAnimationFrame(c);
|
|
243
|
-
},
|
|
243
|
+
}, s * r);
|
|
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) =>
|
|
249
|
+
let e = L.value.flatMap((e) => e.series).map((e) => n(e.values).reduce((e, t) => e + t, 0));
|
|
250
250
|
M.value = e.map(() => 0), j.value = !0, Zt.value = L.value.map((e, t) => {
|
|
251
|
-
let
|
|
251
|
+
let r = e.series.reduce((e, t) => e + n(t.values).reduce((e, t) => e + t, 0), 0);
|
|
252
252
|
return {
|
|
253
253
|
name: "__ghost__",
|
|
254
254
|
arcOf: e.name,
|
|
@@ -257,8 +257,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
257
257
|
seriesIndex: -1,
|
|
258
258
|
datasetIndex: t,
|
|
259
259
|
color: "transparent",
|
|
260
|
-
value:
|
|
261
|
-
fullValue:
|
|
260
|
+
value: r,
|
|
261
|
+
fullValue: r,
|
|
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 (o(O.dataset) ? (s({
|
|
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(() => c(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,61 +333,61 @@ 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
|
-
[null, void 0].includes(e.name) &&
|
|
338
|
+
[null, void 0].includes(e.name) && s({
|
|
339
339
|
componentName: "VueUiNestedDonuts",
|
|
340
340
|
type: "datasetSerieAttribute",
|
|
341
341
|
property: "name",
|
|
342
342
|
index: t,
|
|
343
|
-
debug:
|
|
344
|
-
}), [null, void 0].includes(e.series) ?
|
|
343
|
+
debug: yn.value
|
|
344
|
+
}), [null, void 0].includes(e.series) ? s({
|
|
345
345
|
componentName: "VueUiNestedDonuts",
|
|
346
346
|
type: "datasetSerieAttribute",
|
|
347
347
|
property: "series",
|
|
348
348
|
index: t,
|
|
349
|
-
debug:
|
|
350
|
-
}) : e.series.length === 0 ?
|
|
349
|
+
debug: yn.value
|
|
350
|
+
}) : e.series.length === 0 ? s({
|
|
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
|
-
[null, void 0].includes(e.name) &&
|
|
356
|
+
[null, void 0].includes(e.name) && s({
|
|
357
357
|
componentName: "VueUiNestedDonuts",
|
|
358
358
|
type: "datasetSerieAttribute",
|
|
359
359
|
property: "name",
|
|
360
360
|
index: t,
|
|
361
361
|
key: "serie",
|
|
362
|
-
debug:
|
|
363
|
-
}), [null, void 0].includes(e.values) &&
|
|
362
|
+
debug: yn.value
|
|
363
|
+
}), [null, void 0].includes(e.values) && s({
|
|
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((t,
|
|
374
|
+
return L.value.map((t, r) => ({
|
|
375
375
|
...t,
|
|
376
|
-
total: t.series.filter((e) => !
|
|
377
|
-
datasetIndex:
|
|
378
|
-
id: `${k.value}_${
|
|
379
|
-
series: t.series.map((
|
|
380
|
-
let
|
|
376
|
+
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => n(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
377
|
+
datasetIndex: r,
|
|
378
|
+
id: `${k.value}_${r}`,
|
|
379
|
+
series: t.series.map((i, a) => {
|
|
380
|
+
let o = n(i.values).reduce((e, t) => e + t, 0);
|
|
381
381
|
return {
|
|
382
|
-
name:
|
|
382
|
+
name: i.name,
|
|
383
383
|
arcOf: t.name,
|
|
384
|
-
arcOfId: `${k.value}_${
|
|
385
|
-
id: `${k.value}_${
|
|
386
|
-
seriesIndex:
|
|
387
|
-
datasetIndex:
|
|
388
|
-
color:
|
|
389
|
-
value: j.value ? M.value[e++] ?? 0 :
|
|
390
|
-
absoluteValues:
|
|
384
|
+
arcOfId: `${k.value}_${r}`,
|
|
385
|
+
id: `${k.value}_${r}_${a}`,
|
|
386
|
+
seriesIndex: a,
|
|
387
|
+
datasetIndex: r,
|
|
388
|
+
color: re(i.color) || En.value[a] || oe[a % oe.length],
|
|
389
|
+
value: j.value ? M.value[e++] ?? 0 : o,
|
|
390
|
+
absoluteValues: i.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 t = O.dataset.flatMap((e, t) => e.series.map((e,
|
|
426
|
-
value:
|
|
427
|
-
id: `${k.value}_${t}_${
|
|
424
|
+
function Y(e) {
|
|
425
|
+
let t = O.dataset.flatMap((e, t) => e.series.map((e, r) => ({
|
|
426
|
+
value: n(e.values).reduce((e, t) => e + t, 0),
|
|
427
|
+
id: `${k.value}_${t}_${r}`,
|
|
428
428
|
arcOfId: `${k.value}_${t}`
|
|
429
429
|
}))).find((t) => t.id === e.id);
|
|
430
430
|
if (!t) return;
|
|
431
|
-
let
|
|
432
|
-
if (!
|
|
433
|
-
let
|
|
434
|
-
|
|
435
|
-
from:
|
|
436
|
-
to:
|
|
431
|
+
let r = G.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, i = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), a = i ? i.value : 0, o = G.value.find((e) => e.id === t.arcOfId);
|
|
432
|
+
if (!o) return;
|
|
433
|
+
let s = o.series.map((e) => e.id), c = kn(s, s.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: a,
|
|
436
|
+
to: r,
|
|
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: r
|
|
455
455
|
} : t)
|
|
456
|
-
})),
|
|
457
|
-
from:
|
|
456
|
+
})), U("selectLegend", q.value))) : c && (F.value.serieToggleAnimation.show ? On({
|
|
457
|
+
from: a,
|
|
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, n) => {
|
|
496
|
+
let r = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, i = K.value - n * K.value / J.value.length, a = j.value ? Zt.value.find((e) => e.datasetIndex === n) : 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 = t({ 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: t({ 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, n) => {
|
|
515
|
+
let r = n * K.value / G.value.length;
|
|
516
516
|
return {
|
|
517
|
-
sizeRatio:
|
|
518
|
-
donut:
|
|
517
|
+
sizeRatio: r,
|
|
518
|
+
donut: t({ 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({
|
|
@@ -537,38 +537,38 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
537
537
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
538
538
|
datapoint: e,
|
|
539
539
|
seriesIndex: n
|
|
540
|
-
}), an.value = r, N.value = n,
|
|
540
|
+
}), an.value = r, 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 i = F.value.style.chart.tooltip.customFormat;
|
|
547
|
+
if (fe(i) && ce(() => i({
|
|
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 = i({
|
|
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 r =
|
|
562
|
-
r.forEach((
|
|
563
|
-
if (!
|
|
560
|
+
if (F.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) {
|
|
561
|
+
let r = J.value.map((e) => e.series.find((e) => e.seriesIndex === n));
|
|
562
|
+
r.forEach((i, a) => {
|
|
563
|
+
if (!i) 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; ${a < 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
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
568
|
+
<circle cx="10" cy="10" r="10" fill="${i.color}"/>
|
|
569
569
|
</svg>
|
|
570
570
|
<span>
|
|
571
|
-
${
|
|
571
|
+
${i.arcOf ?? ""} - ${i.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, u({
|
|
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: u({
|
|
590
|
+
v: i.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, u({
|
|
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>(${u({
|
|
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>${u({
|
|
613
613
|
v: e.proportion * 100,
|
|
614
614
|
s: "%",
|
|
615
615
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
@@ -623,49 +623,49 @@ 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 r = e.series.filter((e) => !W.value.includes(e.id)), i = j.value ? r.map((e) => {
|
|
631
|
+
let r = L.value[t].series.findIndex((t) => t.name === e.name);
|
|
632
|
+
return n(L.value[t].series[r].values).reduce((e, t) => e + t, 0);
|
|
633
|
+
}).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
634
|
+
return e.series.map((e, r) => {
|
|
635
|
+
let a = n(L.value[t].series[r].values).reduce((e, t) => e + t, 0), o = j.value ? a : e.value, s = Vn({
|
|
636
|
+
val: ae(F.value.style.chart.layout.labels.dataLabels.formatter, o, u({
|
|
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,
|
|
640
640
|
r: F.value.style.chart.legend.roundingValue
|
|
641
641
|
}), {
|
|
642
642
|
datapoint: e,
|
|
643
|
-
seriesIndex:
|
|
643
|
+
seriesIndex: r
|
|
644
644
|
}),
|
|
645
|
-
percentage: isNaN(o /
|
|
646
|
-
v: o /
|
|
645
|
+
percentage: isNaN(o / i) || W.value.includes(e.id) ? "-" : u({
|
|
646
|
+
v: o / i * 100,
|
|
647
647
|
s: "%",
|
|
648
648
|
r: F.value.style.chart.legend.roundingPercentage
|
|
649
649
|
}),
|
|
650
650
|
showVal: F.value.style.chart.legend.showValue,
|
|
651
651
|
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
652
652
|
config: F.value.style.chart.legend
|
|
653
|
-
}),
|
|
653
|
+
}), c = `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${s}`;
|
|
654
654
|
return {
|
|
655
655
|
name: e.name,
|
|
656
656
|
color: e.color,
|
|
657
657
|
value: o,
|
|
658
|
-
display:
|
|
659
|
-
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${
|
|
658
|
+
display: c,
|
|
659
|
+
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${c}`,
|
|
660
660
|
shape: "circle",
|
|
661
661
|
arcOf: e.arcOf,
|
|
662
662
|
id: e.id,
|
|
663
|
-
seriesIndex:
|
|
663
|
+
seriesIndex: r,
|
|
664
664
|
datasetIndex: t,
|
|
665
|
-
total:
|
|
666
|
-
opacity:
|
|
667
|
-
segregate: () =>
|
|
668
|
-
isSegregated:
|
|
665
|
+
total: i,
|
|
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 = pe([
|
|
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) : te({
|
|
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 = u({
|
|
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,7 +722,7 @@ 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) ? "-" : u({
|
|
726
726
|
v: Q.value.body[t] / e.total * 100,
|
|
727
727
|
s: "%",
|
|
728
728
|
r: F.value.table.td.roundingPercentage
|
|
@@ -754,16 +754,16 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
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,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: 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,
|
|
944
944
|
toggleAnnotator: er,
|
|
945
945
|
toggleFullscreen: sn,
|
|
946
946
|
copyAlt: fr
|
|
947
|
-
}), (e,
|
|
947
|
+
}), (e, t) => (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: t[2] ||= () => E(pn)(!0),
|
|
954
|
+
onMouseleave: t[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
|
+
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,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: 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(
|
|
1169
|
-
|
|
1168
|
+
g("defs", null, [(x(!0), h(d, null, C(In.value, (e, n) => (x(), h("radialGradient", { id: `radial_${k.value}_${n}` }, [
|
|
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 -
|
|
1176
|
-
"stop-color": E(
|
|
1175
|
+
offset: `${(1 - Pn.value / Fn.value[n]) * 100}%`,
|
|
1176
|
+
"stop-color": E(i)("#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),
|
|
1184
|
-
|
|
1184
|
+
t[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), t[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(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",
|
|
@@ -1253,10 +1253,10 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1253
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(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,
|
|
@@ -1266,39 +1266,39 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
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(
|
|
1274
|
-
y: 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
|
+
y: E(ie)(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(a)(E(u)({
|
|
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(
|
|
1287
|
-
y: 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
|
+
y: E(ie)(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(a)(E(ae)(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, E(u)({
|
|
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: t,
|
|
1299
|
+
datapointIndex: n
|
|
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(fe)(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, n) => (x(), p(je, {
|
|
1391
|
+
key: `legend_${n}_${Xt.value}`,
|
|
1392
1392
|
legendSet: e,
|
|
1393
1393
|
config: Kn.value,
|
|
1394
1394
|
isCursorPointer: I.value,
|
|
1395
|
-
onClickMarker:
|
|
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
|
-
key: `toggle-${
|
|
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",
|
|
@@ -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: t[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",
|