vue-data-ui 2.4.49 → 2.4.51
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/README.md +12 -0
- package/dist/{Arrow-CTukks_V.cjs → Arrow-2a_SwBgz.cjs} +1 -1
- package/dist/{Arrow-Q0cOmO5p.js → Arrow-BUz63pb2.js} +1 -1
- package/dist/{BaseIcon-2ZD3jgGz.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
- package/dist/{BaseIcon-CaYP30Aq.js → BaseIcon-CmiukQBl.js} +1 -1
- package/dist/{DataTable-CO5C8Cmb.js → DataTable-DGf6RrOJ.js} +2 -2
- package/dist/{DataTable-kMUhutQ4.cjs → DataTable-G3ICK-5h.cjs} +1 -1
- package/dist/{Legend-FZN9UHoI.js → Legend-BLaZxMge.js} +1 -1
- package/dist/{Legend-DPHcmrzd.cjs → Legend-BiuPlEMg.cjs} +1 -1
- package/dist/{PackageVersion-rnWHRWGI.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
- package/dist/{PackageVersion-DYk2hOG1.js → PackageVersion-CxJghxYD.js} +1 -1
- package/dist/{PenAndPaper-BQl9-uX0.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
- package/dist/{PenAndPaper-BfgS_5ux.js → PenAndPaper-ZdZEumki.js} +3 -3
- package/dist/{Shape-BqkMzXqo.js → Shape-DIKzzpFm.js} +1 -1
- package/dist/{Shape-BblkpCyL.cjs → Shape-yducHWd0.cjs} +1 -1
- package/dist/{Slicer-yEeqKUDF.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
- package/dist/{Slicer-DlgqsI5C.js → Slicer-Cxdl3cDt.js} +2 -2
- package/dist/{Title-5Vedk01J.cjs → Title-Bk_55doC.cjs} +1 -1
- package/dist/{Title-DED-PQ7X.js → Title-aSAft5dl.js} +1 -1
- package/dist/{Tooltip-DjCKBAC4.cjs → Tooltip-G7ENx87_.cjs} +1 -1
- package/dist/{Tooltip-CHseiJu8.js → Tooltip-smutPF--.js} +1 -1
- package/dist/{index-igxqCP2w.js → index-BbPeL8Gp.js} +5 -1
- package/dist/index-DhDYBLBe.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -1
- package/dist/types/vue-data-ui.d.ts +5 -1
- package/dist/{useNestedProp-CSVnZVwZ.js → useNestedProp-BN8claGG.js} +1 -1
- package/dist/{useNestedProp-CwpqC_aE.cjs → useNestedProp-BphUExEh.cjs} +1 -1
- package/dist/{usePrinter-DVgxBO4o.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
- package/dist/{usePrinter-CnZYDQXB.js → usePrinter-DaybDVqP.js} +1 -1
- package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
- package/dist/useUserOptionState-BgepsfED.cjs +1 -0
- package/dist/{vue-data-ui-BrRTkOqu.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
- package/dist/{vue-data-ui-B--WWkUM.js → vue-data-ui-Ckbp-yIf.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DUgumRsg.cjs +19 -0
- package/dist/{vue-ui-3d-bar-OzzLYbUl.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
- package/dist/{vue-ui-accordion-lF7yVkiT.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
- package/dist/{vue-ui-accordion-CRVWlHxs.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-5Vj8AtW1.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
- package/dist/{vue-ui-annotator-BmO78L3H.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
- package/dist/{vue-ui-annotator-D8Hx1BFF.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
- package/dist/{vue-ui-bullet-DwFD41hN.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
- package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
- package/dist/{vue-ui-candlestick-By609gwn.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
- package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
- package/dist/{vue-ui-carousel-table-wwMoteEN.js → vue-ui-carousel-table-B6zgTL-W.js} +160 -154
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +1 -0
- package/dist/vue-ui-chestnut-C_N7EbjQ.cjs +6 -0
- package/dist/{vue-ui-chestnut-hqorA5EW.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
- package/dist/{vue-ui-cursor-BCg5VZUb.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-GSkn7N7Z.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
- package/dist/{vue-ui-dashboard-Bkm9bcAc.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DIoYWyXB.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
- package/dist/{vue-ui-digits-niqTltAv.js → vue-ui-digits-BEWCnojc.js} +2 -2
- package/dist/{vue-ui-digits-CpBBTAI9.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-XQp6R0e_.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
- package/dist/{vue-ui-donut-DfufBrkk.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DSS8sHHU.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
- package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
- package/dist/{vue-ui-flow-BBNuPVgI.js → vue-ui-flow-hD0F6mTK.js} +164 -158
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
- package/dist/{vue-ui-funnel-BDGggRXE.js → vue-ui-funnel-hcbE4yky.js} +178 -172
- package/dist/{vue-ui-galaxy-6Odi2CwM.js → vue-ui-galaxy-ByKjxVWV.js} +187 -181
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +1 -0
- package/dist/vue-ui-gauge-BFA_unjg.cjs +1 -0
- package/dist/{vue-ui-gauge-DeYvNVnR.js → vue-ui-gauge-PGirbe6O.js} +220 -214
- package/dist/{vue-ui-gizmo-DXQt_8D0.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BcAr2dTN.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
- package/dist/{vue-ui-heatmap-Btm1mK6D.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
- package/dist/{vue-ui-history-plot-OY6N31Ka.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
- package/dist/{vue-ui-kpi-CQIbWQMk.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
- package/dist/{vue-ui-kpi-D5oNUDVm.js → vue-ui-kpi-DjC68pSz.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjqV22Co.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
- package/dist/{vue-ui-mini-loader-ByDKGMAp.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
- package/dist/{vue-ui-molecule-FsLf3YTj.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
- package/dist/{vue-ui-mood-radar-31BX-GNG.js → vue-ui-mood-radar-Ca9wPZpJ.js} +205 -199
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BMJW2oHk.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
- package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
- package/dist/{vue-ui-onion-BUpGgnWA.js → vue-ui-onion-B-PXxNu6.js} +198 -192
- package/dist/vue-ui-onion-B2ioudP5.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-9I00rQEM.js → vue-ui-parallel-coordinate-plot-ByM3So9k.js} +236 -230
- package/dist/vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs +8 -0
- package/dist/{vue-ui-quadrant-CEmoMAL7.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-T_oeRTqY.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
- package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
- package/dist/{vue-ui-radar-DG_Zir8w.js → vue-ui-radar-BKpD9xDr.js} +256 -250
- package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
- package/dist/{vue-ui-rating-Juprijdi.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
- package/dist/{vue-ui-rating-gswAA28b.js → vue-ui-rating-DQRuqev5.js} +2 -2
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +1 -0
- package/dist/vue-ui-relation-circle-nZ2nBpWX.js +498 -0
- package/dist/vue-ui-rings-B7JzZ3ub.cjs +2 -0
- package/dist/{vue-ui-rings-D3g-ORch.js → vue-ui-rings-C1PV0873.js} +177 -172
- package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
- package/dist/{vue-ui-scatter-DBO-XViT.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
- package/dist/{vue-ui-screenshot-3MDyr6v3.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
- package/dist/{vue-ui-screenshot-K0a-DVD6.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
- package/dist/{vue-ui-skeleton-CWjNNx-k.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
- package/dist/{vue-ui-skeleton-DUNkS05l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cbqg-N-L.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
- package/dist/{vue-ui-smiley-MwX1c6qK.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
- package/dist/{vue-ui-spark-trend-CN5JUPhn.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D9eWTtbE.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
- package/dist/{vue-ui-sparkbar-IphZ8jXh.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CPF7YNDd.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B29V7ZTv.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BRMGqR9Z.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BJTgOWF5.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-rvYaVHmw.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BI9jqI0h.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DX79otAB.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DuollcwK.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-vP28A6AT.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
- package/dist/{vue-ui-stackbar-DnJEgIaA.js → vue-ui-stackbar-BBYnF8qm.js} +367 -361
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +6 -0
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DqcHBwd_.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
- package/dist/{vue-ui-table-BMJ0I5nr.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
- package/dist/{vue-ui-table-D8cgqIJl.js → vue-ui-table-CsEajH9S.js} +1 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +1 -0
- package/dist/vue-ui-table-heatmap-CubRipoB.js +262 -0
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-B_Po0RuC.js → vue-ui-table-sparkline-YV8DUOqh.js} +256 -239
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
- package/dist/{vue-ui-thermometer-C6nfW6uY.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
- package/dist/{vue-ui-timer-ldINTqND.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
- package/dist/{vue-ui-timer-CfwmMRdZ.js → vue-ui-timer-DvE_nqd9.js} +5 -5
- package/dist/vue-ui-tiremarks-CCrkDgjX.js +323 -0
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +1 -0
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +1 -0
- package/dist/{vue-ui-treemap-CwMnkcOi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
- package/dist/{vue-ui-vertical-bar-BZR4YOLh.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
- package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
- package/dist/{vue-ui-waffle-D2BccJmB.js → vue-ui-waffle-CaYNz-Kd.js} +316 -310
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +1 -0
- package/dist/vue-ui-wheel-BRR2rGou.js +305 -0
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +1 -0
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DiG8DHOr.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
- package/dist/{vue-ui-xy-DicLnkBA.js → vue-ui-xy-CXoWP8bh.js} +708 -697
- package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-D6CYL9A8.js → vue-ui-xy-canvas-D7MrUJj7.js} +334 -328
- package/dist/vue-ui-xy-canvas-DWvIvSry.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-BHQZE19X.cjs +0 -9
- package/dist/vue-ui-3d-bar-BGVLnjCh.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Cv0Rddsx.cjs +0 -1
- package/dist/vue-ui-bullet-C0Q2Vs5p.cjs +0 -34
- package/dist/vue-ui-candlestick-C7kRHFF3.cjs +0 -2
- package/dist/vue-ui-carousel-table-1_Hy8sGL.cjs +0 -1
- package/dist/vue-ui-chestnut-D3LGylRp.cjs +0 -6
- package/dist/vue-ui-donut-CQEOtlxM.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Dg_XJyX8.cjs +0 -1
- package/dist/vue-ui-dumbbell-RAkNYRoJ.cjs +0 -9
- package/dist/vue-ui-flow-BUmSGSmR.cjs +0 -1
- package/dist/vue-ui-funnel-B9HR0owO.cjs +0 -1
- package/dist/vue-ui-galaxy-DmsMWB1a.cjs +0 -1
- package/dist/vue-ui-gauge-Dvv0v56Z.cjs +0 -1
- package/dist/vue-ui-heatmap-DZ02dS5q.cjs +0 -1
- package/dist/vue-ui-history-plot-DPQWcN0P.cjs +0 -1
- package/dist/vue-ui-molecule-C8O_ViVy.cjs +0 -1
- package/dist/vue-ui-mood-radar-4u98wGWl.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BPc_OBoe.cjs +0 -17
- package/dist/vue-ui-onion-IhkIHn1A.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-DzjggyLA.cjs +0 -8
- package/dist/vue-ui-quadrant-EZqQ-7Ev.cjs +0 -1
- package/dist/vue-ui-quick-chart-BKUUR-A1.cjs +0 -15
- package/dist/vue-ui-radar-QBwo6ybW.cjs +0 -1
- package/dist/vue-ui-relation-circle-BWX8zrfH.cjs +0 -1
- package/dist/vue-ui-relation-circle-DtnXrnOP.js +0 -492
- package/dist/vue-ui-rings-Damuv7g9.cjs +0 -2
- package/dist/vue-ui-scatter-RUeAe7Sx.cjs +0 -1
- package/dist/vue-ui-stackbar-BumFmZZF.cjs +0 -6
- package/dist/vue-ui-strip-plot-DupREfRd.cjs +0 -1
- package/dist/vue-ui-table-heatmap-D43pTFli.cjs +0 -1
- package/dist/vue-ui-table-heatmap-D4qeClXn.js +0 -256
- package/dist/vue-ui-table-sparkline-B7OPOium.cjs +0 -1
- package/dist/vue-ui-thermometer-CaV3JF3h.cjs +0 -1
- package/dist/vue-ui-tiremarks-BlyxL_IU.cjs +0 -1
- package/dist/vue-ui-tiremarks-iNKMnu3P.js +0 -317
- package/dist/vue-ui-treemap-YdRDlSHA.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Bji3-X8i.cjs +0 -4
- package/dist/vue-ui-waffle-rO_LJaHR.cjs +0 -1
- package/dist/vue-ui-wheel-BTrpdV-C.cjs +0 -1
- package/dist/vue-ui-wheel-GqWFopE1.js +0 -299
- package/dist/vue-ui-word-cloud-DD-pKUen.cjs +0 -1
- package/dist/vue-ui-xy-C32KNdyx.cjs +0 -3
- package/dist/vue-ui-xy-canvas-9e630nJX.cjs +0 -9
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { computed as g, ref as i, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { computed as g, ref as i, watch as Ue, onMounted as at, onBeforeUnmount as ot, openBlock as u, createElementBlock as n, normalizeClass as P, normalizeStyle as Q, unref as r, createBlock as D, createCommentVNode as v, createSlots as st, withCtx as m, renderSlot as k, normalizeProps as R, guardReactiveProps as E, createVNode as Be, createElementVNode as y, Fragment as _, renderList as T, toDisplayString as N, createTextVNode as Z, nextTick as ut, pushScopeId as nt, popScopeId as rt } from "vue";
|
|
2
|
+
import { u as it, c as dt, t as ct, a as vt, p as j, o as ft, e as M, b as ht, J as Re, d as pt, m as Ee, f as x, X as yt, s as Ge, L as bt, k as U, n as ie, i as G, x as Ye, y as gt, q as mt, r as kt } from "./index-BbPeL8Gp.js";
|
|
3
|
+
import { t as wt, u as $t } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Lt } from "./Title-aSAft5dl.js";
|
|
5
|
+
import { u as _t, U as xt } from "./usePrinter-DaybDVqP.js";
|
|
6
|
+
import { D as Ct } from "./DataTable-DGf6RrOJ.js";
|
|
7
|
+
import { _ as Ft } from "./Tooltip-smutPF--.js";
|
|
8
|
+
import { L as Tt } from "./Legend-BLaZxMge.js";
|
|
9
|
+
import St from "./vue-ui-skeleton-Bniq21d9.js";
|
|
10
|
+
import Nt from "./vue-ui-accordion-5d5iVpr7.js";
|
|
11
|
+
import { u as Xe } from "./useNestedProp-BN8claGG.js";
|
|
12
|
+
import { _ as It } from "./PackageVersion-CxJghxYD.js";
|
|
13
|
+
import { P as Ot } from "./PenAndPaper-ZdZEumki.js";
|
|
14
|
+
import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const de = (B) => (nt("data-v-5dacef14"), B = B(), rt(), B), Dt = ["id"], zt = ["xmlns", "viewBox"], Vt = ["id"], Mt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
|
|
16
17
|
offset: "0%",
|
|
17
18
|
"stop-color": "#FFFFFF",
|
|
18
19
|
"stop-opacity": "0"
|
|
19
|
-
}, null, -1)),
|
|
20
|
+
}, null, -1)), Ut = ["offset", "stop-color"], Bt = ["offset", "stop-opacity"], Rt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
|
|
20
21
|
offset: "100%",
|
|
21
22
|
"stop-color": "#FFFFFF",
|
|
22
23
|
"stop-opacity": "0"
|
|
23
|
-
}, null, -1)),
|
|
24
|
+
}, null, -1)), Et = ["id"], Gt = ["id"], Yt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("feColorMatrix", {
|
|
24
25
|
type: "saturate",
|
|
25
26
|
values: "0"
|
|
26
|
-
}, null, -1)),
|
|
27
|
+
}, null, -1)), Xt = ["id"], Wt = ["flood-color"], Ht = ["d", "fill", "stroke", "stroke-width", "filter"], qt = { key: 0 }, Jt = ["d", "fill"], Kt = { key: 1 }, Qt = ["x", "y", "font-size", "font-weight", "fill"], Zt = { key: 2 }, jt = ["filter"], el = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], tl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ll = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], al = ["d", "fill", "onMouseenter", "onClick"], ol = {
|
|
27
28
|
key: 5,
|
|
28
29
|
class: "vue-data-ui-watermark"
|
|
29
|
-
},
|
|
30
|
+
}, sl = {
|
|
30
31
|
key: 0,
|
|
31
32
|
class: "vue-ui-nested-donuts-legend-title"
|
|
32
|
-
},
|
|
33
|
+
}, ul = ["onClick"], nl = ["innerHTML"], rl = {
|
|
33
34
|
__name: "vue-ui-nested-donuts",
|
|
34
35
|
props: {
|
|
35
36
|
config: {
|
|
@@ -46,60 +47,60 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
emits: ["selectLegend", "selectDatapoint"],
|
|
49
|
-
setup(
|
|
50
|
-
const I =
|
|
51
|
-
function
|
|
50
|
+
setup(B, { expose: We, emit: ce }) {
|
|
51
|
+
const I = B, { vue_ui_nested_donuts: He } = it(), Y = g(() => !!I.dataset && I.dataset.length), w = i(dt()), ee = i(!1), te = i(""), qe = i(null), ve = i(0), z = i(null), fe = i(null), le = i(null), he = i(null), pe = i(null), ye = i(0), be = i(0), ge = i(0), V = i(!1);
|
|
52
|
+
function Je(t) {
|
|
52
53
|
V.value = t, ve.value += 1;
|
|
53
54
|
}
|
|
54
55
|
const e = g({
|
|
55
|
-
get: () =>
|
|
56
|
+
get: () => $e(),
|
|
56
57
|
set: (t) => t
|
|
57
|
-
});
|
|
58
|
-
function
|
|
59
|
-
const t =
|
|
58
|
+
}), { userOptionsVisible: me, setUserOptionsVisibility: ke, keepUserOptionState: we } = At({ config: e.value });
|
|
59
|
+
function $e() {
|
|
60
|
+
const t = Xe({
|
|
60
61
|
userConfig: I.config,
|
|
61
|
-
defaultConfig:
|
|
62
|
+
defaultConfig: He
|
|
62
63
|
});
|
|
63
64
|
return t.theme ? {
|
|
64
|
-
...
|
|
65
|
-
userConfig:
|
|
65
|
+
...Xe({
|
|
66
|
+
userConfig: ct.vue_ui_nested_donuts[t.theme] || I.config,
|
|
66
67
|
defaultConfig: t
|
|
67
68
|
}),
|
|
68
|
-
customPalette:
|
|
69
|
+
customPalette: vt[t.theme] || j
|
|
69
70
|
} : t;
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
-
e.value =
|
|
72
|
+
Ue(() => I.config, (t) => {
|
|
73
|
+
e.value = $e(), Le(), ye.value += 1, be.value += 1, ge.value += 1;
|
|
73
74
|
}, { deep: !0 });
|
|
74
75
|
const X = i(null);
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
at(() => {
|
|
77
|
+
Le();
|
|
77
78
|
});
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
79
|
+
function Le() {
|
|
80
|
+
if (ft(I.dataset) && M({
|
|
80
81
|
componentName: "VueUiNestedDonuts",
|
|
81
82
|
type: "dataset"
|
|
82
83
|
}), e.value.responsive) {
|
|
83
|
-
const t =
|
|
84
|
-
const { width:
|
|
84
|
+
const t = wt(() => {
|
|
85
|
+
const { width: s, height: a } = $t({
|
|
85
86
|
chart: z.value,
|
|
86
87
|
title: e.value.style.chart.title.text ? fe.value : null,
|
|
87
|
-
legend: e.value.style.chart.legend.show ?
|
|
88
|
+
legend: e.value.style.chart.legend.show ? le.value : null,
|
|
88
89
|
source: he.value,
|
|
89
|
-
noTitle:
|
|
90
|
+
noTitle: pe.value
|
|
90
91
|
});
|
|
91
|
-
h.value.width =
|
|
92
|
+
h.value.width = s, h.value.height = a;
|
|
92
93
|
});
|
|
93
94
|
X.value = new ResizeObserver(t), X.value.observe(z.value.parentNode);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
+
ot(() => {
|
|
97
98
|
X.value && X.value.disconnect();
|
|
98
99
|
});
|
|
99
|
-
const { isPrinting:
|
|
100
|
+
const { isPrinting: _e, isImaging: xe, generatePdf: Ce, generateImage: Fe } = _t({
|
|
100
101
|
elementId: `nested_donuts_${w.value}`,
|
|
101
102
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
102
|
-
}),
|
|
103
|
+
}), Ke = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = g(() => ht(e.value.customPalette)), $ = i({
|
|
103
104
|
dataLabels: {
|
|
104
105
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
105
106
|
},
|
|
@@ -109,24 +110,24 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
109
110
|
height: 512,
|
|
110
111
|
width: 512
|
|
111
112
|
});
|
|
112
|
-
function
|
|
113
|
-
ce("selectDatapoint", { datapoint: t, index:
|
|
113
|
+
function Ze({ datapoint: t, index: s }) {
|
|
114
|
+
ce("selectDatapoint", { datapoint: t, index: s });
|
|
114
115
|
}
|
|
115
|
-
const
|
|
116
|
+
const p = i([]), C = g(() => (I.dataset.forEach((t, s) => {
|
|
116
117
|
[null, void 0].includes(t.name) && M({
|
|
117
118
|
componentName: "VueUiNestedDonuts",
|
|
118
119
|
type: "datasetSerieAttribute",
|
|
119
120
|
property: "name",
|
|
120
|
-
index:
|
|
121
|
+
index: s
|
|
121
122
|
}), [null, void 0].includes(t.series) ? M({
|
|
122
123
|
componentName: "VueUiNestedDonuts",
|
|
123
124
|
type: "datasetSerieAttribute",
|
|
124
125
|
property: "series",
|
|
125
|
-
index:
|
|
126
|
+
index: s
|
|
126
127
|
}) : t.series.length === 0 ? M({
|
|
127
128
|
componentName: "VueUiNestedDonuts",
|
|
128
129
|
type: "datasetAttributeEmpty",
|
|
129
|
-
property: `series at index ${
|
|
130
|
+
property: `series at index ${s}`
|
|
130
131
|
}) : t.series.forEach((a, o) => {
|
|
131
132
|
[null, void 0].includes(a.name) && M({
|
|
132
133
|
componentName: "VueUiNestedDonuts",
|
|
@@ -142,89 +143,89 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
142
143
|
key: "serie"
|
|
143
144
|
});
|
|
144
145
|
});
|
|
145
|
-
}), I.dataset.map((t,
|
|
146
|
+
}), I.dataset.map((t, s) => ({
|
|
146
147
|
...t,
|
|
147
|
-
total: t.series.filter((a) => !
|
|
148
|
-
datasetIndex:
|
|
149
|
-
id: `${w.value}_${
|
|
148
|
+
total: t.series.filter((a) => !p.value.includes(a.id)).map((a) => Re(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
|
|
149
|
+
datasetIndex: s,
|
|
150
|
+
id: `${w.value}_${s}`,
|
|
150
151
|
series: t.series.map((a, o) => ({
|
|
151
152
|
name: a.name,
|
|
152
153
|
arcOf: t.name,
|
|
153
|
-
arcOfId: `${w.value}_${
|
|
154
|
-
id: `${w.value}_${
|
|
154
|
+
arcOfId: `${w.value}_${s}`,
|
|
155
|
+
id: `${w.value}_${s}_${o}`,
|
|
155
156
|
seriesIndex: o,
|
|
156
|
-
datasetIndex:
|
|
157
|
-
color:
|
|
158
|
-
value:
|
|
157
|
+
datasetIndex: s,
|
|
158
|
+
color: pt(a.color) || Qe.value[o] || j[o] || j[o % j.length],
|
|
159
|
+
value: Re(a.values).reduce((l, d) => l + d, 0),
|
|
159
160
|
absoluteValues: a.values || []
|
|
160
161
|
}))
|
|
161
|
-
})))), F = g(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)),
|
|
162
|
-
const a = t.series.filter((o) => !
|
|
162
|
+
})))), F = g(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Te = g(() => [...C.value].map((t, s) => {
|
|
163
|
+
const a = t.series.filter((o) => !p.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
163
164
|
return {
|
|
164
165
|
...t,
|
|
165
166
|
total: a,
|
|
166
|
-
series: t.series.filter((o) => !
|
|
167
|
+
series: t.series.filter((o) => !p.value.includes(o.id)).map((o) => ({
|
|
167
168
|
...o,
|
|
168
169
|
proportion: o.value / a
|
|
169
170
|
}))
|
|
170
171
|
};
|
|
171
172
|
}));
|
|
172
|
-
function
|
|
173
|
+
function je(t, s, a) {
|
|
173
174
|
let o = 0;
|
|
174
175
|
for (let l = 0; l < t.length; l += 1)
|
|
175
176
|
a.includes(t[l]) && (o += 1);
|
|
176
|
-
return o <
|
|
177
|
+
return o < s;
|
|
177
178
|
}
|
|
178
|
-
const f = i(
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
function
|
|
179
|
+
const f = i(Te.value);
|
|
180
|
+
Ue(() => Te.value, (t) => f.value = t);
|
|
181
|
+
const Se = i(null), Ne = i(null);
|
|
182
|
+
function ae(t) {
|
|
182
183
|
ce("selectLegend", t);
|
|
183
|
-
const
|
|
184
|
+
const s = C.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = f.value.flatMap((c) => c.series).find((c) => c.id === t.id);
|
|
184
185
|
let l = a ? a.value : 0;
|
|
185
|
-
const d = C.value.find((c) => c.id ===
|
|
186
|
-
if (
|
|
186
|
+
const d = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b = je(d, d.length - 1, p.value);
|
|
187
|
+
if (p.value.includes(t.id)) {
|
|
187
188
|
let c = function() {
|
|
188
|
-
l >
|
|
189
|
-
|
|
190
|
-
series:
|
|
189
|
+
l > s.value ? (cancelAnimationFrame(Se.value), f.value = f.value.map((L) => ({
|
|
190
|
+
...L,
|
|
191
|
+
series: L.series.map((S) => S.id == t.id ? {
|
|
191
192
|
...S,
|
|
192
|
-
value:
|
|
193
|
+
value: s.value
|
|
193
194
|
} : S)
|
|
194
|
-
}))) : (l +=
|
|
195
|
-
|
|
196
|
-
series:
|
|
195
|
+
}))) : (l += s.value * 0.025, f.value = f.value.map((L) => ({
|
|
196
|
+
...L,
|
|
197
|
+
series: L.series.map((S) => S.id === t.id ? {
|
|
197
198
|
...S,
|
|
198
199
|
value: l
|
|
199
200
|
} : S)
|
|
200
|
-
})),
|
|
201
|
+
})), Se.value = requestAnimationFrame(c));
|
|
201
202
|
};
|
|
202
|
-
|
|
203
|
+
p.value = p.value.filter((L) => L !== t.id), c();
|
|
203
204
|
} else if (b) {
|
|
204
205
|
let c = function() {
|
|
205
|
-
l < 0.1 ? (cancelAnimationFrame(
|
|
206
|
-
|
|
207
|
-
series:
|
|
208
|
-
...
|
|
206
|
+
l < 0.1 ? (cancelAnimationFrame(Ne.value), p.value.push(t.id), f.value = f.value.map((L, S) => ({
|
|
207
|
+
...L,
|
|
208
|
+
series: L.series.map((A) => A.id === t.id ? {
|
|
209
|
+
...A,
|
|
209
210
|
value: 0
|
|
210
|
-
} :
|
|
211
|
-
}))) : (l /= 1.1, f.value = f.value.map((
|
|
212
|
-
|
|
213
|
-
series:
|
|
214
|
-
...
|
|
211
|
+
} : A)
|
|
212
|
+
}))) : (l /= 1.1, f.value = f.value.map((L, S) => ({
|
|
213
|
+
...L,
|
|
214
|
+
series: L.series.map((A) => A.id === t.id ? {
|
|
215
|
+
...A,
|
|
215
216
|
value: l
|
|
216
|
-
} :
|
|
217
|
-
})),
|
|
217
|
+
} : A)
|
|
218
|
+
})), Ne.value = requestAnimationFrame(c));
|
|
218
219
|
};
|
|
219
220
|
c();
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
|
-
const
|
|
223
|
-
const a =
|
|
223
|
+
const oe = g(() => F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio), Ie = g(() => f.value.map((t, s) => F.value - s * F.value / C.value.length)), W = g(() => f.value.map((t, s) => {
|
|
224
|
+
const a = s * F.value / C.value.length;
|
|
224
225
|
return {
|
|
225
226
|
...t,
|
|
226
227
|
radius: F.value - a,
|
|
227
|
-
donut:
|
|
228
|
+
donut: Ee(
|
|
228
229
|
{ series: t.series },
|
|
229
230
|
h.value.width / 2,
|
|
230
231
|
h.value.height / 2,
|
|
@@ -235,14 +236,14 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
235
236
|
1,
|
|
236
237
|
360,
|
|
237
238
|
105.25,
|
|
238
|
-
|
|
239
|
+
oe.value
|
|
239
240
|
)
|
|
240
241
|
};
|
|
241
|
-
})),
|
|
242
|
-
const a =
|
|
242
|
+
})), Oe = g(() => [...C.value].map((t, s) => {
|
|
243
|
+
const a = s * F.value / C.value.length;
|
|
243
244
|
return {
|
|
244
245
|
sizeRatio: a,
|
|
245
|
-
donut:
|
|
246
|
+
donut: Ee(
|
|
246
247
|
{ series: [{ value: 1 }] },
|
|
247
248
|
h.value.width / 2,
|
|
248
249
|
h.value.height / 2,
|
|
@@ -256,22 +257,22 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
256
257
|
F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
257
258
|
)[0]
|
|
258
259
|
};
|
|
259
|
-
})),
|
|
260
|
-
function
|
|
261
|
-
|
|
260
|
+
})), Ae = i(null), H = i(null), q = i(null), se = i(null);
|
|
261
|
+
function et({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
|
|
262
|
+
Ae.value = t.arcOfId, H.value = t.id, q.value = a, se.value = {
|
|
262
263
|
datapoint: t,
|
|
263
264
|
seriesIndex: a,
|
|
264
265
|
series: f.value,
|
|
265
266
|
config: e.value
|
|
266
267
|
};
|
|
267
268
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
268
|
-
if (
|
|
269
|
+
if (Ye(o) && gt(() => o({
|
|
269
270
|
seriesIndex: a,
|
|
270
271
|
datapoint: t,
|
|
271
272
|
series: f.value,
|
|
272
273
|
config: e.value
|
|
273
274
|
})))
|
|
274
|
-
|
|
275
|
+
te.value = o({
|
|
275
276
|
seriesIndex: a,
|
|
276
277
|
datapoint: t,
|
|
277
278
|
series: f.value,
|
|
@@ -279,7 +280,7 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
279
280
|
});
|
|
280
281
|
else {
|
|
281
282
|
let l = "";
|
|
282
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
283
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0) {
|
|
283
284
|
const d = f.value.map((b) => b.series.find((c) => c.seriesIndex === a));
|
|
284
285
|
d.forEach((b, c) => {
|
|
285
286
|
if (!b) return "";
|
|
@@ -335,22 +336,22 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
335
336
|
s: "%",
|
|
336
337
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
337
338
|
})}</b></div>`);
|
|
338
|
-
|
|
339
|
+
te.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
|
|
339
340
|
}
|
|
340
|
-
|
|
341
|
+
ee.value = !0;
|
|
341
342
|
}
|
|
342
|
-
function
|
|
343
|
+
function ue(t) {
|
|
343
344
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
+
function Pe(t, s) {
|
|
346
347
|
if (!e.value.useBlurOnHover)
|
|
347
348
|
return "";
|
|
348
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
349
|
-
return [null, void 0].includes(q.value) || q.value ===
|
|
350
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
349
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0)
|
|
350
|
+
return [null, void 0].includes(q.value) || q.value === s ? "" : `url(#blur_${w.value})`;
|
|
351
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || p.value.length)
|
|
351
352
|
return [null, void 0].includes(H.value) || H.value === t.id ? "" : `url(#blur_${w.value})`;
|
|
352
353
|
}
|
|
353
|
-
const
|
|
354
|
+
const ne = g(() => C.value.map((t, s) => t.series.map((a, o) => ({
|
|
354
355
|
name: a.name,
|
|
355
356
|
color: a.color,
|
|
356
357
|
value: a.value,
|
|
@@ -358,34 +359,34 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
358
359
|
arcOf: a.arcOf,
|
|
359
360
|
id: a.id,
|
|
360
361
|
seriesIndex: o,
|
|
361
|
-
datasetIndex:
|
|
362
|
-
total: t.series.filter((l) => !
|
|
362
|
+
datasetIndex: s,
|
|
363
|
+
total: t.series.filter((l) => !p.value.includes(l.id)).map((l) => l.value).reduce((l, d) => l + d, 0)
|
|
363
364
|
})).map((a) => ({
|
|
364
365
|
...a,
|
|
365
|
-
opacity:
|
|
366
|
-
segregate: () =>
|
|
367
|
-
isSegregated:
|
|
368
|
-
})))),
|
|
366
|
+
opacity: p.value.includes(a.id) ? 0.5 : 1,
|
|
367
|
+
segregate: () => ae(a),
|
|
368
|
+
isSegregated: p.value.includes(a.id)
|
|
369
|
+
})))), tt = g(() => ({
|
|
369
370
|
cy: "nested-donuts-legend",
|
|
370
371
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
371
372
|
color: e.value.style.chart.legend.color,
|
|
372
373
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
373
374
|
paddingBottom: 12,
|
|
374
375
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
375
|
-
})),
|
|
376
|
+
})), O = g(() => {
|
|
376
377
|
const t = f.value.flatMap((a) => a.series.map((o) => ({
|
|
377
378
|
name: `${a.name} - ${o.name}`,
|
|
378
379
|
color: o.color,
|
|
379
380
|
total: a.total
|
|
380
|
-
}))),
|
|
381
|
-
return { head: t, body:
|
|
381
|
+
}))), s = f.value.flatMap((a) => a.series.map((o) => o.value));
|
|
382
|
+
return { head: t, body: s };
|
|
382
383
|
});
|
|
383
|
-
function
|
|
384
|
-
|
|
385
|
-
const t =
|
|
384
|
+
function De() {
|
|
385
|
+
ut(() => {
|
|
386
|
+
const t = O.value.head.map((o, l) => [[
|
|
386
387
|
o.name
|
|
387
|
-
], [
|
|
388
|
-
|
|
388
|
+
], [O.value.body[l]], [isNaN(O.value.body[l] / o.total) ? "-" : O.value.body[l] / o.total * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = mt(s);
|
|
389
|
+
kt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
|
|
389
390
|
});
|
|
390
391
|
}
|
|
391
392
|
const J = g(() => {
|
|
@@ -393,16 +394,16 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
393
394
|
e.value.table.columnNames.series,
|
|
394
395
|
e.value.table.columnNames.value,
|
|
395
396
|
e.value.table.columnNames.percentage
|
|
396
|
-
],
|
|
397
|
-
const b = x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
397
|
+
], s = O.value.head.map((l, d) => {
|
|
398
|
+
const b = x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: O.value.body[d], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
398
399
|
return [
|
|
399
400
|
{
|
|
400
401
|
color: l.color,
|
|
401
402
|
name: l.name
|
|
402
403
|
},
|
|
403
404
|
b,
|
|
404
|
-
isNaN(
|
|
405
|
-
v:
|
|
405
|
+
isNaN(O.value.body[d] / l.total) ? "-" : x({
|
|
406
|
+
v: O.value.body[d] / l.total * 100,
|
|
406
407
|
s: "%",
|
|
407
408
|
r: e.value.table.td.roundingPercentage
|
|
408
409
|
})
|
|
@@ -427,64 +428,66 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
427
428
|
e.value.table.columnNames.percentage
|
|
428
429
|
],
|
|
429
430
|
head: t,
|
|
430
|
-
body:
|
|
431
|
+
body: s,
|
|
431
432
|
config: a
|
|
432
433
|
};
|
|
433
434
|
});
|
|
434
|
-
function
|
|
435
|
+
function lt() {
|
|
435
436
|
return C.value;
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
-
|
|
438
|
+
function ze() {
|
|
439
|
+
$.value.showTable = !$.value.showTable;
|
|
439
440
|
}
|
|
440
|
-
function
|
|
441
|
-
|
|
441
|
+
function Ve() {
|
|
442
|
+
$.value.dataLabels.show = !$.value.dataLabels.show;
|
|
442
443
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
444
|
+
function Me() {
|
|
445
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
445
446
|
}
|
|
446
447
|
const K = i(!1);
|
|
447
|
-
function
|
|
448
|
+
function re() {
|
|
448
449
|
K.value = !K.value;
|
|
449
450
|
}
|
|
450
|
-
return
|
|
451
|
-
getData:
|
|
452
|
-
generatePdf:
|
|
453
|
-
generateCsv:
|
|
454
|
-
generateImage:
|
|
455
|
-
toggleTable:
|
|
456
|
-
toggleLabels:
|
|
457
|
-
toggleTooltip:
|
|
458
|
-
toggleAnnotator:
|
|
459
|
-
}), (t,
|
|
451
|
+
return We({
|
|
452
|
+
getData: lt,
|
|
453
|
+
generatePdf: Ce,
|
|
454
|
+
generateCsv: De,
|
|
455
|
+
generateImage: Fe,
|
|
456
|
+
toggleTable: ze,
|
|
457
|
+
toggleLabels: Ve,
|
|
458
|
+
toggleTooltip: Me,
|
|
459
|
+
toggleAnnotator: re
|
|
460
|
+
}), (t, s) => (u(), n("div", {
|
|
460
461
|
ref_key: "nestedDonutsChart",
|
|
461
462
|
ref: z,
|
|
462
463
|
class: P(`vue-ui-nested-donuts ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
463
|
-
style:
|
|
464
|
-
id: `nested_donuts_${w.value}
|
|
464
|
+
style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
465
|
+
id: `nested_donuts_${w.value}`,
|
|
466
|
+
onMouseenter: s[3] || (s[3] = () => r(ke)(!0)),
|
|
467
|
+
onMouseleave: s[4] || (s[4] = () => r(ke)(!1))
|
|
465
468
|
}, [
|
|
466
|
-
e.value.userOptions.buttons.annotator ? (
|
|
469
|
+
e.value.userOptions.buttons.annotator ? (u(), D(Ot, {
|
|
467
470
|
key: 0,
|
|
468
471
|
parent: z.value,
|
|
469
472
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
470
473
|
color: e.value.style.chart.color,
|
|
471
474
|
active: K.value,
|
|
472
|
-
onClose:
|
|
475
|
+
onClose: re
|
|
473
476
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
474
|
-
|
|
477
|
+
Ke.value ? (u(), n("div", {
|
|
475
478
|
key: 1,
|
|
476
479
|
ref_key: "noTitle",
|
|
477
|
-
ref:
|
|
480
|
+
ref: pe,
|
|
478
481
|
class: "vue-data-ui-no-title-space",
|
|
479
482
|
style: "height:36px; width: 100%;background:transparent"
|
|
480
483
|
}, null, 512)) : v("", !0),
|
|
481
|
-
e.value.style.chart.title.text ? (
|
|
484
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
482
485
|
key: 2,
|
|
483
486
|
ref_key: "chartTitle",
|
|
484
487
|
ref: fe
|
|
485
488
|
}, [
|
|
486
|
-
(
|
|
487
|
-
key: `title_${
|
|
489
|
+
(u(), D(Lt, {
|
|
490
|
+
key: `title_${ye.value}`,
|
|
488
491
|
config: {
|
|
489
492
|
title: {
|
|
490
493
|
cy: "donut-div-title",
|
|
@@ -497,13 +500,13 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
497
500
|
}
|
|
498
501
|
}, null, 8, ["config"]))
|
|
499
502
|
], 512)) : v("", !0),
|
|
500
|
-
e.value.userOptions.show && Y.value ? (
|
|
503
|
+
e.value.userOptions.show && Y.value && (r(we) || r(me)) ? (u(), D(xt, {
|
|
501
504
|
ref: "details",
|
|
502
505
|
key: `user_option_${ve.value}`,
|
|
503
506
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
504
507
|
color: e.value.style.chart.color,
|
|
505
|
-
isPrinting: r(
|
|
506
|
-
isImaging: r(
|
|
508
|
+
isPrinting: r(_e),
|
|
509
|
+
isImaging: r(xe),
|
|
507
510
|
uid: w.value,
|
|
508
511
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
509
512
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -513,21 +516,24 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
513
516
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
514
517
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
515
518
|
isFullscreen: V.value,
|
|
516
|
-
isTooltip:
|
|
519
|
+
isTooltip: $.value.showTooltip,
|
|
517
520
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
518
521
|
chartElement: z.value,
|
|
519
522
|
position: e.value.userOptions.position,
|
|
520
523
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
521
524
|
isAnnotation: K.value,
|
|
522
|
-
onToggleFullscreen:
|
|
523
|
-
onGeneratePdf: r(
|
|
524
|
-
onGenerateCsv:
|
|
525
|
-
onGenerateImage: r(
|
|
526
|
-
onToggleTable:
|
|
527
|
-
onToggleLabels:
|
|
528
|
-
onToggleTooltip:
|
|
529
|
-
onToggleAnnotator:
|
|
530
|
-
|
|
525
|
+
onToggleFullscreen: Je,
|
|
526
|
+
onGeneratePdf: r(Ce),
|
|
527
|
+
onGenerateCsv: De,
|
|
528
|
+
onGenerateImage: r(Fe),
|
|
529
|
+
onToggleTable: ze,
|
|
530
|
+
onToggleLabels: Ve,
|
|
531
|
+
onToggleTooltip: Me,
|
|
532
|
+
onToggleAnnotator: re,
|
|
533
|
+
style: Q({
|
|
534
|
+
visibility: r(we) ? r(me) ? "visible" : "hidden" : "visible"
|
|
535
|
+
})
|
|
536
|
+
}, st({ _: 2 }, [
|
|
531
537
|
t.$slots.optionTooltip ? {
|
|
532
538
|
name: "optionTooltip",
|
|
533
539
|
fn: m(() => [
|
|
@@ -584,87 +590,87 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
584
590
|
]),
|
|
585
591
|
key: "7"
|
|
586
592
|
} : void 0
|
|
587
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
588
|
-
Y.value ? (
|
|
593
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
594
|
+
Y.value ? (u(), n("svg", {
|
|
589
595
|
key: 4,
|
|
590
|
-
xmlns: r(
|
|
596
|
+
xmlns: r(yt),
|
|
591
597
|
class: P({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
592
598
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
593
|
-
style:
|
|
599
|
+
style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
594
600
|
}, [
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
(
|
|
601
|
+
Be(It),
|
|
602
|
+
y("defs", null, [
|
|
603
|
+
(u(!0), n(_, null, T(Oe.value, (a, o) => (u(), n("radialGradient", {
|
|
598
604
|
id: `radial_${w.value}_${o}`
|
|
599
605
|
}, [
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
offset: `${(1 -
|
|
603
|
-
"stop-color": r(
|
|
606
|
+
Mt,
|
|
607
|
+
y("stop", {
|
|
608
|
+
offset: `${(1 - oe.value / Ie.value[o]) * 100}%`,
|
|
609
|
+
"stop-color": r(Ge)("#FFFFFF", 0),
|
|
604
610
|
"stop-opacity": "0"
|
|
605
|
-
}, null, 8,
|
|
606
|
-
|
|
607
|
-
offset: `${(1 -
|
|
611
|
+
}, null, 8, Ut),
|
|
612
|
+
y("stop", {
|
|
613
|
+
offset: `${(1 - oe.value / Ie.value[o] / 2) * 100}%`,
|
|
608
614
|
"stop-color": "#FFFFFF",
|
|
609
615
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
610
|
-
}, null, 8,
|
|
611
|
-
|
|
612
|
-
], 8,
|
|
616
|
+
}, null, 8, Bt),
|
|
617
|
+
Rt
|
|
618
|
+
], 8, Vt))), 256))
|
|
613
619
|
]),
|
|
614
|
-
|
|
615
|
-
|
|
620
|
+
y("defs", null, [
|
|
621
|
+
y("filter", {
|
|
616
622
|
id: `blur_${w.value}`,
|
|
617
623
|
x: "-50%",
|
|
618
624
|
y: "-50%",
|
|
619
625
|
width: "200%",
|
|
620
626
|
height: "200%"
|
|
621
627
|
}, [
|
|
622
|
-
|
|
628
|
+
y("feGaussianBlur", {
|
|
623
629
|
in: "SourceGraphic",
|
|
624
630
|
stdDeviation: 2,
|
|
625
631
|
id: `blur_std_${w.value}`
|
|
626
|
-
}, null, 8,
|
|
627
|
-
|
|
628
|
-
], 8,
|
|
629
|
-
|
|
632
|
+
}, null, 8, Gt),
|
|
633
|
+
Yt
|
|
634
|
+
], 8, Et),
|
|
635
|
+
y("filter", {
|
|
630
636
|
id: `shadow_${w.value}`,
|
|
631
637
|
"color-interpolation-filters": "sRGB"
|
|
632
638
|
}, [
|
|
633
|
-
|
|
639
|
+
y("feDropShadow", {
|
|
634
640
|
dx: "0",
|
|
635
641
|
dy: "0",
|
|
636
642
|
stdDeviation: "10",
|
|
637
643
|
"flood-opacity": "0.5",
|
|
638
644
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
639
|
-
}, null, 8,
|
|
640
|
-
], 8,
|
|
645
|
+
}, null, 8, Wt)
|
|
646
|
+
], 8, Xt)
|
|
641
647
|
]),
|
|
642
|
-
(
|
|
643
|
-
(
|
|
644
|
-
|
|
648
|
+
(u(!0), n(_, null, T(W.value, (a, o) => (u(), n("g", null, [
|
|
649
|
+
(u(!0), n(_, null, T(a.donut, (l, d) => (u(), n("g", null, [
|
|
650
|
+
y("path", {
|
|
645
651
|
class: "vue-ui-donut-arc-path",
|
|
646
652
|
d: l.arcSlice,
|
|
647
|
-
fill: r(
|
|
653
|
+
fill: r(Ge)(l.color, 80),
|
|
648
654
|
stroke: e.value.style.chart.backgroundColor,
|
|
649
655
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
650
|
-
filter:
|
|
651
|
-
}, null, 8,
|
|
656
|
+
filter: Pe(l, d)
|
|
657
|
+
}, null, 8, Ht)
|
|
652
658
|
]))), 256))
|
|
653
659
|
]))), 256)),
|
|
654
|
-
e.value.style.chart.useGradient ? (
|
|
655
|
-
(
|
|
656
|
-
|
|
660
|
+
e.value.style.chart.useGradient ? (u(), n("g", qt, [
|
|
661
|
+
(u(!0), n(_, null, T(Oe.value, (a, o) => (u(), n("g", null, [
|
|
662
|
+
y("path", {
|
|
657
663
|
d: a.donut.arcSlice,
|
|
658
664
|
fill: `url(#radial_${w.value}_${o})`,
|
|
659
665
|
stroke: "transparent",
|
|
660
666
|
"stroke-width": "0"
|
|
661
|
-
}, null, 8,
|
|
667
|
+
}, null, 8, Jt)
|
|
662
668
|
]))), 256))
|
|
663
669
|
])) : v("", !0),
|
|
664
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (
|
|
665
|
-
(
|
|
666
|
-
(
|
|
667
|
-
d === 0 && h.value.width && h.value.height ? (
|
|
670
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g", Kt, [
|
|
671
|
+
(u(!0), n(_, null, T(W.value, (a, o) => (u(), n("g", null, [
|
|
672
|
+
(u(!0), n(_, null, T(a.donut, (l, d) => (u(), n("g", null, [
|
|
673
|
+
d === 0 && h.value.width && h.value.height ? (u(), n("text", {
|
|
668
674
|
key: 0,
|
|
669
675
|
class: P({ animated: e.value.useCssAnimation }),
|
|
670
676
|
x: h.value.width / 2,
|
|
@@ -673,30 +679,30 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
673
679
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
674
680
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
675
681
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
676
|
-
}, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(
|
|
682
|
+
}, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(bt)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Qt)) : v("", !0)
|
|
677
683
|
]))), 256))
|
|
678
684
|
]))), 256))
|
|
679
685
|
])) : v("", !0),
|
|
680
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
681
|
-
(
|
|
682
|
-
(
|
|
683
|
-
filter:
|
|
686
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Zt, [
|
|
687
|
+
(u(!0), n(_, null, T(W.value, (a, o) => (u(), n("g", null, [
|
|
688
|
+
(u(!0), n(_, null, T(a.donut, (l, d) => (u(), n("g", {
|
|
689
|
+
filter: Pe(l, d)
|
|
684
690
|
}, [
|
|
685
|
-
|
|
691
|
+
ue(l) && $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
|
|
686
692
|
key: 0,
|
|
687
693
|
class: P({ animated: e.value.useCssAnimation }),
|
|
688
|
-
"text-anchor": r(
|
|
689
|
-
x: r(
|
|
694
|
+
"text-anchor": r(U)(l, !0).anchor,
|
|
695
|
+
x: r(U)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
690
696
|
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
691
697
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
692
698
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
693
699
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
694
|
-
}, N(r(x)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11,
|
|
695
|
-
|
|
700
|
+
}, N(r(x)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, el)) : v("", !0),
|
|
701
|
+
ue(l) && $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
696
702
|
key: 1,
|
|
697
703
|
class: P({ animated: e.value.useCssAnimation }),
|
|
698
|
-
"text-anchor": r(
|
|
699
|
-
x: r(
|
|
704
|
+
"text-anchor": r(U)(l, !0).anchor,
|
|
705
|
+
x: r(U)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
700
706
|
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
701
707
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
702
708
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -711,12 +717,12 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
711
717
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
712
718
|
}),
|
|
713
719
|
{ datapoint: l, seriesIndex: o, datapointIndex: d }
|
|
714
|
-
)) + ") ", 11,
|
|
715
|
-
|
|
720
|
+
)) + ") ", 11, tl)) : v("", !0),
|
|
721
|
+
ue(l) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
716
722
|
key: 2,
|
|
717
723
|
class: P({ animated: e.value.useCssAnimation }),
|
|
718
|
-
"text-anchor": r(
|
|
719
|
-
x: r(
|
|
724
|
+
"text-anchor": r(U)(l, !0).anchor,
|
|
725
|
+
x: r(U)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
720
726
|
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
721
727
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
722
728
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -731,34 +737,34 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
731
737
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
732
738
|
}),
|
|
733
739
|
{ datapoint: l, seriesIndex: o, datapointIndex: d }
|
|
734
|
-
)), 11,
|
|
735
|
-
], 8,
|
|
740
|
+
)), 11, ll)) : v("", !0)
|
|
741
|
+
], 8, jt))), 256))
|
|
736
742
|
]))), 256))
|
|
737
743
|
])) : v("", !0),
|
|
738
|
-
(
|
|
739
|
-
(
|
|
740
|
-
|
|
744
|
+
(u(!0), n(_, null, T(W.value, (a, o) => (u(), n("g", null, [
|
|
745
|
+
(u(!0), n(_, null, T(a.donut, (l, d) => (u(), n("g", null, [
|
|
746
|
+
y("path", {
|
|
741
747
|
"data-cy-donut-trap": "",
|
|
742
748
|
d: l.arcSlice,
|
|
743
|
-
fill:
|
|
744
|
-
onMouseenter: (b) =>
|
|
749
|
+
fill: qe.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
750
|
+
onMouseenter: (b) => et({
|
|
745
751
|
datapoint: l,
|
|
746
752
|
relativeIndex: o,
|
|
747
753
|
seriesIndex: l.seriesIndex
|
|
748
754
|
}),
|
|
749
|
-
onClick: (b) =>
|
|
750
|
-
onMouseleave:
|
|
751
|
-
|
|
755
|
+
onClick: (b) => Ze({ datapoint: l, index: d }),
|
|
756
|
+
onMouseleave: s[0] || (s[0] = (b) => {
|
|
757
|
+
ee.value = !1, Ae.value = null, H.value = null, q.value = null;
|
|
752
758
|
})
|
|
753
|
-
}, null, 40,
|
|
759
|
+
}, null, 40, al)
|
|
754
760
|
]))), 256))
|
|
755
761
|
]))), 256)),
|
|
756
762
|
k(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
757
|
-
], 14,
|
|
758
|
-
t.$slots.watermark ? (
|
|
759
|
-
k(t.$slots, "watermark", R(E({ isPrinting: r(
|
|
763
|
+
], 14, zt)) : v("", !0),
|
|
764
|
+
t.$slots.watermark ? (u(), n("div", ol, [
|
|
765
|
+
k(t.$slots, "watermark", R(E({ isPrinting: r(_e) || r(xe) })), void 0, !0)
|
|
760
766
|
])) : v("", !0),
|
|
761
|
-
Y.value ? v("", !0) : (
|
|
767
|
+
Y.value ? v("", !0) : (u(), D(St, {
|
|
762
768
|
key: 6,
|
|
763
769
|
config: {
|
|
764
770
|
type: "donut",
|
|
@@ -770,8 +776,8 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
770
776
|
}
|
|
771
777
|
}
|
|
772
778
|
}, null, 8, ["config"])),
|
|
773
|
-
|
|
774
|
-
show:
|
|
779
|
+
Be(Ft, {
|
|
780
|
+
show: $.value.showTooltip && ee.value,
|
|
775
781
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
776
782
|
color: e.value.style.chart.tooltip.color,
|
|
777
783
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -782,39 +788,39 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
782
788
|
position: e.value.style.chart.tooltip.position,
|
|
783
789
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
784
790
|
parent: z.value,
|
|
785
|
-
content:
|
|
791
|
+
content: te.value,
|
|
786
792
|
isFullscreen: V.value,
|
|
787
|
-
isCustom: r(
|
|
793
|
+
isCustom: r(Ye)(e.value.style.chart.tooltip.customFormat)
|
|
788
794
|
}, {
|
|
789
795
|
"tooltip-before": m(() => [
|
|
790
|
-
k(t.$slots, "tooltip-before", R(E({ ...
|
|
796
|
+
k(t.$slots, "tooltip-before", R(E({ ...se.value })), void 0, !0)
|
|
791
797
|
]),
|
|
792
798
|
"tooltip-after": m(() => [
|
|
793
|
-
k(t.$slots, "tooltip-after", R(E({ ...
|
|
799
|
+
k(t.$slots, "tooltip-after", R(E({ ...se.value })), void 0, !0)
|
|
794
800
|
]),
|
|
795
801
|
_: 3
|
|
796
802
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
797
|
-
e.value.style.chart.legend.show ? (
|
|
803
|
+
e.value.style.chart.legend.show ? (u(), n("div", {
|
|
798
804
|
key: 7,
|
|
799
805
|
ref_key: "chartLegend",
|
|
800
|
-
ref:
|
|
801
|
-
class: P({ "vue-ui-nested-donuts-legend":
|
|
806
|
+
ref: le,
|
|
807
|
+
class: P({ "vue-ui-nested-donuts-legend": ne.value.length > 1 })
|
|
802
808
|
}, [
|
|
803
|
-
(
|
|
809
|
+
(u(!0), n(_, null, T(ne.value, (a, o) => (u(), D(Tt, {
|
|
804
810
|
key: `legend_${o}_${ge.value}`,
|
|
805
811
|
legendSet: a,
|
|
806
|
-
config:
|
|
807
|
-
onClickMarker:
|
|
812
|
+
config: tt.value,
|
|
813
|
+
onClickMarker: s[1] || (s[1] = ({ legend: l }) => ae(l))
|
|
808
814
|
}, {
|
|
809
815
|
legendTitle: m(({ titleSet: l }) => [
|
|
810
|
-
l[0] && l[0].arcOf ? (
|
|
816
|
+
l[0] && l[0].arcOf ? (u(), n("div", sl, N(l[0].arcOf), 1)) : v("", !0)
|
|
811
817
|
]),
|
|
812
818
|
item: m(({ legend: l, index: d }) => [
|
|
813
|
-
|
|
814
|
-
onClick: (b) =>
|
|
815
|
-
style:
|
|
819
|
+
y("div", {
|
|
820
|
+
onClick: (b) => ae(l),
|
|
821
|
+
style: Q(`opacity:${p.value.includes(l.id) ? 0.5 : 1}`)
|
|
816
822
|
}, [
|
|
817
|
-
|
|
823
|
+
Z(N(l.name) + ": " + N(r(G)(
|
|
818
824
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
819
825
|
l.value,
|
|
820
826
|
r(x)({
|
|
@@ -825,24 +831,24 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
825
831
|
}),
|
|
826
832
|
{ datapoint: l, seriesIndex: d }
|
|
827
833
|
)) + " ", 1),
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
], 64)) : (
|
|
831
|
-
|
|
834
|
+
p.value.includes(l.id) ? (u(), n(_, { key: 1 }, [
|
|
835
|
+
Z(" ( - % ) ")
|
|
836
|
+
], 64)) : (u(), n(_, { key: 0 }, [
|
|
837
|
+
Z(" (" + N(isNaN(l.value / l.total) ? "-" : r(x)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
|
|
832
838
|
], 64))
|
|
833
|
-
], 12,
|
|
839
|
+
], 12, ul)
|
|
834
840
|
]),
|
|
835
841
|
_: 2
|
|
836
842
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
837
843
|
], 2)) : v("", !0),
|
|
838
|
-
e.value.style.chart.legend.show ? v("", !0) : (
|
|
844
|
+
e.value.style.chart.legend.show ? v("", !0) : (u(), n("div", {
|
|
839
845
|
key: 8,
|
|
840
846
|
ref_key: "chartLegend",
|
|
841
|
-
ref:
|
|
847
|
+
ref: le
|
|
842
848
|
}, [
|
|
843
|
-
k(t.$slots, "legend", { legend:
|
|
849
|
+
k(t.$slots, "legend", { legend: ne.value }, void 0, !0)
|
|
844
850
|
], 512)),
|
|
845
|
-
t.$slots.source ? (
|
|
851
|
+
t.$slots.source ? (u(), n("div", {
|
|
846
852
|
key: 9,
|
|
847
853
|
ref_key: "source",
|
|
848
854
|
ref: he,
|
|
@@ -850,11 +856,11 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
850
856
|
}, [
|
|
851
857
|
k(t.$slots, "source", {}, void 0, !0)
|
|
852
858
|
], 512)) : v("", !0),
|
|
853
|
-
Y.value ? (
|
|
859
|
+
Y.value ? (u(), D(Nt, {
|
|
854
860
|
key: 10,
|
|
855
861
|
hideDetails: "",
|
|
856
862
|
config: {
|
|
857
|
-
open:
|
|
863
|
+
open: $.value.showTable,
|
|
858
864
|
maxHeight: 1e4,
|
|
859
865
|
body: {
|
|
860
866
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -867,32 +873,32 @@ const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = [
|
|
|
867
873
|
}
|
|
868
874
|
}, {
|
|
869
875
|
content: m(() => [
|
|
870
|
-
(
|
|
876
|
+
(u(), D(Ct, {
|
|
871
877
|
key: `table_${be.value}`,
|
|
872
878
|
colNames: J.value.colNames,
|
|
873
879
|
head: J.value.head,
|
|
874
880
|
body: J.value.body,
|
|
875
881
|
config: J.value.config,
|
|
876
882
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
877
|
-
onClose:
|
|
883
|
+
onClose: s[2] || (s[2] = (a) => $.value.showTable = !1)
|
|
878
884
|
}, {
|
|
879
885
|
th: m(({ th: a }) => [
|
|
880
|
-
|
|
886
|
+
y("div", {
|
|
881
887
|
innerHTML: a,
|
|
882
888
|
style: { display: "flex", "align-items": "center" }
|
|
883
|
-
}, null, 8,
|
|
889
|
+
}, null, 8, nl)
|
|
884
890
|
]),
|
|
885
891
|
td: m(({ td: a }) => [
|
|
886
|
-
|
|
892
|
+
Z(N(a.name || a), 1)
|
|
887
893
|
]),
|
|
888
894
|
_: 1
|
|
889
895
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
890
896
|
]),
|
|
891
897
|
_: 1
|
|
892
898
|
}, 8, ["config"])) : v("", !0)
|
|
893
|
-
],
|
|
899
|
+
], 46, Dt));
|
|
894
900
|
}
|
|
895
|
-
},
|
|
901
|
+
}, _l = /* @__PURE__ */ Pt(rl, [["__scopeId", "data-v-5dacef14"]]);
|
|
896
902
|
export {
|
|
897
|
-
|
|
903
|
+
_l as default
|
|
898
904
|
};
|