vue-data-ui 2.12.6 → 2.12.7-beta.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/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import { computed as b, ref as v, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import { _ as Je } from "./PackageVersion-BjrblLPQ.js";
|
|
12
|
-
import { _ as Ke } from "./PenAndPaper-BkP3J-Ft.js";
|
|
13
|
-
import { u as Qe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
|
-
import { u as Ze } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"], ot = ["id"], st = ["stop-color"], it = ["stop-color"], ut = ["id"], rt = ["stop-color"], nt = ["stop-color"], dt = ["x", "y", "width", "height", "fill", "rx"], vt = ["x", "y", "width", "height", "fill", "rx"], yt = ["x", "y", "width", "height", "fill", "rx"], ht = ["x", "y", "width", "height", "fill", "rx"], ft = { key: 0 }, ct = ["x", "y", "fill", "font-size", "font-weight"], gt = ["x", "y", "fill", "font-size", "font-weight"], pt = { key: 1 }, bt = ["x", "y", "font-size", "fill", "font-weight"], xt = { key: 2 }, mt = { key: 0 }, wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x", "y", "font-size", "fill", "font-weight"], At = ["x", "y", "font-size", "fill", "font-weight"], Lt = ["x", "y", "width", "height", "fill", "onMouseover"], St = {
|
|
1
|
+
import { defineAsyncComponent as _, computed as b, ref as v, watch as Re, shallowRef as ce, onMounted as Be, onBeforeUnmount as De, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as H, normalizeClass as ge, createBlock as O, createCommentVNode as y, renderSlot as h, createVNode as pe, createSlots as Ee, withCtx as c, normalizeProps as I, guardReactiveProps as F, createElementVNode as d, Fragment as M, renderList as R, toDisplayString as k, 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 f, X as He, s as Y, w as xe, i as C, f as $, q as Ye, r as qe, x as Je, y as Ke } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as Qe, u as Ze } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as me } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as et } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import at from "./Title-B5qqUI3M.js";
|
|
9
|
+
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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"], ft = ["x", "y", "width", "height", "fill", "rx"], ct = ["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 = {
|
|
17
11
|
key: 5,
|
|
18
12
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
13
|
+
}, Mt = {
|
|
20
14
|
__name: "vue-ui-age-pyramid",
|
|
21
15
|
props: {
|
|
22
16
|
config: {
|
|
@@ -32,54 +26,57 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
32
26
|
}
|
|
33
27
|
}
|
|
34
28
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const { vue_ui_age_pyramid:
|
|
37
|
-
get: () =>
|
|
29
|
+
setup(q, { expose: we }) {
|
|
30
|
+
const ke = _(() => import("./vue-ui-accordion-CmCs2yR2.js")), _e = _(() => import("./DataTable-Cv9CIz-a.js")), Ce = _(() => import("./PackageVersion-CLY-udAA.js")), $e = _(() => import("./PenAndPaper-B9na2mbr.js")), Te = _(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Ae = _(() => import("./Tooltip-C9rxJ-Ru.js")), Le = _(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_age_pyramid: Se } = Ue(), g = q, B = b(() => !!g.dataset && g.dataset.length), m = v(Ve()), ze = v(null), U = v(!1), V = v(""), D = v(null), J = v(0), P = v(null), K = v(null), Q = v(null), Z = v(null), ee = v(0), te = v(0), e = b({
|
|
31
|
+
get: () => se(),
|
|
38
32
|
set: (t) => t
|
|
39
|
-
}), { userOptionsVisible:
|
|
40
|
-
function
|
|
41
|
-
const t =
|
|
33
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: le, keepUserOptionState: ae } = tt({ config: e.value }), { svgRef: oe } = lt({ config: e.value.style.title });
|
|
34
|
+
function se() {
|
|
35
|
+
const t = me({
|
|
42
36
|
userConfig: g.config,
|
|
43
|
-
defaultConfig:
|
|
37
|
+
defaultConfig: Se
|
|
44
38
|
});
|
|
45
39
|
return t.theme ? {
|
|
46
|
-
...
|
|
47
|
-
userConfig:
|
|
40
|
+
...me({
|
|
41
|
+
userConfig: We.vue_ui_age_pyramid[t.theme] || g.config,
|
|
48
42
|
defaultConfig: t
|
|
49
43
|
})
|
|
50
44
|
} : t;
|
|
51
45
|
}
|
|
52
|
-
|
|
53
|
-
e.value =
|
|
46
|
+
Re(() => g.config, (t) => {
|
|
47
|
+
e.value = se(), W.value = !e.value.userOptions.showOnChartHover, ie(), ee.value += 1, te.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
|
|
54
48
|
}, { deep: !0 });
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
const w = ce(null), T = ce(null);
|
|
50
|
+
Be(() => {
|
|
51
|
+
ie();
|
|
58
52
|
});
|
|
59
|
-
function
|
|
60
|
-
if (
|
|
53
|
+
function ie() {
|
|
54
|
+
if (Xe(g.dataset) && je({
|
|
61
55
|
componentName: "VueUiAgePyramid",
|
|
62
56
|
type: "dataset"
|
|
63
57
|
}), e.value.responsive) {
|
|
64
|
-
const t =
|
|
65
|
-
const { width: s, height: l } =
|
|
66
|
-
chart:
|
|
67
|
-
title: e.value.style.title.text ?
|
|
68
|
-
source:
|
|
69
|
-
noTitle:
|
|
58
|
+
const t = Qe(() => {
|
|
59
|
+
const { width: s, height: l } = Ze({
|
|
60
|
+
chart: P.value,
|
|
61
|
+
title: e.value.style.title.text ? K.value : null,
|
|
62
|
+
source: Q.value,
|
|
63
|
+
noTitle: Z.value
|
|
70
64
|
});
|
|
71
65
|
requestAnimationFrame(() => {
|
|
72
66
|
p.value.width = s, p.value.height = l;
|
|
73
67
|
});
|
|
74
68
|
});
|
|
75
|
-
|
|
69
|
+
w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect()), w.value = new ResizeObserver(t), T.value = P.value.parentNode, w.value.observe(T.value);
|
|
76
70
|
}
|
|
77
71
|
}
|
|
78
|
-
|
|
72
|
+
De(() => {
|
|
73
|
+
w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect());
|
|
74
|
+
});
|
|
75
|
+
const { isPrinting: ue, isImaging: re, generatePdf: ne, generateImage: de } = et({
|
|
79
76
|
elementId: `vue-ui-age-pyramid_${m.value}`,
|
|
80
77
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
81
78
|
options: e.value.userOptions.print
|
|
82
|
-
}),
|
|
79
|
+
}), Oe = b(() => e.value.userOptions.show && !e.value.style.title.text), x = v({
|
|
83
80
|
showTable: e.value.table.show,
|
|
84
81
|
showTooltip: e.value.style.tooltip.show
|
|
85
82
|
}), p = v({
|
|
@@ -104,16 +101,16 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
104
101
|
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
105
102
|
}
|
|
106
103
|
};
|
|
107
|
-
}),
|
|
108
|
-
const t =
|
|
104
|
+
}), Ie = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), A = b(() => {
|
|
105
|
+
const t = Fe(N.value / 5), s = [], l = [];
|
|
109
106
|
for (let a = 0; a <= 5; a += 1) {
|
|
110
|
-
const n = t * a,
|
|
107
|
+
const n = t * a, fe = t * (a - 5);
|
|
111
108
|
s.push({
|
|
112
109
|
value: n,
|
|
113
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n /
|
|
110
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / N.value * o.value.leftChart.width
|
|
114
111
|
}), l.push({
|
|
115
|
-
value: Math.abs(
|
|
116
|
-
x: o.value.left + o.value.width / 2 +
|
|
112
|
+
value: Math.abs(fe),
|
|
113
|
+
x: o.value.left + o.value.width / 2 + fe / N.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
117
114
|
});
|
|
118
115
|
}
|
|
119
116
|
return {
|
|
@@ -121,25 +118,25 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
121
118
|
left: l
|
|
122
119
|
};
|
|
123
120
|
});
|
|
124
|
-
function
|
|
121
|
+
function Fe(t) {
|
|
125
122
|
if (t === 0) return 0;
|
|
126
123
|
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
127
124
|
let a;
|
|
128
125
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
129
126
|
}
|
|
130
|
-
const
|
|
127
|
+
const N = b(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => f(s))))), L = b(() => g.dataset.length), Me = b(() => g.dataset.map((t) => ({
|
|
131
128
|
segment: t[0],
|
|
132
129
|
age: t[1],
|
|
133
130
|
left: {
|
|
134
131
|
value: t[2],
|
|
135
|
-
proportionToMax: t[2] /
|
|
132
|
+
proportionToMax: t[2] / N.value
|
|
136
133
|
},
|
|
137
134
|
right: {
|
|
138
135
|
value: t[3],
|
|
139
|
-
proportionToMax: t[3] /
|
|
136
|
+
proportionToMax: t[3] / N.value
|
|
140
137
|
}
|
|
141
|
-
}))),
|
|
142
|
-
const l = o.value.top + o.value.height /
|
|
138
|
+
}))), S = b(() => Me.value.map((t, s) => {
|
|
139
|
+
const l = o.value.top + o.value.height / L.value * s, a = o.value.height / L.value - e.value.style.layout.bars.gap;
|
|
143
140
|
return {
|
|
144
141
|
segment: t.segment,
|
|
145
142
|
age: t.age,
|
|
@@ -160,16 +157,16 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
160
157
|
height: a
|
|
161
158
|
}
|
|
162
159
|
};
|
|
163
|
-
})),
|
|
164
|
-
function
|
|
165
|
-
|
|
160
|
+
})), X = v(null);
|
|
161
|
+
function Pe(t, s) {
|
|
162
|
+
D.value = t, X.value = {
|
|
166
163
|
datapoint: s,
|
|
167
164
|
seriesIndex: t,
|
|
168
|
-
series:
|
|
165
|
+
series: S.value,
|
|
169
166
|
config: e.value
|
|
170
167
|
};
|
|
171
168
|
const l = e.value.style.tooltip.customFormat;
|
|
172
|
-
if (
|
|
169
|
+
if (Je(l) && Ke(() => l({
|
|
173
170
|
seriesIndex: t,
|
|
174
171
|
datapoint: {
|
|
175
172
|
segment: s[0],
|
|
@@ -177,10 +174,10 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
177
174
|
left: s[2],
|
|
178
175
|
right: s[3]
|
|
179
176
|
},
|
|
180
|
-
series:
|
|
177
|
+
series: S.value,
|
|
181
178
|
config: e.value
|
|
182
179
|
})))
|
|
183
|
-
|
|
180
|
+
V.value = l({
|
|
184
181
|
seriesIndex: t,
|
|
185
182
|
datapoint: {
|
|
186
183
|
segment: s[0],
|
|
@@ -188,49 +185,49 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
188
185
|
left: s[2],
|
|
189
186
|
right: s[3]
|
|
190
187
|
},
|
|
191
|
-
series:
|
|
188
|
+
series: S.value,
|
|
192
189
|
config: e.value
|
|
193
190
|
});
|
|
194
191
|
else {
|
|
195
192
|
let a = "";
|
|
196
|
-
const n =
|
|
197
|
-
a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${
|
|
193
|
+
const n = S.value[t];
|
|
194
|
+
a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${C(
|
|
198
195
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
199
196
|
f(n.age),
|
|
200
|
-
|
|
197
|
+
$({ v: f(n.age) }),
|
|
201
198
|
{ datapoint: s, seriesIndex: t }
|
|
202
|
-
)}</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>${C(
|
|
203
200
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
204
201
|
f(n.left.value),
|
|
205
|
-
|
|
202
|
+
$({ v: f(n.left.value) }),
|
|
206
203
|
{ datapoint: s, seriesIndex: t }
|
|
207
|
-
)}</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>${C(
|
|
208
205
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
209
206
|
f(n.right.value),
|
|
210
|
-
|
|
207
|
+
$({ v: f(n.right.value) }),
|
|
211
208
|
{ datapoint: s, seriesIndex: t }
|
|
212
|
-
)}</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>${C(
|
|
213
210
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
214
211
|
f(n.right.value) + f(n.left.value),
|
|
215
|
-
|
|
212
|
+
$({ v: f(n.right.value) + f(n.left.value) }),
|
|
216
213
|
{ datapoint: s, seriesIndex: t }
|
|
217
|
-
)}</b></div></div>`, a += "</div>",
|
|
214
|
+
)}</b></div></div>`, a += "</div>", V.value = `<div>${a}</div>`;
|
|
218
215
|
}
|
|
219
|
-
|
|
216
|
+
U.value = !0;
|
|
220
217
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
218
|
+
function ve() {
|
|
219
|
+
Ge(() => {
|
|
223
220
|
const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s = g.dataset.map((n) => [
|
|
224
221
|
n[0],
|
|
225
222
|
n[1],
|
|
226
223
|
n[2],
|
|
227
224
|
n[3],
|
|
228
225
|
n[2] + n[3]
|
|
229
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a =
|
|
230
|
-
|
|
226
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = Ye(l);
|
|
227
|
+
qe({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
231
228
|
});
|
|
232
229
|
}
|
|
233
|
-
const
|
|
230
|
+
const E = b(() => {
|
|
234
231
|
const t = [
|
|
235
232
|
e.value.translations.year,
|
|
236
233
|
e.value.translations.age,
|
|
@@ -257,59 +254,59 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
257
254
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
258
255
|
};
|
|
259
256
|
return { head: t, body: s, config: l, colNames: t };
|
|
260
|
-
}),
|
|
261
|
-
function
|
|
262
|
-
|
|
257
|
+
}), z = v(!1);
|
|
258
|
+
function Ne(t) {
|
|
259
|
+
z.value = t, J.value += 1;
|
|
263
260
|
}
|
|
264
|
-
function
|
|
261
|
+
function ye() {
|
|
265
262
|
x.value.showTable = !x.value.showTable;
|
|
266
263
|
}
|
|
267
|
-
function
|
|
264
|
+
function he() {
|
|
268
265
|
x.value.showTooltip = !x.value.showTooltip;
|
|
269
266
|
}
|
|
270
|
-
const
|
|
271
|
-
function
|
|
272
|
-
|
|
267
|
+
const G = v(!1);
|
|
268
|
+
function j() {
|
|
269
|
+
G.value = !G.value;
|
|
273
270
|
}
|
|
274
|
-
return
|
|
275
|
-
generatePdf:
|
|
276
|
-
generateCsv:
|
|
277
|
-
generateImage:
|
|
278
|
-
toggleTable:
|
|
279
|
-
toggleTooltip:
|
|
280
|
-
toggleAnnotator:
|
|
281
|
-
}), (t, s) => (
|
|
282
|
-
class:
|
|
271
|
+
return we({
|
|
272
|
+
generatePdf: ne,
|
|
273
|
+
generateCsv: ve,
|
|
274
|
+
generateImage: de,
|
|
275
|
+
toggleTable: ye,
|
|
276
|
+
toggleTooltip: he,
|
|
277
|
+
toggleAnnotator: j
|
|
278
|
+
}), (t, s) => (u(), r("div", {
|
|
279
|
+
class: ge(`vue-ui-age-pyramid ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
283
280
|
ref_key: "agePyramid",
|
|
284
|
-
ref:
|
|
281
|
+
ref: P,
|
|
285
282
|
id: `vue-ui-age-pyramid_${m.value}`,
|
|
286
|
-
style:
|
|
287
|
-
onMouseenter: s[2] || (s[2] = () =>
|
|
288
|
-
onMouseleave: s[3] || (s[3] = () =>
|
|
283
|
+
style: H(`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(le)(!0)),
|
|
285
|
+
onMouseleave: s[3] || (s[3] = () => i(le)(!1))
|
|
289
286
|
}, [
|
|
290
|
-
e.value.userOptions.buttons.annotator ? (
|
|
287
|
+
e.value.userOptions.buttons.annotator ? (u(), O(i($e), {
|
|
291
288
|
key: 0,
|
|
292
|
-
svgRef:
|
|
289
|
+
svgRef: i(oe),
|
|
293
290
|
backgroundColor: e.value.style.backgroundColor,
|
|
294
291
|
color: e.value.style.color,
|
|
295
|
-
active:
|
|
296
|
-
onClose:
|
|
292
|
+
active: G.value,
|
|
293
|
+
onClose: j
|
|
297
294
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
298
|
-
|
|
295
|
+
Oe.value ? (u(), r("div", {
|
|
299
296
|
key: 1,
|
|
300
297
|
ref_key: "noTitle",
|
|
301
|
-
ref:
|
|
298
|
+
ref: Z,
|
|
302
299
|
class: "vue-data-ui-no-title-space",
|
|
303
300
|
style: "height:36px; width: 100%;background:transparent"
|
|
304
301
|
}, null, 512)) : y("", !0),
|
|
305
|
-
e.value.style.title.text ? (
|
|
302
|
+
e.value.style.title.text ? (u(), r("div", {
|
|
306
303
|
key: 2,
|
|
307
304
|
ref_key: "chartTitle",
|
|
308
|
-
ref:
|
|
305
|
+
ref: K,
|
|
309
306
|
style: "width:100%;background:transparent"
|
|
310
307
|
}, [
|
|
311
|
-
(
|
|
312
|
-
key: `title_${
|
|
308
|
+
(u(), O(at, {
|
|
309
|
+
key: `title_${ee.value}`,
|
|
313
310
|
config: {
|
|
314
311
|
title: {
|
|
315
312
|
cy: "pyramid-div-title",
|
|
@@ -322,14 +319,14 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
322
319
|
}
|
|
323
320
|
}, null, 8, ["config"]))
|
|
324
321
|
], 512)) : y("", !0),
|
|
325
|
-
e.value.userOptions.show &&
|
|
322
|
+
e.value.userOptions.show && B.value && (i(ae) || i(W)) ? (u(), O(i(Le), {
|
|
326
323
|
ref_key: "details",
|
|
327
|
-
ref:
|
|
328
|
-
key: `user_options_${
|
|
324
|
+
ref: ze,
|
|
325
|
+
key: `user_options_${J.value}`,
|
|
329
326
|
backgroundColor: e.value.style.backgroundColor,
|
|
330
327
|
color: e.value.style.color,
|
|
331
|
-
isImaging:
|
|
332
|
-
isPrinting:
|
|
328
|
+
isImaging: i(re),
|
|
329
|
+
isPrinting: i(ue),
|
|
333
330
|
uid: m.value,
|
|
334
331
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
335
332
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -337,28 +334,28 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
337
334
|
hasImg: e.value.userOptions.buttons.img,
|
|
338
335
|
hasTable: e.value.userOptions.buttons.table,
|
|
339
336
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
340
|
-
isFullscreen:
|
|
337
|
+
isFullscreen: z.value,
|
|
341
338
|
isTooltip: x.value.showTooltip,
|
|
342
339
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
343
|
-
chartElement:
|
|
340
|
+
chartElement: P.value,
|
|
344
341
|
position: e.value.userOptions.position,
|
|
345
342
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
346
|
-
isAnnotation:
|
|
347
|
-
onToggleFullscreen:
|
|
348
|
-
onGeneratePdf:
|
|
349
|
-
onGenerateCsv:
|
|
350
|
-
onGenerateImage:
|
|
351
|
-
onToggleTable:
|
|
352
|
-
onToggleTooltip:
|
|
353
|
-
onToggleAnnotator:
|
|
354
|
-
style:
|
|
355
|
-
visibility:
|
|
343
|
+
isAnnotation: G.value,
|
|
344
|
+
onToggleFullscreen: Ne,
|
|
345
|
+
onGeneratePdf: i(ne),
|
|
346
|
+
onGenerateCsv: ve,
|
|
347
|
+
onGenerateImage: i(de),
|
|
348
|
+
onToggleTable: ye,
|
|
349
|
+
onToggleTooltip: he,
|
|
350
|
+
onToggleAnnotator: j,
|
|
351
|
+
style: H({
|
|
352
|
+
visibility: i(ae) ? i(W) ? "visible" : "hidden" : "visible"
|
|
356
353
|
})
|
|
357
|
-
},
|
|
354
|
+
}, Ee({ _: 2 }, [
|
|
358
355
|
t.$slots.menuIcon ? {
|
|
359
356
|
name: "menuIcon",
|
|
360
357
|
fn: c(({ isOpen: l, color: a }) => [
|
|
361
|
-
h(t.$slots, "menuIcon",
|
|
358
|
+
h(t.$slots, "menuIcon", I(F({ isOpen: l, color: a })), void 0, !0)
|
|
362
359
|
]),
|
|
363
360
|
key: "0"
|
|
364
361
|
} : void 0,
|
|
@@ -400,40 +397,40 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
400
397
|
t.$slots.optionFullscreen ? {
|
|
401
398
|
name: "optionFullscreen",
|
|
402
399
|
fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
403
|
-
h(t.$slots, "optionFullscreen",
|
|
400
|
+
h(t.$slots, "optionFullscreen", I(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
404
401
|
]),
|
|
405
402
|
key: "6"
|
|
406
403
|
} : void 0,
|
|
407
404
|
t.$slots.optionAnnotator ? {
|
|
408
405
|
name: "optionAnnotator",
|
|
409
406
|
fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
410
|
-
h(t.$slots, "optionAnnotator",
|
|
407
|
+
h(t.$slots, "optionAnnotator", I(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
411
408
|
]),
|
|
412
409
|
key: "7"
|
|
413
410
|
} : void 0
|
|
414
411
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
415
|
-
|
|
412
|
+
B.value ? (u(), r("svg", {
|
|
416
413
|
key: 4,
|
|
417
414
|
ref_key: "svgRef",
|
|
418
|
-
ref:
|
|
419
|
-
xmlns:
|
|
420
|
-
class:
|
|
415
|
+
ref: oe,
|
|
416
|
+
xmlns: i(He),
|
|
417
|
+
class: ge({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
421
418
|
viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
|
|
422
|
-
style:
|
|
419
|
+
style: H(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
423
420
|
}, [
|
|
424
|
-
|
|
425
|
-
t.$slots["chart-background"] ? (
|
|
421
|
+
pe(i(Ce)),
|
|
422
|
+
t.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
426
423
|
key: 0,
|
|
427
424
|
x: o.value.left,
|
|
428
425
|
y: o.value.top,
|
|
429
|
-
width: o.value.width,
|
|
430
|
-
height: o.value.height,
|
|
426
|
+
width: Math.max(0.1, o.value.width),
|
|
427
|
+
height: Math.max(0.1, o.value.height),
|
|
431
428
|
style: {
|
|
432
429
|
pointerEvents: "none"
|
|
433
430
|
}
|
|
434
431
|
}, [
|
|
435
432
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
436
|
-
], 8,
|
|
433
|
+
], 8, ut)) : y("", !0),
|
|
437
434
|
d("defs", null, [
|
|
438
435
|
d("linearGradient", {
|
|
439
436
|
id: `age_pyramid_left_${m.value}`,
|
|
@@ -445,12 +442,12 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
445
442
|
d("stop", {
|
|
446
443
|
offset: "0%",
|
|
447
444
|
"stop-color": e.value.style.layout.bars.left.color
|
|
448
|
-
}, null, 8,
|
|
445
|
+
}, null, 8, nt),
|
|
449
446
|
d("stop", {
|
|
450
447
|
offset: "100%",
|
|
451
|
-
"stop-color":
|
|
452
|
-
}, null, 8,
|
|
453
|
-
], 8,
|
|
448
|
+
"stop-color": i(Y)(i(xe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
449
|
+
}, null, 8, dt)
|
|
450
|
+
], 8, rt),
|
|
454
451
|
d("linearGradient", {
|
|
455
452
|
id: `age_pyramid_right_${m.value}`,
|
|
456
453
|
x1: "0%",
|
|
@@ -460,23 +457,23 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
460
457
|
}, [
|
|
461
458
|
d("stop", {
|
|
462
459
|
offset: "0%",
|
|
463
|
-
"stop-color":
|
|
464
|
-
}, null, 8,
|
|
460
|
+
"stop-color": i(Y)(i(xe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
461
|
+
}, null, 8, yt),
|
|
465
462
|
d("stop", {
|
|
466
463
|
offset: "100%",
|
|
467
464
|
"stop-color": e.value.style.layout.bars.right.color
|
|
468
|
-
}, null, 8,
|
|
469
|
-
], 8,
|
|
465
|
+
}, null, 8, ht)
|
|
466
|
+
], 8, vt)
|
|
470
467
|
]),
|
|
471
|
-
(
|
|
468
|
+
(u(!0), r(M, null, R(S.value, (l, a) => (u(), r("g", null, [
|
|
472
469
|
d("rect", {
|
|
473
470
|
x: l.left.x,
|
|
474
471
|
y: l.left.y,
|
|
475
|
-
width:
|
|
472
|
+
width: i(f)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
476
473
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
477
474
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
478
475
|
rx: e.value.style.layout.bars.borderRadius
|
|
479
|
-
}, null, 8,
|
|
476
|
+
}, null, 8, ft),
|
|
480
477
|
d("rect", {
|
|
481
478
|
x: l.left.x,
|
|
482
479
|
y: l.left.y,
|
|
@@ -484,7 +481,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
484
481
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
485
482
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : l.left.color,
|
|
486
483
|
rx: e.value.style.layout.bars.borderRadius
|
|
487
|
-
}, null, 8,
|
|
484
|
+
}, null, 8, ct),
|
|
488
485
|
d("rect", {
|
|
489
486
|
x: l.right.x,
|
|
490
487
|
y: l.right.y,
|
|
@@ -492,7 +489,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
492
489
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
493
490
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
494
491
|
rx: e.value.style.layout.bars.borderRadius
|
|
495
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, gt),
|
|
496
493
|
d("rect", {
|
|
497
494
|
x: l.right.x,
|
|
498
495
|
y: l.right.y,
|
|
@@ -500,10 +497,10 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
500
497
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
501
498
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : l.right.color,
|
|
502
499
|
rx: e.value.style.layout.bars.borderRadius
|
|
503
|
-
}, null, 8,
|
|
500
|
+
}, null, 8, pt)
|
|
504
501
|
]))), 256)),
|
|
505
502
|
d("g", null, [
|
|
506
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (
|
|
503
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", bt, [
|
|
507
504
|
d("text", {
|
|
508
505
|
x: o.value.left,
|
|
509
506
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -511,7 +508,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
511
508
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
512
509
|
"text-anchor": "start",
|
|
513
510
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
514
|
-
},
|
|
511
|
+
}, k(e.value.translations.female), 9, xt),
|
|
515
512
|
d("text", {
|
|
516
513
|
x: o.value.right,
|
|
517
514
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -519,49 +516,49 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
519
516
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
520
517
|
"text-anchor": "end",
|
|
521
518
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
522
|
-
},
|
|
519
|
+
}, k(e.value.translations.male), 9, mt)
|
|
523
520
|
])) : y("", !0),
|
|
524
|
-
e.value.style.layout.dataLabels.yAxis.show ? (
|
|
525
|
-
(
|
|
526
|
-
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (
|
|
521
|
+
e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", wt, [
|
|
522
|
+
(u(!0), r(M, null, R(Ie.value, (l, a) => (u(), r(M, null, [
|
|
523
|
+
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
|
|
527
524
|
key: 0,
|
|
528
525
|
x: o.value.centerX,
|
|
529
|
-
y: o.value.top + o.value.height /
|
|
526
|
+
y: o.value.top + o.value.height / L.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
530
527
|
"text-anchor": "middle",
|
|
531
528
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
532
529
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
533
530
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
534
|
-
},
|
|
531
|
+
}, k(i(C)(
|
|
535
532
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
536
533
|
l,
|
|
537
|
-
|
|
534
|
+
i($)({ v: l }),
|
|
538
535
|
{ datapoint: l, seriesIndex: a }
|
|
539
|
-
)), 9,
|
|
536
|
+
)), 9, kt)) : y("", !0)
|
|
540
537
|
], 64))), 256))
|
|
541
538
|
])) : y("", !0),
|
|
542
|
-
e.value.style.layout.dataLabels.xAxis.show ? (
|
|
543
|
-
e.value.style.layout.grid.show ? (
|
|
539
|
+
e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", _t, [
|
|
540
|
+
e.value.style.layout.grid.show ? (u(), r("g", Ct, [
|
|
544
541
|
d("line", {
|
|
545
|
-
x1:
|
|
546
|
-
x2:
|
|
542
|
+
x1: A.value.right[0].x,
|
|
543
|
+
x2: A.value.right.at(-1).x,
|
|
547
544
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
548
545
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
549
546
|
stroke: e.value.style.layout.grid.stroke,
|
|
550
547
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
551
548
|
"stroke-linecap": "round"
|
|
552
|
-
}, null, 8,
|
|
549
|
+
}, null, 8, $t),
|
|
553
550
|
d("line", {
|
|
554
|
-
x1:
|
|
555
|
-
x2:
|
|
551
|
+
x1: A.value.left[0].x,
|
|
552
|
+
x2: A.value.left.at(-1).x,
|
|
556
553
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
557
554
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
558
555
|
stroke: e.value.style.layout.grid.stroke,
|
|
559
556
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
560
557
|
"stroke-linecap": "round"
|
|
561
|
-
}, null, 8,
|
|
558
|
+
}, null, 8, Tt)
|
|
562
559
|
])) : y("", !0),
|
|
563
|
-
(
|
|
564
|
-
e.value.style.layout.grid.show ? (
|
|
560
|
+
(u(!0), r(M, null, R(A.value.right, (l, a) => (u(), r("g", null, [
|
|
561
|
+
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
565
562
|
key: 0,
|
|
566
563
|
x1: l.x,
|
|
567
564
|
x2: l.x,
|
|
@@ -570,7 +567,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
570
567
|
stroke: e.value.style.layout.grid.stroke,
|
|
571
568
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
572
569
|
"stroke-linecap": "round"
|
|
573
|
-
}, null, 8,
|
|
570
|
+
}, null, 8, At)) : y("", !0),
|
|
574
571
|
d("text", {
|
|
575
572
|
x: l.x,
|
|
576
573
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -578,17 +575,17 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
578
575
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
579
576
|
"text-anchor": "middle",
|
|
580
577
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
581
|
-
},
|
|
578
|
+
}, k(i(C)(
|
|
582
579
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
583
580
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
584
|
-
|
|
581
|
+
i($)({
|
|
585
582
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
586
583
|
}),
|
|
587
584
|
{ datapoint: l, seriesIndex: a }
|
|
588
|
-
)), 9,
|
|
585
|
+
)), 9, Lt)
|
|
589
586
|
]))), 256)),
|
|
590
|
-
(
|
|
591
|
-
e.value.style.layout.grid.show ? (
|
|
587
|
+
(u(!0), r(M, null, R(A.value.left, (l, a) => (u(), r("g", null, [
|
|
588
|
+
e.value.style.layout.grid.show ? (u(), r("line", {
|
|
592
589
|
key: 0,
|
|
593
590
|
x1: l.x,
|
|
594
591
|
x2: l.x,
|
|
@@ -597,7 +594,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
597
594
|
stroke: e.value.style.layout.grid.stroke,
|
|
598
595
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
599
596
|
"stroke-linecap": "round"
|
|
600
|
-
}, null, 8,
|
|
597
|
+
}, null, 8, St)) : y("", !0),
|
|
601
598
|
d("text", {
|
|
602
599
|
x: l.x,
|
|
603
600
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -605,14 +602,14 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
605
602
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
606
603
|
"text-anchor": "middle",
|
|
607
604
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
608
|
-
},
|
|
605
|
+
}, k(i(C)(
|
|
609
606
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
610
607
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
611
|
-
|
|
608
|
+
i($)({
|
|
612
609
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
613
610
|
}),
|
|
614
611
|
{ datapoint: l, seriesIndex: a }
|
|
615
|
-
)), 9,
|
|
612
|
+
)), 9, zt)
|
|
616
613
|
]))), 256)),
|
|
617
614
|
d("text", {
|
|
618
615
|
x: o.value.right,
|
|
@@ -621,28 +618,28 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
621
618
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
622
619
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
623
620
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
624
|
-
},
|
|
621
|
+
}, k(e.value.style.layout.dataLabels.xAxis.translation), 9, Ot)
|
|
625
622
|
])) : y("", !0)
|
|
626
623
|
]),
|
|
627
|
-
(
|
|
624
|
+
(u(!0), r(M, null, R(q.dataset, (l, a) => (u(), r("g", null, [
|
|
628
625
|
d("rect", {
|
|
629
626
|
x: o.value.left,
|
|
630
|
-
y: o.value.top + o.value.height /
|
|
627
|
+
y: o.value.top + o.value.height / L.value * a - e.value.style.layout.bars.gap / 2,
|
|
631
628
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
632
|
-
height: o.value.height /
|
|
633
|
-
fill:
|
|
634
|
-
onMouseover: (n) =>
|
|
629
|
+
height: o.value.height / L.value <= 0 ? 1e-4 : o.value.height / L.value,
|
|
630
|
+
fill: D.value !== null && D.value === a ? i(Y)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
631
|
+
onMouseover: (n) => Pe(a, l),
|
|
635
632
|
onMouseleave: s[0] || (s[0] = (n) => {
|
|
636
|
-
|
|
633
|
+
D.value = null, U.value = !1;
|
|
637
634
|
})
|
|
638
|
-
}, null, 40,
|
|
635
|
+
}, null, 40, It)
|
|
639
636
|
]))), 256)),
|
|
640
637
|
h(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
641
|
-
], 14,
|
|
642
|
-
t.$slots.watermark ? (
|
|
643
|
-
h(t.$slots, "watermark",
|
|
638
|
+
], 14, it)) : y("", !0),
|
|
639
|
+
t.$slots.watermark ? (u(), r("div", Ft, [
|
|
640
|
+
h(t.$slots, "watermark", I(F({ isPrinting: i(ue) || i(re) })), void 0, !0)
|
|
644
641
|
])) : y("", !0),
|
|
645
|
-
|
|
642
|
+
B.value ? y("", !0) : (u(), O(i(Te), {
|
|
646
643
|
key: 6,
|
|
647
644
|
config: {
|
|
648
645
|
type: "pyramid",
|
|
@@ -654,17 +651,17 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
654
651
|
}
|
|
655
652
|
}
|
|
656
653
|
}, null, 8, ["config"])),
|
|
657
|
-
h(t.$slots, "legend", { legend:
|
|
658
|
-
t.$slots.source ? (
|
|
654
|
+
h(t.$slots, "legend", { legend: S.value }, void 0, !0),
|
|
655
|
+
t.$slots.source ? (u(), r("div", {
|
|
659
656
|
key: 7,
|
|
660
657
|
ref_key: "source",
|
|
661
|
-
ref:
|
|
658
|
+
ref: Q,
|
|
662
659
|
dir: "auto"
|
|
663
660
|
}, [
|
|
664
661
|
h(t.$slots, "source", {}, void 0, !0)
|
|
665
662
|
], 512)) : y("", !0),
|
|
666
|
-
|
|
667
|
-
show: x.value.showTooltip &&
|
|
663
|
+
pe(i(Ae), {
|
|
664
|
+
show: x.value.showTooltip && U.value,
|
|
668
665
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
669
666
|
color: e.value.style.tooltip.color,
|
|
670
667
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -674,20 +671,20 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
674
671
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
675
672
|
position: e.value.style.tooltip.position,
|
|
676
673
|
offsetY: e.value.style.tooltip.offsetY,
|
|
677
|
-
parent:
|
|
678
|
-
content:
|
|
679
|
-
isFullscreen:
|
|
674
|
+
parent: P.value,
|
|
675
|
+
content: V.value,
|
|
676
|
+
isFullscreen: z.value,
|
|
680
677
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
681
678
|
}, {
|
|
682
679
|
"tooltip-before": c(() => [
|
|
683
|
-
h(t.$slots, "tooltip-before",
|
|
680
|
+
h(t.$slots, "tooltip-before", I(F({ ...X.value })), void 0, !0)
|
|
684
681
|
]),
|
|
685
682
|
"tooltip-after": c(() => [
|
|
686
|
-
h(t.$slots, "tooltip-after",
|
|
683
|
+
h(t.$slots, "tooltip-after", I(F({ ...X.value })), void 0, !0)
|
|
687
684
|
]),
|
|
688
685
|
_: 3
|
|
689
686
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
690
|
-
|
|
687
|
+
B.value ? (u(), O(i(ke), {
|
|
691
688
|
key: 8,
|
|
692
689
|
hideDetails: "",
|
|
693
690
|
config: {
|
|
@@ -704,29 +701,29 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
|
|
|
704
701
|
}
|
|
705
702
|
}, {
|
|
706
703
|
content: c(() => [
|
|
707
|
-
(
|
|
708
|
-
key: `table_${
|
|
709
|
-
colNames:
|
|
710
|
-
head:
|
|
711
|
-
body:
|
|
712
|
-
config:
|
|
704
|
+
(u(), O(i(_e), {
|
|
705
|
+
key: `table_${te.value}`,
|
|
706
|
+
colNames: E.value.colNames,
|
|
707
|
+
head: E.value.head,
|
|
708
|
+
body: E.value.body,
|
|
709
|
+
config: E.value.config,
|
|
713
710
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
714
711
|
onClose: s[1] || (s[1] = (l) => x.value.showTable = !1)
|
|
715
712
|
}, {
|
|
716
713
|
th: c(({ th: l }) => [
|
|
717
|
-
|
|
714
|
+
be(k(l), 1)
|
|
718
715
|
]),
|
|
719
716
|
td: c(({ td: l }) => [
|
|
720
|
-
|
|
717
|
+
be(k(l), 1)
|
|
721
718
|
]),
|
|
722
719
|
_: 1
|
|
723
720
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
724
721
|
]),
|
|
725
722
|
_: 1
|
|
726
723
|
}, 8, ["config"])) : y("", !0)
|
|
727
|
-
], 46,
|
|
724
|
+
], 46, st));
|
|
728
725
|
}
|
|
729
|
-
},
|
|
726
|
+
}, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-e6b32d38"]]);
|
|
730
727
|
export {
|
|
731
|
-
|
|
728
|
+
Wt as default
|
|
732
729
|
};
|