vue-data-ui 2.4.89 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/{Arrow-CbP9kLxJ.cjs → Arrow-CDKNBZrn.cjs} +1 -1
- package/dist/{Arrow-CuAfInZx.js → Arrow-DO1Kr0tq.js} +1 -1
- package/dist/{BaseIcon-C8eZuK3O.cjs → BaseIcon-BKYwMJ4Y.cjs} +1 -1
- package/dist/{BaseIcon-BpNWrQFd.js → BaseIcon-DVY6e_YL.js} +4 -3
- package/dist/{DataTable-CBJXWv2y.js → DataTable-D4_TjSBJ.js} +2 -2
- package/dist/{DataTable-D-lEfCvI.cjs → DataTable-ZowHAjXC.cjs} +1 -1
- package/dist/{Legend-BHqhIxpn.cjs → Legend-CcoLuZn0.cjs} +1 -1
- package/dist/{Legend-BSpbp1BZ.js → Legend-K7NRkzGf.js} +2 -2
- package/dist/PackageVersion-Cun_qdX7.cjs +1 -0
- package/dist/{PackageVersion-DtBpSOiQ.js → PackageVersion-DKr8jVlI.js} +1 -1
- package/dist/{PenAndPaper-B2XkoPXE.js → PenAndPaper-CurhQVkh.js} +3 -3
- package/dist/{PenAndPaper-JJPSlM7l.cjs → PenAndPaper-u46MyY7W.cjs} +1 -1
- package/dist/{Shape-Do_AzV1G.cjs → Shape-B6dlN2je.cjs} +1 -1
- package/dist/{Shape-BOPYNx7w.js → Shape-C4LyHNQ3.js} +1 -1
- package/dist/{Slicer-Ztz1Ij0w.cjs → Slicer-BIzpsKb9.cjs} +1 -1
- package/dist/{Slicer-ChE3bif9.js → Slicer-CP2dQhd5.js} +2 -2
- package/dist/{Title-ccoiJ0mq.js → Title-C4aoNP1T.js} +1 -1
- package/dist/{Title-0PbYWvbk.cjs → Title-bDp_4dQV.cjs} +1 -1
- package/dist/{Tooltip-DvT_JgqK.js → Tooltip-CG6ZX21C.js} +1 -1
- package/dist/{Tooltip-yfpr967Z.cjs → Tooltip-fEuHWstj.cjs} +1 -1
- package/dist/documentation/installation.md +2 -1
- package/dist/index-CHCA909R.cjs +9 -0
- package/dist/{index-CbMgQMOZ.js → index-DAAFXQJj.js} +709 -542
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1140 -384
- package/dist/types/vue-data-ui.d.ts +1140 -384
- package/dist/{useNestedProp-BbHX6tgE.cjs → useNestedProp--1nKK7i0.cjs} +1 -1
- package/dist/{useNestedProp-vYrmxXEi.js → useNestedProp-DMtJzMiX.js} +1 -1
- package/dist/{usePrinter-sMoxYV4s.js → usePrinter-BvlefWMW.js} +1 -1
- package/dist/{usePrinter-CCvLCahd.cjs → usePrinter-xicwiw8r.cjs} +1 -1
- package/dist/{vue-data-ui-cjdjZcIN.js → vue-data-ui-59LZYiyy.js} +68 -66
- package/dist/vue-data-ui-DfZfDAuq.cjs +9 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +59 -58
- package/dist/{vue-ui-3d-bar-BCUFEN3E.js → vue-ui-3d-bar-Bm56SoLy.js} +41 -41
- package/dist/{vue-ui-3d-bar-BIxPk-3O.cjs → vue-ui-3d-bar-CZlGwiDq.cjs} +11 -11
- package/dist/{vue-ui-accordion-D0YEkQP_.cjs → vue-ui-accordion-B4PyxVUm.cjs} +1 -1
- package/dist/{vue-ui-accordion-DXPXhPPW.js → vue-ui-accordion-B67N9Oo8.js} +3 -3
- package/dist/vue-ui-age-pyramid-D9DN4SYa.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Bu2gLwi_.js → vue-ui-age-pyramid-DCMUbrYc.js} +12 -12
- package/dist/{vue-ui-annotator-np4TLsbB.cjs → vue-ui-annotator-CNrWYokB.cjs} +1 -1
- package/dist/{vue-ui-annotator-rRlHgjug.js → vue-ui-annotator-MuRFw529.js} +1 -1
- package/dist/{vue-ui-bullet-BG4ZoJWg.js → vue-ui-bullet-Bojb2p0l.js} +42 -42
- package/dist/vue-ui-bullet-DJjM56tB.cjs +34 -0
- package/dist/{vue-ui-candlestick-zm-vNhJF.cjs → vue-ui-candlestick-B3J5_Q_K.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bs_FB1xf.js → vue-ui-candlestick-DXMPVZ0k.js} +13 -13
- package/dist/{vue-ui-carousel-table-D73qjY94.js → vue-ui-carousel-table-CQAWsXet.js} +26 -26
- package/dist/vue-ui-carousel-table-WNkO6kVE.cjs +1 -0
- package/dist/{vue-ui-chestnut-BKka1suh.js → vue-ui-chestnut-CChxV7D2.js} +11 -11
- package/dist/{vue-ui-chestnut-BZ7WKn-P.cjs → vue-ui-chestnut-DUHyQSIc.cjs} +2 -2
- package/dist/vue-ui-circle-pack-Bo9NTyE5.cjs +1 -0
- package/dist/vue-ui-circle-pack-feW9MRNc.js +639 -0
- package/dist/{vue-ui-cursor-CKQ7lIEU.js → vue-ui-cursor-CTNCoeO1.js} +2 -2
- package/dist/{vue-ui-cursor-BvDKJ-EE.cjs → vue-ui-cursor-Y79oTXbN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CLDULZmZ.js → vue-ui-dashboard-CTk7cXk3.js} +2 -2
- package/dist/{vue-ui-dashboard-CU18bFKg.cjs → vue-ui-dashboard-ht0wjO32.cjs} +1 -1
- package/dist/{vue-ui-digits-_Q3BPnPQ.js → vue-ui-digits-CRfqQd-4.js} +2 -2
- package/dist/{vue-ui-digits-ZsDxljaT.cjs → vue-ui-digits-CSzsY3pv.cjs} +1 -1
- package/dist/{vue-ui-donut-uSvi7mes.js → vue-ui-donut-D6U1P8MA.js} +15 -15
- package/dist/vue-ui-donut-DhQt8Zro.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DeaRL3Qp.js → vue-ui-donut-evolution-BSk3uqC8.js} +42 -42
- package/dist/vue-ui-donut-evolution-ZOfJ13fG.cjs +1 -0
- package/dist/vue-ui-dumbbell-Cc2vQuKa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DxOC8F_T.js → vue-ui-dumbbell-DwNJ0t9t.js} +12 -12
- package/dist/vue-ui-flow-BbKP10ov.cjs +1 -0
- package/dist/{vue-ui-flow-Cli1Nia2.js → vue-ui-flow-CQisc_LK.js} +11 -11
- package/dist/{vue-ui-funnel-DUSetrwZ.js → vue-ui-funnel-DA82mX-l.js} +12 -12
- package/dist/vue-ui-funnel-DybxnhPr.cjs +1 -0
- package/dist/vue-ui-galaxy-C-hNndez.cjs +1 -0
- package/dist/{vue-ui-galaxy-B6chdxw9.js → vue-ui-galaxy-Co-39JiJ.js} +29 -29
- package/dist/{vue-ui-gauge-BWsStiRt.js → vue-ui-gauge-TvTF5LS6.js} +46 -46
- package/dist/vue-ui-gauge-gWdl5oo1.cjs +1 -0
- package/dist/{vue-ui-gizmo-CIZXKQaP.cjs → vue-ui-gizmo-BQoNUgtQ.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BwPZP3S1.js → vue-ui-gizmo-KnX0YMoX.js} +3 -3
- package/dist/vue-ui-heatmap-B5xnkUqI.cjs +1 -0
- package/dist/{vue-ui-heatmap-DPO0-7Kr.js → vue-ui-heatmap-BYhGn41t.js} +32 -32
- package/dist/{vue-ui-history-plot-Bn1Pt_Ti.js → vue-ui-history-plot-8n3FPjHp.js} +33 -33
- package/dist/vue-ui-history-plot-BFZOwwn-.cjs +1 -0
- package/dist/{vue-ui-kpi-DyI2-86Q.cjs → vue-ui-kpi-BRrkDdp5.cjs} +1 -1
- package/dist/{vue-ui-kpi-BbeBozJ_.js → vue-ui-kpi-r9o6PDR7.js} +3 -3
- package/dist/{vue-ui-mini-loader-DkkBYJla.cjs → vue-ui-mini-loader-BXBmMZE5.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BbXkCdaA.js → vue-ui-mini-loader-z5Tjy9_F.js} +2 -2
- package/dist/vue-ui-molecule-BS-uVTx6.cjs +1 -0
- package/dist/{vue-ui-molecule-b4smncqZ.js → vue-ui-molecule-Hmix0fg_.js} +13 -13
- package/dist/vue-ui-mood-radar-D3bJvAUA.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BdT3nuEz.js → vue-ui-mood-radar-cQQYzxOe.js} +13 -13
- package/dist/{vue-ui-nested-donuts-DttOstux.js → vue-ui-nested-donuts-BQ-orCsy.js} +14 -14
- package/dist/{vue-ui-nested-donuts-ko1-nRO2.cjs → vue-ui-nested-donuts-CJoByLIN.cjs} +2 -2
- package/dist/{vue-ui-onion-CFjFt2g0.cjs → vue-ui-onion-2gpWMiK3.cjs} +2 -2
- package/dist/{vue-ui-onion-TYSsqogk.js → vue-ui-onion-DMdgBAGm.js} +13 -13
- package/dist/{vue-ui-parallel-coordinate-plot-DzBoNAa1.cjs → vue-ui-parallel-coordinate-plot-BkksCptE.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CAqhUHot.js → vue-ui-parallel-coordinate-plot-CORjvdpu.js} +35 -35
- package/dist/{vue-ui-quadrant-BQH_Xifg.js → vue-ui-quadrant-C7z-xan4.js} +14 -14
- package/dist/vue-ui-quadrant-DwLVQDkC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CULnpCgG.js → vue-ui-quick-chart-BNBYa1qm.js} +9 -9
- package/dist/{vue-ui-quick-chart-Bz-nNd-y.cjs → vue-ui-quick-chart-DQ_0L2k8.cjs} +1 -1
- package/dist/{vue-ui-radar-Cx-rxEMq.js → vue-ui-radar-BJalnvQ0.js} +14 -14
- package/dist/vue-ui-radar-DMug3I3r.cjs +1 -0
- package/dist/{vue-ui-rating-BKQNJZ0P.cjs → vue-ui-rating-CAtmkCip.cjs} +1 -1
- package/dist/{vue-ui-rating-F9PTlU7Q.js → vue-ui-rating-YrpteNHP.js} +2 -2
- package/dist/vue-ui-relation-circle-6WgpxOdi.cjs +1 -0
- package/dist/{vue-ui-relation-circle-DegxFhlA.js → vue-ui-relation-circle-CaX6ryF7.js} +37 -37
- package/dist/{vue-ui-rings-fJvO6eX_.js → vue-ui-rings-B94ER7yb.js} +36 -36
- package/dist/{vue-ui-rings-B18Wqo7x.cjs → vue-ui-rings-DwXSWAh9.cjs} +2 -2
- package/dist/{vue-ui-scatter-nVMhmeVK.js → vue-ui-scatter-R_o-56au.js} +14 -14
- package/dist/vue-ui-scatter-klHezU7g.cjs +1 -0
- package/dist/{vue-ui-screenshot-CL_BGDeM.cjs → vue-ui-screenshot-BJBVXs5F.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DsGxjAas.js → vue-ui-screenshot-CawOtRGf.js} +1 -1
- package/dist/{vue-ui-skeleton-odlG21I6.js → vue-ui-skeleton-BM3ut-zl.js} +457 -377
- package/dist/vue-ui-skeleton-DsMIGHB3.cjs +41 -0
- package/dist/{vue-ui-smiley-CcM-XG7o.js → vue-ui-smiley-DX5k4pRq.js} +2 -2
- package/dist/{vue-ui-smiley-DjCnF05n.cjs → vue-ui-smiley-bh_FuZmP.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DbfmJnyG.js → vue-ui-spark-trend-BSLfkSAJ.js} +5 -5
- package/dist/{vue-ui-spark-trend-B3wvoHdy.cjs → vue-ui-spark-trend-N88_MES6.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DkwgnqvW.js → vue-ui-sparkbar-CgV-sv7t.js} +4 -4
- package/dist/{vue-ui-sparkbar-Unem3qlf.cjs → vue-ui-sparkbar-NRuy_wAW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CFNCtwjD.js → vue-ui-sparkgauge-YOs41cOi.js} +4 -4
- package/dist/{vue-ui-sparkgauge-1oonX7Pt.cjs → vue-ui-sparkgauge-h9hOQBbL.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BDq3T-6n.js → vue-ui-sparkhistogram-BHVoP35U.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C2FOzWbO.cjs → vue-ui-sparkhistogram-BIoA2rZ8.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BXCPWLbx.cjs → vue-ui-sparkline-C3lqwFGV.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDGqFfbA.js → vue-ui-sparkline-nIfo0etd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Crr9O93o.cjs → vue-ui-sparkstackbar-CBBZJlfz.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BGDxXx1H.js → vue-ui-sparkstackbar-CMH38Bht.js} +5 -5
- package/dist/{vue-ui-stackbar-CXVJgWTO.js → vue-ui-stackbar-CBzYWzrX.js} +15 -15
- package/dist/{vue-ui-stackbar-YULKQ4Q2.cjs → vue-ui-stackbar-CwwOCVW2.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-D-_BcZGB.js → vue-ui-strip-plot-3UZVAou8.js} +13 -13
- package/dist/vue-ui-strip-plot-Dp2kJ7iQ.cjs +1 -0
- package/dist/{vue-ui-table-DCR-izqY.cjs → vue-ui-table-B3s1IcfE.cjs} +1 -1
- package/dist/{vue-ui-table-BKMfZhPB.js → vue-ui-table-CDmWHO-z.js} +1 -1
- package/dist/vue-ui-table-heatmap-BsZvR-Zs.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-BYnl_vUh.js → vue-ui-table-heatmap-CZD0-bMz.js} +8 -8
- package/dist/vue-ui-table-sparkline-BqGa1gwS.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-C1Xx-B2E.js → vue-ui-table-sparkline-nCnQKAqx.js} +8 -8
- package/dist/{vue-ui-thermometer-Ba5L3NM-.js → vue-ui-thermometer-Be7yQtd0.js} +12 -12
- package/dist/vue-ui-thermometer-dk2T8fWc.cjs +1 -0
- package/dist/{vue-ui-timer-CrJJnZKN.js → vue-ui-timer-B7jYXTxP.js} +5 -5
- package/dist/{vue-ui-timer-BLM1ZnqH.cjs → vue-ui-timer-DMPyhmkw.cjs} +1 -1
- package/dist/vue-ui-tiremarks-B2YzKOZ9.cjs +1 -0
- package/dist/{vue-ui-tiremarks-C0FaGxaE.js → vue-ui-tiremarks-BysMKDiL.js} +9 -9
- package/dist/vue-ui-treemap-BgPQTI0-.cjs +1 -0
- package/dist/{vue-ui-treemap-DUUBok0Z.js → vue-ui-treemap-CVEo4sPM.js} +40 -40
- package/dist/{vue-ui-vertical-bar-DGSL6lGQ.js → vue-ui-vertical-bar-DqNS7Ash.js} +36 -36
- package/dist/{vue-ui-vertical-bar-qY3NE5sf.cjs → vue-ui-vertical-bar-tR8BBtIQ.cjs} +2 -2
- package/dist/vue-ui-waffle-CNIMp_6k.cjs +1 -0
- package/dist/{vue-ui-waffle-DeDjMqj4.js → vue-ui-waffle-pwRzgt1I.js} +40 -40
- package/dist/{vue-ui-wheel-D2pWanO3.js → vue-ui-wheel-U-zWCCQP.js} +18 -18
- package/dist/vue-ui-wheel-yVszAJvl.cjs +1 -0
- package/dist/vue-ui-word-cloud-D2bvq4zl.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DDubuSNu.js → vue-ui-word-cloud-RI8RK0o-.js} +38 -38
- package/dist/{vue-ui-xy-DvaJ_oyE.js → vue-ui-xy-BqbnfSBo.js} +14 -14
- package/dist/{vue-ui-xy-BKEjcTkg.cjs → vue-ui-xy-Iprttv_w.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CgzTusyc.cjs → vue-ui-xy-canvas-7QgtFfPE.cjs} +3 -3
- package/dist/{vue-ui-xy-canvas-DpTDw8Rv.js → vue-ui-xy-canvas-CauFtYWC.js} +13 -13
- package/package.json +3 -2
- package/dist/PackageVersion-fh_T3pry.cjs +0 -1
- package/dist/index-DHTOdsmm.cjs +0 -9
- package/dist/vue-data-ui-B4yl-5k7.cjs +0 -9
- package/dist/vue-ui-age-pyramid-JUp6_DQU.cjs +0 -1
- package/dist/vue-ui-bullet-DuPHT9m_.cjs +0 -34
- package/dist/vue-ui-carousel-table-CVlt3x_V.cjs +0 -1
- package/dist/vue-ui-donut-BTLM3pc-.cjs +0 -1
- package/dist/vue-ui-donut-evolution-B9b0VDlt.cjs +0 -1
- package/dist/vue-ui-dumbbell-D0-fNbuR.cjs +0 -9
- package/dist/vue-ui-flow-CVX1Booa.cjs +0 -1
- package/dist/vue-ui-funnel-CkrA8ZGZ.cjs +0 -1
- package/dist/vue-ui-galaxy-XLY4fBs_.cjs +0 -1
- package/dist/vue-ui-gauge-DKv2V1ZR.cjs +0 -1
- package/dist/vue-ui-heatmap-DpZM0Il7.cjs +0 -1
- package/dist/vue-ui-history-plot-DyTTxsEC.cjs +0 -1
- package/dist/vue-ui-molecule-CVg3G3jq.cjs +0 -1
- package/dist/vue-ui-mood-radar-bRCa4Y3L.cjs +0 -1
- package/dist/vue-ui-quadrant-Cx1wlTvP.cjs +0 -1
- package/dist/vue-ui-radar-gWd0pEpW.cjs +0 -1
- package/dist/vue-ui-relation-circle-B3PfO20q.cjs +0 -1
- package/dist/vue-ui-scatter-ZJO-zIjS.cjs +0 -1
- package/dist/vue-ui-skeleton-BZDfN8kq.cjs +0 -41
- package/dist/vue-ui-strip-plot-D2tY6IaY.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BQk6Gd_E.cjs +0 -1
- package/dist/vue-ui-table-sparkline-Fk2HnXUF.cjs +0 -1
- package/dist/vue-ui-thermometer-CUa9blx-.cjs +0 -1
- package/dist/vue-ui-tiremarks-C0ic3lVR.cjs +0 -1
- package/dist/vue-ui-treemap-C7lv9JcH.cjs +0 -1
- package/dist/vue-ui-waffle-lANO8NSp.cjs +0 -1
- package/dist/vue-ui-wheel-yw94VIYd.cjs +0 -1
- package/dist/vue-ui-word-cloud-BQuOLoHD.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as T, ref as j, watch as Ue, onMounted as Ee, openBlock as n, createElementBlock as i, normalizeClass as Pe, normalizeStyle as D, unref as d, createBlock as G, createCommentVNode as y, createSlots as He, withCtx as
|
|
2
|
-
import { u as Je, c as Se, t as Ke, a as Qe, p as Q, b as et, d as tt, o as lt, e as ee, g as de, l as U, m as je, f as z, X as ot, s as g, h as te, i as le, j as Te, k as I, n as oe, q as st, r as at } from "./index-
|
|
3
|
-
import { _ as nt } from "./Title-
|
|
4
|
-
import { u as rt, U as ut } from "./usePrinter-
|
|
5
|
-
import it from "./vue-ui-skeleton-
|
|
6
|
-
import { D as dt } from "./DataTable-
|
|
7
|
-
import ct from "./vue-ui-accordion-
|
|
8
|
-
import { u as ze } from "./useNestedProp-
|
|
9
|
-
import { _ as ht } from "./PackageVersion-
|
|
10
|
-
import { P as vt } from "./PenAndPaper-
|
|
1
|
+
import { computed as T, ref as j, watch as Ue, onMounted as Ee, openBlock as n, createElementBlock as i, normalizeClass as Pe, normalizeStyle as D, unref as d, createBlock as G, createCommentVNode as y, createSlots as He, withCtx as O, renderSlot as S, normalizeProps as q, guardReactiveProps as X, createVNode as Ze, createElementVNode as u, Fragment as _, renderList as m, toDisplayString as P, createTextVNode as qe, nextTick as Xe, pushScopeId as Re, popScopeId as Ye } from "vue";
|
|
2
|
+
import { u as Je, c as Se, t as Ke, a as Qe, p as Q, b as et, d as tt, o as lt, e as ee, g as de, l as U, m as je, f as z, X as ot, s as g, h as te, i as le, j as Te, k as I, n as oe, q as st, r as at } from "./index-DAAFXQJj.js";
|
|
3
|
+
import { _ as nt } from "./Title-C4aoNP1T.js";
|
|
4
|
+
import { u as rt, U as ut } from "./usePrinter-BvlefWMW.js";
|
|
5
|
+
import it from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
6
|
+
import { D as dt } from "./DataTable-D4_TjSBJ.js";
|
|
7
|
+
import ct from "./vue-ui-accordion-B67N9Oo8.js";
|
|
8
|
+
import { u as ze } from "./useNestedProp-DMtJzMiX.js";
|
|
9
|
+
import { _ as ht } from "./PackageVersion-DKr8jVlI.js";
|
|
10
|
+
import { P as vt } from "./PenAndPaper-CurhQVkh.js";
|
|
11
11
|
import { u as ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const se = (E) => (Re("data-v-
|
|
13
|
+
const se = (E) => (Re("data-v-acc3d2f2"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
14
14
|
key: 1,
|
|
15
15
|
style: "width:100%;background:transparent"
|
|
16
|
-
}, gt = ["xmlns", "viewBox"], $t = ["width", "height"], _t = ["id"], mt = ["stop-color"], bt = ["stop-color"], xt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], Ft = ["id"], Mt = ["stop-color"], Pt = ["stop-color"], St = ["id"], jt = ["stop-color"], Tt = ["stop-color"], zt = ["stop-color"], Dt = { key: 1 },
|
|
16
|
+
}, gt = ["xmlns", "viewBox"], $t = ["width", "height"], _t = ["id"], mt = ["stop-color"], bt = ["stop-color"], xt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], Ft = ["id"], Mt = ["stop-color"], Pt = ["stop-color"], St = ["id"], jt = ["stop-color"], Tt = ["stop-color"], zt = ["stop-color"], Dt = { key: 1 }, Ot = ["id"], Nt = ["stop-color"], Bt = ["stop-color"], It = ["id"], At = ["stop-color"], Lt = ["stop-color"], Wt = ["id"], Vt = ["stop-color"], Gt = ["stop-color"], Ut = ["id"], Et = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
17
17
|
offset: "0%",
|
|
18
18
|
"stop-color": "#FFFFFF"
|
|
19
19
|
}, null, -1)), Ht = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
@@ -25,7 +25,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
25
25
|
], qt = ["x", "y", "font-size", "font-weight", "fill"], Xt = ["x", "y"], Rt = ["d", "stroke"], Yt = ["d", "stroke"], Jt = { key: 4 }, Kt = { key: 0 }, Qt = ["stroke-dasharray", "d", "stroke", "stroke-width"], el = ["stroke-dasharray", "d", "stroke", "stroke-width"], tl = ["stroke-dasharray", "d", "stroke", "stroke-width"], ll = ["stroke-dasharray", "d", "stroke", "stroke-width"], ol = { key: 1 }, sl = ["d", "stroke", "stroke-width", "fill"], al = ["d", "stroke", "stroke-width", "fill"], nl = ["d", "stroke", "stroke-width", "fill"], rl = { key: 2 }, ul = ["d", "fill", "onMouseenter", "onClick"], il = ["d", "fill", "onMouseenter", "onClick"], dl = ["d", "fill", "onMouseenter", "onClick"], cl = ["d", "onMouseenter", "onClick"], hl = ["d"], vl = ["d", "stroke"], fl = ["onClick"], pl = ["stroke", "d"], yl = ["cx", "cy", "fill", "stroke"], kl = ["x", "y", "width", "height"], gl = { key: 1 }, $l = ["d", "stroke"], _l = ["d", "fill", "stroke"], ml = ["id"], bl = ["stop-color"], xl = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
26
26
|
offset: "77%",
|
|
27
27
|
"stop-color": "#FFFFFF20"
|
|
28
|
-
}, null, -1)), wl = ["stop-color"], Cl = ["cx", "cy", "fill"], Fl = ["cx", "cy", "fill"], Ml = { key: 0 }, Pl = ["text-anchor", "x", "y", "fill", "font-size"], Sl = ["text-anchor", "x", "y", "fill", "font-size"], jl = { key: 2 }, Tl = ["d", "fill", "stroke"], zl = { key: 5 }, Dl = { key: 0 },
|
|
28
|
+
}, null, -1)), wl = ["stop-color"], Cl = ["cx", "cy", "fill"], Fl = ["cx", "cy", "fill"], Ml = { key: 0 }, Pl = ["text-anchor", "x", "y", "fill", "font-size"], Sl = ["text-anchor", "x", "y", "fill", "font-size"], jl = { key: 2 }, Tl = ["d", "fill", "stroke"], zl = { key: 5 }, Dl = { key: 0 }, Ol = ["stroke-dasharray", "d", "stroke", "stroke-width"], Nl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Bl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Il = ["stroke-dasharray", "d", "stroke", "stroke-width"], Al = ["d", "stroke", "stroke-width", "fill"], Ll = ["d", "stroke", "stroke-width", "fill"], Wl = { key: 1 }, Vl = ["onClick"], Gl = ["id"], Ul = ["stop-color"], El = ["stop-color"], Hl = ["id"], Zl = ["stop-color"], ql = ["stop-color"], Xl = ["stop-color"], Rl = ["stop-color"], Yl = ["stop-color"], Jl = ["onMouseenter", "onClick", "d", "fill"], Kl = ["onMouseenter", "onClick", "d"], Ql = ["onMouseenter", "onClick", "d", "fill"], eo = ["onClick"], to = ["stroke", "d"], lo = ["cx", "cy", "fill", "stroke"], oo = ["x", "y", "width", "height"], so = { key: 1 }, ao = ["d", "stroke"], no = ["d", "fill", "stroke"], ro = ["id"], uo = ["stop-color"], io = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
29
29
|
offset: "77%",
|
|
30
30
|
"stop-color": "#FFFFFF20"
|
|
31
31
|
}, null, -1)), co = ["stop-color"], ho = ["cx", "cy", "fill"], vo = ["cx", "cy", "fill"], fo = { key: 0 }, po = ["text-anchor", "x", "y", "fill", "font-size"], yo = ["text-anchor", "x", "y", "fill", "font-size"], ko = { key: 2 }, go = ["d", "fill", "stroke"], $o = {
|
|
@@ -53,14 +53,14 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["selectDatapoint"],
|
|
55
55
|
setup(E, { expose: De, emit: R }) {
|
|
56
|
-
const $ = E, { vue_ui_3d_bar:
|
|
56
|
+
const $ = E, { vue_ui_3d_bar: Oe } = Je(), Y = T(() => !!$.dataset && Object.keys($.dataset).length), b = j(Se()), Ne = j(null), ae = j(null), A = j(!1), ce = j(0), he = j(0), t = T({
|
|
57
57
|
get: () => pe(),
|
|
58
58
|
set: (a) => a
|
|
59
59
|
}), { userOptionsVisible: ne, setUserOptionsVisibility: ve, keepUserOptionState: fe } = ft({ config: t.value });
|
|
60
60
|
function pe() {
|
|
61
61
|
const a = ze({
|
|
62
62
|
userConfig: $.config,
|
|
63
|
-
defaultConfig:
|
|
63
|
+
defaultConfig: Oe
|
|
64
64
|
});
|
|
65
65
|
return a.theme ? {
|
|
66
66
|
...ze({
|
|
@@ -71,7 +71,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
71
71
|
} : a;
|
|
72
72
|
}
|
|
73
73
|
Ue(() => $.config, (a) => {
|
|
74
|
-
t.value = pe(), ne.value = !t.value.showOnChartHover, _e(), ce.value += 1, he.value += 1, H.value.showTable = t.value.table.show;
|
|
74
|
+
t.value = pe(), ne.value = !t.value.userOptions.showOnChartHover, _e(), ce.value += 1, he.value += 1, H.value.showTable = t.value.table.show;
|
|
75
75
|
}, { deep: !0 });
|
|
76
76
|
const { isPrinting: ye, isImaging: ke, generatePdf: ge, generateImage: $e } = rt({
|
|
77
77
|
elementId: `3d_bar_${b.value}`,
|
|
@@ -105,7 +105,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
105
105
|
return e;
|
|
106
106
|
}
|
|
107
107
|
return null;
|
|
108
|
-
}),
|
|
108
|
+
}), N = T(() => ({
|
|
109
109
|
right: `M${o.value.width / 2},${o.value.top} ${o.value.width - o.value.right}, ${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
110
110
|
left: `M${o.value.width / 2},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
111
111
|
side: `M${o.value.width / 2},${o.value.height - o.value.bottom} ${o.value.width / 2},${o.value.top + o.value.perspective * 2}`,
|
|
@@ -380,7 +380,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
380
380
|
t.value.userOptions.show && Y.value && (d(fe) || d(ne)) ? (n(), G(ut, {
|
|
381
381
|
key: 2,
|
|
382
382
|
ref_key: "details",
|
|
383
|
-
ref:
|
|
383
|
+
ref: Ne,
|
|
384
384
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
385
385
|
color: t.value.style.chart.color,
|
|
386
386
|
isPrinting: d(ye),
|
|
@@ -408,42 +408,42 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
408
408
|
}, He({ _: 2 }, [
|
|
409
409
|
a.$slots.optionPdf ? {
|
|
410
410
|
name: "optionPdf",
|
|
411
|
-
fn:
|
|
411
|
+
fn: O(() => [
|
|
412
412
|
S(a.$slots, "optionPdf", {}, void 0, !0)
|
|
413
413
|
]),
|
|
414
414
|
key: "0"
|
|
415
415
|
} : void 0,
|
|
416
416
|
a.$slots.optionCsv ? {
|
|
417
417
|
name: "optionCsv",
|
|
418
|
-
fn:
|
|
418
|
+
fn: O(() => [
|
|
419
419
|
S(a.$slots, "optionCsv", {}, void 0, !0)
|
|
420
420
|
]),
|
|
421
421
|
key: "1"
|
|
422
422
|
} : void 0,
|
|
423
423
|
a.$slots.optionImg ? {
|
|
424
424
|
name: "optionImg",
|
|
425
|
-
fn:
|
|
425
|
+
fn: O(() => [
|
|
426
426
|
S(a.$slots, "optionImg", {}, void 0, !0)
|
|
427
427
|
]),
|
|
428
428
|
key: "2"
|
|
429
429
|
} : void 0,
|
|
430
430
|
a.$slots.optionTable ? {
|
|
431
431
|
name: "optionTable",
|
|
432
|
-
fn:
|
|
432
|
+
fn: O(() => [
|
|
433
433
|
S(a.$slots, "optionTable", {}, void 0, !0)
|
|
434
434
|
]),
|
|
435
435
|
key: "3"
|
|
436
436
|
} : void 0,
|
|
437
437
|
a.$slots.optionFullscreen ? {
|
|
438
438
|
name: "optionFullscreen",
|
|
439
|
-
fn:
|
|
439
|
+
fn: O(({ toggleFullscreen: e, isFullscreen: h }) => [
|
|
440
440
|
S(a.$slots, "optionFullscreen", q(X({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
|
|
441
441
|
]),
|
|
442
442
|
key: "4"
|
|
443
443
|
} : void 0,
|
|
444
444
|
a.$slots.optionAnnotator ? {
|
|
445
445
|
name: "optionAnnotator",
|
|
446
|
-
fn:
|
|
446
|
+
fn: O(({ toggleAnnotator: e, isAnnotator: h }) => [
|
|
447
447
|
S(a.$slots, "optionAnnotator", q(X({ toggleAnnotator: e, isAnnotator: h })), void 0, !0)
|
|
448
448
|
]),
|
|
449
449
|
key: "5"
|
|
@@ -534,12 +534,12 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
534
534
|
u("stop", {
|
|
535
535
|
offset: "0%",
|
|
536
536
|
"stop-color": d(g)(d(U)(e.color, 0.5), 80)
|
|
537
|
-
}, null, 8,
|
|
537
|
+
}, null, 8, Nt),
|
|
538
538
|
u("stop", {
|
|
539
539
|
offset: "100%",
|
|
540
540
|
"stop-color": e.color
|
|
541
541
|
}, null, 8, Bt)
|
|
542
|
-
], 8,
|
|
542
|
+
], 8, Ot))), 256)),
|
|
543
543
|
(n(!0), i(_, null, m(C.value, (e) => (n(), i("linearGradient", {
|
|
544
544
|
id: `grad_left_${e.id}`
|
|
545
545
|
}, [
|
|
@@ -617,7 +617,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
617
617
|
F.value ? y("", !0) : (n(), i("g", Kt, [
|
|
618
618
|
u("path", {
|
|
619
619
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
620
|
-
d:
|
|
620
|
+
d: N.value.right,
|
|
621
621
|
stroke: t.value.style.chart.box.stroke,
|
|
622
622
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
623
623
|
"stroke-linejoin": "round",
|
|
@@ -626,7 +626,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
626
626
|
}, null, 8, Qt),
|
|
627
627
|
u("path", {
|
|
628
628
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
629
|
-
d:
|
|
629
|
+
d: N.value.left,
|
|
630
630
|
stroke: t.value.style.chart.box.stroke,
|
|
631
631
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
632
632
|
"stroke-linejoin": "round",
|
|
@@ -635,7 +635,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
635
635
|
}, null, 8, el),
|
|
636
636
|
u("path", {
|
|
637
637
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
638
|
-
d:
|
|
638
|
+
d: N.value.side,
|
|
639
639
|
stroke: t.value.style.chart.box.stroke,
|
|
640
640
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
641
641
|
"stroke-linejoin": "round",
|
|
@@ -644,7 +644,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
644
644
|
}, null, 8, tl),
|
|
645
645
|
u("path", {
|
|
646
646
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
647
|
-
d:
|
|
647
|
+
d: N.value.topSides,
|
|
648
648
|
stroke: t.value.style.chart.box.stroke,
|
|
649
649
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
650
650
|
"stroke-linejoin": "round",
|
|
@@ -868,25 +868,25 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
868
868
|
F.value ? y("", !0) : (n(), i("g", Dl, [
|
|
869
869
|
u("path", {
|
|
870
870
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
871
|
-
d:
|
|
871
|
+
d: N.value.tubeTop,
|
|
872
872
|
stroke: t.value.style.chart.box.stroke,
|
|
873
873
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
874
874
|
"stroke-linejoin": "round",
|
|
875
875
|
"stroke-linecap": "round",
|
|
876
876
|
fill: "none"
|
|
877
|
-
}, null, 8,
|
|
877
|
+
}, null, 8, Ol),
|
|
878
878
|
u("path", {
|
|
879
879
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
880
|
-
d:
|
|
880
|
+
d: N.value.tubeLeft,
|
|
881
881
|
stroke: t.value.style.chart.box.stroke,
|
|
882
882
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
883
883
|
"stroke-linejoin": "round",
|
|
884
884
|
"stroke-linecap": "round",
|
|
885
885
|
fill: "none"
|
|
886
|
-
}, null, 8,
|
|
886
|
+
}, null, 8, Nl),
|
|
887
887
|
u("path", {
|
|
888
888
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
889
|
-
d:
|
|
889
|
+
d: N.value.tubeRight,
|
|
890
890
|
stroke: t.value.style.chart.box.stroke,
|
|
891
891
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
892
892
|
"stroke-linejoin": "round",
|
|
@@ -895,7 +895,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
895
895
|
}, null, 8, Bl),
|
|
896
896
|
u("path", {
|
|
897
897
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
898
|
-
d:
|
|
898
|
+
d: N.value.tubeBottom,
|
|
899
899
|
stroke: t.value.style.chart.box.stroke,
|
|
900
900
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
901
901
|
"stroke-linejoin": "round",
|
|
@@ -1172,7 +1172,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
}, {
|
|
1175
|
-
content:
|
|
1175
|
+
content: O(() => [
|
|
1176
1176
|
(n(), G(dt, {
|
|
1177
1177
|
key: `table_${he.value}`,
|
|
1178
1178
|
colNames: J.value.colNames,
|
|
@@ -1182,13 +1182,13 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
1182
1182
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1183
1183
|
onClose: s[1] || (s[1] = (e) => H.value.showTable = !1)
|
|
1184
1184
|
}, {
|
|
1185
|
-
th:
|
|
1185
|
+
th: O(({ th: e }) => [
|
|
1186
1186
|
u("div", {
|
|
1187
1187
|
innerHTML: e,
|
|
1188
1188
|
style: { display: "flex", "align-items": "center" }
|
|
1189
1189
|
}, null, 8, mo)
|
|
1190
1190
|
]),
|
|
1191
|
-
td:
|
|
1191
|
+
td: O(({ td: e }) => [
|
|
1192
1192
|
qe(P(e.name || e), 1)
|
|
1193
1193
|
]),
|
|
1194
1194
|
_: 1
|
|
@@ -1198,7 +1198,7 @@ const se = (E) => (Re("data-v-2810aa22"), E = E(), Ye(), E), yt = ["id"], kt = {
|
|
|
1198
1198
|
}, 8, ["config"])) : y("", !0)
|
|
1199
1199
|
], 44, yt));
|
|
1200
1200
|
}
|
|
1201
|
-
},
|
|
1201
|
+
}, No = /* @__PURE__ */ pt(bo, [["__scopeId", "data-v-acc3d2f2"]]);
|
|
1202
1202
|
export {
|
|
1203
|
-
|
|
1203
|
+
No as default
|
|
1204
1204
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
2
|
-
${h},${i-d-o*
|
|
3
|
-
C ${h},${i-d-o*
|
|
4
|
-
${u-y},${i-d-o*
|
|
5
|
-
${u-y},${i-d-o*
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CHCA909R.cjs"),ke=require("./Title-bDp_4dQV.cjs"),ne=require("./usePrinter-xicwiw8r.cjs"),me=require("./vue-ui-skeleton-DsMIGHB3.cjs"),ye=require("./DataTable-ZowHAjXC.cjs"),ge=require("./vue-ui-accordion-B4PyxVUm.cjs"),re=require("./useNestedProp--1nKK7i0.cjs"),$e=require("./PackageVersion-Cun_qdX7.cjs"),_e=require("./PenAndPaper-u46MyY7W.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=N=>(e.pushScopeId("data-v-acc3d2f2"),N=N(),e.popScopeId(),N),xe=["id"],Ce={key:1,style:"width:100%;background:transparent"},Ee=["xmlns","viewBox"],we=["width","height"],Ne=["id"],Ve=["stop-color"],Fe=["stop-color"],Se=["id"],Me=["stop-color"],Pe=["stop-color"],Oe=["id"],Le=["stop-color"],De=["stop-color"],ze=["id"],Te=["stop-color"],je=["stop-color"],Ae=["stop-color"],Ie={key:1},We=["id"],Ge=["stop-color"],He=["stop-color"],Ue=["id"],qe=["stop-color"],Xe=["stop-color"],Re=["id"],Ze=["stop-color"],Ye=["stop-color"],Je=["id"],Ke=L(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),Qe=L(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),et=[Ke,Qe],tt=["x","y","font-size","font-weight","fill"],lt=["x","y"],ot=["d","stroke"],nt=["d","stroke"],rt={key:4},at={key:0},st=["stroke-dasharray","d","stroke","stroke-width"],ut=["stroke-dasharray","d","stroke","stroke-width"],it=["stroke-dasharray","d","stroke","stroke-width"],ct=["stroke-dasharray","d","stroke","stroke-width"],dt={key:1},ht=["d","stroke","stroke-width","fill"],vt=["d","stroke","stroke-width","fill"],pt=["d","stroke","stroke-width","fill"],ft={key:2},kt=["d","fill","onMouseenter","onClick"],mt=["d","fill","onMouseenter","onClick"],yt=["d","fill","onMouseenter","onClick"],gt=["d","onMouseenter","onClick"],$t=["d"],_t=["d","stroke"],Bt=["onClick"],bt=["stroke","d"],xt=["cx","cy","fill","stroke"],Ct=["x","y","width","height"],Et={key:1},wt=["d","stroke"],Nt=["d","fill","stroke"],Vt=["id"],Ft=["stop-color"],St=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),Mt=["stop-color"],Pt=["cx","cy","fill"],Ot=["cx","cy","fill"],Lt={key:0},Dt=["text-anchor","x","y","fill","font-size"],zt=["text-anchor","x","y","fill","font-size"],Tt={key:2},jt=["d","fill","stroke"],At={key:5},It={key:0},Wt=["stroke-dasharray","d","stroke","stroke-width"],Gt=["stroke-dasharray","d","stroke","stroke-width"],Ht=["stroke-dasharray","d","stroke","stroke-width"],Ut=["stroke-dasharray","d","stroke","stroke-width"],qt=["d","stroke","stroke-width","fill"],Xt=["d","stroke","stroke-width","fill"],Rt={key:1},Zt=["onClick"],Yt=["id"],Jt=["stop-color"],Kt=["stop-color"],Qt=["id"],el=["stop-color"],tl=["stop-color"],ll=["stop-color"],ol=["stop-color"],nl=["stop-color"],rl=["onMouseenter","onClick","d","fill"],al=["onMouseenter","onClick","d"],sl=["onMouseenter","onClick","d","fill"],ul=["onClick"],il=["stroke","d"],cl=["cx","cy","fill","stroke"],dl=["x","y","width","height"],hl={key:1},vl=["d","stroke"],pl=["d","fill","stroke"],fl=["id"],kl=["stop-color"],ml=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),yl=["stop-color"],gl=["cx","cy","fill"],$l=["cx","cy","fill"],_l={key:0},Bl=["text-anchor","x","y","fill","font-size"],bl=["text-anchor","x","y","fill","font-size"],xl={key:2},Cl=["d","fill","stroke"],El={key:4,class:"vue-data-ui-watermark"},wl={key:6,ref:"source",dir:"auto"},Nl=["innerHTML"],Vl={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(N,{expose:ae,emit:S}){const f=N,{vue_ui_3d_bar:se}=s.useConfig(),M=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(s.createUid()),ue=e.ref(null),D=e.ref(null),x=e.ref(!1),I=e.ref(0),W=e.ref(0),l=e.computed({get:()=>U(),set:a=>a}),{userOptionsVisible:z,setUserOptionsVisibility:G,keepUserOptionState:H}=Be.useUserOptionState({config:l.value});function U(){const a=re.useNestedProp({userConfig:f.config,defaultConfig:se});return a.theme?{...re.useNestedProp({userConfig:s.themes.vue_ui_3d_bar[a.theme]||f.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>f.config,a=>{l.value=U(),z.value=!l.value.userOptions.showOnChartHover,Y(),I.value+=1,W.value+=1,V.value.showTable=l.value.table.show},{deep:!0});const{isPrinting:q,isImaging:X,generatePdf:R,generateImage:Z}=ne.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar"}),ie=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),V=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const a=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),r=f.dataset.series.map((o,u)=>({...o,id:s.createUid(),proportion:(o.value||0)/a,color:s.convertColorToHex(o.color)||ie.value[u]||s.palette[u]||s.palette[u%s.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<r.length;o+=1)t.push({...r[o],fill:ce(c,r[o].proportion,r[o].breakdown,r[o].color)}),c+=r[o].proportion;return t}return null}),B=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{Y();let a=0,r=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=r+a,a+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function Y(){s.objectIsEmpty(f.dataset)?s.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((a,r)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(t=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:r})}),a.breakdown&&a.breakdown.forEach((t,c)=>{s.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${r} - ${c}`})})})}):s.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(a=>{s.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:a})})}function ce(a,r,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*a,A=i-d-v-o*r/2,ve=A>n.value.height/2?"top":"bottom",ee=64,pe=!!t;let te=null,le=null;return pe&&(t=t.map((oe,fe)=>({...oe,value:oe.value||0,color:s.lightenHexColor(c,fe/t.length)})),te=s.makeDonut({series:t},u+n.value.absoluteWidth/4-14,ve==="top"?A-ee:A+ee,28,28,1.99999,2,1,360,105.25,14),le=s.makeDonut({series:t},u-y+20,i-d-v-o*r/2,6,6,1.99999,2,1,360,105.25,6)),{donut:te,miniDonut:le,sidePointer:{x:u-y,y:i-d-v-o*r/2,topY:i-d-v-o*r,height:o*r},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*r,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${h}, ${i-d-v-o*r} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*r} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r}`,liningTopShade:`M${h},${i-d-v-o*r-.5} ${u/2},${i-d-o*r-.5} ${u-y},${i-d-v-o*r-.5}`,top:`M${u/2},${i-d-o*r} ${h},${i-d-v-o*r} ${u/2},${i-d-v*2-o*r} ${u-y},${i-d-v-o*r} Z`,tubeTop:`M${h},${i-d-o*r-v} C ${h},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v} C ${u-y},${i-d-o*r+v/2} ${h},${i-d-o*r+v/2} ${h},${i-d-o*r-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
|
|
2
|
+
${h},${i-d-o*r-v}
|
|
3
|
+
C ${h},${i-d-o*r+v/2}
|
|
4
|
+
${u-y},${i-d-o*r+v/2}
|
|
5
|
+
${u-y},${i-d-o*r-v}
|
|
6
6
|
L${u-y},${i-d-v}
|
|
7
7
|
C
|
|
8
8
|
${u-y},${i-d+v/2}
|
|
9
9
|
${h},${i-d+v/2}
|
|
10
|
-
${h},${i-d-v}Z`}}const F=e.computed(()=>{const
|
|
11
|
-
${i},${c-h-a
|
|
12
|
-
C ${i},${c-h-a
|
|
13
|
-
${t-u},${c-h-a
|
|
14
|
-
${t-u},${c-h-a
|
|
10
|
+
${h},${i-d-v}Z`}}const F=e.computed(()=>{const a=E.value/100,r=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:t,height:c,bottom:o,right:u,left:i,perspective:p}=n.value,h=o+r*0;return{right:`M${t/2},${c-h} ${t/2},${c-h-r*a} ${t-u},${c-h-p-r*a} ${t-u},${c-h-p}Z`,left:`M${t/2},${c-h} ${t/2},${c-h-r*a} ${i}, ${c-h-p-r*a} ${i},${c-h-p}Z`,top:`M${t/2},${c-h-r*a} ${i},${c-h-p-r*a} ${t/2},${c-h-p*2-r*a} ${t-u},${c-h-p-r*a} Z`,tubeTop:`M${i},${c-h-r*a-p} C ${i},${c-h-r*a-p*2.5} ${t-u},${c-h-r*a-p*2.5} ${t-u},${c-h-r*a-p} C ${t-u},${c-h-r*a+p/2} ${i},${c-h-r*a+p/2} ${i},${c-h-r*a-p}`,tubeBody:`M
|
|
11
|
+
${i},${c-h-r*a-p}
|
|
12
|
+
C ${i},${c-h-r*a+p/2}
|
|
13
|
+
${t-u},${c-h-r*a+p/2}
|
|
14
|
+
${t-u},${c-h-r*a-p}
|
|
15
15
|
L${t-u},${c-p*1.5}
|
|
16
16
|
C
|
|
17
17
|
${t-u},${c}
|
|
18
18
|
${i},${c}
|
|
19
|
-
${i},${c-h-p}Z`}}),m=e.ref(null);function _(r,a=!1){S("selectDatapoint",r),a||(m.value=r.id),a&&x.value&&(x.value=!1),a&&!x.value&&(x.value=!0)}function C(){x.value||(m.value=null)}function w(r,a,t=!1){const c=f.dataset.series.map(i=>i.value||0).reduce((i,p)=>i+p,0),o=isNaN(r.value/c)?0:r.value/c*100,u=isNaN(r.value/J(a))?0:r.value/J(a)*100;return t?u:o.toFixed(0)+"%"}function J(r){return[...r].map(a=>a.value).reduce((a,t)=>a+t,0)}const T=e.ref(!1);function de(r){T.value=r}function he(){return $.value?g.value:f.dataset.percentage}const b=e.computed(()=>{if($.value){const r=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[{name:t.name,color:t.color},...t.breakdown.map((c,o)=>({name:c.name,color:s.lightenHexColor(t.color,o/t.breakdown.length)}))]:{name:t.name,color:t.color}),a=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[t.value,...t.breakdown.map(c=>c.value)]:t.value);return{head:r,body:a}}else return null});function K(){if(!$.value){console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");return}e.nextTick(()=>{const r=g.value.map(o=>o.value).reduce((o,u)=>o+u,0),a=b.value.head.map((o,u)=>[[o.name],[b.value.body[u]],[isNaN(b.value.body[u]/r)?"-":b.value.body[u]/r*100]]),t=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(a),c=s.createCsvContent(t);s.downloadCsv({csvContent:c,title:l.value.style.chart.title.text||"vue-ui-3d-bar"})})}const P=e.computed(()=>{const r=g.value.map(u=>u.value).reduce((u,i)=>u+i,0),a=[' <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>',s.dataLabel({p:l.value.style.chart.legend.prefix,v:r,s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue}),"100%"],t=b.value.head.map((u,i)=>{const p=s.dataLabel({p:l.value.style.chart.legend.prefix,v:b.value.body[i],s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue});return[{color:u.color,name:u.name},p,isNaN(b.value.body[i]/r)?"-":s.dataLabel({v:b.value.body[i]/r*100,s:"%",r:l.value.table.td.roundingPercentage})]}),c={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint,shape:l.value.style.shape==="tube"?"circle":"square"};return{colNames:[l.value.table.columnNames.series,l.value.table.columnNames.value,l.value.table.columnNames.percentage],head:a,body:t,config:c}});function Q(){V.value.showTable=!V.value.showTable}const O=e.ref(!1);function j(){O.value=!O.value}return re({generateCsv:K,generatePdf:R,generateImage:Z,getData:he,toggleTable:Q,toggleAnnotator:j}),(r,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bar3dChart",ref:D,class:e.normalizeClass("vue-ui-3d-bar"),style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor}`),id:`3d_bar_${k.value}`,onMouseenter:a[2]||(a[2]=()=>e.unref(G)(!0)),onMouseleave:a[3]||(a[3]=()=>e.unref(G)(!1))},[l.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:D.value,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,active:O.value,onClose:j},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Ce,[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${I.value}`,config:{title:{cy:"3dBar-div-title",...l.value.style.chart.title},subtitle:{cy:"3dBar-div-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),l.value.userOptions.show&&M.value&&(e.unref(H)||e.unref(z))?(e.openBlock(),e.createBlock(ne.UserOptions,{key:2,ref_key:"details",ref:ue,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(X),uid:k.value,hasPdf:l.value.userOptions.buttons.pdf,hasTable:!!$.value&&l.value.userOptions.buttons.table,hasXls:!!$.value&&l.value.userOptions.buttons.csv,hasImg:l.value.userOptions.buttons.img,hasFullscreen:l.value.userOptions.buttons.fullscreen,titles:{...l.value.userOptions.buttonTitles},chartElement:D.value,position:l.value.userOptions.position,hasAnnotator:l.value.userOptions.buttons.annotator,isAnnotation:O.value,onToggleFullscreen:de,onGeneratePdf:e.unref(R),onGenerateCsv:K,onGenerateImage:e.unref(Z),onToggleTable:Q,onToggleAnnotator:j,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(z)?"visible":"hidden":"visible"})},e.createSlots({_:2},[r.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,r.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:t,isFullscreen:c})=>[e.renderSlot(r.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:t,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0,r.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:t,isAnnotator:c})=>[e.renderSlot(r.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:t,isAnnotator:c})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasTable","hasXls","hasImg","hasFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${l.value.style.chart.color}`)},[e.createVNode($e._sfc_main),r.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.absoluteWidth,height:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(r.$slots,"chart-background",{},void 0,!0)],8,we)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_top${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":l.value.style.chart.bar.color},null,8,Fe)],8,Ne),e.createElementVNode("radialGradient",{id:`gradient_left${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Pe)],8,Se),e.createElementVNode("radialGradient",{id:`gradient_right${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Le),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,De)],8,Oe),e.createElementVNode("linearGradient",{id:`gradient_tube_body${k.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.value.style.chart.bar.color}`},null,8,Te),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,40)},null,8,Ae)],8,ze)]),$.value?(e.openBlock(),e.createElementBlock("defs",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`grad_top_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.color},null,8,He)],8,We))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_left_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,Xe)],8,Ue))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_right_${t.id}`},[e.createElementVNode("stop",{offset:"2%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),100)},null,8,Ze),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Ye)],8,Re))),256)),e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`vertical_line_${k.value}`},et,8,Je)])):e.createCommentVNode("",!0),l.value.style.chart.dataLabel.show&&![null,void 0].includes(f.dataset.percentage)&&[null,void 0].includes(f.dataset.series)?(e.openBlock(),e.createElementBlock("text",{key:2,x:n.value.width/2,y:n.value.top-l.value.style.chart.dataLabel.fontSize/2,"font-size":l.value.style.chart.dataLabel.fontSize,"font-weight":l.value.style.chart.dataLabel.bold?"bold":"normal",fill:l.value.style.chart.dataLabel.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.dataLabel)({v:E.value,s:"%",r:l.value.style.chart.dataLabel.rounding})),9,tt)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("g",{key:3,onClick:a[0]||(a[0]=t=>{x.value=!1,m.value=null}),"data-html2canvas-ignore":"",style:{cursor:"pointer"}},[e.createElementVNode("rect",{x:n.value.width/2-6,y:n.value.top-20,height:12,width:12,fill:"transparent"},null,8,lt),e.createElementVNode("path",{d:`M${n.value.width/2-6},${n.value.top-20} ${n.value.width/2+6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,ot),e.createElementVNode("path",{d:`M${n.value.width/2+6},${n.value.top-20} ${n.value.width/2-6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,nt)])):e.createCommentVNode("",!0),!l.value.style.shape||l.value.style.shape==="bar"?(e.openBlock(),e.createElementBlock("g",at,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.right,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,st),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.left,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,ut),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.side,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,it),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.topSides,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,ct)])),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("path",{d:F.value.right,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_right${k.value})`},null,8,ht),e.createElementVNode("path",{d:F.value.left,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_left${k.value})`},null,8,vt),e.createElementVNode("path",{d:F.value.top,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,pt)])),$.value?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack"},[e.createElementVNode("path",{d:t.fill.right,fill:`url(#grad_right_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,kt),e.createElementVNode("path",{d:t.fill.left,fill:`url(#grad_left_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,mt),e.createElementVNode("path",{d:t.fill.top,fill:`url(#grad_top_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,yt),e.createElementVNode("path",{d:t.fill.liningTop,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round",fill:"none",onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,gt),e.createElementVNode("path",{d:`M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round"},null,8,$t)],4))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",null,[c!==g.value.length-1?(e.openBlock(),e.createElementBlock("path",{key:0,d:t.fill.liningTopShade,stroke:l.value.style.chart.bar.shadeColor,"stroke-width":"0.5","stroke-linecap":"round",fill:"none",style:{"pointer-events":"none"}},null,8,_t)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>S("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,bt),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,xt)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,Ct)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,wt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,Nt))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ft),St,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Mt)],8,Vt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,Pt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,Ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",Lt,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,Dt),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,zt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,jt))),256))])):e.createCommentVNode("",!0)],12,Bt))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.shape==="tube"?(e.openBlock(),e.createElementBlock("g",At,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",It,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeTop,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Wt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeLeft,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Gt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeRight,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Ht),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeBottom,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Ut),e.createElementVNode("path",{d:F.value.tubeTop,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,qt),e.createElementVNode("path",{d:F.value.tubeBody,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body${k.value})`},null,8,Xt)])),$.value?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack",onClick:o=>S("selectDatapoint",t)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_tube_top_${t.id}`,fx:"10%",cy:"55%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,Jt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.1),80)},null,8,Kt)],8,Yt),e.createElementVNode("linearGradient",{id:`gradient_tube_body_${t.id}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.color}`},null,8,el),e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.7),100)},null,8,tl),e.createElementVNode("stop",{offset:"25%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,ll),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,ol),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.7),100)},null,8,nl)],8,Qt)]),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeBody,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body_${t.id})`},null,40,al),c>0?(e.openBlock(),e.createElementBlock("path",{key:0,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.bottomTubeTop,stroke:"#000000","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,40,rl)):e.createCommentVNode("",!0),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeTop,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_top_${t.id})`},null,40,sl)],12,Zt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>S("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,il),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,cl)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,dl)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,vl)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,pl))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,kl),ml,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,yl)],8,fl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,gl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,$l))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",_l,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,Bl),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,bl)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",xl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Cl))),256))])):e.createCommentVNode("",!0)],12,ul))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"svg",{svg:n.value},void 0,!0)],14,Ee)):e.createCommentVNode("",!0),r.$slots.watermark?(e.openBlock(),e.createElementBlock("div",El,[e.renderSlot(r.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),M.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:5,config:{type:"bar3d",style:{backgroundColor:l.value.style.chart.backgroundColor,bar3d:{color:"#CCCCCC"}}}},null,8,["config"])),r.$slots.source?(e.openBlock(),e.createElementBlock("div",wl,[e.renderSlot(r.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),M.value&&$.value?(e.openBlock(),e.createBlock(ge.default,{key:7,hideDetails:"",config:{open:V.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ye.DataTable,{key:`table_${W.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=t=>V.value.showTable=!1)},{th:e.withCtx(({th:t})=>[e.createElementVNode("div",{innerHTML:t,style:{display:"flex","align-items":"center"}},null,8,Nl)]),td:e.withCtx(({td:t})=>[e.createTextVNode(e.toDisplayString(t.name||t),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,xe))}},Fl=be._export_sfc(Vl,[["__scopeId","data-v-2810aa22"]]);exports.default=Fl;
|
|
19
|
+
${i},${c-h-p}Z`}}),m=e.ref(null);function _(a,r=!1){S("selectDatapoint",a),r||(m.value=a.id),r&&x.value&&(x.value=!1),r&&!x.value&&(x.value=!0)}function C(){x.value||(m.value=null)}function w(a,r,t=!1){const c=f.dataset.series.map(i=>i.value||0).reduce((i,p)=>i+p,0),o=isNaN(a.value/c)?0:a.value/c*100,u=isNaN(a.value/J(r))?0:a.value/J(r)*100;return t?u:o.toFixed(0)+"%"}function J(a){return[...a].map(r=>r.value).reduce((r,t)=>r+t,0)}const T=e.ref(!1);function de(a){T.value=a}function he(){return $.value?g.value:f.dataset.percentage}const b=e.computed(()=>{if($.value){const a=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[{name:t.name,color:t.color},...t.breakdown.map((c,o)=>({name:c.name,color:s.lightenHexColor(t.color,o/t.breakdown.length)}))]:{name:t.name,color:t.color}),r=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[t.value,...t.breakdown.map(c=>c.value)]:t.value);return{head:a,body:r}}else return null});function K(){if(!$.value){console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");return}e.nextTick(()=>{const a=g.value.map(o=>o.value).reduce((o,u)=>o+u,0),r=b.value.head.map((o,u)=>[[o.name],[b.value.body[u]],[isNaN(b.value.body[u]/a)?"-":b.value.body[u]/a*100]]),t=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(r),c=s.createCsvContent(t);s.downloadCsv({csvContent:c,title:l.value.style.chart.title.text||"vue-ui-3d-bar"})})}const P=e.computed(()=>{const a=g.value.map(u=>u.value).reduce((u,i)=>u+i,0),r=[' <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>',s.dataLabel({p:l.value.style.chart.legend.prefix,v:a,s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue}),"100%"],t=b.value.head.map((u,i)=>{const p=s.dataLabel({p:l.value.style.chart.legend.prefix,v:b.value.body[i],s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue});return[{color:u.color,name:u.name},p,isNaN(b.value.body[i]/a)?"-":s.dataLabel({v:b.value.body[i]/a*100,s:"%",r:l.value.table.td.roundingPercentage})]}),c={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint,shape:l.value.style.shape==="tube"?"circle":"square"};return{colNames:[l.value.table.columnNames.series,l.value.table.columnNames.value,l.value.table.columnNames.percentage],head:r,body:t,config:c}});function Q(){V.value.showTable=!V.value.showTable}const O=e.ref(!1);function j(){O.value=!O.value}return ae({generateCsv:K,generatePdf:R,generateImage:Z,getData:he,toggleTable:Q,toggleAnnotator:j}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bar3dChart",ref:D,class:e.normalizeClass("vue-ui-3d-bar"),style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor}`),id:`3d_bar_${k.value}`,onMouseenter:r[2]||(r[2]=()=>e.unref(G)(!0)),onMouseleave:r[3]||(r[3]=()=>e.unref(G)(!1))},[l.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:D.value,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,active:O.value,onClose:j},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Ce,[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${I.value}`,config:{title:{cy:"3dBar-div-title",...l.value.style.chart.title},subtitle:{cy:"3dBar-div-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),l.value.userOptions.show&&M.value&&(e.unref(H)||e.unref(z))?(e.openBlock(),e.createBlock(ne.UserOptions,{key:2,ref_key:"details",ref:ue,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(X),uid:k.value,hasPdf:l.value.userOptions.buttons.pdf,hasTable:!!$.value&&l.value.userOptions.buttons.table,hasXls:!!$.value&&l.value.userOptions.buttons.csv,hasImg:l.value.userOptions.buttons.img,hasFullscreen:l.value.userOptions.buttons.fullscreen,titles:{...l.value.userOptions.buttonTitles},chartElement:D.value,position:l.value.userOptions.position,hasAnnotator:l.value.userOptions.buttons.annotator,isAnnotation:O.value,onToggleFullscreen:de,onGeneratePdf:e.unref(R),onGenerateCsv:K,onGenerateImage:e.unref(Z),onToggleTable:Q,onToggleAnnotator:j,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(z)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:t,isFullscreen:c})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:t,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:t,isAnnotator:c})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:t,isAnnotator:c})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasTable","hasXls","hasImg","hasFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${l.value.style.chart.color}`)},[e.createVNode($e._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.absoluteWidth,height:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,we)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_top${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":l.value.style.chart.bar.color},null,8,Fe)],8,Ne),e.createElementVNode("radialGradient",{id:`gradient_left${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Pe)],8,Se),e.createElementVNode("radialGradient",{id:`gradient_right${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Le),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,De)],8,Oe),e.createElementVNode("linearGradient",{id:`gradient_tube_body${k.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.value.style.chart.bar.color}`},null,8,Te),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,40)},null,8,Ae)],8,ze)]),$.value?(e.openBlock(),e.createElementBlock("defs",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`grad_top_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.color},null,8,He)],8,We))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_left_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,Xe)],8,Ue))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_right_${t.id}`},[e.createElementVNode("stop",{offset:"2%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),100)},null,8,Ze),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Ye)],8,Re))),256)),e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`vertical_line_${k.value}`},et,8,Je)])):e.createCommentVNode("",!0),l.value.style.chart.dataLabel.show&&![null,void 0].includes(f.dataset.percentage)&&[null,void 0].includes(f.dataset.series)?(e.openBlock(),e.createElementBlock("text",{key:2,x:n.value.width/2,y:n.value.top-l.value.style.chart.dataLabel.fontSize/2,"font-size":l.value.style.chart.dataLabel.fontSize,"font-weight":l.value.style.chart.dataLabel.bold?"bold":"normal",fill:l.value.style.chart.dataLabel.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.dataLabel)({v:E.value,s:"%",r:l.value.style.chart.dataLabel.rounding})),9,tt)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("g",{key:3,onClick:r[0]||(r[0]=t=>{x.value=!1,m.value=null}),"data-html2canvas-ignore":"",style:{cursor:"pointer"}},[e.createElementVNode("rect",{x:n.value.width/2-6,y:n.value.top-20,height:12,width:12,fill:"transparent"},null,8,lt),e.createElementVNode("path",{d:`M${n.value.width/2-6},${n.value.top-20} ${n.value.width/2+6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,ot),e.createElementVNode("path",{d:`M${n.value.width/2+6},${n.value.top-20} ${n.value.width/2-6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,nt)])):e.createCommentVNode("",!0),!l.value.style.shape||l.value.style.shape==="bar"?(e.openBlock(),e.createElementBlock("g",rt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",at,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.right,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,st),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.left,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,ut),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.side,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,it),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.topSides,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,ct)])),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("path",{d:F.value.right,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_right${k.value})`},null,8,ht),e.createElementVNode("path",{d:F.value.left,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_left${k.value})`},null,8,vt),e.createElementVNode("path",{d:F.value.top,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,pt)])),$.value?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack"},[e.createElementVNode("path",{d:t.fill.right,fill:`url(#grad_right_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,kt),e.createElementVNode("path",{d:t.fill.left,fill:`url(#grad_left_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,mt),e.createElementVNode("path",{d:t.fill.top,fill:`url(#grad_top_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,yt),e.createElementVNode("path",{d:t.fill.liningTop,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round",fill:"none",onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,gt),e.createElementVNode("path",{d:`M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round"},null,8,$t)],4))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",null,[c!==g.value.length-1?(e.openBlock(),e.createElementBlock("path",{key:0,d:t.fill.liningTopShade,stroke:l.value.style.chart.bar.shadeColor,"stroke-width":"0.5","stroke-linecap":"round",fill:"none",style:{"pointer-events":"none"}},null,8,_t)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>S("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,bt),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,xt)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,Ct)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,wt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,Nt))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ft),St,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Mt)],8,Vt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,Pt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,Ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",Lt,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,Dt),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,zt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,jt))),256))])):e.createCommentVNode("",!0)],12,Bt))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.shape==="tube"?(e.openBlock(),e.createElementBlock("g",At,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",It,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeTop,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Wt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeLeft,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Gt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeRight,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Ht),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:B.value.tubeBottom,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Ut),e.createElementVNode("path",{d:F.value.tubeTop,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,qt),e.createElementVNode("path",{d:F.value.tubeBody,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body${k.value})`},null,8,Xt)])),$.value?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack",onClick:o=>S("selectDatapoint",t)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_tube_top_${t.id}`,fx:"10%",cy:"55%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,Jt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.1),80)},null,8,Kt)],8,Yt),e.createElementVNode("linearGradient",{id:`gradient_tube_body_${t.id}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.color}`},null,8,el),e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.7),100)},null,8,tl),e.createElementVNode("stop",{offset:"25%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,ll),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,ol),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.7),100)},null,8,nl)],8,Qt)]),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeBody,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body_${t.id})`},null,40,rl),c>0?(e.openBlock(),e.createElementBlock("path",{key:0,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.bottomTubeTop,stroke:"#000000","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,40,al)):e.createCommentVNode("",!0),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeTop,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_top_${t.id})`},null,40,sl)],12,Zt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>S("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,il),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,cl)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(t.name)+": "+e.toDisplayString(e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage}))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:t,seriesIndex:c}))+") ",5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.normalizeProps(e.guardReactiveProps({datapoint:t,config:l.value,dataset:g.value})),void 0,!0)],8,dl)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,vl)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,pl))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,kl),ml,e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,yl)],8,fl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,gl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,$l))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",_l,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(w(o,t.fill.donut))+" ("+e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:u}))+") ",9,Bl),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,bl)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",xl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Cl))),256))])):e.createCommentVNode("",!0)],12,ul))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,Ee)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",El,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),M.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:5,config:{type:"bar3d",style:{backgroundColor:l.value.style.chart.backgroundColor,bar3d:{color:"#CCCCCC"}}}},null,8,["config"])),a.$slots.source?(e.openBlock(),e.createElementBlock("div",wl,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),M.value&&$.value?(e.openBlock(),e.createBlock(ge.default,{key:7,hideDetails:"",config:{open:V.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ye.DataTable,{key:`table_${W.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=t=>V.value.showTable=!1)},{th:e.withCtx(({th:t})=>[e.createElementVNode("div",{innerHTML:t,style:{display:"flex","align-items":"center"}},null,8,Nl)]),td:e.withCtx(({td:t})=>[e.createTextVNode(e.toDisplayString(t.name||t),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,xe))}},Fl=be._export_sfc(Vl,[["__scopeId","data-v-acc3d2f2"]]);exports.default=Fl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-BKYwMJ4Y.cjs"),g=require("./useNestedProp--1nKK7i0.cjs"),u=require("./index-CHCA909R.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){const c=l;e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:d}=u.useConfig(),o=e.computed(()=>g.useNestedProp({userConfig:c.config,defaultConfig:d})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, openBlock as u, createElementBlock as v, createElementVNode as n, normalizeClass as $, normalizeStyle as p, renderSlot as c, normalizeProps as i, mergeProps as O, createBlock as D, createCommentVNode as N, guardReactiveProps as m } from "vue";
|
|
2
|
-
import w from "./BaseIcon-
|
|
3
|
-
import { u as x } from "./useNestedProp-
|
|
4
|
-
import { u as B, c as I } from "./index-
|
|
2
|
+
import w from "./BaseIcon-DVY6e_YL.js";
|
|
3
|
+
import { u as x } from "./useNestedProp-DMtJzMiX.js";
|
|
4
|
+
import { u as B, c as I } from "./index-DAAFXQJj.js";
|
|
5
5
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const F = ["id"], P = {
|
|
7
7
|
key: 0,
|