vue-data-ui 3.0.0-next.9 → 3.0.0
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 +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -1,746 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as x, ref as d, watch as Be, shallowRef as ge, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as pe, createBlock as F, createCommentVNode as y, renderSlot as h, createVNode as be, createSlots as De, withCtx as f, normalizeProps as M, guardReactiveProps as P, createElementVNode as v, Fragment as R, renderList as B, toDisplayString as C, createTextVNode as xe, nextTick as Ge } from "vue";
|
|
2
|
-
import { u as Ve, c as We, a as Xe, o as je, e as He, v as c, X as Ye, s as q, w as me, i as T, f as A, q as qe, r as Je, x as Ke, y as Qe } from "./index-CgShIRes.js";
|
|
3
|
-
import { t as Ze, u as et } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as we } from "./useNestedProp-BC4Ciblw.js";
|
|
5
|
-
import { u as tt } from "./usePrinter-rIrqBbbm.js";
|
|
6
|
-
import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as at } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ot from "./Title-B2dA6-uH.js";
|
|
9
|
-
import st from "./img-C_9wps3s.js";
|
|
10
|
-
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"], vt = ["id"], dt = ["stop-color"], yt = ["stop-color"], ht = ["id"], ct = ["stop-color"], ft = ["stop-color"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = ["x", "y", "width", "height", "fill", "rx"], xt = ["x", "y", "width", "height", "fill", "rx"], mt = { key: 0 }, wt = ["x", "y", "fill", "font-size", "font-weight"], kt = ["x", "y", "fill", "font-size", "font-weight"], _t = { key: 1 }, Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = { key: 2 }, Tt = { key: 0 }, At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "font-size", "fill", "font-weight"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["x", "y", "width", "height", "fill", "onMouseover"], Pt = {
|
|
12
|
-
key: 5,
|
|
13
|
-
class: "vue-data-ui-watermark"
|
|
14
|
-
}, Rt = {
|
|
15
|
-
__name: "vue-ui-age-pyramid",
|
|
16
|
-
props: {
|
|
17
|
-
config: {
|
|
18
|
-
type: Object,
|
|
19
|
-
default() {
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
dataset: {
|
|
24
|
-
type: Array,
|
|
25
|
-
default() {
|
|
26
|
-
return [];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
setup(J, { expose: ke }) {
|
|
31
|
-
const _e = $(() => import("./vue-ui-accordion-hlzscmAS.js")), Ce = $(() => import("./DataTable--paavNqF.js")), $e = $(() => import("./PackageVersion-2QvaZf9_.js")), Te = $(() => import("./PenAndPaper-hGgW0EHz.js")), Ae = $(() => import("./vue-ui-skeleton-BsBaCvoE.js")), Le = $(() => import("./Tooltip-O_hCvqgF.js")), Se = $(() => import("./UserOptions-Bk03FRqW.js")), { vue_ui_age_pyramid: ze } = Ve(), g = J, E = x(() => !!g.dataset && g.dataset.length), w = d(We()), Oe = d(null), V = d(!1), W = d(""), U = d(null), K = d(0), k = d(null), Q = d(null), Z = d(null), ee = d(null), te = d(0), le = d(0), e = x({
|
|
32
|
-
get: () => ie(),
|
|
33
|
-
set: (t) => t
|
|
34
|
-
}), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = lt({ config: e.value }), { svgRef: se } = at({ config: e.value.style.title });
|
|
35
|
-
function ie() {
|
|
36
|
-
const t = we({
|
|
37
|
-
userConfig: g.config,
|
|
38
|
-
defaultConfig: ze
|
|
39
|
-
});
|
|
40
|
-
return t.theme ? {
|
|
41
|
-
...we({
|
|
42
|
-
userConfig: Xe.vue_ui_age_pyramid[t.theme] || g.config,
|
|
43
|
-
defaultConfig: t
|
|
44
|
-
})
|
|
45
|
-
} : t;
|
|
46
|
-
}
|
|
47
|
-
Be(() => g.config, (t) => {
|
|
48
|
-
e.value = ie(), X.value = !e.value.userOptions.showOnChartHover, ue(), te.value += 1, le.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
|
|
49
|
-
}, { deep: !0 });
|
|
50
|
-
const _ = ge(null), L = ge(null);
|
|
51
|
-
Ee(() => {
|
|
52
|
-
ue();
|
|
53
|
-
});
|
|
54
|
-
function ue() {
|
|
55
|
-
if (je(g.dataset) && He({
|
|
56
|
-
componentName: "VueUiAgePyramid",
|
|
57
|
-
type: "dataset"
|
|
58
|
-
}), e.value.responsive) {
|
|
59
|
-
const t = Ze(() => {
|
|
60
|
-
const { width: s, height: l } = et({
|
|
61
|
-
chart: k.value,
|
|
62
|
-
title: e.value.style.title.text ? Q.value : null,
|
|
63
|
-
source: Z.value,
|
|
64
|
-
noTitle: ee.value
|
|
65
|
-
});
|
|
66
|
-
requestAnimationFrame(() => {
|
|
67
|
-
p.value.width = s, p.value.height = l;
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = k.value.parentNode, _.value.observe(L.value);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
Ue(() => {
|
|
74
|
-
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
|
|
75
|
-
});
|
|
76
|
-
const { isPrinting: re, isImaging: ne, generatePdf: ve, generateImage: de } = tt({
|
|
77
|
-
elementId: `vue-ui-age-pyramid_${w.value}`,
|
|
78
|
-
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
79
|
-
options: e.value.userOptions.print
|
|
80
|
-
}), Ie = x(() => e.value.userOptions.show && !e.value.style.title.text), m = d({
|
|
81
|
-
showTable: e.value.table.show,
|
|
82
|
-
showTooltip: e.value.style.tooltip.show
|
|
83
|
-
}), p = d({
|
|
84
|
-
height: e.value.style.height,
|
|
85
|
-
width: e.value.style.width
|
|
86
|
-
}), o = x(() => {
|
|
87
|
-
const t = p.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, s = e.value.style.layout.padding.left, l = p.value.width - e.value.style.layout.padding.right;
|
|
88
|
-
return {
|
|
89
|
-
top: e.value.style.layout.padding.top,
|
|
90
|
-
left: s,
|
|
91
|
-
right: l,
|
|
92
|
-
bottom: p.value.height - e.value.style.layout.padding.bottom,
|
|
93
|
-
width: t,
|
|
94
|
-
height: p.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
95
|
-
centerX: e.value.style.layout.padding.left + t / 2,
|
|
96
|
-
leftChart: {
|
|
97
|
-
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
98
|
-
right: s + t / 2 - e.value.style.layout.centerSlit.width
|
|
99
|
-
},
|
|
100
|
-
rightChart: {
|
|
101
|
-
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
102
|
-
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
}), Fe = x(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = x(() => {
|
|
106
|
-
const t = Me(N.value / 5), s = [], l = [];
|
|
107
|
-
for (let a = 0; a <= 5; a += 1) {
|
|
108
|
-
const n = t * a, b = t * (a - 5);
|
|
109
|
-
s.push({
|
|
110
|
-
value: n,
|
|
111
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / N.value * o.value.leftChart.width
|
|
112
|
-
}), l.push({
|
|
113
|
-
value: Math.abs(b),
|
|
114
|
-
x: o.value.left + o.value.width / 2 + b / N.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
right: s,
|
|
119
|
-
left: l
|
|
120
|
-
};
|
|
121
|
-
});
|
|
122
|
-
function Me(t) {
|
|
123
|
-
if (t === 0) return 0;
|
|
124
|
-
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
125
|
-
let a;
|
|
126
|
-
return t < 0, a = Math.round(t / l) * l, a;
|
|
127
|
-
}
|
|
128
|
-
const N = x(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => c(s))))), z = x(() => g.dataset.length), Pe = x(() => g.dataset.map((t) => ({
|
|
129
|
-
segment: t[0],
|
|
130
|
-
age: t[1],
|
|
131
|
-
left: {
|
|
132
|
-
value: t[2],
|
|
133
|
-
proportionToMax: t[2] / N.value
|
|
134
|
-
},
|
|
135
|
-
right: {
|
|
136
|
-
value: t[3],
|
|
137
|
-
proportionToMax: t[3] / N.value
|
|
138
|
-
}
|
|
139
|
-
}))), O = x(() => Pe.value.map((t, s) => {
|
|
140
|
-
const l = o.value.top + o.value.height / z.value * s, a = o.value.height / z.value - e.value.style.layout.bars.gap;
|
|
141
|
-
return {
|
|
142
|
-
segment: t.segment,
|
|
143
|
-
age: t.age,
|
|
144
|
-
left: {
|
|
145
|
-
...t.left,
|
|
146
|
-
y: l,
|
|
147
|
-
color: e.value.style.layout.bars.left.color,
|
|
148
|
-
x: o.value.leftChart.right - t.left.proportionToMax * o.value.leftChart.width,
|
|
149
|
-
width: c(t.left.proportionToMax * o.value.leftChart.width),
|
|
150
|
-
height: a
|
|
151
|
-
},
|
|
152
|
-
right: {
|
|
153
|
-
...t.right,
|
|
154
|
-
y: l,
|
|
155
|
-
color: e.value.style.layout.bars.right.color,
|
|
156
|
-
x: o.value.rightChart.left,
|
|
157
|
-
width: c(t.right.proportionToMax * o.value.rightChart.width),
|
|
158
|
-
height: a
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
})), j = d(null);
|
|
162
|
-
function Re(t, s) {
|
|
163
|
-
U.value = t, j.value = {
|
|
164
|
-
datapoint: s,
|
|
165
|
-
seriesIndex: t,
|
|
166
|
-
series: O.value,
|
|
167
|
-
config: e.value
|
|
168
|
-
};
|
|
169
|
-
const l = e.value.style.tooltip.customFormat;
|
|
170
|
-
if (Ke(l) && Qe(() => l({
|
|
171
|
-
seriesIndex: t,
|
|
172
|
-
datapoint: {
|
|
173
|
-
segment: s[0],
|
|
174
|
-
index: s[1],
|
|
175
|
-
left: s[2],
|
|
176
|
-
right: s[3]
|
|
177
|
-
},
|
|
178
|
-
series: O.value,
|
|
179
|
-
config: e.value
|
|
180
|
-
})))
|
|
181
|
-
W.value = l({
|
|
182
|
-
seriesIndex: t,
|
|
183
|
-
datapoint: {
|
|
184
|
-
segment: s[0],
|
|
185
|
-
index: s[1],
|
|
186
|
-
left: s[2],
|
|
187
|
-
right: s[3]
|
|
188
|
-
},
|
|
189
|
-
series: O.value,
|
|
190
|
-
config: e.value
|
|
191
|
-
});
|
|
192
|
-
else {
|
|
193
|
-
let a = "";
|
|
194
|
-
const n = O.value[t];
|
|
195
|
-
a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${T(
|
|
196
|
-
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
197
|
-
c(n.age),
|
|
198
|
-
A({ v: c(n.age) }),
|
|
199
|
-
{ datapoint: s, seriesIndex: t }
|
|
200
|
-
)}</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_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${T(
|
|
201
|
-
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
202
|
-
c(n.left.value),
|
|
203
|
-
A({ v: c(n.left.value) }),
|
|
204
|
-
{ datapoint: s, seriesIndex: t }
|
|
205
|
-
)}</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_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${T(
|
|
206
|
-
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
207
|
-
c(n.right.value),
|
|
208
|
-
A({ v: c(n.right.value) }),
|
|
209
|
-
{ datapoint: s, seriesIndex: t }
|
|
210
|
-
)}</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>${T(
|
|
211
|
-
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
212
|
-
c(n.right.value) + c(n.left.value),
|
|
213
|
-
A({ v: c(n.right.value) + c(n.left.value) }),
|
|
214
|
-
{ datapoint: s, seriesIndex: t }
|
|
215
|
-
)}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
|
|
216
|
-
}
|
|
217
|
-
V.value = !0;
|
|
218
|
-
}
|
|
219
|
-
function ye(t = null) {
|
|
220
|
-
Ge(() => {
|
|
221
|
-
const s = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = g.dataset.map((b) => [
|
|
222
|
-
b[0],
|
|
223
|
-
b[1],
|
|
224
|
-
b[2],
|
|
225
|
-
b[3],
|
|
226
|
-
b[2] + b[3]
|
|
227
|
-
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), n = qe(a);
|
|
228
|
-
t ? t(n) : Je({ csvContent: n, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
const D = x(() => {
|
|
232
|
-
const t = [
|
|
233
|
-
e.value.translations.year,
|
|
234
|
-
e.value.translations.age,
|
|
235
|
-
e.value.translations.female,
|
|
236
|
-
e.value.translations.male,
|
|
237
|
-
e.value.translations.total
|
|
238
|
-
], s = g.dataset.map((a) => [
|
|
239
|
-
a[0],
|
|
240
|
-
a[1],
|
|
241
|
-
a[2].toLocaleString(),
|
|
242
|
-
a[3].toLocaleString(),
|
|
243
|
-
(a[2] + a[3]).toLocaleString()
|
|
244
|
-
]), l = {
|
|
245
|
-
th: {
|
|
246
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
247
|
-
color: e.value.table.th.color,
|
|
248
|
-
outline: e.value.table.th.outline
|
|
249
|
-
},
|
|
250
|
-
td: {
|
|
251
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
252
|
-
color: e.value.table.td.color,
|
|
253
|
-
outline: e.value.table.td.outline
|
|
254
|
-
},
|
|
255
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
256
|
-
};
|
|
257
|
-
return { head: t, body: s, config: l, colNames: t };
|
|
258
|
-
}), I = d(!1);
|
|
259
|
-
function he(t) {
|
|
260
|
-
I.value = t, K.value += 1;
|
|
261
|
-
}
|
|
262
|
-
function ce() {
|
|
263
|
-
m.value.showTable = !m.value.showTable;
|
|
264
|
-
}
|
|
265
|
-
function fe() {
|
|
266
|
-
m.value.showTooltip = !m.value.showTooltip;
|
|
267
|
-
}
|
|
268
|
-
const G = d(!1);
|
|
269
|
-
function H() {
|
|
270
|
-
G.value = !G.value;
|
|
271
|
-
}
|
|
272
|
-
async function Ne({ scale: t = 2 } = {}) {
|
|
273
|
-
if (!k.value) return;
|
|
274
|
-
const { width: s, height: l } = k.value.getBoundingClientRect(), a = s / l, { imageUri: n, base64: b } = await st({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
275
|
-
return {
|
|
276
|
-
imageUri: n,
|
|
277
|
-
base64: b,
|
|
278
|
-
title: e.value.style.title.text,
|
|
279
|
-
width: s,
|
|
280
|
-
height: l,
|
|
281
|
-
aspectRatio: a
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
return ke({
|
|
285
|
-
getImage: Ne,
|
|
286
|
-
generatePdf: ve,
|
|
287
|
-
generateCsv: ye,
|
|
288
|
-
generateImage: de,
|
|
289
|
-
toggleTable: ce,
|
|
290
|
-
toggleTooltip: fe,
|
|
291
|
-
toggleAnnotator: H,
|
|
292
|
-
toggleFullscreen: he
|
|
293
|
-
}), (t, s) => (u(), r("div", {
|
|
294
|
-
class: pe(`vue-ui-age-pyramid ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
295
|
-
ref_key: "agePyramid",
|
|
296
|
-
ref: k,
|
|
297
|
-
id: `vue-ui-age-pyramid_${w.value}`,
|
|
298
|
-
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
299
|
-
onMouseenter: s[2] || (s[2] = () => i(ae)(!0)),
|
|
300
|
-
onMouseleave: s[3] || (s[3] = () => i(ae)(!1))
|
|
301
|
-
}, [
|
|
302
|
-
e.value.userOptions.buttons.annotator ? (u(), F(i(Te), {
|
|
303
|
-
key: 0,
|
|
304
|
-
svgRef: i(se),
|
|
305
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
306
|
-
color: e.value.style.color,
|
|
307
|
-
active: G.value,
|
|
308
|
-
onClose: H
|
|
309
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
310
|
-
Ie.value ? (u(), r("div", {
|
|
311
|
-
key: 1,
|
|
312
|
-
ref_key: "noTitle",
|
|
313
|
-
ref: ee,
|
|
314
|
-
class: "vue-data-ui-no-title-space",
|
|
315
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
316
|
-
}, null, 512)) : y("", !0),
|
|
317
|
-
e.value.style.title.text ? (u(), r("div", {
|
|
318
|
-
key: 2,
|
|
319
|
-
ref_key: "chartTitle",
|
|
320
|
-
ref: Q,
|
|
321
|
-
style: "width:100%;background:transparent"
|
|
322
|
-
}, [
|
|
323
|
-
(u(), F(ot, {
|
|
324
|
-
key: `title_${te.value}`,
|
|
325
|
-
config: {
|
|
326
|
-
title: {
|
|
327
|
-
cy: "pyramid-div-title",
|
|
328
|
-
...e.value.style.title
|
|
329
|
-
},
|
|
330
|
-
subtitle: {
|
|
331
|
-
cy: "pyramid-div-subtitle",
|
|
332
|
-
...e.value.style.title.subtitle
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}, null, 8, ["config"]))
|
|
336
|
-
], 512)) : y("", !0),
|
|
337
|
-
e.value.userOptions.show && E.value && (i(oe) || i(X)) ? (u(), F(i(Se), {
|
|
338
|
-
ref_key: "details",
|
|
339
|
-
ref: Oe,
|
|
340
|
-
key: `user_options_${K.value}`,
|
|
341
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
342
|
-
color: e.value.style.color,
|
|
343
|
-
isImaging: i(ne),
|
|
344
|
-
isPrinting: i(re),
|
|
345
|
-
uid: w.value,
|
|
346
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
347
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
348
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
349
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
350
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
351
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
352
|
-
isFullscreen: I.value,
|
|
353
|
-
isTooltip: m.value.showTooltip,
|
|
354
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
355
|
-
chartElement: k.value,
|
|
356
|
-
position: e.value.userOptions.position,
|
|
357
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
358
|
-
isAnnotation: G.value,
|
|
359
|
-
callbacks: e.value.userOptions.callbacks,
|
|
360
|
-
printScale: e.value.userOptions.print.scale,
|
|
361
|
-
onToggleFullscreen: he,
|
|
362
|
-
onGeneratePdf: i(ve),
|
|
363
|
-
onGenerateCsv: ye,
|
|
364
|
-
onGenerateImage: i(de),
|
|
365
|
-
onToggleTable: ce,
|
|
366
|
-
onToggleTooltip: fe,
|
|
367
|
-
onToggleAnnotator: H,
|
|
368
|
-
style: Y({
|
|
369
|
-
visibility: i(oe) ? i(X) ? "visible" : "hidden" : "visible"
|
|
370
|
-
})
|
|
371
|
-
}, De({ _: 2 }, [
|
|
372
|
-
t.$slots.menuIcon ? {
|
|
373
|
-
name: "menuIcon",
|
|
374
|
-
fn: f(({ isOpen: l, color: a }) => [
|
|
375
|
-
h(t.$slots, "menuIcon", M(P({ isOpen: l, color: a })), void 0, !0)
|
|
376
|
-
]),
|
|
377
|
-
key: "0"
|
|
378
|
-
} : void 0,
|
|
379
|
-
t.$slots.optionTooltip ? {
|
|
380
|
-
name: "optionTooltip",
|
|
381
|
-
fn: f(() => [
|
|
382
|
-
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
383
|
-
]),
|
|
384
|
-
key: "1"
|
|
385
|
-
} : void 0,
|
|
386
|
-
t.$slots.optionPdf ? {
|
|
387
|
-
name: "optionPdf",
|
|
388
|
-
fn: f(() => [
|
|
389
|
-
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
390
|
-
]),
|
|
391
|
-
key: "2"
|
|
392
|
-
} : void 0,
|
|
393
|
-
t.$slots.optionCsv ? {
|
|
394
|
-
name: "optionCsv",
|
|
395
|
-
fn: f(() => [
|
|
396
|
-
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
397
|
-
]),
|
|
398
|
-
key: "3"
|
|
399
|
-
} : void 0,
|
|
400
|
-
t.$slots.optionImg ? {
|
|
401
|
-
name: "optionImg",
|
|
402
|
-
fn: f(() => [
|
|
403
|
-
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
404
|
-
]),
|
|
405
|
-
key: "4"
|
|
406
|
-
} : void 0,
|
|
407
|
-
t.$slots.optionTable ? {
|
|
408
|
-
name: "optionTable",
|
|
409
|
-
fn: f(() => [
|
|
410
|
-
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
411
|
-
]),
|
|
412
|
-
key: "5"
|
|
413
|
-
} : void 0,
|
|
414
|
-
t.$slots.optionFullscreen ? {
|
|
415
|
-
name: "optionFullscreen",
|
|
416
|
-
fn: f(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
417
|
-
h(t.$slots, "optionFullscreen", M(P({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
418
|
-
]),
|
|
419
|
-
key: "6"
|
|
420
|
-
} : void 0,
|
|
421
|
-
t.$slots.optionAnnotator ? {
|
|
422
|
-
name: "optionAnnotator",
|
|
423
|
-
fn: f(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
424
|
-
h(t.$slots, "optionAnnotator", M(P({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
425
|
-
]),
|
|
426
|
-
key: "7"
|
|
427
|
-
} : void 0
|
|
428
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
429
|
-
E.value ? (u(), r("svg", {
|
|
430
|
-
key: 4,
|
|
431
|
-
ref_key: "svgRef",
|
|
432
|
-
ref: se,
|
|
433
|
-
xmlns: i(Ye),
|
|
434
|
-
class: pe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
435
|
-
viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
|
|
436
|
-
style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
437
|
-
}, [
|
|
438
|
-
be(i($e)),
|
|
439
|
-
t.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
440
|
-
key: 0,
|
|
441
|
-
x: o.value.left,
|
|
442
|
-
y: o.value.top,
|
|
443
|
-
width: Math.max(0.1, o.value.width),
|
|
444
|
-
height: Math.max(0.1, o.value.height),
|
|
445
|
-
style: {
|
|
446
|
-
pointerEvents: "none"
|
|
447
|
-
}
|
|
448
|
-
}, [
|
|
449
|
-
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
450
|
-
], 8, nt)) : y("", !0),
|
|
451
|
-
v("defs", null, [
|
|
452
|
-
v("linearGradient", {
|
|
453
|
-
id: `age_pyramid_left_${w.value}`,
|
|
454
|
-
x1: "0%",
|
|
455
|
-
y1: "0%",
|
|
456
|
-
x2: "100%",
|
|
457
|
-
y2: "0%"
|
|
458
|
-
}, [
|
|
459
|
-
v("stop", {
|
|
460
|
-
offset: "0%",
|
|
461
|
-
"stop-color": e.value.style.layout.bars.left.color
|
|
462
|
-
}, null, 8, dt),
|
|
463
|
-
v("stop", {
|
|
464
|
-
offset: "100%",
|
|
465
|
-
"stop-color": i(q)(i(me)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
466
|
-
}, null, 8, yt)
|
|
467
|
-
], 8, vt),
|
|
468
|
-
v("linearGradient", {
|
|
469
|
-
id: `age_pyramid_right_${w.value}`,
|
|
470
|
-
x1: "0%",
|
|
471
|
-
y1: "0%",
|
|
472
|
-
x2: "100%",
|
|
473
|
-
y2: "0%"
|
|
474
|
-
}, [
|
|
475
|
-
v("stop", {
|
|
476
|
-
offset: "0%",
|
|
477
|
-
"stop-color": i(q)(i(me)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
478
|
-
}, null, 8, ct),
|
|
479
|
-
v("stop", {
|
|
480
|
-
offset: "100%",
|
|
481
|
-
"stop-color": e.value.style.layout.bars.right.color
|
|
482
|
-
}, null, 8, ft)
|
|
483
|
-
], 8, ht)
|
|
484
|
-
]),
|
|
485
|
-
(u(!0), r(R, null, B(O.value, (l, a) => (u(), r("g", null, [
|
|
486
|
-
v("rect", {
|
|
487
|
-
x: l.left.x,
|
|
488
|
-
y: l.left.y,
|
|
489
|
-
width: i(c)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
490
|
-
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
491
|
-
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
492
|
-
rx: e.value.style.layout.bars.borderRadius
|
|
493
|
-
}, null, 8, gt),
|
|
494
|
-
v("rect", {
|
|
495
|
-
x: l.left.x,
|
|
496
|
-
y: l.left.y,
|
|
497
|
-
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
498
|
-
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
499
|
-
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : l.left.color,
|
|
500
|
-
rx: e.value.style.layout.bars.borderRadius
|
|
501
|
-
}, null, 8, pt),
|
|
502
|
-
v("rect", {
|
|
503
|
-
x: l.right.x,
|
|
504
|
-
y: l.right.y,
|
|
505
|
-
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
506
|
-
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
507
|
-
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
508
|
-
rx: e.value.style.layout.bars.borderRadius
|
|
509
|
-
}, null, 8, bt),
|
|
510
|
-
v("rect", {
|
|
511
|
-
x: l.right.x,
|
|
512
|
-
y: l.right.y,
|
|
513
|
-
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
514
|
-
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
515
|
-
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
|
|
516
|
-
rx: e.value.style.layout.bars.borderRadius
|
|
517
|
-
}, null, 8, xt)
|
|
518
|
-
]))), 256)),
|
|
519
|
-
v("g", null, [
|
|
520
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", mt, [
|
|
521
|
-
v("text", {
|
|
522
|
-
x: o.value.left,
|
|
523
|
-
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
524
|
-
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
525
|
-
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
526
|
-
"text-anchor": "start",
|
|
527
|
-
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
528
|
-
}, C(e.value.translations.female), 9, wt),
|
|
529
|
-
v("text", {
|
|
530
|
-
x: o.value.right,
|
|
531
|
-
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
532
|
-
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
533
|
-
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
534
|
-
"text-anchor": "end",
|
|
535
|
-
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
536
|
-
}, C(e.value.translations.male), 9, kt)
|
|
537
|
-
])) : y("", !0),
|
|
538
|
-
e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", _t, [
|
|
539
|
-
(u(!0), r(R, null, B(Fe.value, (l, a) => (u(), r(R, null, [
|
|
540
|
-
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
|
|
541
|
-
key: 0,
|
|
542
|
-
x: o.value.centerX,
|
|
543
|
-
y: o.value.top + o.value.height / z.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
544
|
-
"text-anchor": "middle",
|
|
545
|
-
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
546
|
-
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
547
|
-
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
548
|
-
}, C(i(T)(
|
|
549
|
-
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
550
|
-
l,
|
|
551
|
-
i(A)({ v: l }),
|
|
552
|
-
{ datapoint: l, seriesIndex: a }
|
|
553
|
-
)), 9, Ct)) : y("", !0)
|
|
554
|
-
], 64))), 256))
|
|
555
|
-
])) : y("", !0),
|
|
556
|
-
e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", $t, [
|
|
557
|
-
e.value.style.layout.grid.show ? (u(), r("g", Tt, [
|
|
558
|
-
v("line", {
|
|
559
|
-
x1: S.value.right[0].x,
|
|
560
|
-
x2: S.value.right.at(-1).x,
|
|
561
|
-
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
562
|
-
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
563
|
-
stroke: e.value.style.layout.grid.stroke,
|
|
564
|
-
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
565
|
-
"stroke-linecap": "round"
|
|
566
|
-
}, null, 8, At),
|
|
567
|
-
v("line", {
|
|
568
|
-
x1: S.value.left[0].x,
|
|
569
|
-
x2: S.value.left.at(-1).x,
|
|
570
|
-
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
571
|
-
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
572
|
-
stroke: e.value.style.layout.grid.stroke,
|
|
573
|
-
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
574
|
-
"stroke-linecap": "round"
|
|
575
|
-
}, null, 8, Lt)
|
|
576
|
-
])) : y("", !0),
|
|
577
|
-
(u(!0), r(R, null, B(S.value.right, (l, a) => (u(), r("g", null, [
|
|
578
|
-
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
579
|
-
key: 0,
|
|
580
|
-
x1: l.x,
|
|
581
|
-
x2: l.x,
|
|
582
|
-
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
583
|
-
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 4,
|
|
584
|
-
stroke: e.value.style.layout.grid.stroke,
|
|
585
|
-
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
586
|
-
"stroke-linecap": "round"
|
|
587
|
-
}, null, 8, St)) : y("", !0),
|
|
588
|
-
v("text", {
|
|
589
|
-
x: l.x,
|
|
590
|
-
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
591
|
-
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
592
|
-
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
593
|
-
"text-anchor": "middle",
|
|
594
|
-
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
595
|
-
}, C(i(T)(
|
|
596
|
-
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
597
|
-
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
598
|
-
i(A)({
|
|
599
|
-
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
600
|
-
}),
|
|
601
|
-
{ datapoint: l, seriesIndex: a }
|
|
602
|
-
)), 9, zt)
|
|
603
|
-
]))), 256)),
|
|
604
|
-
(u(!0), r(R, null, B(S.value.left, (l, a) => (u(), r("g", null, [
|
|
605
|
-
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
606
|
-
key: 0,
|
|
607
|
-
x1: l.x,
|
|
608
|
-
x2: l.x,
|
|
609
|
-
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
610
|
-
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 4,
|
|
611
|
-
stroke: e.value.style.layout.grid.stroke,
|
|
612
|
-
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
613
|
-
"stroke-linecap": "round"
|
|
614
|
-
}, null, 8, Ot)) : y("", !0),
|
|
615
|
-
v("text", {
|
|
616
|
-
x: l.x,
|
|
617
|
-
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
618
|
-
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
619
|
-
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
620
|
-
"text-anchor": "middle",
|
|
621
|
-
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
622
|
-
}, C(i(T)(
|
|
623
|
-
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
624
|
-
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
625
|
-
i(A)({
|
|
626
|
-
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
627
|
-
}),
|
|
628
|
-
{ datapoint: l, seriesIndex: a }
|
|
629
|
-
)), 9, It)
|
|
630
|
-
]))), 256)),
|
|
631
|
-
v("text", {
|
|
632
|
-
x: o.value.right,
|
|
633
|
-
y: p.value.height,
|
|
634
|
-
"text-anchor": "end",
|
|
635
|
-
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
636
|
-
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
637
|
-
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
638
|
-
}, C(e.value.style.layout.dataLabels.xAxis.translation), 9, Ft)
|
|
639
|
-
])) : y("", !0)
|
|
640
|
-
]),
|
|
641
|
-
(u(!0), r(R, null, B(J.dataset, (l, a) => (u(), r("g", null, [
|
|
642
|
-
v("rect", {
|
|
643
|
-
x: o.value.left,
|
|
644
|
-
y: o.value.top + o.value.height / z.value * a - e.value.style.layout.bars.gap / 2,
|
|
645
|
-
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
646
|
-
height: o.value.height / z.value <= 0 ? 1e-4 : o.value.height / z.value,
|
|
647
|
-
fill: U.value !== null && U.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
648
|
-
onMouseover: (n) => Re(a, l),
|
|
649
|
-
onMouseleave: s[0] || (s[0] = (n) => {
|
|
650
|
-
U.value = null, V.value = !1;
|
|
651
|
-
})
|
|
652
|
-
}, null, 40, Mt)
|
|
653
|
-
]))), 256)),
|
|
654
|
-
h(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
655
|
-
], 14, rt)) : y("", !0),
|
|
656
|
-
t.$slots.watermark ? (u(), r("div", Pt, [
|
|
657
|
-
h(t.$slots, "watermark", M(P({ isPrinting: i(re) || i(ne) })), void 0, !0)
|
|
658
|
-
])) : y("", !0),
|
|
659
|
-
E.value ? y("", !0) : (u(), F(i(Ae), {
|
|
660
|
-
key: 6,
|
|
661
|
-
config: {
|
|
662
|
-
type: "pyramid",
|
|
663
|
-
style: {
|
|
664
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
665
|
-
pyramid: {
|
|
666
|
-
color: "#CCCCCC"
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
}, null, 8, ["config"])),
|
|
671
|
-
h(t.$slots, "legend", { legend: O.value }, void 0, !0),
|
|
672
|
-
t.$slots.source ? (u(), r("div", {
|
|
673
|
-
key: 7,
|
|
674
|
-
ref_key: "source",
|
|
675
|
-
ref: Z,
|
|
676
|
-
dir: "auto"
|
|
677
|
-
}, [
|
|
678
|
-
h(t.$slots, "source", {}, void 0, !0)
|
|
679
|
-
], 512)) : y("", !0),
|
|
680
|
-
be(i(Le), {
|
|
681
|
-
show: m.value.showTooltip && V.value,
|
|
682
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
683
|
-
color: e.value.style.tooltip.color,
|
|
684
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
685
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
686
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
687
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
688
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
689
|
-
position: e.value.style.tooltip.position,
|
|
690
|
-
offsetY: e.value.style.tooltip.offsetY,
|
|
691
|
-
parent: k.value,
|
|
692
|
-
content: W.value,
|
|
693
|
-
isFullscreen: I.value,
|
|
694
|
-
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
695
|
-
}, {
|
|
696
|
-
"tooltip-before": f(() => [
|
|
697
|
-
h(t.$slots, "tooltip-before", M(P({ ...j.value })), void 0, !0)
|
|
698
|
-
]),
|
|
699
|
-
"tooltip-after": f(() => [
|
|
700
|
-
h(t.$slots, "tooltip-after", M(P({ ...j.value })), void 0, !0)
|
|
701
|
-
]),
|
|
702
|
-
_: 3
|
|
703
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
704
|
-
E.value ? (u(), F(i(_e), {
|
|
705
|
-
key: 8,
|
|
706
|
-
hideDetails: "",
|
|
707
|
-
config: {
|
|
708
|
-
open: m.value.showTable,
|
|
709
|
-
maxHeight: 1e4,
|
|
710
|
-
body: {
|
|
711
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
712
|
-
color: e.value.style.color
|
|
713
|
-
},
|
|
714
|
-
head: {
|
|
715
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
716
|
-
color: e.value.style.color
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
}, {
|
|
720
|
-
content: f(() => [
|
|
721
|
-
(u(), F(i(Ce), {
|
|
722
|
-
key: `table_${le.value}`,
|
|
723
|
-
colNames: D.value.colNames,
|
|
724
|
-
head: D.value.head,
|
|
725
|
-
body: D.value.body,
|
|
726
|
-
config: D.value.config,
|
|
727
|
-
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
728
|
-
onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
|
|
729
|
-
}, {
|
|
730
|
-
th: f(({ th: l }) => [
|
|
731
|
-
xe(C(l), 1)
|
|
732
|
-
]),
|
|
733
|
-
td: f(({ td: l }) => [
|
|
734
|
-
xe(C(l), 1)
|
|
735
|
-
]),
|
|
736
|
-
_: 1
|
|
737
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
738
|
-
]),
|
|
739
|
-
_: 1
|
|
740
|
-
}, 8, ["config"])) : y("", !0)
|
|
741
|
-
], 46, ut));
|
|
742
|
-
}
|
|
743
|
-
}, Ht = /* @__PURE__ */ it(Rt, [["__scopeId", "data-v-fb8f7a5f"]]);
|
|
744
|
-
export {
|
|
745
|
-
Ht as default
|
|
746
|
-
};
|