vue-data-ui 2.3.28 → 2.3.30
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 +15 -0
- package/dist/{Arrow-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
- package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
- package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-B4_9ynlY.cjs +0 -1
- package/dist/index-Y23HeR26.cjs +0 -4
- package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
- package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
- package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
- package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
- package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
- package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
- package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
- package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
- package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
- package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
- package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
- package/dist/vue-ui-onion-DiychUul.cjs +0 -1
- package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
- package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
- package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
- package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
- package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
- package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
- package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
- package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
- package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
- package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
- package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
- package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
- package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
- package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
- package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as p, ref 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
|
-
const
|
|
1
|
+
import { computed as p, ref as v, onMounted as he, openBlock as i, createElementBlock as r, normalizeClass as te, normalizeStyle as G, createVNode as B, createCommentVNode as y, createBlock as E, unref as d, createSlots as fe, withCtx as c, renderSlot as g, normalizeProps as O, guardReactiveProps as P, createElementVNode as n, Fragment as T, renderList as z, toDisplayString as m, createTextVNode as le, nextTick as ce } from "vue";
|
|
2
|
+
import { u as ge, c as pe, t as be, o as xe, e as me, X as we, s as ae, v as W, i as w, f as k, w as ke, x as _e, q as $e, r as Ce } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { t as Te, u as Le } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ae } from "./Title-eBTH8iGJ.js";
|
|
5
|
+
import { u as Se, U as ze } from "./usePrinter-CZ8F5Cth.js";
|
|
6
|
+
import { _ as Ie } from "./Tooltip-B11OahTD.js";
|
|
7
|
+
import { D as Fe } from "./DataTable-CsPidn0_.js";
|
|
8
|
+
import Me from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
9
|
+
import Oe from "./vue-ui-accordion-wHRG3nXl.js";
|
|
10
|
+
import { u as oe } from "./useNestedProp-BoNl5H_z.js";
|
|
11
|
+
import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"], Be = ["stop-color"], Ee = ["id"], We = ["stop-color"], Xe = ["stop-color"], Ue = ["x", "y", "width", "height", "fill", "rx"], Ve = ["x", "y", "width", "height", "fill", "rx"], Ye = ["x", "y", "width", "height", "fill", "rx"], je = ["x", "y", "width", "height", "fill", "rx"], He = { key: 0 }, qe = ["x", "y", "fill", "font-size", "font-weight"], Je = ["x", "y", "fill", "font-size", "font-weight"], Ke = { key: 1 }, Qe = ["x", "y", "font-size", "fill", "font-weight"], Ze = { key: 2 }, et = { key: 0 }, tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], at = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ot = ["x", "y", "font-size", "fill", "font-weight"], st = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], it = ["x", "y", "font-size", "fill", "font-weight"], ut = ["x", "y", "font-size", "fill", "font-weight"], rt = ["x", "y", "width", "height", "fill", "onMouseover"], nt = {
|
|
13
13
|
key: 3,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, dt = {
|
|
16
16
|
__name: "vue-ui-age-pyramid",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -28,52 +28,52 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
const t =
|
|
34
|
-
userConfig:
|
|
35
|
-
defaultConfig:
|
|
31
|
+
setup(X, { expose: se }) {
|
|
32
|
+
const f = X, { vue_ui_age_pyramid: ie } = ge(), I = p(() => !!f.dataset && f.dataset.length), b = v(pe()), ue = v(null), N = v(!1), R = v(""), F = v(null), U = v(0), L = v(null), V = v(null), e = p(() => {
|
|
33
|
+
const t = oe({
|
|
34
|
+
userConfig: f.config,
|
|
35
|
+
defaultConfig: ie
|
|
36
36
|
});
|
|
37
37
|
return t.theme ? {
|
|
38
|
-
...
|
|
39
|
-
userConfig:
|
|
38
|
+
...oe({
|
|
39
|
+
userConfig: be.vue_ui_age_pyramid[t.theme] || f.config,
|
|
40
40
|
defaultConfig: t
|
|
41
41
|
})
|
|
42
42
|
} : t;
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
if (
|
|
43
|
+
}), Y = v(null);
|
|
44
|
+
he(() => {
|
|
45
|
+
if (xe(f.dataset) && me({
|
|
46
46
|
componentName: "VueUiAgePyramid",
|
|
47
47
|
type: "dataset"
|
|
48
48
|
}), e.value.responsive) {
|
|
49
|
-
const t =
|
|
50
|
-
const { width: s, height: l } =
|
|
51
|
-
chart:
|
|
52
|
-
title: e.value.style.title.text ?
|
|
49
|
+
const t = Te(() => {
|
|
50
|
+
const { width: s, height: l } = Le({
|
|
51
|
+
chart: L.value,
|
|
52
|
+
title: e.value.style.title.text ? V.value : null
|
|
53
53
|
});
|
|
54
|
-
|
|
54
|
+
h.value.width = s, h.value.height = l;
|
|
55
55
|
});
|
|
56
|
-
|
|
56
|
+
Y.value = new ResizeObserver(t), Y.value.observe(L.value.parentNode);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
const { isPrinting:
|
|
59
|
+
const { isPrinting: j, isImaging: H, generatePdf: q, generateImage: J } = Se({
|
|
60
60
|
elementId: `vue-ui-age-pyramid_${b.value}`,
|
|
61
61
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid"
|
|
62
|
-
}), x =
|
|
62
|
+
}), x = v({
|
|
63
63
|
showTable: e.value.table.show,
|
|
64
64
|
showTooltip: e.value.style.tooltip.show
|
|
65
|
-
}),
|
|
65
|
+
}), h = v({
|
|
66
66
|
height: e.value.style.height,
|
|
67
67
|
width: e.value.style.width
|
|
68
68
|
}), o = p(() => {
|
|
69
|
-
const t =
|
|
69
|
+
const t = h.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, s = e.value.style.layout.padding.left, l = h.value.width - e.value.style.layout.padding.right;
|
|
70
70
|
return {
|
|
71
71
|
top: e.value.style.layout.padding.top,
|
|
72
72
|
left: s,
|
|
73
73
|
right: l,
|
|
74
|
-
bottom:
|
|
74
|
+
bottom: h.value.height - e.value.style.layout.padding.bottom,
|
|
75
75
|
width: t,
|
|
76
|
-
height:
|
|
76
|
+
height: h.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
77
77
|
centerX: e.value.style.layout.padding.left + t / 2,
|
|
78
78
|
leftChart: {
|
|
79
79
|
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
@@ -84,16 +84,16 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
84
84
|
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
}),
|
|
88
|
-
const t =
|
|
87
|
+
}), re = p(() => f.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), _ = p(() => {
|
|
88
|
+
const t = ne(A.value / 5), s = [], l = [];
|
|
89
89
|
for (let a = 0; a <= 5; a += 1) {
|
|
90
|
-
const
|
|
90
|
+
const u = t * a, ee = t * (a - 5);
|
|
91
91
|
s.push({
|
|
92
|
-
value:
|
|
93
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width +
|
|
92
|
+
value: u,
|
|
93
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u / A.value * o.value.leftChart.width
|
|
94
94
|
}), l.push({
|
|
95
|
-
value: Math.abs(
|
|
96
|
-
x: o.value.left + o.value.width / 2 +
|
|
95
|
+
value: Math.abs(ee),
|
|
96
|
+
x: o.value.left + o.value.width / 2 + ee / A.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
return {
|
|
@@ -101,25 +101,25 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
101
101
|
left: l
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
|
-
function
|
|
104
|
+
function ne(t) {
|
|
105
105
|
if (t === 0) return 0;
|
|
106
106
|
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
107
107
|
let a;
|
|
108
108
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const A = p(() => Math.max(...f.dataset.flatMap((t) => t.slice(-2)))), $ = p(() => f.dataset.length), de = p(() => f.dataset.map((t) => ({
|
|
111
111
|
segment: t[0],
|
|
112
112
|
age: t[1],
|
|
113
113
|
left: {
|
|
114
114
|
value: t[2],
|
|
115
|
-
proportionToMax: t[2] /
|
|
115
|
+
proportionToMax: t[2] / A.value
|
|
116
116
|
},
|
|
117
117
|
right: {
|
|
118
118
|
value: t[3],
|
|
119
|
-
proportionToMax: t[3] /
|
|
119
|
+
proportionToMax: t[3] / A.value
|
|
120
120
|
}
|
|
121
|
-
}))),
|
|
122
|
-
const l = o.value.top + o.value.height /
|
|
121
|
+
}))), C = p(() => de.value.map((t, s) => {
|
|
122
|
+
const l = o.value.top + o.value.height / $.value * s, a = o.value.height / $.value - e.value.style.layout.bars.gap;
|
|
123
123
|
return {
|
|
124
124
|
segment: t.segment,
|
|
125
125
|
age: t.age,
|
|
@@ -140,16 +140,16 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
140
140
|
height: a
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
})),
|
|
144
|
-
function
|
|
145
|
-
|
|
143
|
+
})), D = v(null);
|
|
144
|
+
function ve(t, s) {
|
|
145
|
+
F.value = t, D.value = {
|
|
146
146
|
datapoint: s,
|
|
147
147
|
seriesIndex: t,
|
|
148
|
-
series:
|
|
148
|
+
series: C.value,
|
|
149
149
|
config: e.value
|
|
150
150
|
};
|
|
151
151
|
const l = e.value.style.tooltip.customFormat;
|
|
152
|
-
if (
|
|
152
|
+
if (ke(l) && _e(() => l({
|
|
153
153
|
seriesIndex: t,
|
|
154
154
|
datapoint: {
|
|
155
155
|
segment: s[0],
|
|
@@ -157,10 +157,10 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
157
157
|
left: s[2],
|
|
158
158
|
right: s[3]
|
|
159
159
|
},
|
|
160
|
-
series:
|
|
160
|
+
series: C.value,
|
|
161
161
|
config: e.value
|
|
162
162
|
})))
|
|
163
|
-
|
|
163
|
+
R.value = l({
|
|
164
164
|
seriesIndex: t,
|
|
165
165
|
datapoint: {
|
|
166
166
|
segment: s[0],
|
|
@@ -168,36 +168,56 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
168
168
|
left: s[2],
|
|
169
169
|
right: s[3]
|
|
170
170
|
},
|
|
171
|
-
series:
|
|
171
|
+
series: C.value,
|
|
172
172
|
config: e.value
|
|
173
173
|
});
|
|
174
174
|
else {
|
|
175
175
|
let a = "";
|
|
176
|
-
const
|
|
177
|
-
a += `<div><b>${
|
|
176
|
+
const u = C.value[t];
|
|
177
|
+
a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${w(
|
|
178
|
+
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
179
|
+
u.age,
|
|
180
|
+
k({ v: u.age }),
|
|
181
|
+
{ datapoint: s, seriesIndex: t }
|
|
182
|
+
)}</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_${b.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${w(
|
|
183
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
184
|
+
u.left.value,
|
|
185
|
+
k({ v: u.left.value }),
|
|
186
|
+
{ datapoint: s, seriesIndex: t }
|
|
187
|
+
)}</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_${b.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${w(
|
|
188
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
189
|
+
u.right.value,
|
|
190
|
+
k({ v: u.right.value }),
|
|
191
|
+
{ datapoint: s, seriesIndex: t }
|
|
192
|
+
)}</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>${w(
|
|
193
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
194
|
+
u.right.value + u.left.value,
|
|
195
|
+
k({ v: u.right.value + u.left.value }),
|
|
196
|
+
{ datapoint: s, seriesIndex: t }
|
|
197
|
+
)}</b></div></div>`, a += "</div>", R.value = `<div>${a}</div>`;
|
|
178
198
|
}
|
|
179
|
-
|
|
199
|
+
N.value = !0;
|
|
180
200
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
183
|
-
const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a =
|
|
190
|
-
|
|
201
|
+
function K() {
|
|
202
|
+
ce(() => {
|
|
203
|
+
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) => [
|
|
204
|
+
u[0],
|
|
205
|
+
u[1],
|
|
206
|
+
u[2],
|
|
207
|
+
u[3],
|
|
208
|
+
u[2] + u[3]
|
|
209
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = $e(l);
|
|
210
|
+
Ce({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
191
211
|
});
|
|
192
212
|
}
|
|
193
|
-
const
|
|
213
|
+
const M = p(() => {
|
|
194
214
|
const t = [
|
|
195
215
|
e.value.translations.year,
|
|
196
216
|
e.value.translations.age,
|
|
197
217
|
e.value.translations.female,
|
|
198
218
|
e.value.translations.male,
|
|
199
219
|
e.value.translations.total
|
|
200
|
-
], s =
|
|
220
|
+
], s = f.dataset.map((a) => [
|
|
201
221
|
a[0],
|
|
202
222
|
a[1],
|
|
203
223
|
a[2].toLocaleString(),
|
|
@@ -217,36 +237,36 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
217
237
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
218
238
|
};
|
|
219
239
|
return { head: t, body: s, config: l, colNames: t };
|
|
220
|
-
}),
|
|
221
|
-
function
|
|
222
|
-
|
|
240
|
+
}), S = v(!1);
|
|
241
|
+
function ye(t) {
|
|
242
|
+
S.value = t, U.value += 1;
|
|
223
243
|
}
|
|
224
|
-
function
|
|
244
|
+
function Q() {
|
|
225
245
|
x.value.showTable = !x.value.showTable;
|
|
226
246
|
}
|
|
227
|
-
function
|
|
247
|
+
function Z() {
|
|
228
248
|
x.value.showTooltip = !x.value.showTooltip;
|
|
229
249
|
}
|
|
230
|
-
return
|
|
231
|
-
generatePdf:
|
|
232
|
-
generateCsv:
|
|
233
|
-
generateImage:
|
|
234
|
-
toggleTable:
|
|
235
|
-
toggleTooltip:
|
|
236
|
-
}), (t, s) => (i(),
|
|
237
|
-
class:
|
|
250
|
+
return se({
|
|
251
|
+
generatePdf: q,
|
|
252
|
+
generateCsv: K,
|
|
253
|
+
generateImage: J,
|
|
254
|
+
toggleTable: Q,
|
|
255
|
+
toggleTooltip: Z
|
|
256
|
+
}), (t, s) => (i(), r("div", {
|
|
257
|
+
class: te(`vue-ui-age-pyramid ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
238
258
|
ref_key: "agePyramid",
|
|
239
|
-
ref:
|
|
259
|
+
ref: L,
|
|
240
260
|
id: `vue-ui-age-pyramid_${b.value}`,
|
|
241
|
-
style:
|
|
261
|
+
style: G(`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%" : ""}`)
|
|
242
262
|
}, [
|
|
243
|
-
e.value.style.title.text ? (i(),
|
|
263
|
+
e.value.style.title.text ? (i(), r("div", {
|
|
244
264
|
key: 0,
|
|
245
265
|
ref_key: "chartTitle",
|
|
246
|
-
ref:
|
|
247
|
-
style:
|
|
266
|
+
ref: V,
|
|
267
|
+
style: G(`width:100%;background:${e.value.style.backgroundColor}`)
|
|
248
268
|
}, [
|
|
249
|
-
|
|
269
|
+
B(Ae, {
|
|
250
270
|
config: {
|
|
251
271
|
title: {
|
|
252
272
|
cy: "pyramid-div-title",
|
|
@@ -258,15 +278,15 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
258
278
|
}
|
|
259
279
|
}
|
|
260
280
|
}, null, 8, ["config"])
|
|
261
|
-
], 4)) :
|
|
262
|
-
e.value.userOptions.show &&
|
|
281
|
+
], 4)) : y("", !0),
|
|
282
|
+
e.value.userOptions.show && I.value ? (i(), E(ze, {
|
|
263
283
|
ref_key: "details",
|
|
264
|
-
ref:
|
|
265
|
-
key: `user_options_${
|
|
284
|
+
ref: ue,
|
|
285
|
+
key: `user_options_${U.value}`,
|
|
266
286
|
backgroundColor: e.value.style.backgroundColor,
|
|
267
287
|
color: e.value.style.color,
|
|
268
|
-
isImaging:
|
|
269
|
-
isPrinting:
|
|
288
|
+
isImaging: d(H),
|
|
289
|
+
isPrinting: d(j),
|
|
270
290
|
uid: b.value,
|
|
271
291
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
272
292
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -274,190 +294,195 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
274
294
|
hasImg: e.value.userOptions.buttons.img,
|
|
275
295
|
hasTable: e.value.userOptions.buttons.table,
|
|
276
296
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
277
|
-
isFullscreen:
|
|
297
|
+
isFullscreen: S.value,
|
|
278
298
|
isTooltip: x.value.showTooltip,
|
|
279
299
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
280
|
-
chartElement:
|
|
281
|
-
onToggleFullscreen:
|
|
282
|
-
onGeneratePdf:
|
|
283
|
-
onGenerateCsv:
|
|
284
|
-
onGenerateImage:
|
|
285
|
-
onToggleTable:
|
|
286
|
-
onToggleTooltip:
|
|
287
|
-
},
|
|
300
|
+
chartElement: L.value,
|
|
301
|
+
onToggleFullscreen: ye,
|
|
302
|
+
onGeneratePdf: d(q),
|
|
303
|
+
onGenerateCsv: K,
|
|
304
|
+
onGenerateImage: d(J),
|
|
305
|
+
onToggleTable: Q,
|
|
306
|
+
onToggleTooltip: Z
|
|
307
|
+
}, fe({ _: 2 }, [
|
|
288
308
|
t.$slots.optionTooltip ? {
|
|
289
309
|
name: "optionTooltip",
|
|
290
|
-
fn:
|
|
310
|
+
fn: c(() => [
|
|
291
311
|
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
292
312
|
]),
|
|
293
313
|
key: "0"
|
|
294
314
|
} : void 0,
|
|
295
315
|
t.$slots.optionPdf ? {
|
|
296
316
|
name: "optionPdf",
|
|
297
|
-
fn:
|
|
317
|
+
fn: c(() => [
|
|
298
318
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
299
319
|
]),
|
|
300
320
|
key: "1"
|
|
301
321
|
} : void 0,
|
|
302
322
|
t.$slots.optionCsv ? {
|
|
303
323
|
name: "optionCsv",
|
|
304
|
-
fn:
|
|
324
|
+
fn: c(() => [
|
|
305
325
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
306
326
|
]),
|
|
307
327
|
key: "2"
|
|
308
328
|
} : void 0,
|
|
309
329
|
t.$slots.optionImg ? {
|
|
310
330
|
name: "optionImg",
|
|
311
|
-
fn:
|
|
331
|
+
fn: c(() => [
|
|
312
332
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
313
333
|
]),
|
|
314
334
|
key: "3"
|
|
315
335
|
} : void 0,
|
|
316
336
|
t.$slots.optionTable ? {
|
|
317
337
|
name: "optionTable",
|
|
318
|
-
fn:
|
|
338
|
+
fn: c(() => [
|
|
319
339
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
320
340
|
]),
|
|
321
341
|
key: "4"
|
|
322
342
|
} : void 0,
|
|
323
343
|
t.$slots.optionFullscreen ? {
|
|
324
344
|
name: "optionFullscreen",
|
|
325
|
-
fn:
|
|
326
|
-
g(t.$slots, "optionFullscreen",
|
|
345
|
+
fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
346
|
+
g(t.$slots, "optionFullscreen", O(P({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
327
347
|
]),
|
|
328
348
|
key: "5"
|
|
329
349
|
} : void 0
|
|
330
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
331
|
-
|
|
350
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
351
|
+
I.value ? (i(), r("svg", {
|
|
332
352
|
key: 2,
|
|
333
|
-
xmlns:
|
|
334
|
-
class:
|
|
335
|
-
viewBox: `0 0 ${
|
|
336
|
-
style:
|
|
353
|
+
xmlns: d(we),
|
|
354
|
+
class: te({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
355
|
+
viewBox: `0 0 ${h.value.width <= 0 ? 10 : h.value.width} ${h.value.height <= 0 ? 10 : h.value.height}`,
|
|
356
|
+
style: G(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)
|
|
337
357
|
}, [
|
|
338
|
-
|
|
339
|
-
|
|
358
|
+
n("defs", null, [
|
|
359
|
+
n("linearGradient", {
|
|
340
360
|
id: `age_pyramid_left_${b.value}`,
|
|
341
361
|
x1: "0%",
|
|
342
362
|
y1: "0%",
|
|
343
363
|
x2: "100%",
|
|
344
364
|
y2: "0%"
|
|
345
365
|
}, [
|
|
346
|
-
|
|
366
|
+
n("stop", {
|
|
347
367
|
offset: "0%",
|
|
348
368
|
"stop-color": e.value.style.layout.bars.left.color
|
|
349
|
-
}, null, 8,
|
|
350
|
-
|
|
369
|
+
}, null, 8, Ge),
|
|
370
|
+
n("stop", {
|
|
351
371
|
offset: "100%",
|
|
352
|
-
"stop-color": `${
|
|
353
|
-
}, null, 8,
|
|
354
|
-
], 8,
|
|
355
|
-
|
|
372
|
+
"stop-color": `${d(ae)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue)}${d(W)[100 - e.value.style.layout.bars.gradient.intensity]}`
|
|
373
|
+
}, null, 8, Be)
|
|
374
|
+
], 8, De),
|
|
375
|
+
n("linearGradient", {
|
|
356
376
|
id: `age_pyramid_right_${b.value}`,
|
|
357
377
|
x1: "0%",
|
|
358
378
|
y1: "0%",
|
|
359
379
|
x2: "100%",
|
|
360
380
|
y2: "0%"
|
|
361
381
|
}, [
|
|
362
|
-
|
|
382
|
+
n("stop", {
|
|
363
383
|
offset: "0%",
|
|
364
|
-
"stop-color": `${
|
|
365
|
-
}, null, 8,
|
|
366
|
-
|
|
384
|
+
"stop-color": `${d(ae)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue)}${d(W)[100 - e.value.style.layout.bars.gradient.intensity]}`
|
|
385
|
+
}, null, 8, We),
|
|
386
|
+
n("stop", {
|
|
367
387
|
offset: "100%",
|
|
368
388
|
"stop-color": e.value.style.layout.bars.right.color
|
|
369
|
-
}, null, 8,
|
|
370
|
-
], 8,
|
|
389
|
+
}, null, 8, Xe)
|
|
390
|
+
], 8, Ee)
|
|
371
391
|
]),
|
|
372
|
-
(i(!0),
|
|
373
|
-
|
|
392
|
+
(i(!0), r(T, null, z(C.value, (l, a) => (i(), r("g", null, [
|
|
393
|
+
n("rect", {
|
|
374
394
|
x: l.left.x,
|
|
375
395
|
y: l.left.y,
|
|
376
396
|
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
377
397
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
378
398
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
379
399
|
rx: e.value.style.layout.bars.borderRadius
|
|
380
|
-
}, null, 8,
|
|
381
|
-
|
|
400
|
+
}, null, 8, Ue),
|
|
401
|
+
n("rect", {
|
|
382
402
|
x: l.left.x,
|
|
383
403
|
y: l.left.y,
|
|
384
404
|
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
385
405
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
386
406
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${b.value})` : l.left.color,
|
|
387
407
|
rx: e.value.style.layout.bars.borderRadius
|
|
388
|
-
}, null, 8,
|
|
389
|
-
|
|
408
|
+
}, null, 8, Ve),
|
|
409
|
+
n("rect", {
|
|
390
410
|
x: l.right.x,
|
|
391
411
|
y: l.right.y,
|
|
392
412
|
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
393
413
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
394
414
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
395
415
|
rx: e.value.style.layout.bars.borderRadius
|
|
396
|
-
}, null, 8,
|
|
397
|
-
|
|
416
|
+
}, null, 8, Ye),
|
|
417
|
+
n("rect", {
|
|
398
418
|
x: l.right.x,
|
|
399
419
|
y: l.right.y,
|
|
400
420
|
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
401
421
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
402
422
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${b.value})` : l.right.color,
|
|
403
423
|
rx: e.value.style.layout.bars.borderRadius
|
|
404
|
-
}, null, 8,
|
|
424
|
+
}, null, 8, je)
|
|
405
425
|
]))), 256)),
|
|
406
|
-
|
|
407
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (i(),
|
|
408
|
-
|
|
426
|
+
n("g", null, [
|
|
427
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", He, [
|
|
428
|
+
n("text", {
|
|
409
429
|
x: o.value.left,
|
|
410
430
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
411
431
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
412
432
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
413
433
|
"text-anchor": "start",
|
|
414
434
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
415
|
-
}, m(e.value.translations.female), 9,
|
|
416
|
-
|
|
435
|
+
}, m(e.value.translations.female), 9, qe),
|
|
436
|
+
n("text", {
|
|
417
437
|
x: o.value.right,
|
|
418
438
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
419
439
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
420
440
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
421
441
|
"text-anchor": "end",
|
|
422
442
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
423
|
-
}, m(e.value.translations.male), 9,
|
|
424
|
-
])) :
|
|
425
|
-
e.value.style.layout.dataLabels.yAxis.show ? (i(),
|
|
426
|
-
(i(!0),
|
|
427
|
-
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(),
|
|
443
|
+
}, m(e.value.translations.male), 9, Je)
|
|
444
|
+
])) : y("", !0),
|
|
445
|
+
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", Ke, [
|
|
446
|
+
(i(!0), r(T, null, z(re.value, (l, a) => (i(), r(T, null, [
|
|
447
|
+
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
|
|
428
448
|
key: 0,
|
|
429
449
|
x: o.value.centerX,
|
|
430
|
-
y: o.value.top + o.value.height /
|
|
450
|
+
y: o.value.top + o.value.height / $.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
431
451
|
"text-anchor": "middle",
|
|
432
452
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
433
453
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
434
454
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
435
|
-
}, m(
|
|
455
|
+
}, m(d(w)(
|
|
456
|
+
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
457
|
+
l,
|
|
458
|
+
d(k)({ v: l }),
|
|
459
|
+
{ datapoint: l, seriesIndex: a }
|
|
460
|
+
)), 9, Qe)) : y("", !0)
|
|
436
461
|
], 64))), 256))
|
|
437
|
-
])) :
|
|
438
|
-
e.value.style.layout.dataLabels.xAxis.show ? (i(),
|
|
439
|
-
e.value.style.layout.grid.show ? (i(),
|
|
440
|
-
|
|
441
|
-
x1:
|
|
442
|
-
x2:
|
|
462
|
+
])) : y("", !0),
|
|
463
|
+
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", Ze, [
|
|
464
|
+
e.value.style.layout.grid.show ? (i(), r("g", et, [
|
|
465
|
+
n("line", {
|
|
466
|
+
x1: _.value.right[0].x,
|
|
467
|
+
x2: _.value.right.at(-1).x,
|
|
443
468
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
444
469
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
445
470
|
stroke: e.value.style.layout.grid.stroke,
|
|
446
471
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
447
472
|
"stroke-linecap": "round"
|
|
448
|
-
}, null, 8,
|
|
449
|
-
|
|
450
|
-
x1:
|
|
451
|
-
x2:
|
|
473
|
+
}, null, 8, tt),
|
|
474
|
+
n("line", {
|
|
475
|
+
x1: _.value.left[0].x,
|
|
476
|
+
x2: _.value.left.at(-1).x,
|
|
452
477
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
453
478
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
454
479
|
stroke: e.value.style.layout.grid.stroke,
|
|
455
480
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
456
481
|
"stroke-linecap": "round"
|
|
457
|
-
}, null, 8,
|
|
458
|
-
])) :
|
|
459
|
-
(i(!0),
|
|
460
|
-
e.value.style.layout.grid.show ? (i(),
|
|
482
|
+
}, null, 8, lt)
|
|
483
|
+
])) : y("", !0),
|
|
484
|
+
(i(!0), r(T, null, z(_.value.right, (l, a) => (i(), r("g", null, [
|
|
485
|
+
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
461
486
|
key: 0,
|
|
462
487
|
x1: l.x,
|
|
463
488
|
x2: l.x,
|
|
@@ -466,18 +491,25 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
466
491
|
stroke: e.value.style.layout.grid.stroke,
|
|
467
492
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
468
493
|
"stroke-linecap": "round"
|
|
469
|
-
}, null, 8,
|
|
470
|
-
|
|
494
|
+
}, null, 8, at)) : y("", !0),
|
|
495
|
+
n("text", {
|
|
471
496
|
x: l.x,
|
|
472
497
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
473
498
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
474
499
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
475
500
|
"text-anchor": "middle",
|
|
476
501
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
477
|
-
}, m(
|
|
502
|
+
}, m(d(w)(
|
|
503
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
504
|
+
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
505
|
+
d(k)({
|
|
506
|
+
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
507
|
+
}),
|
|
508
|
+
{ datapoint: l, seriesIndex: a }
|
|
509
|
+
)), 9, ot)
|
|
478
510
|
]))), 256)),
|
|
479
|
-
(i(!0),
|
|
480
|
-
e.value.style.layout.grid.show ? (i(),
|
|
511
|
+
(i(!0), r(T, null, z(_.value.left, (l, a) => (i(), r("g", null, [
|
|
512
|
+
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
481
513
|
key: 0,
|
|
482
514
|
x1: l.x,
|
|
483
515
|
x2: l.x,
|
|
@@ -486,45 +518,52 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
486
518
|
stroke: e.value.style.layout.grid.stroke,
|
|
487
519
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
488
520
|
"stroke-linecap": "round"
|
|
489
|
-
}, null, 8,
|
|
490
|
-
|
|
521
|
+
}, null, 8, st)) : y("", !0),
|
|
522
|
+
n("text", {
|
|
491
523
|
x: l.x,
|
|
492
524
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
493
525
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
494
526
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
495
527
|
"text-anchor": "middle",
|
|
496
528
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
497
|
-
}, m(
|
|
529
|
+
}, m(d(w)(
|
|
530
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
531
|
+
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
532
|
+
d(k)({
|
|
533
|
+
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
534
|
+
}),
|
|
535
|
+
{ datapoint: l, seriesIndex: a }
|
|
536
|
+
)), 9, it)
|
|
498
537
|
]))), 256)),
|
|
499
|
-
|
|
538
|
+
n("text", {
|
|
500
539
|
x: o.value.right,
|
|
501
|
-
y:
|
|
540
|
+
y: h.value.height,
|
|
502
541
|
"text-anchor": "end",
|
|
503
542
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
504
543
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
505
544
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
506
|
-
}, m(e.value.style.layout.dataLabels.xAxis.translation), 9,
|
|
507
|
-
])) :
|
|
545
|
+
}, m(e.value.style.layout.dataLabels.xAxis.translation), 9, ut)
|
|
546
|
+
])) : y("", !0)
|
|
508
547
|
]),
|
|
509
|
-
(i(!0),
|
|
510
|
-
|
|
548
|
+
(i(!0), r(T, null, z(X.dataset, (l, a) => (i(), r("g", null, [
|
|
549
|
+
n("rect", {
|
|
511
550
|
x: o.value.left,
|
|
512
|
-
y: o.value.top + o.value.height /
|
|
551
|
+
y: o.value.top + o.value.height / $.value * a - e.value.style.layout.bars.gap / 2,
|
|
513
552
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
514
|
-
height: o.value.height /
|
|
515
|
-
fill:
|
|
516
|
-
onMouseover: (
|
|
517
|
-
onMouseleave: s[0] || (s[0] = (
|
|
518
|
-
|
|
553
|
+
height: o.value.height / $.value <= 0 ? 1e-4 : o.value.height / $.value,
|
|
554
|
+
fill: F.value !== null && F.value === a ? `${e.value.style.highlighter.color}${d(W)[e.value.style.highlighter.opacity]}` : "transparent",
|
|
555
|
+
onMouseover: (u) => ve(a, l),
|
|
556
|
+
onMouseleave: s[0] || (s[0] = (u) => {
|
|
557
|
+
F.value = null, N.value = !1;
|
|
519
558
|
})
|
|
520
|
-
}, null, 40,
|
|
559
|
+
}, null, 40, rt)
|
|
521
560
|
]))), 256)),
|
|
522
|
-
g(t.$slots, "svg", { svg:
|
|
523
|
-
], 14,
|
|
524
|
-
t.$slots.watermark ? (i(),
|
|
525
|
-
g(t.$slots, "watermark",
|
|
526
|
-
])) :
|
|
527
|
-
|
|
561
|
+
g(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
562
|
+
], 14, Re)) : y("", !0),
|
|
563
|
+
t.$slots.watermark ? (i(), r("div", nt, [
|
|
564
|
+
g(t.$slots, "watermark", O(P({ isPrinting: d(j) || d(H) })), void 0, !0)
|
|
565
|
+
])) : y("", !0),
|
|
566
|
+
I.value ? y("", !0) : (i(), E(Me, {
|
|
528
567
|
key: 4,
|
|
529
568
|
config: {
|
|
530
569
|
type: "pyramid",
|
|
@@ -536,9 +575,9 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
536
575
|
}
|
|
537
576
|
}
|
|
538
577
|
}, null, 8, ["config"])),
|
|
539
|
-
g(t.$slots, "legend", { legend:
|
|
540
|
-
|
|
541
|
-
show: x.value.showTooltip &&
|
|
578
|
+
g(t.$slots, "legend", { legend: C.value }, void 0, !0),
|
|
579
|
+
B(Ie, {
|
|
580
|
+
show: x.value.showTooltip && N.value,
|
|
542
581
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
543
582
|
color: e.value.style.tooltip.color,
|
|
544
583
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -548,19 +587,19 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
548
587
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
549
588
|
position: e.value.style.tooltip.position,
|
|
550
589
|
offsetY: e.value.style.tooltip.offsetY,
|
|
551
|
-
parent:
|
|
552
|
-
content:
|
|
590
|
+
parent: L.value,
|
|
591
|
+
content: R.value,
|
|
553
592
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
554
593
|
}, {
|
|
555
|
-
"tooltip-before":
|
|
556
|
-
g(t.$slots, "tooltip-before",
|
|
594
|
+
"tooltip-before": c(() => [
|
|
595
|
+
g(t.$slots, "tooltip-before", O(P({ ...D.value })), void 0, !0)
|
|
557
596
|
]),
|
|
558
|
-
"tooltip-after":
|
|
559
|
-
g(t.$slots, "tooltip-after",
|
|
597
|
+
"tooltip-after": c(() => [
|
|
598
|
+
g(t.$slots, "tooltip-after", O(P({ ...D.value })), void 0, !0)
|
|
560
599
|
]),
|
|
561
600
|
_: 3
|
|
562
601
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
563
|
-
|
|
602
|
+
I.value ? (i(), E(Oe, {
|
|
564
603
|
key: 5,
|
|
565
604
|
hideDetails: "",
|
|
566
605
|
config: {
|
|
@@ -576,29 +615,29 @@ const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"],
|
|
|
576
615
|
}
|
|
577
616
|
}
|
|
578
617
|
}, {
|
|
579
|
-
content:
|
|
580
|
-
|
|
581
|
-
colNames:
|
|
582
|
-
head:
|
|
583
|
-
body:
|
|
584
|
-
config:
|
|
618
|
+
content: c(() => [
|
|
619
|
+
B(Fe, {
|
|
620
|
+
colNames: M.value.colNames,
|
|
621
|
+
head: M.value.head,
|
|
622
|
+
body: M.value.body,
|
|
623
|
+
config: M.value.config,
|
|
585
624
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
586
625
|
onClose: s[1] || (s[1] = (l) => x.value.showTable = !1)
|
|
587
626
|
}, {
|
|
588
|
-
th:
|
|
589
|
-
|
|
627
|
+
th: c(({ th: l }) => [
|
|
628
|
+
le(m(l), 1)
|
|
590
629
|
]),
|
|
591
|
-
td:
|
|
592
|
-
|
|
630
|
+
td: c(({ td: l }) => [
|
|
631
|
+
le(m(l), 1)
|
|
593
632
|
]),
|
|
594
633
|
_: 1
|
|
595
634
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
596
635
|
]),
|
|
597
636
|
_: 1
|
|
598
|
-
}, 8, ["config"])) :
|
|
599
|
-
], 14,
|
|
637
|
+
}, 8, ["config"])) : y("", !0)
|
|
638
|
+
], 14, Ne));
|
|
600
639
|
}
|
|
601
|
-
},
|
|
640
|
+
}, kt = /* @__PURE__ */ Pe(dt, [["__scopeId", "data-v-2386706e"]]);
|
|
602
641
|
export {
|
|
603
|
-
|
|
642
|
+
kt as default
|
|
604
643
|
};
|