vue-data-ui 3.25.2 → 3.25.4
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-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-hill.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-label.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-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.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/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, Ct as n, D as r, Lt as i, Mt as a, Pt as o, Rt as s, S as ee, Ut as c, Vt as l, X as u, Yt as te, Zt as ne, b as re, f as ie, i as ae, lt as oe, n as se, nt as d, p as ce, q as le, t as ue, tt as de, w as fe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as he } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as ge } from "./usePrinter-
|
|
5
|
+
import { t as ge } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ye } from "./useNestedProp-
|
|
7
|
+
import { t as ye } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as xe } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as Se } from "./img-
|
|
11
|
-
import { n as Ce } from "./Title-
|
|
10
|
+
import { t as Se } from "./img-DhGApYG0.js";
|
|
11
|
+
import { n as Ce } from "./Title-CPHi-evi.js";
|
|
12
12
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as De } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
15
|
+
import { t as Oe } from "./BaseLegendToggle-__JnV08B.js";
|
|
16
16
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Me } from "./labelUtils-
|
|
20
|
-
import { t as Ne } from "./Legend-
|
|
19
|
+
import { t as Me } from "./labelUtils-BXX2NzRe.js";
|
|
20
|
+
import { t as Ne } from "./Legend-X4kF4PvW.js";
|
|
21
21
|
import { t as Pe } from "./vue_ui_nested_donuts-B8csIoVO.js";
|
|
22
22
|
import { Fragment as f, Teleport as Fe, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as ze, nextTick as Be, normalizeClass as Ve, normalizeProps as b, normalizeStyle as He, onBeforeUnmount as Ue, onMounted as We, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as T, toRefs as qe, unref as E, vShow as Je, watch as Ye, withCtx as D, withDirectives as Xe } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-nested-donuts.vue
|
|
@@ -110,7 +110,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
110
110
|
"copyAlt"
|
|
111
111
|
],
|
|
112
112
|
setup(e, { expose: we, emit: Ze }) {
|
|
113
|
-
let Ot = v(() => import("./Tooltip-
|
|
113
|
+
let Ot = v(() => import("./Tooltip-hhrkQ3Lk.js")), kt = v(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), At = v(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), jt = v(() => import("./DataTable-COIO9gi4.js")), Mt = v(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Nt = v(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Pt = v(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), Ft = v(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_nested_donuts: It } = he(), { isThemeValid: Lt, warnInvalidTheme: Rt } = be(), O = e, zt = p({
|
|
114
114
|
get() {
|
|
115
115
|
return !!O.dataset && O.dataset.length;
|
|
116
116
|
},
|
|
@@ -182,7 +182,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
182
182
|
color: "#CACACA"
|
|
183
183
|
}
|
|
184
184
|
]
|
|
185
|
-
}, sn = p(() =>
|
|
185
|
+
}, sn = p(() => ne({
|
|
186
186
|
defaultConfig: {
|
|
187
187
|
useCssAnimation: !1,
|
|
188
188
|
table: { show: !1 },
|
|
@@ -213,7 +213,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
213
213
|
});
|
|
214
214
|
},
|
|
215
215
|
skeletonDataset: O.config?.skeletonDataset ?? [on, on],
|
|
216
|
-
skeletonConfig:
|
|
216
|
+
skeletonConfig: ne({
|
|
217
217
|
defaultConfig: F.value,
|
|
218
218
|
userConfig: sn.value
|
|
219
219
|
})
|
|
@@ -235,7 +235,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
235
235
|
userConfig: O.config,
|
|
236
236
|
defaultConfig: r
|
|
237
237
|
}),
|
|
238
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
238
|
+
customPalette: e.customPalette.length ? e.customPalette : te[n] || i
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
} else t = e;
|
|
@@ -254,21 +254,21 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
254
254
|
left: r
|
|
255
255
|
};
|
|
256
256
|
});
|
|
257
|
-
function hn(e, t = 1e3,
|
|
258
|
-
return new Promise((
|
|
259
|
-
let
|
|
260
|
-
M.value = Array(
|
|
261
|
-
let
|
|
262
|
-
e.forEach((e,
|
|
257
|
+
function hn(e, t = 1e3, n = 50) {
|
|
258
|
+
return new Promise((r) => {
|
|
259
|
+
let i = e.length;
|
|
260
|
+
M.value = Array(i).fill(0), Zt.value = [];
|
|
261
|
+
let a = 0;
|
|
262
|
+
e.forEach((e, o) => {
|
|
263
263
|
setTimeout(() => {
|
|
264
|
-
let
|
|
265
|
-
function
|
|
266
|
-
let
|
|
267
|
-
M.value[
|
|
268
|
-
let te = [],
|
|
264
|
+
let n = performance.now();
|
|
265
|
+
function s(ee) {
|
|
266
|
+
let c = Math.min((ee - n) / t, 1), u = e * de(c);
|
|
267
|
+
M.value[o] = u, M.value = [...M.value];
|
|
268
|
+
let te = [], ne = 0;
|
|
269
269
|
O.dataset.forEach((e, t) => {
|
|
270
|
-
let
|
|
271
|
-
|
|
270
|
+
let n = re(e.series.reduce((e, t) => e + re(l(t.values).reduce((e, t) => e + t, 0)), 0)) - re(M.value.slice(ne, ne + e.series.length).reduce((e, t) => e + t, 0));
|
|
271
|
+
n > Number.MIN_VALUE && te.push({
|
|
272
272
|
name: "__ghost__",
|
|
273
273
|
arcOf: e.name,
|
|
274
274
|
arcOfId: `${k.value}_${t}`,
|
|
@@ -276,23 +276,23 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
276
276
|
seriesIndex: -1,
|
|
277
277
|
datasetIndex: t,
|
|
278
278
|
color: "transparent",
|
|
279
|
-
value:
|
|
280
|
-
fullValue:
|
|
279
|
+
value: n,
|
|
280
|
+
fullValue: n,
|
|
281
281
|
absoluteValues: [],
|
|
282
282
|
ghost: !0
|
|
283
|
-
}),
|
|
284
|
-
}), Zt.value = te,
|
|
283
|
+
}), ne += e.series.length;
|
|
284
|
+
}), Zt.value = te, c < 1 ? requestAnimationFrame(s) : (a += 1, a === i && r());
|
|
285
285
|
}
|
|
286
|
-
requestAnimationFrame(
|
|
287
|
-
},
|
|
286
|
+
requestAnimationFrame(s);
|
|
287
|
+
}, o * n);
|
|
288
288
|
});
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
async function gn() {
|
|
292
292
|
if (F.value.startAnimation?.show) {
|
|
293
|
-
let e = L.value.flatMap((e) => e.series).map((e) =>
|
|
293
|
+
let e = L.value.flatMap((e) => e.series).map((e) => l(e.values).reduce((e, t) => e + t, 0));
|
|
294
294
|
M.value = e.map(() => 0), j.value = !0, Zt.value = L.value.map((e, t) => {
|
|
295
|
-
let
|
|
295
|
+
let n = e.series.reduce((e, t) => e + l(t.values).reduce((e, t) => e + t, 0), 0);
|
|
296
296
|
return {
|
|
297
297
|
name: "__ghost__",
|
|
298
298
|
arcOf: e.name,
|
|
@@ -301,8 +301,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
301
301
|
seriesIndex: -1,
|
|
302
302
|
datasetIndex: t,
|
|
303
303
|
color: "transparent",
|
|
304
|
-
value:
|
|
305
|
-
fullValue:
|
|
304
|
+
value: n,
|
|
305
|
+
fullValue: n,
|
|
306
306
|
absoluteValues: [],
|
|
307
307
|
ghost: !0
|
|
308
308
|
};
|
|
@@ -316,7 +316,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
316
316
|
});
|
|
317
317
|
let z = Ke(null), _n = Ke(null), B = p(() => F.value.debug);
|
|
318
318
|
function vn() {
|
|
319
|
-
if (
|
|
319
|
+
if (o(O.dataset) ? (d({
|
|
320
320
|
componentName: "VueUiNestedDonuts",
|
|
321
321
|
type: "dataset",
|
|
322
322
|
debug: B.value
|
|
@@ -371,40 +371,40 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
371
371
|
}
|
|
372
372
|
function En({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = de }) {
|
|
373
373
|
let o = performance.now();
|
|
374
|
-
function s(
|
|
375
|
-
let
|
|
376
|
-
r(e + (t - e) *
|
|
374
|
+
function s(ee) {
|
|
375
|
+
let c = Math.min((ee - o) / n, 1), l = a(c);
|
|
376
|
+
r(e + (t - e) * l, c), c < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
|
|
377
377
|
}
|
|
378
378
|
requestAnimationFrame(s);
|
|
379
379
|
}
|
|
380
380
|
let W = S([]), G = p(() => {
|
|
381
381
|
cn.value, L.value.forEach((e, t) => {
|
|
382
|
-
[null, void 0].includes(e.name) &&
|
|
382
|
+
[null, void 0].includes(e.name) && d({
|
|
383
383
|
componentName: "VueUiNestedDonuts",
|
|
384
384
|
type: "datasetSerieAttribute",
|
|
385
385
|
property: "name",
|
|
386
386
|
index: t,
|
|
387
387
|
debug: B.value
|
|
388
|
-
}), [null, void 0].includes(e.series) ?
|
|
388
|
+
}), [null, void 0].includes(e.series) ? d({
|
|
389
389
|
componentName: "VueUiNestedDonuts",
|
|
390
390
|
type: "datasetSerieAttribute",
|
|
391
391
|
property: "series",
|
|
392
392
|
index: t,
|
|
393
393
|
debug: B.value
|
|
394
|
-
}) : e.series.length === 0 ?
|
|
394
|
+
}) : e.series.length === 0 ? d({
|
|
395
395
|
componentName: "VueUiNestedDonuts",
|
|
396
396
|
type: "datasetAttributeEmpty",
|
|
397
397
|
property: `series at index ${t}`,
|
|
398
398
|
debug: B.value
|
|
399
399
|
}) : e.series.forEach((e, t) => {
|
|
400
|
-
[null, void 0].includes(e.name) &&
|
|
400
|
+
[null, void 0].includes(e.name) && d({
|
|
401
401
|
componentName: "VueUiNestedDonuts",
|
|
402
402
|
type: "datasetSerieAttribute",
|
|
403
403
|
property: "name",
|
|
404
404
|
index: t,
|
|
405
405
|
key: "serie",
|
|
406
406
|
debug: B.value
|
|
407
|
-
}), [null, void 0].includes(e.values) &&
|
|
407
|
+
}), [null, void 0].includes(e.values) && d({
|
|
408
408
|
componentName: "VueUiNestedDonuts",
|
|
409
409
|
type: "datasetSerieAttribute",
|
|
410
410
|
property: "values",
|
|
@@ -415,23 +415,23 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
417
|
let e = 0;
|
|
418
|
-
return L.value.map((t,
|
|
418
|
+
return L.value.map((t, n) => ({
|
|
419
419
|
...t,
|
|
420
|
-
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) =>
|
|
421
|
-
datasetIndex:
|
|
422
|
-
id: `${k.value}_${
|
|
423
|
-
series: t.series.map((
|
|
424
|
-
let
|
|
420
|
+
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => l(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
421
|
+
datasetIndex: n,
|
|
422
|
+
id: `${k.value}_${n}`,
|
|
423
|
+
series: t.series.map((r, a) => {
|
|
424
|
+
let o = l(r.values).reduce((e, t) => e + t, 0);
|
|
425
425
|
return {
|
|
426
|
-
name:
|
|
426
|
+
name: r.name,
|
|
427
427
|
arcOf: t.name,
|
|
428
|
-
arcOfId: `${k.value}_${
|
|
429
|
-
id: `${k.value}_${
|
|
430
|
-
seriesIndex:
|
|
431
|
-
datasetIndex:
|
|
432
|
-
color:
|
|
433
|
-
value: j.value ? M.value[e++] ?? 0 :
|
|
434
|
-
absoluteValues:
|
|
428
|
+
arcOfId: `${k.value}_${n}`,
|
|
429
|
+
id: `${k.value}_${n}_${a}`,
|
|
430
|
+
seriesIndex: a,
|
|
431
|
+
datasetIndex: n,
|
|
432
|
+
color: ee(r.color) || wn.value[a] || i[a % i.length],
|
|
433
|
+
value: j.value ? M.value[e++] ?? 0 : o,
|
|
434
|
+
absoluteValues: r.values || []
|
|
435
435
|
};
|
|
436
436
|
})
|
|
437
437
|
}));
|
|
@@ -466,18 +466,18 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
466
466
|
U("selectLegend", q.value);
|
|
467
467
|
}
|
|
468
468
|
function Y(e) {
|
|
469
|
-
let t = O.dataset.flatMap((e, t) => e.series.map((e,
|
|
470
|
-
value:
|
|
471
|
-
id: `${k.value}_${t}_${
|
|
469
|
+
let t = O.dataset.flatMap((e, t) => e.series.map((e, n) => ({
|
|
470
|
+
value: l(e.values).reduce((e, t) => e + t, 0),
|
|
471
|
+
id: `${k.value}_${t}_${n}`,
|
|
472
472
|
arcOfId: `${k.value}_${t}`
|
|
473
473
|
}))).find((t) => t.id === e.id);
|
|
474
474
|
if (!t) return;
|
|
475
|
-
let
|
|
476
|
-
if (!
|
|
477
|
-
let
|
|
475
|
+
let n = G.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = G.value.find((e) => e.id === t.arcOfId);
|
|
476
|
+
if (!a) return;
|
|
477
|
+
let o = a.series.map((e) => e.id), s = Dn(o, o.length - 1, W.value);
|
|
478
478
|
W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), F.value.serieToggleAnimation.show ? En({
|
|
479
|
-
from:
|
|
480
|
-
to:
|
|
479
|
+
from: i,
|
|
480
|
+
to: n,
|
|
481
481
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
482
482
|
onUpdate: (t) => {
|
|
483
483
|
J.value = J.value.map((n) => ({
|
|
@@ -495,10 +495,10 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
495
495
|
...t,
|
|
496
496
|
series: t.series.map((t) => t.id === e.id ? {
|
|
497
497
|
...t,
|
|
498
|
-
value:
|
|
498
|
+
value: n
|
|
499
499
|
} : t)
|
|
500
|
-
})), U("selectLegend", q.value))) :
|
|
501
|
-
from:
|
|
500
|
+
})), U("selectLegend", q.value))) : s && (F.value.serieToggleAnimation.show ? En({
|
|
501
|
+
from: i,
|
|
502
502
|
to: 0,
|
|
503
503
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
504
504
|
onUpdate: (t) => {
|
|
@@ -537,29 +537,29 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
537
537
|
}) : W.value.includes(t.id) || Y({ id: t.id }));
|
|
538
538
|
}
|
|
539
539
|
let Mn = p(() => K.value / G.value.length * F.value.style.chart.layout.donut.spacingRatio), Nn = p(() => J.value.map((e, t) => K.value - t * K.value / G.value.length)), X = p(() => J.value.map((e, t) => {
|
|
540
|
-
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = K.value - t * K.value / J.value.length, i = j.value ? Zt.value.find((e) => e.datasetIndex === t) : null,
|
|
540
|
+
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = K.value - t * K.value / J.value.length, i = j.value ? Zt.value.find((e) => e.datasetIndex === t) : null, o = [...e.series, ...i ? [i] : []].map((e) => ({
|
|
541
541
|
...e,
|
|
542
542
|
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
543
|
-
})),
|
|
543
|
+
})), s = a({ series: [{
|
|
544
544
|
name: "_",
|
|
545
545
|
color: F.value.style.chart.layout.donut.emptyFill,
|
|
546
546
|
value: 1
|
|
547
|
-
}] }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Mn.value),
|
|
547
|
+
}] }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Mn.value), ee = `M ${H.value.width / 2},${H.value.height / 2 + r}
|
|
548
548
|
a ${r},${r} 0 1,1 0,${-2 * r}
|
|
549
549
|
a ${r},${r} 0 1,1 0,${2 * r}`;
|
|
550
550
|
return {
|
|
551
551
|
...e,
|
|
552
552
|
hasData: n,
|
|
553
553
|
radius: r,
|
|
554
|
-
skeleton:
|
|
555
|
-
fullCirclePath:
|
|
556
|
-
donut:
|
|
554
|
+
skeleton: s,
|
|
555
|
+
fullCirclePath: ee,
|
|
556
|
+
donut: a({ series: o }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Mn.value)
|
|
557
557
|
};
|
|
558
558
|
})), Pn = p(() => [...G.value].map((e, t) => {
|
|
559
559
|
let n = t * K.value / G.value.length;
|
|
560
560
|
return {
|
|
561
561
|
sizeRatio: n,
|
|
562
|
-
donut:
|
|
562
|
+
donut: a({ series: [{ value: 1 }] }, H.value.width / 2, H.value.height / 2, K.value - n, K.value - n, 1.99999, 2, 1, 360, 105.25, K.value / G.value.length * F.value.style.chart.layout.donut.spacingRatio)[0]
|
|
563
563
|
};
|
|
564
564
|
})), Fn = S(null), In = S(null), Z = S(null), Ln = S(null);
|
|
565
565
|
function Rn({ datapoint: e, seriesIndex: t }) {
|
|
@@ -577,24 +577,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
577
577
|
showPercentage: r
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function Bn({ datapoint: e, _relativeIndex: t, seriesIndex:
|
|
580
|
+
function Bn({ datapoint: e, _relativeIndex: t, seriesIndex: r, triggerMode: i = "pointer" }) {
|
|
581
581
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
582
582
|
datapoint: e,
|
|
583
|
-
seriesIndex:
|
|
584
|
-
}), nn.value =
|
|
583
|
+
seriesIndex: r
|
|
584
|
+
}), nn.value = i, N.value = r, Fn.value = e.arcOfId, In.value = e.id, Z.value = r, Ht.value = e.id, Ln.value = {
|
|
585
585
|
datapoint: e,
|
|
586
|
-
seriesIndex:
|
|
586
|
+
seriesIndex: r,
|
|
587
587
|
series: J.value,
|
|
588
588
|
config: F.value
|
|
589
589
|
};
|
|
590
|
-
let
|
|
591
|
-
if (
|
|
592
|
-
seriesIndex:
|
|
590
|
+
let a = F.value.style.chart.tooltip.customFormat;
|
|
591
|
+
if (n(a) && oe(() => a({
|
|
592
|
+
seriesIndex: r,
|
|
593
593
|
datapoint: e,
|
|
594
594
|
series: J.value,
|
|
595
595
|
config: F.value
|
|
596
|
-
}))) Vt.value =
|
|
597
|
-
seriesIndex:
|
|
596
|
+
}))) Vt.value = a({
|
|
597
|
+
seriesIndex: r,
|
|
598
598
|
datapoint: e,
|
|
599
599
|
series: J.value,
|
|
600
600
|
config: F.value
|
|
@@ -602,11 +602,11 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
602
602
|
else {
|
|
603
603
|
let t = "";
|
|
604
604
|
if (F.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) {
|
|
605
|
-
let
|
|
606
|
-
|
|
605
|
+
let n = J.value.map((e) => e.series.find((e) => e.seriesIndex === r));
|
|
606
|
+
n.forEach((i, a) => {
|
|
607
607
|
if (!i) return "";
|
|
608
608
|
t += `
|
|
609
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${a <
|
|
609
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${a < n.length - 1 ? `border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor}` : ""}">
|
|
610
610
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
611
611
|
<svg viewBox="0 0 20 20" height="${F.value.style.chart.tooltip.fontSize}" width="${F.value.style.chart.tooltip.fontSize}">
|
|
612
612
|
<circle cx="10" cy="10" r="10" fill="${i.color}"/>
|
|
@@ -621,14 +621,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
621
621
|
config: F.value.style.chart.tooltip,
|
|
622
622
|
showVal: F.value.style.chart.tooltip.showValue,
|
|
623
623
|
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
624
|
-
val:
|
|
624
|
+
val: ae(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
|
|
625
625
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
626
626
|
v: e.value,
|
|
627
627
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
628
628
|
r: F.value.style.chart.tooltip.roundingValue
|
|
629
629
|
}), {
|
|
630
630
|
datapoint: e,
|
|
631
|
-
seriesIndex:
|
|
631
|
+
seriesIndex: r
|
|
632
632
|
}),
|
|
633
633
|
percentage: u({
|
|
634
634
|
v: i.proportion * 100,
|
|
@@ -641,14 +641,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
641
641
|
</div>
|
|
642
642
|
`;
|
|
643
643
|
});
|
|
644
|
-
} 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>${
|
|
644
|
+
} 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({
|
|
645
645
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
646
646
|
v: e.value,
|
|
647
647
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
648
648
|
r: F.value.style.chart.tooltip.roundingValue
|
|
649
649
|
}), {
|
|
650
650
|
datapoint: e,
|
|
651
|
-
seriesIndex:
|
|
651
|
+
seriesIndex: r
|
|
652
652
|
})}</b>`), F.value.style.chart.tooltip.showPercentage && (F.value.style.chart.tooltip.showValue ? t += `<span>(${u({
|
|
653
653
|
v: e.proportion * 100,
|
|
654
654
|
s: "%",
|
|
@@ -671,42 +671,42 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
671
671
|
if (!F.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(In.value) || In.value === e.id ? "" : `url(#blur_${k.value})`;
|
|
672
672
|
}
|
|
673
673
|
let Un = p(() => G.value.map((e, t) => {
|
|
674
|
-
let
|
|
675
|
-
let
|
|
676
|
-
return
|
|
677
|
-
}).reduce((e, t) => e + t, 0) :
|
|
678
|
-
return e.series.map((e,
|
|
679
|
-
let
|
|
680
|
-
val:
|
|
674
|
+
let n = e.series.filter((e) => !W.value.includes(e.id)), r = j.value ? n.map((e) => {
|
|
675
|
+
let n = L.value[t].series.findIndex((t) => t.name === e.name);
|
|
676
|
+
return l(L.value[t].series[n].values).reduce((e, t) => e + t, 0);
|
|
677
|
+
}).reduce((e, t) => e + t, 0) : n.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
678
|
+
return e.series.map((e, n) => {
|
|
679
|
+
let i = l(L.value[t].series[n].values).reduce((e, t) => e + t, 0), a = j.value ? i : e.value, o = zn({
|
|
680
|
+
val: ae(F.value.style.chart.layout.labels.dataLabels.formatter, a, u({
|
|
681
681
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
682
|
-
v:
|
|
682
|
+
v: a,
|
|
683
683
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
684
684
|
r: F.value.style.chart.legend.roundingValue
|
|
685
685
|
}), {
|
|
686
686
|
datapoint: e,
|
|
687
|
-
seriesIndex:
|
|
687
|
+
seriesIndex: n
|
|
688
688
|
}),
|
|
689
|
-
percentage: isNaN(
|
|
690
|
-
v:
|
|
689
|
+
percentage: isNaN(a / r) || W.value.includes(e.id) ? "-" : u({
|
|
690
|
+
v: a / r * 100,
|
|
691
691
|
s: "%",
|
|
692
692
|
r: F.value.style.chart.legend.roundingPercentage
|
|
693
693
|
}),
|
|
694
694
|
showVal: F.value.style.chart.legend.showValue,
|
|
695
695
|
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
696
696
|
config: F.value.style.chart.legend
|
|
697
|
-
}),
|
|
697
|
+
}), s = `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${o}`;
|
|
698
698
|
return {
|
|
699
699
|
name: e.name,
|
|
700
700
|
color: e.color,
|
|
701
|
-
value:
|
|
702
|
-
display:
|
|
703
|
-
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${
|
|
701
|
+
value: a,
|
|
702
|
+
display: s,
|
|
703
|
+
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${s}`,
|
|
704
704
|
shape: "circle",
|
|
705
705
|
arcOf: e.arcOf,
|
|
706
706
|
id: e.id,
|
|
707
|
-
seriesIndex:
|
|
707
|
+
seriesIndex: n,
|
|
708
708
|
datasetIndex: t,
|
|
709
|
-
total:
|
|
709
|
+
total: r,
|
|
710
710
|
opacity: W.value.includes(e.id) ? .5 : 1,
|
|
711
711
|
segregate: () => Y(e),
|
|
712
712
|
isSegregated: W.value.includes(e.id)
|
|
@@ -924,13 +924,13 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
924
924
|
});
|
|
925
925
|
return;
|
|
926
926
|
}
|
|
927
|
-
let a = N.value, o = Z.value, s = a !== null && a >= 0 && a < $.value.length,
|
|
928
|
-
s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) :
|
|
929
|
-
let
|
|
930
|
-
|
|
931
|
-
datapoint:
|
|
927
|
+
let a = N.value, o = Z.value, s = a !== null && a >= 0 && a < $.value.length, ee = o !== null && o >= 0 && o < $.value.length;
|
|
928
|
+
s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : ee ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
|
|
929
|
+
let c = $.value[a];
|
|
930
|
+
c && (N.value = a, gr(), Bn({
|
|
931
|
+
datapoint: c,
|
|
932
932
|
relativeIndex: a,
|
|
933
|
-
seriesIndex:
|
|
933
|
+
seriesIndex: c.seriesIndex,
|
|
934
934
|
show: !0,
|
|
935
935
|
triggerMode: "keyboard"
|
|
936
936
|
}));
|
|
@@ -1196,7 +1196,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1196
1196
|
],
|
|
1197
1197
|
[
|
|
1198
1198
|
`${(1 - Mn.value / Nn.value[t]) * 100}%`,
|
|
1199
|
-
E(
|
|
1199
|
+
E(c)("#FFFFFF", 0),
|
|
1200
1200
|
0
|
|
1201
1201
|
],
|
|
1202
1202
|
[
|
|
@@ -1273,7 +1273,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1273
1273
|
"text-anchor": "middle",
|
|
1274
1274
|
method: "align",
|
|
1275
1275
|
spacing: "auto"
|
|
1276
|
-
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(
|
|
1276
|
+
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(se)({
|
|
1277
1277
|
source: e.name,
|
|
1278
1278
|
length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1279
1279
|
}) : e.name), 9, ht)], 8, mt)) : h("", !0)]))), 256))]))), 256)) : (x(!0), g(f, { key: 1 }, C(X.value, (e, t) => (x(), g("g", null, [(x(!0), g(f, null, C(e.donut, (t, n) => (x(), g("g", null, [n === 0 && H.value.width && H.value.height ? (x(), g("text", {
|
|
@@ -1284,14 +1284,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1284
1284
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1285
1285
|
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1286
1286
|
fill: F.value.style.chart.layout.labels.dataLabels.color
|
|
1287
|
-
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(
|
|
1287
|
+
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(se)({
|
|
1288
1288
|
source: e.name,
|
|
1289
1289
|
length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1290
1290
|
}) : e.name), 9, gt)) : h("", !0)]))), 256))]))), 256))])) : h("", !0),
|
|
1291
1291
|
F.value.style.chart.layout.labels.dataLabels.show ? (x(), g("g", _t, [(x(!0), g(f, null, C(X.value, (e, t) => (x(), g("g", null, [(x(!0), g(f, null, C(e.donut.filter((e) => !e.ghost), (e, n) => (x(), g("g", { filter: Hn(e, n) }, [Xe(_("text", {
|
|
1292
1292
|
opacity: +!!Vn(e),
|
|
1293
|
-
"text-anchor": E(
|
|
1294
|
-
x: E(
|
|
1293
|
+
"text-anchor": E(ie)(e, !0).anchor,
|
|
1294
|
+
x: E(ie)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1295
1295
|
y: E(ce)(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),
|
|
1296
1296
|
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1297
1297
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -1302,13 +1302,13 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1302
1302
|
r: F.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1303
1303
|
}), F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 9, yt), [[Je, V.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showPercentage]]), Xe(_("text", {
|
|
1304
1304
|
opacity: +!!Vn(e),
|
|
1305
|
-
"text-anchor": E(
|
|
1306
|
-
x: E(
|
|
1305
|
+
"text-anchor": E(ie)(e, !0).anchor,
|
|
1306
|
+
x: E(ie)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1307
1307
|
y: E(ce)(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),
|
|
1308
1308
|
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1309
1309
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1310
1310
|
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1311
|
-
}, T(E(s)(E(
|
|
1311
|
+
}, T(E(s)(E(ae)(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, E(u)({
|
|
1312
1312
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1313
1313
|
v: e.value,
|
|
1314
1314
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1362,7 +1362,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1362
1362
|
parent: A.value,
|
|
1363
1363
|
content: Vt.value,
|
|
1364
1364
|
isFullscreen: P.value,
|
|
1365
|
-
isCustom: E(
|
|
1365
|
+
isCustom: E(n)(F.value.style.chart.tooltip.customFormat),
|
|
1366
1366
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
1367
1367
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1368
1368
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|