vue-data-ui 2.4.90 → 2.5.1
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-BSIvdfoj.cjs → Arrow-BYoqvFMN.cjs} +1 -1
- package/dist/{Arrow-ZO8Y9-1Q.js → Arrow-CNFYWYKd.js} +1 -1
- package/dist/{BaseIcon-BpofIJET.js → BaseIcon-CZ4uFxC7.js} +4 -3
- package/dist/{BaseIcon-UR3q41gQ.cjs → BaseIcon-WPy5Rb2H.cjs} +1 -1
- package/dist/{DataTable-DSxaFF3x.js → DataTable-BiaAVa_F.js} +2 -2
- package/dist/{DataTable-D-hda58J.cjs → DataTable-CdUbJy2R.cjs} +1 -1
- package/dist/{Legend-bHoLREZn.cjs → Legend-BnISukey.cjs} +1 -1
- package/dist/{Legend-DMkFFdOO.js → Legend-Dw8hyLSd.js} +2 -2
- package/dist/{PackageVersion-LxLDMXmr.js → PackageVersion-BFyYSHga.js} +1 -1
- package/dist/PackageVersion-DJECkV0A.cjs +1 -0
- package/dist/{PenAndPaper-C_SiTAbJ.js → PenAndPaper-1g9CCad-.js} +3 -3
- package/dist/{PenAndPaper-BO89xQwu.cjs → PenAndPaper-BLFX9yTF.cjs} +1 -1
- package/dist/{Shape-BysfkOzx.js → Shape-BSJQ7DnI.js} +1 -1
- package/dist/{Shape-tIX54tZo.cjs → Shape-DEgEDWnK.cjs} +1 -1
- package/dist/{Slicer-BxN9wDTW.cjs → Slicer-C0CDSZWe.cjs} +1 -1
- package/dist/{Slicer-Cguxp4_C.js → Slicer-CH4QNS2q.js} +2 -2
- package/dist/{Title-Dcy3qq8t.js → Title-BzUgxBMs.js} +1 -1
- package/dist/{Title-C7FKCxhh.cjs → Title-Cg-pVkpN.cjs} +1 -1
- package/dist/{Tooltip-HFiG7-b2.cjs → Tooltip-CFIkSHmH.cjs} +1 -1
- package/dist/{Tooltip-CRRn6Gtk.js → Tooltip-O0zo8BID.js} +1 -1
- package/dist/documentation/installation.md +2 -1
- package/dist/index-D6jkeYks.cjs +9 -0
- package/dist/{index-DD55onbf.js → index-DOp04QkH.js} +584 -417
- 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-Cf4jge53.js → useNestedProp-Bcfi6on_.js} +1 -1
- package/dist/{useNestedProp-eByLWGIp.cjs → useNestedProp-rf0W8kVM.cjs} +1 -1
- package/dist/{usePrinter-C1cmAKZi.cjs → usePrinter-DX7QbYMt.cjs} +1 -1
- package/dist/{usePrinter-DWsOiNiW.js → usePrinter-SqbV_ohU.js} +1 -1
- package/dist/vue-data-ui-Ch3scsoz.cjs +9 -0
- package/dist/{vue-data-ui-Ckk3cZP3.js → vue-data-ui-DZklL9pZ.js} +68 -66
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +59 -58
- package/dist/{vue-ui-3d-bar-CKUz-73_.js → vue-ui-3d-bar-B1W3tnaP.js} +41 -41
- package/dist/{vue-ui-3d-bar-vXOpY3Ff.cjs → vue-ui-3d-bar-VEHwaBcd.cjs} +11 -11
- package/dist/{vue-ui-accordion-DLLoQbUa.js → vue-ui-accordion-BXv_xEog.js} +3 -3
- package/dist/{vue-ui-accordion-Bd4pdW-K.cjs → vue-ui-accordion-CgkYT3Cq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Daa6G08e.js → vue-ui-age-pyramid-CBCTPthi.js} +12 -12
- package/dist/vue-ui-age-pyramid-D_IUZzvf.cjs +1 -0
- package/dist/{vue-ui-annotator-CroOFpE1.js → vue-ui-annotator-C34K5Ew0.js} +1 -1
- package/dist/{vue-ui-annotator-p9ayuN1-.cjs → vue-ui-annotator-CLIKuTqr.cjs} +1 -1
- package/dist/vue-ui-bullet-CzVEhFRG.cjs +34 -0
- package/dist/{vue-ui-bullet-D4_F7DfJ.js → vue-ui-bullet-Xk8xvqSf.js} +42 -42
- package/dist/{vue-ui-candlestick-C_CS8yoj.cjs → vue-ui-candlestick-Ba6yXyYj.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DH5ZszpO.js → vue-ui-candlestick-CCMbT5ip.js} +13 -13
- package/dist/{vue-ui-carousel-table-KRMGBHRP.js → vue-ui-carousel-table-BsDjjayA.js} +26 -26
- package/dist/vue-ui-carousel-table-CkTMdwC2.cjs +1 -0
- package/dist/{vue-ui-chestnut-DlzGrBKE.js → vue-ui-chestnut-HkoXXqLL.js} +11 -11
- package/dist/{vue-ui-chestnut-GIMUpe9V.cjs → vue-ui-chestnut-gNeEA-fs.cjs} +2 -2
- package/dist/vue-ui-circle-pack-C7mESU9Q.js +639 -0
- package/dist/vue-ui-circle-pack-DDdvmNlI.cjs +1 -0
- package/dist/{vue-ui-cursor-Bzpat70I.js → vue-ui-cursor-DB82p9Hm.js} +2 -2
- package/dist/{vue-ui-cursor-CP_hLq_F.cjs → vue-ui-cursor-DWcza74W.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CAxpWqdp.js → vue-ui-dashboard-C0BPKDja.js} +2 -2
- package/dist/{vue-ui-dashboard-Bl45zC_-.cjs → vue-ui-dashboard-C61sthvf.cjs} +1 -1
- package/dist/{vue-ui-digits-DBsciKvZ.js → vue-ui-digits-CbE1Mix-.js} +2 -2
- package/dist/{vue-ui-digits-BUj0U6ah.cjs → vue-ui-digits-CbTCX8mU.cjs} +1 -1
- package/dist/vue-ui-donut-C57Wdzm2.cjs +1 -0
- package/dist/{vue-ui-donut-BaivqlQ9.js → vue-ui-donut-Cb2buz06.js} +15 -15
- package/dist/{vue-ui-donut-evolution-DwMUeGj1.js → vue-ui-donut-evolution-DdFLbXi8.js} +42 -42
- package/dist/vue-ui-donut-evolution-zlYc16Ii.cjs +1 -0
- package/dist/vue-ui-dumbbell-BFZ3fbJv.cjs +9 -0
- package/dist/{vue-ui-dumbbell-BYHA7gmV.js → vue-ui-dumbbell-Chl4VHoW.js} +12 -12
- package/dist/vue-ui-flow-CbXKICkI.cjs +1 -0
- package/dist/{vue-ui-flow-DNunZt6t.js → vue-ui-flow-DMBCObQV.js} +11 -11
- package/dist/vue-ui-funnel-BfjCE1cI.cjs +1 -0
- package/dist/{vue-ui-funnel-C3HTyg1p.js → vue-ui-funnel-DgfiF2HU.js} +12 -12
- package/dist/{vue-ui-galaxy-DqJhMTWB.js → vue-ui-galaxy-Dn0bfQjf.js} +29 -29
- package/dist/vue-ui-galaxy-Dpy6zMBl.cjs +1 -0
- package/dist/{vue-ui-gauge-TkdVQL99.js → vue-ui-gauge-BOU_X96H.js} +29 -29
- package/dist/vue-ui-gauge-CHnLLES1.cjs +1 -0
- package/dist/{vue-ui-gizmo-B8hAT82V.js → vue-ui-gizmo-DnhuJcvj.js} +3 -3
- package/dist/{vue-ui-gizmo-DkSmQPnp.cjs → vue-ui-gizmo-wrxzscYI.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CyoWZ7ce.js → vue-ui-heatmap-BAjPEZIs.js} +32 -32
- package/dist/vue-ui-heatmap-PD47EF73.cjs +1 -0
- package/dist/{vue-ui-history-plot-DCSjZE3t.js → vue-ui-history-plot--XkBi7LP.js} +33 -33
- package/dist/vue-ui-history-plot-AQOaXiMJ.cjs +1 -0
- package/dist/{vue-ui-kpi-DTIZqf1G.cjs → vue-ui-kpi-CFo8XLRM.cjs} +1 -1
- package/dist/{vue-ui-kpi-CEybiAoH.js → vue-ui-kpi-Di3Y0kcW.js} +3 -3
- package/dist/{vue-ui-mini-loader-DtmpAbXk.js → vue-ui-mini-loader-DZ-19Fy_.js} +2 -2
- package/dist/{vue-ui-mini-loader-vuKZGTDh.cjs → vue-ui-mini-loader-dxxljHLh.cjs} +1 -1
- package/dist/vue-ui-molecule-BJqx_dc3.cjs +1 -0
- package/dist/{vue-ui-molecule-CP3TR3uW.js → vue-ui-molecule-DJBnE_jH.js} +13 -13
- package/dist/vue-ui-mood-radar-CpwJ_cB8.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Cl0h0D-W.js → vue-ui-mood-radar-DBiJFS62.js} +13 -13
- package/dist/{vue-ui-nested-donuts-Dt5rDxew.js → vue-ui-nested-donuts-C42pYQix.js} +14 -14
- package/dist/{vue-ui-nested-donuts-C0umA4ML.cjs → vue-ui-nested-donuts-CefKrEVc.cjs} +2 -2
- package/dist/{vue-ui-onion-Dd6TzYXX.js → vue-ui-onion-B3phYszo.js} +13 -13
- package/dist/{vue-ui-onion-iQwEuELC.cjs → vue-ui-onion-BeDt4Anf.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CDWIGek4.js → vue-ui-parallel-coordinate-plot-MZBn_QTf.js} +35 -35
- package/dist/{vue-ui-parallel-coordinate-plot-D3tglRgP.cjs → vue-ui-parallel-coordinate-plot-jXTfaR6Q.cjs} +2 -2
- package/dist/{vue-ui-quadrant-HQMcbIkL.js → vue-ui-quadrant-Bq9Uulba.js} +14 -14
- package/dist/vue-ui-quadrant-CEXW_YPr.cjs +1 -0
- package/dist/{vue-ui-quick-chart-BHN_uJBE.js → vue-ui-quick-chart-C2rS5ZpC.js} +9 -9
- package/dist/{vue-ui-quick-chart-Debf-SrU.cjs → vue-ui-quick-chart-CbjQYY94.cjs} +1 -1
- package/dist/{vue-ui-radar-2Ck9VBhT.js → vue-ui-radar-DJbTdhLl.js} +14 -14
- package/dist/vue-ui-radar-DNt9byAF.cjs +1 -0
- package/dist/{vue-ui-rating-l_ou-fwb.js → vue-ui-rating-D7jOrfpr.js} +2 -2
- package/dist/{vue-ui-rating-CFUtQBK8.cjs → vue-ui-rating-DwNJCpUJ.cjs} +1 -1
- package/dist/vue-ui-relation-circle-DFYrWmK5.cjs +1 -0
- package/dist/{vue-ui-relation-circle-Bz9PNnTk.js → vue-ui-relation-circle-WSXW7BVk.js} +37 -37
- package/dist/{vue-ui-rings-BHSDf_bS.js → vue-ui-rings-CT-GkKu3.js} +36 -36
- package/dist/{vue-ui-rings-B88wRjdq.cjs → vue-ui-rings-CrZBI8PB.cjs} +2 -2
- package/dist/vue-ui-scatter-C3W6efmF.cjs +1 -0
- package/dist/{vue-ui-scatter-CFf7Shno.js → vue-ui-scatter-Dj_6kLom.js} +14 -14
- package/dist/{vue-ui-screenshot-CDenayoD.js → vue-ui-screenshot-Bp2d4iA5.js} +1 -1
- package/dist/{vue-ui-screenshot-c_vhJ0-B.cjs → vue-ui-screenshot-DZr2dJ3_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CESQcfWL.js → vue-ui-skeleton-7EpMEisR.js} +457 -377
- package/dist/vue-ui-skeleton-D2fiHeQ-.cjs +41 -0
- package/dist/{vue-ui-smiley-D-VUvg62.js → vue-ui-smiley-BYMlfZJN.js} +2 -2
- package/dist/{vue-ui-smiley-DbELC5Y0.cjs → vue-ui-smiley-bp0yYHVC.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BdRhlsPm.cjs → vue-ui-spark-trend-BT3hC8YK.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DhPjPyRU.js → vue-ui-spark-trend-DxAKSS2H.js} +5 -5
- package/dist/{vue-ui-sparkbar-DNCM5xum.js → vue-ui-sparkbar-B4rPY-wi.js} +4 -4
- package/dist/{vue-ui-sparkbar-wgbRG59n.cjs → vue-ui-sparkbar-C5XBU4Se.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-1F6Unq-t.js → vue-ui-sparkgauge-BjWIBcyh.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B-cPl2OP.cjs → vue-ui-sparkgauge-CqzU6lZq.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C69wU065.js → vue-ui-sparkhistogram-122mnka1.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Bf3Q8coy.cjs → vue-ui-sparkhistogram-w8GowxGd.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BvxaN2GO.cjs → vue-ui-sparkline-DSVfpk0u.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CrP5yEbF.js → vue-ui-sparkline-DnXzcZfe.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-C-zgACDi.js → vue-ui-sparkstackbar-DgB1H3Qg.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BlzBOi83.cjs → vue-ui-sparkstackbar-o25sQU3T.cjs} +1 -1
- package/dist/{vue-ui-stackbar-C96Fxg66.cjs → vue-ui-stackbar-DcXPnNeB.cjs} +2 -2
- package/dist/{vue-ui-stackbar-BYmJkNhD.js → vue-ui-stackbar-rTEU1rP4.js} +15 -15
- package/dist/vue-ui-strip-plot-DeBGuBRO.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BS7quLHn.js → vue-ui-strip-plot-Dsvur-Dh.js} +13 -13
- package/dist/{vue-ui-table-D4-lUGYK.js → vue-ui-table-DfD1dIuE.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BNmWCrcY.js → vue-ui-table-heatmap-BmMSuXBl.js} +8 -8
- package/dist/vue-ui-table-heatmap-UzDfjh7W.cjs +1 -0
- package/dist/{vue-ui-table-DwwE3i4I.cjs → vue-ui-table-qCnANsjT.cjs} +1 -1
- package/dist/vue-ui-table-sparkline-BvNNMcbM.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-CzVT74Bo.js → vue-ui-table-sparkline-KLjn68Pu.js} +8 -8
- package/dist/vue-ui-thermometer-DaYllSIU.cjs +1 -0
- package/dist/{vue-ui-thermometer-D6B1e-kE.js → vue-ui-thermometer-_OqrkIS5.js} +12 -12
- package/dist/{vue-ui-timer-Djy00gLF.js → vue-ui-timer-B3yM3Zsr.js} +5 -5
- package/dist/{vue-ui-timer-BVpkq0Eb.cjs → vue-ui-timer-BC7RuVRt.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BnFhNKNK.js → vue-ui-tiremarks-0PA75jsW.js} +9 -9
- package/dist/vue-ui-tiremarks-NeSNx9w7.cjs +1 -0
- package/dist/{vue-ui-treemap-qtGBTWTl.js → vue-ui-treemap-BX_X-IAg.js} +40 -40
- package/dist/vue-ui-treemap-Dwq5MOv6.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-Bv6fmPmz.cjs → vue-ui-vertical-bar-BN4p2KaI.cjs} +2 -2
- package/dist/{vue-ui-vertical-bar-Djtyca8s.js → vue-ui-vertical-bar-DtVo0EiM.js} +36 -36
- package/dist/{vue-ui-waffle--GwDqms-.js → vue-ui-waffle-Cpyxl7iK.js} +40 -40
- package/dist/vue-ui-waffle-DyKaHK13.cjs +1 -0
- package/dist/vue-ui-wheel-CmhC8bdI.cjs +1 -0
- package/dist/{vue-ui-wheel-DuULgJzV.js → vue-ui-wheel-DBca990z.js} +18 -18
- package/dist/vue-ui-word-cloud-CiUkioYv.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CSMNDZ9Y.js → vue-ui-word-cloud-DPkgBASF.js} +38 -38
- package/dist/{vue-ui-xy-C4WZl8Rn.cjs → vue-ui-xy-DKTy_ODO.cjs} +1 -1
- package/dist/{vue-ui-xy-Cy5OoDkY.js → vue-ui-xy-VNRWSrW0.js} +14 -14
- package/dist/{vue-ui-xy-canvas-D2OMF5vm.js → vue-ui-xy-canvas-ByWv8cWZ.js} +13 -13
- package/dist/{vue-ui-xy-canvas-DKyQkG9T.cjs → vue-ui-xy-canvas-CXCzXCTk.cjs} +3 -3
- package/package.json +3 -2
- package/dist/PackageVersion-C2d9irPH.cjs +0 -1
- package/dist/index-oJt6G-1X.cjs +0 -9
- package/dist/vue-data-ui-ClVi4qwu.cjs +0 -9
- package/dist/vue-ui-age-pyramid-DyOUxoA7.cjs +0 -1
- package/dist/vue-ui-bullet-B8ZrosoF.cjs +0 -34
- package/dist/vue-ui-carousel-table-BD4n--x5.cjs +0 -1
- package/dist/vue-ui-donut-evolution-T0q0AQpw.cjs +0 -1
- package/dist/vue-ui-donut-hlEvLIAG.cjs +0 -1
- package/dist/vue-ui-dumbbell-DeYS8Jqs.cjs +0 -9
- package/dist/vue-ui-flow-g2-DDXHU.cjs +0 -1
- package/dist/vue-ui-funnel-Dj7HoggX.cjs +0 -1
- package/dist/vue-ui-galaxy-DkKp1Fn6.cjs +0 -1
- package/dist/vue-ui-gauge-BzWGRR5d.cjs +0 -1
- package/dist/vue-ui-heatmap-BisHe3OP.cjs +0 -1
- package/dist/vue-ui-history-plot-BzyhAUsf.cjs +0 -1
- package/dist/vue-ui-molecule-BVwf_QS7.cjs +0 -1
- package/dist/vue-ui-mood-radar-CBtUbd5w.cjs +0 -1
- package/dist/vue-ui-quadrant-CuZcEJGS.cjs +0 -1
- package/dist/vue-ui-radar-DxZpBJtG.cjs +0 -1
- package/dist/vue-ui-relation-circle-Bo8oWyEB.cjs +0 -1
- package/dist/vue-ui-scatter-DwrvTcvG.cjs +0 -1
- package/dist/vue-ui-skeleton-Bl1lucUY.cjs +0 -41
- package/dist/vue-ui-strip-plot-BpLkljEL.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGb9QBzK.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BtVDfdx6.cjs +0 -1
- package/dist/vue-ui-thermometer-C6psexEi.cjs +0 -1
- package/dist/vue-ui-tiremarks-DQkEWxQJ.cjs +0 -1
- package/dist/vue-ui-treemap-BX6nGwvZ.cjs +0 -1
- package/dist/vue-ui-waffle-BWAIIf1i.cjs +0 -1
- package/dist/vue-ui-wheel-CabI8YAt.cjs +0 -1
- package/dist/vue-ui-word-cloud-BJqrgirH.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useCssVars as dt, useSlots as vt, computed as b, ref as i, watch as Re, onMounted as Ue, onBeforeUnmount as ct, openBlock as u, createElementBlock as r, normalizeClass as A, normalizeStyle as c, unref as d, createBlock as B, createCommentVNode as p, createSlots as ce, withCtx as k, renderSlot as m, normalizeProps as E, guardReactiveProps as H, createElementVNode as n, toDisplayString as h, createVNode as Y, Fragment as W, renderList as G, withKeys as ht, createTextVNode as pt } from "vue";
|
|
2
|
-
import { u as yt, c as gt, t as ft, a as bt, p as D, b as mt, o as Xe, e as K, v as N, d as he, i as le, f as R, X as _t, s as pe, w as kt, x as $t, y as xt, q as wt, r as Ct } from "./index-
|
|
2
|
+
import { u as yt, c as gt, t as ft, a as bt, p as D, b as mt, o as Xe, e as K, v as N, d as he, i as le, f as R, X as _t, s as pe, w as kt, x as $t, y as xt, q as wt, r as Ct } from "./index-DOp04QkH.js";
|
|
3
3
|
import { t as Tt, u as Lt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Nt } from "./Title-
|
|
5
|
-
import { u as Pt, U as St } from "./usePrinter-
|
|
6
|
-
import { _ as Vt } from "./Tooltip-
|
|
7
|
-
import { L as Ee } from "./Legend-
|
|
8
|
-
import It from "./vue-ui-skeleton-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as He } from "./useNestedProp-
|
|
12
|
-
import { _ as Mt } from "./PackageVersion-
|
|
13
|
-
import { P as zt } from "./PenAndPaper-
|
|
4
|
+
import { _ as Nt } from "./Title-BzUgxBMs.js";
|
|
5
|
+
import { u as Pt, U as St } from "./usePrinter-SqbV_ohU.js";
|
|
6
|
+
import { _ as Vt } from "./Tooltip-O0zo8BID.js";
|
|
7
|
+
import { L as Ee } from "./Legend-Dw8hyLSd.js";
|
|
8
|
+
import It from "./vue-ui-skeleton-7EpMEisR.js";
|
|
9
|
+
import Ot from "./BaseIcon-CZ4uFxC7.js";
|
|
10
|
+
import Ft from "./vue-ui-accordion-BXv_xEog.js";
|
|
11
|
+
import { u as He } from "./useNestedProp-Bcfi6on_.js";
|
|
12
|
+
import { _ as Mt } from "./PackageVersion-BFyYSHga.js";
|
|
13
|
+
import { P as zt } from "./PenAndPaper-1g9CCad-.js";
|
|
14
14
|
import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as We } from "./Shape-
|
|
15
|
+
import { _ as We } from "./Shape-BSJQ7DnI.js";
|
|
16
16
|
import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Et = ["id"], Ht = ["stop-color"], Wt = ["stop-color"], Gt = { key: 1 }, jt = ["x", "y", "width", "height", "fill", "rx"], qt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Yt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Kt = ["x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Zt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = ["y", "width", "height", "fill", "onMouseenter"], la = {
|
|
18
18
|
key: 6,
|
|
@@ -37,7 +37,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
37
37
|
setup(Ge, { expose: je, emit: qe }) {
|
|
38
38
|
const T = Ge;
|
|
39
39
|
dt((a) => ({
|
|
40
|
-
"
|
|
40
|
+
"782729ec": a.tdo
|
|
41
41
|
}));
|
|
42
42
|
const { vue_ui_vertical_bar: Ye } = yt(), Ke = vt(), J = b(() => !!T.dataset && T.dataset.length), C = i(gt()), Je = i(null), oe = i(!1), ne = i(""), Q = i(0), Qe = i(null), ye = i(0), U = i(null), ge = i(null), ue = i(null), fe = i(null), be = i(null), me = i(0), se = i(0), e = b({
|
|
43
43
|
get: () => $e(),
|
|
@@ -57,7 +57,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
57
57
|
} : a;
|
|
58
58
|
}
|
|
59
59
|
Re(() => T.config, (a) => {
|
|
60
|
-
e.value = $e(), re.value = !e.value.showOnChartHover, Se(), me.value += 1, se.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
60
|
+
e.value = $e(), re.value = !e.value.userOptions.showOnChartHover, Se(), me.value += 1, se.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
61
61
|
}, { deep: !0 }), Re(() => T.dataset, ee, { deep: !0 });
|
|
62
62
|
const { isPrinting: xe, isImaging: we, generatePdf: Ce, generateImage: Te } = Pt({
|
|
63
63
|
elementId: `vue-ui-vertical-bar_${C.value}`,
|
|
@@ -80,7 +80,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
80
80
|
noTitle: be.value
|
|
81
81
|
});
|
|
82
82
|
requestAnimationFrame(() => {
|
|
83
|
-
|
|
83
|
+
Oe.value = l, v.value = t / Q.value - g.value * 2;
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
Z.value = new ResizeObserver(a), Z.value.observe(U.value.parentNode);
|
|
@@ -100,7 +100,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
100
100
|
showTable: e.value.table.show,
|
|
101
101
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
102
102
|
showTooltip: e.value.style.chart.tooltip.show
|
|
103
|
-
}), Ve = b(() => $.value.sortDesc),
|
|
103
|
+
}), Ve = b(() => $.value.sortDesc), O = b(() => (T.dataset.forEach((a, l) => {
|
|
104
104
|
!a.value && !a.children && K({
|
|
105
105
|
componentName: "VueUiVerticalBar",
|
|
106
106
|
type: "datasetAttributeEmpty",
|
|
@@ -159,8 +159,8 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
159
159
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
160
160
|
paddingBottom: 12,
|
|
161
161
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
162
|
-
})), v = i(e.value.style.chart.layout.bars.height), g = i(e.value.style.chart.layout.bars.gap), at = b(() => (v.value + g.value) * Q.value),
|
|
163
|
-
width:
|
|
162
|
+
})), v = i(e.value.style.chart.layout.bars.height), g = i(e.value.style.chart.layout.bars.gap), at = b(() => (v.value + g.value) * Q.value), Oe = i(512), y = b(() => ({
|
|
163
|
+
width: Oe.value,
|
|
164
164
|
height: at.value,
|
|
165
165
|
padding: {
|
|
166
166
|
top: 12,
|
|
@@ -177,21 +177,21 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
177
177
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
178
178
|
}));
|
|
179
179
|
function ee() {
|
|
180
|
-
Q.value =
|
|
180
|
+
Q.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
181
181
|
}
|
|
182
182
|
const P = i([]);
|
|
183
183
|
function j(a) {
|
|
184
|
-
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), ee(), qe("selectLegend",
|
|
184
|
+
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), ee(), qe("selectLegend", F.value);
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
186
|
+
const F = b(() => O.value.filter((a) => !P.value.includes(a.id))), S = b(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
187
|
+
function Fe(a, l = !1, t = 0) {
|
|
188
188
|
return l ? R({
|
|
189
189
|
v: N(Math.abs(a) / S.value * 100),
|
|
190
190
|
s: "%",
|
|
191
191
|
r: t
|
|
192
192
|
}) : Math.abs(a) / S.value;
|
|
193
193
|
}
|
|
194
|
-
const M = b(() =>
|
|
194
|
+
const M = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), z = b(() => M.value.map((a) => a.sign).includes(-1)), lt = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
195
195
|
function x(a) {
|
|
196
196
|
const l = a / lt.value;
|
|
197
197
|
return s.value.width / (z.value ? 2 : 1) * l;
|
|
@@ -200,36 +200,36 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
200
200
|
return x(a) + s.value.left;
|
|
201
201
|
}
|
|
202
202
|
function q(a, l) {
|
|
203
|
-
const t =
|
|
203
|
+
const t = F.value.find((f) => f.id === a.parentId), o = s.value.top + (g.value + v.value) * l, _ = t.children.length * (g.value + v.value);
|
|
204
204
|
return {
|
|
205
205
|
y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
206
206
|
name: t.name,
|
|
207
207
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
208
|
-
percentageToTotal: isNaN(t.value / S.value) ? "" :
|
|
208
|
+
percentageToTotal: isNaN(t.value / S.value) ? "" : Fe(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
209
209
|
sign: t.sign
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
function nt() {
|
|
213
|
-
return
|
|
213
|
+
return F.value;
|
|
214
214
|
}
|
|
215
215
|
const ie = i(null), de = i(null);
|
|
216
216
|
function ut(a, l) {
|
|
217
217
|
de.value = {
|
|
218
218
|
datapoint: a,
|
|
219
219
|
seriesIndex: l,
|
|
220
|
-
series:
|
|
220
|
+
series: O.value,
|
|
221
221
|
config: e.value
|
|
222
222
|
}, oe.value = !0, ie.value = a.id;
|
|
223
223
|
let t = "";
|
|
224
224
|
const o = a.isChild ? a.parentName : a.name, _ = a.isChild ? a.name : "", f = e.value.style.chart.tooltip.customFormat;
|
|
225
225
|
$t(f) && xt(() => f({
|
|
226
226
|
datapoint: a,
|
|
227
|
-
series:
|
|
227
|
+
series: O.value,
|
|
228
228
|
config: e.value,
|
|
229
229
|
seriesIndex: l
|
|
230
230
|
})) ? ne.value = f({
|
|
231
231
|
datapoint: a,
|
|
232
|
-
series:
|
|
232
|
+
series: O.value,
|
|
233
233
|
config: e.value,
|
|
234
234
|
seriesIndex: l
|
|
235
235
|
}) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
@@ -268,7 +268,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
268
268
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
269
269
|
}),
|
|
270
270
|
{ datapoint: l, seriesIndex: t }
|
|
271
|
-
), f = `(${
|
|
271
|
+
), f = `(${Fe(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
272
272
|
return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
|
|
273
273
|
}
|
|
274
274
|
const L = b(() => {
|
|
@@ -515,7 +515,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
515
515
|
}, [
|
|
516
516
|
(u(), B(Ee, {
|
|
517
517
|
key: `legend_top_${se.value}`,
|
|
518
|
-
legendSet:
|
|
518
|
+
legendSet: O.value,
|
|
519
519
|
config: Ie.value,
|
|
520
520
|
onClickMarker: l[0] || (l[0] = ({ legend: t }) => j(t.id))
|
|
521
521
|
}, ce({
|
|
@@ -724,7 +724,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
724
724
|
}, [
|
|
725
725
|
(u(), B(Ee, {
|
|
726
726
|
key: `legend_bottom_${se.value}`,
|
|
727
|
-
legendSet:
|
|
727
|
+
legendSet: O.value,
|
|
728
728
|
config: Ie.value,
|
|
729
729
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => j(t.id))
|
|
730
730
|
}, ce({
|
|
@@ -761,7 +761,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
761
761
|
} : void 0
|
|
762
762
|
]), 1032, ["legendSet", "config"]))
|
|
763
763
|
], 512)) : p("", !0),
|
|
764
|
-
m(a.$slots, "legend", { legend:
|
|
764
|
+
m(a.$slots, "legend", { legend: O.value }, void 0, !0),
|
|
765
765
|
a.$slots.source ? (u(), r("div", {
|
|
766
766
|
key: 9,
|
|
767
767
|
ref_key: "source",
|
|
@@ -794,7 +794,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
794
794
|
]),
|
|
795
795
|
_: 3
|
|
796
796
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
797
|
-
J.value ? (u(), B(
|
|
797
|
+
J.value ? (u(), B(Ft, {
|
|
798
798
|
key: 10,
|
|
799
799
|
hideDetails: "",
|
|
800
800
|
config: {
|
|
@@ -824,7 +824,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
824
824
|
onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
|
|
825
825
|
onKeypress: l[4] || (l[4] = ht((t) => $.value.showTable = !1, ["enter"]))
|
|
826
826
|
}, [
|
|
827
|
-
Y(
|
|
827
|
+
Y(Ot, {
|
|
828
828
|
name: "close",
|
|
829
829
|
stroke: e.value.table.th.color,
|
|
830
830
|
"stroke-width": 2
|
|
@@ -948,7 +948,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
948
948
|
}, 8, ["config"])) : p("", !0)
|
|
949
949
|
], 46, Dt));
|
|
950
950
|
}
|
|
951
|
-
}, Ra = /* @__PURE__ */ Bt(xa, [["__scopeId", "data-v-
|
|
951
|
+
}, Ra = /* @__PURE__ */ Bt(xa, [["__scopeId", "data-v-320e6bda"]]);
|
|
952
952
|
export {
|
|
953
953
|
Ra as default
|
|
954
954
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useSlots as tt, computed as d, ref as v, watch as Ne, onMounted as lt, onBeforeUnmount as at, openBlock as s, createElementBlock as r, normalizeClass as Be, normalizeStyle as X, unref as c, createBlock as N, createCommentVNode as y, createSlots as Ve, withCtx as b, renderSlot as g, normalizeProps as B, guardReactiveProps as V, createVNode as ne, createElementVNode as x, Fragment as C, renderList as
|
|
2
|
-
import { u as rt, c as nt, t as it, a as vt, p as M, o as ct, e as ie, g as dt, b as ht, i as E, f as $, X as pt, s as yt, w as ft, G as gt, L as bt, d as mt, x as wt, y as kt, q as xt, r as _t } from "./index-
|
|
1
|
+
import { useSlots as tt, computed as d, ref as v, watch as Ne, onMounted as lt, onBeforeUnmount as at, openBlock as s, createElementBlock as r, normalizeClass as Be, normalizeStyle as X, unref as c, createBlock as N, createCommentVNode as y, createSlots as Ve, withCtx as b, renderSlot as g, normalizeProps as B, guardReactiveProps as V, createVNode as ne, createElementVNode as x, Fragment as C, renderList as L, toDisplayString as A, createTextVNode as Me, nextTick as ot, pushScopeId as ut, popScopeId as st } from "vue";
|
|
2
|
+
import { u as rt, c as nt, t as it, a as vt, p as M, o as ct, e as ie, g as dt, b as ht, i as E, f as $, X as pt, s as yt, w as ft, G as gt, L as bt, d as mt, x as wt, y as kt, q as xt, r as _t } from "./index-DOp04QkH.js";
|
|
3
3
|
import { t as Ct, u as $t } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as It } from "./Title-
|
|
5
|
-
import { u as Tt, U as St } from "./usePrinter-
|
|
6
|
-
import { _ as Pt } from "./Tooltip-
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import At from "./vue-ui-skeleton-
|
|
10
|
-
import Ft from "./vue-ui-accordion-
|
|
11
|
-
import { u as De } from "./useNestedProp-
|
|
12
|
-
import { _ as zt } from "./PackageVersion-
|
|
13
|
-
import { P as Nt } from "./PenAndPaper-
|
|
4
|
+
import { _ as It } from "./Title-BzUgxBMs.js";
|
|
5
|
+
import { u as Tt, U as St } from "./usePrinter-SqbV_ohU.js";
|
|
6
|
+
import { _ as Pt } from "./Tooltip-O0zo8BID.js";
|
|
7
|
+
import { D as Ot } from "./DataTable-BiaAVa_F.js";
|
|
8
|
+
import { L as Lt } from "./Legend-Dw8hyLSd.js";
|
|
9
|
+
import At from "./vue-ui-skeleton-7EpMEisR.js";
|
|
10
|
+
import Ft from "./vue-ui-accordion-BXv_xEog.js";
|
|
11
|
+
import { u as De } from "./useNestedProp-Bcfi6on_.js";
|
|
12
|
+
import { _ as zt } from "./PackageVersion-BFyYSHga.js";
|
|
13
|
+
import { P as Nt } from "./PenAndPaper-1g9CCad-.js";
|
|
14
14
|
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as Vt } from "./Shape-
|
|
15
|
+
import { _ as Vt } from "./Shape-BSJQ7DnI.js";
|
|
16
16
|
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Ue = (W) => (ut("data-v-
|
|
17
|
+
const Ue = (W) => (ut("data-v-5a674907"), W = W(), st(), W), Dt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], Rt = ["stop-color"], jt = ["stop-color"], Et = ["id"], Wt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ x("feGaussianBlur", {
|
|
18
18
|
in: "SourceGraphic",
|
|
19
19
|
stdDeviation: 2
|
|
20
20
|
}, null, -1)), qt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ x("feColorMatrix", {
|
|
@@ -62,7 +62,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
62
62
|
} : t;
|
|
63
63
|
}
|
|
64
64
|
Ne(() => m.config, (t) => {
|
|
65
|
-
e.value = we(), ae.value = !e.value.showOnChartHover, ke(), ye.value += 1, fe.value += 1, ge.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
65
|
+
e.value = we(), ae.value = !e.value.userOptions.showOnChartHover, ke(), ye.value += 1, fe.value += 1, ge.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
66
66
|
}, { deep: !0 });
|
|
67
67
|
const J = v(null);
|
|
68
68
|
function ke() {
|
|
@@ -212,8 +212,8 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
212
212
|
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
|
|
213
213
|
});
|
|
214
214
|
return t;
|
|
215
|
-
}), p = v([]), z = v(!1), Pe = v(null),
|
|
216
|
-
function
|
|
215
|
+
}), p = v([]), z = v(!1), Pe = v(null), Oe = v(null);
|
|
216
|
+
function Le(t) {
|
|
217
217
|
if (!e.value.useAnimation) {
|
|
218
218
|
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < R.value.length - 1 && R.value.length > 1 && p.value.push(t);
|
|
219
219
|
return;
|
|
@@ -235,13 +235,13 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
235
235
|
i();
|
|
236
236
|
} else if (p.value.length < R.value.length - 1 && R.value.length > 1) {
|
|
237
237
|
let u = function() {
|
|
238
|
-
o < l / 100 ? (cancelAnimationFrame(
|
|
238
|
+
o < l / 100 ? (cancelAnimationFrame(Oe.value), p.value.push(t), h.value = h.value.map((i, f) => i.uid === t ? {
|
|
239
239
|
...i,
|
|
240
240
|
values: [0]
|
|
241
241
|
} : i), z.value = !1) : (z.value = !0, o /= 1.15, h.value = h.value.map((i) => i.uid === t ? {
|
|
242
242
|
...i,
|
|
243
243
|
values: [o]
|
|
244
|
-
} : i),
|
|
244
|
+
} : i), Oe.value = requestAnimationFrame(u));
|
|
245
245
|
};
|
|
246
246
|
u();
|
|
247
247
|
}
|
|
@@ -262,7 +262,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
262
262
|
...t,
|
|
263
263
|
proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
|
|
264
264
|
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
265
|
-
segregate: () =>
|
|
265
|
+
segregate: () => Le(t.uid),
|
|
266
266
|
isSegregated: p.value.includes(t.uid)
|
|
267
267
|
}))), Qe = d(() => ({
|
|
268
268
|
cy: "waffle-div-legend",
|
|
@@ -321,7 +321,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
321
321
|
le.value = o;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
const
|
|
324
|
+
const O = d(() => {
|
|
325
325
|
const t = H.value.map((l) => ({
|
|
326
326
|
name: l.name,
|
|
327
327
|
color: l.color
|
|
@@ -333,9 +333,9 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
333
333
|
}
|
|
334
334
|
function Ae() {
|
|
335
335
|
ot(() => {
|
|
336
|
-
const t =
|
|
336
|
+
const t = O.value.head.map((o, u) => [[
|
|
337
337
|
o.name
|
|
338
|
-
], [
|
|
338
|
+
], [O.value.body[u]], [isNaN(O.value.body[u] / P.value) ? "-" : O.value.body[u] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = xt(a);
|
|
339
339
|
_t({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
340
340
|
});
|
|
341
341
|
}
|
|
@@ -353,23 +353,23 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
353
353
|
})
|
|
354
354
|
),
|
|
355
355
|
"100%"
|
|
356
|
-
], a =
|
|
356
|
+
], a = O.value.head.map((u, i) => [
|
|
357
357
|
{
|
|
358
358
|
color: u.color,
|
|
359
359
|
name: u.name
|
|
360
360
|
},
|
|
361
361
|
E(
|
|
362
362
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
363
|
-
|
|
363
|
+
O.value.body[i],
|
|
364
364
|
$({
|
|
365
365
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
366
|
-
v:
|
|
366
|
+
v: O.value.body[i],
|
|
367
367
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
368
368
|
r: e.value.table.td.roundingValue
|
|
369
369
|
})
|
|
370
370
|
),
|
|
371
|
-
isNaN(
|
|
372
|
-
v:
|
|
371
|
+
isNaN(O.value.body[i] / P.value) ? "-" : $({
|
|
372
|
+
v: O.value.body[i] / P.value * 100,
|
|
373
373
|
s: "%",
|
|
374
374
|
r: e.value.table.td.roundingPercentage
|
|
375
375
|
})
|
|
@@ -555,7 +555,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
555
555
|
}, [
|
|
556
556
|
ne(zt),
|
|
557
557
|
x("defs", null, [
|
|
558
|
-
(s(!0), r(C, null,
|
|
558
|
+
(s(!0), r(C, null, L(n.value, (l, o) => (s(), r("radialGradient", {
|
|
559
559
|
cx: "50%",
|
|
560
560
|
cy: "50%",
|
|
561
561
|
r: "50%",
|
|
@@ -582,7 +582,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
582
582
|
height: "200%"
|
|
583
583
|
}, Ht, 8, Et)
|
|
584
584
|
]),
|
|
585
|
-
e.value.useCustomCells && n.value.length ? (s(!0), r(C, { key: 0 },
|
|
585
|
+
e.value.useCustomCells && n.value.length ? (s(!0), r(C, { key: 0 }, L(G.value, (l, o) => (s(), r("foreignObject", {
|
|
586
586
|
x: l.x,
|
|
587
587
|
y: l.y,
|
|
588
588
|
height: S.value <= 0 ? 1e-4 : S.value,
|
|
@@ -602,11 +602,11 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
602
602
|
stroke: "black"
|
|
603
603
|
}, null, 8, Yt)) : n.value.length && !e.value.useCustomCells ? (s(), r(C, { key: 2 }, [
|
|
604
604
|
t.$slots.pattern ? (s(), r("g", Jt, [
|
|
605
|
-
(s(!0), r(C, null,
|
|
605
|
+
(s(!0), r(C, null, L(oe.value, (l) => (s(), r("defs", null, [
|
|
606
606
|
g(t.$slots, "pattern", B(V({ seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` })), void 0, !0)
|
|
607
607
|
]))), 256))
|
|
608
608
|
])) : y("", !0),
|
|
609
|
-
(s(!0), r(C, null,
|
|
609
|
+
(s(!0), r(C, null, L(G.value, (l, o) => (s(), r("rect", {
|
|
610
610
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
611
611
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
612
612
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -617,7 +617,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
617
617
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
618
618
|
filter: Q(n.value[o].serieIndex)
|
|
619
619
|
}, null, 8, Kt))), 256)),
|
|
620
|
-
(s(!0), r(C, null,
|
|
620
|
+
(s(!0), r(C, null, L(G.value, (l, o) => (s(), r("rect", {
|
|
621
621
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
622
622
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
623
623
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -629,7 +629,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
629
629
|
filter: Q(n.value[o].serieIndex)
|
|
630
630
|
}, null, 8, Qt))), 256)),
|
|
631
631
|
t.$slots.pattern ? (s(), r("g", Zt, [
|
|
632
|
-
(s(!0), r(C, null,
|
|
632
|
+
(s(!0), r(C, null, L(G.value, (l, o) => (s(), r("rect", {
|
|
633
633
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
634
634
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
635
635
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -641,7 +641,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
641
641
|
}, null, 8, el))), 256))
|
|
642
642
|
])) : y("", !0)
|
|
643
643
|
], 64)) : y("", !0),
|
|
644
|
-
(s(!0), r(C, null,
|
|
644
|
+
(s(!0), r(C, null, L(G.value, (l, o) => (s(), r(C, null, [
|
|
645
645
|
n.value.length && !z.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (n.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || n.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && n.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
|
|
646
646
|
key: 0,
|
|
647
647
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -681,7 +681,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
681
681
|
], 4)
|
|
682
682
|
], 8, tl)) : y("", !0)
|
|
683
683
|
], 64))), 256)),
|
|
684
|
-
(s(!0), r(C, null,
|
|
684
|
+
(s(!0), r(C, null, L(G.value, (l, o) => (s(), r("rect", {
|
|
685
685
|
onMouseover: (u) => Ze(o),
|
|
686
686
|
onMouseleave: a[0] || (a[0] = (u) => {
|
|
687
687
|
te.value = !1, D.value = null;
|
|
@@ -714,11 +714,11 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
714
714
|
ref_key: "chartLegend",
|
|
715
715
|
ref: de
|
|
716
716
|
}, [
|
|
717
|
-
e.value.style.chart.legend.show ? (s(), N(
|
|
717
|
+
e.value.style.chart.legend.show ? (s(), N(Lt, {
|
|
718
718
|
key: `legend_${ge.value}`,
|
|
719
719
|
legendSet: R.value,
|
|
720
720
|
config: Qe.value,
|
|
721
|
-
onClickMarker: a[1] || (a[1] = ({ legend: l }) =>
|
|
721
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => Le(l.uid))
|
|
722
722
|
}, Ve({
|
|
723
723
|
item: b(({ legend: l }) => [
|
|
724
724
|
x("div", {
|
|
@@ -809,7 +809,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
809
809
|
}
|
|
810
810
|
}, {
|
|
811
811
|
content: b(() => [
|
|
812
|
-
(s(), N(
|
|
812
|
+
(s(), N(Ot, {
|
|
813
813
|
key: `table_${fe.value}`,
|
|
814
814
|
colNames: Z.value.colNames,
|
|
815
815
|
head: Z.value.head,
|
|
@@ -834,7 +834,7 @@ const Ue = (W) => (ut("data-v-69bc0197"), W = W(), st(), W), Dt = ["id"], Ut = [
|
|
|
834
834
|
}, 8, ["config"])) : y("", !0)
|
|
835
835
|
], 46, Dt));
|
|
836
836
|
}
|
|
837
|
-
}, Pl = /* @__PURE__ */ Mt(dl, [["__scopeId", "data-v-
|
|
837
|
+
}, Pl = /* @__PURE__ */ Mt(dl, [["__scopeId", "data-v-5a674907"]]);
|
|
838
838
|
export {
|
|
839
839
|
Pl as default
|
|
840
840
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D6jkeYks.cjs"),ye=require("./useResponsive-BJ7DTGpm.cjs"),Ie=require("./Title-Cg-pVkpN.cjs"),ge=require("./usePrinter-DX7QbYMt.cjs"),ze=require("./Tooltip-CFIkSHmH.cjs"),Fe=require("./DataTable-CdUbJy2R.cjs"),Oe=require("./Legend-BnISukey.cjs"),Ae=require("./vue-ui-skeleton-D2fiHeQ-.cjs"),De=require("./vue-ui-accordion-CgkYT3Cq.cjs"),me=require("./useNestedProp-rf0W8kVM.cjs"),qe=require("./PackageVersion-DJECkV0A.cjs"),Me=require("./PenAndPaper-BLFX9yTF.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Ue=require("./Shape-DEgEDWnK.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be=T=>(e.pushScopeId("data-v-5a674907"),T=T(),e.popScopeId(),T),Ge=["id"],We=["xmlns","viewBox"],He=["id"],Ye=["stop-color"],Xe=["stop-color"],Je=["id"],Ke=be(()=>e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2},null,-1)),Qe=be(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Ze=[Ke,Qe],et=["x","y","height","width"],tt=["height","width"],lt={key:0},at=["rx","x","y","height","width","stroke","stroke-width","filter"],ot=["rx","x","y","height","width","fill","stroke","stroke-width","filter"],rt={key:1},nt=["rx","x","y","height","width","fill","filter"],ut=["x","y","height","width","filter"],st={key:0},it={key:1},ct={key:2},vt={key:3},dt=["onMouseover","x","y","height","width"],pt={key:5,class:"vue-data-ui-watermark"},ht=["onClick"],ft={key:0},yt={key:1},gt=["innerHTML"],mt={__name:"vue-ui-waffle",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(T,{expose:ke,emit:we}){const p=T,{vue_ui_waffle:Ce}=u.useConfig(),xe=e.useSlots(),V=e.computed(()=>!!p.dataset&&p.dataset.length),f=e.ref(u.createUid()),Be=e.ref(null),A=e.ref(!1),D=e.ref(""),B=e.ref(null),G=e.ref(0),_=e.ref(null),W=e.ref(null),H=e.ref(null),Y=e.ref(null),X=e.ref(null),J=e.ref(0),K=e.ref(0),Q=e.ref(0),t=e.computed({get:()=>te(),set:l=>l}),{userOptionsVisible:q,setUserOptionsVisibility:Z,keepUserOptionState:ee}=Re.useUserOptionState({config:t.value});function te(){const l=me.useNestedProp({userConfig:p.config,defaultConfig:Ce});return l.theme?{...me.useNestedProp({userConfig:u.themes.vue_ui_waffle[l.theme]||p.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>p.config,l=>{t.value=te(),q.value=!t.value.userOptions.showOnChartHover,le(),J.value+=1,K.value+=1,Q.value+=1,y.value.showTable=t.value.table.show,y.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const E=e.ref(null);function le(){if(u.objectIsEmpty(p.dataset)?u.error({componentName:"VueUiWaffle",type:"dataset"}):p.dataset.forEach((l,o)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=ye.throttle(()=>{const{width:o,height:a}=ye.useResponsive({chart:_.value,title:t.value.style.chart.title.text?W.value:null,legend:t.value.style.chart.legend.show?H.value:null,source:Y.value,noTitle:X.value});requestAnimationFrame(()=>{C.value.width=o,C.value.height=a,g.value.width=o,g.value.height=a})});E.value=new ResizeObserver(l),E.value.observe(_.value.parentNode)}}e.onMounted(()=>{le()}),e.onBeforeUnmount(()=>{E.value&&E.value.disconnect()});const{isPrinting:ae,isImaging:oe,generatePdf:re,generateImage:ne}=ge.usePrinter({elementId:`vue-ui-waffle_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-waffle"}),_e=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ue=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),y=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),C=e.ref({height:512,width:512}),g=e.ref({top:0,left:0,height:512,width:512}),m=e.computed(()=>(g.value.width-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),b=e.computed(()=>(g.value.height-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),L=e.computed(()=>g.value.width/t.value.style.chart.layout.grid.size),I=e.computed(()=>g.value.height/t.value.style.chart.layout.grid.size);function se(l){const o=t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.size,a=l.reduce((h,j)=>h+j,0),r=l.map(h=>h/a*o),n=r.map(Math.floor),i=r.map(h=>h%1);let d=o-n.reduce((h,j)=>h+j,0);for(;d>0;){let h=i.indexOf(Math.max(...i));n[h]+=1,i[h]=0,d-=1}return n}function ie(){return p.dataset.map((l,o)=>({...l,color:u.convertColorToHex(l.color)||ue.value[o]||u.palette[o]||u.palette[o%u.palette.length],uid:`serie_${o}`,absoluteIndex:o}))}const M=e.computed(()=>ie()),c=e.ref(M.value);e.watch(()=>p.dataset,l=>{c.value=ie()},{deep:!0});const Se=e.computed(()=>{const l=c.value.filter((o,a)=>!v.value.includes(o.uid)).map((o,a)=>(o.values||[]).reduce((r,n)=>r+n,0));return se(l)}),$e=e.computed(()=>{const l=c.value.map((o,a)=>(o.values||[]).reduce((r,n)=>r+n));return se(l)}),P=e.computed(()=>(p.dataset.forEach((l,o)=>{[null,void 0].includes(l.values)&&u.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:"values (number[])",index:o})}),c.value.filter((l,o)=>!v.value.includes(l.uid)).map((l,o)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,r)=>a+r,0),absoluteValues:l.values||[],proportion:Se.value[o]})))),Ne=e.computed(()=>c.value.map((l,o)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,r)=>a+r,0),absoluteValues:l.values||[],proportion:$e.value[o]})));function Te(){return Ne.value.map(l=>({name:l.name,color:l.color,value:l.value,proportion:l.proportion}))}const Le=e.computed(()=>{let l=0;return P.value.map((o,a)=>{const r=l,n=r+o.proportion,i=[];for(let d=Math.floor(r);d<Math.floor(n);d+=1)i.push(d);return l=n,{...o,start:r,rects:i}})}),s=e.computed(()=>Le.value.flatMap((l,o)=>l.rects.map((a,r)=>({isFirst:r===0,isLongEnough:a.length>2,name:l.name,color:l.color,value:l.value,serieIndex:o,absoluteStartIndex:r<3,serieId:l.uid,...l}))).map((l,o)=>({...l,isAbsoluteFirst:o%t.value.style.chart.layout.grid.size===0}))),S=e.computed(()=>{const l=[];for(let o=0;o<t.value.style.chart.layout.grid.size;o+=1)for(let a=0;a<t.value.style.chart.layout.grid.size;a+=1)l.push({isStartOfLine:a===0,position:t.value.style.chart.layout.grid.vertical?o:a,x:(t.value.style.chart.layout.grid.vertical?o:a)*(m.value+t.value.style.chart.layout.grid.spaceBetween),y:(t.value.style.chart.layout.grid.vertical?a:o)*(b.value+t.value.style.chart.layout.grid.spaceBetween)+g.value.top});return l}),v=e.ref([]),x=e.ref(!1),ce=e.ref(null),ve=e.ref(null);function de(l){if(!t.value.useAnimation){v.value.includes(l)?v.value=v.value.filter(n=>n!==l):v.value.length<$.value.length-1&&$.value.length>1&&v.value.push(l);return}const o=M.value.find(n=>n.uid===l).values.reduce((n,i)=>n+i,0),a=c.value.find(n=>n.uid===l).values.reduce((n,i)=>n+i,0);let r=a;if(v.value.includes(l)){let i=function(){r>n?(cancelAnimationFrame(ce.value),c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[n]}:d),x.value=!1):(x.value=!0,r+=n*.025,c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[r]}:d),ce.value=requestAnimationFrame(i))};v.value=v.value.filter(d=>d!==l);const n=o;i()}else if(v.value.length<$.value.length-1&&$.value.length>1){let n=function(){r<a/100?(cancelAnimationFrame(ve.value),v.value.push(l),c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[0]}:i),x.value=!1):(x.value=!0,r/=1.15,c.value=c.value.map(i=>i.uid===l?{...i,values:[r]}:i),ve.value=requestAnimationFrame(n))};n()}we("selectLegend",P.value.map(n=>({name:n.name,color:n.color,value:n.value,proportion:n.proportion/Math.pow(t.value.style.chart.layout.grid.size,2)})))}const $=e.computed(()=>c.value.map((l,o)=>({name:l.name,color:l.color||ue[o]||u.palette[o]||u.palette[o%u.palette.length],value:(l.values||[]).reduce((a,r)=>a+r,0),uid:l.uid,shape:"square"})).map(l=>({...l,proportion:l.value/c.value.map(o=>(o.values||[]).reduce((a,r)=>a+r,0)).reduce((o,a)=>o+a,0),opacity:v.value.includes(l.uid)?.5:1,segregate:()=>de(l.uid),isSegregated:v.value.includes(l.uid)}))),Pe=e.computed(()=>({cy:"waffle-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),k=e.computed(()=>P.value.map(l=>l.value).reduce((l,o)=>l+o,0)),R=e.ref(null);function Ve(l){if(v.value.length===p.dataset.length)return;const o=s.value[l];R.value={datapoint:o,seriesIndex:o.absoluteIndex,series:c.value,config:t.value},A.value=!0,B.value=s.value[l].serieIndex;const a=t.value.style.chart.tooltip.customFormat;if(u.isFunction(a)&&u.functionReturnsString(()=>a({seriesIndex:s.value[l].absoluteIndex,datapoint:o,series:c.value,config:t.value})))D.value=a({seriesIndex:s.value[l].absoluteIndex,datapoint:o,series:c.value,config:t.value});else{let r="";if(r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${o.color}" />${xe.pattern?`<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${f.value}_${o.absoluteIndex})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(r+=`<b>${u.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,u.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:s.value[l].absoluteIndex,series:c.value})}</b>`),t.value.style.chart.tooltip.showPercentage){const n=u.dataLabel({v:o.value/k.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage});t.value.style.chart.tooltip.showValue?r+=`<span>(${n})</span></div>`:r+=`<b>${n}%</b></div>`}D.value=r}}const w=e.computed(()=>{const l=P.value.map(a=>({name:a.name,color:a.color})),o=P.value.map(a=>a.value);return{head:l,body:o}});function z(l){return t.value.useBlurOnHover&&![null,void 0].includes(B.value)&&B.value!==l?`url(#blur_${f.value})`:""}function pe(){e.nextTick(()=>{const l=w.value.head.map((r,n)=>[[r.name],[w.value.body[n]],[isNaN(w.value.body[n]/k.value)?"-":w.value.body[n]/k.value*100]]),o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),a=u.createCsvContent(o);u.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-waffle"})})}const F=e.computed(()=>{const l=[' <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>',u.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,k.value,u.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:k.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),"100%"],o=w.value.head.map((n,i)=>[{color:n.color,name:n.name},u.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,w.value.body[i],u.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:w.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),isNaN(w.value.body[i]/k.value)?"-":u.dataLabel({v:w.value.body[i]/k.value*100,s:"%",r:t.value.table.td.roundingPercentage})]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},shape:"square",breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:o,config:a,colNames:r}}),N=e.ref(!1);function Ee(l){N.value=l,G.value+=1}function he(){y.value.showTable=!y.value.showTable}function fe(){y.value.showTooltip=!y.value.showTooltip}const O=e.ref(!1);function U(){O.value=!O.value}return ke({getData:Te,generatePdf:re,generateCsv:pe,generateImage:ne,toggleTable:he,toggleTooltip:fe,toggleAnnotator:U}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-waffle ${N.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"waffleChart",ref:_,id:`vue-ui-waffle_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:o[3]||(o[3]=()=>e.unref(Z)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(Z)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Me.PenAndPaper,{key:0,parent:_.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:O.value,onClose:U},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),_e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:X,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:W,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Ie._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"waffle-title",...t.value.style.chart.title},subtitle:{cy:"waffle-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value&&(e.unref(ee)||e.unref(q))?(e.openBlock(),e.createBlock(ge.UserOptions,{ref_key:"details",ref:Be,key:`user_options_${G.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(oe),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:N.value,isTooltip:y.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:O.value,onToggleFullscreen:Ee,onGeneratePdf:e.unref(re),onGenerateCsv:pe,onGenerateImage:e.unref(ne),onToggleTable:he,onToggleTooltip:fe,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(ee)?e.unref(q)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":N.value,"vue-data-ui-fulscreen--off":!N.value}),viewBox:`0 0 ${C.value.width<=0?10:C.value.width} ${C.value.height<=0?10:C.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(qe._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(e.unref(u.shiftHue)(a.color,.05),100-t.value.style.chart.layout.rect.gradientIntensity)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Xe)],8,He))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},Ze,8,Je)]),t.value.useCustomCells&&s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("foreignObject",{x:a.x,y:a.y,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,class:"vue-ui-waffle-custom-cell-foreignObject"},[e.renderSlot(l.$slots,"cell",e.normalizeProps(e.guardReactiveProps({cell:{...a,color:s.value[r].color,...s.value[r]},isSelected:[null,void 0].includes(B.value)?!0:s.value[r].serieIndex===B.value})),void 0,!0)],8,et))),256)):e.createCommentVNode("",!0),!s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock("rect",{key:1,x:12,y:12,height:g.value.height-24,width:g.value.width-24,rx:3,fill:"none",stroke:"black"},null,8,tt)):s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,a=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:a.absoluteIndex,patternId:`pattern_${f.value}_${a.absoluteIndex}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,fill:"white",stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:z(s.value[r].serieIndex)},null,8,at))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,fill:t.value.style.chart.layout.rect.useGradient&&t.value.style.chart.layout.rect.gradientIntensity>0?`url(#gradient_${f.value}_${r})`:s.value[r].color,stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:z(s.value[r].serieIndex)},null,8,ot))),256)),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:b.value<=0?1e-4:b.value,width:m.value<=0?1e-4:m.value,fill:`url(#pattern_${f.value}_${s.value[r].absoluteIndex})`,stroke:"none",filter:z(s.value[r].serieIndex)},null,8,nt))),256))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value.length&&!x.value&&!t.value.style.chart.layout.grid.vertical&&t.value.style.chart.layout.labels.captions.show&&(s.value[r].isFirst&&a.position<t.value.style.chart.layout.grid.size-2||s.value[r].isAbsoluteFirst&&r%t.value.style.chart.layout.grid.size===0&&s.value[r].absoluteStartIndex)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.x+t.value.style.chart.layout.labels.captions.offsetX+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.labels.captions.offsetY+t.value.style.chart.layout.grid.spaceBetween/2,height:I.value<=0?1e-4:I.value,width:L.value*t.value.style.chart.layout.grid.size<=0?1e-4:L.value*t.value.style.chart.layout.grid.size,filter:z(s.value[r].serieIndex)},[e.createElementVNode("div",{class:"vue-ui-waffle-caption",style:e.normalizeStyle(`height: 100%; width: 100%; font-size:${t.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${L.value/12}px;color:${e.unref(u.adaptColorToBackground)(s.value[r].color)};gap:2px`)},[t.value.style.chart.layout.labels.captions.showSerieName?(e.openBlock(),e.createElementBlock("span",st,e.toDisplayString(t.value.style.chart.layout.labels.captions.serieNameAbbreviation?e.unref(u.abbreviate)({source:s.value[r].name,length:t.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize}):s.value[r].name)+": ",1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage?(e.openBlock(),e.createElementBlock("span",it,e.toDisplayString(e.unref(u.dataLabel)({v:s.value[r].proportion,s:"%",r:t.value.style.chart.layout.labels.captions.roundingPercentage})),1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",ct," ("+e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[r].value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[r].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[r],position:a}))+") ",1)):e.createCommentVNode("",!0),!t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",vt,e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[r].value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[r].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[r],position:a})),1)):e.createCommentVNode("",!0)],4)],8,ut)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{onMouseover:n=>Ve(r),onMouseleave:o[0]||(o[0]=n=>{A.value=!1,B.value=null}),x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:I.value<=0?1e-4:I.value,width:L.value<=0?1e-4:L.value,fill:"transparent",stroke:"none"},null,40,dt))),256)),e.renderSlot(l.$slots,"svg",{svg:C.value},void 0,!0)],14,We)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ae.default,{key:6,config:{type:"waffle",style:{backgroundColor:t.value.style.chart.backgroundColor,waffle:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:H},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Oe.Legend,{key:`legend_${Q.value}`,legendSet:$.value,config:Pe.value,onClickMarker:o[1]||(o[1]=({legend:a})=>de(a.uid))},e.createSlots({item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${v.value.includes(a.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue,isAnimating:x.value}),{datapoint:a}))+" ",1),v.value.includes(a.uid)?(e.openBlock(),e.createElementBlock("span",yt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",ft," ("+e.toDisplayString(isNaN(a.value/k.value)?"-":e.unref(u.dataLabel)({v:a.value/k.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage,isAnimating:x.value}))+") ",1))],12,ht)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:a,index:r})=>[e.createVNode(Ue._sfc_main,{shape:a.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${f.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Y,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:y.value.showTooltip&&A.value&&v.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:_.value,content:D.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function",fontSize:t.value.style.chart.tooltip.fontSize,isFullscreen:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","fontSize","isFullscreen"]),V.value?(e.openBlock(),e.createBlock(De.default,{key:8,hideDetails:"",config:{open:y.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${K.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[2]||(o[2]=a=>y.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,gt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ge))}},bt=je._export_sfc(mt,[["__scopeId","data-v-5a674907"]]);exports.default=bt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D6jkeYks.cjs"),W=require("./Title-Cg-pVkpN.cjs"),E=require("./usePrinter-DX7QbYMt.cjs"),M=require("./useResponsive-BJ7DTGpm.cjs"),J=require("./vue-ui-skeleton-D2fiHeQ-.cjs"),q=require("./useNestedProp-rf0W8kVM.cjs"),K=require("./PackageVersion-DJECkV0A.cjs"),Q=require("./PenAndPaper-BLFX9yTF.cjs"),Z=require("./useUserOptionState-BgepsfED.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],ne=["xmlns","viewBox"],oe=["width","height"],le=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ae=["cx","cy","r","stroke","stroke-width"],re=["x","y","font-size","fill","font-weight"],se={key:5,class:"vue-data-ui-watermark"},ue={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(T,{expose:V}){const c=T,{vue_ui_wheel:U}=s.useConfig(),p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),y=e.ref(s.createUid()),R=e.ref(null),w=e.ref(0),v=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(null),P=e.ref(0),t=e.computed({get:()=>O(),set:n=>n}),{userOptionsVisible:m,setUserOptionsVisibility:S,keepUserOptionState:N}=Z.useUserOptionState({config:t.value});function O(){const n=q.useNestedProp({userConfig:c.config,defaultConfig:U});return n.theme?{...q.useNestedProp({userConfig:s.themes.vue_ui_wheel[n.theme]||c.config,defaultConfig:n})}:n}e.watch(()=>c.config,n=>{t.value=O(),m.value=!t.value.userOptions.showOnChartHover,z(),P.value+=1},{deep:!0});const{isPrinting:_,isImaging:x,generatePdf:A,generateImage:$}=E.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),L=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),l=e.ref({size:360,height:360,width:360}),g=e.ref(t.value.style.chart.layout.percentage.fontSize),i=e.computed(()=>({radius:Math.min(l.value.width,l.value.height)*.9/2,centerX:l.value.width/2,centerY:l.value.height/2}));function I(n,r=1){return{x:i.value.centerX+i.value.radius*Math.cos(29.85+n*Math.PI/180)*r,y:i.value.centerY+i.value.radius*Math.sin(29.85+n*Math.PI/180)*r}}const a=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,n=>{t.value.style.chart.animation.use?F(n.percentage):a.value=n.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{z()});function z(){if(s.objectIsEmpty(c.dataset)&&s.error({componentName:"VueUiWheel",type:"dataset"}),F(c.dataset.percentage||0),t.value.responsive){const n=M.throttle(()=>{const{width:r,height:o}=M.useResponsive({chart:v.value,title:t.value.style.chart.title.text?C.value:null,source:b.value,noTitle:B.value});requestAnimationFrame(()=>{l.value.width=r,l.value.height=o,g.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(r,o)})});d.value=new ResizeObserver(n),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function F(n){let r=t.value.style.chart.animation.speed;const o=Math.abs(n-a.value)/(r*120);function u(){a.value<n?a.value=Math.min(a.value+o,n):a.value>n&&(a.value=Math.max(a.value-o,n)),a.value!==n&&requestAnimationFrame(u)}u()}const j=e.computed(()=>{const n=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:H,y:X}=I(l.value.size/100*o),{x:D,y:Y}=I(l.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);n.push({x1:H,y1:X,x2:D,y2:Y,color:t.value.style.chart.layout.wheel.ticks.gradient.show?s.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return n}),h=e.ref(!1);function G(n){h.value=n,w.value+=1}const f=e.ref(!1);function k(){f.value=!f.value}return V({generatePdf:A,generateImage:$,toggleAnnotator:k}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(S)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(S)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Q.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:k},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:B,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:C,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(W._sfc_main,{key:`title_${P.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(N)||e.unref(m))?(e.openBlock(),e.createBlock(E.UserOptions,{ref_key:"details",ref:R,key:`user_options_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(_),isImaging:e.unref(x),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:G,onGeneratePdf:e.unref(A),onGenerateImage:e.unref($),onToggleAnnotator:k,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(m)?"visible":"hidden":"visible"})},e.createSlots({_:2},[n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,n.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(n.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(K._sfc_main),n.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(n.$slots,"chart-background",{},void 0,!0)],8,oe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(l.value.width,l.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&u<=a.value})},null,10,le))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:i.value.centerX,cy:i.value.centerY,r:i.value.radius*.8<=0?1e-4:i.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ae)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:i.value.centerX,y:i.value.centerY+g.value/3,"font-size":g.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(s.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(s.checkNaN)(a.value),e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,re)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"svg",{svg:l.value},void 0,!0)],14,ne)):e.createCommentVNode("",!0),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(_)||e.unref(x)})),void 0,!0)])):e.createCommentVNode("",!0),n.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:b,dir:"auto"},[e.renderSlot(n.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,te))}},ie=ee._export_sfc(ue,[["__scopeId","data-v-17848dc3"]]);exports.default=ie;
|