vue-data-ui 2.17.0 → 2.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as
|
|
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-
|
|
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-JzUbx__y.js";
|
|
3
3
|
import { t as Ze, u as et } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as we } from "./useNestedProp-
|
|
5
|
-
import { u as tt } from "./usePrinter-
|
|
4
|
+
import { u as we } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as tt } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as at } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ot from "./Title-
|
|
9
|
-
import st from "./img-
|
|
8
|
+
import ot from "./Title-BQb7X_OR.js";
|
|
9
|
+
import st from "./img-D0DpKcFX.js";
|
|
10
10
|
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"],
|
|
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
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, Rt = {
|
|
15
15
|
__name: "vue-ui-age-pyramid",
|
|
16
16
|
props: {
|
|
17
17
|
config: {
|
|
@@ -28,7 +28,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(J, { expose: ke }) {
|
|
31
|
-
const _e = $(() => import("./vue-ui-accordion-
|
|
31
|
+
const _e = $(() => import("./vue-ui-accordion-CcTUbiHq.js")), Ce = $(() => import("./DataTable-6BxhjBzt.js")), $e = $(() => import("./PackageVersion-CIX1W_aa.js")), Te = $(() => import("./PenAndPaper-CqJ4wudB.js")), Ae = $(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Le = $(() => import("./Tooltip-BTnTpPdO.js")), Se = $(() => import("./UserOptions-lneAyZKu.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
32
|
get: () => ie(),
|
|
33
33
|
set: (t) => t
|
|
34
34
|
}), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = lt({ config: e.value }), { svgRef: se } = at({ config: e.value.style.title });
|
|
@@ -44,11 +44,11 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
44
44
|
})
|
|
45
45
|
} : t;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
e.value = ie(), X.value = !e.value.userOptions.showOnChartHover, ue(), te.value += 1, le.value += 1,
|
|
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
49
|
}, { deep: !0 });
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const _ = ge(null), L = ge(null);
|
|
51
|
+
Ee(() => {
|
|
52
52
|
ue();
|
|
53
53
|
});
|
|
54
54
|
function ue() {
|
|
@@ -58,7 +58,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
58
58
|
}), e.value.responsive) {
|
|
59
59
|
const t = Ze(() => {
|
|
60
60
|
const { width: s, height: l } = et({
|
|
61
|
-
chart:
|
|
61
|
+
chart: k.value,
|
|
62
62
|
title: e.value.style.title.text ? Q.value : null,
|
|
63
63
|
source: Z.value,
|
|
64
64
|
noTitle: ee.value
|
|
@@ -67,23 +67,23 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
67
67
|
p.value.width = s, p.value.height = l;
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
|
-
|
|
70
|
+
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = k.value.parentNode, _.value.observe(L.value);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
Ue(() => {
|
|
74
|
+
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
|
|
75
75
|
});
|
|
76
|
-
const { isPrinting: re, isImaging: ne, generatePdf:
|
|
77
|
-
elementId: `vue-ui-age-pyramid_${
|
|
76
|
+
const { isPrinting: re, isImaging: ne, generatePdf: ve, generateImage: de } = tt({
|
|
77
|
+
elementId: `vue-ui-age-pyramid_${w.value}`,
|
|
78
78
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
79
79
|
options: e.value.userOptions.print
|
|
80
|
-
}), Ie =
|
|
80
|
+
}), Ie = x(() => e.value.userOptions.show && !e.value.style.title.text), m = d({
|
|
81
81
|
showTable: e.value.table.show,
|
|
82
82
|
showTooltip: e.value.style.tooltip.show
|
|
83
|
-
}), p =
|
|
83
|
+
}), p = d({
|
|
84
84
|
height: e.value.style.height,
|
|
85
85
|
width: e.value.style.width
|
|
86
|
-
}), o =
|
|
86
|
+
}), o = x(() => {
|
|
87
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
88
|
return {
|
|
89
89
|
top: e.value.style.layout.padding.top,
|
|
@@ -102,16 +102,16 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
102
102
|
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
}), Fe =
|
|
106
|
-
const t = Me(
|
|
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
107
|
for (let a = 0; a <= 5; a += 1) {
|
|
108
|
-
const
|
|
108
|
+
const n = t * a, b = t * (a - 5);
|
|
109
109
|
s.push({
|
|
110
|
-
value:
|
|
111
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width +
|
|
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
112
|
}), l.push({
|
|
113
|
-
value: Math.abs(
|
|
114
|
-
x: o.value.left + o.value.width / 2 +
|
|
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
115
|
});
|
|
116
116
|
}
|
|
117
117
|
return {
|
|
@@ -125,18 +125,18 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
125
125
|
let a;
|
|
126
126
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
127
127
|
}
|
|
128
|
-
const
|
|
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
129
|
segment: t[0],
|
|
130
130
|
age: t[1],
|
|
131
131
|
left: {
|
|
132
132
|
value: t[2],
|
|
133
|
-
proportionToMax: t[2] /
|
|
133
|
+
proportionToMax: t[2] / N.value
|
|
134
134
|
},
|
|
135
135
|
right: {
|
|
136
136
|
value: t[3],
|
|
137
|
-
proportionToMax: t[3] /
|
|
137
|
+
proportionToMax: t[3] / N.value
|
|
138
138
|
}
|
|
139
|
-
}))), O =
|
|
139
|
+
}))), O = x(() => Pe.value.map((t, s) => {
|
|
140
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
141
|
return {
|
|
142
142
|
segment: t.segment,
|
|
@@ -158,9 +158,9 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
158
158
|
height: a
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
})), j =
|
|
162
|
-
function
|
|
163
|
-
|
|
161
|
+
})), j = d(null);
|
|
162
|
+
function Re(t, s) {
|
|
163
|
+
U.value = t, j.value = {
|
|
164
164
|
datapoint: s,
|
|
165
165
|
seriesIndex: t,
|
|
166
166
|
series: O.value,
|
|
@@ -191,26 +191,26 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
191
191
|
});
|
|
192
192
|
else {
|
|
193
193
|
let a = "";
|
|
194
|
-
const
|
|
195
|
-
a += `<div><b>${
|
|
194
|
+
const n = O.value[t];
|
|
195
|
+
a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${T(
|
|
196
196
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
197
|
-
c(
|
|
198
|
-
A({ v: c(
|
|
197
|
+
c(n.age),
|
|
198
|
+
A({ v: c(n.age) }),
|
|
199
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_${
|
|
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
201
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
202
|
-
c(
|
|
203
|
-
A({ v: c(
|
|
202
|
+
c(n.left.value),
|
|
203
|
+
A({ v: c(n.left.value) }),
|
|
204
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_${
|
|
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
206
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
207
|
-
c(
|
|
208
|
-
A({ v: c(
|
|
207
|
+
c(n.right.value),
|
|
208
|
+
A({ v: c(n.right.value) }),
|
|
209
209
|
{ datapoint: s, seriesIndex: t }
|
|
210
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
211
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
212
|
-
c(
|
|
213
|
-
A({ v: c(
|
|
212
|
+
c(n.right.value) + c(n.left.value),
|
|
213
|
+
A({ v: c(n.right.value) + c(n.left.value) }),
|
|
214
214
|
{ datapoint: s, seriesIndex: t }
|
|
215
215
|
)}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
|
|
216
216
|
}
|
|
@@ -218,17 +218,17 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
218
218
|
}
|
|
219
219
|
function ye(t = null) {
|
|
220
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((
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l),
|
|
228
|
-
t ? t(
|
|
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
229
|
});
|
|
230
230
|
}
|
|
231
|
-
const D =
|
|
231
|
+
const D = x(() => {
|
|
232
232
|
const t = [
|
|
233
233
|
e.value.translations.year,
|
|
234
234
|
e.value.translations.age,
|
|
@@ -255,30 +255,37 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
255
255
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
256
256
|
};
|
|
257
257
|
return { head: t, body: s, config: l, colNames: t };
|
|
258
|
-
}), I =
|
|
258
|
+
}), I = d(!1);
|
|
259
259
|
function he(t) {
|
|
260
260
|
I.value = t, K.value += 1;
|
|
261
261
|
}
|
|
262
262
|
function ce() {
|
|
263
|
-
|
|
263
|
+
m.value.showTable = !m.value.showTable;
|
|
264
264
|
}
|
|
265
265
|
function fe() {
|
|
266
|
-
|
|
266
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
267
267
|
}
|
|
268
|
-
const G =
|
|
268
|
+
const G = d(!1);
|
|
269
269
|
function H() {
|
|
270
270
|
G.value = !G.value;
|
|
271
271
|
}
|
|
272
|
-
async function
|
|
273
|
-
if (!
|
|
274
|
-
const {
|
|
275
|
-
return {
|
|
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
|
+
};
|
|
276
283
|
}
|
|
277
284
|
return ke({
|
|
278
|
-
getImage:
|
|
279
|
-
generatePdf:
|
|
285
|
+
getImage: Ne,
|
|
286
|
+
generatePdf: ve,
|
|
280
287
|
generateCsv: ye,
|
|
281
|
-
generateImage:
|
|
288
|
+
generateImage: de,
|
|
282
289
|
toggleTable: ce,
|
|
283
290
|
toggleTooltip: fe,
|
|
284
291
|
toggleAnnotator: H,
|
|
@@ -286,8 +293,8 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
286
293
|
}), (t, s) => (u(), r("div", {
|
|
287
294
|
class: pe(`vue-ui-age-pyramid ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
288
295
|
ref_key: "agePyramid",
|
|
289
|
-
ref:
|
|
290
|
-
id: `vue-ui-age-pyramid_${
|
|
296
|
+
ref: k,
|
|
297
|
+
id: `vue-ui-age-pyramid_${w.value}`,
|
|
291
298
|
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
292
299
|
onMouseenter: s[2] || (s[2] = () => i(ae)(!0)),
|
|
293
300
|
onMouseleave: s[3] || (s[3] = () => i(ae)(!1))
|
|
@@ -327,7 +334,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
327
334
|
}
|
|
328
335
|
}, null, 8, ["config"]))
|
|
329
336
|
], 512)) : y("", !0),
|
|
330
|
-
e.value.userOptions.show &&
|
|
337
|
+
e.value.userOptions.show && E.value && (i(oe) || i(X)) ? (u(), F(i(Se), {
|
|
331
338
|
ref_key: "details",
|
|
332
339
|
ref: Oe,
|
|
333
340
|
key: `user_options_${K.value}`,
|
|
@@ -335,7 +342,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
335
342
|
color: e.value.style.color,
|
|
336
343
|
isImaging: i(ne),
|
|
337
344
|
isPrinting: i(re),
|
|
338
|
-
uid:
|
|
345
|
+
uid: w.value,
|
|
339
346
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
340
347
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
341
348
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -343,18 +350,18 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
343
350
|
hasTable: e.value.userOptions.buttons.table,
|
|
344
351
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
345
352
|
isFullscreen: I.value,
|
|
346
|
-
isTooltip:
|
|
353
|
+
isTooltip: m.value.showTooltip,
|
|
347
354
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
348
|
-
chartElement:
|
|
355
|
+
chartElement: k.value,
|
|
349
356
|
position: e.value.userOptions.position,
|
|
350
357
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
351
358
|
isAnnotation: G.value,
|
|
352
359
|
callbacks: e.value.userOptions.callbacks,
|
|
353
360
|
printScale: e.value.userOptions.print.scale,
|
|
354
361
|
onToggleFullscreen: he,
|
|
355
|
-
onGeneratePdf: i(
|
|
362
|
+
onGeneratePdf: i(ve),
|
|
356
363
|
onGenerateCsv: ye,
|
|
357
|
-
onGenerateImage: i(
|
|
364
|
+
onGenerateImage: i(de),
|
|
358
365
|
onToggleTable: ce,
|
|
359
366
|
onToggleTooltip: fe,
|
|
360
367
|
onToggleAnnotator: H,
|
|
@@ -419,7 +426,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
419
426
|
key: "7"
|
|
420
427
|
} : void 0
|
|
421
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),
|
|
422
|
-
|
|
429
|
+
E.value ? (u(), r("svg", {
|
|
423
430
|
key: 4,
|
|
424
431
|
ref_key: "svgRef",
|
|
425
432
|
ref: se,
|
|
@@ -441,42 +448,42 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
441
448
|
}, [
|
|
442
449
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
443
450
|
], 8, nt)) : y("", !0),
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
id: `age_pyramid_left_${
|
|
451
|
+
v("defs", null, [
|
|
452
|
+
v("linearGradient", {
|
|
453
|
+
id: `age_pyramid_left_${w.value}`,
|
|
447
454
|
x1: "0%",
|
|
448
455
|
y1: "0%",
|
|
449
456
|
x2: "100%",
|
|
450
457
|
y2: "0%"
|
|
451
458
|
}, [
|
|
452
|
-
|
|
459
|
+
v("stop", {
|
|
453
460
|
offset: "0%",
|
|
454
461
|
"stop-color": e.value.style.layout.bars.left.color
|
|
455
|
-
}, null, 8,
|
|
456
|
-
|
|
462
|
+
}, null, 8, dt),
|
|
463
|
+
v("stop", {
|
|
457
464
|
offset: "100%",
|
|
458
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)
|
|
459
466
|
}, null, 8, yt)
|
|
460
|
-
], 8,
|
|
461
|
-
|
|
462
|
-
id: `age_pyramid_right_${
|
|
467
|
+
], 8, vt),
|
|
468
|
+
v("linearGradient", {
|
|
469
|
+
id: `age_pyramid_right_${w.value}`,
|
|
463
470
|
x1: "0%",
|
|
464
471
|
y1: "0%",
|
|
465
472
|
x2: "100%",
|
|
466
473
|
y2: "0%"
|
|
467
474
|
}, [
|
|
468
|
-
|
|
475
|
+
v("stop", {
|
|
469
476
|
offset: "0%",
|
|
470
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)
|
|
471
478
|
}, null, 8, ct),
|
|
472
|
-
|
|
479
|
+
v("stop", {
|
|
473
480
|
offset: "100%",
|
|
474
481
|
"stop-color": e.value.style.layout.bars.right.color
|
|
475
482
|
}, null, 8, ft)
|
|
476
483
|
], 8, ht)
|
|
477
484
|
]),
|
|
478
|
-
(u(!0), r(
|
|
479
|
-
|
|
485
|
+
(u(!0), r(R, null, B(O.value, (l, a) => (u(), r("g", null, [
|
|
486
|
+
v("rect", {
|
|
480
487
|
x: l.left.x,
|
|
481
488
|
y: l.left.y,
|
|
482
489
|
width: i(c)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
@@ -484,15 +491,15 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
484
491
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
485
492
|
rx: e.value.style.layout.bars.borderRadius
|
|
486
493
|
}, null, 8, gt),
|
|
487
|
-
|
|
494
|
+
v("rect", {
|
|
488
495
|
x: l.left.x,
|
|
489
496
|
y: l.left.y,
|
|
490
497
|
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
491
498
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
492
|
-
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${
|
|
499
|
+
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : l.left.color,
|
|
493
500
|
rx: e.value.style.layout.bars.borderRadius
|
|
494
501
|
}, null, 8, pt),
|
|
495
|
-
|
|
502
|
+
v("rect", {
|
|
496
503
|
x: l.right.x,
|
|
497
504
|
y: l.right.y,
|
|
498
505
|
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
@@ -500,36 +507,36 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
500
507
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
501
508
|
rx: e.value.style.layout.bars.borderRadius
|
|
502
509
|
}, null, 8, bt),
|
|
503
|
-
|
|
510
|
+
v("rect", {
|
|
504
511
|
x: l.right.x,
|
|
505
512
|
y: l.right.y,
|
|
506
513
|
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
507
514
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
508
|
-
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${
|
|
515
|
+
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
|
|
509
516
|
rx: e.value.style.layout.bars.borderRadius
|
|
510
517
|
}, null, 8, xt)
|
|
511
518
|
]))), 256)),
|
|
512
|
-
|
|
519
|
+
v("g", null, [
|
|
513
520
|
e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", mt, [
|
|
514
|
-
|
|
521
|
+
v("text", {
|
|
515
522
|
x: o.value.left,
|
|
516
523
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
517
524
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
518
525
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
519
526
|
"text-anchor": "start",
|
|
520
527
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
521
|
-
},
|
|
522
|
-
|
|
528
|
+
}, C(e.value.translations.female), 9, wt),
|
|
529
|
+
v("text", {
|
|
523
530
|
x: o.value.right,
|
|
524
531
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
525
532
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
526
533
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
527
534
|
"text-anchor": "end",
|
|
528
535
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
529
|
-
},
|
|
536
|
+
}, C(e.value.translations.male), 9, kt)
|
|
530
537
|
])) : y("", !0),
|
|
531
538
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", _t, [
|
|
532
|
-
(u(!0), r(
|
|
539
|
+
(u(!0), r(R, null, B(Fe.value, (l, a) => (u(), r(R, null, [
|
|
533
540
|
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
|
|
534
541
|
key: 0,
|
|
535
542
|
x: o.value.centerX,
|
|
@@ -538,7 +545,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
538
545
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
539
546
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
540
547
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
541
|
-
},
|
|
548
|
+
}, C(i(T)(
|
|
542
549
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
543
550
|
l,
|
|
544
551
|
i(A)({ v: l }),
|
|
@@ -548,7 +555,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
548
555
|
])) : y("", !0),
|
|
549
556
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", $t, [
|
|
550
557
|
e.value.style.layout.grid.show ? (u(), r("g", Tt, [
|
|
551
|
-
|
|
558
|
+
v("line", {
|
|
552
559
|
x1: S.value.right[0].x,
|
|
553
560
|
x2: S.value.right.at(-1).x,
|
|
554
561
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
@@ -557,7 +564,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
557
564
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
558
565
|
"stroke-linecap": "round"
|
|
559
566
|
}, null, 8, At),
|
|
560
|
-
|
|
567
|
+
v("line", {
|
|
561
568
|
x1: S.value.left[0].x,
|
|
562
569
|
x2: S.value.left.at(-1).x,
|
|
563
570
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
@@ -567,7 +574,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
567
574
|
"stroke-linecap": "round"
|
|
568
575
|
}, null, 8, Lt)
|
|
569
576
|
])) : y("", !0),
|
|
570
|
-
(u(!0), r(
|
|
577
|
+
(u(!0), r(R, null, B(S.value.right, (l, a) => (u(), r("g", null, [
|
|
571
578
|
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
572
579
|
key: 0,
|
|
573
580
|
x1: l.x,
|
|
@@ -578,14 +585,14 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
578
585
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
579
586
|
"stroke-linecap": "round"
|
|
580
587
|
}, null, 8, St)) : y("", !0),
|
|
581
|
-
|
|
588
|
+
v("text", {
|
|
582
589
|
x: l.x,
|
|
583
590
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
584
591
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
585
592
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
586
593
|
"text-anchor": "middle",
|
|
587
594
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
588
|
-
},
|
|
595
|
+
}, C(i(T)(
|
|
589
596
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
590
597
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
591
598
|
i(A)({
|
|
@@ -594,7 +601,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
594
601
|
{ datapoint: l, seriesIndex: a }
|
|
595
602
|
)), 9, zt)
|
|
596
603
|
]))), 256)),
|
|
597
|
-
(u(!0), r(
|
|
604
|
+
(u(!0), r(R, null, B(S.value.left, (l, a) => (u(), r("g", null, [
|
|
598
605
|
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
599
606
|
key: 0,
|
|
600
607
|
x1: l.x,
|
|
@@ -605,14 +612,14 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
605
612
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
606
613
|
"stroke-linecap": "round"
|
|
607
614
|
}, null, 8, Ot)) : y("", !0),
|
|
608
|
-
|
|
615
|
+
v("text", {
|
|
609
616
|
x: l.x,
|
|
610
617
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
611
618
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
612
619
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
613
620
|
"text-anchor": "middle",
|
|
614
621
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
615
|
-
},
|
|
622
|
+
}, C(i(T)(
|
|
616
623
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
617
624
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
618
625
|
i(A)({
|
|
@@ -621,26 +628,26 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
621
628
|
{ datapoint: l, seriesIndex: a }
|
|
622
629
|
)), 9, It)
|
|
623
630
|
]))), 256)),
|
|
624
|
-
|
|
631
|
+
v("text", {
|
|
625
632
|
x: o.value.right,
|
|
626
633
|
y: p.value.height,
|
|
627
634
|
"text-anchor": "end",
|
|
628
635
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
629
636
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
630
637
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
631
|
-
},
|
|
638
|
+
}, C(e.value.style.layout.dataLabels.xAxis.translation), 9, Ft)
|
|
632
639
|
])) : y("", !0)
|
|
633
640
|
]),
|
|
634
|
-
(u(!0), r(
|
|
635
|
-
|
|
641
|
+
(u(!0), r(R, null, B(J.dataset, (l, a) => (u(), r("g", null, [
|
|
642
|
+
v("rect", {
|
|
636
643
|
x: o.value.left,
|
|
637
644
|
y: o.value.top + o.value.height / z.value * a - e.value.style.layout.bars.gap / 2,
|
|
638
645
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
639
646
|
height: o.value.height / z.value <= 0 ? 1e-4 : o.value.height / z.value,
|
|
640
|
-
fill:
|
|
641
|
-
onMouseover: (
|
|
642
|
-
onMouseleave: s[0] || (s[0] = (
|
|
643
|
-
|
|
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;
|
|
644
651
|
})
|
|
645
652
|
}, null, 40, Mt)
|
|
646
653
|
]))), 256)),
|
|
@@ -649,7 +656,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
649
656
|
t.$slots.watermark ? (u(), r("div", Pt, [
|
|
650
657
|
h(t.$slots, "watermark", M(P({ isPrinting: i(re) || i(ne) })), void 0, !0)
|
|
651
658
|
])) : y("", !0),
|
|
652
|
-
|
|
659
|
+
E.value ? y("", !0) : (u(), F(i(Ae), {
|
|
653
660
|
key: 6,
|
|
654
661
|
config: {
|
|
655
662
|
type: "pyramid",
|
|
@@ -671,7 +678,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
671
678
|
h(t.$slots, "source", {}, void 0, !0)
|
|
672
679
|
], 512)) : y("", !0),
|
|
673
680
|
be(i(Le), {
|
|
674
|
-
show:
|
|
681
|
+
show: m.value.showTooltip && V.value,
|
|
675
682
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
676
683
|
color: e.value.style.tooltip.color,
|
|
677
684
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -681,7 +688,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
681
688
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
682
689
|
position: e.value.style.tooltip.position,
|
|
683
690
|
offsetY: e.value.style.tooltip.offsetY,
|
|
684
|
-
parent:
|
|
691
|
+
parent: k.value,
|
|
685
692
|
content: W.value,
|
|
686
693
|
isFullscreen: I.value,
|
|
687
694
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
@@ -694,11 +701,11 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
694
701
|
]),
|
|
695
702
|
_: 3
|
|
696
703
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
697
|
-
|
|
704
|
+
E.value ? (u(), F(i(_e), {
|
|
698
705
|
key: 8,
|
|
699
706
|
hideDetails: "",
|
|
700
707
|
config: {
|
|
701
|
-
open:
|
|
708
|
+
open: m.value.showTable,
|
|
702
709
|
maxHeight: 1e4,
|
|
703
710
|
body: {
|
|
704
711
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -718,13 +725,13 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
718
725
|
body: D.value.body,
|
|
719
726
|
config: D.value.config,
|
|
720
727
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
721
|
-
onClose: s[1] || (s[1] = (l) =>
|
|
728
|
+
onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
|
|
722
729
|
}, {
|
|
723
730
|
th: f(({ th: l }) => [
|
|
724
|
-
xe(
|
|
731
|
+
xe(C(l), 1)
|
|
725
732
|
]),
|
|
726
733
|
td: f(({ td: l }) => [
|
|
727
|
-
xe(
|
|
734
|
+
xe(C(l), 1)
|
|
728
735
|
]),
|
|
729
736
|
_: 1
|
|
730
737
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -733,7 +740,7 @@ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"]
|
|
|
733
740
|
}, 8, ["config"])) : y("", !0)
|
|
734
741
|
], 46, ut));
|
|
735
742
|
}
|
|
736
|
-
}, Ht = /* @__PURE__ */ it(
|
|
743
|
+
}, Ht = /* @__PURE__ */ it(Rt, [["__scopeId", "data-v-2c6ac5e8"]]);
|
|
737
744
|
export {
|
|
738
745
|
Ht as default
|
|
739
746
|
};
|