vue-data-ui 3.2.7 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- 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-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-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-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-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-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, computed as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import { defineAsyncComponent as z, computed as b, ref as c, toRefs as rl, watch as le, onMounted as il, shallowRef as mt, onBeforeUnmount as dl, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ce, normalizeClass as M, createBlock as B, createCommentVNode as $, createElementVNode as y, createVNode as Ve, createSlots as wt, withCtx as L, renderSlot as _, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as D, withDirectives as kt, vShow as $t, Teleport as vl, resolveDynamicComponent as cl, mergeProps as hl, createTextVNode as Ct, nextTick as Lt } from "vue";
|
|
2
|
+
import { c as fl, t as pl, b as yl, p as ze, B as Me, o as gl, f as K, e as bl, J as E, h as ml, n as Be, a as ae, d as O, X as wl, s as kl, O as xt, v as Ee, w as Q, z as _t, x as $l, y as Cl, A as Ll, I as At, q as Re } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as xl, u as _l } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Al, a as Tt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Tl, B as Sl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ol } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as Fl } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as Il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Nl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Dl from "./img-6wPuVVtk.js";
|
|
11
|
+
import Pl from "./Title-D17CJXko.js";
|
|
12
|
+
import { t as Vl } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import zl from "./Legend-DsogCeTb.js";
|
|
14
|
+
import { _ as Ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "height"], Gl = ["id"], Yl = ["offset", "stop-color"], Wl = ["offset", "stop-opacity"], Xl = ["id"], ql = ["id"], Hl = ["id"], Jl = ["flood-color"], Kl = ["id", "d"], Ql = ["d", "fill", "stroke", "stroke-width", "filter"], Zl = ["d", "fill", "stroke", "stroke-width"], jl = { key: 1 }, ea = ["d", "fill"], ta = { key: 2 }, la = ["font-size", "font-weight", "fill", "dy"], aa = ["href"], oa = ["x", "y", "font-size", "font-weight", "fill"], sa = { key: 3 }, ua = ["filter"], na = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ra = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ia = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], da = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], va = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, ca = ["id"], ha = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "vue-ui-nested-donuts-legend-title"
|
|
20
|
-
},
|
|
21
|
+
}, fa = ["onClick"], pa = ["innerHTML"], ya = {
|
|
21
22
|
__name: "vue-ui-nested-donuts",
|
|
22
23
|
props: {
|
|
23
24
|
config: {
|
|
@@ -34,19 +35,19 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
emits: ["selectLegend", "selectDatapoint"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
38
|
+
setup(St, { expose: Ot, emit: Ft }) {
|
|
39
|
+
const It = z(() => import("./Tooltip-CtVdvbZi.js")), Nt = z(() => import("./BaseIcon-CtqN7W_g.js")), Dt = z(() => import("./vue-ui-accordion-Dch9YrCi.js")), Pt = z(() => import("./DataTable-BeI6gYJX.js")), Vt = z(() => import("./UserOptions-B3vCIe-u.js")), zt = z(() => import("./PenAndPaper-BxbYiPy4.js")), Mt = z(() => import("./PackageVersion-C9oklnuy.js")), Bt = z(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_nested_donuts: Et } = Al(), w = St, he = b({
|
|
39
40
|
get() {
|
|
40
|
-
return !!
|
|
41
|
+
return !!w.dataset && w.dataset.length;
|
|
41
42
|
},
|
|
42
|
-
set(
|
|
43
|
-
return
|
|
43
|
+
set(t) {
|
|
44
|
+
return t;
|
|
44
45
|
}
|
|
45
|
-
}),
|
|
46
|
-
function Ke(
|
|
47
|
-
G.value =
|
|
46
|
+
}), p = c(fl()), fe = c(!1), pe = c(""), ye = c(null), Ue = c(0), I = c(null), Ge = c(null), ge = c(null), Ye = c(null), We = c(null), Xe = c(0), qe = c(0), He = c(0), R = c(!0), U = c([]), Z = c([]), Je = c(!1), j = c(null), be = c(null), G = c(!1);
|
|
47
|
+
function Ke(t) {
|
|
48
|
+
G.value = t, Ue.value += 1;
|
|
48
49
|
}
|
|
49
|
-
const e = c(
|
|
50
|
+
const e = c($e()), Qe = {
|
|
50
51
|
name: "",
|
|
51
52
|
series: [
|
|
52
53
|
{
|
|
@@ -65,17 +66,17 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
65
66
|
color: "#CACACA"
|
|
66
67
|
}
|
|
67
68
|
]
|
|
68
|
-
}, { loading:
|
|
69
|
-
...
|
|
69
|
+
}, { loading: me, FINAL_DATASET: Y, manualLoading: we } = Tl({
|
|
70
|
+
...rl(w),
|
|
70
71
|
FINAL_CONFIG: e,
|
|
71
|
-
prepareConfig:
|
|
72
|
+
prepareConfig: $e,
|
|
72
73
|
callback: () => {
|
|
73
74
|
Promise.resolve().then(async () => {
|
|
74
75
|
await tt();
|
|
75
76
|
});
|
|
76
77
|
},
|
|
77
78
|
skeletonDataset: [Qe, Qe],
|
|
78
|
-
skeletonConfig:
|
|
79
|
+
skeletonConfig: pl({
|
|
79
80
|
defaultConfig: e.value,
|
|
80
81
|
userConfig: {
|
|
81
82
|
useCssAnimation: !1,
|
|
@@ -101,102 +102,102 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
})
|
|
104
|
-
}), { userOptionsVisible:
|
|
105
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Il({ config: e.value }), { svgRef: ee } = Nl({
|
|
105
106
|
config: e.value.style.chart.title
|
|
106
107
|
});
|
|
107
|
-
function
|
|
108
|
-
const
|
|
109
|
-
userConfig:
|
|
110
|
-
defaultConfig:
|
|
108
|
+
function $e() {
|
|
109
|
+
const t = Tt({
|
|
110
|
+
userConfig: w.config,
|
|
111
|
+
defaultConfig: Et
|
|
111
112
|
});
|
|
112
113
|
let s = {};
|
|
113
|
-
return
|
|
114
|
-
...
|
|
115
|
-
userConfig:
|
|
116
|
-
defaultConfig:
|
|
114
|
+
return t.theme ? s = {
|
|
115
|
+
...Tt({
|
|
116
|
+
userConfig: Vl.vue_ui_nested_donuts[t.theme] || w.config,
|
|
117
|
+
defaultConfig: t
|
|
117
118
|
}),
|
|
118
|
-
customPalette:
|
|
119
|
-
} : s =
|
|
119
|
+
customPalette: yl[t.theme] || ze
|
|
120
|
+
} : s = t, w.config && Me(w.config, "events.datapointEnter") ? s.events.datapointEnter = w.config.events.datapointEnter : s.events.datapointEnter = null, w.config && Me(w.config, "events.datapointLeave") ? s.events.datapointLeave = w.config.events.datapointLeave : s.events.datapointLeave = null, w.config && Me(w.config, "events.datapointClick") ? s.events.datapointClick = w.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
120
121
|
}
|
|
121
|
-
|
|
122
|
-
() =>
|
|
123
|
-
(
|
|
124
|
-
|
|
122
|
+
le(
|
|
123
|
+
() => w.config,
|
|
124
|
+
(t) => {
|
|
125
|
+
me.value || (e.value = $e()), ke.value = !e.value.userOptions.showOnChartHover, lt(), Xe.value += 1, qe.value += 1, He.value += 1, C.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
|
|
125
126
|
},
|
|
126
127
|
{ deep: !0 }
|
|
127
128
|
);
|
|
128
|
-
const et =
|
|
129
|
-
const { top:
|
|
129
|
+
const et = b(() => {
|
|
130
|
+
const { top: t, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
130
131
|
return {
|
|
131
|
-
css: `padding:${
|
|
132
|
-
top:
|
|
132
|
+
css: `padding:${t}px ${s}px ${a}px ${o}px`,
|
|
133
|
+
top: t,
|
|
133
134
|
right: s,
|
|
134
135
|
bottom: a,
|
|
135
136
|
left: o
|
|
136
137
|
};
|
|
137
138
|
});
|
|
138
|
-
function
|
|
139
|
+
function Rt(t, s = 1e3, a = 50) {
|
|
139
140
|
return new Promise((o) => {
|
|
140
|
-
const
|
|
141
|
-
U.value = Array(
|
|
141
|
+
const l = t.length;
|
|
142
|
+
U.value = Array(l).fill(0), Z.value = [];
|
|
142
143
|
let n = 0;
|
|
143
|
-
|
|
144
|
+
t.forEach((v, f) => {
|
|
144
145
|
setTimeout(() => {
|
|
145
|
-
const
|
|
146
|
-
function d(
|
|
147
|
-
const
|
|
148
|
-
U.value[
|
|
149
|
-
const
|
|
150
|
-
let
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
(De, Pe) => De + Re(E(Pe.values).reduce((
|
|
146
|
+
const m = performance.now();
|
|
147
|
+
function d(g) {
|
|
148
|
+
const S = Math.min((g - m) / s, 1), Se = At(S), Oe = v * Se;
|
|
149
|
+
U.value[f] = Oe, U.value = [...U.value];
|
|
150
|
+
const de = [];
|
|
151
|
+
let Fe = 0;
|
|
152
|
+
w.dataset.forEach((ve, Ie) => {
|
|
153
|
+
const ol = Re(ve.series.reduce(
|
|
154
|
+
(De, Pe) => De + Re(E(Pe.values).reduce((ul, nl) => ul + nl, 0)),
|
|
154
155
|
0
|
|
155
|
-
)),
|
|
156
|
-
|
|
156
|
+
)), sl = Re(U.value.slice(Fe, Fe + ve.series.length).reduce((De, Pe) => De + Pe, 0)), Ne = ol - sl;
|
|
157
|
+
Ne > Number.MIN_VALUE && de.push({
|
|
157
158
|
name: "__ghost__",
|
|
158
|
-
arcOf:
|
|
159
|
-
arcOfId: `${
|
|
160
|
-
id: `ghost_${
|
|
159
|
+
arcOf: ve.name,
|
|
160
|
+
arcOfId: `${p.value}_${Ie}`,
|
|
161
|
+
id: `ghost_${p.value}_${Ie}`,
|
|
161
162
|
seriesIndex: -1,
|
|
162
|
-
datasetIndex:
|
|
163
|
+
datasetIndex: Ie,
|
|
163
164
|
color: "transparent",
|
|
164
|
-
value:
|
|
165
|
-
fullValue:
|
|
165
|
+
value: Ne,
|
|
166
|
+
fullValue: Ne,
|
|
166
167
|
absoluteValues: [],
|
|
167
168
|
ghost: !0
|
|
168
|
-
}),
|
|
169
|
-
}), Z.value =
|
|
169
|
+
}), Fe += ve.series.length;
|
|
170
|
+
}), Z.value = de, S < 1 ? requestAnimationFrame(d) : (n += 1, n === l && o());
|
|
170
171
|
}
|
|
171
172
|
requestAnimationFrame(d);
|
|
172
|
-
},
|
|
173
|
+
}, f * a);
|
|
173
174
|
});
|
|
174
175
|
});
|
|
175
176
|
}
|
|
176
177
|
async function tt() {
|
|
177
178
|
if (e.value.startAnimation?.show) {
|
|
178
179
|
const s = Y.value.flatMap((a) => a.series).map(
|
|
179
|
-
(a) => E(a.values).reduce((o,
|
|
180
|
+
(a) => E(a.values).reduce((o, l) => o + l, 0)
|
|
180
181
|
);
|
|
181
182
|
U.value = s.map(() => 0), R.value = !0, Z.value = Y.value.map((a, o) => {
|
|
182
|
-
const
|
|
183
|
-
(n, v) => n + E(v.values).reduce((
|
|
183
|
+
const l = a.series.reduce(
|
|
184
|
+
(n, v) => n + E(v.values).reduce((f, m) => f + m, 0),
|
|
184
185
|
0
|
|
185
186
|
);
|
|
186
187
|
return {
|
|
187
188
|
name: "__ghost__",
|
|
188
189
|
arcOf: a.name,
|
|
189
|
-
arcOfId: `${
|
|
190
|
-
id: `ghost_${
|
|
190
|
+
arcOfId: `${p.value}_${o}`,
|
|
191
|
+
id: `ghost_${p.value}_${o}`,
|
|
191
192
|
seriesIndex: -1,
|
|
192
193
|
datasetIndex: o,
|
|
193
194
|
color: "transparent",
|
|
194
|
-
value:
|
|
195
|
-
fullValue:
|
|
195
|
+
value: l,
|
|
196
|
+
fullValue: l,
|
|
196
197
|
absoluteValues: [],
|
|
197
198
|
ghost: !0
|
|
198
199
|
};
|
|
199
|
-
}), await
|
|
200
|
+
}), await Lt(), Rt(
|
|
200
201
|
s,
|
|
201
202
|
e.value.startAnimation.durationMs,
|
|
202
203
|
e.value.startAnimation.staggerMs
|
|
@@ -206,21 +207,21 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
206
207
|
} else
|
|
207
208
|
R.value = !1;
|
|
208
209
|
}
|
|
209
|
-
|
|
210
|
+
il(async () => {
|
|
210
211
|
Je.value = !0, lt(), await tt();
|
|
211
212
|
});
|
|
212
|
-
const P =
|
|
213
|
+
const P = mt(null), W = mt(null), X = b(() => !!e.value.debug);
|
|
213
214
|
function lt() {
|
|
214
|
-
if (
|
|
215
|
+
if (gl(w.dataset) ? (K({
|
|
215
216
|
componentName: "VueUiNestedDonuts",
|
|
216
217
|
type: "dataset",
|
|
217
218
|
debug: X.value
|
|
218
|
-
}),
|
|
219
|
-
const
|
|
220
|
-
const { width: s, height: a } =
|
|
219
|
+
}), he.value = !1, we.value = !0) : we.value = e.value.loading, e.value.responsive) {
|
|
220
|
+
const t = xl(() => {
|
|
221
|
+
const { width: s, height: a } = _l({
|
|
221
222
|
chart: I.value,
|
|
222
223
|
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
223
|
-
legend: e.value.style.chart.legend.show ?
|
|
224
|
+
legend: e.value.style.chart.legend.show ? ge.value : null,
|
|
224
225
|
source: Ye.value,
|
|
225
226
|
noTitle: We.value,
|
|
226
227
|
padding: et.value
|
|
@@ -229,25 +230,25 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
229
230
|
h.value.width = s, h.value.height = a;
|
|
230
231
|
});
|
|
231
232
|
});
|
|
232
|
-
P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect()), P.value = new ResizeObserver(
|
|
233
|
+
P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect()), P.value = new ResizeObserver(t), W.value = I.value.parentNode, P.value.observe(W.value);
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
|
-
|
|
236
|
+
dl(() => {
|
|
236
237
|
P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect());
|
|
237
238
|
});
|
|
238
|
-
const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } =
|
|
239
|
-
elementId: `nested_donuts_${
|
|
239
|
+
const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } = Ol({
|
|
240
|
+
elementId: `nested_donuts_${p.value}`,
|
|
240
241
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
241
242
|
options: e.value.userOptions.print
|
|
242
|
-
}),
|
|
243
|
+
}), Ut = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Gt = b(() => bl(e.value.customPalette)), C = c({
|
|
243
244
|
dataLabels: {
|
|
244
245
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
245
246
|
},
|
|
246
247
|
showTable: e.value.table.show,
|
|
247
248
|
showTooltip: e.value.style.chart.tooltip.show
|
|
248
249
|
});
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
le(e, () => {
|
|
251
|
+
C.value = {
|
|
251
252
|
dataLabels: {
|
|
252
253
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
253
254
|
},
|
|
@@ -259,26 +260,26 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
259
260
|
width: e.value.style.chart.width,
|
|
260
261
|
height: e.value.style.chart.height
|
|
261
262
|
}), nt = Ft;
|
|
262
|
-
function
|
|
263
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
263
|
+
function Yt({ datapoint: t, index: s, seriesIndex: a }) {
|
|
264
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), nt("selectDatapoint", { datapoint: t, index: s });
|
|
264
265
|
}
|
|
265
266
|
function rt({
|
|
266
|
-
from:
|
|
267
|
+
from: t,
|
|
267
268
|
to: s,
|
|
268
269
|
duration: a,
|
|
269
270
|
onUpdate: o,
|
|
270
|
-
onDone:
|
|
271
|
-
easing: n =
|
|
271
|
+
onDone: l,
|
|
272
|
+
easing: n = At
|
|
272
273
|
}) {
|
|
273
274
|
const v = performance.now();
|
|
274
|
-
function
|
|
275
|
-
const d = Math.min((
|
|
276
|
-
o(
|
|
275
|
+
function f(m) {
|
|
276
|
+
const d = Math.min((m - v) / a, 1), g = n(d), S = t + (s - t) * g;
|
|
277
|
+
o(S, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), l && l());
|
|
277
278
|
}
|
|
278
|
-
requestAnimationFrame(
|
|
279
|
+
requestAnimationFrame(f);
|
|
279
280
|
}
|
|
280
|
-
const
|
|
281
|
-
|
|
281
|
+
const x = c([]), F = b(() => {
|
|
282
|
+
me.value, Y.value.forEach((s, a) => {
|
|
282
283
|
[null, void 0].includes(s.name) && K({
|
|
283
284
|
componentName: "VueUiNestedDonuts",
|
|
284
285
|
type: "datasetSerieAttribute",
|
|
@@ -296,127 +297,127 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
296
297
|
type: "datasetAttributeEmpty",
|
|
297
298
|
property: `series at index ${a}`,
|
|
298
299
|
debug: X.value
|
|
299
|
-
}) : s.series.forEach((o,
|
|
300
|
+
}) : s.series.forEach((o, l) => {
|
|
300
301
|
[null, void 0].includes(o.name) && K({
|
|
301
302
|
componentName: "VueUiNestedDonuts",
|
|
302
303
|
type: "datasetSerieAttribute",
|
|
303
304
|
property: "name",
|
|
304
|
-
index:
|
|
305
|
+
index: l,
|
|
305
306
|
key: "serie",
|
|
306
307
|
debug: X.value
|
|
307
308
|
}), [null, void 0].includes(o.values) && K({
|
|
308
309
|
componentName: "VueUiNestedDonuts",
|
|
309
310
|
type: "datasetSerieAttribute",
|
|
310
311
|
property: "values",
|
|
311
|
-
index:
|
|
312
|
+
index: l,
|
|
312
313
|
key: "serie",
|
|
313
314
|
debug: X.value
|
|
314
315
|
});
|
|
315
316
|
});
|
|
316
317
|
});
|
|
317
|
-
let
|
|
318
|
+
let t = 0;
|
|
318
319
|
return Y.value.map((s, a) => ({
|
|
319
320
|
...s,
|
|
320
|
-
total: s.series.filter((o) => !
|
|
321
|
+
total: s.series.filter((o) => !x.value.includes(o.id)).map((o) => E(o.values).reduce((l, n) => l + n, 0)).reduce((o, l) => o + l, 0),
|
|
321
322
|
datasetIndex: a,
|
|
322
|
-
id: `${
|
|
323
|
-
series: s.series.map((o,
|
|
324
|
-
const n = E(o.values).reduce((v,
|
|
323
|
+
id: `${p.value}_${a}`,
|
|
324
|
+
series: s.series.map((o, l) => {
|
|
325
|
+
const n = E(o.values).reduce((v, f) => v + f, 0);
|
|
325
326
|
return {
|
|
326
327
|
name: o.name,
|
|
327
328
|
arcOf: s.name,
|
|
328
|
-
arcOfId: `${
|
|
329
|
-
id: `${
|
|
330
|
-
seriesIndex:
|
|
329
|
+
arcOfId: `${p.value}_${a}`,
|
|
330
|
+
id: `${p.value}_${a}_${l}`,
|
|
331
|
+
seriesIndex: l,
|
|
331
332
|
datasetIndex: a,
|
|
332
|
-
color:
|
|
333
|
-
value: R.value ? U.value[
|
|
333
|
+
color: ml(o.color) || Gt.value[l] || ze[l % ze.length],
|
|
334
|
+
value: R.value ? U.value[t++] ?? 0 : n,
|
|
334
335
|
absoluteValues: o.values || []
|
|
335
336
|
};
|
|
336
337
|
})
|
|
337
338
|
}));
|
|
338
339
|
});
|
|
339
|
-
|
|
340
|
-
Array.isArray(
|
|
340
|
+
le(() => w.dataset, (t) => {
|
|
341
|
+
Array.isArray(t) && t.length > 0 && (we.value = !1);
|
|
341
342
|
}, { immediate: !0 });
|
|
342
|
-
const
|
|
343
|
-
const a =
|
|
343
|
+
const N = b(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = b(() => [...F.value].map((t, s) => {
|
|
344
|
+
const a = t.series.filter((o) => !x.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
344
345
|
return {
|
|
345
|
-
...
|
|
346
|
+
...t,
|
|
346
347
|
total: a,
|
|
347
|
-
series:
|
|
348
|
+
series: t.series.filter((o) => !x.value.includes(o.id)).map((o) => ({
|
|
348
349
|
...o,
|
|
349
350
|
proportion: o.value / a
|
|
350
351
|
}))
|
|
351
352
|
};
|
|
352
353
|
}));
|
|
353
|
-
function
|
|
354
|
+
function Wt(t, s, a) {
|
|
354
355
|
let o = 0;
|
|
355
|
-
for (let
|
|
356
|
-
a.includes(l
|
|
356
|
+
for (let l = 0; l < t.length; l += 1)
|
|
357
|
+
a.includes(t[l]) && (o += 1);
|
|
357
358
|
return o < s;
|
|
358
359
|
}
|
|
359
|
-
const
|
|
360
|
-
|
|
360
|
+
const k = c(it.value);
|
|
361
|
+
le(
|
|
361
362
|
() => it.value,
|
|
362
|
-
(
|
|
363
|
+
(t) => k.value = t
|
|
363
364
|
);
|
|
364
|
-
function
|
|
365
|
-
nt("selectLegend",
|
|
366
|
-
const s =
|
|
367
|
-
(d,
|
|
368
|
-
value: E(
|
|
369
|
-
id: `${
|
|
370
|
-
arcOfId: `${
|
|
365
|
+
function Ce(t) {
|
|
366
|
+
nt("selectLegend", t);
|
|
367
|
+
const s = w.dataset.flatMap(
|
|
368
|
+
(d, g) => d.series.map((S, Se) => ({
|
|
369
|
+
value: E(S.values).reduce((Oe, de) => Oe + de, 0),
|
|
370
|
+
id: `${p.value}_${g}_${Se}`,
|
|
371
|
+
arcOfId: `${p.value}_${g}`
|
|
371
372
|
}))
|
|
372
|
-
).find((d) => d.id ===
|
|
373
|
+
).find((d) => d.id === t.id);
|
|
373
374
|
if (!s) return;
|
|
374
|
-
const a =
|
|
375
|
+
const a = F.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = k.value.flatMap((d) => d.series).find((d) => d.id === t.id);
|
|
375
376
|
let n = o ? o.value : 0;
|
|
376
|
-
const v =
|
|
377
|
+
const v = F.value.find(
|
|
377
378
|
(d) => d.id === s.arcOfId
|
|
378
379
|
);
|
|
379
380
|
if (!v) return;
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
const f = v.series.map((d) => d.id), m = Wt(
|
|
382
|
+
f,
|
|
383
|
+
f.length - 1,
|
|
384
|
+
x.value
|
|
384
385
|
);
|
|
385
|
-
|
|
386
|
+
x.value.includes(t.id) ? (x.value = x.value.filter((d) => d !== t.id), e.value.serieToggleAnimation.show ? rt({
|
|
386
387
|
from: n,
|
|
387
388
|
to: a,
|
|
388
389
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
389
390
|
onUpdate: (d) => {
|
|
390
|
-
|
|
391
|
-
...
|
|
392
|
-
series:
|
|
391
|
+
k.value = k.value.map((g) => ({
|
|
392
|
+
...g,
|
|
393
|
+
series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
|
|
393
394
|
}));
|
|
394
395
|
}
|
|
395
|
-
}) :
|
|
396
|
+
}) : k.value = k.value.map((d) => ({
|
|
396
397
|
...d,
|
|
397
|
-
series: d.series.map((
|
|
398
|
-
}))) :
|
|
398
|
+
series: d.series.map((g) => g.id === t.id ? { ...g, value: a } : g)
|
|
399
|
+
}))) : m && (e.value.serieToggleAnimation.show ? rt({
|
|
399
400
|
from: n,
|
|
400
401
|
to: 0,
|
|
401
402
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
402
403
|
onUpdate: (d) => {
|
|
403
|
-
|
|
404
|
-
...
|
|
405
|
-
series:
|
|
404
|
+
k.value = k.value.map((g) => ({
|
|
405
|
+
...g,
|
|
406
|
+
series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
|
|
406
407
|
}));
|
|
407
408
|
},
|
|
408
409
|
onDone: () => {
|
|
409
|
-
|
|
410
|
+
x.value.push(t.id);
|
|
410
411
|
}
|
|
411
|
-
}) : (
|
|
412
|
+
}) : (k.value = k.value.map((d) => ({
|
|
412
413
|
...d,
|
|
413
|
-
series: d.series.map((
|
|
414
|
-
})),
|
|
414
|
+
series: d.series.map((g) => g.id === t.id ? { ...g, value: 0 } : g)
|
|
415
|
+
})), x.value.push(t.id)));
|
|
415
416
|
}
|
|
416
|
-
const oe =
|
|
417
|
-
const a = Math.abs(
|
|
418
|
-
...
|
|
419
|
-
value:
|
|
417
|
+
const oe = b(() => N.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio), dt = b(() => k.value.map((t, s) => N.value - s * N.value / F.value.length)), q = b(() => k.value.map((t, s) => {
|
|
418
|
+
const a = Math.abs(t.series.map((m) => m.value).reduce((m, d) => m + d, 0)) > 0, o = N.value - s * N.value / k.value.length, l = R.value ? Z.value.find((m) => m.datasetIndex === s) : null, n = [...t.series, ...l ? [l] : []].map((m) => ({
|
|
419
|
+
...m,
|
|
420
|
+
value: m.value < 1e-11 ? Number.MIN_VALUE : m.value
|
|
420
421
|
})), v = Be(
|
|
421
422
|
{ series: [
|
|
422
423
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
@@ -431,15 +432,15 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
431
432
|
360,
|
|
432
433
|
105.25,
|
|
433
434
|
oe.value
|
|
434
|
-
),
|
|
435
|
+
), f = `M ${h.value.width / 2},${h.value.height / 2 + o}
|
|
435
436
|
a ${o},${o} 0 1,1 0,${-2 * o}
|
|
436
437
|
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
437
438
|
return {
|
|
438
|
-
...
|
|
439
|
+
...t,
|
|
439
440
|
hasData: a,
|
|
440
441
|
radius: o,
|
|
441
442
|
skeleton: v,
|
|
442
|
-
fullCirclePath:
|
|
443
|
+
fullCirclePath: f,
|
|
443
444
|
donut: Be(
|
|
444
445
|
{ series: n },
|
|
445
446
|
h.value.width / 2,
|
|
@@ -454,58 +455,58 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
454
455
|
oe.value
|
|
455
456
|
)
|
|
456
457
|
};
|
|
457
|
-
})), vt =
|
|
458
|
-
const a = s *
|
|
458
|
+
})), vt = b(() => [...F.value].map((t, s) => {
|
|
459
|
+
const a = s * N.value / F.value.length;
|
|
459
460
|
return {
|
|
460
461
|
sizeRatio: a,
|
|
461
462
|
donut: Be(
|
|
462
463
|
{ series: [{ value: 1 }] },
|
|
463
464
|
h.value.width / 2,
|
|
464
465
|
h.value.height / 2,
|
|
465
|
-
|
|
466
|
-
|
|
466
|
+
N.value - a,
|
|
467
|
+
N.value - a,
|
|
467
468
|
1.99999,
|
|
468
469
|
2,
|
|
469
470
|
1,
|
|
470
471
|
360,
|
|
471
472
|
105.25,
|
|
472
|
-
|
|
473
|
+
N.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
473
474
|
)[0]
|
|
474
475
|
};
|
|
475
|
-
})), ct = c(null), se = c(null), ue = c(null),
|
|
476
|
-
function
|
|
477
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
476
|
+
})), ct = c(null), se = c(null), ue = c(null), Le = c(null);
|
|
477
|
+
function Xt({ datapoint: t, seriesIndex: s }) {
|
|
478
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), fe.value = !1, ct.value = null, ye.value = null, se.value = null, ue.value = null;
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
481
|
-
datapoint:
|
|
480
|
+
function qt({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
|
|
481
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ct.value = t.arcOfId, se.value = t.id, ue.value = a, ye.value = t.id, Le.value = {
|
|
482
|
+
datapoint: t,
|
|
482
483
|
seriesIndex: a,
|
|
483
|
-
series:
|
|
484
|
+
series: k.value,
|
|
484
485
|
config: e.value
|
|
485
486
|
};
|
|
486
487
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
487
|
-
if (_t(o) &&
|
|
488
|
+
if (_t(o) && Ll(
|
|
488
489
|
() => o({
|
|
489
490
|
seriesIndex: a,
|
|
490
|
-
datapoint:
|
|
491
|
-
series:
|
|
491
|
+
datapoint: t,
|
|
492
|
+
series: k.value,
|
|
492
493
|
config: e.value
|
|
493
494
|
})
|
|
494
495
|
))
|
|
495
|
-
|
|
496
|
+
pe.value = o({
|
|
496
497
|
seriesIndex: a,
|
|
497
|
-
datapoint:
|
|
498
|
-
series:
|
|
498
|
+
datapoint: t,
|
|
499
|
+
series: k.value,
|
|
499
500
|
config: e.value
|
|
500
501
|
});
|
|
501
502
|
else {
|
|
502
|
-
let
|
|
503
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
504
|
-
const n =
|
|
505
|
-
n.forEach((v,
|
|
503
|
+
let l = "";
|
|
504
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && x.value.length === 0) {
|
|
505
|
+
const n = k.value.map((v) => v.series.find((f) => f.seriesIndex === a));
|
|
506
|
+
n.forEach((v, f) => {
|
|
506
507
|
if (!v) return "";
|
|
507
|
-
|
|
508
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${
|
|
508
|
+
l += `
|
|
509
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < n.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
509
510
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
510
511
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
511
512
|
<circle cx="10" cy="10" r="10" fill="${v.color}"/>
|
|
@@ -515,19 +516,19 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
515
516
|
</span>
|
|
516
517
|
</div>
|
|
517
518
|
<span>
|
|
518
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
519
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${ae(
|
|
519
520
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
520
|
-
|
|
521
|
-
|
|
521
|
+
t.value,
|
|
522
|
+
O({
|
|
522
523
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
523
|
-
v:
|
|
524
|
+
v: t.value,
|
|
524
525
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
525
526
|
r: e.value.style.chart.tooltip.roundingValue
|
|
526
527
|
}),
|
|
527
|
-
{ datapoint:
|
|
528
|
+
{ datapoint: t, seriesIndex: a }
|
|
528
529
|
)}
|
|
529
530
|
</b>` : ""}
|
|
530
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
531
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${O({
|
|
531
532
|
v: v.proportion * 100,
|
|
532
533
|
s: "%",
|
|
533
534
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -537,112 +538,128 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
537
538
|
`;
|
|
538
539
|
});
|
|
539
540
|
} else
|
|
540
|
-
|
|
541
|
+
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${ae(
|
|
541
542
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
542
|
-
|
|
543
|
-
|
|
543
|
+
t.value,
|
|
544
|
+
O({
|
|
544
545
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
545
|
-
v:
|
|
546
|
+
v: t.value,
|
|
546
547
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
547
548
|
r: e.value.style.chart.tooltip.roundingValue
|
|
548
549
|
}),
|
|
549
|
-
{ datapoint:
|
|
550
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
551
|
-
v:
|
|
550
|
+
{ datapoint: t, seriesIndex: a }
|
|
551
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${O({
|
|
552
|
+
v: t.proportion * 100,
|
|
552
553
|
s: "%",
|
|
553
554
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
554
|
-
})})</span></div>` :
|
|
555
|
-
v:
|
|
555
|
+
})})</span></div>` : l += `<b>${O({
|
|
556
|
+
v: t.proportion * 100,
|
|
556
557
|
s: "%",
|
|
557
558
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
558
559
|
})}</b></div>`);
|
|
559
|
-
|
|
560
|
+
pe.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
|
|
560
561
|
}
|
|
561
|
-
|
|
562
|
+
fe.value = !0;
|
|
562
563
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
564
|
+
function xe(t) {
|
|
565
|
+
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
565
566
|
}
|
|
566
|
-
function ht(
|
|
567
|
+
function ht(t, s) {
|
|
567
568
|
if (!e.value.useBlurOnHover)
|
|
568
569
|
return "";
|
|
569
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
570
|
-
return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${
|
|
571
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
572
|
-
return [null, void 0].includes(se.value) || se.value ===
|
|
570
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && x.value.length === 0)
|
|
571
|
+
return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${p.value})`;
|
|
572
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || x.value.length)
|
|
573
|
+
return [null, void 0].includes(se.value) || se.value === t.id ? "" : `url(#blur_${p.value})`;
|
|
573
574
|
}
|
|
574
|
-
const
|
|
575
|
-
const a =
|
|
576
|
-
(
|
|
577
|
-
), o = R.value ? a.map((
|
|
575
|
+
const ne = b(() => F.value.map((t, s) => {
|
|
576
|
+
const a = t.series.filter(
|
|
577
|
+
(l) => !x.value.includes(l.id)
|
|
578
|
+
), o = R.value ? a.map((l) => {
|
|
578
579
|
const n = Y.value[s].series.findIndex(
|
|
579
|
-
(v) => v.name ===
|
|
580
|
+
(v) => v.name === l.name
|
|
580
581
|
);
|
|
581
582
|
return E(
|
|
582
583
|
Y.value[s].series[n].values
|
|
583
|
-
).reduce((v,
|
|
584
|
-
}).reduce((
|
|
585
|
-
return
|
|
584
|
+
).reduce((v, f) => v + f, 0);
|
|
585
|
+
}).reduce((l, n) => l + n, 0) : a.map((l) => l.value).reduce((l, n) => l + n, 0);
|
|
586
|
+
return t.series.map((l, n) => {
|
|
586
587
|
const v = E(Y.value[s].series[n].values).reduce(
|
|
587
|
-
(
|
|
588
|
+
(d, g) => d + g,
|
|
588
589
|
0
|
|
589
|
-
),
|
|
590
|
+
), f = R.value ? v : l.value, m = `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? ae(
|
|
591
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
592
|
+
f,
|
|
593
|
+
O({
|
|
594
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
595
|
+
v: f,
|
|
596
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
597
|
+
r: e.value.style.chart.legend.roundingValue
|
|
598
|
+
}),
|
|
599
|
+
{ datapoint: l, seriesIndex: n }
|
|
600
|
+
) : ""}${e.value.style.chart.legend.showPercentage ? x.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(f / o) ? "-" : O({
|
|
601
|
+
v: f / o * 100,
|
|
602
|
+
s: "%",
|
|
603
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
604
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`;
|
|
590
605
|
return {
|
|
591
|
-
name:
|
|
592
|
-
color:
|
|
593
|
-
value:
|
|
606
|
+
name: l.name,
|
|
607
|
+
color: l.color,
|
|
608
|
+
value: f,
|
|
609
|
+
display: m,
|
|
610
|
+
svgDisplay: `${l.arcOf ? `${l.arcOf} - ` : ""}${m}`,
|
|
594
611
|
shape: "circle",
|
|
595
|
-
arcOf:
|
|
596
|
-
id:
|
|
612
|
+
arcOf: l.arcOf,
|
|
613
|
+
id: l.id,
|
|
597
614
|
seriesIndex: n,
|
|
598
615
|
datasetIndex: s,
|
|
599
616
|
total: o,
|
|
600
|
-
opacity:
|
|
601
|
-
segregate: () =>
|
|
602
|
-
isSegregated:
|
|
617
|
+
opacity: x.value.includes(l.id) ? 0.5 : 1,
|
|
618
|
+
segregate: () => Ce(l),
|
|
619
|
+
isSegregated: x.value.includes(l.id)
|
|
603
620
|
};
|
|
604
621
|
});
|
|
605
|
-
})),
|
|
622
|
+
})), Ht = b(() => ({
|
|
606
623
|
cy: "nested-donuts-legend",
|
|
607
624
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
608
625
|
color: e.value.style.chart.legend.color,
|
|
609
626
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
610
627
|
paddingBottom: 12,
|
|
611
628
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
612
|
-
})), V =
|
|
613
|
-
const
|
|
629
|
+
})), V = b(() => {
|
|
630
|
+
const t = k.value.flatMap((a) => a.series.map((o) => ({
|
|
614
631
|
name: `${a.name} - ${o.name}`,
|
|
615
632
|
color: o.color,
|
|
616
633
|
total: a.total
|
|
617
|
-
}))), s =
|
|
618
|
-
return { head:
|
|
634
|
+
}))), s = k.value.flatMap((a) => a.series.map((o) => o.value));
|
|
635
|
+
return { head: t, body: s };
|
|
619
636
|
});
|
|
620
|
-
function
|
|
621
|
-
|
|
622
|
-
const s = V.value.head.map((
|
|
623
|
-
[
|
|
637
|
+
function _e(t = null) {
|
|
638
|
+
Lt(() => {
|
|
639
|
+
const s = V.value.head.map((l, n) => [
|
|
640
|
+
[l.name],
|
|
624
641
|
[V.value.body[n]],
|
|
625
642
|
[
|
|
626
|
-
isNaN(V.value.body[n] /
|
|
643
|
+
isNaN(V.value.body[n] / l.total) ? "-" : V.value.body[n] / l.total * 100
|
|
627
644
|
]
|
|
628
645
|
]), a = [
|
|
629
646
|
[e.value.style.chart.title.text],
|
|
630
647
|
[e.value.style.chart.title.subtitle.text],
|
|
631
648
|
[[""], ["val"], ["%"]]
|
|
632
|
-
].concat(s), o =
|
|
633
|
-
|
|
649
|
+
].concat(s), o = $l(a);
|
|
650
|
+
t ? t(o) : Cl({
|
|
634
651
|
csvContent: o,
|
|
635
652
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
636
653
|
});
|
|
637
654
|
});
|
|
638
655
|
}
|
|
639
|
-
const
|
|
640
|
-
const
|
|
656
|
+
const re = b(() => {
|
|
657
|
+
const t = [
|
|
641
658
|
e.value.table.columnNames.series,
|
|
642
659
|
e.value.table.columnNames.value,
|
|
643
660
|
e.value.table.columnNames.percentage
|
|
644
|
-
], s = V.value.head.map((
|
|
645
|
-
const v =
|
|
661
|
+
], s = V.value.head.map((l, n) => {
|
|
662
|
+
const v = O({
|
|
646
663
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
647
664
|
v: V.value.body[n],
|
|
648
665
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -650,12 +667,12 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
650
667
|
});
|
|
651
668
|
return [
|
|
652
669
|
{
|
|
653
|
-
color:
|
|
654
|
-
name:
|
|
670
|
+
color: l.color,
|
|
671
|
+
name: l.name
|
|
655
672
|
},
|
|
656
673
|
v,
|
|
657
|
-
isNaN(V.value.body[n] /
|
|
658
|
-
v: V.value.body[n] /
|
|
674
|
+
isNaN(V.value.body[n] / l.total) ? "-" : O({
|
|
675
|
+
v: V.value.body[n] / l.total * 100,
|
|
659
676
|
s: "%",
|
|
660
677
|
r: e.value.table.td.roundingPercentage
|
|
661
678
|
})
|
|
@@ -679,32 +696,32 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
679
696
|
e.value.table.columnNames.value,
|
|
680
697
|
e.value.table.columnNames.percentage
|
|
681
698
|
],
|
|
682
|
-
head:
|
|
699
|
+
head: t,
|
|
683
700
|
body: s,
|
|
684
701
|
config: a
|
|
685
702
|
};
|
|
686
703
|
});
|
|
687
|
-
function
|
|
688
|
-
return
|
|
704
|
+
function Jt() {
|
|
705
|
+
return F.value;
|
|
689
706
|
}
|
|
690
707
|
function ft() {
|
|
691
|
-
|
|
708
|
+
C.value.showTable = !C.value.showTable;
|
|
692
709
|
}
|
|
693
710
|
function pt() {
|
|
694
|
-
|
|
711
|
+
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
695
712
|
}
|
|
696
713
|
function yt() {
|
|
697
|
-
|
|
714
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
698
715
|
}
|
|
699
|
-
const
|
|
716
|
+
const ie = c(!1);
|
|
700
717
|
function Ae() {
|
|
701
|
-
|
|
718
|
+
ie.value = !ie.value;
|
|
702
719
|
}
|
|
703
|
-
async function
|
|
720
|
+
async function Kt({ scale: t = 2 } = {}) {
|
|
704
721
|
if (!I.value) return;
|
|
705
|
-
const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri:
|
|
722
|
+
const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: l, base64: n } = await Dl({ domElement: I.value, base64: !0, img: !0, scale: t });
|
|
706
723
|
return {
|
|
707
|
-
imageUri:
|
|
724
|
+
imageUri: l,
|
|
708
725
|
base64: n,
|
|
709
726
|
title: e.value.style.chart.title.text,
|
|
710
727
|
width: s,
|
|
@@ -713,17 +730,17 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
713
730
|
};
|
|
714
731
|
}
|
|
715
732
|
const Te = c(null);
|
|
716
|
-
function
|
|
733
|
+
function Qt() {
|
|
717
734
|
if (!Te.value) return;
|
|
718
|
-
const { x:
|
|
719
|
-
|
|
735
|
+
const { x: t, y: s, width: a, height: o } = Te.value.getBBox();
|
|
736
|
+
ee.value && ee.value.setAttribute("viewBox", `${t} ${s} ${a + Math.min(0, t)} ${o + Math.min(0, s)}`);
|
|
720
737
|
}
|
|
721
|
-
const
|
|
722
|
-
const
|
|
738
|
+
const te = b(() => {
|
|
739
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = C.value.showTable;
|
|
723
740
|
return {
|
|
724
|
-
component:
|
|
741
|
+
component: t ? Bt : Dt,
|
|
725
742
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
726
|
-
props:
|
|
743
|
+
props: t ? {
|
|
727
744
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
728
745
|
color: e.value.table.th.color,
|
|
729
746
|
headerColor: e.value.table.th.color,
|
|
@@ -748,54 +765,72 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
748
765
|
}
|
|
749
766
|
};
|
|
750
767
|
});
|
|
751
|
-
|
|
752
|
-
e.value.table.show || (
|
|
768
|
+
le(() => C.value.showTable, (t) => {
|
|
769
|
+
e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
753
770
|
});
|
|
754
|
-
function
|
|
755
|
-
|
|
771
|
+
function gt() {
|
|
772
|
+
C.value.showTable = !1, be.value && be.value.setTableIconState(!1);
|
|
773
|
+
}
|
|
774
|
+
const Zt = b(() => e.value.style.chart.backgroundColor), jt = b(() => e.value.style.chart.legend), el = b(() => e.value.style.chart.title), tl = b(() => ne.value.flat().map((t) => ({
|
|
775
|
+
...t,
|
|
776
|
+
name: t.svgDisplay
|
|
777
|
+
}))), { exportSvg: ll, getSvg: al } = Fl({
|
|
778
|
+
svg: ee,
|
|
779
|
+
title: el,
|
|
780
|
+
legend: jt,
|
|
781
|
+
legendItems: tl,
|
|
782
|
+
backgroundColor: Zt
|
|
783
|
+
});
|
|
784
|
+
async function bt({ isCb: t }) {
|
|
785
|
+
if (t) {
|
|
786
|
+
const { blob: s, url: a, text: o, dataUrl: l } = await al();
|
|
787
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: l });
|
|
788
|
+
} else
|
|
789
|
+
ll();
|
|
756
790
|
}
|
|
757
791
|
return Ot({
|
|
758
|
-
autoSize:
|
|
759
|
-
getData:
|
|
760
|
-
getImage:
|
|
792
|
+
autoSize: Qt,
|
|
793
|
+
getData: Jt,
|
|
794
|
+
getImage: Kt,
|
|
761
795
|
generatePdf: st,
|
|
762
|
-
generateCsv:
|
|
796
|
+
generateCsv: _e,
|
|
763
797
|
generateImage: ut,
|
|
798
|
+
generateSvg: bt,
|
|
764
799
|
toggleTable: ft,
|
|
765
800
|
toggleLabels: pt,
|
|
766
801
|
toggleTooltip: yt,
|
|
767
802
|
toggleAnnotator: Ae,
|
|
768
803
|
toggleFullscreen: Ke
|
|
769
|
-
}), (
|
|
804
|
+
}), (t, s) => (u(), r("div", {
|
|
770
805
|
ref_key: "nestedDonutsChart",
|
|
771
806
|
ref: I,
|
|
772
|
-
class: M(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
773
|
-
style:
|
|
774
|
-
id: `nested_donuts_${
|
|
807
|
+
class: M(`vue-data-ui-component vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
808
|
+
style: ce(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
809
|
+
id: `nested_donuts_${p.value}`,
|
|
775
810
|
onMouseenter: s[2] || (s[2] = () => i(Ze)(!0)),
|
|
776
811
|
onMouseleave: s[3] || (s[3] = () => i(Ze)(!1))
|
|
777
812
|
}, [
|
|
778
|
-
e.value.userOptions.buttons.annotator ? (u(), B(i(
|
|
813
|
+
e.value.userOptions.buttons.annotator ? (u(), B(i(zt), {
|
|
779
814
|
key: 0,
|
|
780
|
-
svgRef: i(
|
|
815
|
+
svgRef: i(ee),
|
|
781
816
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
782
817
|
color: e.value.style.chart.color,
|
|
783
|
-
active:
|
|
818
|
+
active: ie.value,
|
|
784
819
|
onClose: Ae
|
|
785
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
786
|
-
|
|
820
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
|
|
821
|
+
Ut.value ? (u(), r("div", {
|
|
787
822
|
key: 1,
|
|
788
823
|
ref_key: "noTitle",
|
|
789
824
|
ref: We,
|
|
790
825
|
class: "vue-data-ui-no-title-space",
|
|
791
826
|
style: "height:36px; width: 100%;background:transparent"
|
|
792
|
-
}, null, 512)) :
|
|
827
|
+
}, null, 512)) : $("", !0),
|
|
793
828
|
e.value.style.chart.title.text ? (u(), r("div", {
|
|
794
829
|
key: 2,
|
|
795
830
|
ref_key: "chartTitle",
|
|
796
831
|
ref: Ge
|
|
797
832
|
}, [
|
|
798
|
-
(u(), B(
|
|
833
|
+
(u(), B(Pl, {
|
|
799
834
|
key: `title_${Xe.value}`,
|
|
800
835
|
config: {
|
|
801
836
|
title: {
|
|
@@ -808,11 +843,11 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
808
843
|
}
|
|
809
844
|
}
|
|
810
845
|
}, null, 8, ["config"]))
|
|
811
|
-
], 512)) :
|
|
812
|
-
|
|
813
|
-
id: `legend-top-${
|
|
814
|
-
}, null, 8,
|
|
815
|
-
e.value.userOptions.show &&
|
|
846
|
+
], 512)) : $("", !0),
|
|
847
|
+
y("div", {
|
|
848
|
+
id: `legend-top-${p.value}`
|
|
849
|
+
}, null, 8, El),
|
|
850
|
+
e.value.userOptions.show && he.value && (i(je) || i(ke)) ? (u(), B(i(Vt), {
|
|
816
851
|
ref_key: "userOptionsRef",
|
|
817
852
|
ref: be,
|
|
818
853
|
key: `user_option_${Ue.value}`,
|
|
@@ -820,119 +855,121 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
820
855
|
color: e.value.style.chart.color,
|
|
821
856
|
isPrinting: i(at),
|
|
822
857
|
isImaging: i(ot),
|
|
823
|
-
uid:
|
|
858
|
+
uid: p.value,
|
|
824
859
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
825
860
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
826
861
|
hasXls: e.value.userOptions.buttons.csv,
|
|
827
862
|
hasImg: e.value.userOptions.buttons.img,
|
|
863
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
828
864
|
hasTable: e.value.userOptions.buttons.table,
|
|
829
865
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
830
866
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
831
867
|
isFullscreen: G.value,
|
|
832
|
-
isTooltip:
|
|
868
|
+
isTooltip: C.value.showTooltip,
|
|
833
869
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
834
870
|
chartElement: I.value,
|
|
835
871
|
position: e.value.userOptions.position,
|
|
836
872
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
837
|
-
isAnnotation:
|
|
873
|
+
isAnnotation: ie.value,
|
|
838
874
|
callbacks: e.value.userOptions.callbacks,
|
|
839
875
|
printScale: e.value.userOptions.print.scale,
|
|
840
876
|
tableDialog: e.value.table.useDialog,
|
|
841
877
|
onToggleFullscreen: Ke,
|
|
842
878
|
onGeneratePdf: i(st),
|
|
843
|
-
onGenerateCsv:
|
|
879
|
+
onGenerateCsv: _e,
|
|
844
880
|
onGenerateImage: i(ut),
|
|
881
|
+
onGenerateSvg: bt,
|
|
845
882
|
onToggleTable: ft,
|
|
846
883
|
onToggleLabels: pt,
|
|
847
884
|
onToggleTooltip: yt,
|
|
848
885
|
onToggleAnnotator: Ae,
|
|
849
|
-
style:
|
|
850
|
-
visibility: i(je) ? i(
|
|
886
|
+
style: ce({
|
|
887
|
+
visibility: i(je) ? i(ke) ? "visible" : "hidden" : "visible"
|
|
851
888
|
})
|
|
852
|
-
},
|
|
853
|
-
|
|
889
|
+
}, wt({ _: 2 }, [
|
|
890
|
+
t.$slots.menuIcon ? {
|
|
854
891
|
name: "menuIcon",
|
|
855
|
-
fn:
|
|
856
|
-
|
|
892
|
+
fn: L(({ isOpen: a, color: o }) => [
|
|
893
|
+
_(t.$slots, "menuIcon", H(J({ isOpen: a, color: o })), void 0, !0)
|
|
857
894
|
]),
|
|
858
895
|
key: "0"
|
|
859
896
|
} : void 0,
|
|
860
|
-
|
|
897
|
+
t.$slots.optionTooltip ? {
|
|
861
898
|
name: "optionTooltip",
|
|
862
|
-
fn:
|
|
863
|
-
|
|
899
|
+
fn: L(() => [
|
|
900
|
+
_(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
864
901
|
]),
|
|
865
902
|
key: "1"
|
|
866
903
|
} : void 0,
|
|
867
|
-
|
|
904
|
+
t.$slots.optionPdf ? {
|
|
868
905
|
name: "optionPdf",
|
|
869
|
-
fn:
|
|
870
|
-
|
|
906
|
+
fn: L(() => [
|
|
907
|
+
_(t.$slots, "optionPdf", {}, void 0, !0)
|
|
871
908
|
]),
|
|
872
909
|
key: "2"
|
|
873
910
|
} : void 0,
|
|
874
|
-
|
|
911
|
+
t.$slots.optionCsv ? {
|
|
875
912
|
name: "optionCsv",
|
|
876
|
-
fn:
|
|
877
|
-
|
|
913
|
+
fn: L(() => [
|
|
914
|
+
_(t.$slots, "optionCsv", {}, void 0, !0)
|
|
878
915
|
]),
|
|
879
916
|
key: "3"
|
|
880
917
|
} : void 0,
|
|
881
|
-
|
|
918
|
+
t.$slots.optionImg ? {
|
|
882
919
|
name: "optionImg",
|
|
883
|
-
fn:
|
|
884
|
-
|
|
920
|
+
fn: L(() => [
|
|
921
|
+
_(t.$slots, "optionImg", {}, void 0, !0)
|
|
885
922
|
]),
|
|
886
923
|
key: "4"
|
|
887
924
|
} : void 0,
|
|
888
|
-
|
|
925
|
+
t.$slots.optionTable ? {
|
|
889
926
|
name: "optionTable",
|
|
890
|
-
fn:
|
|
891
|
-
|
|
927
|
+
fn: L(() => [
|
|
928
|
+
_(t.$slots, "optionTable", {}, void 0, !0)
|
|
892
929
|
]),
|
|
893
930
|
key: "5"
|
|
894
931
|
} : void 0,
|
|
895
|
-
|
|
932
|
+
t.$slots.optionLabels ? {
|
|
896
933
|
name: "optionLabels",
|
|
897
|
-
fn:
|
|
898
|
-
|
|
934
|
+
fn: L(() => [
|
|
935
|
+
_(t.$slots, "optionLabels", {}, void 0, !0)
|
|
899
936
|
]),
|
|
900
937
|
key: "6"
|
|
901
938
|
} : void 0,
|
|
902
|
-
|
|
939
|
+
t.$slots.optionFullscreen ? {
|
|
903
940
|
name: "optionFullscreen",
|
|
904
|
-
fn:
|
|
905
|
-
|
|
941
|
+
fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
942
|
+
_(t.$slots, "optionFullscreen", H(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
906
943
|
]),
|
|
907
944
|
key: "7"
|
|
908
945
|
} : void 0,
|
|
909
|
-
|
|
946
|
+
t.$slots.optionAnnotator ? {
|
|
910
947
|
name: "optionAnnotator",
|
|
911
|
-
fn:
|
|
912
|
-
|
|
948
|
+
fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
949
|
+
_(t.$slots, "optionAnnotator", H(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
913
950
|
]),
|
|
914
951
|
key: "8"
|
|
915
952
|
} : void 0
|
|
916
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
953
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : $("", !0),
|
|
917
954
|
(u(), r("svg", {
|
|
918
955
|
ref_key: "svgRef",
|
|
919
|
-
ref:
|
|
920
|
-
xmlns: i(
|
|
956
|
+
ref: ee,
|
|
957
|
+
xmlns: i(wl),
|
|
921
958
|
class: M({
|
|
922
959
|
"vue-data-ui-fullscreen--on": G.value,
|
|
923
960
|
"vue-data-ui-fulscreen--off": !G.value,
|
|
924
961
|
"vue-data-ui-svg": !0
|
|
925
962
|
}),
|
|
926
963
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
927
|
-
style:
|
|
964
|
+
style: ce(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
|
|
928
965
|
}, [
|
|
929
|
-
|
|
966
|
+
y("g", {
|
|
930
967
|
ref_key: "G",
|
|
931
968
|
ref: Te,
|
|
932
969
|
class: "vue-data-ui-g"
|
|
933
970
|
}, [
|
|
934
|
-
Ve(i(
|
|
935
|
-
|
|
971
|
+
Ve(i(Mt)),
|
|
972
|
+
t.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
936
973
|
key: 0,
|
|
937
974
|
x: 0,
|
|
938
975
|
y: 0,
|
|
@@ -942,106 +979,106 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
942
979
|
pointerEvents: "none"
|
|
943
980
|
}
|
|
944
981
|
}, [
|
|
945
|
-
|
|
946
|
-
], 8,
|
|
947
|
-
|
|
982
|
+
_(t.$slots, "chart-background", {}, void 0, !0)
|
|
983
|
+
], 8, Ul)) : $("", !0),
|
|
984
|
+
y("defs", null, [
|
|
948
985
|
(u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("radialGradient", {
|
|
949
|
-
id: `radial_${
|
|
986
|
+
id: `radial_${p.value}_${o}`
|
|
950
987
|
}, [
|
|
951
|
-
s[4] || (s[4] =
|
|
988
|
+
s[4] || (s[4] = y("stop", {
|
|
952
989
|
offset: "0%",
|
|
953
990
|
"stop-color": "#FFFFFF",
|
|
954
991
|
"stop-opacity": "0"
|
|
955
992
|
}, null, -1)),
|
|
956
|
-
|
|
993
|
+
y("stop", {
|
|
957
994
|
offset: `${(1 - oe.value / dt.value[o]) * 100}%`,
|
|
958
|
-
"stop-color": i(
|
|
995
|
+
"stop-color": i(kl)("#FFFFFF", 0),
|
|
959
996
|
"stop-opacity": "0"
|
|
960
|
-
}, null, 8,
|
|
961
|
-
|
|
997
|
+
}, null, 8, Yl),
|
|
998
|
+
y("stop", {
|
|
962
999
|
offset: `${(1 - oe.value / dt.value[o] / 2) * 100}%`,
|
|
963
1000
|
"stop-color": "#FFFFFF",
|
|
964
1001
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
965
|
-
}, null, 8,
|
|
966
|
-
s[5] || (s[5] =
|
|
1002
|
+
}, null, 8, Wl),
|
|
1003
|
+
s[5] || (s[5] = y("stop", {
|
|
967
1004
|
offset: "100%",
|
|
968
1005
|
"stop-color": "#FFFFFF",
|
|
969
1006
|
"stop-opacity": "0"
|
|
970
1007
|
}, null, -1))
|
|
971
|
-
], 8,
|
|
1008
|
+
], 8, Gl))), 256))
|
|
972
1009
|
]),
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
id: `blur_${
|
|
1010
|
+
y("defs", null, [
|
|
1011
|
+
y("filter", {
|
|
1012
|
+
id: `blur_${p.value}`,
|
|
976
1013
|
x: "-50%",
|
|
977
1014
|
y: "-50%",
|
|
978
1015
|
width: "200%",
|
|
979
1016
|
height: "200%"
|
|
980
1017
|
}, [
|
|
981
|
-
|
|
1018
|
+
y("feGaussianBlur", {
|
|
982
1019
|
in: "SourceGraphic",
|
|
983
1020
|
stdDeviation: 2,
|
|
984
|
-
id: `blur_std_${
|
|
985
|
-
}, null, 8,
|
|
986
|
-
s[6] || (s[6] =
|
|
1021
|
+
id: `blur_std_${p.value}`
|
|
1022
|
+
}, null, 8, ql),
|
|
1023
|
+
s[6] || (s[6] = y("feColorMatrix", {
|
|
987
1024
|
type: "saturate",
|
|
988
1025
|
values: "0"
|
|
989
1026
|
}, null, -1))
|
|
990
|
-
], 8,
|
|
991
|
-
|
|
992
|
-
id: `shadow_${
|
|
1027
|
+
], 8, Xl),
|
|
1028
|
+
y("filter", {
|
|
1029
|
+
id: `shadow_${p.value}`,
|
|
993
1030
|
"color-interpolation-filters": "sRGB"
|
|
994
1031
|
}, [
|
|
995
|
-
|
|
1032
|
+
y("feDropShadow", {
|
|
996
1033
|
dx: "0",
|
|
997
1034
|
dy: "0",
|
|
998
1035
|
stdDeviation: "10",
|
|
999
1036
|
"flood-opacity": "0.5",
|
|
1000
1037
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1001
|
-
}, null, 8,
|
|
1002
|
-
], 8,
|
|
1038
|
+
}, null, 8, Jl)
|
|
1039
|
+
], 8, Hl)
|
|
1003
1040
|
]),
|
|
1004
|
-
|
|
1041
|
+
y("defs", null, [
|
|
1005
1042
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("path", {
|
|
1006
1043
|
key: `path-full-${o}`,
|
|
1007
|
-
id: `path-full-${o}-${
|
|
1044
|
+
id: `path-full-${o}-${p.value}`,
|
|
1008
1045
|
d: a.fullCirclePath,
|
|
1009
1046
|
fill: "none"
|
|
1010
|
-
}, null, 8,
|
|
1047
|
+
}, null, 8, Kl))), 128))
|
|
1011
1048
|
]),
|
|
1012
1049
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1013
|
-
a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((
|
|
1014
|
-
|
|
1050
|
+
a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", null, [
|
|
1051
|
+
y("path", {
|
|
1015
1052
|
class: "vue-ui-donut-arc-path",
|
|
1016
|
-
d:
|
|
1017
|
-
fill:
|
|
1053
|
+
d: l.arcSlice,
|
|
1054
|
+
fill: l.color,
|
|
1018
1055
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1019
1056
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1020
|
-
filter: ht(
|
|
1021
|
-
}, null, 8,
|
|
1022
|
-
]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (
|
|
1023
|
-
|
|
1057
|
+
filter: ht(l, n)
|
|
1058
|
+
}, null, 8, Ql)
|
|
1059
|
+
]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (l, n) => (u(), r("g", null, [
|
|
1060
|
+
y("path", {
|
|
1024
1061
|
class: "vue-ui-donut-arc-path",
|
|
1025
|
-
d:
|
|
1026
|
-
fill:
|
|
1062
|
+
d: l.arcSlice,
|
|
1063
|
+
fill: l.color,
|
|
1027
1064
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1028
1065
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1029
|
-
}, null, 8,
|
|
1066
|
+
}, null, 8, Zl)
|
|
1030
1067
|
]))), 256))
|
|
1031
1068
|
]))), 256)),
|
|
1032
|
-
e.value.style.chart.useGradient ? (u(), r("g",
|
|
1069
|
+
e.value.style.chart.useGradient ? (u(), r("g", jl, [
|
|
1033
1070
|
(u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("g", null, [
|
|
1034
|
-
|
|
1071
|
+
y("path", {
|
|
1035
1072
|
d: a.donut.arcSlice,
|
|
1036
|
-
fill: `url(#radial_${
|
|
1073
|
+
fill: `url(#radial_${p.value}_${o})`,
|
|
1037
1074
|
stroke: "transparent",
|
|
1038
1075
|
"stroke-width": "0"
|
|
1039
|
-
}, null, 8,
|
|
1076
|
+
}, null, 8, ea)
|
|
1040
1077
|
]))), 256))
|
|
1041
|
-
])) :
|
|
1042
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g",
|
|
1078
|
+
])) : $("", !0),
|
|
1079
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", ta, [
|
|
1043
1080
|
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1044
|
-
(u(!0), r(A, null, T(a.donut, (
|
|
1081
|
+
(u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
|
|
1045
1082
|
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1046
1083
|
key: 0,
|
|
1047
1084
|
class: M({ animated: e.value.useCssAnimation }),
|
|
@@ -1051,154 +1088,154 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1051
1088
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
1052
1089
|
dy: e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
|
|
1053
1090
|
}, [
|
|
1054
|
-
|
|
1055
|
-
href: `#path-full-${o}-${
|
|
1091
|
+
y("textPath", {
|
|
1092
|
+
href: `#path-full-${o}-${p.value}`,
|
|
1056
1093
|
startOffset: "50%",
|
|
1057
1094
|
"text-anchor": "middle",
|
|
1058
1095
|
method: "align",
|
|
1059
1096
|
spacing: "auto"
|
|
1060
|
-
},
|
|
1097
|
+
}, D(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
|
|
1061
1098
|
source: a.name,
|
|
1062
1099
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1063
|
-
}) : a.name), 9,
|
|
1064
|
-
], 10,
|
|
1100
|
+
}) : a.name), 9, aa)
|
|
1101
|
+
], 10, la)) : $("", !0)
|
|
1065
1102
|
]))), 256))
|
|
1066
1103
|
]))), 256)) : (u(!0), r(A, { key: 1 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1067
|
-
(u(!0), r(A, null, T(a.donut, (
|
|
1104
|
+
(u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
|
|
1068
1105
|
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1069
1106
|
key: 0,
|
|
1070
1107
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1071
1108
|
x: h.value.width / 2,
|
|
1072
|
-
y:
|
|
1109
|
+
y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1073
1110
|
"text-anchor": "middle",
|
|
1074
1111
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1075
1112
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1076
1113
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1077
|
-
},
|
|
1114
|
+
}, D(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
|
|
1078
1115
|
source: a.name,
|
|
1079
1116
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1080
|
-
}) : a.name), 11,
|
|
1117
|
+
}) : a.name), 11, oa)) : $("", !0)
|
|
1081
1118
|
]))), 256))
|
|
1082
1119
|
]))), 256))
|
|
1083
|
-
])) :
|
|
1084
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g",
|
|
1120
|
+
])) : $("", !0),
|
|
1121
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", sa, [
|
|
1085
1122
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1086
|
-
(u(!0), r(A, null, T(a.donut.filter((
|
|
1087
|
-
filter: ht(
|
|
1123
|
+
(u(!0), r(A, null, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", {
|
|
1124
|
+
filter: ht(l, n)
|
|
1088
1125
|
}, [
|
|
1089
|
-
|
|
1126
|
+
kt(y("text", {
|
|
1090
1127
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1091
|
-
opacity:
|
|
1092
|
-
"text-anchor": i(Q)(
|
|
1128
|
+
opacity: xe(l) ? 1 : 0,
|
|
1129
|
+
"text-anchor": i(Q)(l, !0).anchor,
|
|
1093
1130
|
x: i(Q)(
|
|
1094
|
-
|
|
1131
|
+
l,
|
|
1095
1132
|
!1,
|
|
1096
1133
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1097
1134
|
).x || 0,
|
|
1098
1135
|
y: i(Ee)(
|
|
1099
|
-
|
|
1136
|
+
l,
|
|
1100
1137
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1101
1138
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1102
1139
|
),
|
|
1103
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1140
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1104
1141
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1105
1142
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1106
|
-
},
|
|
1107
|
-
v:
|
|
1143
|
+
}, D(i(O)({
|
|
1144
|
+
v: l.proportion * 100,
|
|
1108
1145
|
s: "%",
|
|
1109
1146
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1110
|
-
})), 11,
|
|
1147
|
+
})), 11, na), [
|
|
1111
1148
|
[
|
|
1112
|
-
|
|
1113
|
-
|
|
1149
|
+
$t,
|
|
1150
|
+
C.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
1114
1151
|
]
|
|
1115
1152
|
]),
|
|
1116
|
-
|
|
1153
|
+
kt(y("text", {
|
|
1117
1154
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1118
|
-
opacity:
|
|
1119
|
-
"text-anchor": i(Q)(
|
|
1155
|
+
opacity: xe(l) ? 1 : 0,
|
|
1156
|
+
"text-anchor": i(Q)(l, !0).anchor,
|
|
1120
1157
|
x: i(Q)(
|
|
1121
|
-
|
|
1158
|
+
l,
|
|
1122
1159
|
!1,
|
|
1123
1160
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1124
1161
|
).x || 0,
|
|
1125
1162
|
y: i(Ee)(
|
|
1126
|
-
|
|
1163
|
+
l,
|
|
1127
1164
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1128
1165
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1129
1166
|
) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1130
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1167
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1131
1168
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1132
1169
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1133
|
-
}, " (" +
|
|
1170
|
+
}, " (" + D(i(ae)(
|
|
1134
1171
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1135
|
-
|
|
1136
|
-
i(
|
|
1172
|
+
l.value,
|
|
1173
|
+
i(O)({
|
|
1137
1174
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1138
|
-
v:
|
|
1175
|
+
v: l.value,
|
|
1139
1176
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1140
1177
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1141
1178
|
}),
|
|
1142
|
-
{ datapoint:
|
|
1143
|
-
)) + ") ", 11,
|
|
1179
|
+
{ datapoint: l, seriesIndex: o, datapointIndex: n }
|
|
1180
|
+
)) + ") ", 11, ra), [
|
|
1144
1181
|
[
|
|
1145
|
-
|
|
1146
|
-
|
|
1182
|
+
$t,
|
|
1183
|
+
C.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1147
1184
|
]
|
|
1148
1185
|
]),
|
|
1149
|
-
|
|
1186
|
+
xe(l) && C.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
|
|
1150
1187
|
key: 0,
|
|
1151
1188
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1152
|
-
"text-anchor": i(Q)(
|
|
1189
|
+
"text-anchor": i(Q)(l, !0).anchor,
|
|
1153
1190
|
x: i(Q)(
|
|
1154
|
-
|
|
1191
|
+
l,
|
|
1155
1192
|
!1,
|
|
1156
1193
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1157
1194
|
).x || 0,
|
|
1158
1195
|
y: i(Ee)(
|
|
1159
|
-
|
|
1196
|
+
l,
|
|
1160
1197
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1161
1198
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
1162
1199
|
),
|
|
1163
|
-
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ?
|
|
1200
|
+
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1164
1201
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1165
1202
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1166
|
-
},
|
|
1203
|
+
}, D(i(ae)(
|
|
1167
1204
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1168
|
-
|
|
1169
|
-
i(
|
|
1205
|
+
l.value,
|
|
1206
|
+
i(O)({
|
|
1170
1207
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1171
|
-
v:
|
|
1208
|
+
v: l.value,
|
|
1172
1209
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1173
1210
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1174
1211
|
}),
|
|
1175
|
-
{ datapoint:
|
|
1176
|
-
)), 11,
|
|
1177
|
-
], 8,
|
|
1212
|
+
{ datapoint: l, seriesIndex: o, datapointIndex: n }
|
|
1213
|
+
)), 11, ia)) : $("", !0)
|
|
1214
|
+
], 8, ua))), 256))
|
|
1178
1215
|
]))), 256))
|
|
1179
|
-
])) :
|
|
1216
|
+
])) : $("", !0),
|
|
1180
1217
|
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1181
|
-
(u(!0), r(A, null, T(a.donut, (
|
|
1182
|
-
|
|
1183
|
-
d:
|
|
1184
|
-
fill:
|
|
1185
|
-
onMouseenter: (v) =>
|
|
1186
|
-
datapoint:
|
|
1187
|
-
seriesIndex:
|
|
1218
|
+
(u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
|
|
1219
|
+
y("path", {
|
|
1220
|
+
d: l.arcSlice,
|
|
1221
|
+
fill: ye.value === l.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1222
|
+
onMouseenter: (v) => qt({
|
|
1223
|
+
datapoint: l,
|
|
1224
|
+
seriesIndex: l.seriesIndex
|
|
1188
1225
|
}),
|
|
1189
|
-
onClick: (v) =>
|
|
1190
|
-
onMouseleave: (v) =>
|
|
1191
|
-
}, null, 40,
|
|
1226
|
+
onClick: (v) => Yt({ datapoint: l, index: n, seriesIndex: l.seriesIndex }),
|
|
1227
|
+
onMouseleave: (v) => Xt({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1228
|
+
}, null, 40, da)
|
|
1192
1229
|
]))), 256))
|
|
1193
1230
|
]))), 256)),
|
|
1194
|
-
|
|
1231
|
+
_(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
1195
1232
|
], 512)
|
|
1196
|
-
], 14,
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
])) :
|
|
1200
|
-
Ve(i(
|
|
1201
|
-
show:
|
|
1233
|
+
], 14, Rl)),
|
|
1234
|
+
t.$slots.watermark ? (u(), r("div", va, [
|
|
1235
|
+
_(t.$slots, "watermark", H(J({ isPrinting: i(at) || i(ot) })), void 0, !0)
|
|
1236
|
+
])) : $("", !0),
|
|
1237
|
+
Ve(i(It), {
|
|
1238
|
+
show: C.value.showTooltip && fe.value,
|
|
1202
1239
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1203
1240
|
color: e.value.style.chart.tooltip.color,
|
|
1204
1241
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1209,7 +1246,7 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1209
1246
|
position: e.value.style.chart.tooltip.position,
|
|
1210
1247
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1211
1248
|
parent: I.value,
|
|
1212
|
-
content:
|
|
1249
|
+
content: pe.value,
|
|
1213
1250
|
isFullscreen: G.value,
|
|
1214
1251
|
isCustom: i(_t)(e.value.style.chart.tooltip.customFormat),
|
|
1215
1252
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1217,99 +1254,85 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1217
1254
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1218
1255
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1219
1256
|
}, {
|
|
1220
|
-
"tooltip-before":
|
|
1221
|
-
|
|
1257
|
+
"tooltip-before": L(() => [
|
|
1258
|
+
_(t.$slots, "tooltip-before", H(J({ ...Le.value })), void 0, !0)
|
|
1222
1259
|
]),
|
|
1223
|
-
"tooltip-after":
|
|
1224
|
-
|
|
1260
|
+
"tooltip-after": L(() => [
|
|
1261
|
+
_(t.$slots, "tooltip-after", H(J({ ...Le.value })), void 0, !0)
|
|
1225
1262
|
]),
|
|
1226
1263
|
_: 3
|
|
1227
1264
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1228
|
-
|
|
1229
|
-
id: `legend-bottom-${
|
|
1230
|
-
}, null, 8,
|
|
1231
|
-
Je.value ? (u(), B(
|
|
1265
|
+
y("div", {
|
|
1266
|
+
id: `legend-bottom-${p.value}`
|
|
1267
|
+
}, null, 8, ca),
|
|
1268
|
+
Je.value ? (u(), B(vl, {
|
|
1232
1269
|
key: 5,
|
|
1233
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1270
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
1234
1271
|
}, [
|
|
1235
1272
|
e.value.style.chart.legend.show ? (u(), r("div", {
|
|
1236
1273
|
key: 0,
|
|
1237
1274
|
ref_key: "chartLegend",
|
|
1238
|
-
ref:
|
|
1239
|
-
class: M({ "vue-ui-nested-donuts-legend":
|
|
1275
|
+
ref: ge,
|
|
1276
|
+
class: M({ "vue-ui-nested-donuts-legend": ne.value.length > 1 })
|
|
1240
1277
|
}, [
|
|
1241
|
-
(u(!0), r(A, null, T(
|
|
1278
|
+
(u(!0), r(A, null, T(ne.value, (a, o) => (u(), B(zl, {
|
|
1242
1279
|
key: `legend_${o}_${He.value}`,
|
|
1243
1280
|
legendSet: a,
|
|
1244
|
-
config:
|
|
1245
|
-
onClickMarker: s[0] || (s[0] = ({ legend:
|
|
1281
|
+
config: Ht.value,
|
|
1282
|
+
onClickMarker: s[0] || (s[0] = ({ legend: l }) => Ce(l))
|
|
1246
1283
|
}, {
|
|
1247
|
-
legendTitle:
|
|
1248
|
-
|
|
1284
|
+
legendTitle: L(({ titleSet: l }) => [
|
|
1285
|
+
l[0] && l[0].arcOf ? (u(), r("div", ha, D(l[0].arcOf), 1)) : $("", !0)
|
|
1249
1286
|
]),
|
|
1250
|
-
item:
|
|
1251
|
-
|
|
1252
|
-
onClick: (v) =>
|
|
1253
|
-
style:
|
|
1254
|
-
},
|
|
1255
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1256
|
-
t.value,
|
|
1257
|
-
i(S)({
|
|
1258
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1259
|
-
v: t.value,
|
|
1260
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1261
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1262
|
-
}),
|
|
1263
|
-
{ datapoint: t, seriesIndex: n }
|
|
1264
|
-
) : "") + " " + F(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(S)({
|
|
1265
|
-
v: t.value / t.total * 100,
|
|
1266
|
-
s: "%",
|
|
1267
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
1268
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ua)
|
|
1287
|
+
item: L(({ legend: l, index: n }) => [
|
|
1288
|
+
y("div", {
|
|
1289
|
+
onClick: (v) => Ce(l),
|
|
1290
|
+
style: ce(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
|
|
1291
|
+
}, D(l.display), 13, fa)
|
|
1269
1292
|
]),
|
|
1270
1293
|
_: 1
|
|
1271
1294
|
}, 8, ["legendSet", "config"]))), 128))
|
|
1272
|
-
], 2)) :
|
|
1273
|
-
], 8, ["to"])) :
|
|
1274
|
-
e.value.style.chart.legend.show ?
|
|
1295
|
+
], 2)) : $("", !0)
|
|
1296
|
+
], 8, ["to"])) : $("", !0),
|
|
1297
|
+
e.value.style.chart.legend.show ? $("", !0) : (u(), r("div", {
|
|
1275
1298
|
key: 6,
|
|
1276
1299
|
ref_key: "chartLegend",
|
|
1277
|
-
ref:
|
|
1300
|
+
ref: ge
|
|
1278
1301
|
}, [
|
|
1279
|
-
|
|
1302
|
+
_(t.$slots, "legend", { legend: ne.value }, void 0, !0)
|
|
1280
1303
|
], 512)),
|
|
1281
|
-
|
|
1304
|
+
t.$slots.source ? (u(), r("div", {
|
|
1282
1305
|
key: 7,
|
|
1283
1306
|
ref_key: "source",
|
|
1284
1307
|
ref: Ye,
|
|
1285
1308
|
dir: "auto"
|
|
1286
1309
|
}, [
|
|
1287
|
-
|
|
1288
|
-
], 512)) :
|
|
1289
|
-
|
|
1310
|
+
_(t.$slots, "source", {}, void 0, !0)
|
|
1311
|
+
], 512)) : $("", !0),
|
|
1312
|
+
he.value && e.value.userOptions.buttons.table ? (u(), B(cl(te.value.component), hl({ key: 8 }, te.value.props, {
|
|
1290
1313
|
ref_key: "tableUnit",
|
|
1291
1314
|
ref: j,
|
|
1292
|
-
onClose:
|
|
1293
|
-
}),
|
|
1294
|
-
content:
|
|
1295
|
-
(u(), B(i(
|
|
1315
|
+
onClose: gt
|
|
1316
|
+
}), wt({
|
|
1317
|
+
content: L(() => [
|
|
1318
|
+
(u(), B(i(Pt), {
|
|
1296
1319
|
key: `table_${qe.value}`,
|
|
1297
|
-
colNames:
|
|
1298
|
-
head:
|
|
1299
|
-
body:
|
|
1300
|
-
config:
|
|
1301
|
-
title: e.value.table.useDialog ? "" :
|
|
1320
|
+
colNames: re.value.colNames,
|
|
1321
|
+
head: re.value.head,
|
|
1322
|
+
body: re.value.body,
|
|
1323
|
+
config: re.value.config,
|
|
1324
|
+
title: e.value.table.useDialog ? "" : te.value.title,
|
|
1302
1325
|
withCloseButton: !e.value.table.useDialog,
|
|
1303
|
-
onClose:
|
|
1326
|
+
onClose: gt
|
|
1304
1327
|
}, {
|
|
1305
|
-
th:
|
|
1306
|
-
|
|
1328
|
+
th: L(({ th: a }) => [
|
|
1329
|
+
y("div", {
|
|
1307
1330
|
innerHTML: a,
|
|
1308
1331
|
style: { display: "flex", "align-items": "center" }
|
|
1309
|
-
}, null, 8,
|
|
1332
|
+
}, null, 8, pa)
|
|
1310
1333
|
]),
|
|
1311
|
-
td:
|
|
1312
|
-
|
|
1334
|
+
td: L(({ td: a }) => [
|
|
1335
|
+
Ct(D(a.name || a), 1)
|
|
1313
1336
|
]),
|
|
1314
1337
|
_: 1
|
|
1315
1338
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1318,32 +1341,32 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
|
|
|
1318
1341
|
}, [
|
|
1319
1342
|
e.value.table.useDialog ? {
|
|
1320
1343
|
name: "title",
|
|
1321
|
-
fn:
|
|
1322
|
-
|
|
1344
|
+
fn: L(() => [
|
|
1345
|
+
Ct(D(te.value.title), 1)
|
|
1323
1346
|
]),
|
|
1324
1347
|
key: "0"
|
|
1325
1348
|
} : void 0,
|
|
1326
1349
|
e.value.table.useDialog ? {
|
|
1327
1350
|
name: "actions",
|
|
1328
|
-
fn:
|
|
1329
|
-
|
|
1351
|
+
fn: L(() => [
|
|
1352
|
+
y("button", {
|
|
1330
1353
|
tabindex: "0",
|
|
1331
1354
|
class: "vue-ui-user-options-button",
|
|
1332
|
-
onClick: s[1] || (s[1] = (a) =>
|
|
1355
|
+
onClick: s[1] || (s[1] = (a) => _e(e.value.userOptions.callbacks.csv))
|
|
1333
1356
|
}, [
|
|
1334
1357
|
Ve(i(Nt), {
|
|
1335
1358
|
name: "excel",
|
|
1336
|
-
stroke:
|
|
1359
|
+
stroke: te.value.props.color
|
|
1337
1360
|
}, null, 8, ["stroke"])
|
|
1338
1361
|
])
|
|
1339
1362
|
]),
|
|
1340
1363
|
key: "1"
|
|
1341
1364
|
} : void 0
|
|
1342
|
-
]), 1040)) :
|
|
1343
|
-
i(
|
|
1344
|
-
], 46,
|
|
1365
|
+
]), 1040)) : $("", !0),
|
|
1366
|
+
i(me) ? (u(), B(Sl, { key: 9 })) : $("", !0)
|
|
1367
|
+
], 46, Bl));
|
|
1345
1368
|
}
|
|
1346
|
-
},
|
|
1369
|
+
}, Fa = /* @__PURE__ */ Ml(ya, [["__scopeId", "data-v-f58dd2ed"]]);
|
|
1347
1370
|
export {
|
|
1348
|
-
|
|
1371
|
+
Fa as default
|
|
1349
1372
|
};
|