vue-data-ui 2.6.6 → 2.6.8
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/dist/{Arrow-DFWjAvCY.js → Arrow-BHD3VBsD.js} +1 -1
- package/dist/{Arrow-BYqxz6UG.cjs → Arrow-YuEygGzC.cjs} +1 -1
- package/dist/{BaseIcon-COe_H-UB.cjs → BaseIcon-D326yPTV.cjs} +1 -1
- package/dist/{BaseIcon-t20JEZNG.js → BaseIcon-dThl5uNa.js} +1 -1
- package/dist/{DataTable-Du7nJ0TM.cjs → DataTable-CaD8j-SL.cjs} +1 -1
- package/dist/{DataTable-CJN0sipt.js → DataTable-D0-zzsJg.js} +2 -2
- package/dist/{Legend-CM7IGBC3.cjs → Legend-CEw2uq9s.cjs} +1 -1
- package/dist/{Legend-BDyPoYfp.js → Legend-Oaw0MY8Y.js} +2 -2
- package/dist/{PackageVersion-qeLvq6l8.cjs → PackageVersion-CCgJTyH9.cjs} +1 -1
- package/dist/{PackageVersion-DqmHcoqz.js → PackageVersion-J_USnljf.js} +1 -1
- package/dist/{PenAndPaper-6UYizrkQ.js → PenAndPaper-CoEXEMcN.js} +3 -3
- package/dist/{PenAndPaper-BYqaxOpk.cjs → PenAndPaper-DvNBHCpq.cjs} +1 -1
- package/dist/Shape-Cwx-wRaK.cjs +1 -0
- package/dist/{Shape-C_qIhG3J.js → Shape-Dtm6toQp.js} +26 -23
- package/dist/{Slicer-DPae3p1M.cjs → Slicer-7z_6bjyU.cjs} +1 -1
- package/dist/{Slicer-BQP3UIW-.js → Slicer-BAcq2vD0.js} +2 -2
- package/dist/{Title-BGiQdt7J.cjs → Title-BQSh4ukk.cjs} +1 -1
- package/dist/{Title-D6h1gTvZ.js → Title-DePxeqVl.js} +1 -1
- package/dist/{Tooltip-BonEVaob.js → Tooltip-DRw9RoFp.js} +23 -20
- package/dist/Tooltip-DtqrGu-Q.cjs +1 -0
- package/dist/{index-B9qF6XbP.js → index-CZlI7PiS.js} +1 -1
- package/dist/{index-kZKcQZM_.cjs → index-DD4PT0Pl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-g5oKzlVy.js → useNestedProp-Cg0NIwr6.js} +1 -1
- package/dist/{useNestedProp-D4Jn2Oxr.cjs → useNestedProp-DU7JFxpL.cjs} +1 -1
- package/dist/{usePrinter-DR42gTOS.cjs → usePrinter-BtJq2wwh.cjs} +1 -1
- package/dist/{usePrinter-DsiBLAy1.js → usePrinter-D-sSdR2l.js} +1 -1
- package/dist/{vue-data-ui-DB2kdhYH.js → vue-data-ui-Dh3BJvUF.js} +61 -61
- package/dist/{vue-data-ui-DbhVASfn.cjs → vue-data-ui-DzVmFW3P.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DHeSFJ5z.js → vue-ui-3d-bar-Ckd-GTWY.js} +171 -168
- package/dist/vue-ui-3d-bar-llxfgI9N.cjs +19 -0
- package/dist/{vue-ui-accordion-BfDu7hTY.cjs → vue-ui-accordion-2He8z0Sy.cjs} +1 -1
- package/dist/{vue-ui-accordion-DBmchkva.js → vue-ui-accordion-DVtmOO3I.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CvUCPqxa.js → vue-ui-age-pyramid-BUGAES7K.js} +85 -82
- package/dist/vue-ui-age-pyramid-CxBb12yp.cjs +1 -0
- package/dist/{vue-ui-annotator-BV9t6ro7.cjs → vue-ui-annotator-BDUanFLb.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dr5PLrJx.js → vue-ui-annotator-gIa7-tAI.js} +1 -1
- package/dist/vue-ui-bullet-Bg8f_RzX.cjs +34 -0
- package/dist/{vue-ui-bullet-D7Uw9tez.js → vue-ui-bullet-DNfzMdcg.js} +92 -89
- package/dist/vue-ui-candlestick-CnKPX6xB.cjs +2 -0
- package/dist/{vue-ui-candlestick-BFmh-zx1.js → vue-ui-candlestick-jErGIOZA.js} +155 -152
- package/dist/{vue-ui-carousel-table-CUhkylz_.js → vue-ui-carousel-table-DHyvpjWL.js} +4 -4
- package/dist/{vue-ui-carousel-table-C30Gvanv.cjs → vue-ui-carousel-table-DsY9Mrdg.cjs} +1 -1
- package/dist/vue-ui-chestnut-BTCxF3dU.cjs +6 -0
- package/dist/{vue-ui-chestnut-C53wdHmR.js → vue-ui-chestnut-kQjk4FqR.js} +186 -183
- package/dist/{vue-ui-circle-pack-Bj3sA7RV.js → vue-ui-circle-pack-BQbwIDRa.js} +99 -96
- package/dist/vue-ui-circle-pack-D-eMMNzU.cjs +1 -0
- package/dist/{vue-ui-cursor-ZBrt-jTo.cjs → vue-ui-cursor-Dd2eSMAz.cjs} +1 -1
- package/dist/{vue-ui-cursor-0GY46Ywr.js → vue-ui-cursor-xy62w2ep.js} +2 -2
- package/dist/{vue-ui-dashboard-BX787_or.js → vue-ui-dashboard-DPjU-kPn.js} +2 -2
- package/dist/{vue-ui-dashboard-pzZD8J2y.cjs → vue-ui-dashboard-nMODKstD.cjs} +1 -1
- package/dist/{vue-ui-digits-BvCMwL0L.js → vue-ui-digits-BNTE0Lsb.js} +2 -2
- package/dist/{vue-ui-digits-Blb8fghV.cjs → vue-ui-digits-Beuy8wvV.cjs} +1 -1
- package/dist/vue-ui-donut-DWKUDr7k.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BICtQ8ke.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DRfJVMrP.js → vue-ui-donut-evolution-DfHfXqar.js} +133 -131
- package/dist/{vue-ui-donut-yBjSgsTz.js → vue-ui-donut-ipVF2Pk6.js} +158 -155
- package/dist/{vue-ui-dumbbell-4-hWZn-o.js → vue-ui-dumbbell-D04To0aO.js} +125 -122
- package/dist/vue-ui-dumbbell-DPZYa6RZ.cjs +9 -0
- package/dist/{vue-ui-flow-aH6xSdwn.js → vue-ui-flow-DYpBU4gG.js} +96 -93
- package/dist/vue-ui-flow-HFjfjzgX.cjs +1 -0
- package/dist/vue-ui-funnel-BwClLXO6.cjs +1 -0
- package/dist/{vue-ui-funnel-BZy4SvlW.js → vue-ui-funnel-CVQHETom.js} +88 -85
- package/dist/vue-ui-galaxy-B0W8yBZU.cjs +1 -0
- package/dist/{vue-ui-galaxy-GDXdZqjm.js → vue-ui-galaxy-DseGnRIL.js} +123 -120
- package/dist/vue-ui-gauge-0vhiDi19.cjs +1 -0
- package/dist/{vue-ui-gauge-CeyHdkuS.js → vue-ui-gauge-B7nCLtyI.js} +86 -83
- package/dist/{vue-ui-gizmo-veFxjktw.js → vue-ui-gizmo-C1fpqm2H.js} +3 -3
- package/dist/{vue-ui-gizmo-CRTzb1J_.cjs → vue-ui-gizmo-CTMnMH7C.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BizLgjJ8.js → vue-ui-heatmap-B0a6TegZ.js} +109 -106
- package/dist/vue-ui-heatmap-DjxXVFyU.cjs +1 -0
- package/dist/vue-ui-history-plot-CfjWg_3c.cjs +1 -0
- package/dist/{vue-ui-history-plot-gzx5uGyY.js → vue-ui-history-plot-DsLgXpZ8.js} +130 -127
- package/dist/{vue-ui-kpi-CP08PB51.cjs → vue-ui-kpi-CTsWQvCi.cjs} +1 -1
- package/dist/{vue-ui-kpi-MdyAQjdJ.js → vue-ui-kpi-be1EaVNS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYVr1K6S.js → vue-ui-mini-loader-BHm2QQQF.js} +2 -2
- package/dist/{vue-ui-mini-loader-BRmtJ6az.cjs → vue-ui-mini-loader-DLdlPE48.cjs} +1 -1
- package/dist/{vue-ui-molecule-CJ05ddhf.js → vue-ui-molecule--G2QIMak.js} +147 -144
- package/dist/vue-ui-molecule-DQOP_2JN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DG1pF6Ii.js → vue-ui-mood-radar-Bhr5Q9pC.js} +97 -94
- package/dist/vue-ui-mood-radar-HxyTIDLP.cjs +1 -0
- package/dist/vue-ui-nested-donuts-C0aK_Cmr.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CDjZ6KfI.js → vue-ui-nested-donuts-Dtll0W-x.js} +99 -96
- package/dist/{vue-ui-onion-DsskQUiP.js → vue-ui-onion-CRRZ8ajr.js} +105 -102
- package/dist/vue-ui-onion-DJFv8ezH.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-BTkf3dkR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-D7r71vdp.js → vue-ui-parallel-coordinate-plot-DMk3iobe.js} +97 -94
- package/dist/vue-ui-quadrant-B7iHGaqG.cjs +1 -0
- package/dist/{vue-ui-quadrant-DCHEhvMX.js → vue-ui-quadrant-EcGC8p0U.js} +155 -152
- package/dist/vue-ui-quick-chart-BOla8Yse.cjs +15 -0
- package/dist/{vue-ui-quick-chart-BB5b4AQ1.js → vue-ui-quick-chart-D6AS1YSx.js} +164 -161
- package/dist/vue-ui-radar-DmM3tCiY.cjs +1 -0
- package/dist/{vue-ui-radar-CNEXWSEx.js → vue-ui-radar-LzAasUWm.js} +105 -102
- package/dist/{vue-ui-rating-ClvF4LPg.cjs → vue-ui-rating-D9K7meNL.cjs} +1 -1
- package/dist/{vue-ui-rating-DJLSl0-4.js → vue-ui-rating-DK4hwg8z.js} +2 -2
- package/dist/{vue-ui-relation-circle-Hdzt7fOS.js → vue-ui-relation-circle-CbOCYAmF.js} +127 -124
- package/dist/vue-ui-relation-circle-DIJuJZrt.cjs +1 -0
- package/dist/vue-ui-rings-BWgF92GG.cjs +2 -0
- package/dist/{vue-ui-rings-BAFkqjcL.js → vue-ui-rings-Cqzy5T3m.js} +114 -111
- package/dist/{vue-ui-scatter-Ca67EOrI.js → vue-ui-scatter-DXvyWQYL.js} +157 -154
- package/dist/vue-ui-scatter-F-gNKXpp.cjs +1 -0
- package/dist/{vue-ui-screenshot-CsdnwhSO.js → vue-ui-screenshot-BL75IkNz.js} +1 -1
- package/dist/{vue-ui-screenshot-CFcvBOJm.cjs → vue-ui-screenshot-BXngAa8V.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CHEZlRpn.js → vue-ui-skeleton-D8r-yAkW.js} +3 -3
- package/dist/{vue-ui-skeleton-BBNX7lud.cjs → vue-ui-skeleton-Tk4j6G2D.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dth6gRqg.js → vue-ui-smiley-BKWWVHh7.js} +2 -2
- package/dist/{vue-ui-smiley-EngC6Vc4.cjs → vue-ui-smiley-BLnMEG6Z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-33sBlF-n.js → vue-ui-spark-trend-Bb7xpmpt.js} +5 -5
- package/dist/{vue-ui-spark-trend-DJ8yhFMx.cjs → vue-ui-spark-trend-CqG-PKFp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D9QLpB7G.cjs → vue-ui-sparkbar-0h661dcM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-mJu95295.js → vue-ui-sparkbar-JIpGYhbq.js} +4 -4
- package/dist/vue-ui-sparkgauge-BLglWMCN.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-nFFf8h-x.js → vue-ui-sparkgauge-Cc-l_NLU.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-Bh6R737O.js → vue-ui-sparkhistogram-BysifQmq.js} +93 -90
- package/dist/vue-ui-sparkhistogram-CCbcvIJ1.cjs +1 -0
- package/dist/vue-ui-sparkline-CDJX8K9i.cjs +1 -0
- package/dist/{vue-ui-sparkline-BfBiA1O5.js → vue-ui-sparkline-CV-N3Wio.js} +109 -106
- package/dist/vue-ui-sparkstackbar-Bo4JAlsR.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-BNTFNUIA.js → vue-ui-sparkstackbar-WOO_AbtI.js} +59 -56
- package/dist/{vue-ui-stackbar-BbFUifMU.js → vue-ui-stackbar-CP0igpri.js} +136 -133
- package/dist/vue-ui-stackbar-D7odU6jb.cjs +6 -0
- package/dist/vue-ui-strip-plot-CUqC58Ki.cjs +1 -0
- package/dist/{vue-ui-strip-plot-wsxpyqrw.js → vue-ui-strip-plot-_3AJWLnm.js} +127 -124
- package/dist/{vue-ui-table-DUokotBj.cjs → vue-ui-table-8O19epjz.cjs} +1 -1
- package/dist/{vue-ui-table-CQYM4uPf.js → vue-ui-table-WdE7p5Oy.js} +1 -1
- package/dist/{vue-ui-table-heatmap-OYQ9OOzo.js → vue-ui-table-heatmap-CXS6WfTi.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Brk58nK_.cjs → vue-ui-table-heatmap-DH5kHmxx.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUjDhg8A.js → vue-ui-table-sparkline-CWwjANqk.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C9dOsIAB.cjs → vue-ui-table-sparkline-DnvQfr2p.cjs} +1 -1
- package/dist/{vue-ui-thermometer-WSMSVcM_.js → vue-ui-thermometer-BxrDTquG.js} +84 -81
- package/dist/vue-ui-thermometer-COmtpPaq.cjs +1 -0
- package/dist/vue-ui-timer-Bx3W4oUc.cjs +64 -0
- package/dist/{vue-ui-timer-DBP_fRcm.js → vue-ui-timer-DjKCOw9A.js} +183 -180
- package/dist/vue-ui-tiremarks--XDyJeJg.cjs +1 -0
- package/dist/{vue-ui-tiremarks-WWgS2mqw.js → vue-ui-tiremarks-VWxcZxB-.js} +59 -56
- package/dist/{vue-ui-treemap-CXoXEuSA.js → vue-ui-treemap-BGFmZcII.js} +123 -120
- package/dist/vue-ui-treemap-DTwjydy8.cjs +1 -0
- package/dist/vue-ui-vertical-bar-Bpv8mXW2.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-COaAa4nz.js → vue-ui-vertical-bar-DC9czKCT.js} +108 -105
- package/dist/vue-ui-waffle-B_6ZAnKt.cjs +1 -0
- package/dist/{vue-ui-waffle-DD8pT7JN.js → vue-ui-waffle-Cu63K9Iy.js} +107 -104
- package/dist/{vue-ui-wheel-BLlKekiu.js → vue-ui-wheel-AOt-pfpa.js} +75 -72
- package/dist/vue-ui-wheel-BQM-dxTa.cjs +1 -0
- package/dist/vue-ui-word-cloud-Bam3-7P_.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CcYtTXW6.js → vue-ui-word-cloud-CrILrx6m.js} +97 -94
- package/dist/{vue-ui-xy-DYzfiZnJ.js → vue-ui-xy-BuLymzS3.js} +179 -150
- package/dist/vue-ui-xy-CSmObuR7.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CkB7VDhF.cjs → vue-ui-xy-canvas-BQ0Lbxbd.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DqnK_i0Q.js → vue-ui-xy-canvas-DPnb5mqS.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-BN3-_2DI.cjs +0 -1
- package/dist/Tooltip-DSPKrQcQ.cjs +0 -1
- package/dist/vue-ui-3d-bar-DEu24HHj.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CRYYDXFo.cjs +0 -1
- package/dist/vue-ui-bullet-Dy71N3Jf.cjs +0 -34
- package/dist/vue-ui-candlestick-aZ1YN4hh.cjs +0 -2
- package/dist/vue-ui-chestnut-DuycsDaB.cjs +0 -6
- package/dist/vue-ui-circle-pack-BFF5_9Sm.cjs +0 -1
- package/dist/vue-ui-donut-BO6RWqZ6.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BgJMw_a4.cjs +0 -1
- package/dist/vue-ui-dumbbell-BSXxNjyK.cjs +0 -9
- package/dist/vue-ui-flow-LNlNIRfb.cjs +0 -1
- package/dist/vue-ui-funnel-BhDmLkFj.cjs +0 -1
- package/dist/vue-ui-galaxy-BcwAAgUh.cjs +0 -1
- package/dist/vue-ui-gauge-BCf-2H4T.cjs +0 -1
- package/dist/vue-ui-heatmap-Bxhy4dCf.cjs +0 -1
- package/dist/vue-ui-history-plot-CTBCFIG0.cjs +0 -1
- package/dist/vue-ui-molecule-pTMJG_3k.cjs +0 -1
- package/dist/vue-ui-mood-radar-DXLYUXbX.cjs +0 -1
- package/dist/vue-ui-nested-donuts-yztsnsjM.cjs +0 -17
- package/dist/vue-ui-onion-BgbKMVNe.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs +0 -8
- package/dist/vue-ui-quadrant-BzYnR_Hc.cjs +0 -1
- package/dist/vue-ui-quick-chart-BcW7URue.cjs +0 -15
- package/dist/vue-ui-radar-D-XPVXa9.cjs +0 -1
- package/dist/vue-ui-relation-circle-DfxnHEqR.cjs +0 -1
- package/dist/vue-ui-rings-C9NFME3F.cjs +0 -2
- package/dist/vue-ui-scatter-D0UloS1C.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CBCbyOG2.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BstSpbti.cjs +0 -1
- package/dist/vue-ui-sparkline-DTRZ-_Qw.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CuU8Vpcv.cjs +0 -1
- package/dist/vue-ui-stackbar-B5uNBkxp.cjs +0 -6
- package/dist/vue-ui-strip-plot-7G7BAGQM.cjs +0 -1
- package/dist/vue-ui-thermometer-VnlcJh4G.cjs +0 -1
- package/dist/vue-ui-timer-Bh8RpM2u.cjs +0 -64
- package/dist/vue-ui-tiremarks-Ct96o_fd.cjs +0 -1
- package/dist/vue-ui-treemap-BfDk53pM.cjs +0 -1
- package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +0 -4
- package/dist/vue-ui-waffle-BB3l0zZU.cjs +0 -1
- package/dist/vue-ui-wheel-DfpXZJ8A.cjs +0 -1
- package/dist/vue-ui-word-cloud-DdaMzF2e.cjs +0 -1
- package/dist/vue-ui-xy-B4Mzyy81.cjs +0 -3
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { computed as b, ref as v, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { D as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as ge } from "./useNestedProp-
|
|
11
|
-
import { _ as
|
|
12
|
-
import { P as
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { computed as b, ref as v, watch as Ae, onMounted as Le, createElementBlock as r, openBlock as i, unref as u, normalizeStyle as W, normalizeClass as ye, createBlock as S, createCommentVNode as y, renderSlot as h, createVNode as he, createSlots as Se, withCtx as p, normalizeProps as I, guardReactiveProps as F, createElementVNode as d, Fragment as z, renderList as P, toDisplayString as w, createTextVNode as fe, nextTick as ze } from "vue";
|
|
2
|
+
import { u as Oe, c as Ie, a as Fe, o as Pe, e as Me, v as f, X as Ne, s as X, w as ce, i as k, f as _, q as Re, r as De, x as Ge, y as Ue } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { t as Be, u as Ee } from "./useResponsive-BWapHhVH.js";
|
|
4
|
+
import { _ as Ve } from "./Title-DePxeqVl.js";
|
|
5
|
+
import { u as We, U as Xe } from "./usePrinter-D-sSdR2l.js";
|
|
6
|
+
import { _ as je } from "./Tooltip-DRw9RoFp.js";
|
|
7
|
+
import { D as He } from "./DataTable-D0-zzsJg.js";
|
|
8
|
+
import Ye from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
9
|
+
import qe from "./vue-ui-accordion-DVtmOO3I.js";
|
|
10
|
+
import { u as ge } from "./useNestedProp-Cg0NIwr6.js";
|
|
11
|
+
import { _ as Je } from "./PackageVersion-J_USnljf.js";
|
|
12
|
+
import { P as Ke } from "./PenAndPaper-CoEXEMcN.js";
|
|
13
|
+
import { u as Qe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
|
+
import { u as Ze } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
+
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"], ot = ["id"], st = ["stop-color"], it = ["stop-color"], ut = ["id"], rt = ["stop-color"], nt = ["stop-color"], dt = ["x", "y", "width", "height", "fill", "rx"], vt = ["x", "y", "width", "height", "fill", "rx"], yt = ["x", "y", "width", "height", "fill", "rx"], ht = ["x", "y", "width", "height", "fill", "rx"], ft = { key: 0 }, ct = ["x", "y", "fill", "font-size", "font-weight"], gt = ["x", "y", "fill", "font-size", "font-weight"], pt = { key: 1 }, bt = ["x", "y", "font-size", "fill", "font-weight"], xt = { key: 2 }, mt = { key: 0 }, wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x", "y", "font-size", "fill", "font-weight"], At = ["x", "y", "font-size", "fill", "font-weight"], Lt = ["x", "y", "width", "height", "fill", "onMouseover"], St = {
|
|
16
17
|
key: 5,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, zt = {
|
|
19
20
|
__name: "vue-ui-age-pyramid",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,10 +33,10 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
setup(j, { expose: pe }) {
|
|
35
|
-
const { vue_ui_age_pyramid: be } =
|
|
36
|
+
const { vue_ui_age_pyramid: be } = Oe(), c = j, M = b(() => !!c.dataset && c.dataset.length), m = v(Ie()), xe = v(null), G = v(!1), U = v(""), N = v(null), H = v(0), C = v(null), Y = v(null), q = v(null), J = v(null), K = v(0), Q = v(0), e = b({
|
|
36
37
|
get: () => te(),
|
|
37
38
|
set: (t) => t
|
|
38
|
-
}), { userOptionsVisible: B, setUserOptionsVisibility: Z, keepUserOptionState: ee } =
|
|
39
|
+
}), { userOptionsVisible: B, setUserOptionsVisibility: Z, keepUserOptionState: ee } = Qe({ config: e.value }), { svgRef: me } = Ze({ config: e.value.style.title });
|
|
39
40
|
function te() {
|
|
40
41
|
const t = ge({
|
|
41
42
|
userConfig: c.config,
|
|
@@ -43,25 +44,25 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
43
44
|
});
|
|
44
45
|
return t.theme ? {
|
|
45
46
|
...ge({
|
|
46
|
-
userConfig:
|
|
47
|
+
userConfig: Fe.vue_ui_age_pyramid[t.theme] || c.config,
|
|
47
48
|
defaultConfig: t
|
|
48
49
|
})
|
|
49
50
|
} : t;
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
+
Ae(() => c.config, (t) => {
|
|
52
53
|
e.value = te(), B.value = !e.value.userOptions.showOnChartHover, ae(), K.value += 1, Q.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
|
|
53
54
|
}, { deep: !0 });
|
|
54
55
|
const le = v(null);
|
|
55
|
-
|
|
56
|
+
Le(() => {
|
|
56
57
|
ae();
|
|
57
58
|
});
|
|
58
59
|
function ae() {
|
|
59
|
-
if (
|
|
60
|
+
if (Pe(c.dataset) && Me({
|
|
60
61
|
componentName: "VueUiAgePyramid",
|
|
61
62
|
type: "dataset"
|
|
62
63
|
}), e.value.responsive) {
|
|
63
|
-
const t =
|
|
64
|
-
const { width: s, height: l } =
|
|
64
|
+
const t = Be(() => {
|
|
65
|
+
const { width: s, height: l } = Ee({
|
|
65
66
|
chart: C.value,
|
|
66
67
|
title: e.value.style.title.text ? Y.value : null,
|
|
67
68
|
source: q.value,
|
|
@@ -74,10 +75,10 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
74
75
|
le.value = new ResizeObserver(t), le.value.observe(C.value.parentNode);
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
|
-
const { isPrinting: oe, isImaging: se, generatePdf: ie, generateImage: ue } =
|
|
78
|
+
const { isPrinting: oe, isImaging: se, generatePdf: ie, generateImage: ue } = We({
|
|
78
79
|
elementId: `vue-ui-age-pyramid_${m.value}`,
|
|
79
80
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid"
|
|
80
|
-
}),
|
|
81
|
+
}), we = b(() => e.value.userOptions.show && !e.value.style.title.text), x = v({
|
|
81
82
|
showTable: e.value.table.show,
|
|
82
83
|
showTooltip: e.value.style.tooltip.show
|
|
83
84
|
}), g = v({
|
|
@@ -102,8 +103,8 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
102
103
|
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
103
104
|
}
|
|
104
105
|
};
|
|
105
|
-
}),
|
|
106
|
-
const t =
|
|
106
|
+
}), ke = b(() => c.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), $ = b(() => {
|
|
107
|
+
const t = _e(O.value / 5), s = [], l = [];
|
|
107
108
|
for (let a = 0; a <= 5; a += 1) {
|
|
108
109
|
const n = t * a, ve = t * (a - 5);
|
|
109
110
|
s.push({
|
|
@@ -119,13 +120,13 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
119
120
|
left: l
|
|
120
121
|
};
|
|
121
122
|
});
|
|
122
|
-
function
|
|
123
|
+
function _e(t) {
|
|
123
124
|
if (t === 0) return 0;
|
|
124
125
|
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
125
126
|
let a;
|
|
126
127
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
127
128
|
}
|
|
128
|
-
const O = b(() => Math.max(...c.dataset.flatMap((t) => t.slice(-2).map((s) => f(s))))), T = b(() => c.dataset.length),
|
|
129
|
+
const O = b(() => Math.max(...c.dataset.flatMap((t) => t.slice(-2).map((s) => f(s))))), T = b(() => c.dataset.length), Ce = b(() => c.dataset.map((t) => ({
|
|
129
130
|
segment: t[0],
|
|
130
131
|
age: t[1],
|
|
131
132
|
left: {
|
|
@@ -136,7 +137,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
136
137
|
value: t[3],
|
|
137
138
|
proportionToMax: t[3] / O.value
|
|
138
139
|
}
|
|
139
|
-
}))), A = b(() =>
|
|
140
|
+
}))), A = b(() => Ce.value.map((t, s) => {
|
|
140
141
|
const l = o.value.top + o.value.height / T.value * s, a = o.value.height / T.value - e.value.style.layout.bars.gap;
|
|
141
142
|
return {
|
|
142
143
|
segment: t.segment,
|
|
@@ -159,7 +160,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
159
160
|
}
|
|
160
161
|
};
|
|
161
162
|
})), E = v(null);
|
|
162
|
-
function
|
|
163
|
+
function $e(t, s) {
|
|
163
164
|
N.value = t, E.value = {
|
|
164
165
|
datapoint: s,
|
|
165
166
|
seriesIndex: t,
|
|
@@ -167,7 +168,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
167
168
|
config: e.value
|
|
168
169
|
};
|
|
169
170
|
const l = e.value.style.tooltip.customFormat;
|
|
170
|
-
if (
|
|
171
|
+
if (Ge(l) && Ue(() => l({
|
|
171
172
|
seriesIndex: t,
|
|
172
173
|
datapoint: {
|
|
173
174
|
segment: s[0],
|
|
@@ -217,15 +218,15 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
217
218
|
G.value = !0;
|
|
218
219
|
}
|
|
219
220
|
function re() {
|
|
220
|
-
|
|
221
|
+
ze(() => {
|
|
221
222
|
const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s = c.dataset.map((n) => [
|
|
222
223
|
n[0],
|
|
223
224
|
n[1],
|
|
224
225
|
n[2],
|
|
225
226
|
n[3],
|
|
226
227
|
n[2] + n[3]
|
|
227
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a =
|
|
228
|
-
|
|
228
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = Re(l);
|
|
229
|
+
De({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
229
230
|
});
|
|
230
231
|
}
|
|
231
232
|
const R = b(() => {
|
|
@@ -256,7 +257,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
256
257
|
};
|
|
257
258
|
return { head: t, body: s, config: l, colNames: t };
|
|
258
259
|
}), L = v(!1);
|
|
259
|
-
function
|
|
260
|
+
function Te(t) {
|
|
260
261
|
L.value = t, H.value += 1;
|
|
261
262
|
}
|
|
262
263
|
function ne() {
|
|
@@ -285,7 +286,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
285
286
|
onMouseenter: s[2] || (s[2] = () => u(Z)(!0)),
|
|
286
287
|
onMouseleave: s[3] || (s[3] = () => u(Z)(!1))
|
|
287
288
|
}, [
|
|
288
|
-
e.value.userOptions.buttons.annotator ? (i(), S(
|
|
289
|
+
e.value.userOptions.buttons.annotator ? (i(), S(Ke, {
|
|
289
290
|
key: 0,
|
|
290
291
|
parent: C.value,
|
|
291
292
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -293,7 +294,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
293
294
|
active: D.value,
|
|
294
295
|
onClose: V
|
|
295
296
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
296
|
-
|
|
297
|
+
we.value ? (i(), r("div", {
|
|
297
298
|
key: 1,
|
|
298
299
|
ref_key: "noTitle",
|
|
299
300
|
ref: J,
|
|
@@ -306,7 +307,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
306
307
|
ref: Y,
|
|
307
308
|
style: "width:100%;background:transparent"
|
|
308
309
|
}, [
|
|
309
|
-
(i(), S(
|
|
310
|
+
(i(), S(Ve, {
|
|
310
311
|
key: `title_${K.value}`,
|
|
311
312
|
config: {
|
|
312
313
|
title: {
|
|
@@ -320,7 +321,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
320
321
|
}
|
|
321
322
|
}, null, 8, ["config"]))
|
|
322
323
|
], 512)) : y("", !0),
|
|
323
|
-
e.value.userOptions.show && M.value && (u(ee) || u(B)) ? (i(), S(
|
|
324
|
+
e.value.userOptions.show && M.value && (u(ee) || u(B)) ? (i(), S(Xe, {
|
|
324
325
|
ref_key: "details",
|
|
325
326
|
ref: xe,
|
|
326
327
|
key: `user_options_${H.value}`,
|
|
@@ -342,7 +343,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
342
343
|
position: e.value.userOptions.position,
|
|
343
344
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
344
345
|
isAnnotation: D.value,
|
|
345
|
-
onToggleFullscreen:
|
|
346
|
+
onToggleFullscreen: Te,
|
|
346
347
|
onGeneratePdf: u(ie),
|
|
347
348
|
onGenerateCsv: re,
|
|
348
349
|
onGenerateImage: u(ue),
|
|
@@ -352,7 +353,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
352
353
|
style: W({
|
|
353
354
|
visibility: u(ee) ? u(B) ? "visible" : "hidden" : "visible"
|
|
354
355
|
})
|
|
355
|
-
},
|
|
356
|
+
}, Se({ _: 2 }, [
|
|
356
357
|
t.$slots.optionTooltip ? {
|
|
357
358
|
name: "optionTooltip",
|
|
358
359
|
fn: p(() => [
|
|
@@ -405,12 +406,14 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
405
406
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
406
407
|
M.value ? (i(), r("svg", {
|
|
407
408
|
key: 4,
|
|
408
|
-
|
|
409
|
+
ref_key: "svgRef",
|
|
410
|
+
ref: me,
|
|
411
|
+
xmlns: u(Ne),
|
|
409
412
|
class: ye({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
410
413
|
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${g.value.height <= 0 ? 10 : g.value.height}`,
|
|
411
414
|
style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
412
415
|
}, [
|
|
413
|
-
he(
|
|
416
|
+
he(Je),
|
|
414
417
|
t.$slots["chart-background"] ? (i(), r("foreignObject", {
|
|
415
418
|
key: 0,
|
|
416
419
|
x: o.value.left,
|
|
@@ -422,7 +425,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
422
425
|
}
|
|
423
426
|
}, [
|
|
424
427
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
425
|
-
], 8,
|
|
428
|
+
], 8, at)) : y("", !0),
|
|
426
429
|
d("defs", null, [
|
|
427
430
|
d("linearGradient", {
|
|
428
431
|
id: `age_pyramid_left_${m.value}`,
|
|
@@ -434,12 +437,12 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
434
437
|
d("stop", {
|
|
435
438
|
offset: "0%",
|
|
436
439
|
"stop-color": e.value.style.layout.bars.left.color
|
|
437
|
-
}, null, 8,
|
|
440
|
+
}, null, 8, st),
|
|
438
441
|
d("stop", {
|
|
439
442
|
offset: "100%",
|
|
440
443
|
"stop-color": u(X)(u(ce)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
441
|
-
}, null, 8,
|
|
442
|
-
], 8,
|
|
444
|
+
}, null, 8, it)
|
|
445
|
+
], 8, ot),
|
|
443
446
|
d("linearGradient", {
|
|
444
447
|
id: `age_pyramid_right_${m.value}`,
|
|
445
448
|
x1: "0%",
|
|
@@ -450,12 +453,12 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
450
453
|
d("stop", {
|
|
451
454
|
offset: "0%",
|
|
452
455
|
"stop-color": u(X)(u(ce)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
453
|
-
}, null, 8,
|
|
456
|
+
}, null, 8, rt),
|
|
454
457
|
d("stop", {
|
|
455
458
|
offset: "100%",
|
|
456
459
|
"stop-color": e.value.style.layout.bars.right.color
|
|
457
|
-
}, null, 8,
|
|
458
|
-
], 8,
|
|
460
|
+
}, null, 8, nt)
|
|
461
|
+
], 8, ut)
|
|
459
462
|
]),
|
|
460
463
|
(i(!0), r(z, null, P(A.value, (l, a) => (i(), r("g", null, [
|
|
461
464
|
d("rect", {
|
|
@@ -465,7 +468,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
465
468
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
466
469
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
467
470
|
rx: e.value.style.layout.bars.borderRadius
|
|
468
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, dt),
|
|
469
472
|
d("rect", {
|
|
470
473
|
x: l.left.x,
|
|
471
474
|
y: l.left.y,
|
|
@@ -473,7 +476,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
473
476
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
474
477
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : l.left.color,
|
|
475
478
|
rx: e.value.style.layout.bars.borderRadius
|
|
476
|
-
}, null, 8,
|
|
479
|
+
}, null, 8, vt),
|
|
477
480
|
d("rect", {
|
|
478
481
|
x: l.right.x,
|
|
479
482
|
y: l.right.y,
|
|
@@ -481,7 +484,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
481
484
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
482
485
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
483
486
|
rx: e.value.style.layout.bars.borderRadius
|
|
484
|
-
}, null, 8,
|
|
487
|
+
}, null, 8, yt),
|
|
485
488
|
d("rect", {
|
|
486
489
|
x: l.right.x,
|
|
487
490
|
y: l.right.y,
|
|
@@ -489,10 +492,10 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
489
492
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
490
493
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : l.right.color,
|
|
491
494
|
rx: e.value.style.layout.bars.borderRadius
|
|
492
|
-
}, null, 8,
|
|
495
|
+
}, null, 8, ht)
|
|
493
496
|
]))), 256)),
|
|
494
497
|
d("g", null, [
|
|
495
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g",
|
|
498
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", ft, [
|
|
496
499
|
d("text", {
|
|
497
500
|
x: o.value.left,
|
|
498
501
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -500,7 +503,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
500
503
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
501
504
|
"text-anchor": "start",
|
|
502
505
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
503
|
-
}, w(e.value.translations.female), 9,
|
|
506
|
+
}, w(e.value.translations.female), 9, ct),
|
|
504
507
|
d("text", {
|
|
505
508
|
x: o.value.right,
|
|
506
509
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -508,10 +511,10 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
508
511
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
509
512
|
"text-anchor": "end",
|
|
510
513
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
511
|
-
}, w(e.value.translations.male), 9,
|
|
514
|
+
}, w(e.value.translations.male), 9, gt)
|
|
512
515
|
])) : y("", !0),
|
|
513
|
-
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g",
|
|
514
|
-
(i(!0), r(z, null, P(
|
|
516
|
+
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", pt, [
|
|
517
|
+
(i(!0), r(z, null, P(ke.value, (l, a) => (i(), r(z, null, [
|
|
515
518
|
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
|
|
516
519
|
key: 0,
|
|
517
520
|
x: o.value.centerX,
|
|
@@ -525,11 +528,11 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
525
528
|
l,
|
|
526
529
|
u(_)({ v: l }),
|
|
527
530
|
{ datapoint: l, seriesIndex: a }
|
|
528
|
-
)), 9,
|
|
531
|
+
)), 9, bt)) : y("", !0)
|
|
529
532
|
], 64))), 256))
|
|
530
533
|
])) : y("", !0),
|
|
531
|
-
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g",
|
|
532
|
-
e.value.style.layout.grid.show ? (i(), r("g",
|
|
534
|
+
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", xt, [
|
|
535
|
+
e.value.style.layout.grid.show ? (i(), r("g", mt, [
|
|
533
536
|
d("line", {
|
|
534
537
|
x1: $.value.right[0].x,
|
|
535
538
|
x2: $.value.right.at(-1).x,
|
|
@@ -538,7 +541,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
538
541
|
stroke: e.value.style.layout.grid.stroke,
|
|
539
542
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
540
543
|
"stroke-linecap": "round"
|
|
541
|
-
}, null, 8,
|
|
544
|
+
}, null, 8, wt),
|
|
542
545
|
d("line", {
|
|
543
546
|
x1: $.value.left[0].x,
|
|
544
547
|
x2: $.value.left.at(-1).x,
|
|
@@ -547,7 +550,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
547
550
|
stroke: e.value.style.layout.grid.stroke,
|
|
548
551
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
549
552
|
"stroke-linecap": "round"
|
|
550
|
-
}, null, 8,
|
|
553
|
+
}, null, 8, kt)
|
|
551
554
|
])) : y("", !0),
|
|
552
555
|
(i(!0), r(z, null, P($.value.right, (l, a) => (i(), r("g", null, [
|
|
553
556
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
@@ -559,7 +562,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
559
562
|
stroke: e.value.style.layout.grid.stroke,
|
|
560
563
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
561
564
|
"stroke-linecap": "round"
|
|
562
|
-
}, null, 8,
|
|
565
|
+
}, null, 8, _t)) : y("", !0),
|
|
563
566
|
d("text", {
|
|
564
567
|
x: l.x,
|
|
565
568
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -574,7 +577,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
574
577
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
575
578
|
}),
|
|
576
579
|
{ datapoint: l, seriesIndex: a }
|
|
577
|
-
)), 9,
|
|
580
|
+
)), 9, Ct)
|
|
578
581
|
]))), 256)),
|
|
579
582
|
(i(!0), r(z, null, P($.value.left, (l, a) => (i(), r("g", null, [
|
|
580
583
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
@@ -586,7 +589,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
586
589
|
stroke: e.value.style.layout.grid.stroke,
|
|
587
590
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
588
591
|
"stroke-linecap": "round"
|
|
589
|
-
}, null, 8,
|
|
592
|
+
}, null, 8, $t)) : y("", !0),
|
|
590
593
|
d("text", {
|
|
591
594
|
x: l.x,
|
|
592
595
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -601,7 +604,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
601
604
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
602
605
|
}),
|
|
603
606
|
{ datapoint: l, seriesIndex: a }
|
|
604
|
-
)), 9,
|
|
607
|
+
)), 9, Tt)
|
|
605
608
|
]))), 256)),
|
|
606
609
|
d("text", {
|
|
607
610
|
x: o.value.right,
|
|
@@ -610,7 +613,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
610
613
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
611
614
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
612
615
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
613
|
-
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9,
|
|
616
|
+
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9, At)
|
|
614
617
|
])) : y("", !0)
|
|
615
618
|
]),
|
|
616
619
|
(i(!0), r(z, null, P(j.dataset, (l, a) => (i(), r("g", null, [
|
|
@@ -620,18 +623,18 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
620
623
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
621
624
|
height: o.value.height / T.value <= 0 ? 1e-4 : o.value.height / T.value,
|
|
622
625
|
fill: N.value !== null && N.value === a ? u(X)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
623
|
-
onMouseover: (n) =>
|
|
626
|
+
onMouseover: (n) => $e(a, l),
|
|
624
627
|
onMouseleave: s[0] || (s[0] = (n) => {
|
|
625
628
|
N.value = null, G.value = !1;
|
|
626
629
|
})
|
|
627
|
-
}, null, 40,
|
|
630
|
+
}, null, 40, Lt)
|
|
628
631
|
]))), 256)),
|
|
629
632
|
h(t.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
630
|
-
], 14,
|
|
631
|
-
t.$slots.watermark ? (i(), r("div",
|
|
633
|
+
], 14, lt)) : y("", !0),
|
|
634
|
+
t.$slots.watermark ? (i(), r("div", St, [
|
|
632
635
|
h(t.$slots, "watermark", I(F({ isPrinting: u(oe) || u(se) })), void 0, !0)
|
|
633
636
|
])) : y("", !0),
|
|
634
|
-
M.value ? y("", !0) : (i(), S(
|
|
637
|
+
M.value ? y("", !0) : (i(), S(Ye, {
|
|
635
638
|
key: 6,
|
|
636
639
|
config: {
|
|
637
640
|
type: "pyramid",
|
|
@@ -652,7 +655,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
652
655
|
}, [
|
|
653
656
|
h(t.$slots, "source", {}, void 0, !0)
|
|
654
657
|
], 512)) : y("", !0),
|
|
655
|
-
he(
|
|
658
|
+
he(je, {
|
|
656
659
|
show: x.value.showTooltip && G.value,
|
|
657
660
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
658
661
|
color: e.value.style.tooltip.color,
|
|
@@ -676,7 +679,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
676
679
|
]),
|
|
677
680
|
_: 3
|
|
678
681
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
679
|
-
M.value ? (i(), S(
|
|
682
|
+
M.value ? (i(), S(qe, {
|
|
680
683
|
key: 8,
|
|
681
684
|
hideDetails: "",
|
|
682
685
|
config: {
|
|
@@ -693,7 +696,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
693
696
|
}
|
|
694
697
|
}, {
|
|
695
698
|
content: p(() => [
|
|
696
|
-
(i(), S(
|
|
699
|
+
(i(), S(He, {
|
|
697
700
|
key: `table_${Q.value}`,
|
|
698
701
|
colNames: R.value.colNames,
|
|
699
702
|
head: R.value.head,
|
|
@@ -713,9 +716,9 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"]
|
|
|
713
716
|
]),
|
|
714
717
|
_: 1
|
|
715
718
|
}, 8, ["config"])) : y("", !0)
|
|
716
|
-
], 46,
|
|
719
|
+
], 46, tt));
|
|
717
720
|
}
|
|
718
|
-
},
|
|
721
|
+
}, jt = /* @__PURE__ */ et(zt, [["__scopeId", "data-v-8c86c05c"]]);
|
|
719
722
|
export {
|
|
720
|
-
|
|
723
|
+
jt as default
|
|
721
724
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DD4PT0Pl.cjs"),X=require("./useResponsive-YQYQrAZ_.cjs"),ie=require("./Title-BQSh4ukk.cjs"),Y=require("./usePrinter-BtJq2wwh.cjs"),ne=require("./Tooltip-DtqrGu-Q.cjs"),ue=require("./DataTable-CaD8j-SL.cjs"),de=require("./vue-ui-skeleton-Tk4j6G2D.cjs"),ce=require("./vue-ui-accordion-2He8z0Sy.cjs"),J=require("./useNestedProp-DU7JFxpL.cjs"),ve=require("./PackageVersion-CCgJTyH9.cjs"),ye=require("./PenAndPaper-DvNBHCpq.cjs"),he=require("./useUserOptionState-BgepsfED.cjs"),fe=require("./useChartAccessibility-Cm7nkzTG.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ge=["id"],be=["xmlns","viewBox"],me=["x","y","width","height"],xe=["id"],ke=["stop-color"],we=["stop-color"],Ce=["id"],_e=["stop-color"],Ne=["stop-color"],Le=["x","y","width","height","fill","rx"],Se=["x","y","width","height","fill","rx"],Te=["x","y","width","height","fill","rx"],Be=["x","y","width","height","fill","rx"],Ae={key:0},$e=["x","y","fill","font-size","font-weight"],Ee=["x","y","fill","font-size","font-weight"],Ve={key:1},ze=["x","y","font-size","fill","font-weight"],Oe={key:2},Pe={key:0},Fe=["x1","x2","y1","y2","stroke","stroke-width"],Ie=["x1","x2","y1","y2","stroke","stroke-width"],De=["x1","x2","y1","y2","stroke","stroke-width"],Me=["x","y","font-size","fill","font-weight"],Re=["x1","x2","y1","y2","stroke","stroke-width"],qe=["x","y","font-size","fill","font-weight"],Ue=["x","y","font-size","fill","font-weight"],Ge=["x","y","width","height","fill","onMouseover"],He={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:K}){const{vue_ui_age_pyramid:Q}=r.useConfig(),u=T,m=e.computed(()=>!!u.dataset&&u.dataset.length),v=e.ref(r.createUid()),Z=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),B=e.ref(0),y=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(null),V=e.ref(0),z=e.ref(0),t=e.computed({get:()=>F(),set:l=>l}),{userOptionsVisible:N,setUserOptionsVisibility:O,keepUserOptionState:P}=he.useUserOptionState({config:t.value}),{svgRef:ee}=fe.useChartAccessibility({config:t.value.style.title});function F(){const l=J.useNestedProp({userConfig:u.config,defaultConfig:Q});return l.theme?{...J.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=F(),N.value=!t.value.userOptions.showOnChartHover,D(),V.value+=1,z.value+=1,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const I=e.ref(null);e.onMounted(()=>{D()});function D(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=X.throttle(()=>{const{width:i,height:o}=X.useResponsive({chart:y.value,title:t.value.style.title.text?A.value:null,source:$.value,noTitle:E.value});requestAnimationFrame(()=>{d.value.width=i,d.value.height=o})});I.value=new ResizeObserver(l),I.value.observe(y.value.parentNode)}}const{isPrinting:M,isImaging:R,generatePdf:q,generateImage:U}=Y.usePrinter({elementId:`vue-ui-age-pyramid_${v.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),c=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),s=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,i=t.value.style.layout.padding.left,o=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:o,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:i+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:i+l/2+t.value.style.layout.centerSlit.width}}}),le=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=oe(b.value/5),i=[],o=[];for(let a=0;a<=5;a+=1){const n=l*a,j=l*(a-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/b.value*s.value.leftChart.width}),o.push({value:Math.abs(j),x:s.value.left+s.value.width/2+j/b.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:o}});function oe(l){if(l===0)return 0;const o=10**Math.floor(Math.log10(Math.abs(l)));let a;return l<0,a=Math.round(l/o)*o,a}const b=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),f=e.computed(()=>u.dataset.length),ae=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/b.value},right:{value:l[3],proportionToMax:l[3]/b.value}}))),p=e.computed(()=>ae.value.map((l,i)=>{const o=s.value.top+s.value.height/f.value*i,a=s.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:o,color:t.value.style.layout.bars.left.color,x:s.value.leftChart.right-l.left.proportionToMax*s.value.leftChart.width,width:r.checkNaN(l.left.proportionToMax*s.value.leftChart.width),height:a},right:{...l.right,y:o,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:a}}})),L=e.ref(null);function se(l,i){x.value=l,L.value={datapoint:i,seriesIndex:l,series:p.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value})))_.value=o({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value});else{let a="";const n=p.value[l];a+=`<div><b>${n.segment}</b></div>`,a+=`<div>${t.value.translations.age}: ${r.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,r.checkNaN(n.age),r.dataLabel({v:r.checkNaN(n.age)}),{datapoint:i,seriesIndex:l})}</div>`,a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+='<div style="display:flex; flex-direction:row;gap:12px">',a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value),r.dataLabel({v:r.checkNaN(n.right.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+="</div>",a+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value)+r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.right.value)+r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,a+="</div>",_.value=`<div>${a}</div>`}C.value=!0}function G(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(a=>[a[0],a[1],a[2].toLocaleString(),a[3].toLocaleString(),(a[2]+a[3]).toLocaleString()]),o={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},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:i,config:o,colNames:l}}),g=e.ref(!1);function re(l){g.value=l,B.value+=1}function H(){c.value.showTable=!c.value.showTable}function W(){c.value.showTooltip=!c.value.showTooltip}const w=e.ref(!1);function S(){w.value=!w.value}return K({generatePdf:q,generateCsv:G,generateImage:U,toggleTable:H,toggleTooltip:W,toggleAnnotator:S}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${v.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:i[2]||(i[2]=()=>e.unref(O)(!0)),onMouseleave:i[3]||(i[3]=()=>e.unref(O)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ye.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:S},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:E,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(P)||e.unref(N))?(e.openBlock(),e.createBlock(Y.UserOptions,{ref_key:"details",ref:Z,key:`user_options_${B.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(R),isPrinting:e.unref(M),uid:v.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:re,onGeneratePdf:e.unref(q),onGenerateCsv:G,onGenerateImage:e.unref(U),onToggleTable:H,onToggleTooltip:W,onToggleAnnotator:S,style:e.normalizeStyle({visibility:e.unref(P)?e.unref(N)?"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:o,isFullscreen:a})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:a})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:a})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ee,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ve._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width,height:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,me)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,we)],8,xe),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${v.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,Ne)],8,Ce)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:e.unref(r.checkNaN)(o.left.width<=0?1e-4:o.left.width),height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Le),e.createElementVNode("rect",{x:o.left.x,y:o.left.y,width:o.left.width<=0?1e-4:o.left.width,height:o.left.height<=0?1e-4:o.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${v.value})`:o.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,Se),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,Te),e.createElementVNode("rect",{x:o.right.x,y:o.right.y,width:o.right.width<=0?1e-4:o.right.width,height:o.right.height<=0?1e-4:o.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${v.value})`:o.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,Be)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ae,[e.createElementVNode("text",{x:s.value.left,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,$e),e.createElementVNode("text",{x:s.value.right,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Ee)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.centerX,y:s.value.top+s.value.height/f.value*a+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,o,e.unref(r.dataLabel)({v:o}),{datapoint:o,seriesIndex:a})),9,ze)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Oe,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Pe,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Fe),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ie)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,De)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,Me)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Re)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:o.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,o.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:o.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:o,seriesIndex:a})),9,qe)]))),256)),e.createElementVNode("text",{x:s.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Ue)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(o,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/f.value*a-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/f.value<=0?1e-4:s.value.height/f.value,fill:x.value!==null&&x.value===a?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>se(a,o),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ge)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ne._sfc_main,{show:c.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isFullscreen:g.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),m.value?(e.openBlock(),e.createBlock(ce.default,{key:8,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ue.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:i[1]||(i[1]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ge))}},je=pe._export_sfc(We,[["__scopeId","data-v-8c86c05c"]]);exports.default=je;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./html2canvas.esm-D53btDlk.cjs"),b=require("./jspdf.es.min-BJ0rgkUJ.cjs"),h=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./html2canvas.esm-D53btDlk.cjs"),b=require("./jspdf.es.min-BJ0rgkUJ.cjs"),h=require("./index-DD4PT0Pl.cjs"),o=require("vue"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),F={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:h.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=h.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const i=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(i)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const i=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
|
|
2
2
|
<defs>
|
|
3
3
|
<marker
|
|
4
4
|
id="${e.id}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import k from "./html2canvas.esm-Dr4iCOK6.js";
|
|
2
2
|
import { E as p } from "./jspdf.es.min-af-Xj86b.js";
|
|
3
|
-
import { z as v, A, u as w, B as M } from "./index-
|
|
3
|
+
import { z as v, A, u as w, B as M } from "./index-CZlI7PiS.js";
|
|
4
4
|
import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as C, vModelText as x, renderSlot as O, Fragment as L, renderList as G } from "vue";
|
|
5
5
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const m = {
|