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,30 +1,31 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { D 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 d, ref as c, watch as ze, onMounted as Ze, onBeforeUnmount as et, openBlock as s, createElementBlock as n, normalizeClass as Ne, normalizeStyle as X, unref as v, createBlock as z, createCommentVNode as f, createSlots as tt, withCtx as b, renderSlot as g, normalizeProps as U, guardReactiveProps as G, createVNode as Be, createElementVNode as k, Fragment as I, renderList as R, toDisplayString as S, createTextVNode as Ve, nextTick as lt, pushScopeId as at, popScopeId as ot } from "vue";
|
|
2
|
+
import { u as ut, c as st, t as rt, a as nt, p as N, o as it, e as se, g as ct, b as vt, i as j, f as x, X as dt, s as ht, w as pt, G as yt, L as ft, d as gt, x as bt, y as mt, q as wt, r as kt } from "./index-BbPeL8Gp.js";
|
|
3
|
+
import { t as xt, u as Ct } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as _t } from "./Title-aSAft5dl.js";
|
|
5
|
+
import { u as $t, U as Tt } from "./usePrinter-DaybDVqP.js";
|
|
6
|
+
import { _ as It } from "./Tooltip-smutPF--.js";
|
|
7
|
+
import { D as St } from "./DataTable-DGf6RrOJ.js";
|
|
8
|
+
import { L as Pt } from "./Legend-BLaZxMge.js";
|
|
9
|
+
import Lt from "./vue-ui-skeleton-Bniq21d9.js";
|
|
10
|
+
import Ot from "./vue-ui-accordion-5d5iVpr7.js";
|
|
11
|
+
import { u as Me } from "./useNestedProp-BN8claGG.js";
|
|
12
|
+
import { _ as At } from "./PackageVersion-CxJghxYD.js";
|
|
13
|
+
import { P as Ft } from "./PenAndPaper-ZdZEumki.js";
|
|
14
|
+
import { u as zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = ["xmlns", "viewBox"], Mt = ["id"], Dt = ["stop-color"], Ut = ["stop-color"], Gt = ["id"], Rt = /* @__PURE__ */ De(() => /* @__PURE__ */ k("feGaussianBlur", {
|
|
16
17
|
in: "SourceGraphic",
|
|
17
18
|
stdDeviation: 2
|
|
18
|
-
}, null, -1)),
|
|
19
|
+
}, null, -1)), jt = /* @__PURE__ */ De(() => /* @__PURE__ */ k("feColorMatrix", {
|
|
19
20
|
type: "saturate",
|
|
20
21
|
values: "0"
|
|
21
|
-
}, null, -1)),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
],
|
|
22
|
+
}, null, -1)), Et = [
|
|
23
|
+
Rt,
|
|
24
|
+
jt
|
|
25
|
+
], Wt = ["x", "y", "height", "width"], qt = ["height", "width"], Ht = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Xt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Yt = ["x", "y", "height", "width", "filter"], Jt = { key: 0 }, Kt = { key: 1 }, Qt = { key: 2 }, Zt = { key: 3 }, el = ["onMouseover", "x", "y", "height", "width"], tl = {
|
|
25
26
|
key: 5,
|
|
26
27
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
28
|
+
}, ll = ["onClick"], al = { key: 0 }, ol = { key: 1 }, ul = ["innerHTML"], sl = {
|
|
28
29
|
__name: "vue-ui-waffle",
|
|
29
30
|
props: {
|
|
30
31
|
config: {
|
|
@@ -41,67 +42,67 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
emits: ["selectLegend"],
|
|
44
|
-
setup(E, { expose:
|
|
45
|
-
const
|
|
46
|
-
get: () =>
|
|
45
|
+
setup(E, { expose: Ue, emit: Ge }) {
|
|
46
|
+
const m = E, { vue_ui_waffle: Re } = ut(), Y = d(() => !!m.dataset && m.dataset.length), P = c(st()), je = c(null), ee = c(!1), te = c(""), B = c(null), re = c(0), V = c(null), ne = c(null), ie = c(null), ce = c(null), ve = c(null), de = c(0), he = c(0), pe = c(0), e = d({
|
|
47
|
+
get: () => be(),
|
|
47
48
|
set: (t) => t
|
|
48
|
-
});
|
|
49
|
-
function
|
|
50
|
-
const t =
|
|
51
|
-
userConfig:
|
|
52
|
-
defaultConfig:
|
|
49
|
+
}), { userOptionsVisible: ye, setUserOptionsVisibility: fe, keepUserOptionState: ge } = zt({ config: e.value });
|
|
50
|
+
function be() {
|
|
51
|
+
const t = Me({
|
|
52
|
+
userConfig: m.config,
|
|
53
|
+
defaultConfig: Re
|
|
53
54
|
});
|
|
54
55
|
return t.theme ? {
|
|
55
|
-
...
|
|
56
|
-
userConfig:
|
|
56
|
+
...Me({
|
|
57
|
+
userConfig: rt.vue_ui_waffle[t.theme] || m.config,
|
|
57
58
|
defaultConfig: t
|
|
58
59
|
}),
|
|
59
|
-
customPalette:
|
|
60
|
+
customPalette: nt[t.theme] || N
|
|
60
61
|
} : t;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
-
e.value =
|
|
63
|
+
ze(() => m.config, (t) => {
|
|
64
|
+
e.value = be(), me(), de.value += 1, he.value += 1, pe.value += 1;
|
|
64
65
|
}, { deep: !0 });
|
|
65
|
-
const
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
66
|
+
const J = c(null);
|
|
67
|
+
function me() {
|
|
68
|
+
if (it(m.dataset) ? se({
|
|
68
69
|
componentName: "VueUiWaffle",
|
|
69
70
|
type: "dataset"
|
|
70
|
-
}) :
|
|
71
|
-
|
|
71
|
+
}) : m.dataset.forEach((t, a) => {
|
|
72
|
+
ct({
|
|
72
73
|
datasetObject: t,
|
|
73
74
|
requiredAttributes: ["name", "values"]
|
|
74
|
-
}).forEach((
|
|
75
|
+
}).forEach((l) => {
|
|
75
76
|
se({
|
|
76
77
|
componentName: "VueUiWaffle",
|
|
77
78
|
type: "datasetSerieAttribute",
|
|
78
|
-
property:
|
|
79
|
-
index:
|
|
79
|
+
property: l,
|
|
80
|
+
index: a
|
|
80
81
|
});
|
|
81
82
|
});
|
|
82
83
|
}), e.value.responsive) {
|
|
83
|
-
const t =
|
|
84
|
-
const { width:
|
|
84
|
+
const t = xt(() => {
|
|
85
|
+
const { width: a, height: l } = Ct({
|
|
85
86
|
chart: V.value,
|
|
86
87
|
title: e.value.style.chart.title.text ? ne.value : null,
|
|
87
88
|
legend: e.value.style.chart.legend.show ? ie.value : null,
|
|
88
89
|
source: ce.value,
|
|
89
90
|
noTitle: ve.value
|
|
90
91
|
});
|
|
91
|
-
L.value.width =
|
|
92
|
+
L.value.width = a, L.value.height = l, C.value.width = a, C.value.height = l;
|
|
92
93
|
});
|
|
93
|
-
|
|
94
|
+
J.value = new ResizeObserver(t), J.value.observe(V.value.parentNode);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}),
|
|
99
|
-
|
|
97
|
+
Ze(() => {
|
|
98
|
+
me();
|
|
99
|
+
}), et(() => {
|
|
100
|
+
J.value && J.value.disconnect();
|
|
100
101
|
});
|
|
101
|
-
const { isPrinting:
|
|
102
|
+
const { isPrinting: we, isImaging: ke, generatePdf: xe, generateImage: Ce } = $t({
|
|
102
103
|
elementId: `vue-ui-waffle_${P.value}`,
|
|
103
104
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle"
|
|
104
|
-
}),
|
|
105
|
+
}), Ee = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), _e = d(() => vt(e.value.customPalette)), T = c({
|
|
105
106
|
showTable: e.value.table.show,
|
|
106
107
|
showTooltip: e.value.style.chart.tooltip.show
|
|
107
108
|
}), L = c({
|
|
@@ -112,230 +113,230 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
112
113
|
left: 0,
|
|
113
114
|
height: 512,
|
|
114
115
|
width: 512
|
|
115
|
-
}),
|
|
116
|
-
function
|
|
117
|
-
const
|
|
118
|
-
let y =
|
|
116
|
+
}), O = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), W = d(() => C.value.width / e.value.style.chart.layout.grid.size), K = d(() => C.value.height / e.value.style.chart.layout.grid.size);
|
|
117
|
+
function $e(t) {
|
|
118
|
+
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ue) => w + ue, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), i = o.map((w) => w % 1);
|
|
119
|
+
let y = a - u.reduce((w, ue) => w + ue, 0);
|
|
119
120
|
for (; y > 0; ) {
|
|
120
121
|
let w = i.indexOf(Math.max(...i));
|
|
121
122
|
u[w] += 1, i[w] = 0, y -= 1;
|
|
122
123
|
}
|
|
123
124
|
return u;
|
|
124
125
|
}
|
|
125
|
-
function
|
|
126
|
-
return
|
|
126
|
+
function Te() {
|
|
127
|
+
return m.dataset.map((t, a) => ({
|
|
127
128
|
...t,
|
|
128
|
-
color:
|
|
129
|
-
uid: `serie_${
|
|
130
|
-
absoluteIndex:
|
|
129
|
+
color: gt(t.color) || _e.value[a] || N[a] || N[a % N.length],
|
|
130
|
+
uid: `serie_${a}`,
|
|
131
|
+
absoluteIndex: a
|
|
131
132
|
}));
|
|
132
133
|
}
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
const Ie = d(() => Te()), h = c(Ie.value);
|
|
135
|
+
ze(() => m.dataset, (t) => {
|
|
136
|
+
h.value = Te();
|
|
136
137
|
}, { deep: !0 });
|
|
137
|
-
const
|
|
138
|
-
const t =
|
|
139
|
-
return
|
|
140
|
-
}),
|
|
141
|
-
const t =
|
|
142
|
-
return
|
|
143
|
-
}), q =
|
|
138
|
+
const We = d(() => {
|
|
139
|
+
const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
|
|
140
|
+
return $e(t);
|
|
141
|
+
}), qe = d(() => {
|
|
142
|
+
const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
|
|
143
|
+
return $e(t);
|
|
144
|
+
}), q = d(() => (m.dataset.forEach((t, a) => {
|
|
144
145
|
[null, void 0].includes(t.values) && se({
|
|
145
146
|
componentName: "VueUiWaffle",
|
|
146
147
|
type: "datasetSerieAttribute",
|
|
147
148
|
property: "values (number[])",
|
|
148
|
-
index:
|
|
149
|
+
index: a
|
|
149
150
|
});
|
|
150
|
-
}),
|
|
151
|
+
}), h.value.filter((t, a) => !p.value.includes(t.uid)).map((t, a) => ({
|
|
151
152
|
absoluteIndex: t.absoluteIndex,
|
|
152
153
|
uid: t.uid,
|
|
153
154
|
name: t.name,
|
|
154
155
|
color: t.color,
|
|
155
|
-
value: (t.values || []).reduce((
|
|
156
|
+
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
156
157
|
absoluteValues: t.values || [],
|
|
157
|
-
proportion:
|
|
158
|
-
})))),
|
|
158
|
+
proportion: We.value[a]
|
|
159
|
+
})))), He = d(() => h.value.map((t, a) => ({
|
|
159
160
|
absoluteIndex: t.absoluteIndex,
|
|
160
161
|
uid: t.uid,
|
|
161
162
|
name: t.name,
|
|
162
163
|
color: t.color,
|
|
163
|
-
value: (t.values || []).reduce((
|
|
164
|
+
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
164
165
|
absoluteValues: t.values || [],
|
|
165
|
-
proportion:
|
|
166
|
+
proportion: qe.value[a]
|
|
166
167
|
})));
|
|
167
|
-
function
|
|
168
|
-
return
|
|
168
|
+
function Xe() {
|
|
169
|
+
return He.value.map((t) => ({
|
|
169
170
|
name: t.name,
|
|
170
171
|
color: t.color,
|
|
171
172
|
value: t.value,
|
|
172
173
|
proportion: t.proportion
|
|
173
174
|
}));
|
|
174
175
|
}
|
|
175
|
-
const
|
|
176
|
+
const Ye = d(() => {
|
|
176
177
|
let t = 0;
|
|
177
|
-
return q.value.map((
|
|
178
|
-
const
|
|
179
|
-
for (let y = Math.floor(
|
|
178
|
+
return q.value.map((a, l) => {
|
|
179
|
+
const o = t, u = o + a.proportion, i = [];
|
|
180
|
+
for (let y = Math.floor(o); y < Math.floor(u); y += 1)
|
|
180
181
|
i.push(y);
|
|
181
182
|
return t = u, {
|
|
182
|
-
...
|
|
183
|
-
start:
|
|
183
|
+
...a,
|
|
184
|
+
start: o,
|
|
184
185
|
rects: i
|
|
185
186
|
};
|
|
186
187
|
});
|
|
187
|
-
}), r =
|
|
188
|
-
isFirst:
|
|
189
|
-
isLongEnough:
|
|
188
|
+
}), r = d(() => Ye.value.flatMap((t, a) => t.rects.map((l, o) => ({
|
|
189
|
+
isFirst: o === 0,
|
|
190
|
+
isLongEnough: l.length > 2,
|
|
190
191
|
name: t.name,
|
|
191
192
|
color: t.color,
|
|
192
193
|
value: t.value,
|
|
193
|
-
serieIndex:
|
|
194
|
-
absoluteStartIndex:
|
|
194
|
+
serieIndex: a,
|
|
195
|
+
absoluteStartIndex: o < 3,
|
|
195
196
|
serieId: t.uid,
|
|
196
197
|
...t
|
|
197
|
-
}))).map((t,
|
|
198
|
+
}))).map((t, a) => ({
|
|
198
199
|
...t,
|
|
199
|
-
isAbsoluteFirst:
|
|
200
|
-
}))), H =
|
|
200
|
+
isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
|
|
201
|
+
}))), H = d(() => {
|
|
201
202
|
const t = [];
|
|
202
|
-
for (let
|
|
203
|
-
for (let
|
|
203
|
+
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
204
|
+
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
204
205
|
t.push({
|
|
205
|
-
isStartOfLine:
|
|
206
|
-
position: e.value.style.chart.layout.grid.vertical ?
|
|
207
|
-
x: (e.value.style.chart.layout.grid.vertical ?
|
|
208
|
-
y: (e.value.style.chart.layout.grid.vertical ?
|
|
206
|
+
isStartOfLine: l === 0,
|
|
207
|
+
position: e.value.style.chart.layout.grid.vertical ? a : l,
|
|
208
|
+
x: (e.value.style.chart.layout.grid.vertical ? a : l) * (O.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
209
|
+
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + C.value.top
|
|
209
210
|
});
|
|
210
211
|
return t;
|
|
211
|
-
}), p = c([]),
|
|
212
|
-
function
|
|
212
|
+
}), p = c([]), F = c(!1), Se = c(null), Pe = c(null);
|
|
213
|
+
function Le(t) {
|
|
213
214
|
if (!e.value.useAnimation) {
|
|
214
215
|
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < M.value.length - 1 && M.value.length > 1 && p.value.push(t);
|
|
215
216
|
return;
|
|
216
217
|
}
|
|
217
|
-
const
|
|
218
|
-
let
|
|
218
|
+
const a = Ie.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0);
|
|
219
|
+
let o = h.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0);
|
|
219
220
|
if (p.value.includes(t)) {
|
|
220
221
|
let i = function() {
|
|
221
|
-
|
|
222
|
+
o > u ? (cancelAnimationFrame(Se.value), h.value = h.value.map((y, w) => y.uid === t ? {
|
|
222
223
|
...y,
|
|
223
224
|
values: [u]
|
|
224
|
-
} : y),
|
|
225
|
+
} : y), F.value = !1) : (F.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
|
|
225
226
|
...y,
|
|
226
|
-
values: [
|
|
227
|
-
} : y),
|
|
227
|
+
values: [o]
|
|
228
|
+
} : y), Se.value = requestAnimationFrame(i));
|
|
228
229
|
};
|
|
229
230
|
p.value = p.value.filter((y) => y !== t);
|
|
230
|
-
const u =
|
|
231
|
+
const u = a;
|
|
231
232
|
i();
|
|
232
233
|
} else if (p.value.length < M.value.length - 1 && M.value.length > 1) {
|
|
233
234
|
let u = function() {
|
|
234
|
-
|
|
235
|
+
o < 0.1 ? (cancelAnimationFrame(Pe.value), p.value.push(t), h.value = h.value.map((i, y) => i.uid === t ? {
|
|
235
236
|
...i,
|
|
236
237
|
values: [0]
|
|
237
|
-
} : i),
|
|
238
|
+
} : i), F.value = !1) : (F.value = !0, o /= 1.5, h.value = h.value.map((i, y) => i.uid === t ? {
|
|
238
239
|
...i,
|
|
239
|
-
values: [
|
|
240
|
-
} : i),
|
|
240
|
+
values: [o]
|
|
241
|
+
} : i), Pe.value = requestAnimationFrame(u));
|
|
241
242
|
};
|
|
242
243
|
u();
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
Ge("selectLegend", q.value.map((u) => ({
|
|
245
246
|
name: u.name,
|
|
246
247
|
color: u.color,
|
|
247
248
|
value: u.value,
|
|
248
249
|
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
249
250
|
})));
|
|
250
251
|
}
|
|
251
|
-
const M =
|
|
252
|
+
const M = d(() => h.value.map((t, a) => ({
|
|
252
253
|
name: t.name,
|
|
253
|
-
color: t.color ||
|
|
254
|
-
value: (t.values || []).reduce((
|
|
254
|
+
color: t.color || _e[a] || N[a] || N[a % N.length],
|
|
255
|
+
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
255
256
|
uid: t.uid,
|
|
256
257
|
shape: "square"
|
|
257
|
-
})).map((t,
|
|
258
|
+
})).map((t, a) => ({
|
|
258
259
|
...t,
|
|
259
|
-
proportion: t.value /
|
|
260
|
+
proportion: t.value / h.value.map((l) => (l.values || []).reduce((o, u) => o + u, 0)).reduce((l, o) => l + o, 0),
|
|
260
261
|
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
261
|
-
segregate: () =>
|
|
262
|
+
segregate: () => Le(t.uid),
|
|
262
263
|
isSegregated: p.value.includes(t.uid)
|
|
263
|
-
}))),
|
|
264
|
+
}))), Je = d(() => ({
|
|
264
265
|
cy: "waffle-div-legend",
|
|
265
266
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
266
267
|
color: e.value.style.chart.legend.color,
|
|
267
268
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
268
269
|
paddingBottom: 12,
|
|
269
270
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
270
|
-
})), _ =
|
|
271
|
-
function
|
|
272
|
-
if (p.value.length ===
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
datapoint:
|
|
276
|
-
seriesIndex:
|
|
277
|
-
series:
|
|
271
|
+
})), _ = d(() => q.value.map((t) => t.value).reduce((t, a) => t + a, 0)), le = c(null);
|
|
272
|
+
function Ke(t) {
|
|
273
|
+
if (p.value.length === m.dataset.length) return;
|
|
274
|
+
const a = r.value[t];
|
|
275
|
+
le.value = {
|
|
276
|
+
datapoint: a,
|
|
277
|
+
seriesIndex: a.absoluteIndex,
|
|
278
|
+
series: h.value,
|
|
278
279
|
config: e.value
|
|
279
280
|
}, ee.value = !0, B.value = r.value[t].serieIndex;
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
281
|
+
const l = e.value.style.chart.tooltip.customFormat;
|
|
282
|
+
if (bt(l) && mt(() => l({
|
|
282
283
|
seriesIndex: r.value[t].absoluteIndex,
|
|
283
|
-
datapoint:
|
|
284
|
-
series:
|
|
284
|
+
datapoint: a,
|
|
285
|
+
series: h.value,
|
|
285
286
|
config: e.value
|
|
286
287
|
})))
|
|
287
|
-
te.value =
|
|
288
|
+
te.value = l({
|
|
288
289
|
seriesIndex: r.value[t].absoluteIndex,
|
|
289
|
-
datapoint:
|
|
290
|
-
series:
|
|
290
|
+
datapoint: a,
|
|
291
|
+
series: h.value,
|
|
291
292
|
config: e.value
|
|
292
293
|
});
|
|
293
294
|
else {
|
|
294
|
-
let
|
|
295
|
-
if (
|
|
295
|
+
let o = "";
|
|
296
|
+
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" rx="1" fill="${a.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${j(
|
|
296
297
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
297
|
-
|
|
298
|
+
a.value,
|
|
298
299
|
x({
|
|
299
300
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
300
|
-
v:
|
|
301
|
+
v: a.value,
|
|
301
302
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
302
303
|
r: e.value.style.chart.tooltip.roundingValue
|
|
303
304
|
}),
|
|
304
305
|
{
|
|
305
|
-
datapoint:
|
|
306
|
+
datapoint: a,
|
|
306
307
|
seriesIndex: r.value[t].absoluteIndex,
|
|
307
|
-
series:
|
|
308
|
+
series: h.value
|
|
308
309
|
}
|
|
309
310
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
310
311
|
const u = x({
|
|
311
|
-
v:
|
|
312
|
+
v: a.value / _.value * 100,
|
|
312
313
|
s: "%",
|
|
313
314
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
314
315
|
});
|
|
315
|
-
e.value.style.chart.tooltip.showValue ?
|
|
316
|
+
e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
|
|
316
317
|
}
|
|
317
|
-
te.value =
|
|
318
|
+
te.value = o;
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
|
-
const $ =
|
|
321
|
-
const t = q.value.map((
|
|
322
|
-
name:
|
|
323
|
-
color:
|
|
324
|
-
})),
|
|
325
|
-
return { head: t, body:
|
|
321
|
+
const $ = d(() => {
|
|
322
|
+
const t = q.value.map((l) => ({
|
|
323
|
+
name: l.name,
|
|
324
|
+
color: l.color
|
|
325
|
+
})), a = q.value.map((l) => l.value);
|
|
326
|
+
return { head: t, body: a };
|
|
326
327
|
});
|
|
327
|
-
function
|
|
328
|
+
function ae(t) {
|
|
328
329
|
return e.value.useBlurOnHover && ![null, void 0].includes(B.value) && B.value !== t ? `url(#blur_${P.value})` : "";
|
|
329
330
|
}
|
|
330
|
-
function
|
|
331
|
-
|
|
332
|
-
const t = $.value.head.map((
|
|
333
|
-
|
|
334
|
-
], [$.value.body[u]], [isNaN($.value.body[u] / _.value) ? "-" : $.value.body[u] / _.value * 100]]),
|
|
335
|
-
|
|
331
|
+
function Oe() {
|
|
332
|
+
lt(() => {
|
|
333
|
+
const t = $.value.head.map((o, u) => [[
|
|
334
|
+
o.name
|
|
335
|
+
], [$.value.body[u]], [isNaN($.value.body[u] / _.value) ? "-" : $.value.body[u] / _.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = wt(a);
|
|
336
|
+
kt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
|
-
const
|
|
339
|
+
const Q = d(() => {
|
|
339
340
|
const t = [
|
|
340
341
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
341
342
|
j(
|
|
@@ -349,7 +350,7 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
349
350
|
})
|
|
350
351
|
),
|
|
351
352
|
"100%"
|
|
352
|
-
],
|
|
353
|
+
], a = $.value.head.map((u, i) => [
|
|
353
354
|
{
|
|
354
355
|
color: u.color,
|
|
355
356
|
name: u.name
|
|
@@ -369,7 +370,7 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
369
370
|
s: "%",
|
|
370
371
|
r: e.value.table.td.roundingPercentage
|
|
371
372
|
})
|
|
372
|
-
]),
|
|
373
|
+
]), l = {
|
|
373
374
|
th: {
|
|
374
375
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
375
376
|
color: e.value.table.th.color,
|
|
@@ -382,55 +383,57 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
382
383
|
},
|
|
383
384
|
shape: "square",
|
|
384
385
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
385
|
-
},
|
|
386
|
+
}, o = [
|
|
386
387
|
e.value.table.columnNames.series,
|
|
387
388
|
e.value.table.columnNames.value,
|
|
388
389
|
e.value.table.columnNames.percentage
|
|
389
390
|
];
|
|
390
391
|
return {
|
|
391
392
|
head: t,
|
|
392
|
-
body:
|
|
393
|
-
config:
|
|
394
|
-
colNames:
|
|
393
|
+
body: a,
|
|
394
|
+
config: l,
|
|
395
|
+
colNames: o
|
|
395
396
|
};
|
|
396
397
|
}), D = c(!1);
|
|
397
|
-
function
|
|
398
|
+
function Qe(t) {
|
|
398
399
|
D.value = t, re.value += 1;
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function Ae() {
|
|
401
402
|
T.value.showTable = !T.value.showTable;
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function Fe() {
|
|
404
405
|
T.value.showTooltip = !T.value.showTooltip;
|
|
405
406
|
}
|
|
406
|
-
const
|
|
407
|
+
const Z = c(!1);
|
|
407
408
|
function oe() {
|
|
408
|
-
|
|
409
|
+
Z.value = !Z.value;
|
|
409
410
|
}
|
|
410
|
-
return
|
|
411
|
-
getData:
|
|
412
|
-
generatePdf:
|
|
413
|
-
generateCsv:
|
|
414
|
-
generateImage:
|
|
415
|
-
toggleTable:
|
|
416
|
-
toggleTooltip:
|
|
411
|
+
return Ue({
|
|
412
|
+
getData: Xe,
|
|
413
|
+
generatePdf: xe,
|
|
414
|
+
generateCsv: Oe,
|
|
415
|
+
generateImage: Ce,
|
|
416
|
+
toggleTable: Ae,
|
|
417
|
+
toggleTooltip: Fe,
|
|
417
418
|
toggleAnnotator: oe
|
|
418
|
-
}), (t,
|
|
419
|
-
class:
|
|
419
|
+
}), (t, a) => (s(), n("div", {
|
|
420
|
+
class: Ne(`vue-ui-waffle ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
420
421
|
ref_key: "waffleChart",
|
|
421
422
|
ref: V,
|
|
422
423
|
id: `vue-ui-waffle_${P.value}`,
|
|
423
|
-
style:
|
|
424
|
+
style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
425
|
+
onMouseenter: a[3] || (a[3] = () => v(fe)(!0)),
|
|
426
|
+
onMouseleave: a[4] || (a[4] = () => v(fe)(!1))
|
|
424
427
|
}, [
|
|
425
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
428
|
+
e.value.userOptions.buttons.annotator ? (s(), z(Ft, {
|
|
426
429
|
key: 0,
|
|
427
430
|
parent: V.value,
|
|
428
431
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
429
432
|
color: e.value.style.chart.color,
|
|
430
|
-
active:
|
|
433
|
+
active: Z.value,
|
|
431
434
|
onClose: oe
|
|
432
435
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
433
|
-
|
|
436
|
+
Ee.value ? (s(), n("div", {
|
|
434
437
|
key: 1,
|
|
435
438
|
ref_key: "noTitle",
|
|
436
439
|
ref: ve,
|
|
@@ -443,7 +446,7 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
443
446
|
ref: ne,
|
|
444
447
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
445
448
|
}, [
|
|
446
|
-
(s(),
|
|
449
|
+
(s(), z(_t, {
|
|
447
450
|
key: `title_${de.value}`,
|
|
448
451
|
config: {
|
|
449
452
|
title: {
|
|
@@ -457,14 +460,14 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
457
460
|
}
|
|
458
461
|
}, null, 8, ["config"]))
|
|
459
462
|
], 512)) : f("", !0),
|
|
460
|
-
e.value.userOptions.show &&
|
|
463
|
+
e.value.userOptions.show && Y.value && (v(ge) || v(ye)) ? (s(), z(Tt, {
|
|
461
464
|
ref_key: "details",
|
|
462
|
-
ref:
|
|
465
|
+
ref: je,
|
|
463
466
|
key: `user_options_${re.value}`,
|
|
464
467
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
465
468
|
color: e.value.style.chart.color,
|
|
466
|
-
isPrinting:
|
|
467
|
-
isImaging:
|
|
469
|
+
isPrinting: v(we),
|
|
470
|
+
isImaging: v(ke),
|
|
468
471
|
uid: P.value,
|
|
469
472
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
470
473
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -478,91 +481,94 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
478
481
|
chartElement: V.value,
|
|
479
482
|
position: e.value.userOptions.position,
|
|
480
483
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
481
|
-
isAnnotation:
|
|
482
|
-
onToggleFullscreen:
|
|
483
|
-
onGeneratePdf:
|
|
484
|
-
onGenerateCsv:
|
|
485
|
-
onGenerateImage:
|
|
486
|
-
onToggleTable:
|
|
487
|
-
onToggleTooltip:
|
|
488
|
-
onToggleAnnotator: oe
|
|
489
|
-
|
|
484
|
+
isAnnotation: Z.value,
|
|
485
|
+
onToggleFullscreen: Qe,
|
|
486
|
+
onGeneratePdf: v(xe),
|
|
487
|
+
onGenerateCsv: Oe,
|
|
488
|
+
onGenerateImage: v(Ce),
|
|
489
|
+
onToggleTable: Ae,
|
|
490
|
+
onToggleTooltip: Fe,
|
|
491
|
+
onToggleAnnotator: oe,
|
|
492
|
+
style: X({
|
|
493
|
+
visibility: v(ge) ? v(ye) ? "visible" : "hidden" : "visible"
|
|
494
|
+
})
|
|
495
|
+
}, tt({ _: 2 }, [
|
|
490
496
|
t.$slots.optionTooltip ? {
|
|
491
497
|
name: "optionTooltip",
|
|
492
|
-
fn:
|
|
498
|
+
fn: b(() => [
|
|
493
499
|
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
494
500
|
]),
|
|
495
501
|
key: "0"
|
|
496
502
|
} : void 0,
|
|
497
503
|
t.$slots.optionPdf ? {
|
|
498
504
|
name: "optionPdf",
|
|
499
|
-
fn:
|
|
505
|
+
fn: b(() => [
|
|
500
506
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
501
507
|
]),
|
|
502
508
|
key: "1"
|
|
503
509
|
} : void 0,
|
|
504
510
|
t.$slots.optionCsv ? {
|
|
505
511
|
name: "optionCsv",
|
|
506
|
-
fn:
|
|
512
|
+
fn: b(() => [
|
|
507
513
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
508
514
|
]),
|
|
509
515
|
key: "2"
|
|
510
516
|
} : void 0,
|
|
511
517
|
t.$slots.optionImg ? {
|
|
512
518
|
name: "optionImg",
|
|
513
|
-
fn:
|
|
519
|
+
fn: b(() => [
|
|
514
520
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
515
521
|
]),
|
|
516
522
|
key: "3"
|
|
517
523
|
} : void 0,
|
|
518
524
|
t.$slots.optionTable ? {
|
|
519
525
|
name: "optionTable",
|
|
520
|
-
fn:
|
|
526
|
+
fn: b(() => [
|
|
521
527
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
522
528
|
]),
|
|
523
529
|
key: "4"
|
|
524
530
|
} : void 0,
|
|
525
531
|
t.$slots.optionFullscreen ? {
|
|
526
532
|
name: "optionFullscreen",
|
|
527
|
-
fn:
|
|
528
|
-
g(t.$slots, "optionFullscreen", G(
|
|
533
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
534
|
+
g(t.$slots, "optionFullscreen", U(G({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
529
535
|
]),
|
|
530
536
|
key: "5"
|
|
531
537
|
} : void 0,
|
|
532
538
|
t.$slots.optionAnnotator ? {
|
|
533
539
|
name: "optionAnnotator",
|
|
534
|
-
fn:
|
|
535
|
-
g(t.$slots, "optionAnnotator", G(
|
|
540
|
+
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
541
|
+
g(t.$slots, "optionAnnotator", U(G({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
536
542
|
]),
|
|
537
543
|
key: "6"
|
|
538
544
|
} : void 0
|
|
539
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
540
|
-
|
|
545
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
546
|
+
Y.value ? (s(), n("svg", {
|
|
541
547
|
key: 4,
|
|
542
|
-
xmlns:
|
|
543
|
-
class:
|
|
548
|
+
xmlns: v(dt),
|
|
549
|
+
class: Ne({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
544
550
|
viewBox: `0 0 ${L.value.width <= 0 ? 10 : L.value.width} ${L.value.height <= 0 ? 10 : L.value.height}`,
|
|
545
|
-
style:
|
|
551
|
+
style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
546
552
|
}, [
|
|
547
|
-
|
|
553
|
+
Be(At),
|
|
548
554
|
k("defs", null, [
|
|
549
|
-
(s(!0), n(I, null,
|
|
555
|
+
(s(!0), n(I, null, R(r.value, (l, o) => (s(), n("radialGradient", {
|
|
550
556
|
cx: "50%",
|
|
551
557
|
cy: "50%",
|
|
552
558
|
r: "50%",
|
|
553
559
|
fx: "50%",
|
|
554
560
|
fy: "50%",
|
|
555
|
-
id: `gradient_${P.value}_${
|
|
561
|
+
id: `gradient_${P.value}_${o}`
|
|
556
562
|
}, [
|
|
557
563
|
k("stop", {
|
|
558
564
|
offset: "0%",
|
|
559
|
-
"stop-color":
|
|
560
|
-
}, null, 8,
|
|
565
|
+
"stop-color": v(ht)(v(pt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
566
|
+
}, null, 8, Dt),
|
|
561
567
|
k("stop", {
|
|
562
568
|
offset: "100%",
|
|
563
|
-
"stop-color":
|
|
564
|
-
}, null, 8,
|
|
565
|
-
], 8,
|
|
569
|
+
"stop-color": l.color
|
|
570
|
+
}, null, 8, Ut)
|
|
571
|
+
], 8, Mt))), 256))
|
|
566
572
|
]),
|
|
567
573
|
k("defs", null, [
|
|
568
574
|
k("filter", {
|
|
@@ -571,17 +577,17 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
571
577
|
y: "-50%",
|
|
572
578
|
width: "200%",
|
|
573
579
|
height: "200%"
|
|
574
|
-
},
|
|
580
|
+
}, Et, 8, Gt)
|
|
575
581
|
]),
|
|
576
|
-
e.value.useCustomCells && r.value.length ? (s(!0), n(I, { key: 0 },
|
|
577
|
-
x:
|
|
578
|
-
y:
|
|
579
|
-
height:
|
|
580
|
-
width:
|
|
582
|
+
e.value.useCustomCells && r.value.length ? (s(!0), n(I, { key: 0 }, R(H.value, (l, o) => (s(), n("foreignObject", {
|
|
583
|
+
x: l.x,
|
|
584
|
+
y: l.y,
|
|
585
|
+
height: A.value <= 0 ? 1e-4 : A.value,
|
|
586
|
+
width: O.value <= 0 ? 1e-4 : O.value,
|
|
581
587
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
582
588
|
}, [
|
|
583
|
-
g(t.$slots, "cell", G(
|
|
584
|
-
], 8,
|
|
589
|
+
g(t.$slots, "cell", U(G({ cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(B.value) ? !0 : r.value[o].serieIndex === B.value })), void 0, !0)
|
|
590
|
+
], 8, Wt))), 256)) : f("", !0),
|
|
585
591
|
!r.value.length && !e.value.useCustomCells ? (s(), n("rect", {
|
|
586
592
|
key: 1,
|
|
587
593
|
x: 12,
|
|
@@ -591,88 +597,88 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
591
597
|
rx: 3,
|
|
592
598
|
fill: "none",
|
|
593
599
|
stroke: "black"
|
|
594
|
-
}, null, 8,
|
|
595
|
-
(s(!0), n(I, null,
|
|
600
|
+
}, null, 8, qt)) : r.value.length && !e.value.useCustomCells ? (s(), n(I, { key: 2 }, [
|
|
601
|
+
(s(!0), n(I, null, R(H.value, (l, o) => (s(), n("rect", {
|
|
596
602
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
597
|
-
x:
|
|
598
|
-
y:
|
|
599
|
-
height:
|
|
600
|
-
width:
|
|
603
|
+
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
604
|
+
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
605
|
+
height: A.value <= 0 ? 1e-4 : A.value,
|
|
606
|
+
width: O.value <= 0 ? 1e-4 : O.value,
|
|
601
607
|
fill: "white",
|
|
602
608
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
603
609
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
604
|
-
filter:
|
|
605
|
-
}, null, 8,
|
|
606
|
-
(s(!0), n(I, null,
|
|
610
|
+
filter: ae(r.value[o].serieIndex)
|
|
611
|
+
}, null, 8, Ht))), 256)),
|
|
612
|
+
(s(!0), n(I, null, R(H.value, (l, o) => (s(), n("rect", {
|
|
607
613
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
608
|
-
x:
|
|
609
|
-
y:
|
|
610
|
-
height:
|
|
611
|
-
width:
|
|
612
|
-
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${P.value}_${
|
|
614
|
+
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
615
|
+
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
616
|
+
height: A.value <= 0 ? 1e-4 : A.value,
|
|
617
|
+
width: O.value <= 0 ? 1e-4 : O.value,
|
|
618
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${P.value}_${o})` : r.value[o].color,
|
|
613
619
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
614
620
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
615
|
-
filter:
|
|
616
|
-
}, null, 8,
|
|
621
|
+
filter: ae(r.value[o].serieIndex)
|
|
622
|
+
}, null, 8, Xt))), 256))
|
|
617
623
|
], 64)) : f("", !0),
|
|
618
|
-
(s(!0), n(I, null,
|
|
619
|
-
r.value.length && !
|
|
624
|
+
(s(!0), n(I, null, R(H.value, (l, o) => (s(), n(I, null, [
|
|
625
|
+
r.value.length && !F.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (r.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || r.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && r.value[o].absoluteStartIndex) ? (s(), n("foreignObject", {
|
|
620
626
|
key: 0,
|
|
621
|
-
x:
|
|
622
|
-
y:
|
|
623
|
-
height:
|
|
627
|
+
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
628
|
+
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
629
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
624
630
|
width: W.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : W.value * e.value.style.chart.layout.grid.size,
|
|
625
|
-
filter:
|
|
631
|
+
filter: ae(r.value[o].serieIndex)
|
|
626
632
|
}, [
|
|
627
633
|
k("div", {
|
|
628
634
|
class: "vue-ui-waffle-caption",
|
|
629
|
-
style:
|
|
635
|
+
style: X(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${W.value / 12}px;color:${v(yt)(r.value[o].color)};gap:2px`)
|
|
630
636
|
}, [
|
|
631
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), n("span",
|
|
632
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), n("span",
|
|
633
|
-
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span",
|
|
637
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), n("span", Jt, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? v(ft)({ source: r.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[o].name) + ": ", 1)) : f("", !0),
|
|
638
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), n("span", Kt, S(v(x)({ v: r.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
|
|
639
|
+
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", Qt, " (" + S(v(j)(
|
|
634
640
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
635
|
-
r.value[
|
|
636
|
-
|
|
641
|
+
r.value[o].value,
|
|
642
|
+
v(x)({
|
|
637
643
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
638
|
-
v: r.value[
|
|
644
|
+
v: r.value[o].value,
|
|
639
645
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
640
646
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
641
647
|
}),
|
|
642
|
-
{ datapoint: r.value[
|
|
648
|
+
{ datapoint: r.value[o], position: l }
|
|
643
649
|
)) + ") ", 1)) : f("", !0),
|
|
644
|
-
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span",
|
|
650
|
+
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", Zt, S(v(j)(
|
|
645
651
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
646
|
-
r.value[
|
|
647
|
-
|
|
652
|
+
r.value[o].value,
|
|
653
|
+
v(x)({
|
|
648
654
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
649
|
-
v: r.value[
|
|
655
|
+
v: r.value[o].value,
|
|
650
656
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
651
657
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
652
658
|
}),
|
|
653
|
-
{ datapoint: r.value[
|
|
659
|
+
{ datapoint: r.value[o], position: l }
|
|
654
660
|
)), 1)) : f("", !0)
|
|
655
661
|
], 4)
|
|
656
|
-
], 8,
|
|
662
|
+
], 8, Yt)) : f("", !0)
|
|
657
663
|
], 64))), 256)),
|
|
658
|
-
(s(!0), n(I, null,
|
|
659
|
-
onMouseover: (u) =>
|
|
660
|
-
onMouseleave:
|
|
664
|
+
(s(!0), n(I, null, R(H.value, (l, o) => (s(), n("rect", {
|
|
665
|
+
onMouseover: (u) => Ke(o),
|
|
666
|
+
onMouseleave: a[0] || (a[0] = (u) => {
|
|
661
667
|
ee.value = !1, B.value = null;
|
|
662
668
|
}),
|
|
663
|
-
x:
|
|
664
|
-
y:
|
|
665
|
-
height:
|
|
669
|
+
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
670
|
+
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
671
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
666
672
|
width: W.value <= 0 ? 1e-4 : W.value,
|
|
667
673
|
fill: "transparent",
|
|
668
674
|
stroke: "none"
|
|
669
|
-
}, null, 40,
|
|
675
|
+
}, null, 40, el))), 256)),
|
|
670
676
|
g(t.$slots, "svg", { svg: L.value }, void 0, !0)
|
|
671
|
-
], 14,
|
|
672
|
-
t.$slots.watermark ? (s(), n("div",
|
|
673
|
-
g(t.$slots, "watermark", G(
|
|
677
|
+
], 14, Vt)) : f("", !0),
|
|
678
|
+
t.$slots.watermark ? (s(), n("div", tl, [
|
|
679
|
+
g(t.$slots, "watermark", U(G({ isPrinting: v(we) || v(ke) })), void 0, !0)
|
|
674
680
|
])) : f("", !0),
|
|
675
|
-
|
|
681
|
+
Y.value ? f("", !0) : (s(), z(Lt, {
|
|
676
682
|
key: 6,
|
|
677
683
|
config: {
|
|
678
684
|
type: "waffle",
|
|
@@ -688,31 +694,31 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
688
694
|
ref_key: "chartLegend",
|
|
689
695
|
ref: ie
|
|
690
696
|
}, [
|
|
691
|
-
e.value.style.chart.legend.show ? (s(),
|
|
697
|
+
e.value.style.chart.legend.show ? (s(), z(Pt, {
|
|
692
698
|
key: `legend_${pe.value}`,
|
|
693
699
|
legendSet: M.value,
|
|
694
|
-
config:
|
|
695
|
-
onClickMarker:
|
|
700
|
+
config: Je.value,
|
|
701
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => Le(l.uid))
|
|
696
702
|
}, {
|
|
697
|
-
item:
|
|
703
|
+
item: b(({ legend: l }) => [
|
|
698
704
|
k("div", {
|
|
699
|
-
onClick: (
|
|
700
|
-
style:
|
|
705
|
+
onClick: (o) => l.segregate(),
|
|
706
|
+
style: X(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
701
707
|
}, [
|
|
702
|
-
|
|
708
|
+
Ve(S(l.name) + ": " + S(v(j)(
|
|
703
709
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
704
|
-
|
|
705
|
-
|
|
710
|
+
l.value,
|
|
711
|
+
v(x)({
|
|
706
712
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
707
|
-
v:
|
|
713
|
+
v: l.value,
|
|
708
714
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
709
715
|
r: e.value.style.chart.legend.roundingValue,
|
|
710
|
-
isAnimating:
|
|
716
|
+
isAnimating: F.value
|
|
711
717
|
}),
|
|
712
|
-
{ datapoint:
|
|
718
|
+
{ datapoint: l }
|
|
713
719
|
)) + " ", 1),
|
|
714
|
-
p.value.includes(
|
|
715
|
-
], 12,
|
|
720
|
+
p.value.includes(l.uid) ? (s(), n("span", ol, " ( - % ) ")) : (s(), n("span", al, " (" + S(isNaN(l.value / _.value) ? "-" : v(x)({ v: l.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: F.value })) + ") ", 1))
|
|
721
|
+
], 12, ll)
|
|
716
722
|
]),
|
|
717
723
|
_: 1
|
|
718
724
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
@@ -728,8 +734,8 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
728
734
|
}, [
|
|
729
735
|
g(t.$slots, "source", {}, void 0, !0)
|
|
730
736
|
], 512)) : f("", !0),
|
|
731
|
-
|
|
732
|
-
show: T.value.showTooltip && ee.value && p.value.length <
|
|
737
|
+
Be(It, {
|
|
738
|
+
show: T.value.showTooltip && ee.value && p.value.length < m.dataset.length,
|
|
733
739
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
734
740
|
color: e.value.style.chart.tooltip.color,
|
|
735
741
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -744,15 +750,15 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
744
750
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
745
751
|
isFullscreen: D.value
|
|
746
752
|
}, {
|
|
747
|
-
"tooltip-before":
|
|
748
|
-
g(t.$slots, "tooltip-before", G(
|
|
753
|
+
"tooltip-before": b(() => [
|
|
754
|
+
g(t.$slots, "tooltip-before", U(G({ ...le.value })), void 0, !0)
|
|
749
755
|
]),
|
|
750
|
-
"tooltip-after":
|
|
751
|
-
g(t.$slots, "tooltip-after", G(
|
|
756
|
+
"tooltip-after": b(() => [
|
|
757
|
+
g(t.$slots, "tooltip-after", U(G({ ...le.value })), void 0, !0)
|
|
752
758
|
]),
|
|
753
759
|
_: 3
|
|
754
760
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
|
|
755
|
-
|
|
761
|
+
Y.value ? (s(), z(Ot, {
|
|
756
762
|
key: 8,
|
|
757
763
|
hideDetails: "",
|
|
758
764
|
config: {
|
|
@@ -768,33 +774,33 @@ const Be = (E) => (et("data-v-6c74341a"), E = E(), tt(), E), Ft = ["id"], zt = [
|
|
|
768
774
|
}
|
|
769
775
|
}
|
|
770
776
|
}, {
|
|
771
|
-
content:
|
|
772
|
-
(s(),
|
|
777
|
+
content: b(() => [
|
|
778
|
+
(s(), z(St, {
|
|
773
779
|
key: `table_${he.value}`,
|
|
774
|
-
colNames:
|
|
775
|
-
head:
|
|
776
|
-
body:
|
|
777
|
-
config:
|
|
780
|
+
colNames: Q.value.colNames,
|
|
781
|
+
head: Q.value.head,
|
|
782
|
+
body: Q.value.body,
|
|
783
|
+
config: Q.value.config,
|
|
778
784
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
779
|
-
onClose:
|
|
785
|
+
onClose: a[2] || (a[2] = (l) => T.value.showTable = !1)
|
|
780
786
|
}, {
|
|
781
|
-
th:
|
|
787
|
+
th: b(({ th: l }) => [
|
|
782
788
|
k("div", {
|
|
783
|
-
innerHTML:
|
|
789
|
+
innerHTML: l,
|
|
784
790
|
style: { display: "flex", "align-items": "center" }
|
|
785
|
-
}, null, 8,
|
|
791
|
+
}, null, 8, ul)
|
|
786
792
|
]),
|
|
787
|
-
td:
|
|
788
|
-
|
|
793
|
+
td: b(({ td: l }) => [
|
|
794
|
+
Ve(S(l.name || l), 1)
|
|
789
795
|
]),
|
|
790
796
|
_: 1
|
|
791
797
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
792
798
|
]),
|
|
793
799
|
_: 1
|
|
794
800
|
}, 8, ["config"])) : f("", !0)
|
|
795
|
-
],
|
|
801
|
+
], 46, Bt));
|
|
796
802
|
}
|
|
797
|
-
},
|
|
803
|
+
}, xl = /* @__PURE__ */ Nt(sl, [["__scopeId", "data-v-7fed69c0"]]);
|
|
798
804
|
export {
|
|
799
|
-
|
|
805
|
+
xl as default
|
|
800
806
|
};
|