vue-data-ui 2.12.8-beta.3 → 2.13.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 +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Ue, c as Ve, a as We, o as Xe, e as je, v as c, X as He, s as
|
|
1
|
+
import { defineAsyncComponent as C, computed as b, ref as v, watch as Re, shallowRef as fe, onMounted as Be, onBeforeUnmount as De, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as ge, createBlock as I, createCommentVNode as y, renderSlot as h, createVNode as pe, createSlots as Ee, withCtx as f, normalizeProps as F, guardReactiveProps as M, createElementVNode as n, Fragment as P, renderList as B, toDisplayString as _, createTextVNode as be, nextTick as Ge } from "vue";
|
|
2
|
+
import { u as Ue, c as Ve, a as We, o as Xe, e as je, v as c, X as He, s as q, w as xe, i as $, f as T, q as Ye, r as qe, x as Je, y as Ke } from "./index-BXbyT0Qn.js";
|
|
3
3
|
import { t as Qe, u as Ze } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as me } from "./useNestedProp-
|
|
5
|
-
import { u as et } from "./usePrinter-
|
|
4
|
+
import { u as me } from "./useNestedProp-DVZpeH84.js";
|
|
5
|
+
import { u as et } from "./usePrinter-aKh5-HcK.js";
|
|
6
6
|
import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import at from "./Title-
|
|
8
|
+
import at from "./Title-DoWqzga-.js";
|
|
9
9
|
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], rt = ["id"], nt = ["stop-color"], dt = ["stop-color"], vt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ct = ["x", "y", "width", "height", "fill", "rx"], ft = ["x", "y", "width", "height", "fill", "rx"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = { key: 0 }, xt = ["x", "y", "fill", "font-size", "font-weight"], mt = ["x", "y", "fill", "font-size", "font-weight"], wt = { key: 1 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = { key: 2 }, Ct = { key: 0 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], It = ["x", "y", "width", "height", "fill", "onMouseover"], Ft = {
|
|
11
11
|
key: 5,
|
|
@@ -26,12 +26,12 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const ke =
|
|
31
|
-
get: () =>
|
|
29
|
+
setup(J, { expose: we }) {
|
|
30
|
+
const ke = C(() => import("./vue-ui-accordion-CXsjHe1y.js")), _e = C(() => import("./DataTable-DBkfb6pd.js")), Ce = C(() => import("./PackageVersion-C5fpg4GN.js")), $e = C(() => import("./PenAndPaper-BRkuVFb4.js")), Te = C(() => import("./vue-ui-skeleton-Fxr752Oi.js")), Ae = C(() => import("./Tooltip-DYCBNM-_.js")), Le = C(() => import("./UserOptions-B3q-xfQV.js")), { vue_ui_age_pyramid: Se } = Ue(), g = J, D = b(() => !!g.dataset && g.dataset.length), m = v(Ve()), ze = v(null), V = v(!1), W = v(""), E = v(null), K = v(0), N = v(null), Q = v(null), Z = v(null), ee = v(null), te = v(0), le = v(0), e = b({
|
|
31
|
+
get: () => ie(),
|
|
32
32
|
set: (t) => t
|
|
33
|
-
}), { userOptionsVisible:
|
|
34
|
-
function
|
|
33
|
+
}), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = tt({ config: e.value }), { svgRef: se } = lt({ config: e.value.style.title });
|
|
34
|
+
function ie() {
|
|
35
35
|
const t = me({
|
|
36
36
|
userConfig: g.config,
|
|
37
37
|
defaultConfig: Se
|
|
@@ -44,35 +44,35 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
44
44
|
} : t;
|
|
45
45
|
}
|
|
46
46
|
Re(() => g.config, (t) => {
|
|
47
|
-
e.value =
|
|
47
|
+
e.value = ie(), X.value = !e.value.userOptions.showOnChartHover, ue(), te.value += 1, le.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
|
|
48
48
|
}, { deep: !0 });
|
|
49
|
-
const
|
|
49
|
+
const k = fe(null), A = fe(null);
|
|
50
50
|
Be(() => {
|
|
51
|
-
|
|
51
|
+
ue();
|
|
52
52
|
});
|
|
53
|
-
function
|
|
53
|
+
function ue() {
|
|
54
54
|
if (Xe(g.dataset) && je({
|
|
55
55
|
componentName: "VueUiAgePyramid",
|
|
56
56
|
type: "dataset"
|
|
57
57
|
}), e.value.responsive) {
|
|
58
58
|
const t = Qe(() => {
|
|
59
59
|
const { width: s, height: l } = Ze({
|
|
60
|
-
chart:
|
|
61
|
-
title: e.value.style.title.text ?
|
|
62
|
-
source:
|
|
63
|
-
noTitle:
|
|
60
|
+
chart: N.value,
|
|
61
|
+
title: e.value.style.title.text ? Q.value : null,
|
|
62
|
+
source: Z.value,
|
|
63
|
+
noTitle: ee.value
|
|
64
64
|
});
|
|
65
65
|
requestAnimationFrame(() => {
|
|
66
66
|
p.value.width = s, p.value.height = l;
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(t), A.value = N.value.parentNode, k.value.observe(A.value);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
De(() => {
|
|
73
|
-
|
|
73
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
|
|
74
74
|
});
|
|
75
|
-
const { isPrinting:
|
|
75
|
+
const { isPrinting: re, isImaging: ne, generatePdf: de, generateImage: ve } = et({
|
|
76
76
|
elementId: `vue-ui-age-pyramid_${m.value}`,
|
|
77
77
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
78
78
|
options: e.value.userOptions.print
|
|
@@ -101,16 +101,16 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
101
101
|
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
}), Ie = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])),
|
|
105
|
-
const t = Fe(
|
|
104
|
+
}), Ie = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), L = b(() => {
|
|
105
|
+
const t = Fe(R.value / 5), s = [], l = [];
|
|
106
106
|
for (let a = 0; a <= 5; a += 1) {
|
|
107
|
-
const
|
|
107
|
+
const d = t * a, w = t * (a - 5);
|
|
108
108
|
s.push({
|
|
109
|
-
value:
|
|
110
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width +
|
|
109
|
+
value: d,
|
|
110
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + d / R.value * o.value.leftChart.width
|
|
111
111
|
}), l.push({
|
|
112
|
-
value: Math.abs(
|
|
113
|
-
x: o.value.left + o.value.width / 2 +
|
|
112
|
+
value: Math.abs(w),
|
|
113
|
+
x: o.value.left + o.value.width / 2 + w / R.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
return {
|
|
@@ -124,19 +124,19 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
124
124
|
let a;
|
|
125
125
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const R = b(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => c(s))))), S = b(() => g.dataset.length), Me = b(() => g.dataset.map((t) => ({
|
|
128
128
|
segment: t[0],
|
|
129
129
|
age: t[1],
|
|
130
130
|
left: {
|
|
131
131
|
value: t[2],
|
|
132
|
-
proportionToMax: t[2] /
|
|
132
|
+
proportionToMax: t[2] / R.value
|
|
133
133
|
},
|
|
134
134
|
right: {
|
|
135
135
|
value: t[3],
|
|
136
|
-
proportionToMax: t[3] /
|
|
136
|
+
proportionToMax: t[3] / R.value
|
|
137
137
|
}
|
|
138
|
-
}))),
|
|
139
|
-
const l = o.value.top + o.value.height /
|
|
138
|
+
}))), z = b(() => Me.value.map((t, s) => {
|
|
139
|
+
const l = o.value.top + o.value.height / S.value * s, a = o.value.height / S.value - e.value.style.layout.bars.gap;
|
|
140
140
|
return {
|
|
141
141
|
segment: t.segment,
|
|
142
142
|
age: t.age,
|
|
@@ -157,12 +157,12 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
157
157
|
height: a
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
|
-
})),
|
|
160
|
+
})), j = v(null);
|
|
161
161
|
function Pe(t, s) {
|
|
162
|
-
|
|
162
|
+
E.value = t, j.value = {
|
|
163
163
|
datapoint: s,
|
|
164
164
|
seriesIndex: t,
|
|
165
|
-
series:
|
|
165
|
+
series: z.value,
|
|
166
166
|
config: e.value
|
|
167
167
|
};
|
|
168
168
|
const l = e.value.style.tooltip.customFormat;
|
|
@@ -174,10 +174,10 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
174
174
|
left: s[2],
|
|
175
175
|
right: s[3]
|
|
176
176
|
},
|
|
177
|
-
series:
|
|
177
|
+
series: z.value,
|
|
178
178
|
config: e.value
|
|
179
179
|
})))
|
|
180
|
-
|
|
180
|
+
W.value = l({
|
|
181
181
|
seriesIndex: t,
|
|
182
182
|
datapoint: {
|
|
183
183
|
segment: s[0],
|
|
@@ -185,49 +185,49 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
185
185
|
left: s[2],
|
|
186
186
|
right: s[3]
|
|
187
187
|
},
|
|
188
|
-
series:
|
|
188
|
+
series: z.value,
|
|
189
189
|
config: e.value
|
|
190
190
|
});
|
|
191
191
|
else {
|
|
192
192
|
let a = "";
|
|
193
|
-
const
|
|
194
|
-
a += `<div><b>${
|
|
193
|
+
const d = z.value[t];
|
|
194
|
+
a += `<div><b>${d.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${$(
|
|
195
195
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
196
|
-
c(
|
|
197
|
-
|
|
196
|
+
c(d.age),
|
|
197
|
+
T({ v: c(d.age) }),
|
|
198
198
|
{ datapoint: s, seriesIndex: t }
|
|
199
|
-
)}</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_${m.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${
|
|
199
|
+
)}</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_${m.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${$(
|
|
200
200
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
201
|
-
c(
|
|
202
|
-
|
|
201
|
+
c(d.left.value),
|
|
202
|
+
T({ v: c(d.left.value) }),
|
|
203
203
|
{ datapoint: s, seriesIndex: t }
|
|
204
|
-
)}</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_${m.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${
|
|
204
|
+
)}</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_${m.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${$(
|
|
205
205
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
206
|
-
c(
|
|
207
|
-
|
|
206
|
+
c(d.right.value),
|
|
207
|
+
T({ v: c(d.right.value) }),
|
|
208
208
|
{ datapoint: s, seriesIndex: t }
|
|
209
|
-
)}</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>${
|
|
209
|
+
)}</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>${$(
|
|
210
210
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
211
|
-
c(
|
|
212
|
-
|
|
211
|
+
c(d.right.value) + c(d.left.value),
|
|
212
|
+
T({ v: c(d.right.value) + c(d.left.value) }),
|
|
213
213
|
{ datapoint: s, seriesIndex: t }
|
|
214
|
-
)}</b></div></div>`, a += "</div>",
|
|
214
|
+
)}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
V.value = !0;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ye(t = null) {
|
|
219
219
|
Ge(() => {
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
]),
|
|
227
|
-
qe({ csvContent:
|
|
220
|
+
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((w) => [
|
|
221
|
+
w[0],
|
|
222
|
+
w[1],
|
|
223
|
+
w[2],
|
|
224
|
+
w[3],
|
|
225
|
+
w[2] + w[3]
|
|
226
|
+
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), d = Ye(a);
|
|
227
|
+
t ? t(d) : qe({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
const
|
|
230
|
+
const G = b(() => {
|
|
231
231
|
const t = [
|
|
232
232
|
e.value.translations.year,
|
|
233
233
|
e.value.translations.age,
|
|
@@ -254,59 +254,59 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
254
254
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
255
255
|
};
|
|
256
256
|
return { head: t, body: s, config: l, colNames: t };
|
|
257
|
-
}),
|
|
257
|
+
}), O = v(!1);
|
|
258
258
|
function Ne(t) {
|
|
259
|
-
|
|
259
|
+
O.value = t, K.value += 1;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function he() {
|
|
262
262
|
x.value.showTable = !x.value.showTable;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function ce() {
|
|
265
265
|
x.value.showTooltip = !x.value.showTooltip;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
function
|
|
269
|
-
|
|
267
|
+
const U = v(!1);
|
|
268
|
+
function H() {
|
|
269
|
+
U.value = !U.value;
|
|
270
270
|
}
|
|
271
271
|
return we({
|
|
272
|
-
generatePdf:
|
|
273
|
-
generateCsv:
|
|
274
|
-
generateImage:
|
|
275
|
-
toggleTable:
|
|
276
|
-
toggleTooltip:
|
|
277
|
-
toggleAnnotator:
|
|
272
|
+
generatePdf: de,
|
|
273
|
+
generateCsv: ye,
|
|
274
|
+
generateImage: ve,
|
|
275
|
+
toggleTable: he,
|
|
276
|
+
toggleTooltip: ce,
|
|
277
|
+
toggleAnnotator: H
|
|
278
278
|
}), (t, s) => (u(), r("div", {
|
|
279
|
-
class: ge(`vue-ui-age-pyramid ${
|
|
279
|
+
class: ge(`vue-ui-age-pyramid ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
280
280
|
ref_key: "agePyramid",
|
|
281
|
-
ref:
|
|
281
|
+
ref: N,
|
|
282
282
|
id: `vue-ui-age-pyramid_${m.value}`,
|
|
283
|
-
style:
|
|
284
|
-
onMouseenter: s[2] || (s[2] = () => i(
|
|
285
|
-
onMouseleave: s[3] || (s[3] = () => i(
|
|
283
|
+
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
284
|
+
onMouseenter: s[2] || (s[2] = () => i(ae)(!0)),
|
|
285
|
+
onMouseleave: s[3] || (s[3] = () => i(ae)(!1))
|
|
286
286
|
}, [
|
|
287
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
287
|
+
e.value.userOptions.buttons.annotator ? (u(), I(i($e), {
|
|
288
288
|
key: 0,
|
|
289
|
-
svgRef: i(
|
|
289
|
+
svgRef: i(se),
|
|
290
290
|
backgroundColor: e.value.style.backgroundColor,
|
|
291
291
|
color: e.value.style.color,
|
|
292
|
-
active:
|
|
293
|
-
onClose:
|
|
292
|
+
active: U.value,
|
|
293
|
+
onClose: H
|
|
294
294
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
295
295
|
Oe.value ? (u(), r("div", {
|
|
296
296
|
key: 1,
|
|
297
297
|
ref_key: "noTitle",
|
|
298
|
-
ref:
|
|
298
|
+
ref: ee,
|
|
299
299
|
class: "vue-data-ui-no-title-space",
|
|
300
300
|
style: "height:36px; width: 100%;background:transparent"
|
|
301
301
|
}, null, 512)) : y("", !0),
|
|
302
302
|
e.value.style.title.text ? (u(), r("div", {
|
|
303
303
|
key: 2,
|
|
304
304
|
ref_key: "chartTitle",
|
|
305
|
-
ref:
|
|
305
|
+
ref: Q,
|
|
306
306
|
style: "width:100%;background:transparent"
|
|
307
307
|
}, [
|
|
308
|
-
(u(),
|
|
309
|
-
key: `title_${
|
|
308
|
+
(u(), I(at, {
|
|
309
|
+
key: `title_${te.value}`,
|
|
310
310
|
config: {
|
|
311
311
|
title: {
|
|
312
312
|
cy: "pyramid-div-title",
|
|
@@ -319,14 +319,14 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
319
319
|
}
|
|
320
320
|
}, null, 8, ["config"]))
|
|
321
321
|
], 512)) : y("", !0),
|
|
322
|
-
e.value.userOptions.show &&
|
|
322
|
+
e.value.userOptions.show && D.value && (i(oe) || i(X)) ? (u(), I(i(Le), {
|
|
323
323
|
ref_key: "details",
|
|
324
324
|
ref: ze,
|
|
325
|
-
key: `user_options_${
|
|
325
|
+
key: `user_options_${K.value}`,
|
|
326
326
|
backgroundColor: e.value.style.backgroundColor,
|
|
327
327
|
color: e.value.style.color,
|
|
328
|
-
isImaging: i(
|
|
329
|
-
isPrinting: i(
|
|
328
|
+
isImaging: i(ne),
|
|
329
|
+
isPrinting: i(re),
|
|
330
330
|
uid: m.value,
|
|
331
331
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
332
332
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -334,29 +334,29 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
334
334
|
hasImg: e.value.userOptions.buttons.img,
|
|
335
335
|
hasTable: e.value.userOptions.buttons.table,
|
|
336
336
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
337
|
-
isFullscreen:
|
|
337
|
+
isFullscreen: O.value,
|
|
338
338
|
isTooltip: x.value.showTooltip,
|
|
339
339
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
340
|
-
chartElement:
|
|
340
|
+
chartElement: N.value,
|
|
341
341
|
position: e.value.userOptions.position,
|
|
342
342
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
343
|
-
isAnnotation:
|
|
343
|
+
isAnnotation: U.value,
|
|
344
344
|
callbacks: e.value.userOptions.callbacks,
|
|
345
345
|
onToggleFullscreen: Ne,
|
|
346
|
-
onGeneratePdf: i(
|
|
347
|
-
onGenerateCsv:
|
|
348
|
-
onGenerateImage: i(
|
|
349
|
-
onToggleTable:
|
|
350
|
-
onToggleTooltip:
|
|
351
|
-
onToggleAnnotator:
|
|
352
|
-
style:
|
|
353
|
-
visibility: i(
|
|
346
|
+
onGeneratePdf: i(de),
|
|
347
|
+
onGenerateCsv: ye,
|
|
348
|
+
onGenerateImage: i(ve),
|
|
349
|
+
onToggleTable: he,
|
|
350
|
+
onToggleTooltip: ce,
|
|
351
|
+
onToggleAnnotator: H,
|
|
352
|
+
style: Y({
|
|
353
|
+
visibility: i(oe) ? i(X) ? "visible" : "hidden" : "visible"
|
|
354
354
|
})
|
|
355
355
|
}, Ee({ _: 2 }, [
|
|
356
356
|
t.$slots.menuIcon ? {
|
|
357
357
|
name: "menuIcon",
|
|
358
358
|
fn: f(({ isOpen: l, color: a }) => [
|
|
359
|
-
h(t.$slots, "menuIcon",
|
|
359
|
+
h(t.$slots, "menuIcon", F(M({ isOpen: l, color: a })), void 0, !0)
|
|
360
360
|
]),
|
|
361
361
|
key: "0"
|
|
362
362
|
} : void 0,
|
|
@@ -398,26 +398,26 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
398
398
|
t.$slots.optionFullscreen ? {
|
|
399
399
|
name: "optionFullscreen",
|
|
400
400
|
fn: f(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
401
|
-
h(t.$slots, "optionFullscreen",
|
|
401
|
+
h(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
402
402
|
]),
|
|
403
403
|
key: "6"
|
|
404
404
|
} : void 0,
|
|
405
405
|
t.$slots.optionAnnotator ? {
|
|
406
406
|
name: "optionAnnotator",
|
|
407
407
|
fn: f(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
408
|
-
h(t.$slots, "optionAnnotator",
|
|
408
|
+
h(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
409
409
|
]),
|
|
410
410
|
key: "7"
|
|
411
411
|
} : void 0
|
|
412
412
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
413
|
-
|
|
413
|
+
D.value ? (u(), r("svg", {
|
|
414
414
|
key: 4,
|
|
415
415
|
ref_key: "svgRef",
|
|
416
|
-
ref:
|
|
416
|
+
ref: se,
|
|
417
417
|
xmlns: i(He),
|
|
418
|
-
class: ge({ "vue-data-ui-fullscreen--on":
|
|
418
|
+
class: ge({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
419
419
|
viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
|
|
420
|
-
style:
|
|
420
|
+
style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
421
421
|
}, [
|
|
422
422
|
pe(i(Ce)),
|
|
423
423
|
t.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
@@ -432,42 +432,42 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
432
432
|
}, [
|
|
433
433
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
434
434
|
], 8, ut)) : y("", !0),
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
n("defs", null, [
|
|
436
|
+
n("linearGradient", {
|
|
437
437
|
id: `age_pyramid_left_${m.value}`,
|
|
438
438
|
x1: "0%",
|
|
439
439
|
y1: "0%",
|
|
440
440
|
x2: "100%",
|
|
441
441
|
y2: "0%"
|
|
442
442
|
}, [
|
|
443
|
-
|
|
443
|
+
n("stop", {
|
|
444
444
|
offset: "0%",
|
|
445
445
|
"stop-color": e.value.style.layout.bars.left.color
|
|
446
446
|
}, null, 8, nt),
|
|
447
|
-
|
|
447
|
+
n("stop", {
|
|
448
448
|
offset: "100%",
|
|
449
|
-
"stop-color": i(
|
|
449
|
+
"stop-color": i(q)(i(xe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
450
450
|
}, null, 8, dt)
|
|
451
451
|
], 8, rt),
|
|
452
|
-
|
|
452
|
+
n("linearGradient", {
|
|
453
453
|
id: `age_pyramid_right_${m.value}`,
|
|
454
454
|
x1: "0%",
|
|
455
455
|
y1: "0%",
|
|
456
456
|
x2: "100%",
|
|
457
457
|
y2: "0%"
|
|
458
458
|
}, [
|
|
459
|
-
|
|
459
|
+
n("stop", {
|
|
460
460
|
offset: "0%",
|
|
461
|
-
"stop-color": i(
|
|
461
|
+
"stop-color": i(q)(i(xe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
462
462
|
}, null, 8, yt),
|
|
463
|
-
|
|
463
|
+
n("stop", {
|
|
464
464
|
offset: "100%",
|
|
465
465
|
"stop-color": e.value.style.layout.bars.right.color
|
|
466
466
|
}, null, 8, ht)
|
|
467
467
|
], 8, vt)
|
|
468
468
|
]),
|
|
469
|
-
(u(!0), r(
|
|
470
|
-
|
|
469
|
+
(u(!0), r(P, null, B(z.value, (l, a) => (u(), r("g", null, [
|
|
470
|
+
n("rect", {
|
|
471
471
|
x: l.left.x,
|
|
472
472
|
y: l.left.y,
|
|
473
473
|
width: i(c)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
@@ -475,7 +475,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
475
475
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
476
476
|
rx: e.value.style.layout.bars.borderRadius
|
|
477
477
|
}, null, 8, ct),
|
|
478
|
-
|
|
478
|
+
n("rect", {
|
|
479
479
|
x: l.left.x,
|
|
480
480
|
y: l.left.y,
|
|
481
481
|
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
@@ -483,7 +483,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
483
483
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : l.left.color,
|
|
484
484
|
rx: e.value.style.layout.bars.borderRadius
|
|
485
485
|
}, null, 8, ft),
|
|
486
|
-
|
|
486
|
+
n("rect", {
|
|
487
487
|
x: l.right.x,
|
|
488
488
|
y: l.right.y,
|
|
489
489
|
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
@@ -491,7 +491,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
491
491
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
492
492
|
rx: e.value.style.layout.bars.borderRadius
|
|
493
493
|
}, null, 8, gt),
|
|
494
|
-
|
|
494
|
+
n("rect", {
|
|
495
495
|
x: l.right.x,
|
|
496
496
|
y: l.right.y,
|
|
497
497
|
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
@@ -500,57 +500,57 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
500
500
|
rx: e.value.style.layout.bars.borderRadius
|
|
501
501
|
}, null, 8, pt)
|
|
502
502
|
]))), 256)),
|
|
503
|
-
|
|
503
|
+
n("g", null, [
|
|
504
504
|
e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", bt, [
|
|
505
|
-
|
|
505
|
+
n("text", {
|
|
506
506
|
x: o.value.left,
|
|
507
507
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
508
508
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
509
509
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
510
510
|
"text-anchor": "start",
|
|
511
511
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
512
|
-
},
|
|
513
|
-
|
|
512
|
+
}, _(e.value.translations.female), 9, xt),
|
|
513
|
+
n("text", {
|
|
514
514
|
x: o.value.right,
|
|
515
515
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
516
516
|
fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
|
|
517
517
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
518
518
|
"text-anchor": "end",
|
|
519
519
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
520
|
-
},
|
|
520
|
+
}, _(e.value.translations.male), 9, mt)
|
|
521
521
|
])) : y("", !0),
|
|
522
522
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", wt, [
|
|
523
|
-
(u(!0), r(
|
|
523
|
+
(u(!0), r(P, null, B(Ie.value, (l, a) => (u(), r(P, null, [
|
|
524
524
|
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
|
|
525
525
|
key: 0,
|
|
526
526
|
x: o.value.centerX,
|
|
527
|
-
y: o.value.top + o.value.height /
|
|
527
|
+
y: o.value.top + o.value.height / S.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
528
528
|
"text-anchor": "middle",
|
|
529
529
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
530
530
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
531
531
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
532
|
-
},
|
|
532
|
+
}, _(i($)(
|
|
533
533
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
534
534
|
l,
|
|
535
|
-
i(
|
|
535
|
+
i(T)({ v: l }),
|
|
536
536
|
{ datapoint: l, seriesIndex: a }
|
|
537
537
|
)), 9, kt)) : y("", !0)
|
|
538
538
|
], 64))), 256))
|
|
539
539
|
])) : y("", !0),
|
|
540
540
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", _t, [
|
|
541
541
|
e.value.style.layout.grid.show ? (u(), r("g", Ct, [
|
|
542
|
-
|
|
543
|
-
x1:
|
|
544
|
-
x2:
|
|
542
|
+
n("line", {
|
|
543
|
+
x1: L.value.right[0].x,
|
|
544
|
+
x2: L.value.right.at(-1).x,
|
|
545
545
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
546
546
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
547
547
|
stroke: e.value.style.layout.grid.stroke,
|
|
548
548
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
549
549
|
"stroke-linecap": "round"
|
|
550
550
|
}, null, 8, $t),
|
|
551
|
-
|
|
552
|
-
x1:
|
|
553
|
-
x2:
|
|
551
|
+
n("line", {
|
|
552
|
+
x1: L.value.left[0].x,
|
|
553
|
+
x2: L.value.left.at(-1).x,
|
|
554
554
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
555
555
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
556
556
|
stroke: e.value.style.layout.grid.stroke,
|
|
@@ -558,7 +558,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
558
558
|
"stroke-linecap": "round"
|
|
559
559
|
}, null, 8, Tt)
|
|
560
560
|
])) : y("", !0),
|
|
561
|
-
(u(!0), r(
|
|
561
|
+
(u(!0), r(P, null, B(L.value.right, (l, a) => (u(), r("g", null, [
|
|
562
562
|
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
563
563
|
key: 0,
|
|
564
564
|
x1: l.x,
|
|
@@ -569,23 +569,23 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
569
569
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
570
570
|
"stroke-linecap": "round"
|
|
571
571
|
}, null, 8, At)) : y("", !0),
|
|
572
|
-
|
|
572
|
+
n("text", {
|
|
573
573
|
x: l.x,
|
|
574
574
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
575
575
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
576
576
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
577
577
|
"text-anchor": "middle",
|
|
578
578
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
579
|
-
},
|
|
579
|
+
}, _(i($)(
|
|
580
580
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
581
581
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
582
|
-
i(
|
|
582
|
+
i(T)({
|
|
583
583
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
584
584
|
}),
|
|
585
585
|
{ datapoint: l, seriesIndex: a }
|
|
586
586
|
)), 9, Lt)
|
|
587
587
|
]))), 256)),
|
|
588
|
-
(u(!0), r(
|
|
588
|
+
(u(!0), r(P, null, B(L.value.left, (l, a) => (u(), r("g", null, [
|
|
589
589
|
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
590
590
|
key: 0,
|
|
591
591
|
x1: l.x,
|
|
@@ -596,51 +596,51 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
596
596
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
597
597
|
"stroke-linecap": "round"
|
|
598
598
|
}, null, 8, St)) : y("", !0),
|
|
599
|
-
|
|
599
|
+
n("text", {
|
|
600
600
|
x: l.x,
|
|
601
601
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
602
602
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
603
603
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
604
604
|
"text-anchor": "middle",
|
|
605
605
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
606
|
-
},
|
|
606
|
+
}, _(i($)(
|
|
607
607
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
608
608
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
609
|
-
i(
|
|
609
|
+
i(T)({
|
|
610
610
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
611
611
|
}),
|
|
612
612
|
{ datapoint: l, seriesIndex: a }
|
|
613
613
|
)), 9, zt)
|
|
614
614
|
]))), 256)),
|
|
615
|
-
|
|
615
|
+
n("text", {
|
|
616
616
|
x: o.value.right,
|
|
617
617
|
y: p.value.height,
|
|
618
618
|
"text-anchor": "end",
|
|
619
619
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
620
620
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
621
621
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
622
|
-
},
|
|
622
|
+
}, _(e.value.style.layout.dataLabels.xAxis.translation), 9, Ot)
|
|
623
623
|
])) : y("", !0)
|
|
624
624
|
]),
|
|
625
|
-
(u(!0), r(
|
|
626
|
-
|
|
625
|
+
(u(!0), r(P, null, B(J.dataset, (l, a) => (u(), r("g", null, [
|
|
626
|
+
n("rect", {
|
|
627
627
|
x: o.value.left,
|
|
628
|
-
y: o.value.top + o.value.height /
|
|
628
|
+
y: o.value.top + o.value.height / S.value * a - e.value.style.layout.bars.gap / 2,
|
|
629
629
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
630
|
-
height: o.value.height /
|
|
631
|
-
fill:
|
|
632
|
-
onMouseover: (
|
|
633
|
-
onMouseleave: s[0] || (s[0] = (
|
|
634
|
-
|
|
630
|
+
height: o.value.height / S.value <= 0 ? 1e-4 : o.value.height / S.value,
|
|
631
|
+
fill: E.value !== null && E.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
632
|
+
onMouseover: (d) => Pe(a, l),
|
|
633
|
+
onMouseleave: s[0] || (s[0] = (d) => {
|
|
634
|
+
E.value = null, V.value = !1;
|
|
635
635
|
})
|
|
636
636
|
}, null, 40, It)
|
|
637
637
|
]))), 256)),
|
|
638
638
|
h(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
639
639
|
], 14, it)) : y("", !0),
|
|
640
640
|
t.$slots.watermark ? (u(), r("div", Ft, [
|
|
641
|
-
h(t.$slots, "watermark",
|
|
641
|
+
h(t.$slots, "watermark", F(M({ isPrinting: i(re) || i(ne) })), void 0, !0)
|
|
642
642
|
])) : y("", !0),
|
|
643
|
-
|
|
643
|
+
D.value ? y("", !0) : (u(), I(i(Te), {
|
|
644
644
|
key: 6,
|
|
645
645
|
config: {
|
|
646
646
|
type: "pyramid",
|
|
@@ -652,17 +652,17 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
}, null, 8, ["config"])),
|
|
655
|
-
h(t.$slots, "legend", { legend:
|
|
655
|
+
h(t.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
656
656
|
t.$slots.source ? (u(), r("div", {
|
|
657
657
|
key: 7,
|
|
658
658
|
ref_key: "source",
|
|
659
|
-
ref:
|
|
659
|
+
ref: Z,
|
|
660
660
|
dir: "auto"
|
|
661
661
|
}, [
|
|
662
662
|
h(t.$slots, "source", {}, void 0, !0)
|
|
663
663
|
], 512)) : y("", !0),
|
|
664
664
|
pe(i(Ae), {
|
|
665
|
-
show: x.value.showTooltip &&
|
|
665
|
+
show: x.value.showTooltip && V.value,
|
|
666
666
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
667
667
|
color: e.value.style.tooltip.color,
|
|
668
668
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -672,20 +672,20 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
672
672
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
673
673
|
position: e.value.style.tooltip.position,
|
|
674
674
|
offsetY: e.value.style.tooltip.offsetY,
|
|
675
|
-
parent:
|
|
676
|
-
content:
|
|
677
|
-
isFullscreen:
|
|
675
|
+
parent: N.value,
|
|
676
|
+
content: W.value,
|
|
677
|
+
isFullscreen: O.value,
|
|
678
678
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
679
679
|
}, {
|
|
680
680
|
"tooltip-before": f(() => [
|
|
681
|
-
h(t.$slots, "tooltip-before",
|
|
681
|
+
h(t.$slots, "tooltip-before", F(M({ ...j.value })), void 0, !0)
|
|
682
682
|
]),
|
|
683
683
|
"tooltip-after": f(() => [
|
|
684
|
-
h(t.$slots, "tooltip-after",
|
|
684
|
+
h(t.$slots, "tooltip-after", F(M({ ...j.value })), void 0, !0)
|
|
685
685
|
]),
|
|
686
686
|
_: 3
|
|
687
687
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
688
|
-
|
|
688
|
+
D.value ? (u(), I(i(ke), {
|
|
689
689
|
key: 8,
|
|
690
690
|
hideDetails: "",
|
|
691
691
|
config: {
|
|
@@ -702,20 +702,20 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
702
702
|
}
|
|
703
703
|
}, {
|
|
704
704
|
content: f(() => [
|
|
705
|
-
(u(),
|
|
706
|
-
key: `table_${
|
|
707
|
-
colNames:
|
|
708
|
-
head:
|
|
709
|
-
body:
|
|
710
|
-
config:
|
|
705
|
+
(u(), I(i(_e), {
|
|
706
|
+
key: `table_${le.value}`,
|
|
707
|
+
colNames: G.value.colNames,
|
|
708
|
+
head: G.value.head,
|
|
709
|
+
body: G.value.body,
|
|
710
|
+
config: G.value.config,
|
|
711
711
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
712
712
|
onClose: s[1] || (s[1] = (l) => x.value.showTable = !1)
|
|
713
713
|
}, {
|
|
714
714
|
th: f(({ th: l }) => [
|
|
715
|
-
be(
|
|
715
|
+
be(_(l), 1)
|
|
716
716
|
]),
|
|
717
717
|
td: f(({ td: l }) => [
|
|
718
|
-
be(
|
|
718
|
+
be(_(l), 1)
|
|
719
719
|
]),
|
|
720
720
|
_: 1
|
|
721
721
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -724,7 +724,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
724
724
|
}, 8, ["config"])) : y("", !0)
|
|
725
725
|
], 46, st));
|
|
726
726
|
}
|
|
727
|
-
}, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-
|
|
727
|
+
}, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-210028cb"]]);
|
|
728
728
|
export {
|
|
729
729
|
Wt as default
|
|
730
730
|
};
|