vue-data-ui 3.6.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
- package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
- package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
- package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
- package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
- package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
- package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
- package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
- package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
- package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
- package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
- package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
- package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
- package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
- package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
- package/dist/vue-ui-rings-BowsO9I8.js +884 -0
- package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
- package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
- package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
- package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
- package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
- package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
- package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
- package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
- package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
- package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
- package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
- package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
- package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
- package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -0,0 +1,960 @@
|
|
|
1
|
+
import { defineAsyncComponent as $, computed as h, ref as d, toRefs as Ct, watch as j, shallowRef as De, onMounted as kt, onBeforeUnmount as Oe, watchEffect as At, createElementBlock as u, openBlock as i, unref as r, normalizeStyle as se, normalizeClass as ze, createBlock as R, createCommentVNode as f, renderSlot as v, createVNode as ie, withCtx as c, normalizeProps as C, guardReactiveProps as k, createSlots as Be, createElementVNode as y, Fragment as F, renderList as O, toDisplayString as T, resolveDynamicComponent as wt, mergeProps as Tt, createTextVNode as re, nextTick as _t } from "vue";
|
|
2
|
+
import { c as Lt, t as $t, o as Ie, g as Ft, M as b, X as St, s as ue, h as Ee, a as z, d as B, u as Dt, q as Ot, x as zt, R as Bt } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Re, u as It } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Et, a as ne } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as Rt, B as Pt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Mt } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as Nt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ut } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Ht } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Vt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import Wt from "./img-DUzJeMlr.js";
|
|
13
|
+
import jt from "./Title-DfFUb9hd.js";
|
|
14
|
+
import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Pe = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { grid: { stroke: "#5A5A5A" }, dataLabels: { sideTitles: { color: "#CCCCCC" }, xAxis: { color: "#CCCCCC" }, yAxis: { color: "#CCCCCC" } } }, highlighter: { color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Me = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { grid: { stroke: "#5D4037" }, dataLabels: { sideTitles: { color: "#424242" }, xAxis: { color: "#424242" }, yAxis: { color: "#424242" } }, bars: { borderRadius: 0, gap: 1, left: { color: "#F57C00" }, right: { color: "#D32F2F" }, gradient: { show: !1 } } }, highlighter: { color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ne = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { grid: { stroke: "#5D4037" }, dataLabels: { sideTitles: { color: "#BDBDBD" }, xAxis: { color: "#BDBDBD" }, yAxis: { color: "#BDBDBD" } }, bars: { borderRadius: 0, gap: 1, left: { color: "#F57C00" }, right: { color: "#D32F2F" }, gradient: { show: !1 } } }, highlighter: { color: "#FFF8E1" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Ue = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { grid: { stroke: "#5F6A5F" }, dataLabels: { sideTitles: { color: "#AACCAA" }, xAxis: { color: "#5F6A5F" }, yAxis: { color: "#5F6A5F" } }, bars: { borderRadius: 0, gap: 1, left: { color: "#668066" }, right: { color: "#66CC66" }, gradient: { show: !1 } } }, highlighter: { color: "#66CC66" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ge = { style: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { grid: { stroke: "#5F6A5F" }, dataLabels: { sideTitles: { color: "#8A9892" }, xAxis: { show: !1 }, yAxis: { show: !1 } }, bars: { borderRadius: 6, gap: 1, left: { color: "#DCB482" }, right: { color: "#B9B99D" }, gradient: { show: !0 } } }, highlighter: { color: "#8F837A" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, He = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { grid: { stroke: "#5F6A5F" }, dataLabels: { sideTitles: { color: "#61747E" }, xAxis: { color: "#61747E" }, yAxis: { color: "#61747E" } }, bars: { borderRadius: 0, gap: 1, left: { color: "#A1B5A3" }, right: { color: "#7DA9B5" }, gradient: { show: !0, intensity: 10 } } }, highlighter: { color: "#7DA9B5" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Ve = {
|
|
16
|
+
default: {},
|
|
17
|
+
dark: Pe,
|
|
18
|
+
celebration: Me,
|
|
19
|
+
celebrationNight: Ne,
|
|
20
|
+
hack: Ue,
|
|
21
|
+
zen: Ge,
|
|
22
|
+
concrete: He
|
|
23
|
+
}, Ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
celebration: Me,
|
|
26
|
+
celebrationNight: Ne,
|
|
27
|
+
concrete: He,
|
|
28
|
+
dark: Pe,
|
|
29
|
+
default: Ve,
|
|
30
|
+
hack: Ue,
|
|
31
|
+
zen: Ge
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), Yt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"], Kt = ["id"], Qt = ["stop-color"], Zt = ["stop-color"], el = ["id"], tl = ["stop-color"], ll = ["stop-color"], ol = ["x", "y", "width", "height", "fill", "rx"], al = ["x", "y", "width", "height", "fill", "rx"], sl = ["x", "y", "width", "height", "fill", "rx"], il = ["x", "y", "width", "height", "fill", "rx"], rl = { key: 0 }, ul = ["x", "y", "fill", "font-size", "font-weight"], nl = ["x", "y", "fill", "font-size", "font-weight"], dl = { key: 1 }, vl = ["x", "y", "font-size", "fill", "font-weight"], cl = { key: 2 }, yl = { key: 0 }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], xl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], ml = ["x", "y", "font-size", "fill", "font-weight"], Cl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], kl = {
|
|
33
|
+
key: 4,
|
|
34
|
+
class: "vue-data-ui-watermark"
|
|
35
|
+
}, Al = {
|
|
36
|
+
__name: "vue-ui-age-pyramid",
|
|
37
|
+
props: {
|
|
38
|
+
config: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default() {
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
dataset: {
|
|
45
|
+
type: Array,
|
|
46
|
+
default() {
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
setup(de, { expose: We }) {
|
|
52
|
+
const je = $(() => import("./Tooltip-WD0Ros6G.js")), Xe = $(() => import("./BaseIcon-CofSxalQ.js")), Ye = $(() => import("./vue-ui-accordion-DSdZUn2C.js")), qe = $(() => import("./DataTable-CHaOCmsE.js")), Je = $(() => import("./PenAndPaper-HCZQTkqi.js")), Ke = $(() => import("./UserOptions-B3I-s3Lw.js")), Qe = $(() => import("./PackageVersion-C82JCJOX.js")), Ze = $(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_age_pyramid: et } = Et(), { isThemeValid: tt, warnInvalidTheme: lt } = Ut(), p = de, ve = h(() => !!p.dataset && p.dataset.length), A = d(Lt()), X = d(!1), Y = d(""), U = d(null), ce = d(0), w = d(null), ye = d(null), he = d(null), fe = d(null), ge = d(0), be = d(0), q = d(null), P = d(null), J = d(null), e = d(ee()), { loading: pe, FINAL_DATASET: G, manualLoading: K } = Rt({
|
|
53
|
+
...Ct(p),
|
|
54
|
+
FINAL_CONFIG: e,
|
|
55
|
+
prepareConfig: ee,
|
|
56
|
+
skeletonDataset: [
|
|
57
|
+
["_", 9, 2, 2],
|
|
58
|
+
["_", 8, 3, 3],
|
|
59
|
+
["_", 7, 5, 5],
|
|
60
|
+
["_", 6, 8, 8],
|
|
61
|
+
["_", 5, 13, 13],
|
|
62
|
+
["_", 4, 21, 21],
|
|
63
|
+
["_", 3, 34, 34],
|
|
64
|
+
["_", 2, 55, 55],
|
|
65
|
+
["_", 1, 89, 89],
|
|
66
|
+
["_", 0, 144, 144]
|
|
67
|
+
],
|
|
68
|
+
skeletonConfig: $t({
|
|
69
|
+
defaultConfig: e.value,
|
|
70
|
+
userConfig: {
|
|
71
|
+
userOptions: { show: !1 },
|
|
72
|
+
table: { show: !1 },
|
|
73
|
+
translations: {
|
|
74
|
+
male: "",
|
|
75
|
+
female: ""
|
|
76
|
+
},
|
|
77
|
+
style: {
|
|
78
|
+
backgroundColor: "#99999930",
|
|
79
|
+
layout: {
|
|
80
|
+
bars: {
|
|
81
|
+
left: { color: "#CACACA" },
|
|
82
|
+
right: { color: "#999999" }
|
|
83
|
+
},
|
|
84
|
+
dataLabels: {
|
|
85
|
+
xAxis: {
|
|
86
|
+
fontSize: 0,
|
|
87
|
+
scale: 1e3,
|
|
88
|
+
translation: ""
|
|
89
|
+
},
|
|
90
|
+
yAxis: {
|
|
91
|
+
show: !1
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
grid: {
|
|
95
|
+
stroke: "#6A6A6A"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: xe, keepUserOptionState: me } = Gt({ config: e.value }), { svgRef: Z } = Ht({ config: e.value.style.title });
|
|
102
|
+
function ee() {
|
|
103
|
+
const t = ne({
|
|
104
|
+
userConfig: p.config,
|
|
105
|
+
defaultConfig: et
|
|
106
|
+
}), a = t.theme;
|
|
107
|
+
if (!a) return t;
|
|
108
|
+
if (!tt.value(t))
|
|
109
|
+
return lt(t), t;
|
|
110
|
+
const l = ne({
|
|
111
|
+
userConfig: Ve[a] || p.config,
|
|
112
|
+
defaultConfig: t
|
|
113
|
+
});
|
|
114
|
+
return ne({
|
|
115
|
+
userConfig: p.config,
|
|
116
|
+
defaultConfig: l
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
j(() => p.config, (t) => {
|
|
120
|
+
pe.value || (e.value = ee()), Q.value = !e.value.userOptions.showOnChartHover, Ce(), ge.value += 1, be.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
|
|
121
|
+
}, { deep: !0 }), j(() => p.dataset, (t) => {
|
|
122
|
+
Array.isArray(t) && t.length > 0 && (K.value = !1);
|
|
123
|
+
}, { deep: !0 });
|
|
124
|
+
const _ = De(null), I = De(null);
|
|
125
|
+
kt(() => {
|
|
126
|
+
Ce();
|
|
127
|
+
});
|
|
128
|
+
const ot = h(() => !!e.value.debug);
|
|
129
|
+
function Ce() {
|
|
130
|
+
if (Ie(p.dataset) && (Ft({
|
|
131
|
+
componentName: "VueUiAgePyramid",
|
|
132
|
+
type: "dataset",
|
|
133
|
+
debug: ot.value
|
|
134
|
+
}), K.value = !0), Ie(p.dataset) || (K.value = e.value.loading), e.value.responsive) {
|
|
135
|
+
const t = Re(() => {
|
|
136
|
+
const { width: a, height: l } = It({
|
|
137
|
+
chart: w.value,
|
|
138
|
+
title: e.value.style.title.text ? ye.value : null,
|
|
139
|
+
source: he.value,
|
|
140
|
+
noTitle: fe.value
|
|
141
|
+
});
|
|
142
|
+
requestAnimationFrame(() => {
|
|
143
|
+
g.value.width = a, g.value.height = l;
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
_.value && (I.value && _.value.unobserve(I.value), _.value.disconnect()), _.value = new ResizeObserver(t), I.value = w.value.parentNode, _.value.observe(I.value);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
Oe(() => {
|
|
150
|
+
_.value && (I.value && _.value.unobserve(I.value), _.value.disconnect());
|
|
151
|
+
});
|
|
152
|
+
const { isPrinting: ke, isImaging: Ae, generatePdf: we, generateImage: Te } = Mt({
|
|
153
|
+
elementId: `vue-ui-age-pyramid_${A.value}`,
|
|
154
|
+
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
155
|
+
options: e.value.userOptions.print
|
|
156
|
+
}), at = h(() => e.value.userOptions.show && !e.value.style.title.text), x = d({
|
|
157
|
+
showTable: e.value.table.show,
|
|
158
|
+
showTooltip: e.value.style.tooltip.show
|
|
159
|
+
});
|
|
160
|
+
j(e, () => {
|
|
161
|
+
x.value = {
|
|
162
|
+
showTable: e.value.table.show,
|
|
163
|
+
showTooltip: e.value.style.tooltip.show
|
|
164
|
+
};
|
|
165
|
+
}, { immediate: !0 });
|
|
166
|
+
const g = d({
|
|
167
|
+
height: e.value.style.height,
|
|
168
|
+
width: e.value.style.width
|
|
169
|
+
}), st = h(() => g.value.width), it = h(() => g.value.height), H = d(0), rt = Re((t) => {
|
|
170
|
+
H.value = t;
|
|
171
|
+
}, 100);
|
|
172
|
+
At((t) => {
|
|
173
|
+
const a = q.value;
|
|
174
|
+
if (!a) return;
|
|
175
|
+
const l = new ResizeObserver((o) => {
|
|
176
|
+
rt(o[0].contentRect.height);
|
|
177
|
+
});
|
|
178
|
+
l.observe(a), t(() => l.disconnect());
|
|
179
|
+
}), Oe(() => {
|
|
180
|
+
H.value = 0;
|
|
181
|
+
});
|
|
182
|
+
const s = h(() => {
|
|
183
|
+
const t = g.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, a = e.value.style.layout.padding.left, l = g.value.width - e.value.style.layout.padding.right;
|
|
184
|
+
return {
|
|
185
|
+
top: e.value.style.layout.padding.top + e.value.style.layout.dataLabels.sideTitles.fontSize + e.value.style.layout.dataLabels.sideTitles.offsetY + 12,
|
|
186
|
+
left: a,
|
|
187
|
+
right: l,
|
|
188
|
+
bottom: g.value.height - e.value.style.layout.padding.bottom - H.value,
|
|
189
|
+
width: t,
|
|
190
|
+
height: g.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - H.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
|
|
191
|
+
centerX: e.value.style.layout.padding.left + t / 2,
|
|
192
|
+
leftChart: {
|
|
193
|
+
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
194
|
+
right: a + t / 2 - e.value.style.layout.centerSlit.width
|
|
195
|
+
},
|
|
196
|
+
rightChart: {
|
|
197
|
+
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
198
|
+
left: a + t / 2 + e.value.style.layout.centerSlit.width
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}), ut = h(() => G.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), L = h(() => {
|
|
202
|
+
const t = nt(M.value / 5), a = [], l = [];
|
|
203
|
+
for (let o = 0; o <= 5; o += 1) {
|
|
204
|
+
const n = t * o, m = t * (o - 5);
|
|
205
|
+
a.push({
|
|
206
|
+
value: n,
|
|
207
|
+
x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + n / M.value * s.value.leftChart.width
|
|
208
|
+
}), l.push({
|
|
209
|
+
value: Math.abs(m),
|
|
210
|
+
x: s.value.left + s.value.width / 2 + m / M.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
right: a,
|
|
215
|
+
left: l
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
function nt(t) {
|
|
219
|
+
if (t === 0) return 0;
|
|
220
|
+
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
221
|
+
let o;
|
|
222
|
+
return t < 0, o = Math.round(t / l) * l, o;
|
|
223
|
+
}
|
|
224
|
+
const M = h(() => Math.max(...G.value.flatMap((t) => t.slice(-2).map((a) => b(a))))), E = h(() => G.value.length), dt = h(() => G.value.map((t) => ({
|
|
225
|
+
segment: t[0],
|
|
226
|
+
age: t[1],
|
|
227
|
+
left: {
|
|
228
|
+
value: t[2],
|
|
229
|
+
proportionToMax: t[2] / M.value
|
|
230
|
+
},
|
|
231
|
+
right: {
|
|
232
|
+
value: t[3],
|
|
233
|
+
proportionToMax: t[3] / M.value
|
|
234
|
+
}
|
|
235
|
+
}))), S = h(() => dt.value.map((t, a) => {
|
|
236
|
+
const l = s.value.top + s.value.height / E.value * a, o = s.value.height / E.value - e.value.style.layout.bars.gap;
|
|
237
|
+
return {
|
|
238
|
+
segment: t.segment,
|
|
239
|
+
age: t.age,
|
|
240
|
+
left: {
|
|
241
|
+
...t.left,
|
|
242
|
+
y: l,
|
|
243
|
+
color: e.value.style.layout.bars.left.color,
|
|
244
|
+
x: s.value.leftChart.right - t.left.proportionToMax * s.value.leftChart.width,
|
|
245
|
+
width: b(t.left.proportionToMax * s.value.leftChart.width),
|
|
246
|
+
height: o
|
|
247
|
+
},
|
|
248
|
+
right: {
|
|
249
|
+
...t.right,
|
|
250
|
+
y: l,
|
|
251
|
+
color: e.value.style.layout.bars.right.color,
|
|
252
|
+
x: s.value.rightChart.left,
|
|
253
|
+
width: b(t.right.proportionToMax * s.value.rightChart.width),
|
|
254
|
+
height: o
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
})), te = d(null);
|
|
258
|
+
function le(t) {
|
|
259
|
+
const [a, l, o, n] = t;
|
|
260
|
+
return { segment: a, index: l, left: o, right: n };
|
|
261
|
+
}
|
|
262
|
+
function vt(t, a) {
|
|
263
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: le(a), seriesIndex: t });
|
|
264
|
+
}
|
|
265
|
+
function ct(t, a) {
|
|
266
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: le(a), seriesIndex: t }), U.value = null, X.value = !1;
|
|
267
|
+
}
|
|
268
|
+
function yt(t, a) {
|
|
269
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: le(a), seriesIndex: t }), U.value = t, te.value = {
|
|
270
|
+
datapoint: a,
|
|
271
|
+
seriesIndex: t,
|
|
272
|
+
series: S.value,
|
|
273
|
+
config: e.value
|
|
274
|
+
};
|
|
275
|
+
const l = e.value.style.tooltip.customFormat;
|
|
276
|
+
if (zt(l) && Bt(() => l({
|
|
277
|
+
seriesIndex: t,
|
|
278
|
+
datapoint: {
|
|
279
|
+
segment: a[0],
|
|
280
|
+
index: a[1],
|
|
281
|
+
left: a[2],
|
|
282
|
+
right: a[3]
|
|
283
|
+
},
|
|
284
|
+
series: S.value,
|
|
285
|
+
config: e.value
|
|
286
|
+
})))
|
|
287
|
+
Y.value = l({
|
|
288
|
+
seriesIndex: t,
|
|
289
|
+
datapoint: {
|
|
290
|
+
segment: a[0],
|
|
291
|
+
index: a[1],
|
|
292
|
+
left: a[2],
|
|
293
|
+
right: a[3]
|
|
294
|
+
},
|
|
295
|
+
series: S.value,
|
|
296
|
+
config: e.value
|
|
297
|
+
});
|
|
298
|
+
else {
|
|
299
|
+
let o = "";
|
|
300
|
+
const n = S.value[t];
|
|
301
|
+
o += `<div><b>${n.segment}</b></div>`, o += `<div>${e.value.translations.age}: ${z(
|
|
302
|
+
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
303
|
+
b(n.age),
|
|
304
|
+
B({ v: b(n.age) }),
|
|
305
|
+
{ datapoint: a, seriesIndex: t }
|
|
306
|
+
)}</div>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, o += '<div style="display:flex; flex-direction:row;gap:12px">', o += `<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_${A.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${z(
|
|
307
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
308
|
+
b(n.left.value),
|
|
309
|
+
B({ v: b(n.left.value) }),
|
|
310
|
+
{ datapoint: a, seriesIndex: t }
|
|
311
|
+
)}</b></div></div>`, o += `<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_${A.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${z(
|
|
312
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
313
|
+
b(n.right.value),
|
|
314
|
+
B({ v: b(n.right.value) }),
|
|
315
|
+
{ datapoint: a, seriesIndex: t }
|
|
316
|
+
)}</b></div></div>`, o += "</div>", o += `<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>${z(
|
|
317
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
318
|
+
b(n.right.value) + b(n.left.value),
|
|
319
|
+
B({ v: b(n.right.value) + b(n.left.value) }),
|
|
320
|
+
{ datapoint: a, seriesIndex: t }
|
|
321
|
+
)}</b></div></div>`, o += "</div>", Y.value = `<div>${o}</div>`;
|
|
322
|
+
}
|
|
323
|
+
X.value = !0;
|
|
324
|
+
}
|
|
325
|
+
function oe(t = null) {
|
|
326
|
+
_t(() => {
|
|
327
|
+
const a = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = p.dataset.map((m) => [
|
|
328
|
+
m[0],
|
|
329
|
+
m[1],
|
|
330
|
+
m[2],
|
|
331
|
+
m[3],
|
|
332
|
+
m[2] ?? 0 + m[3] ?? 0
|
|
333
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), n = Dt(o);
|
|
334
|
+
t ? t(n) : Ot({ csvContent: n, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
const V = h(() => {
|
|
338
|
+
const t = [
|
|
339
|
+
e.value.translations.year,
|
|
340
|
+
e.value.translations.age,
|
|
341
|
+
e.value.translations.female,
|
|
342
|
+
e.value.translations.male,
|
|
343
|
+
e.value.translations.total
|
|
344
|
+
], a = p.dataset.map((o) => [
|
|
345
|
+
o[0],
|
|
346
|
+
o[1],
|
|
347
|
+
o[2] == null ? "" : o[2].toLocaleString(),
|
|
348
|
+
o[3] == null ? "" : o[3].toLocaleString(),
|
|
349
|
+
(o[2] ?? 0 + o[3] ?? 0).toLocaleString()
|
|
350
|
+
]), l = {
|
|
351
|
+
th: {
|
|
352
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
353
|
+
color: e.value.table.th.color,
|
|
354
|
+
outline: e.value.table.th.outline
|
|
355
|
+
},
|
|
356
|
+
td: {
|
|
357
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
358
|
+
color: e.value.table.td.color,
|
|
359
|
+
outline: e.value.table.td.outline
|
|
360
|
+
},
|
|
361
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
362
|
+
};
|
|
363
|
+
return { head: t, body: a, config: l, colNames: t };
|
|
364
|
+
}), D = d(!1);
|
|
365
|
+
function _e(t) {
|
|
366
|
+
D.value = t, ce.value += 1;
|
|
367
|
+
}
|
|
368
|
+
function Le() {
|
|
369
|
+
x.value.showTable = !x.value.showTable;
|
|
370
|
+
}
|
|
371
|
+
function $e() {
|
|
372
|
+
x.value.showTooltip = !x.value.showTooltip;
|
|
373
|
+
}
|
|
374
|
+
const W = d(!1);
|
|
375
|
+
function ae() {
|
|
376
|
+
W.value = !W.value;
|
|
377
|
+
}
|
|
378
|
+
async function ht({ scale: t = 2 } = {}) {
|
|
379
|
+
if (!w.value) return;
|
|
380
|
+
const { width: a, height: l } = w.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: m } = await Wt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
381
|
+
return {
|
|
382
|
+
imageUri: n,
|
|
383
|
+
base64: m,
|
|
384
|
+
title: e.value.style.title.text,
|
|
385
|
+
width: a,
|
|
386
|
+
height: l,
|
|
387
|
+
aspectRatio: o
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
const ft = d([]), gt = d({ start: 0, end: S.value.length });
|
|
391
|
+
Vt({
|
|
392
|
+
timeLabelsEls: q,
|
|
393
|
+
timeLabels: ft,
|
|
394
|
+
slicer: gt,
|
|
395
|
+
configRef: e,
|
|
396
|
+
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
397
|
+
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
398
|
+
isAutoSize: !1,
|
|
399
|
+
width: st,
|
|
400
|
+
height: it,
|
|
401
|
+
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
402
|
+
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
|
|
403
|
+
});
|
|
404
|
+
const N = h(() => {
|
|
405
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = x.value.showTable;
|
|
406
|
+
return {
|
|
407
|
+
component: t ? Ze : Ye,
|
|
408
|
+
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
409
|
+
props: t ? {
|
|
410
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
411
|
+
color: e.value.table.th.color,
|
|
412
|
+
headerColor: e.value.table.th.color,
|
|
413
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
414
|
+
isFullscreen: D.value,
|
|
415
|
+
fullscreenParent: w.value,
|
|
416
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
417
|
+
} : {
|
|
418
|
+
hideDetails: !0,
|
|
419
|
+
config: {
|
|
420
|
+
open: a,
|
|
421
|
+
maxHeight: 1e4,
|
|
422
|
+
body: {
|
|
423
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
424
|
+
color: e.value.style.color
|
|
425
|
+
},
|
|
426
|
+
head: {
|
|
427
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
428
|
+
color: e.value.style.color
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
});
|
|
434
|
+
j(() => x.value.showTable, (t) => {
|
|
435
|
+
e.value.table.show || (t && e.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
|
|
436
|
+
});
|
|
437
|
+
function Fe() {
|
|
438
|
+
x.value.showTable = !1, J.value && J.value.setTableIconState(!1);
|
|
439
|
+
}
|
|
440
|
+
const bt = h(() => e.value.style.backgroundColor), pt = h(() => e.value.style.title), { exportSvg: xt, getSvg: mt } = Nt({
|
|
441
|
+
svg: Z,
|
|
442
|
+
title: pt,
|
|
443
|
+
backgroundColor: bt
|
|
444
|
+
});
|
|
445
|
+
async function Se({ isCb: t }) {
|
|
446
|
+
if (t) {
|
|
447
|
+
const { blob: a, url: l, text: o, dataUrl: n } = await mt();
|
|
448
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: n });
|
|
449
|
+
} else
|
|
450
|
+
xt();
|
|
451
|
+
}
|
|
452
|
+
return We({
|
|
453
|
+
getImage: ht,
|
|
454
|
+
generatePdf: we,
|
|
455
|
+
generateCsv: oe,
|
|
456
|
+
generateImage: Te,
|
|
457
|
+
generateSvg: Se,
|
|
458
|
+
toggleTable: Le,
|
|
459
|
+
toggleTooltip: $e,
|
|
460
|
+
toggleAnnotator: ae,
|
|
461
|
+
toggleFullscreen: _e
|
|
462
|
+
}), (t, a) => (i(), u("div", {
|
|
463
|
+
class: ze(`vue-data-ui-component vue-ui-age-pyramid ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
464
|
+
ref_key: "agePyramid",
|
|
465
|
+
ref: w,
|
|
466
|
+
id: `vue-ui-age-pyramid_${A.value}`,
|
|
467
|
+
style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
468
|
+
onMouseenter: a[1] || (a[1] = () => r(xe)(!0)),
|
|
469
|
+
onMouseleave: a[2] || (a[2] = () => r(xe)(!1))
|
|
470
|
+
}, [
|
|
471
|
+
e.value.userOptions.buttons.annotator ? (i(), R(r(Je), {
|
|
472
|
+
key: 0,
|
|
473
|
+
svgRef: r(Z),
|
|
474
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
475
|
+
color: e.value.style.color,
|
|
476
|
+
active: W.value,
|
|
477
|
+
onClose: ae
|
|
478
|
+
}, {
|
|
479
|
+
"annotator-action-close": c(() => [
|
|
480
|
+
v(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
481
|
+
]),
|
|
482
|
+
"annotator-action-color": c(({ color: l }) => [
|
|
483
|
+
v(t.$slots, "annotator-action-color", C(k({ color: l })), void 0, !0)
|
|
484
|
+
]),
|
|
485
|
+
"annotator-action-draw": c(({ mode: l }) => [
|
|
486
|
+
v(t.$slots, "annotator-action-draw", C(k({ mode: l })), void 0, !0)
|
|
487
|
+
]),
|
|
488
|
+
"annotator-action-undo": c(({ disabled: l }) => [
|
|
489
|
+
v(t.$slots, "annotator-action-undo", C(k({ disabled: l })), void 0, !0)
|
|
490
|
+
]),
|
|
491
|
+
"annotator-action-redo": c(({ disabled: l }) => [
|
|
492
|
+
v(t.$slots, "annotator-action-redo", C(k({ disabled: l })), void 0, !0)
|
|
493
|
+
]),
|
|
494
|
+
"annotator-action-delete": c(({ disabled: l }) => [
|
|
495
|
+
v(t.$slots, "annotator-action-delete", C(k({ disabled: l })), void 0, !0)
|
|
496
|
+
]),
|
|
497
|
+
_: 3
|
|
498
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
499
|
+
at.value ? (i(), u("div", {
|
|
500
|
+
key: 1,
|
|
501
|
+
ref_key: "noTitle",
|
|
502
|
+
ref: fe,
|
|
503
|
+
class: "vue-data-ui-no-title-space",
|
|
504
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
505
|
+
}, null, 512)) : f("", !0),
|
|
506
|
+
e.value.style.title.text ? (i(), u("div", {
|
|
507
|
+
key: 2,
|
|
508
|
+
ref_key: "chartTitle",
|
|
509
|
+
ref: ye,
|
|
510
|
+
style: "width:100%;background:transparent"
|
|
511
|
+
}, [
|
|
512
|
+
(i(), R(jt, {
|
|
513
|
+
key: `title_${ge.value}`,
|
|
514
|
+
config: {
|
|
515
|
+
title: {
|
|
516
|
+
cy: "pyramid-div-title",
|
|
517
|
+
...e.value.style.title
|
|
518
|
+
},
|
|
519
|
+
subtitle: {
|
|
520
|
+
cy: "pyramid-div-subtitle",
|
|
521
|
+
...e.value.style.title.subtitle
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}, null, 8, ["config"]))
|
|
525
|
+
], 512)) : f("", !0),
|
|
526
|
+
e.value.userOptions.show && ve.value && (r(me) || r(Q)) ? (i(), R(r(Ke), {
|
|
527
|
+
ref_key: "userOptionsRef",
|
|
528
|
+
ref: J,
|
|
529
|
+
key: `user_options_${ce.value}`,
|
|
530
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
531
|
+
color: e.value.style.color,
|
|
532
|
+
isImaging: r(Ae),
|
|
533
|
+
isPrinting: r(ke),
|
|
534
|
+
uid: A.value,
|
|
535
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
536
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
537
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
538
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
539
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
540
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
541
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
542
|
+
isFullscreen: D.value,
|
|
543
|
+
isTooltip: x.value.showTooltip,
|
|
544
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
545
|
+
chartElement: w.value,
|
|
546
|
+
position: e.value.userOptions.position,
|
|
547
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
548
|
+
isAnnotation: W.value,
|
|
549
|
+
callbacks: e.value.userOptions.callbacks,
|
|
550
|
+
printScale: e.value.userOptions.print.scale,
|
|
551
|
+
tableDialog: e.value.table.useDialog,
|
|
552
|
+
onToggleFullscreen: _e,
|
|
553
|
+
onGeneratePdf: r(we),
|
|
554
|
+
onGenerateCsv: oe,
|
|
555
|
+
onGenerateImage: r(Te),
|
|
556
|
+
onGenerateSvg: Se,
|
|
557
|
+
onToggleTable: Le,
|
|
558
|
+
onToggleTooltip: $e,
|
|
559
|
+
onToggleAnnotator: ae,
|
|
560
|
+
style: se({
|
|
561
|
+
visibility: r(me) ? r(Q) ? "visible" : "hidden" : "visible"
|
|
562
|
+
})
|
|
563
|
+
}, Be({ _: 2 }, [
|
|
564
|
+
t.$slots.menuIcon ? {
|
|
565
|
+
name: "menuIcon",
|
|
566
|
+
fn: c(({ isOpen: l, color: o }) => [
|
|
567
|
+
v(t.$slots, "menuIcon", C(k({ isOpen: l, color: o })), void 0, !0)
|
|
568
|
+
]),
|
|
569
|
+
key: "0"
|
|
570
|
+
} : void 0,
|
|
571
|
+
t.$slots.optionTooltip ? {
|
|
572
|
+
name: "optionTooltip",
|
|
573
|
+
fn: c(() => [
|
|
574
|
+
v(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
575
|
+
]),
|
|
576
|
+
key: "1"
|
|
577
|
+
} : void 0,
|
|
578
|
+
t.$slots.optionPdf ? {
|
|
579
|
+
name: "optionPdf",
|
|
580
|
+
fn: c(() => [
|
|
581
|
+
v(t.$slots, "optionPdf", {}, void 0, !0)
|
|
582
|
+
]),
|
|
583
|
+
key: "2"
|
|
584
|
+
} : void 0,
|
|
585
|
+
t.$slots.optionCsv ? {
|
|
586
|
+
name: "optionCsv",
|
|
587
|
+
fn: c(() => [
|
|
588
|
+
v(t.$slots, "optionCsv", {}, void 0, !0)
|
|
589
|
+
]),
|
|
590
|
+
key: "3"
|
|
591
|
+
} : void 0,
|
|
592
|
+
t.$slots.optionImg ? {
|
|
593
|
+
name: "optionImg",
|
|
594
|
+
fn: c(() => [
|
|
595
|
+
v(t.$slots, "optionImg", {}, void 0, !0)
|
|
596
|
+
]),
|
|
597
|
+
key: "4"
|
|
598
|
+
} : void 0,
|
|
599
|
+
t.$slots.optionSvg ? {
|
|
600
|
+
name: "optionSvg",
|
|
601
|
+
fn: c(() => [
|
|
602
|
+
v(t.$slots, "optionSvg", {}, void 0, !0)
|
|
603
|
+
]),
|
|
604
|
+
key: "5"
|
|
605
|
+
} : void 0,
|
|
606
|
+
t.$slots.optionTable ? {
|
|
607
|
+
name: "optionTable",
|
|
608
|
+
fn: c(() => [
|
|
609
|
+
v(t.$slots, "optionTable", {}, void 0, !0)
|
|
610
|
+
]),
|
|
611
|
+
key: "6"
|
|
612
|
+
} : void 0,
|
|
613
|
+
t.$slots.optionFullscreen ? {
|
|
614
|
+
name: "optionFullscreen",
|
|
615
|
+
fn: c(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
616
|
+
v(t.$slots, "optionFullscreen", C(k({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
617
|
+
]),
|
|
618
|
+
key: "7"
|
|
619
|
+
} : void 0,
|
|
620
|
+
t.$slots.optionAnnotator ? {
|
|
621
|
+
name: "optionAnnotator",
|
|
622
|
+
fn: c(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
623
|
+
v(t.$slots, "optionAnnotator", C(k({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
624
|
+
]),
|
|
625
|
+
key: "8"
|
|
626
|
+
} : void 0
|
|
627
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
628
|
+
(i(), u("svg", {
|
|
629
|
+
ref_key: "svgRef",
|
|
630
|
+
ref: Z,
|
|
631
|
+
xmlns: r(St),
|
|
632
|
+
class: ze({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
633
|
+
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${g.value.height <= 0 ? 10 : g.value.height}`,
|
|
634
|
+
style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
635
|
+
}, [
|
|
636
|
+
ie(r(Qe)),
|
|
637
|
+
t.$slots["chart-background"] ? (i(), u("foreignObject", {
|
|
638
|
+
key: 0,
|
|
639
|
+
x: s.value.left,
|
|
640
|
+
y: s.value.top,
|
|
641
|
+
width: Math.max(0.1, s.value.width),
|
|
642
|
+
height: Math.max(0.1, s.value.height),
|
|
643
|
+
style: {
|
|
644
|
+
pointerEvents: "none"
|
|
645
|
+
}
|
|
646
|
+
}, [
|
|
647
|
+
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
648
|
+
], 8, Jt)) : f("", !0),
|
|
649
|
+
y("defs", null, [
|
|
650
|
+
y("linearGradient", {
|
|
651
|
+
id: `age_pyramid_left_${A.value}`,
|
|
652
|
+
x1: "0%",
|
|
653
|
+
y1: "0%",
|
|
654
|
+
x2: "100%",
|
|
655
|
+
y2: "0%"
|
|
656
|
+
}, [
|
|
657
|
+
y("stop", {
|
|
658
|
+
offset: "0%",
|
|
659
|
+
"stop-color": e.value.style.layout.bars.left.color
|
|
660
|
+
}, null, 8, Qt),
|
|
661
|
+
y("stop", {
|
|
662
|
+
offset: "100%",
|
|
663
|
+
"stop-color": r(ue)(r(Ee)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
664
|
+
}, null, 8, Zt)
|
|
665
|
+
], 8, Kt),
|
|
666
|
+
y("linearGradient", {
|
|
667
|
+
id: `age_pyramid_right_${A.value}`,
|
|
668
|
+
x1: "0%",
|
|
669
|
+
y1: "0%",
|
|
670
|
+
x2: "100%",
|
|
671
|
+
y2: "0%"
|
|
672
|
+
}, [
|
|
673
|
+
y("stop", {
|
|
674
|
+
offset: "0%",
|
|
675
|
+
"stop-color": r(ue)(r(Ee)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
676
|
+
}, null, 8, tl),
|
|
677
|
+
y("stop", {
|
|
678
|
+
offset: "100%",
|
|
679
|
+
"stop-color": e.value.style.layout.bars.right.color
|
|
680
|
+
}, null, 8, ll)
|
|
681
|
+
], 8, el)
|
|
682
|
+
]),
|
|
683
|
+
(i(!0), u(F, null, O(S.value, (l, o) => (i(), u("g", null, [
|
|
684
|
+
y("rect", {
|
|
685
|
+
x: l.left.x,
|
|
686
|
+
y: l.left.y,
|
|
687
|
+
width: r(b)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
688
|
+
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
689
|
+
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
690
|
+
rx: e.value.style.layout.bars.borderRadius
|
|
691
|
+
}, null, 8, ol),
|
|
692
|
+
y("rect", {
|
|
693
|
+
x: l.left.x,
|
|
694
|
+
y: l.left.y,
|
|
695
|
+
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
696
|
+
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
697
|
+
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${A.value})` : l.left.color,
|
|
698
|
+
rx: e.value.style.layout.bars.borderRadius
|
|
699
|
+
}, null, 8, al),
|
|
700
|
+
y("rect", {
|
|
701
|
+
x: l.right.x,
|
|
702
|
+
y: l.right.y,
|
|
703
|
+
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
704
|
+
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
705
|
+
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
706
|
+
rx: e.value.style.layout.bars.borderRadius
|
|
707
|
+
}, null, 8, sl),
|
|
708
|
+
y("rect", {
|
|
709
|
+
x: l.right.x,
|
|
710
|
+
y: l.right.y,
|
|
711
|
+
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
712
|
+
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
713
|
+
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${A.value})` : l.right.color,
|
|
714
|
+
rx: e.value.style.layout.bars.borderRadius
|
|
715
|
+
}, null, 8, il)
|
|
716
|
+
]))), 256)),
|
|
717
|
+
y("g", null, [
|
|
718
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), u("g", rl, [
|
|
719
|
+
y("text", {
|
|
720
|
+
x: s.value.left,
|
|
721
|
+
y: e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
722
|
+
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
723
|
+
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
724
|
+
"text-anchor": "start",
|
|
725
|
+
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
726
|
+
}, T(e.value.translations.female), 9, ul),
|
|
727
|
+
y("text", {
|
|
728
|
+
x: s.value.right,
|
|
729
|
+
y: e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
730
|
+
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
731
|
+
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
732
|
+
"text-anchor": "end",
|
|
733
|
+
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
734
|
+
}, T(e.value.translations.male), 9, nl)
|
|
735
|
+
])) : f("", !0),
|
|
736
|
+
e.value.style.layout.dataLabels.yAxis.show ? (i(), u("g", dl, [
|
|
737
|
+
(i(!0), u(F, null, O(ut.value, (l, o) => (i(), u(F, null, [
|
|
738
|
+
o % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), u("text", {
|
|
739
|
+
key: 0,
|
|
740
|
+
x: s.value.centerX,
|
|
741
|
+
y: s.value.top + s.value.height / E.value * o + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
742
|
+
"text-anchor": "middle",
|
|
743
|
+
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
744
|
+
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
745
|
+
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
746
|
+
}, T(r(z)(
|
|
747
|
+
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
748
|
+
l,
|
|
749
|
+
r(B)({ v: l }),
|
|
750
|
+
{ datapoint: l, seriesIndex: o }
|
|
751
|
+
)), 9, vl)) : f("", !0)
|
|
752
|
+
], 64))), 256))
|
|
753
|
+
])) : f("", !0),
|
|
754
|
+
e.value.style.layout.dataLabels.xAxis.show ? (i(), u("g", cl, [
|
|
755
|
+
e.value.style.layout.grid.show ? (i(), u("g", yl, [
|
|
756
|
+
y("line", {
|
|
757
|
+
x1: L.value.right[0].x,
|
|
758
|
+
x2: L.value.right.at(-1).x,
|
|
759
|
+
y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
760
|
+
y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
761
|
+
stroke: e.value.style.layout.grid.stroke,
|
|
762
|
+
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
763
|
+
"stroke-linecap": "round"
|
|
764
|
+
}, null, 8, hl),
|
|
765
|
+
y("line", {
|
|
766
|
+
x1: L.value.left[0].x,
|
|
767
|
+
x2: L.value.left.at(-1).x,
|
|
768
|
+
y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
769
|
+
y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
770
|
+
stroke: e.value.style.layout.grid.stroke,
|
|
771
|
+
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
772
|
+
"stroke-linecap": "round"
|
|
773
|
+
}, null, 8, fl)
|
|
774
|
+
])) : f("", !0),
|
|
775
|
+
(i(!0), u(F, null, O(L.value.right, (l, o) => (i(), u("g", null, [
|
|
776
|
+
e.value.style.layout.grid.show ? (i(), u("line", {
|
|
777
|
+
key: 0,
|
|
778
|
+
x1: l.x,
|
|
779
|
+
x2: l.x,
|
|
780
|
+
y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
781
|
+
y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
782
|
+
stroke: e.value.style.layout.grid.stroke,
|
|
783
|
+
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
784
|
+
"stroke-linecap": "round"
|
|
785
|
+
}, null, 8, gl)) : f("", !0)
|
|
786
|
+
]))), 256)),
|
|
787
|
+
(i(!0), u(F, null, O(L.value.left, (l, o) => (i(), u("g", null, [
|
|
788
|
+
e.value.style.layout.grid.show ? (i(), u("line", {
|
|
789
|
+
key: 0,
|
|
790
|
+
x1: l.x,
|
|
791
|
+
x2: l.x,
|
|
792
|
+
y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
793
|
+
y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
794
|
+
stroke: e.value.style.layout.grid.stroke,
|
|
795
|
+
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
796
|
+
"stroke-linecap": "round"
|
|
797
|
+
}, null, 8, bl)) : f("", !0)
|
|
798
|
+
]))), 256)),
|
|
799
|
+
y("g", {
|
|
800
|
+
ref_key: "xAxisLabels",
|
|
801
|
+
ref: q
|
|
802
|
+
}, [
|
|
803
|
+
(i(!0), u(F, null, O(L.value.right, (l, o) => (i(), u("text", {
|
|
804
|
+
class: "vue-ui-age-pyramid-x-axis-label",
|
|
805
|
+
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
806
|
+
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
807
|
+
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
808
|
+
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
809
|
+
transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
810
|
+
}, T(r(z)(
|
|
811
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
812
|
+
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
813
|
+
r(B)({
|
|
814
|
+
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
815
|
+
}),
|
|
816
|
+
{ datapoint: l, seriesIndex: o }
|
|
817
|
+
)), 9, pl))), 256)),
|
|
818
|
+
(i(!0), u(F, null, O(L.value.left, (l, o) => (i(), u("text", {
|
|
819
|
+
class: "vue-ui-age-pyramid-x-axis-label",
|
|
820
|
+
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
821
|
+
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
822
|
+
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
823
|
+
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
824
|
+
transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
825
|
+
}, T(r(z)(
|
|
826
|
+
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
827
|
+
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
828
|
+
r(B)({
|
|
829
|
+
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
830
|
+
}),
|
|
831
|
+
{ datapoint: l, seriesIndex: o }
|
|
832
|
+
)), 9, xl))), 256))
|
|
833
|
+
], 512),
|
|
834
|
+
y("text", {
|
|
835
|
+
x: s.value.right,
|
|
836
|
+
y: g.value.height,
|
|
837
|
+
"text-anchor": "end",
|
|
838
|
+
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
839
|
+
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
840
|
+
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
841
|
+
}, T(e.value.style.layout.dataLabels.xAxis.translation), 9, ml)
|
|
842
|
+
])) : f("", !0)
|
|
843
|
+
]),
|
|
844
|
+
(i(!0), u(F, null, O(de.dataset, (l, o) => (i(), u("g", null, [
|
|
845
|
+
y("rect", {
|
|
846
|
+
x: s.value.left,
|
|
847
|
+
y: s.value.top + s.value.height / E.value * o - e.value.style.layout.bars.gap / 2,
|
|
848
|
+
width: s.value.width <= 0 ? 1e-4 : s.value.width,
|
|
849
|
+
height: s.value.height / E.value <= 0 ? 1e-4 : s.value.height / E.value,
|
|
850
|
+
fill: U.value !== null && U.value === o ? r(ue)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
851
|
+
onMouseover: (n) => yt(o, l),
|
|
852
|
+
onMouseleave: (n) => ct(o, l),
|
|
853
|
+
onClick: (n) => vt(o, l)
|
|
854
|
+
}, null, 40, Cl)
|
|
855
|
+
]))), 256)),
|
|
856
|
+
v(t.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
857
|
+
], 14, qt)),
|
|
858
|
+
t.$slots.watermark ? (i(), u("div", kl, [
|
|
859
|
+
v(t.$slots, "watermark", C(k({ isPrinting: r(ke) || r(Ae) })), void 0, !0)
|
|
860
|
+
])) : f("", !0),
|
|
861
|
+
v(t.$slots, "legend", { legend: S.value }, void 0, !0),
|
|
862
|
+
t.$slots.source ? (i(), u("div", {
|
|
863
|
+
key: 5,
|
|
864
|
+
ref_key: "source",
|
|
865
|
+
ref: he,
|
|
866
|
+
dir: "auto"
|
|
867
|
+
}, [
|
|
868
|
+
v(t.$slots, "source", {}, void 0, !0)
|
|
869
|
+
], 512)) : f("", !0),
|
|
870
|
+
ie(r(je), {
|
|
871
|
+
show: x.value.showTooltip && X.value,
|
|
872
|
+
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
873
|
+
color: e.value.style.tooltip.color,
|
|
874
|
+
borderRadius: e.value.style.tooltip.borderRadius,
|
|
875
|
+
borderColor: e.value.style.tooltip.borderColor,
|
|
876
|
+
borderWidth: e.value.style.tooltip.borderWidth,
|
|
877
|
+
fontSize: e.value.style.tooltip.fontSize,
|
|
878
|
+
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
879
|
+
position: e.value.style.tooltip.position,
|
|
880
|
+
offsetY: e.value.style.tooltip.offsetY,
|
|
881
|
+
parent: w.value,
|
|
882
|
+
content: Y.value,
|
|
883
|
+
isFullscreen: D.value,
|
|
884
|
+
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
885
|
+
smooth: e.value.style.tooltip.smooth,
|
|
886
|
+
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
887
|
+
smoothForce: e.value.style.tooltip.smoothForce,
|
|
888
|
+
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
889
|
+
}, {
|
|
890
|
+
"tooltip-before": c(() => [
|
|
891
|
+
v(t.$slots, "tooltip-before", C(k({ ...te.value })), void 0, !0)
|
|
892
|
+
]),
|
|
893
|
+
"tooltip-after": c(() => [
|
|
894
|
+
v(t.$slots, "tooltip-after", C(k({ ...te.value })), void 0, !0)
|
|
895
|
+
]),
|
|
896
|
+
_: 3
|
|
897
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
898
|
+
ve.value && e.value.userOptions.buttons.table ? (i(), R(wt(N.value.component), Tt({ key: 6 }, N.value.props, {
|
|
899
|
+
ref_key: "tableUnit",
|
|
900
|
+
ref: P,
|
|
901
|
+
onClose: Fe
|
|
902
|
+
}), Be({
|
|
903
|
+
content: c(() => [
|
|
904
|
+
(i(), R(r(qe), {
|
|
905
|
+
key: `table_${be.value}`,
|
|
906
|
+
colNames: V.value.colNames,
|
|
907
|
+
head: V.value.head,
|
|
908
|
+
body: V.value.body,
|
|
909
|
+
config: V.value.config,
|
|
910
|
+
title: e.value.table.useDialog ? "" : N.value.title,
|
|
911
|
+
withCloseButton: !e.value.table.useDialog,
|
|
912
|
+
onClose: Fe
|
|
913
|
+
}, {
|
|
914
|
+
th: c(({ th: l }) => [
|
|
915
|
+
re(T(l), 1)
|
|
916
|
+
]),
|
|
917
|
+
td: c(({ td: l }) => [
|
|
918
|
+
re(T(l), 1)
|
|
919
|
+
]),
|
|
920
|
+
_: 1
|
|
921
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
922
|
+
]),
|
|
923
|
+
_: 2
|
|
924
|
+
}, [
|
|
925
|
+
e.value.table.useDialog ? {
|
|
926
|
+
name: "title",
|
|
927
|
+
fn: c(() => [
|
|
928
|
+
re(T(N.value.title), 1)
|
|
929
|
+
]),
|
|
930
|
+
key: "0"
|
|
931
|
+
} : void 0,
|
|
932
|
+
e.value.table.useDialog ? {
|
|
933
|
+
name: "actions",
|
|
934
|
+
fn: c(() => [
|
|
935
|
+
y("button", {
|
|
936
|
+
tabindex: "0",
|
|
937
|
+
class: "vue-ui-user-options-button",
|
|
938
|
+
onClick: a[0] || (a[0] = (l) => oe(e.value.userOptions.callbacks.csv))
|
|
939
|
+
}, [
|
|
940
|
+
ie(r(Xe), {
|
|
941
|
+
name: "excel",
|
|
942
|
+
stroke: N.value.props.color
|
|
943
|
+
}, null, 8, ["stroke"])
|
|
944
|
+
])
|
|
945
|
+
]),
|
|
946
|
+
key: "1"
|
|
947
|
+
} : void 0
|
|
948
|
+
]), 1040)) : f("", !0),
|
|
949
|
+
r(pe) ? (i(), R(Pt, { key: 7 })) : f("", !0)
|
|
950
|
+
], 46, Yt));
|
|
951
|
+
}
|
|
952
|
+
}, wl = /* @__PURE__ */ Xt(Al, [["__scopeId", "data-v-ef1314b3"]]), Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
953
|
+
__proto__: null,
|
|
954
|
+
default: wl
|
|
955
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
956
|
+
export {
|
|
957
|
+
Ml as a,
|
|
958
|
+
Nl as b,
|
|
959
|
+
wl as v
|
|
960
|
+
};
|