vue-data-ui 2.4.57 → 2.4.59
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 +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { computed as b, ref as v, watch as Te, onMounted as Ae, openBlock as i, createElementBlock as
|
|
2
|
-
import { u as ze, c as Oe, t as Ie, o as Fe, e as Pe, v as
|
|
1
|
+
import { computed as b, ref as v, watch as Te, onMounted as Ae, openBlock as i, createElementBlock as r, normalizeClass as ye, normalizeStyle as W, unref as u, createBlock as S, createCommentVNode as y, createSlots as Le, withCtx as p, renderSlot as h, normalizeProps as I, guardReactiveProps as F, createVNode as he, createElementVNode as d, Fragment as z, renderList as P, toDisplayString as w, createTextVNode as fe, nextTick as Se } from "vue";
|
|
2
|
+
import { u as ze, c as Oe, t as Ie, o as Fe, e as Pe, v as f, X as Me, s as X, w as ce, i as k, f as _, x as Ne, y as Re, q as De, r as Ge } from "./index-B9RAElpI.js";
|
|
3
3
|
import { t as Ue, u as Be } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as Xe } from "./Tooltip-
|
|
7
|
-
import { D as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as ge } from "./useNestedProp-
|
|
11
|
-
import { _ as qe } from "./PackageVersion-
|
|
12
|
-
import { P as Je } from "./PenAndPaper-
|
|
4
|
+
import { _ as Ee } from "./Title-zZtEcB9F.js";
|
|
5
|
+
import { u as Ve, U as We } from "./usePrinter-CwTAwqtF.js";
|
|
6
|
+
import { _ as Xe } from "./Tooltip-DDJ2Wvjy.js";
|
|
7
|
+
import { D as je } from "./DataTable-CFUKU8PU.js";
|
|
8
|
+
import He from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
9
|
+
import Ye from "./vue-ui-accordion-rNA598L6.js";
|
|
10
|
+
import { u as ge } from "./useNestedProp-DuruL3Nt.js";
|
|
11
|
+
import { _ as qe } from "./PackageVersion-C_FFs0BP.js";
|
|
12
|
+
import { P as Je } from "./PenAndPaper-Dx24BtRW.js";
|
|
13
13
|
import { u as Ke } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["
|
|
15
|
+
const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["x", "y", "width", "height"], lt = ["id"], at = ["stop-color"], ot = ["stop-color"], st = ["id"], it = ["stop-color"], ut = ["stop-color"], rt = ["x", "y", "width", "height", "fill", "rx"], nt = ["x", "y", "width", "height", "fill", "rx"], dt = ["x", "y", "width", "height", "fill", "rx"], vt = ["x", "y", "width", "height", "fill", "rx"], yt = { key: 0 }, ht = ["x", "y", "fill", "font-size", "font-weight"], ft = ["x", "y", "fill", "font-size", "font-weight"], ct = { key: 1 }, gt = ["x", "y", "font-size", "fill", "font-weight"], pt = { key: 2 }, bt = { key: 0 }, xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = ["x", "y", "font-size", "fill", "font-weight"], Tt = ["x", "y", "width", "height", "fill", "onMouseover"], At = {
|
|
16
16
|
key: 5,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, Lt = {
|
|
19
19
|
__name: "vue-ui-age-pyramid",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -31,8 +31,8 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
setup(
|
|
35
|
-
const c =
|
|
34
|
+
setup(j, { expose: pe }) {
|
|
35
|
+
const c = j, { vue_ui_age_pyramid: be } = ze(), M = b(() => !!c.dataset && c.dataset.length), x = v(Oe()), 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
36
|
get: () => te(),
|
|
37
37
|
set: (t) => t
|
|
38
38
|
}), { userOptionsVisible: B, setUserOptionsVisibility: Z, keepUserOptionState: ee } = Ke({ config: e.value });
|
|
@@ -61,18 +61,18 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
61
61
|
type: "dataset"
|
|
62
62
|
}), e.value.responsive) {
|
|
63
63
|
const t = Ue(() => {
|
|
64
|
-
const { width:
|
|
64
|
+
const { width: s, height: l } = Be({
|
|
65
65
|
chart: C.value,
|
|
66
|
-
title: e.value.style.title.text ?
|
|
66
|
+
title: e.value.style.title.text ? Y.value : null,
|
|
67
67
|
source: q.value,
|
|
68
68
|
noTitle: J.value
|
|
69
69
|
});
|
|
70
|
-
g.value.width =
|
|
70
|
+
g.value.width = s, g.value.height = l;
|
|
71
71
|
});
|
|
72
72
|
le.value = new ResizeObserver(t), le.value.observe(C.value.parentNode);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
const { isPrinting: oe, isImaging: se, generatePdf: ie, generateImage: ue } =
|
|
75
|
+
const { isPrinting: oe, isImaging: se, generatePdf: ie, generateImage: ue } = Ve({
|
|
76
76
|
elementId: `vue-ui-age-pyramid_${x.value}`,
|
|
77
77
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid"
|
|
78
78
|
}), me = b(() => e.value.userOptions.show && !e.value.style.title.text), m = v({
|
|
@@ -81,11 +81,11 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
81
81
|
}), g = v({
|
|
82
82
|
height: e.value.style.height,
|
|
83
83
|
width: e.value.style.width
|
|
84
|
-
}),
|
|
85
|
-
const t = g.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left,
|
|
84
|
+
}), o = b(() => {
|
|
85
|
+
const t = g.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, s = e.value.style.layout.padding.left, l = g.value.width - e.value.style.layout.padding.right;
|
|
86
86
|
return {
|
|
87
87
|
top: e.value.style.layout.padding.top,
|
|
88
|
-
left:
|
|
88
|
+
left: s,
|
|
89
89
|
right: l,
|
|
90
90
|
bottom: g.value.height - e.value.style.layout.padding.bottom,
|
|
91
91
|
width: t,
|
|
@@ -93,27 +93,27 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
93
93
|
centerX: e.value.style.layout.padding.left + t / 2,
|
|
94
94
|
leftChart: {
|
|
95
95
|
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
96
|
-
right:
|
|
96
|
+
right: s + t / 2 - e.value.style.layout.centerSlit.width
|
|
97
97
|
},
|
|
98
98
|
rightChart: {
|
|
99
99
|
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
100
|
-
left:
|
|
100
|
+
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}), we = b(() => c.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), $ = b(() => {
|
|
104
|
-
const t = ke(O.value / 5),
|
|
104
|
+
const t = ke(O.value / 5), s = [], l = [];
|
|
105
105
|
for (let a = 0; a <= 5; a += 1) {
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
value:
|
|
109
|
-
x:
|
|
106
|
+
const n = t * a, ve = t * (a - 5);
|
|
107
|
+
s.push({
|
|
108
|
+
value: n,
|
|
109
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / O.value * o.value.leftChart.width
|
|
110
110
|
}), l.push({
|
|
111
111
|
value: Math.abs(ve),
|
|
112
|
-
x:
|
|
112
|
+
x: o.value.left + o.value.width / 2 + ve / O.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
return {
|
|
116
|
-
right:
|
|
116
|
+
right: s,
|
|
117
117
|
left: l
|
|
118
118
|
};
|
|
119
119
|
});
|
|
@@ -123,7 +123,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
123
123
|
let a;
|
|
124
124
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
125
125
|
}
|
|
126
|
-
const O = b(() => Math.max(...c.dataset.flatMap((t) => t.slice(-2).map((
|
|
126
|
+
const O = b(() => Math.max(...c.dataset.flatMap((t) => t.slice(-2).map((s) => f(s))))), T = b(() => c.dataset.length), _e = b(() => c.dataset.map((t) => ({
|
|
127
127
|
segment: t[0],
|
|
128
128
|
age: t[1],
|
|
129
129
|
left: {
|
|
@@ -134,8 +134,8 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
134
134
|
value: t[3],
|
|
135
135
|
proportionToMax: t[3] / O.value
|
|
136
136
|
}
|
|
137
|
-
}))), A = b(() => _e.value.map((t,
|
|
138
|
-
const l =
|
|
137
|
+
}))), A = b(() => _e.value.map((t, s) => {
|
|
138
|
+
const l = o.value.top + o.value.height / T.value * s, a = o.value.height / T.value - e.value.style.layout.bars.gap;
|
|
139
139
|
return {
|
|
140
140
|
segment: t.segment,
|
|
141
141
|
age: t.age,
|
|
@@ -143,23 +143,23 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
143
143
|
...t.left,
|
|
144
144
|
y: l,
|
|
145
145
|
color: e.value.style.layout.bars.left.color,
|
|
146
|
-
x:
|
|
147
|
-
width:
|
|
146
|
+
x: o.value.leftChart.right - t.left.proportionToMax * o.value.leftChart.width,
|
|
147
|
+
width: f(t.left.proportionToMax * o.value.leftChart.width),
|
|
148
148
|
height: a
|
|
149
149
|
},
|
|
150
150
|
right: {
|
|
151
151
|
...t.right,
|
|
152
152
|
y: l,
|
|
153
153
|
color: e.value.style.layout.bars.right.color,
|
|
154
|
-
x:
|
|
155
|
-
width:
|
|
154
|
+
x: o.value.rightChart.left,
|
|
155
|
+
width: f(t.right.proportionToMax * o.value.rightChart.width),
|
|
156
156
|
height: a
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
|
-
})),
|
|
160
|
-
function Ce(t,
|
|
161
|
-
N.value = t,
|
|
162
|
-
datapoint:
|
|
159
|
+
})), E = v(null);
|
|
160
|
+
function Ce(t, s) {
|
|
161
|
+
N.value = t, E.value = {
|
|
162
|
+
datapoint: s,
|
|
163
163
|
seriesIndex: t,
|
|
164
164
|
series: A.value,
|
|
165
165
|
config: e.value
|
|
@@ -168,10 +168,10 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
168
168
|
if (Ne(l) && Re(() => l({
|
|
169
169
|
seriesIndex: t,
|
|
170
170
|
datapoint: {
|
|
171
|
-
segment:
|
|
172
|
-
index:
|
|
173
|
-
left:
|
|
174
|
-
right:
|
|
171
|
+
segment: s[0],
|
|
172
|
+
index: s[1],
|
|
173
|
+
left: s[2],
|
|
174
|
+
right: s[3]
|
|
175
175
|
},
|
|
176
176
|
series: A.value,
|
|
177
177
|
config: e.value
|
|
@@ -179,50 +179,50 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
179
179
|
U.value = l({
|
|
180
180
|
seriesIndex: t,
|
|
181
181
|
datapoint: {
|
|
182
|
-
segment:
|
|
183
|
-
index:
|
|
184
|
-
left:
|
|
185
|
-
right:
|
|
182
|
+
segment: s[0],
|
|
183
|
+
index: s[1],
|
|
184
|
+
left: s[2],
|
|
185
|
+
right: s[3]
|
|
186
186
|
},
|
|
187
187
|
series: A.value,
|
|
188
188
|
config: e.value
|
|
189
189
|
});
|
|
190
190
|
else {
|
|
191
191
|
let a = "";
|
|
192
|
-
const
|
|
193
|
-
a += `<div><b>${
|
|
192
|
+
const n = A.value[t];
|
|
193
|
+
a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${k(
|
|
194
194
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
195
|
-
|
|
196
|
-
_({ v:
|
|
197
|
-
{ datapoint:
|
|
195
|
+
f(n.age),
|
|
196
|
+
_({ v: f(n.age) }),
|
|
197
|
+
{ datapoint: s, seriesIndex: t }
|
|
198
198
|
)}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${k(
|
|
199
199
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
200
|
-
|
|
201
|
-
_({ v:
|
|
202
|
-
{ datapoint:
|
|
200
|
+
f(n.left.value),
|
|
201
|
+
_({ v: f(n.left.value) }),
|
|
202
|
+
{ datapoint: s, seriesIndex: t }
|
|
203
203
|
)}</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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${k(
|
|
204
204
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
205
|
-
|
|
206
|
-
_({ v:
|
|
207
|
-
{ datapoint:
|
|
205
|
+
f(n.right.value),
|
|
206
|
+
_({ v: f(n.right.value) }),
|
|
207
|
+
{ datapoint: s, seriesIndex: t }
|
|
208
208
|
)}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${k(
|
|
209
209
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
210
|
-
|
|
211
|
-
_({ v:
|
|
212
|
-
{ datapoint:
|
|
210
|
+
f(n.right.value) + f(n.left.value),
|
|
211
|
+
_({ v: f(n.right.value) + f(n.left.value) }),
|
|
212
|
+
{ datapoint: s, seriesIndex: t }
|
|
213
213
|
)}</b></div></div>`, a += "</div>", U.value = `<div>${a}</div>`;
|
|
214
214
|
}
|
|
215
215
|
G.value = !0;
|
|
216
216
|
}
|
|
217
217
|
function re() {
|
|
218
218
|
Se(() => {
|
|
219
|
-
const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total],
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(
|
|
219
|
+
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) => [
|
|
220
|
+
n[0],
|
|
221
|
+
n[1],
|
|
222
|
+
n[2],
|
|
223
|
+
n[3],
|
|
224
|
+
n[2] + n[3]
|
|
225
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = De(l);
|
|
226
226
|
Ge({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
227
227
|
});
|
|
228
228
|
}
|
|
@@ -233,7 +233,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
233
233
|
e.value.translations.female,
|
|
234
234
|
e.value.translations.male,
|
|
235
235
|
e.value.translations.total
|
|
236
|
-
],
|
|
236
|
+
], s = c.dataset.map((a) => [
|
|
237
237
|
a[0],
|
|
238
238
|
a[1],
|
|
239
239
|
a[2].toLocaleString(),
|
|
@@ -252,10 +252,10 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
252
252
|
},
|
|
253
253
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
254
254
|
};
|
|
255
|
-
return { head: t, body:
|
|
255
|
+
return { head: t, body: s, config: l, colNames: t };
|
|
256
256
|
}), L = v(!1);
|
|
257
257
|
function $e(t) {
|
|
258
|
-
L.value = t,
|
|
258
|
+
L.value = t, H.value += 1;
|
|
259
259
|
}
|
|
260
260
|
function ne() {
|
|
261
261
|
m.value.showTable = !m.value.showTable;
|
|
@@ -264,7 +264,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
264
264
|
m.value.showTooltip = !m.value.showTooltip;
|
|
265
265
|
}
|
|
266
266
|
const D = v(!1);
|
|
267
|
-
function
|
|
267
|
+
function V() {
|
|
268
268
|
D.value = !D.value;
|
|
269
269
|
}
|
|
270
270
|
return pe({
|
|
@@ -273,15 +273,15 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
273
273
|
generateImage: ue,
|
|
274
274
|
toggleTable: ne,
|
|
275
275
|
toggleTooltip: de,
|
|
276
|
-
toggleAnnotator:
|
|
277
|
-
}), (t,
|
|
276
|
+
toggleAnnotator: V
|
|
277
|
+
}), (t, s) => (i(), r("div", {
|
|
278
278
|
class: ye(`vue-ui-age-pyramid ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
279
279
|
ref_key: "agePyramid",
|
|
280
280
|
ref: C,
|
|
281
281
|
id: `vue-ui-age-pyramid_${x.value}`,
|
|
282
282
|
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
283
|
-
onMouseenter:
|
|
284
|
-
onMouseleave:
|
|
283
|
+
onMouseenter: s[2] || (s[2] = () => u(Z)(!0)),
|
|
284
|
+
onMouseleave: s[3] || (s[3] = () => u(Z)(!1))
|
|
285
285
|
}, [
|
|
286
286
|
e.value.userOptions.buttons.annotator ? (i(), S(Je, {
|
|
287
287
|
key: 0,
|
|
@@ -289,22 +289,22 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
289
289
|
backgroundColor: e.value.style.backgroundColor,
|
|
290
290
|
color: e.value.style.color,
|
|
291
291
|
active: D.value,
|
|
292
|
-
onClose:
|
|
292
|
+
onClose: V
|
|
293
293
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
294
|
-
me.value ? (i(),
|
|
294
|
+
me.value ? (i(), r("div", {
|
|
295
295
|
key: 1,
|
|
296
296
|
ref_key: "noTitle",
|
|
297
297
|
ref: J,
|
|
298
298
|
class: "vue-data-ui-no-title-space",
|
|
299
299
|
style: "height:36px; width: 100%;background:transparent"
|
|
300
300
|
}, null, 512)) : y("", !0),
|
|
301
|
-
e.value.style.title.text ? (i(),
|
|
301
|
+
e.value.style.title.text ? (i(), r("div", {
|
|
302
302
|
key: 2,
|
|
303
303
|
ref_key: "chartTitle",
|
|
304
|
-
ref:
|
|
304
|
+
ref: Y,
|
|
305
305
|
style: "width:100%;background:transparent"
|
|
306
306
|
}, [
|
|
307
|
-
(i(), S(
|
|
307
|
+
(i(), S(Ee, {
|
|
308
308
|
key: `title_${K.value}`,
|
|
309
309
|
config: {
|
|
310
310
|
title: {
|
|
@@ -321,7 +321,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
321
321
|
e.value.userOptions.show && M.value && (u(ee) || u(B)) ? (i(), S(We, {
|
|
322
322
|
ref_key: "details",
|
|
323
323
|
ref: xe,
|
|
324
|
-
key: `user_options_${
|
|
324
|
+
key: `user_options_${H.value}`,
|
|
325
325
|
backgroundColor: e.value.style.backgroundColor,
|
|
326
326
|
color: e.value.style.color,
|
|
327
327
|
isImaging: u(se),
|
|
@@ -346,7 +346,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
346
346
|
onGenerateImage: u(ue),
|
|
347
347
|
onToggleTable: ne,
|
|
348
348
|
onToggleTooltip: de,
|
|
349
|
-
onToggleAnnotator:
|
|
349
|
+
onToggleAnnotator: V,
|
|
350
350
|
style: W({
|
|
351
351
|
visibility: u(ee) ? u(B) ? "visible" : "hidden" : "visible"
|
|
352
352
|
})
|
|
@@ -354,54 +354,54 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
354
354
|
t.$slots.optionTooltip ? {
|
|
355
355
|
name: "optionTooltip",
|
|
356
356
|
fn: p(() => [
|
|
357
|
-
|
|
357
|
+
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
358
358
|
]),
|
|
359
359
|
key: "0"
|
|
360
360
|
} : void 0,
|
|
361
361
|
t.$slots.optionPdf ? {
|
|
362
362
|
name: "optionPdf",
|
|
363
363
|
fn: p(() => [
|
|
364
|
-
|
|
364
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
365
365
|
]),
|
|
366
366
|
key: "1"
|
|
367
367
|
} : void 0,
|
|
368
368
|
t.$slots.optionCsv ? {
|
|
369
369
|
name: "optionCsv",
|
|
370
370
|
fn: p(() => [
|
|
371
|
-
|
|
371
|
+
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
372
372
|
]),
|
|
373
373
|
key: "2"
|
|
374
374
|
} : void 0,
|
|
375
375
|
t.$slots.optionImg ? {
|
|
376
376
|
name: "optionImg",
|
|
377
377
|
fn: p(() => [
|
|
378
|
-
|
|
378
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
379
379
|
]),
|
|
380
380
|
key: "3"
|
|
381
381
|
} : void 0,
|
|
382
382
|
t.$slots.optionTable ? {
|
|
383
383
|
name: "optionTable",
|
|
384
384
|
fn: p(() => [
|
|
385
|
-
|
|
385
|
+
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
386
386
|
]),
|
|
387
387
|
key: "4"
|
|
388
388
|
} : void 0,
|
|
389
389
|
t.$slots.optionFullscreen ? {
|
|
390
390
|
name: "optionFullscreen",
|
|
391
391
|
fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
392
|
-
|
|
392
|
+
h(t.$slots, "optionFullscreen", I(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
393
393
|
]),
|
|
394
394
|
key: "5"
|
|
395
395
|
} : void 0,
|
|
396
396
|
t.$slots.optionAnnotator ? {
|
|
397
397
|
name: "optionAnnotator",
|
|
398
398
|
fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
399
|
-
|
|
399
|
+
h(t.$slots, "optionAnnotator", I(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
400
400
|
]),
|
|
401
401
|
key: "6"
|
|
402
402
|
} : void 0
|
|
403
403
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
404
|
-
M.value ? (i(),
|
|
404
|
+
M.value ? (i(), r("svg", {
|
|
405
405
|
key: 4,
|
|
406
406
|
xmlns: u(Me),
|
|
407
407
|
class: ye({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
@@ -409,6 +409,18 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
409
409
|
style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
410
410
|
}, [
|
|
411
411
|
he(qe),
|
|
412
|
+
t.$slots["chart-background"] ? (i(), r("foreignObject", {
|
|
413
|
+
key: 0,
|
|
414
|
+
x: o.value.left,
|
|
415
|
+
y: o.value.top,
|
|
416
|
+
width: o.value.width,
|
|
417
|
+
height: o.value.height,
|
|
418
|
+
style: {
|
|
419
|
+
pointerEvents: "none"
|
|
420
|
+
}
|
|
421
|
+
}, [
|
|
422
|
+
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
423
|
+
], 8, tt)) : y("", !0),
|
|
412
424
|
d("defs", null, [
|
|
413
425
|
d("linearGradient", {
|
|
414
426
|
id: `age_pyramid_left_${x.value}`,
|
|
@@ -420,12 +432,12 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
420
432
|
d("stop", {
|
|
421
433
|
offset: "0%",
|
|
422
434
|
"stop-color": e.value.style.layout.bars.left.color
|
|
423
|
-
}, null, 8,
|
|
435
|
+
}, null, 8, at),
|
|
424
436
|
d("stop", {
|
|
425
437
|
offset: "100%",
|
|
426
438
|
"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)
|
|
427
|
-
}, null, 8,
|
|
428
|
-
], 8,
|
|
439
|
+
}, null, 8, ot)
|
|
440
|
+
], 8, lt),
|
|
429
441
|
d("linearGradient", {
|
|
430
442
|
id: `age_pyramid_right_${x.value}`,
|
|
431
443
|
x1: "0%",
|
|
@@ -436,22 +448,22 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
436
448
|
d("stop", {
|
|
437
449
|
offset: "0%",
|
|
438
450
|
"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)
|
|
439
|
-
}, null, 8,
|
|
451
|
+
}, null, 8, it),
|
|
440
452
|
d("stop", {
|
|
441
453
|
offset: "100%",
|
|
442
454
|
"stop-color": e.value.style.layout.bars.right.color
|
|
443
|
-
}, null, 8,
|
|
444
|
-
], 8,
|
|
455
|
+
}, null, 8, ut)
|
|
456
|
+
], 8, st)
|
|
445
457
|
]),
|
|
446
|
-
(i(!0),
|
|
458
|
+
(i(!0), r(z, null, P(A.value, (l, a) => (i(), r("g", null, [
|
|
447
459
|
d("rect", {
|
|
448
460
|
x: l.left.x,
|
|
449
461
|
y: l.left.y,
|
|
450
|
-
width: u(
|
|
462
|
+
width: u(f)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
451
463
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
452
464
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
453
465
|
rx: e.value.style.layout.bars.borderRadius
|
|
454
|
-
}, null, 8,
|
|
466
|
+
}, null, 8, rt),
|
|
455
467
|
d("rect", {
|
|
456
468
|
x: l.left.x,
|
|
457
469
|
y: l.left.y,
|
|
@@ -459,7 +471,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
459
471
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
460
472
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : l.left.color,
|
|
461
473
|
rx: e.value.style.layout.bars.borderRadius
|
|
462
|
-
}, null, 8,
|
|
474
|
+
}, null, 8, nt),
|
|
463
475
|
d("rect", {
|
|
464
476
|
x: l.right.x,
|
|
465
477
|
y: l.right.y,
|
|
@@ -467,7 +479,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
467
479
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
468
480
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
469
481
|
rx: e.value.style.layout.bars.borderRadius
|
|
470
|
-
}, null, 8,
|
|
482
|
+
}, null, 8, dt),
|
|
471
483
|
d("rect", {
|
|
472
484
|
x: l.right.x,
|
|
473
485
|
y: l.right.y,
|
|
@@ -475,33 +487,33 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
475
487
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
476
488
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : l.right.color,
|
|
477
489
|
rx: e.value.style.layout.bars.borderRadius
|
|
478
|
-
}, null, 8,
|
|
490
|
+
}, null, 8, vt)
|
|
479
491
|
]))), 256)),
|
|
480
492
|
d("g", null, [
|
|
481
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (i(),
|
|
493
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", yt, [
|
|
482
494
|
d("text", {
|
|
483
|
-
x:
|
|
484
|
-
y:
|
|
495
|
+
x: o.value.left,
|
|
496
|
+
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
485
497
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
486
498
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
487
499
|
"text-anchor": "start",
|
|
488
500
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
489
|
-
}, w(e.value.translations.female), 9,
|
|
501
|
+
}, w(e.value.translations.female), 9, ht),
|
|
490
502
|
d("text", {
|
|
491
|
-
x:
|
|
492
|
-
y:
|
|
503
|
+
x: o.value.right,
|
|
504
|
+
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
493
505
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
494
506
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
495
507
|
"text-anchor": "end",
|
|
496
508
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
497
|
-
}, w(e.value.translations.male), 9,
|
|
509
|
+
}, w(e.value.translations.male), 9, ft)
|
|
498
510
|
])) : y("", !0),
|
|
499
|
-
e.value.style.layout.dataLabels.yAxis.show ? (i(),
|
|
500
|
-
(i(!0),
|
|
501
|
-
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(),
|
|
511
|
+
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", ct, [
|
|
512
|
+
(i(!0), r(z, null, P(we.value, (l, a) => (i(), r(z, null, [
|
|
513
|
+
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
|
|
502
514
|
key: 0,
|
|
503
|
-
x:
|
|
504
|
-
y:
|
|
515
|
+
x: o.value.centerX,
|
|
516
|
+
y: o.value.top + o.value.height / T.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
505
517
|
"text-anchor": "middle",
|
|
506
518
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
507
519
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
@@ -511,44 +523,44 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
511
523
|
l,
|
|
512
524
|
u(_)({ v: l }),
|
|
513
525
|
{ datapoint: l, seriesIndex: a }
|
|
514
|
-
)), 9,
|
|
526
|
+
)), 9, gt)) : y("", !0)
|
|
515
527
|
], 64))), 256))
|
|
516
528
|
])) : y("", !0),
|
|
517
|
-
e.value.style.layout.dataLabels.xAxis.show ? (i(),
|
|
518
|
-
e.value.style.layout.grid.show ? (i(),
|
|
529
|
+
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", pt, [
|
|
530
|
+
e.value.style.layout.grid.show ? (i(), r("g", bt, [
|
|
519
531
|
d("line", {
|
|
520
532
|
x1: $.value.right[0].x,
|
|
521
533
|
x2: $.value.right.at(-1).x,
|
|
522
|
-
y1:
|
|
523
|
-
y2:
|
|
534
|
+
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
535
|
+
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
524
536
|
stroke: e.value.style.layout.grid.stroke,
|
|
525
537
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
526
538
|
"stroke-linecap": "round"
|
|
527
|
-
}, null, 8,
|
|
539
|
+
}, null, 8, xt),
|
|
528
540
|
d("line", {
|
|
529
541
|
x1: $.value.left[0].x,
|
|
530
542
|
x2: $.value.left.at(-1).x,
|
|
531
|
-
y1:
|
|
532
|
-
y2:
|
|
543
|
+
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
544
|
+
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
533
545
|
stroke: e.value.style.layout.grid.stroke,
|
|
534
546
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
535
547
|
"stroke-linecap": "round"
|
|
536
|
-
}, null, 8,
|
|
548
|
+
}, null, 8, mt)
|
|
537
549
|
])) : y("", !0),
|
|
538
|
-
(i(!0),
|
|
539
|
-
e.value.style.layout.grid.show ? (i(),
|
|
550
|
+
(i(!0), r(z, null, P($.value.right, (l, a) => (i(), r("g", null, [
|
|
551
|
+
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
540
552
|
key: 0,
|
|
541
553
|
x1: l.x,
|
|
542
554
|
x2: l.x,
|
|
543
|
-
y1:
|
|
544
|
-
y2:
|
|
555
|
+
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
556
|
+
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 4,
|
|
545
557
|
stroke: e.value.style.layout.grid.stroke,
|
|
546
558
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
547
559
|
"stroke-linecap": "round"
|
|
548
|
-
}, null, 8,
|
|
560
|
+
}, null, 8, wt)) : y("", !0),
|
|
549
561
|
d("text", {
|
|
550
562
|
x: l.x,
|
|
551
|
-
y:
|
|
563
|
+
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
552
564
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
553
565
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
554
566
|
"text-anchor": "middle",
|
|
@@ -560,22 +572,22 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
560
572
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
561
573
|
}),
|
|
562
574
|
{ datapoint: l, seriesIndex: a }
|
|
563
|
-
)), 9,
|
|
575
|
+
)), 9, kt)
|
|
564
576
|
]))), 256)),
|
|
565
|
-
(i(!0),
|
|
566
|
-
e.value.style.layout.grid.show ? (i(),
|
|
577
|
+
(i(!0), r(z, null, P($.value.left, (l, a) => (i(), r("g", null, [
|
|
578
|
+
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
567
579
|
key: 0,
|
|
568
580
|
x1: l.x,
|
|
569
581
|
x2: l.x,
|
|
570
|
-
y1:
|
|
571
|
-
y2:
|
|
582
|
+
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
583
|
+
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 4,
|
|
572
584
|
stroke: e.value.style.layout.grid.stroke,
|
|
573
585
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
574
586
|
"stroke-linecap": "round"
|
|
575
|
-
}, null, 8,
|
|
587
|
+
}, null, 8, _t)) : y("", !0),
|
|
576
588
|
d("text", {
|
|
577
589
|
x: l.x,
|
|
578
|
-
y:
|
|
590
|
+
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
579
591
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
580
592
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
581
593
|
"text-anchor": "middle",
|
|
@@ -587,37 +599,37 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
587
599
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
588
600
|
}),
|
|
589
601
|
{ datapoint: l, seriesIndex: a }
|
|
590
|
-
)), 9,
|
|
602
|
+
)), 9, Ct)
|
|
591
603
|
]))), 256)),
|
|
592
604
|
d("text", {
|
|
593
|
-
x:
|
|
605
|
+
x: o.value.right,
|
|
594
606
|
y: g.value.height,
|
|
595
607
|
"text-anchor": "end",
|
|
596
608
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
597
609
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
598
610
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
599
|
-
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9,
|
|
611
|
+
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9, $t)
|
|
600
612
|
])) : y("", !0)
|
|
601
613
|
]),
|
|
602
|
-
(i(!0),
|
|
614
|
+
(i(!0), r(z, null, P(j.dataset, (l, a) => (i(), r("g", null, [
|
|
603
615
|
d("rect", {
|
|
604
|
-
x:
|
|
605
|
-
y:
|
|
606
|
-
width:
|
|
607
|
-
height:
|
|
616
|
+
x: o.value.left,
|
|
617
|
+
y: o.value.top + o.value.height / T.value * a - e.value.style.layout.bars.gap / 2,
|
|
618
|
+
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
619
|
+
height: o.value.height / T.value <= 0 ? 1e-4 : o.value.height / T.value,
|
|
608
620
|
fill: N.value !== null && N.value === a ? u(X)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
609
|
-
onMouseover: (
|
|
610
|
-
onMouseleave:
|
|
621
|
+
onMouseover: (n) => Ce(a, l),
|
|
622
|
+
onMouseleave: s[0] || (s[0] = (n) => {
|
|
611
623
|
N.value = null, G.value = !1;
|
|
612
624
|
})
|
|
613
|
-
}, null, 40,
|
|
625
|
+
}, null, 40, Tt)
|
|
614
626
|
]))), 256)),
|
|
615
|
-
|
|
627
|
+
h(t.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
616
628
|
], 14, et)) : y("", !0),
|
|
617
|
-
t.$slots.watermark ? (i(),
|
|
618
|
-
|
|
629
|
+
t.$slots.watermark ? (i(), r("div", At, [
|
|
630
|
+
h(t.$slots, "watermark", I(F({ isPrinting: u(oe) || u(se) })), void 0, !0)
|
|
619
631
|
])) : y("", !0),
|
|
620
|
-
M.value ? y("", !0) : (i(), S(
|
|
632
|
+
M.value ? y("", !0) : (i(), S(He, {
|
|
621
633
|
key: 6,
|
|
622
634
|
config: {
|
|
623
635
|
type: "pyramid",
|
|
@@ -629,14 +641,14 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
629
641
|
}
|
|
630
642
|
}
|
|
631
643
|
}, null, 8, ["config"])),
|
|
632
|
-
|
|
633
|
-
t.$slots.source ? (i(),
|
|
644
|
+
h(t.$slots, "legend", { legend: A.value }, void 0, !0),
|
|
645
|
+
t.$slots.source ? (i(), r("div", {
|
|
634
646
|
key: 7,
|
|
635
647
|
ref_key: "source",
|
|
636
648
|
ref: q,
|
|
637
649
|
dir: "auto"
|
|
638
650
|
}, [
|
|
639
|
-
|
|
651
|
+
h(t.$slots, "source", {}, void 0, !0)
|
|
640
652
|
], 512)) : y("", !0),
|
|
641
653
|
he(Xe, {
|
|
642
654
|
show: m.value.showTooltip && G.value,
|
|
@@ -655,14 +667,14 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
655
667
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
656
668
|
}, {
|
|
657
669
|
"tooltip-before": p(() => [
|
|
658
|
-
|
|
670
|
+
h(t.$slots, "tooltip-before", I(F({ ...E.value })), void 0, !0)
|
|
659
671
|
]),
|
|
660
672
|
"tooltip-after": p(() => [
|
|
661
|
-
|
|
673
|
+
h(t.$slots, "tooltip-after", I(F({ ...E.value })), void 0, !0)
|
|
662
674
|
]),
|
|
663
675
|
_: 3
|
|
664
676
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
665
|
-
M.value ? (i(), S(
|
|
677
|
+
M.value ? (i(), S(Ye, {
|
|
666
678
|
key: 8,
|
|
667
679
|
hideDetails: "",
|
|
668
680
|
config: {
|
|
@@ -679,14 +691,14 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
679
691
|
}
|
|
680
692
|
}, {
|
|
681
693
|
content: p(() => [
|
|
682
|
-
(i(), S(
|
|
694
|
+
(i(), S(je, {
|
|
683
695
|
key: `table_${Q.value}`,
|
|
684
696
|
colNames: R.value.colNames,
|
|
685
697
|
head: R.value.head,
|
|
686
698
|
body: R.value.body,
|
|
687
699
|
config: R.value.config,
|
|
688
700
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
689
|
-
onClose:
|
|
701
|
+
onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
|
|
690
702
|
}, {
|
|
691
703
|
th: p(({ th: l }) => [
|
|
692
704
|
fe(w(l), 1)
|
|
@@ -701,7 +713,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
701
713
|
}, 8, ["config"])) : y("", !0)
|
|
702
714
|
], 46, Ze));
|
|
703
715
|
}
|
|
704
|
-
}, Vt = /* @__PURE__ */ Qe(
|
|
716
|
+
}, Vt = /* @__PURE__ */ Qe(Lt, [["__scopeId", "data-v-8fdd585f"]]);
|
|
705
717
|
export {
|
|
706
718
|
Vt as default
|
|
707
719
|
};
|