vue-data-ui 2.4.0 → 2.4.2
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 +56 -54
- package/dist/{Arrow-CbntjQjr.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-NcE21Ngm.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-BUTpMnXi.js → BaseIcon-rRli6Sfv.js} +8 -4
- package/dist/{DataTable-BwH-MU-S.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DAgyf9zN.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DBhpIX2x.js → Legend-CYF2gpXG.js} +23 -17
- package/dist/Legend-YZ7Hz3o1.cjs +1 -0
- package/dist/{PackageVersion-wB6dCDZw.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-Djty0wb2.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CQVJz33T.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-DQ0Hh2Gg.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CiSmaE0_.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-DXw23eOC.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DlVZnHjs.js → Title-5VmBwT4i.js} +21 -17
- package/dist/Title-Co5jI5ed.cjs +1 -0
- package/dist/{Tooltip-DBzXz806.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CveCRFgK.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/documentation/installation.md +10 -9
- package/dist/{index-B0CpCD8z.js → index-DnVHQ2xI.js} +1138 -907
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +101 -20
- package/dist/types/vue-data-ui.d.ts +101 -20
- package/dist/{useNestedProp-DGWP4D-K.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-iuDCMc2p.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-Dr30K4cu.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +52 -51
- package/dist/{vue-ui-3d-bar-C3hYrYTV.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-CmENcGVW.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Deyo7jw7.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-C075Lvfe.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Bb6fUz4x.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-DslXalSQ.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-C4VEOmY_.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-Coq4gg_P.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DZfMMpZ7.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CUnbj-Zb.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-CtuPho-s.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-B9UvQwLp.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-8gQ1bGCn.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-KMTRqXzR.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-DSMNN4z_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-DuEyX8op.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DbojarYN.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-0xdYBc41.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-BxhWjCvR.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-BddgLpP-.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-hXBWaB0c.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DRASsqlp.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B43q8UHu.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-_GVnhxEd.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-BiJnqtGR.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DVZtFcHw.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-qvtu5jtI.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-iZJ0B1Wf.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CovQfZ81.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-CJb2Pg0t.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CUA_fFC3.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-IAIp5IZq.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bb2RQ6qI.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-mIQMBRHx.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-BGRWSTGr.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-DcJb7_bV.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-DiQJtMz1.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-BdnW3WFN.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-QRt5bT48.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-fqwO2mHD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DEv_1TFa.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-D-zRYR9g.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAr3XuJG.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-Br0GTMx_.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CS6jl2aN.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-tgfbnVYO.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-N8aFbuJv.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge--hgbxLQS.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CqH25hj7.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-vVRA6Z_l.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cry2PFGH.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DXwqMlzQ.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BZir7JxD.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dc6tZvej.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CQjpberv.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-C8dme7tS.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-DGmUNjR_.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-BvbXppa1.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-ccoLJyce.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Ch2UwsIw.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DT5a8gHs.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BZ8faxdR.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-CNpKGbIg.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-DE_m5wxu.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CVZI3v1Y.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-D3TaTkPR.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-ClETpddw.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-7IlvRUX2.cjs +0 -1
- package/dist/Legend-CHQgjBuK.cjs +0 -1
- package/dist/Title-BHmTg9iK.cjs +0 -1
- package/dist/index-Dfhvf8hT.cjs +0 -9
- package/dist/usePrinter-BQQasUin.cjs +0 -1
- package/dist/vue-data-ui-BdSFeW_X.js +0 -256
- package/dist/vue-data-ui-BgVPGbxq.cjs +0 -9
- package/dist/vue-ui-3d-bar-DhHuwXZ1.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DaenyRp2.cjs +0 -1
- package/dist/vue-ui-candlestick-CnVzd826.cjs +0 -2
- package/dist/vue-ui-chestnut-CLnJ0jmo.cjs +0 -6
- package/dist/vue-ui-donut-C4ek9m3R.cjs +0 -1
- package/dist/vue-ui-donut-evolution-B4TkwvNq.cjs +0 -1
- package/dist/vue-ui-dumbbell-Cn3spRSv.cjs +0 -9
- package/dist/vue-ui-flow-D00VdtGU.cjs +0 -1
- package/dist/vue-ui-flow-DreN8go4.js +0 -484
- package/dist/vue-ui-galaxy-DVN-S67V.cjs +0 -1
- package/dist/vue-ui-gauge-DYZYFzHP.cjs +0 -1
- package/dist/vue-ui-gauge-DoTctAHq.js +0 -494
- package/dist/vue-ui-heatmap-ldCySJFf.cjs +0 -1
- package/dist/vue-ui-molecule-DP9jhODZ.cjs +0 -1
- package/dist/vue-ui-molecule-Dpu7Xmu5.js +0 -774
- package/dist/vue-ui-mood-radar-BR0INhYL.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CwIsGnyH.cjs +0 -17
- package/dist/vue-ui-onion-DjEChSmi.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs +0 -8
- package/dist/vue-ui-quadrant-CmdbW8yZ.cjs +0 -1
- package/dist/vue-ui-quick-chart-DcEk6Ho7.cjs +0 -15
- package/dist/vue-ui-radar-TjgO9_LA.cjs +0 -1
- package/dist/vue-ui-relation-circle-f0fKvSSw.js +0 -325
- package/dist/vue-ui-relation-circle-x4sKnxbi.cjs +0 -1
- package/dist/vue-ui-rings-B3mUyyQ9.cjs +0 -2
- package/dist/vue-ui-rings-M1PUv5Wu.js +0 -569
- package/dist/vue-ui-scatter-DF_nobsG.cjs +0 -1
- package/dist/vue-ui-stackbar-BF0M1KJf.js +0 -915
- package/dist/vue-ui-stackbar-BGmTwxvv.cjs +0 -6
- package/dist/vue-ui-strip-plot-DT9Od_To.cjs +0 -1
- package/dist/vue-ui-thermometer-BOs1_H4X.js +0 -416
- package/dist/vue-ui-thermometer-Biv2CIsy.cjs +0 -1
- package/dist/vue-ui-tiremarks-CTMS_E0z.js +0 -279
- package/dist/vue-ui-tiremarks-YU4wuZl3.cjs +0 -1
- package/dist/vue-ui-treemap-5Dm82baA.js +0 -792
- package/dist/vue-ui-treemap-C0E1_DGA.cjs +0 -1
- package/dist/vue-ui-vertical-bar-CVZHDENz.cjs +0 -4
- package/dist/vue-ui-waffle-Bf4epEaH.js +0 -758
- package/dist/vue-ui-waffle-DD09_Fdb.cjs +0 -1
- package/dist/vue-ui-wheel-BybAQ0bR.cjs +0 -1
- package/dist/vue-ui-wheel-DMvZZCzi.js +0 -258
- package/dist/vue-ui-word-cloud-B8hdGDYI.js +0 -574
- package/dist/vue-ui-word-cloud-MQ0kgdPw.cjs +0 -1
- package/dist/vue-ui-xy-B4C0WR56.cjs +0 -3
- package/dist/vue-ui-xy-canvas-qbn0PHMN.cjs +0 -9
|
@@ -1,19 +1,20 @@
|
|
|
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
|
|
11
|
-
import { _ as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { computed as b, ref as v, watch as me, onMounted as we, openBlock as i, createElementBlock as r, normalizeClass as ie, normalizeStyle as ue, createBlock as L, createCommentVNode as y, unref as d, createSlots as ke, withCtx as g, renderSlot as p, normalizeProps as O, guardReactiveProps as P, createVNode as re, createElementVNode as n, Fragment as S, renderList as F, toDisplayString as w, createTextVNode as ne, nextTick as _e } from "vue";
|
|
2
|
+
import { u as Ce, c as $e, t as Ae, o as Te, e as Le, v as h, X as Se, s as X, w as de, i as k, f as _, x as ze, y as Ie, q as Oe, r as Pe } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { t as Fe, u as Me } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ne } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { u as Re, U as De } from "./usePrinter-BEeNAqS5.js";
|
|
6
|
+
import { _ as Ge } from "./Tooltip-Cj4EF7v1.js";
|
|
7
|
+
import { D as Be } from "./DataTable-DTk7C4Pr.js";
|
|
8
|
+
import Ee from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
9
|
+
import We from "./vue-ui-accordion-DspS4q3f.js";
|
|
10
|
+
import { u as ve } from "./useNestedProp-Cox0K0Y5.js";
|
|
11
|
+
import { _ as Xe } from "./PackageVersion-CvCRsT5_.js";
|
|
12
|
+
import { P as Ue } from "./PenAndPaper-Jb0pLt3G.js";
|
|
13
|
+
import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Ye = ["id"], je = ["xmlns", "viewBox"], He = ["id"], qe = ["stop-color"], Je = ["stop-color"], Ke = ["id"], Qe = ["stop-color"], Ze = ["stop-color"], et = ["x", "y", "width", "height", "fill", "rx"], tt = ["x", "y", "width", "height", "fill", "rx"], lt = ["x", "y", "width", "height", "fill", "rx"], at = ["x", "y", "width", "height", "fill", "rx"], ot = { key: 0 }, st = ["x", "y", "fill", "font-size", "font-weight"], it = ["x", "y", "fill", "font-size", "font-weight"], ut = { key: 1 }, rt = ["x", "y", "font-size", "fill", "font-weight"], nt = { key: 2 }, dt = { key: 0 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ft = ["x", "y", "font-size", "fill", "font-weight"], ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "width", "height", "fill", "onMouseover"], xt = {
|
|
15
|
+
key: 4,
|
|
15
16
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
17
|
+
}, mt = {
|
|
17
18
|
__name: "vue-ui-age-pyramid",
|
|
18
19
|
props: {
|
|
19
20
|
config: {
|
|
@@ -29,46 +30,46 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const f =
|
|
34
|
-
get: () =>
|
|
33
|
+
setup(U, { expose: ye }) {
|
|
34
|
+
const f = U, { vue_ui_age_pyramid: he } = Ce(), M = b(() => !!f.dataset && f.dataset.length), x = v($e()), fe = v(null), G = v(!1), B = v(""), N = v(null), V = v(0), C = v(null), Y = v(null), j = v(0), H = v(0), e = b({
|
|
35
|
+
get: () => q(),
|
|
35
36
|
set: (t) => t
|
|
36
37
|
});
|
|
37
|
-
function
|
|
38
|
-
const t =
|
|
38
|
+
function q() {
|
|
39
|
+
const t = ve({
|
|
39
40
|
userConfig: f.config,
|
|
40
|
-
defaultConfig:
|
|
41
|
+
defaultConfig: he
|
|
41
42
|
});
|
|
42
43
|
return t.theme ? {
|
|
43
|
-
...
|
|
44
|
-
userConfig:
|
|
44
|
+
...ve({
|
|
45
|
+
userConfig: Ae.vue_ui_age_pyramid[t.theme] || f.config,
|
|
45
46
|
defaultConfig: t
|
|
46
47
|
})
|
|
47
48
|
} : t;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
e.value =
|
|
50
|
+
me(() => f.config, (t) => {
|
|
51
|
+
e.value = q(), K(), j.value += 1, H.value += 1;
|
|
51
52
|
}, { deep: !0 });
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
const J = v(null);
|
|
54
|
+
we(() => {
|
|
55
|
+
K();
|
|
55
56
|
});
|
|
56
|
-
function
|
|
57
|
-
if (
|
|
57
|
+
function K() {
|
|
58
|
+
if (Te(f.dataset) && Le({
|
|
58
59
|
componentName: "VueUiAgePyramid",
|
|
59
60
|
type: "dataset"
|
|
60
61
|
}), e.value.responsive) {
|
|
61
|
-
const t =
|
|
62
|
-
const { width: s, height: l } =
|
|
63
|
-
chart:
|
|
64
|
-
title: e.value.style.title.text ?
|
|
62
|
+
const t = Fe(() => {
|
|
63
|
+
const { width: s, height: l } = Me({
|
|
64
|
+
chart: C.value,
|
|
65
|
+
title: e.value.style.title.text ? Y.value : null
|
|
65
66
|
});
|
|
66
67
|
c.value.width = s, c.value.height = l;
|
|
67
68
|
});
|
|
68
|
-
|
|
69
|
+
J.value = new ResizeObserver(t), J.value.observe(C.value.parentNode);
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
const { isPrinting:
|
|
72
|
+
const { isPrinting: Q, isImaging: Z, generatePdf: ee, generateImage: te } = Re({
|
|
72
73
|
elementId: `vue-ui-age-pyramid_${x.value}`,
|
|
73
74
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid"
|
|
74
75
|
}), m = v({
|
|
@@ -96,16 +97,16 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
96
97
|
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
|
-
}),
|
|
100
|
-
const t =
|
|
100
|
+
}), ce = b(() => f.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), $ = b(() => {
|
|
101
|
+
const t = ge(z.value / 5), s = [], l = [];
|
|
101
102
|
for (let a = 0; a <= 5; a += 1) {
|
|
102
|
-
const u = t * a,
|
|
103
|
+
const u = t * a, se = t * (a - 5);
|
|
103
104
|
s.push({
|
|
104
105
|
value: u,
|
|
105
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u /
|
|
106
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u / z.value * o.value.leftChart.width
|
|
106
107
|
}), l.push({
|
|
107
|
-
value: Math.abs(
|
|
108
|
-
x: o.value.left + o.value.width / 2 +
|
|
108
|
+
value: Math.abs(se),
|
|
109
|
+
x: o.value.left + o.value.width / 2 + se / z.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
return {
|
|
@@ -113,25 +114,25 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
113
114
|
left: l
|
|
114
115
|
};
|
|
115
116
|
});
|
|
116
|
-
function
|
|
117
|
+
function ge(t) {
|
|
117
118
|
if (t === 0) return 0;
|
|
118
119
|
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
119
120
|
let a;
|
|
120
121
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
121
122
|
}
|
|
122
|
-
const
|
|
123
|
+
const z = b(() => Math.max(...f.dataset.flatMap((t) => t.slice(-2).map((s) => h(s))))), A = b(() => f.dataset.length), pe = b(() => f.dataset.map((t) => ({
|
|
123
124
|
segment: t[0],
|
|
124
125
|
age: t[1],
|
|
125
126
|
left: {
|
|
126
127
|
value: t[2],
|
|
127
|
-
proportionToMax: t[2] /
|
|
128
|
+
proportionToMax: t[2] / z.value
|
|
128
129
|
},
|
|
129
130
|
right: {
|
|
130
131
|
value: t[3],
|
|
131
|
-
proportionToMax: t[3] /
|
|
132
|
+
proportionToMax: t[3] / z.value
|
|
132
133
|
}
|
|
133
|
-
}))), T = b(() =>
|
|
134
|
-
const l = o.value.top + o.value.height /
|
|
134
|
+
}))), T = b(() => pe.value.map((t, s) => {
|
|
135
|
+
const l = o.value.top + o.value.height / A.value * s, a = o.value.height / A.value - e.value.style.layout.bars.gap;
|
|
135
136
|
return {
|
|
136
137
|
segment: t.segment,
|
|
137
138
|
age: t.age,
|
|
@@ -140,7 +141,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
140
141
|
y: l,
|
|
141
142
|
color: e.value.style.layout.bars.left.color,
|
|
142
143
|
x: o.value.leftChart.right - t.left.proportionToMax * o.value.leftChart.width,
|
|
143
|
-
width:
|
|
144
|
+
width: h(t.left.proportionToMax * o.value.leftChart.width),
|
|
144
145
|
height: a
|
|
145
146
|
},
|
|
146
147
|
right: {
|
|
@@ -148,20 +149,20 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
148
149
|
y: l,
|
|
149
150
|
color: e.value.style.layout.bars.right.color,
|
|
150
151
|
x: o.value.rightChart.left,
|
|
151
|
-
width:
|
|
152
|
+
width: h(t.right.proportionToMax * o.value.rightChart.width),
|
|
152
153
|
height: a
|
|
153
154
|
}
|
|
154
155
|
};
|
|
155
|
-
})),
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
})), E = v(null);
|
|
157
|
+
function be(t, s) {
|
|
158
|
+
N.value = t, E.value = {
|
|
158
159
|
datapoint: s,
|
|
159
160
|
seriesIndex: t,
|
|
160
161
|
series: T.value,
|
|
161
162
|
config: e.value
|
|
162
163
|
};
|
|
163
164
|
const l = e.value.style.tooltip.customFormat;
|
|
164
|
-
if (
|
|
165
|
+
if (ze(l) && Ie(() => l({
|
|
165
166
|
seriesIndex: t,
|
|
166
167
|
datapoint: {
|
|
167
168
|
segment: s[0],
|
|
@@ -172,7 +173,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
172
173
|
series: T.value,
|
|
173
174
|
config: e.value
|
|
174
175
|
})))
|
|
175
|
-
|
|
176
|
+
B.value = l({
|
|
176
177
|
seriesIndex: t,
|
|
177
178
|
datapoint: {
|
|
178
179
|
segment: s[0],
|
|
@@ -186,43 +187,43 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
186
187
|
else {
|
|
187
188
|
let a = "";
|
|
188
189
|
const u = T.value[t];
|
|
189
|
-
a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${
|
|
190
|
+
a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${k(
|
|
190
191
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
h(u.age),
|
|
193
|
+
_({ v: h(u.age) }),
|
|
193
194
|
{ datapoint: s, seriesIndex: t }
|
|
194
|
-
)}</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>${
|
|
195
|
+
)}</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(
|
|
195
196
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
196
|
-
|
|
197
|
-
|
|
197
|
+
h(u.left.value),
|
|
198
|
+
_({ v: h(u.left.value) }),
|
|
198
199
|
{ datapoint: s, seriesIndex: t }
|
|
199
|
-
)}</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>${
|
|
200
|
+
)}</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(
|
|
200
201
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
h(u.right.value),
|
|
203
|
+
_({ v: h(u.right.value) }),
|
|
203
204
|
{ datapoint: s, seriesIndex: t }
|
|
204
|
-
)}</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>${
|
|
205
|
+
)}</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(
|
|
205
206
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
h(u.right.value) + h(u.left.value),
|
|
208
|
+
_({ v: h(u.right.value) + h(u.left.value) }),
|
|
208
209
|
{ datapoint: s, seriesIndex: t }
|
|
209
|
-
)}</b></div></div>`, a += "</div>",
|
|
210
|
+
)}</b></div></div>`, a += "</div>", B.value = `<div>${a}</div>`;
|
|
210
211
|
}
|
|
211
|
-
|
|
212
|
+
G.value = !0;
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
214
|
+
function le() {
|
|
215
|
+
_e(() => {
|
|
215
216
|
const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s = f.dataset.map((u) => [
|
|
216
217
|
u[0],
|
|
217
218
|
u[1],
|
|
218
219
|
u[2],
|
|
219
220
|
u[3],
|
|
220
221
|
u[2] + u[3]
|
|
221
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a =
|
|
222
|
-
|
|
222
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = Oe(l);
|
|
223
|
+
Pe({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
223
224
|
});
|
|
224
225
|
}
|
|
225
|
-
const
|
|
226
|
+
const R = b(() => {
|
|
226
227
|
const t = [
|
|
227
228
|
e.value.translations.year,
|
|
228
229
|
e.value.translations.age,
|
|
@@ -249,37 +250,50 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
249
250
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
250
251
|
};
|
|
251
252
|
return { head: t, body: s, config: l, colNames: t };
|
|
252
|
-
}),
|
|
253
|
-
function
|
|
254
|
-
|
|
253
|
+
}), I = v(!1);
|
|
254
|
+
function xe(t) {
|
|
255
|
+
I.value = t, V.value += 1;
|
|
255
256
|
}
|
|
256
|
-
function
|
|
257
|
+
function ae() {
|
|
257
258
|
m.value.showTable = !m.value.showTable;
|
|
258
259
|
}
|
|
259
|
-
function
|
|
260
|
+
function oe() {
|
|
260
261
|
m.value.showTooltip = !m.value.showTooltip;
|
|
261
262
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
const D = v(!1);
|
|
264
|
+
function W() {
|
|
265
|
+
D.value = !D.value;
|
|
266
|
+
}
|
|
267
|
+
return ye({
|
|
268
|
+
generatePdf: ee,
|
|
269
|
+
generateCsv: le,
|
|
270
|
+
generateImage: te,
|
|
271
|
+
toggleTable: ae,
|
|
272
|
+
toggleTooltip: oe,
|
|
273
|
+
toggleAnnotator: W
|
|
268
274
|
}), (t, s) => (i(), r("div", {
|
|
269
|
-
class:
|
|
275
|
+
class: ie(`vue-ui-age-pyramid ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
270
276
|
ref_key: "agePyramid",
|
|
271
|
-
ref:
|
|
277
|
+
ref: C,
|
|
272
278
|
id: `vue-ui-age-pyramid_${x.value}`,
|
|
273
|
-
style:
|
|
279
|
+
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
274
280
|
}, [
|
|
275
|
-
e.value.
|
|
281
|
+
e.value.userOptions.buttons.annotator ? (i(), L(Ue, {
|
|
276
282
|
key: 0,
|
|
283
|
+
parent: C.value,
|
|
284
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
285
|
+
color: e.value.style.color,
|
|
286
|
+
active: D.value,
|
|
287
|
+
onClose: W
|
|
288
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
289
|
+
e.value.style.title.text ? (i(), r("div", {
|
|
290
|
+
key: 1,
|
|
277
291
|
ref_key: "chartTitle",
|
|
278
|
-
ref:
|
|
292
|
+
ref: Y,
|
|
279
293
|
style: "width:100%;background:transparent"
|
|
280
294
|
}, [
|
|
281
|
-
(i(),
|
|
282
|
-
key: `title_${
|
|
295
|
+
(i(), L(Ne, {
|
|
296
|
+
key: `title_${j.value}`,
|
|
283
297
|
config: {
|
|
284
298
|
title: {
|
|
285
299
|
cy: "pyramid-div-title",
|
|
@@ -291,15 +305,15 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
291
305
|
}
|
|
292
306
|
}
|
|
293
307
|
}, null, 8, ["config"]))
|
|
294
|
-
], 512)) :
|
|
295
|
-
e.value.userOptions.show &&
|
|
308
|
+
], 512)) : y("", !0),
|
|
309
|
+
e.value.userOptions.show && M.value ? (i(), L(De, {
|
|
296
310
|
ref_key: "details",
|
|
297
|
-
ref:
|
|
298
|
-
key: `user_options_${
|
|
311
|
+
ref: fe,
|
|
312
|
+
key: `user_options_${V.value}`,
|
|
299
313
|
backgroundColor: e.value.style.backgroundColor,
|
|
300
314
|
color: e.value.style.color,
|
|
301
|
-
isImaging: d(
|
|
302
|
-
isPrinting: d(
|
|
315
|
+
isImaging: d(Z),
|
|
316
|
+
isPrinting: d(Q),
|
|
303
317
|
uid: x.value,
|
|
304
318
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
305
319
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -307,18 +321,21 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
307
321
|
hasImg: e.value.userOptions.buttons.img,
|
|
308
322
|
hasTable: e.value.userOptions.buttons.table,
|
|
309
323
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
310
|
-
isFullscreen:
|
|
324
|
+
isFullscreen: I.value,
|
|
311
325
|
isTooltip: m.value.showTooltip,
|
|
312
326
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
313
|
-
chartElement:
|
|
327
|
+
chartElement: C.value,
|
|
314
328
|
position: e.value.userOptions.position,
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
329
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
330
|
+
isAnnotation: D.value,
|
|
331
|
+
onToggleFullscreen: xe,
|
|
332
|
+
onGeneratePdf: d(ee),
|
|
333
|
+
onGenerateCsv: le,
|
|
334
|
+
onGenerateImage: d(te),
|
|
335
|
+
onToggleTable: ae,
|
|
336
|
+
onToggleTooltip: oe,
|
|
337
|
+
onToggleAnnotator: W
|
|
338
|
+
}, ke({ _: 2 }, [
|
|
322
339
|
t.$slots.optionTooltip ? {
|
|
323
340
|
name: "optionTooltip",
|
|
324
341
|
fn: g(() => [
|
|
@@ -357,19 +374,26 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
357
374
|
t.$slots.optionFullscreen ? {
|
|
358
375
|
name: "optionFullscreen",
|
|
359
376
|
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
360
|
-
p(t.$slots, "optionFullscreen",
|
|
377
|
+
p(t.$slots, "optionFullscreen", O(P({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
361
378
|
]),
|
|
362
379
|
key: "5"
|
|
380
|
+
} : void 0,
|
|
381
|
+
t.$slots.optionAnnotator ? {
|
|
382
|
+
name: "optionAnnotator",
|
|
383
|
+
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
384
|
+
p(t.$slots, "optionAnnotator", O(P({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
385
|
+
]),
|
|
386
|
+
key: "6"
|
|
363
387
|
} : void 0
|
|
364
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
365
|
-
|
|
366
|
-
key:
|
|
367
|
-
xmlns: d(
|
|
368
|
-
class:
|
|
388
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
389
|
+
M.value ? (i(), r("svg", {
|
|
390
|
+
key: 3,
|
|
391
|
+
xmlns: d(Se),
|
|
392
|
+
class: ie({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
369
393
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
370
|
-
style:
|
|
394
|
+
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
371
395
|
}, [
|
|
372
|
-
|
|
396
|
+
re(Xe),
|
|
373
397
|
n("defs", null, [
|
|
374
398
|
n("linearGradient", {
|
|
375
399
|
id: `age_pyramid_left_${x.value}`,
|
|
@@ -381,12 +405,12 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
381
405
|
n("stop", {
|
|
382
406
|
offset: "0%",
|
|
383
407
|
"stop-color": e.value.style.layout.bars.left.color
|
|
384
|
-
}, null, 8,
|
|
408
|
+
}, null, 8, qe),
|
|
385
409
|
n("stop", {
|
|
386
410
|
offset: "100%",
|
|
387
|
-
"stop-color": d(
|
|
388
|
-
}, null, 8,
|
|
389
|
-
], 8,
|
|
411
|
+
"stop-color": d(X)(d(de)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
412
|
+
}, null, 8, Je)
|
|
413
|
+
], 8, He),
|
|
390
414
|
n("linearGradient", {
|
|
391
415
|
id: `age_pyramid_right_${x.value}`,
|
|
392
416
|
x1: "0%",
|
|
@@ -396,23 +420,23 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
396
420
|
}, [
|
|
397
421
|
n("stop", {
|
|
398
422
|
offset: "0%",
|
|
399
|
-
"stop-color": d(
|
|
400
|
-
}, null, 8,
|
|
423
|
+
"stop-color": d(X)(d(de)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
424
|
+
}, null, 8, Qe),
|
|
401
425
|
n("stop", {
|
|
402
426
|
offset: "100%",
|
|
403
427
|
"stop-color": e.value.style.layout.bars.right.color
|
|
404
|
-
}, null, 8,
|
|
405
|
-
], 8,
|
|
428
|
+
}, null, 8, Ze)
|
|
429
|
+
], 8, Ke)
|
|
406
430
|
]),
|
|
407
|
-
(i(!0), r(
|
|
431
|
+
(i(!0), r(S, null, F(T.value, (l, a) => (i(), r("g", null, [
|
|
408
432
|
n("rect", {
|
|
409
433
|
x: l.left.x,
|
|
410
434
|
y: l.left.y,
|
|
411
|
-
width: d(
|
|
435
|
+
width: d(h)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
412
436
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
413
437
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
414
438
|
rx: e.value.style.layout.bars.borderRadius
|
|
415
|
-
}, null, 8,
|
|
439
|
+
}, null, 8, et),
|
|
416
440
|
n("rect", {
|
|
417
441
|
x: l.left.x,
|
|
418
442
|
y: l.left.y,
|
|
@@ -420,7 +444,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
420
444
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
421
445
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : l.left.color,
|
|
422
446
|
rx: e.value.style.layout.bars.borderRadius
|
|
423
|
-
}, null, 8,
|
|
447
|
+
}, null, 8, tt),
|
|
424
448
|
n("rect", {
|
|
425
449
|
x: l.right.x,
|
|
426
450
|
y: l.right.y,
|
|
@@ -428,7 +452,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
428
452
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
429
453
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
430
454
|
rx: e.value.style.layout.bars.borderRadius
|
|
431
|
-
}, null, 8,
|
|
455
|
+
}, null, 8, lt),
|
|
432
456
|
n("rect", {
|
|
433
457
|
x: l.right.x,
|
|
434
458
|
y: l.right.y,
|
|
@@ -436,10 +460,10 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
436
460
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
437
461
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : l.right.color,
|
|
438
462
|
rx: e.value.style.layout.bars.borderRadius
|
|
439
|
-
}, null, 8,
|
|
463
|
+
}, null, 8, at)
|
|
440
464
|
]))), 256)),
|
|
441
465
|
n("g", null, [
|
|
442
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g",
|
|
466
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", ot, [
|
|
443
467
|
n("text", {
|
|
444
468
|
x: o.value.left,
|
|
445
469
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -447,7 +471,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
447
471
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
448
472
|
"text-anchor": "start",
|
|
449
473
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
450
|
-
}, w(e.value.translations.female), 9,
|
|
474
|
+
}, w(e.value.translations.female), 9, st),
|
|
451
475
|
n("text", {
|
|
452
476
|
x: o.value.right,
|
|
453
477
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -455,48 +479,48 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
455
479
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
456
480
|
"text-anchor": "end",
|
|
457
481
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
458
|
-
}, w(e.value.translations.male), 9,
|
|
459
|
-
])) :
|
|
460
|
-
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g",
|
|
461
|
-
(i(!0), r(
|
|
482
|
+
}, w(e.value.translations.male), 9, it)
|
|
483
|
+
])) : y("", !0),
|
|
484
|
+
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", ut, [
|
|
485
|
+
(i(!0), r(S, null, F(ce.value, (l, a) => (i(), r(S, null, [
|
|
462
486
|
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
|
|
463
487
|
key: 0,
|
|
464
488
|
x: o.value.centerX,
|
|
465
|
-
y: o.value.top + o.value.height /
|
|
489
|
+
y: o.value.top + o.value.height / A.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
466
490
|
"text-anchor": "middle",
|
|
467
491
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
468
492
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
469
493
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
470
|
-
}, w(d(
|
|
494
|
+
}, w(d(k)(
|
|
471
495
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
472
496
|
l,
|
|
473
|
-
d(
|
|
497
|
+
d(_)({ v: l }),
|
|
474
498
|
{ datapoint: l, seriesIndex: a }
|
|
475
|
-
)), 9,
|
|
499
|
+
)), 9, rt)) : y("", !0)
|
|
476
500
|
], 64))), 256))
|
|
477
|
-
])) :
|
|
478
|
-
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g",
|
|
479
|
-
e.value.style.layout.grid.show ? (i(), r("g",
|
|
501
|
+
])) : y("", !0),
|
|
502
|
+
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", nt, [
|
|
503
|
+
e.value.style.layout.grid.show ? (i(), r("g", dt, [
|
|
480
504
|
n("line", {
|
|
481
|
-
x1:
|
|
482
|
-
x2:
|
|
505
|
+
x1: $.value.right[0].x,
|
|
506
|
+
x2: $.value.right.at(-1).x,
|
|
483
507
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
484
508
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
485
509
|
stroke: e.value.style.layout.grid.stroke,
|
|
486
510
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
487
511
|
"stroke-linecap": "round"
|
|
488
|
-
}, null, 8,
|
|
512
|
+
}, null, 8, vt),
|
|
489
513
|
n("line", {
|
|
490
|
-
x1:
|
|
491
|
-
x2:
|
|
514
|
+
x1: $.value.left[0].x,
|
|
515
|
+
x2: $.value.left.at(-1).x,
|
|
492
516
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
493
517
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
494
518
|
stroke: e.value.style.layout.grid.stroke,
|
|
495
519
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
496
520
|
"stroke-linecap": "round"
|
|
497
|
-
}, null, 8,
|
|
498
|
-
])) :
|
|
499
|
-
(i(!0), r(
|
|
521
|
+
}, null, 8, yt)
|
|
522
|
+
])) : y("", !0),
|
|
523
|
+
(i(!0), r(S, null, F($.value.right, (l, a) => (i(), r("g", null, [
|
|
500
524
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
501
525
|
key: 0,
|
|
502
526
|
x1: l.x,
|
|
@@ -506,7 +530,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
506
530
|
stroke: e.value.style.layout.grid.stroke,
|
|
507
531
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
508
532
|
"stroke-linecap": "round"
|
|
509
|
-
}, null, 8,
|
|
533
|
+
}, null, 8, ht)) : y("", !0),
|
|
510
534
|
n("text", {
|
|
511
535
|
x: l.x,
|
|
512
536
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -514,16 +538,16 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
514
538
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
515
539
|
"text-anchor": "middle",
|
|
516
540
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
517
|
-
}, w(d(
|
|
541
|
+
}, w(d(k)(
|
|
518
542
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
519
543
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
520
|
-
d(
|
|
544
|
+
d(_)({
|
|
521
545
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
522
546
|
}),
|
|
523
547
|
{ datapoint: l, seriesIndex: a }
|
|
524
|
-
)), 9,
|
|
548
|
+
)), 9, ft)
|
|
525
549
|
]))), 256)),
|
|
526
|
-
(i(!0), r(
|
|
550
|
+
(i(!0), r(S, null, F($.value.left, (l, a) => (i(), r("g", null, [
|
|
527
551
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
528
552
|
key: 0,
|
|
529
553
|
x1: l.x,
|
|
@@ -533,7 +557,7 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
533
557
|
stroke: e.value.style.layout.grid.stroke,
|
|
534
558
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
535
559
|
"stroke-linecap": "round"
|
|
536
|
-
}, null, 8,
|
|
560
|
+
}, null, 8, ct)) : y("", !0),
|
|
537
561
|
n("text", {
|
|
538
562
|
x: l.x,
|
|
539
563
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -541,14 +565,14 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
541
565
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
542
566
|
"text-anchor": "middle",
|
|
543
567
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
544
|
-
}, w(d(
|
|
568
|
+
}, w(d(k)(
|
|
545
569
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
546
570
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
547
|
-
d(
|
|
571
|
+
d(_)({
|
|
548
572
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
549
573
|
}),
|
|
550
574
|
{ datapoint: l, seriesIndex: a }
|
|
551
|
-
)), 9,
|
|
575
|
+
)), 9, gt)
|
|
552
576
|
]))), 256)),
|
|
553
577
|
n("text", {
|
|
554
578
|
x: o.value.right,
|
|
@@ -557,29 +581,29 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
557
581
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
558
582
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
559
583
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
560
|
-
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9,
|
|
561
|
-
])) :
|
|
584
|
+
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9, pt)
|
|
585
|
+
])) : y("", !0)
|
|
562
586
|
]),
|
|
563
|
-
(i(!0), r(
|
|
587
|
+
(i(!0), r(S, null, F(U.dataset, (l, a) => (i(), r("g", null, [
|
|
564
588
|
n("rect", {
|
|
565
589
|
x: o.value.left,
|
|
566
|
-
y: o.value.top + o.value.height /
|
|
590
|
+
y: o.value.top + o.value.height / A.value * a - e.value.style.layout.bars.gap / 2,
|
|
567
591
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
568
|
-
height: o.value.height /
|
|
569
|
-
fill:
|
|
570
|
-
onMouseover: (u) =>
|
|
592
|
+
height: o.value.height / A.value <= 0 ? 1e-4 : o.value.height / A.value,
|
|
593
|
+
fill: N.value !== null && N.value === a ? d(X)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
594
|
+
onMouseover: (u) => be(a, l),
|
|
571
595
|
onMouseleave: s[0] || (s[0] = (u) => {
|
|
572
|
-
|
|
596
|
+
N.value = null, G.value = !1;
|
|
573
597
|
})
|
|
574
|
-
}, null, 40,
|
|
598
|
+
}, null, 40, bt)
|
|
575
599
|
]))), 256)),
|
|
576
600
|
p(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
577
|
-
], 14,
|
|
578
|
-
t.$slots.watermark ? (i(), r("div",
|
|
579
|
-
p(t.$slots, "watermark",
|
|
580
|
-
])) :
|
|
581
|
-
|
|
582
|
-
key:
|
|
601
|
+
], 14, je)) : y("", !0),
|
|
602
|
+
t.$slots.watermark ? (i(), r("div", xt, [
|
|
603
|
+
p(t.$slots, "watermark", O(P({ isPrinting: d(Q) || d(Z) })), void 0, !0)
|
|
604
|
+
])) : y("", !0),
|
|
605
|
+
M.value ? y("", !0) : (i(), L(Ee, {
|
|
606
|
+
key: 5,
|
|
583
607
|
config: {
|
|
584
608
|
type: "pyramid",
|
|
585
609
|
style: {
|
|
@@ -591,8 +615,8 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
591
615
|
}
|
|
592
616
|
}, null, 8, ["config"])),
|
|
593
617
|
p(t.$slots, "legend", { legend: T.value }, void 0, !0),
|
|
594
|
-
|
|
595
|
-
show: m.value.showTooltip &&
|
|
618
|
+
re(Ge, {
|
|
619
|
+
show: m.value.showTooltip && G.value,
|
|
596
620
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
597
621
|
color: e.value.style.tooltip.color,
|
|
598
622
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -602,20 +626,20 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
602
626
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
603
627
|
position: e.value.style.tooltip.position,
|
|
604
628
|
offsetY: e.value.style.tooltip.offsetY,
|
|
605
|
-
parent:
|
|
606
|
-
content:
|
|
629
|
+
parent: C.value,
|
|
630
|
+
content: B.value,
|
|
607
631
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
608
632
|
}, {
|
|
609
633
|
"tooltip-before": g(() => [
|
|
610
|
-
p(t.$slots, "tooltip-before",
|
|
634
|
+
p(t.$slots, "tooltip-before", O(P({ ...E.value })), void 0, !0)
|
|
611
635
|
]),
|
|
612
636
|
"tooltip-after": g(() => [
|
|
613
|
-
p(t.$slots, "tooltip-after",
|
|
637
|
+
p(t.$slots, "tooltip-after", O(P({ ...E.value })), void 0, !0)
|
|
614
638
|
]),
|
|
615
639
|
_: 3
|
|
616
640
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
617
|
-
|
|
618
|
-
key:
|
|
641
|
+
M.value ? (i(), L(We, {
|
|
642
|
+
key: 6,
|
|
619
643
|
hideDetails: "",
|
|
620
644
|
config: {
|
|
621
645
|
open: m.value.showTable,
|
|
@@ -631,29 +655,29 @@ const Xe = ["id"], Ue = ["xmlns", "viewBox"], Ve = ["id"], Ye = ["stop-color"],
|
|
|
631
655
|
}
|
|
632
656
|
}, {
|
|
633
657
|
content: g(() => [
|
|
634
|
-
(i(),
|
|
635
|
-
key: `table_${
|
|
636
|
-
colNames:
|
|
637
|
-
head:
|
|
638
|
-
body:
|
|
639
|
-
config:
|
|
658
|
+
(i(), L(Be, {
|
|
659
|
+
key: `table_${H.value}`,
|
|
660
|
+
colNames: R.value.colNames,
|
|
661
|
+
head: R.value.head,
|
|
662
|
+
body: R.value.body,
|
|
663
|
+
config: R.value.config,
|
|
640
664
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
641
665
|
onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
|
|
642
666
|
}, {
|
|
643
667
|
th: g(({ th: l }) => [
|
|
644
|
-
|
|
668
|
+
ne(w(l), 1)
|
|
645
669
|
]),
|
|
646
670
|
td: g(({ td: l }) => [
|
|
647
|
-
|
|
671
|
+
ne(w(l), 1)
|
|
648
672
|
]),
|
|
649
673
|
_: 1
|
|
650
674
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
651
675
|
]),
|
|
652
676
|
_: 1
|
|
653
|
-
}, 8, ["config"])) :
|
|
654
|
-
], 14,
|
|
677
|
+
}, 8, ["config"])) : y("", !0)
|
|
678
|
+
], 14, Ye));
|
|
655
679
|
}
|
|
656
|
-
},
|
|
680
|
+
}, Ft = /* @__PURE__ */ Ve(mt, [["__scopeId", "data-v-c501abdc"]]);
|
|
657
681
|
export {
|
|
658
|
-
|
|
682
|
+
Ft as default
|
|
659
683
|
};
|