vue-data-ui 2.4.50 → 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-DuuEh1Nr.cjs → Arrow-2a_SwBgz.cjs} +1 -1
- package/dist/{Arrow-D1z9KkQN.js → Arrow-BUz63pb2.js} +1 -1
- package/dist/{BaseIcon-DemqZ_13.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
- package/dist/{BaseIcon-BHwqOTt4.js → BaseIcon-CmiukQBl.js} +1 -1
- package/dist/{DataTable-CQ8fQnex.js → DataTable-DGf6RrOJ.js} +2 -2
- package/dist/{DataTable-CovKV5Yy.cjs → DataTable-G3ICK-5h.cjs} +1 -1
- package/dist/{Legend-Br7MWNDo.js → Legend-BLaZxMge.js} +1 -1
- package/dist/{Legend-Bbz-hKDf.cjs → Legend-BiuPlEMg.cjs} +1 -1
- package/dist/{PackageVersion-BEtuCME5.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
- package/dist/{PackageVersion-BV3fHO46.js → PackageVersion-CxJghxYD.js} +1 -1
- package/dist/{PenAndPaper-BIcmfBvD.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
- package/dist/{PenAndPaper-CCOywdmm.js → PenAndPaper-ZdZEumki.js} +3 -3
- package/dist/{Shape-B7Mekpyf.js → Shape-DIKzzpFm.js} +1 -1
- package/dist/{Shape-BD37ZaX9.cjs → Shape-yducHWd0.cjs} +1 -1
- package/dist/{Slicer-CWvkt-8k.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
- package/dist/{Slicer-ahFReg7h.js → Slicer-Cxdl3cDt.js} +2 -2
- package/dist/{Title-C2siG5N2.cjs → Title-Bk_55doC.cjs} +1 -1
- package/dist/{Title-CIsKiWgN.js → Title-aSAft5dl.js} +1 -1
- package/dist/{Tooltip-CS4C58T7.cjs → Tooltip-G7ENx87_.cjs} +1 -1
- package/dist/{Tooltip-B1LgrF9R.js → Tooltip-smutPF--.js} +1 -1
- package/dist/{index-BtL_cLa8.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-CEAfm1tu.js → useNestedProp-BN8claGG.js} +1 -1
- package/dist/{useNestedProp-D_feh7A_.cjs → useNestedProp-BphUExEh.cjs} +1 -1
- package/dist/{usePrinter-B4xDG31F.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
- package/dist/{usePrinter-sRt2SKr2.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-CuEYAddV.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
- package/dist/{vue-data-ui-NkhaiK6y.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-BeXYzdzu.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
- package/dist/{vue-ui-accordion-Cjc683tN.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
- package/dist/{vue-ui-accordion-CBxsUoGb.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-rnt8M-Qz.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
- package/dist/{vue-ui-annotator-CFU5Zyfk.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
- package/dist/{vue-ui-annotator-Yu-mHS2N.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
- package/dist/{vue-ui-bullet-CRbW1ON6.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
- package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
- package/dist/{vue-ui-candlestick-D-ERLtI1.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
- package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
- package/dist/{vue-ui-carousel-table-I1m4HMWf.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-CqJRKECX.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
- package/dist/{vue-ui-cursor-S83QIsxQ.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-jrrdh8Lf.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
- package/dist/{vue-ui-dashboard-DW1mIInG.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DR_Bhwa3.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
- package/dist/{vue-ui-digits-1jZdiwHJ.js → vue-ui-digits-BEWCnojc.js} +2 -2
- package/dist/{vue-ui-digits-s5f9eFtW.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DsHTZ9T2.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
- package/dist/{vue-ui-donut-BAYiPsxp.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DcMmBxLy.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
- package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
- package/dist/{vue-ui-flow-BTXEmIQG.js → vue-ui-flow-hD0F6mTK.js} +164 -158
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
- package/dist/{vue-ui-funnel-BB_h0FKg.js → vue-ui-funnel-hcbE4yky.js} +178 -172
- package/dist/{vue-ui-galaxy-DlBk1FUz.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-1SFhSMfU.js → vue-ui-gauge-PGirbe6O.js} +220 -214
- package/dist/{vue-ui-gizmo-C8rLR4n5.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CtX6KFN2.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
- package/dist/{vue-ui-heatmap-BzyvTePn.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
- package/dist/{vue-ui-history-plot-BEoHuZ3N.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
- package/dist/{vue-ui-kpi-LO4KKRR9.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
- package/dist/{vue-ui-kpi-BYOyJjYg.js → vue-ui-kpi-DjC68pSz.js} +3 -3
- package/dist/{vue-ui-mini-loader-ChHdx5me.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
- package/dist/{vue-ui-mini-loader-wlUD77O6.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bo7XYpf-.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DXj4Ce6l.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-BBLpNVwF.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
- package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
- package/dist/{vue-ui-onion-DC8VIInA.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-Cl1wiHsK.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-b5cuEH9z.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CFBPYw2J.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
- package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
- package/dist/{vue-ui-radar-DP8360kx.js → vue-ui-radar-BKpD9xDr.js} +256 -250
- package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
- package/dist/{vue-ui-rating-D7b-kfyp.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
- package/dist/{vue-ui-rating-DIthBSp_.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-y9Zx-DaI.js → vue-ui-rings-C1PV0873.js} +177 -172
- package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
- package/dist/{vue-ui-scatter-Cbu5GDc1.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
- package/dist/{vue-ui-screenshot-oH-YnZBE.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BZh_sgjP.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
- package/dist/{vue-ui-skeleton-DjFU2X3P.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
- package/dist/{vue-ui-skeleton-Nuju6X7l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
- package/dist/{vue-ui-smiley-DtQVEc4B.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
- package/dist/{vue-ui-smiley-DdnzzEYS.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
- package/dist/{vue-ui-spark-trend-B36zW41F.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CaIGk_53.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
- package/dist/{vue-ui-sparkbar-iQKGtxo8.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DixeozKp.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C01VB6KP.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DEvgucF7.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C_6lHF3O.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CTUuxOma.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DrZWPGOG.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Btm4HVgi.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-7pcfCNMr.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D0UGUm-1.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
- package/dist/{vue-ui-stackbar-BPMDmY04.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-BfWQMGXy.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
- package/dist/{vue-ui-table-Cdo265Yt.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
- package/dist/{vue-ui-table-D8GaLhM9.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-DMHf03C9.js → vue-ui-table-sparkline-YV8DUOqh.js} +173 -167
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
- package/dist/{vue-ui-thermometer-BCVqil7E.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
- package/dist/{vue-ui-timer-gxiLCP1n.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
- package/dist/{vue-ui-timer-DF5HkeeS.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-CIZaPmbi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
- package/dist/{vue-ui-vertical-bar-dQoTddqU.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
- package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
- package/dist/{vue-ui-waffle-CnvWOEVU.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-o3zU6r0-.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
- package/dist/{vue-ui-xy-GR4PGBDy.js → vue-ui-xy-CXoWP8bh.js} +708 -697
- package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BKGOnjut.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-DoD-GxZR.cjs +0 -9
- package/dist/vue-ui-3d-bar-RduHvzwG.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DVtbyRJw.cjs +0 -1
- package/dist/vue-ui-bullet-Be5aYhtp.cjs +0 -34
- package/dist/vue-ui-candlestick-B6wSs-JC.cjs +0 -2
- package/dist/vue-ui-carousel-table-7reErH8M.cjs +0 -1
- package/dist/vue-ui-chestnut-D-WzX16q.cjs +0 -6
- package/dist/vue-ui-donut-Ce1SaXNu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DI8yeIa4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CFJkwtM8.cjs +0 -9
- package/dist/vue-ui-flow-B4MtorhO.cjs +0 -1
- package/dist/vue-ui-funnel-DNL12vLQ.cjs +0 -1
- package/dist/vue-ui-galaxy-CmCZGOKz.cjs +0 -1
- package/dist/vue-ui-gauge-B7ieQMud.cjs +0 -1
- package/dist/vue-ui-heatmap-Bfi3KJwS.cjs +0 -1
- package/dist/vue-ui-history-plot-5kZ54hgy.cjs +0 -1
- package/dist/vue-ui-molecule-D-4cRS5w.cjs +0 -1
- package/dist/vue-ui-mood-radar-C3x_LH7Q.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DrL7-SUd.cjs +0 -17
- package/dist/vue-ui-onion-8Vz3lPbn.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs +0 -8
- package/dist/vue-ui-quadrant-DBZS5jFQ.cjs +0 -1
- package/dist/vue-ui-quick-chart-Cno_1mzu.cjs +0 -15
- package/dist/vue-ui-radar-ChcBO21S.cjs +0 -1
- package/dist/vue-ui-relation-circle-C5pO0iHY.cjs +0 -1
- package/dist/vue-ui-relation-circle-D2iwmChn.js +0 -492
- package/dist/vue-ui-rings-C_NLJYs8.cjs +0 -2
- package/dist/vue-ui-scatter-BNeMGDNk.cjs +0 -1
- package/dist/vue-ui-stackbar-BwRdmPvB.cjs +0 -6
- package/dist/vue-ui-strip-plot-CLN9LikJ.cjs +0 -1
- package/dist/vue-ui-table-heatmap-C4DRSfsE.js +0 -256
- package/dist/vue-ui-table-heatmap-CDAf1IIk.cjs +0 -1
- package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +0 -1
- package/dist/vue-ui-thermometer-7BORZJjd.cjs +0 -1
- package/dist/vue-ui-tiremarks-CwGnFx4f.cjs +0 -1
- package/dist/vue-ui-tiremarks-lidhcJsi.js +0 -317
- package/dist/vue-ui-treemap-BZ_LmiBK.cjs +0 -1
- package/dist/vue-ui-vertical-bar-venrkqjM.cjs +0 -4
- package/dist/vue-ui-waffle-oR54BbIg.cjs +0 -1
- package/dist/vue-ui-wheel-BUHZEzPr.cjs +0 -1
- package/dist/vue-ui-wheel-D3itrMku.js +0 -299
- package/dist/vue-ui-word-cloud-87gwksmM.cjs +0 -1
- package/dist/vue-ui-xy-D56pm4L0.cjs +0 -3
- package/dist/vue-ui-xy-canvas-uikeVe72.cjs +0 -9
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { L as
|
|
7
|
-
import { D as
|
|
8
|
-
import { _ as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { computed as v, ref as s, watch as ke, onMounted as Be, onBeforeUnmount as Ue, openBlock as n, createElementBlock as u, normalizeClass as B, normalizeStyle as U, unref as i, createBlock as C, createCommentVNode as p, createSlots as Xe, withCtx as h, renderSlot as f, normalizeProps as S, guardReactiveProps as M, createVNode as $e, Fragment as F, renderList as N, createElementVNode as O, toDisplayString as P, createTextVNode as Ge, nextTick as Ee } from "vue";
|
|
2
|
+
import { u as He, c as We, t as je, a as qe, p as we, b as Je, o as Ke, e as J, d as Qe, X as Ze, f as R, i as K, x as Ce, q as et, r as tt, y as at } from "./index-BbPeL8Gp.js";
|
|
3
|
+
import { t as lt, u as ot } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as rt } from "./Title-aSAft5dl.js";
|
|
5
|
+
import { u as nt, U as st } from "./usePrinter-DaybDVqP.js";
|
|
6
|
+
import { L as ut } from "./Legend-BLaZxMge.js";
|
|
7
|
+
import { D as it } from "./DataTable-DGf6RrOJ.js";
|
|
8
|
+
import { _ as ct } from "./Tooltip-smutPF--.js";
|
|
9
|
+
import dt from "./vue-ui-skeleton-Bniq21d9.js";
|
|
10
|
+
import vt from "./vue-ui-accordion-5d5iVpr7.js";
|
|
11
|
+
import { u as xe } from "./useNestedProp-BN8claGG.js";
|
|
12
|
+
import { _ as ht } from "./PackageVersion-CxJghxYD.js";
|
|
13
|
+
import { P as ft } from "./PenAndPaper-ZdZEumki.js";
|
|
14
|
+
import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const yt = ["id"], mt = ["xmlns", "viewBox"], bt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], kt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], $t = ["id"], wt = ["stdDeviation"], Ct = ["filter"], xt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Tt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], _t = { key: 1 }, Ot = ["onMouseenter"], Pt = ["x", "y", "font-size", "fill", "font-weight"], At = {
|
|
16
17
|
key: 5,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, It = ["onClick"], St = ["innerHTML"], Mt = {
|
|
19
20
|
__name: "vue-ui-onion",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,31 +33,31 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const k =
|
|
37
|
-
get: () =>
|
|
36
|
+
setup(Te, { expose: _e, emit: Oe }) {
|
|
37
|
+
const k = Te, { vue_ui_onion: Pe } = He(), D = v(() => !!k.dataset && k.dataset.length), x = s(We()), Ae = s(null), Q = s(0), L = s(!1), X = s(""), y = s([]), T = s(null), Z = s(null), ee = s(null), te = s(null), ae = s(null), le = s(0), oe = s(0), re = s(0), e = v({
|
|
38
|
+
get: () => ie(),
|
|
38
39
|
set: (t) => t
|
|
39
|
-
});
|
|
40
|
-
function
|
|
41
|
-
const t =
|
|
40
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: se, keepUserOptionState: ue } = pt({ config: e.value });
|
|
41
|
+
function ie() {
|
|
42
|
+
const t = xe({
|
|
42
43
|
userConfig: k.config,
|
|
43
|
-
defaultConfig:
|
|
44
|
+
defaultConfig: Pe
|
|
44
45
|
});
|
|
45
46
|
return t.theme ? {
|
|
46
|
-
|
|
47
|
-
userConfig:
|
|
47
|
+
...xe({
|
|
48
|
+
userConfig: je.vue_ui_onion[t.theme] || k.config,
|
|
48
49
|
defaultConfig: t
|
|
49
50
|
}),
|
|
50
|
-
customPalette:
|
|
51
|
+
customPalette: qe[t.theme] || we
|
|
51
52
|
} : t;
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
-
e.value =
|
|
54
|
+
ke(() => k.config, (t) => {
|
|
55
|
+
e.value = ie(), fe(), le.value += 1, oe.value += 1, re.value += 1;
|
|
55
56
|
}, { deep: !0 });
|
|
56
|
-
const { isPrinting:
|
|
57
|
+
const { isPrinting: ce, isImaging: de, generatePdf: ve, generateImage: he } = nt({
|
|
57
58
|
elementId: `vue-ui-onion_${x.value}`,
|
|
58
59
|
fileName: e.value.style.chart.title.text || "vue-ui-onion"
|
|
59
|
-
}),
|
|
60
|
+
}), Ie = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = v(() => Je(e.value.customPalette)), $ = s({
|
|
60
61
|
showTable: e.value.table.show,
|
|
61
62
|
showTooltip: e.value.style.chart.tooltip.show
|
|
62
63
|
}), r = s({
|
|
@@ -69,17 +70,17 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
69
70
|
bottom: 64
|
|
70
71
|
},
|
|
71
72
|
minRadius: 64
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
}), V = s(null);
|
|
74
|
+
Be(() => {
|
|
75
|
+
fe();
|
|
75
76
|
});
|
|
76
|
-
function
|
|
77
|
-
if (
|
|
77
|
+
function fe() {
|
|
78
|
+
if (Ke(k.dataset) && J({
|
|
78
79
|
componentName: "VueUiOnion",
|
|
79
80
|
type: "dataset"
|
|
80
81
|
}), e.value.responsive) {
|
|
81
|
-
const o =
|
|
82
|
-
const { width: a, height: l } =
|
|
82
|
+
const o = lt(() => {
|
|
83
|
+
const { width: a, height: l } = ot({
|
|
83
84
|
chart: T.value,
|
|
84
85
|
title: e.value.style.chart.title.text ? Z.value : null,
|
|
85
86
|
legend: e.value.style.chart.legend.show ? ee.value : null,
|
|
@@ -88,13 +89,13 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
88
89
|
});
|
|
89
90
|
r.value.width = a, r.value.height = l, r.value.padding.top = Math.max(a, l) * 0.125, r.value.padding.right = Math.max(a, l) * 0.125, r.value.padding.bottom = Math.max(a, l) * 0.125, r.value.padding.left = Math.max(a, l) * 0.125, r.value.minRadius = Math.min(a, l) * 0.125;
|
|
90
91
|
});
|
|
91
|
-
|
|
92
|
+
V.value = new ResizeObserver(o), V.value.observe(T.value.parentNode);
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
Ue(() => {
|
|
96
|
+
V.value && V.value.disconnect();
|
|
96
97
|
});
|
|
97
|
-
const
|
|
98
|
+
const c = v(() => ({
|
|
98
99
|
top: r.value.padding.top,
|
|
99
100
|
left: r.value.padding.left,
|
|
100
101
|
right: r.value.width - r.value.padding.right,
|
|
@@ -105,7 +106,7 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
105
106
|
height: r.value.height - r.value.padding.bottom - r.value.padding.top,
|
|
106
107
|
minRadius: r.value.minRadius,
|
|
107
108
|
maxRadius: Math.min(r.value.width, r.value.height) - r.value.padding.top * 2
|
|
108
|
-
})),
|
|
109
|
+
})), d = v(() => (k.dataset.forEach((t, o) => {
|
|
109
110
|
[null, void 0].includes(t.name) && J({
|
|
110
111
|
componentName: "VueUiOnion",
|
|
111
112
|
type: "datasetSerieAttribute",
|
|
@@ -123,86 +124,86 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
123
124
|
...t,
|
|
124
125
|
percentage: t.percentage || 0,
|
|
125
126
|
targetPercentage: t.percentage || 0,
|
|
126
|
-
color:
|
|
127
|
+
color: Qe(t.color) || Se.value[o] || we[o],
|
|
127
128
|
id: a,
|
|
128
129
|
shape: "circle",
|
|
129
130
|
opacity: y.value.includes(a) ? 0.5 : 1,
|
|
130
131
|
absoluteIndex: o,
|
|
131
|
-
segregate: () =>
|
|
132
|
+
segregate: () => pe(a),
|
|
132
133
|
isSegregated: y.value.includes(a)
|
|
133
134
|
};
|
|
134
|
-
}))), A = s(
|
|
135
|
-
|
|
136
|
-
function
|
|
137
|
-
if (
|
|
135
|
+
}))), A = s(d.value), Me = v(() => e.value.useStartAnimation), Fe = s(null), Ne = v(() => Math.max(...d.value.map((t) => t.percentage))), G = s(!1);
|
|
136
|
+
ke(() => d.value, Re, { immediate: !0 });
|
|
137
|
+
function Re() {
|
|
138
|
+
if (Me.value && !G.value) {
|
|
138
139
|
let o = function() {
|
|
139
|
-
t >=
|
|
140
|
+
t >= Ne.value ? (cancelAnimationFrame(Fe.value), A.value = d.value, G.value = !0) : (A.value = d.value.map((a) => ({
|
|
140
141
|
...a,
|
|
141
142
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
142
143
|
})), t += 1, requestAnimationFrame(o), G.value = !0);
|
|
143
144
|
};
|
|
144
|
-
A.value =
|
|
145
|
+
A.value = d.value.map((a) => ({
|
|
145
146
|
...a,
|
|
146
147
|
percentage: 0
|
|
147
148
|
}));
|
|
148
149
|
let t = 0;
|
|
149
150
|
o();
|
|
150
151
|
} else
|
|
151
|
-
A.value =
|
|
152
|
+
A.value = d.value;
|
|
152
153
|
}
|
|
153
|
-
const
|
|
154
|
+
const De = v(() => ({
|
|
154
155
|
cy: "onion-div-legend",
|
|
155
156
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
156
157
|
color: e.value.style.chart.legend.color,
|
|
157
158
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
158
159
|
paddingBottom: 12,
|
|
159
160
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
160
|
-
})),
|
|
161
|
-
const t = Math.min(
|
|
161
|
+
})), Le = v(() => d.value.filter((t) => !y.value.includes(t.id)).length), w = v(() => {
|
|
162
|
+
const t = Math.min(c.value.width, c.value.height) / 2 / d.value.length;
|
|
162
163
|
return {
|
|
163
164
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
164
165
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
165
166
|
};
|
|
166
|
-
}), m =
|
|
167
|
-
const a = (
|
|
167
|
+
}), m = v(() => A.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
|
|
168
|
+
const a = (c.value.maxRadius - w.value.track) / Le.value / 2 * (1 + o), l = c.value.centerY - a;
|
|
168
169
|
return {
|
|
169
170
|
percentage: t.percentage || 0,
|
|
170
171
|
...t,
|
|
171
172
|
labelY: l,
|
|
172
173
|
radius: a,
|
|
173
|
-
path:
|
|
174
|
+
path: Ve(a, t.percentage || 0)
|
|
174
175
|
};
|
|
175
176
|
}));
|
|
176
|
-
function
|
|
177
|
-
const a = 2 * Math.PI * t, l = a * 0.75,
|
|
177
|
+
function Ve(t, o) {
|
|
178
|
+
const a = 2 * Math.PI * t, l = a * 0.75, g = `${l} ${a}`, I = l * (1 - o / 100);
|
|
178
179
|
return {
|
|
179
180
|
bgDashArray: `${l} ${a}`,
|
|
180
181
|
bgDashOffset: 0,
|
|
181
|
-
dashArray:
|
|
182
|
+
dashArray: g,
|
|
182
183
|
dashOffset: I,
|
|
183
184
|
fullOffset: 0,
|
|
184
185
|
active: `
|
|
185
|
-
M ${
|
|
186
|
+
M ${c.value.centerX},${c.value.centerY - t}
|
|
186
187
|
A ${t},${t} 0 1 1
|
|
187
|
-
${
|
|
188
|
+
${c.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${c.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
|
|
188
189
|
`.trim()
|
|
189
190
|
};
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t),
|
|
192
|
+
function pe(t) {
|
|
193
|
+
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Oe("selectLegend", m.value);
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
+
function ze() {
|
|
195
196
|
return m.value;
|
|
196
197
|
}
|
|
197
|
-
const
|
|
198
|
+
const E = v(() => {
|
|
198
199
|
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = m.value.map((a) => [
|
|
199
200
|
a.name,
|
|
200
201
|
a.percentage,
|
|
201
202
|
a.value
|
|
202
203
|
]);
|
|
203
204
|
return { head: t, body: o };
|
|
204
|
-
}),
|
|
205
|
-
const t =
|
|
205
|
+
}), z = v(() => {
|
|
206
|
+
const t = E.value.head, o = m.value.map((l) => [
|
|
206
207
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
207
208
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
208
209
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -221,42 +222,42 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
221
222
|
};
|
|
222
223
|
return { head: t, body: o, config: a, colNames: t };
|
|
223
224
|
});
|
|
224
|
-
function
|
|
225
|
-
|
|
226
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o =
|
|
227
|
-
|
|
225
|
+
function ge() {
|
|
226
|
+
Ee(() => {
|
|
227
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = E.value.head, a = E.value.body, l = t.concat([o]).concat(a), g = et(l);
|
|
228
|
+
tt({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
228
229
|
});
|
|
229
230
|
}
|
|
230
231
|
const b = s(void 0), _ = s(!1);
|
|
231
|
-
function
|
|
232
|
+
function Ye(t) {
|
|
232
233
|
_.value = t, Q.value += 1;
|
|
233
234
|
}
|
|
234
|
-
const
|
|
235
|
-
function
|
|
235
|
+
const H = s(null);
|
|
236
|
+
function ye({ datapoint: t, seriesIndex: o, show: a = !0 }) {
|
|
236
237
|
const l = t.absoluteIndex;
|
|
237
|
-
b.value = o,
|
|
238
|
+
b.value = o, H.value = {
|
|
238
239
|
datapoint: t,
|
|
239
240
|
seriesIndex: l,
|
|
240
|
-
series:
|
|
241
|
+
series: d.value,
|
|
241
242
|
config: e.value
|
|
242
243
|
}, L.value = a;
|
|
243
|
-
let
|
|
244
|
+
let g = "";
|
|
244
245
|
const I = e.value.style.chart.tooltip.customFormat;
|
|
245
|
-
if (
|
|
246
|
+
if (Ce(I) && at(() => I({
|
|
246
247
|
seriesIndex: l,
|
|
247
248
|
datapoint: t,
|
|
248
|
-
series:
|
|
249
|
+
series: d.value,
|
|
249
250
|
config: e.value
|
|
250
251
|
})))
|
|
251
252
|
X.value = I({
|
|
252
253
|
seriesIndex: l,
|
|
253
254
|
datapoint: t,
|
|
254
|
-
series:
|
|
255
|
+
series: d.value,
|
|
255
256
|
config: e.value
|
|
256
257
|
});
|
|
257
258
|
else {
|
|
258
|
-
const
|
|
259
|
-
|
|
259
|
+
const j = e.value.style.chart.tooltip.showPercentage, q = e.value.style.chart.tooltip.showValue;
|
|
260
|
+
g += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;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><span></span>${t.name}</span></div>`, g += `<div style="width:100%;text-align:left;"><b>${j ? R({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${j && q ? "(" : ""}${q ? K(
|
|
260
261
|
e.value.style.chart.layout.labels.value.formatter,
|
|
261
262
|
t.value,
|
|
262
263
|
R({
|
|
@@ -266,56 +267,58 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
266
267
|
r: e.value.style.chart.tooltip.roundingValue
|
|
267
268
|
}),
|
|
268
269
|
{ datapoint: t, seriesIndex: o }
|
|
269
|
-
) : ""}${
|
|
270
|
+
) : ""}${j && q ? ")" : ""}</div>`, X.value = `<div>${g}</div>`;
|
|
270
271
|
}
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function me() {
|
|
273
274
|
$.value.showTable = !$.value.showTable;
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
+
function be() {
|
|
276
277
|
$.value.showTooltip = !$.value.showTooltip;
|
|
277
278
|
}
|
|
278
|
-
const
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
const Y = s(!1);
|
|
280
|
+
function W() {
|
|
281
|
+
Y.value = !Y.value;
|
|
281
282
|
}
|
|
282
|
-
return
|
|
283
|
-
getData:
|
|
284
|
-
generatePdf:
|
|
285
|
-
generateCsv:
|
|
286
|
-
generateImage:
|
|
287
|
-
toggleTable:
|
|
288
|
-
toggleTooltip:
|
|
289
|
-
toggleAnnotator:
|
|
283
|
+
return _e({
|
|
284
|
+
getData: ze,
|
|
285
|
+
generatePdf: ve,
|
|
286
|
+
generateCsv: ge,
|
|
287
|
+
generateImage: he,
|
|
288
|
+
toggleTable: me,
|
|
289
|
+
toggleTooltip: be,
|
|
290
|
+
toggleAnnotator: W
|
|
290
291
|
}), (t, o) => (n(), u("div", {
|
|
291
|
-
class:
|
|
292
|
+
class: B(`vue-ui-onion ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
292
293
|
ref_key: "onionChart",
|
|
293
294
|
ref: T,
|
|
294
295
|
id: `vue-ui-onion_${x.value}`,
|
|
295
|
-
style:
|
|
296
|
+
style: U(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
297
|
+
onMouseenter: o[4] || (o[4] = () => i(se)(!0)),
|
|
298
|
+
onMouseleave: o[5] || (o[5] = () => i(se)(!1))
|
|
296
299
|
}, [
|
|
297
|
-
e.value.userOptions.buttons.annotator ? (n(), C(
|
|
300
|
+
e.value.userOptions.buttons.annotator ? (n(), C(ft, {
|
|
298
301
|
key: 0,
|
|
299
302
|
parent: T.value,
|
|
300
303
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
301
304
|
color: e.value.style.chart.color,
|
|
302
|
-
active:
|
|
303
|
-
onClose:
|
|
304
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
305
|
-
|
|
305
|
+
active: Y.value,
|
|
306
|
+
onClose: W
|
|
307
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : p("", !0),
|
|
308
|
+
Ie.value ? (n(), u("div", {
|
|
306
309
|
key: 1,
|
|
307
310
|
ref_key: "noTitle",
|
|
308
311
|
ref: ae,
|
|
309
312
|
class: "vue-data-ui-no-title-space",
|
|
310
313
|
style: "height:36px; width: 100%;background:transparent"
|
|
311
|
-
}, null, 512)) :
|
|
314
|
+
}, null, 512)) : p("", !0),
|
|
312
315
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
313
316
|
key: 2,
|
|
314
317
|
ref_key: "chartTitle",
|
|
315
318
|
ref: Z,
|
|
316
319
|
style: "width:100%;background:transparent"
|
|
317
320
|
}, [
|
|
318
|
-
(n(), C(
|
|
321
|
+
(n(), C(rt, {
|
|
319
322
|
key: `title_${le.value}`,
|
|
320
323
|
config: {
|
|
321
324
|
title: {
|
|
@@ -328,15 +331,15 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
328
331
|
}
|
|
329
332
|
}
|
|
330
333
|
}, null, 8, ["config"]))
|
|
331
|
-
], 512)) :
|
|
332
|
-
e.value.userOptions.show && D.value ? (n(), C(
|
|
334
|
+
], 512)) : p("", !0),
|
|
335
|
+
e.value.userOptions.show && D.value && (i(ue) || i(ne)) ? (n(), C(st, {
|
|
333
336
|
ref_key: "details",
|
|
334
|
-
ref:
|
|
337
|
+
ref: Ae,
|
|
335
338
|
key: `user_options${Q.value}`,
|
|
336
339
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
337
340
|
color: e.value.style.chart.color,
|
|
338
|
-
isImaging:
|
|
339
|
-
isPrinting:
|
|
341
|
+
isImaging: i(de),
|
|
342
|
+
isPrinting: i(ce),
|
|
340
343
|
uid: x.value,
|
|
341
344
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
342
345
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -350,15 +353,18 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
350
353
|
chartElement: T.value,
|
|
351
354
|
position: e.value.userOptions.position,
|
|
352
355
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
353
|
-
isAnnotation:
|
|
354
|
-
onToggleFullscreen:
|
|
355
|
-
onGeneratePdf:
|
|
356
|
-
onGenerateCsv:
|
|
357
|
-
onGenerateImage:
|
|
358
|
-
onToggleTable:
|
|
359
|
-
onToggleTooltip:
|
|
360
|
-
onToggleAnnotator:
|
|
361
|
-
|
|
356
|
+
isAnnotation: Y.value,
|
|
357
|
+
onToggleFullscreen: Ye,
|
|
358
|
+
onGeneratePdf: i(ve),
|
|
359
|
+
onGenerateCsv: ge,
|
|
360
|
+
onGenerateImage: i(he),
|
|
361
|
+
onToggleTable: me,
|
|
362
|
+
onToggleTooltip: be,
|
|
363
|
+
onToggleAnnotator: W,
|
|
364
|
+
style: U({
|
|
365
|
+
visibility: i(ue) ? i(ne) ? "visible" : "hidden" : "visible"
|
|
366
|
+
})
|
|
367
|
+
}, Xe({ _: 2 }, [
|
|
362
368
|
t.$slots.optionTooltip ? {
|
|
363
369
|
name: "optionTooltip",
|
|
364
370
|
fn: h(() => [
|
|
@@ -397,29 +403,29 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
397
403
|
t.$slots.optionFullscreen ? {
|
|
398
404
|
name: "optionFullscreen",
|
|
399
405
|
fn: h(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
400
|
-
f(t.$slots, "optionFullscreen", S(
|
|
406
|
+
f(t.$slots, "optionFullscreen", S(M({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
401
407
|
]),
|
|
402
408
|
key: "5"
|
|
403
409
|
} : void 0,
|
|
404
410
|
t.$slots.optionAnnotator ? {
|
|
405
411
|
name: "optionAnnotator",
|
|
406
412
|
fn: h(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
407
|
-
f(t.$slots, "optionAnnotator", S(
|
|
413
|
+
f(t.$slots, "optionAnnotator", S(M({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
408
414
|
]),
|
|
409
415
|
key: "6"
|
|
410
416
|
} : void 0
|
|
411
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) :
|
|
417
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
412
418
|
D.value ? (n(), u("svg", {
|
|
413
419
|
key: 4,
|
|
414
|
-
xmlns:
|
|
415
|
-
class:
|
|
420
|
+
xmlns: i(Ze),
|
|
421
|
+
class: B({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
416
422
|
viewBox: `0 0 ${r.value.width <= 0 ? 1e-4 : r.value.width} ${r.value.height <= 0 ? 1e-4 : r.value.height}`,
|
|
417
|
-
style:
|
|
423
|
+
style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
418
424
|
}, [
|
|
419
|
-
|
|
420
|
-
(n(!0), u(
|
|
421
|
-
cx:
|
|
422
|
-
cy:
|
|
425
|
+
$e(ht),
|
|
426
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
427
|
+
cx: c.value.centerX,
|
|
428
|
+
cy: c.value.centerY,
|
|
423
429
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
424
430
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
425
431
|
"stroke-width": w.value.gutter,
|
|
@@ -427,22 +433,22 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
427
433
|
"stroke-dasharray": a.path.bgDashArray,
|
|
428
434
|
"stroke-dashoffset": a.path.fullOffset,
|
|
429
435
|
"stroke-linecap": "round",
|
|
430
|
-
class:
|
|
436
|
+
class: B({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(b.value) && b.value !== l }),
|
|
431
437
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
432
|
-
}, null, 10,
|
|
433
|
-
(n(!0), u(
|
|
434
|
-
cx:
|
|
435
|
-
cy:
|
|
438
|
+
}, null, 10, bt))), 256)),
|
|
439
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
440
|
+
cx: c.value.centerX,
|
|
441
|
+
cy: c.value.centerY,
|
|
436
442
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
437
443
|
stroke: `${a.color}`,
|
|
438
444
|
"stroke-width": w.value.track,
|
|
439
445
|
fill: "none",
|
|
440
446
|
"stroke-dasharray": a.path.dashArray,
|
|
441
447
|
"stroke-dashoffset": a.path.dashOffset,
|
|
442
|
-
class:
|
|
448
|
+
class: B({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(b.value) && b.value !== l }),
|
|
443
449
|
"stroke-linecap": "round",
|
|
444
450
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
445
|
-
}, null, 10,
|
|
451
|
+
}, null, 10, kt))), 256)),
|
|
446
452
|
O("defs", null, [
|
|
447
453
|
O("filter", {
|
|
448
454
|
id: `blur_${x.value}`,
|
|
@@ -454,16 +460,16 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
454
460
|
O("feGaussianBlur", {
|
|
455
461
|
in: "SourceGraphic",
|
|
456
462
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
457
|
-
}, null, 8,
|
|
458
|
-
], 8,
|
|
463
|
+
}, null, 8, wt)
|
|
464
|
+
], 8, $t)
|
|
459
465
|
]),
|
|
460
466
|
e.value.style.chart.useGradient ? (n(), u("g", {
|
|
461
467
|
key: 0,
|
|
462
468
|
filter: `url(#blur_${x.value})`
|
|
463
469
|
}, [
|
|
464
|
-
(n(!0), u(
|
|
465
|
-
cx:
|
|
466
|
-
cy:
|
|
470
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
471
|
+
cx: c.value.centerX,
|
|
472
|
+
cy: c.value.centerY,
|
|
467
473
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
468
474
|
stroke: "white",
|
|
469
475
|
"stroke-width": w.value.track / 3,
|
|
@@ -472,12 +478,12 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
472
478
|
"stroke-dasharray": a.path.dashArray,
|
|
473
479
|
"stroke-dashoffset": a.path.dashOffset,
|
|
474
480
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
475
|
-
}, null, 8,
|
|
476
|
-
], 8,
|
|
477
|
-
(n(!0), u(
|
|
481
|
+
}, null, 8, xt))), 256))
|
|
482
|
+
], 8, Ct)) : p("", !0),
|
|
483
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
478
484
|
"data-cy-trap": "",
|
|
479
|
-
cx:
|
|
480
|
-
cy:
|
|
485
|
+
cx: c.value.centerX,
|
|
486
|
+
cy: c.value.centerY,
|
|
481
487
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
482
488
|
stroke: "transparent",
|
|
483
489
|
"stroke-width": Math.max(w.value.track, w.value.gutter),
|
|
@@ -487,27 +493,27 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
487
493
|
"stroke-linecap": "round",
|
|
488
494
|
class: "vue-ui-onion-path",
|
|
489
495
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
|
|
490
|
-
onMouseenter: (
|
|
496
|
+
onMouseenter: (g) => ye({
|
|
491
497
|
datapoint: a,
|
|
492
498
|
show: !0,
|
|
493
499
|
seriesIndex: l
|
|
494
500
|
}),
|
|
495
|
-
onMouseleave: o[0] || (o[0] = (
|
|
501
|
+
onMouseleave: o[0] || (o[0] = (g) => {
|
|
496
502
|
b.value = void 0, L.value = !1;
|
|
497
503
|
})
|
|
498
|
-
}, null, 40,
|
|
499
|
-
e.value.style.chart.layout.labels.show ? (n(), u("g",
|
|
500
|
-
(n(!0), u(
|
|
501
|
-
onMouseenter: (
|
|
504
|
+
}, null, 40, Tt))), 256)),
|
|
505
|
+
e.value.style.chart.layout.labels.show ? (n(), u("g", _t, [
|
|
506
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("g", {
|
|
507
|
+
onMouseenter: (g) => ye({
|
|
502
508
|
datapoint: a,
|
|
503
509
|
show: !0,
|
|
504
510
|
seriesIndex: l
|
|
505
511
|
}),
|
|
506
|
-
onMouseleave: o[1] || (o[1] = (
|
|
512
|
+
onMouseleave: o[1] || (o[1] = (g) => {
|
|
507
513
|
b.value = void 0, L.value = !1;
|
|
508
514
|
})
|
|
509
515
|
}, [
|
|
510
|
-
y.value.includes(a.id) ?
|
|
516
|
+
y.value.includes(a.id) ? p("", !0) : (n(), u("text", {
|
|
511
517
|
key: 0,
|
|
512
518
|
x: r.value.width / 2 - w.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
513
519
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
@@ -515,39 +521,39 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
515
521
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
516
522
|
fill: e.value.useBlurOnHover && ![null, void 0].includes(b.value) && b.value === l ? a.color : e.value.style.chart.layout.labels.color,
|
|
517
523
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
518
|
-
}, P(a.name ? a.name + ": " : "") + " " + P(e.value.style.chart.layout.labels.percentage.show ?
|
|
524
|
+
}, P(a.name ? a.name + ": " : "") + " " + P(e.value.style.chart.layout.labels.percentage.show ? i(R)({
|
|
519
525
|
v: a.percentage,
|
|
520
526
|
s: "%",
|
|
521
527
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
522
|
-
}) : "") + " " + P(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${
|
|
528
|
+
}) : "") + " " + P(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${i(K)(
|
|
523
529
|
e.value.style.chart.layout.labels.value.formatter,
|
|
524
530
|
a.value,
|
|
525
|
-
|
|
531
|
+
i(R)({
|
|
526
532
|
p: a.prefix || "",
|
|
527
533
|
v: a.value || 0,
|
|
528
534
|
s: a.suffix || "",
|
|
529
535
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
530
536
|
}),
|
|
531
537
|
{ datapoint: a, seriesIndex: l }
|
|
532
|
-
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${
|
|
538
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${i(K)(
|
|
533
539
|
e.value.style.chart.layout.labels.value.formatter,
|
|
534
540
|
a.value,
|
|
535
|
-
|
|
541
|
+
i(R)({
|
|
536
542
|
p: a.prefix || "",
|
|
537
543
|
v: a.value || 0,
|
|
538
544
|
s: a.suffix || "",
|
|
539
545
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
540
546
|
}),
|
|
541
547
|
{ datapoint: a, seriesIndex: l }
|
|
542
|
-
)})` : ""}`), 9,
|
|
543
|
-
], 40,
|
|
544
|
-
])) :
|
|
548
|
+
)})` : ""}`), 9, Pt))
|
|
549
|
+
], 40, Ot))), 256))
|
|
550
|
+
])) : p("", !0),
|
|
545
551
|
f(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
546
|
-
], 14,
|
|
547
|
-
t.$slots.watermark ? (n(), u("div",
|
|
548
|
-
f(t.$slots, "watermark", S(
|
|
549
|
-
])) :
|
|
550
|
-
D.value ?
|
|
552
|
+
], 14, mt)) : p("", !0),
|
|
553
|
+
t.$slots.watermark ? (n(), u("div", At, [
|
|
554
|
+
f(t.$slots, "watermark", S(M({ isPrinting: i(ce) || i(de) })), void 0, !0)
|
|
555
|
+
])) : p("", !0),
|
|
556
|
+
D.value ? p("", !0) : (n(), C(dt, {
|
|
551
557
|
key: 6,
|
|
552
558
|
config: {
|
|
553
559
|
type: "onion",
|
|
@@ -563,23 +569,23 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
563
569
|
ref_key: "chartLegend",
|
|
564
570
|
ref: ee
|
|
565
571
|
}, [
|
|
566
|
-
e.value.style.chart.legend.show ? (n(), C(
|
|
572
|
+
e.value.style.chart.legend.show ? (n(), C(ut, {
|
|
567
573
|
key: `legend_${re.value}`,
|
|
568
|
-
legendSet:
|
|
569
|
-
config:
|
|
570
|
-
onClickMarker: o[2] || (o[2] = ({ legend: a }) =>
|
|
574
|
+
legendSet: d.value,
|
|
575
|
+
config: De.value,
|
|
576
|
+
onClickMarker: o[2] || (o[2] = ({ legend: a }) => pe(a.id))
|
|
571
577
|
}, {
|
|
572
578
|
item: h(({ legend: a }) => [
|
|
573
579
|
O("div", {
|
|
574
580
|
"data-cy-legend-item": "",
|
|
575
581
|
onClick: (l) => a.segregate(),
|
|
576
|
-
style:
|
|
577
|
-
}, P(a.name ? a.name + ": " : "") + " " + P((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13,
|
|
582
|
+
style: U(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
|
|
583
|
+
}, P(a.name ? a.name + ": " : "") + " " + P((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, It)
|
|
578
584
|
]),
|
|
579
585
|
_: 1
|
|
580
586
|
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
581
587
|
key: 1,
|
|
582
|
-
legend:
|
|
588
|
+
legend: d.value
|
|
583
589
|
}, void 0, !0)
|
|
584
590
|
], 512),
|
|
585
591
|
t.$slots.source ? (n(), u("div", {
|
|
@@ -589,8 +595,8 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
589
595
|
dir: "auto"
|
|
590
596
|
}, [
|
|
591
597
|
f(t.$slots, "source", {}, void 0, !0)
|
|
592
|
-
], 512)) :
|
|
593
|
-
|
|
598
|
+
], 512)) : p("", !0),
|
|
599
|
+
$e(ct, {
|
|
594
600
|
show: $.value.showTooltip && L.value,
|
|
595
601
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
596
602
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -604,17 +610,17 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
604
610
|
parent: T.value,
|
|
605
611
|
content: X.value,
|
|
606
612
|
isFullscreen: _.value,
|
|
607
|
-
isCustom:
|
|
613
|
+
isCustom: i(Ce)(e.value.style.chart.tooltip.customFormat)
|
|
608
614
|
}, {
|
|
609
615
|
"tooltip-before": h(() => [
|
|
610
|
-
f(t.$slots, "tooltip-before", S(
|
|
616
|
+
f(t.$slots, "tooltip-before", S(M({ ...H.value })), void 0, !0)
|
|
611
617
|
]),
|
|
612
618
|
"tooltip-after": h(() => [
|
|
613
|
-
f(t.$slots, "tooltip-after", S(
|
|
619
|
+
f(t.$slots, "tooltip-after", S(M({ ...H.value })), void 0, !0)
|
|
614
620
|
]),
|
|
615
621
|
_: 3
|
|
616
622
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
617
|
-
D.value ? (n(), C(
|
|
623
|
+
D.value ? (n(), C(vt, {
|
|
618
624
|
key: 8,
|
|
619
625
|
hideDetails: "",
|
|
620
626
|
config: {
|
|
@@ -631,29 +637,29 @@ const ht = ["id"], ft = ["xmlns", "viewBox"], gt = ["cx", "cy", "r", "stroke", "
|
|
|
631
637
|
}
|
|
632
638
|
}, {
|
|
633
639
|
content: h(() => [
|
|
634
|
-
(n(), C(
|
|
640
|
+
(n(), C(it, {
|
|
635
641
|
key: `table_${oe.value}`,
|
|
636
|
-
colNames:
|
|
637
|
-
head:
|
|
638
|
-
body:
|
|
639
|
-
config:
|
|
642
|
+
colNames: z.value.colNames,
|
|
643
|
+
head: z.value.head,
|
|
644
|
+
body: z.value.body,
|
|
645
|
+
config: z.value.config,
|
|
640
646
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
641
647
|
onClose: o[3] || (o[3] = (a) => $.value.showTable = !1)
|
|
642
648
|
}, {
|
|
643
649
|
th: h(({ th: a }) => [
|
|
644
|
-
|
|
650
|
+
Ge(P(a), 1)
|
|
645
651
|
]),
|
|
646
652
|
td: h(({ td: a }) => [
|
|
647
|
-
O("div", { innerHTML: a }, null, 8,
|
|
653
|
+
O("div", { innerHTML: a }, null, 8, St)
|
|
648
654
|
]),
|
|
649
655
|
_: 1
|
|
650
656
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
651
657
|
]),
|
|
652
658
|
_: 1
|
|
653
|
-
}, 8, ["config"])) :
|
|
654
|
-
],
|
|
659
|
+
}, 8, ["config"])) : p("", !0)
|
|
660
|
+
], 46, yt));
|
|
655
661
|
}
|
|
656
|
-
},
|
|
662
|
+
}, jt = /* @__PURE__ */ gt(Mt, [["__scopeId", "data-v-95f6d188"]]);
|
|
657
663
|
export {
|
|
658
|
-
|
|
664
|
+
jt as default
|
|
659
665
|
};
|