vue-data-ui 3.0.23 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { defineAsyncComponent as L, computed as g, ref as v, toRefs as it, watch as X, shallowRef as Te, onMounted as ut, onBeforeUnmount as $e, watchEffect as nt, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as ae, normalizeClass as Se, createBlock as P, createCommentVNode as y, renderSlot as h, createVNode as oe, createSlots as ze, withCtx as c, normalizeProps as M, guardReactiveProps as D, createElementVNode as d, Fragment as T, renderList as z, toDisplayString as C, resolveDynamicComponent as rt, mergeProps as vt, createTextVNode as se, nextTick as dt } from "vue";
|
|
2
|
+
import { u as yt, c as ht, t as ct, b as ft, o as Ie, f as gt, h as p, X as pt, s as ie, x as Oe, k as I, i as O, v as bt, w as xt, y as mt, z as wt } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as Fe, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ct, B as _t } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as At } from "./usePrinter-BzuXiubT.js";
|
|
6
|
+
import { u as Re } from "./useNestedProp-aBOhgs4U.js";
|
|
7
|
+
import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as $t } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import St from "./img-gBDz7xQQ.js";
|
|
11
|
+
import zt from "./Title-Dz-j6ERs.js";
|
|
12
|
+
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"], Pt = ["id"], Mt = ["stop-color"], Dt = ["stop-color"], Nt = ["id"], Bt = ["stop-color"], Et = ["stop-color"], Ut = ["x", "y", "width", "height", "fill", "rx"], Gt = ["x", "y", "width", "height", "fill", "rx"], Ht = ["x", "y", "width", "height", "fill", "rx"], Wt = ["x", "y", "width", "height", "fill", "rx"], Vt = { key: 0 }, Xt = ["x", "y", "fill", "font-size", "font-weight"], jt = ["x", "y", "fill", "font-size", "font-weight"], Yt = { key: 1 }, qt = ["x", "y", "font-size", "fill", "font-weight"], Jt = { key: 2 }, Kt = { key: 0 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["font-size", "fill", "text-anchor", "font-weight", "transform"], al = ["font-size", "fill", "text-anchor", "font-weight", "transform"], ol = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], il = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, ul = {
|
|
17
17
|
__name: "vue-ui-age-pyramid",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -29,11 +29,11 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
...
|
|
32
|
+
setup(ue, { expose: Pe }) {
|
|
33
|
+
const Me = L(() => import("./Tooltip-BTGOEC7w.js")), De = L(() => import("./BaseIcon-DLesaZpW.js")), Ne = L(() => import("./vue-ui-accordion-B5QeV3BK.js")), Be = L(() => import("./DataTable-BAf4Obr9.js")), Ee = L(() => import("./PenAndPaper-B6OvfyHH.js")), Ue = L(() => import("./UserOptions-CsDlFB0L.js")), Ge = L(() => import("./PackageVersion-Cv_ypT0N.js")), He = L(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_age_pyramid: We } = yt(), x = ue, ne = g(() => !!x.dataset && x.dataset.length), w = v(ht()), Ve = v(null), j = v(!1), Y = v(""), U = v(null), re = v(0), k = v(null), ve = v(null), de = v(null), ye = v(null), he = v(0), ce = v(0), q = v(null), N = v(null), e = v(Q()), { loading: fe, FINAL_DATASET: G, manualLoading: J } = Ct({
|
|
34
|
+
...it(x),
|
|
35
35
|
FINAL_CONFIG: e,
|
|
36
|
-
prepareConfig:
|
|
36
|
+
prepareConfig: Q,
|
|
37
37
|
skeletonDataset: [
|
|
38
38
|
["_", 9, 2, 2],
|
|
39
39
|
["_", 8, 3, 3],
|
|
@@ -46,7 +46,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
46
46
|
["_", 1, 89, 89],
|
|
47
47
|
["_", 0, 144, 144]
|
|
48
48
|
],
|
|
49
|
-
skeletonConfig:
|
|
49
|
+
skeletonConfig: ct({
|
|
50
50
|
defaultConfig: e.value,
|
|
51
51
|
userConfig: {
|
|
52
52
|
userOptions: { show: !1 },
|
|
@@ -79,91 +79,91 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
})
|
|
82
|
-
}), { userOptionsVisible:
|
|
83
|
-
function
|
|
84
|
-
const t =
|
|
85
|
-
userConfig:
|
|
86
|
-
defaultConfig:
|
|
82
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: ge, keepUserOptionState: pe } = Lt({ config: e.value }), { svgRef: be } = Tt({ config: e.value.style.title });
|
|
83
|
+
function Q() {
|
|
84
|
+
const t = Re({
|
|
85
|
+
userConfig: x.config,
|
|
86
|
+
defaultConfig: We
|
|
87
87
|
});
|
|
88
88
|
return t.theme ? {
|
|
89
|
-
...
|
|
90
|
-
userConfig:
|
|
89
|
+
...Re({
|
|
90
|
+
userConfig: ft.vue_ui_age_pyramid[t.theme] || x.config,
|
|
91
91
|
defaultConfig: t
|
|
92
92
|
})
|
|
93
93
|
} : t;
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, { deep: !0 }),
|
|
98
|
-
Array.isArray(t) && t.length > 0 && (
|
|
95
|
+
X(() => x.config, (t) => {
|
|
96
|
+
fe.value || (e.value = Q()), K.value = !e.value.userOptions.showOnChartHover, xe(), he.value += 1, ce.value += 1, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.tooltip.show;
|
|
97
|
+
}, { deep: !0 }), X(() => x.dataset, (t) => {
|
|
98
|
+
Array.isArray(t) && t.length > 0 && (J.value = !1);
|
|
99
99
|
}, { deep: !0 });
|
|
100
|
-
const _ =
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
const _ = Te(null), F = Te(null);
|
|
101
|
+
ut(() => {
|
|
102
|
+
xe();
|
|
103
103
|
});
|
|
104
|
-
const
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
104
|
+
const Xe = g(() => !!e.value.debug);
|
|
105
|
+
function xe() {
|
|
106
|
+
if (Ie(x.dataset) && (gt({
|
|
107
107
|
componentName: "VueUiAgePyramid",
|
|
108
108
|
type: "dataset",
|
|
109
|
-
debug:
|
|
110
|
-
}),
|
|
111
|
-
const t =
|
|
112
|
-
const { width: o, height: l } =
|
|
109
|
+
debug: Xe.value
|
|
110
|
+
}), J.value = !0), Ie(x.dataset) || (J.value = e.value.loading), e.value.responsive) {
|
|
111
|
+
const t = Fe(() => {
|
|
112
|
+
const { width: o, height: l } = kt({
|
|
113
113
|
chart: k.value,
|
|
114
|
-
title: e.value.style.title.text ?
|
|
115
|
-
source:
|
|
116
|
-
noTitle:
|
|
114
|
+
title: e.value.style.title.text ? ve.value : null,
|
|
115
|
+
source: de.value,
|
|
116
|
+
noTitle: ye.value
|
|
117
117
|
});
|
|
118
118
|
requestAnimationFrame(() => {
|
|
119
|
-
|
|
119
|
+
f.value.width = o, f.value.height = l;
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
|
-
_.value && (
|
|
122
|
+
_.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = k.value.parentNode, _.value.observe(F.value);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
_.value && (
|
|
125
|
+
$e(() => {
|
|
126
|
+
_.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
|
|
127
127
|
});
|
|
128
|
-
const { isPrinting:
|
|
128
|
+
const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage: Ce } = At({
|
|
129
129
|
elementId: `vue-ui-age-pyramid_${w.value}`,
|
|
130
130
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
131
131
|
options: e.value.userOptions.print
|
|
132
|
-
}),
|
|
132
|
+
}), je = g(() => e.value.userOptions.show && !e.value.style.title.text), b = v({
|
|
133
133
|
showTable: e.value.table.show,
|
|
134
134
|
showTooltip: e.value.style.tooltip.show
|
|
135
135
|
});
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
X(e, () => {
|
|
137
|
+
b.value = {
|
|
138
138
|
showTable: e.value.table.show,
|
|
139
139
|
showTooltip: e.value.style.tooltip.show
|
|
140
140
|
};
|
|
141
141
|
}, { immediate: !0 });
|
|
142
|
-
const
|
|
142
|
+
const f = v({
|
|
143
143
|
height: e.value.style.height,
|
|
144
144
|
width: e.value.style.width
|
|
145
|
-
}),
|
|
146
|
-
|
|
145
|
+
}), Ye = g(() => f.value.width), qe = g(() => f.value.height), H = v(0), Je = Fe((t) => {
|
|
146
|
+
H.value = t;
|
|
147
147
|
}, 100);
|
|
148
|
-
|
|
149
|
-
const o =
|
|
148
|
+
nt((t) => {
|
|
149
|
+
const o = q.value;
|
|
150
150
|
if (!o) return;
|
|
151
151
|
const l = new ResizeObserver((a) => {
|
|
152
|
-
|
|
152
|
+
Je(a[0].contentRect.height);
|
|
153
153
|
});
|
|
154
154
|
l.observe(o), t(() => l.disconnect());
|
|
155
|
-
}),
|
|
156
|
-
|
|
155
|
+
}), $e(() => {
|
|
156
|
+
H.value = 0;
|
|
157
157
|
});
|
|
158
158
|
const s = g(() => {
|
|
159
|
-
const t =
|
|
159
|
+
const t = f.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, o = e.value.style.layout.padding.left, l = f.value.width - e.value.style.layout.padding.right;
|
|
160
160
|
return {
|
|
161
161
|
top: e.value.style.layout.padding.top + e.value.style.layout.dataLabels.sideTitles.fontSize + e.value.style.layout.dataLabels.sideTitles.offsetY + 12,
|
|
162
162
|
left: o,
|
|
163
163
|
right: l,
|
|
164
|
-
bottom:
|
|
164
|
+
bottom: f.value.height - e.value.style.layout.padding.bottom - H.value,
|
|
165
165
|
width: t,
|
|
166
|
-
height:
|
|
166
|
+
height: f.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - H.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
|
|
167
167
|
centerX: e.value.style.layout.padding.left + t / 2,
|
|
168
168
|
leftChart: {
|
|
169
169
|
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
@@ -174,16 +174,16 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
174
174
|
left: o + t / 2 + e.value.style.layout.centerSlit.width
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
|
-
}),
|
|
178
|
-
const t =
|
|
177
|
+
}), Ke = g(() => G.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), A = g(() => {
|
|
178
|
+
const t = Qe(B.value / 5), o = [], l = [];
|
|
179
179
|
for (let a = 0; a <= 5; a += 1) {
|
|
180
180
|
const r = t * a, m = t * (a - 5);
|
|
181
181
|
o.push({
|
|
182
182
|
value: r,
|
|
183
|
-
x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + r /
|
|
183
|
+
x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + r / B.value * s.value.leftChart.width
|
|
184
184
|
}), l.push({
|
|
185
185
|
value: Math.abs(m),
|
|
186
|
-
x: s.value.left + s.value.width / 2 + m /
|
|
186
|
+
x: s.value.left + s.value.width / 2 + m / B.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
return {
|
|
@@ -191,25 +191,25 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
191
191
|
left: l
|
|
192
192
|
};
|
|
193
193
|
});
|
|
194
|
-
function
|
|
194
|
+
function Qe(t) {
|
|
195
195
|
if (t === 0) return 0;
|
|
196
196
|
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
197
197
|
let a;
|
|
198
198
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const B = g(() => Math.max(...G.value.flatMap((t) => t.slice(-2).map((o) => p(o))))), R = g(() => G.value.length), Ze = g(() => G.value.map((t) => ({
|
|
201
201
|
segment: t[0],
|
|
202
202
|
age: t[1],
|
|
203
203
|
left: {
|
|
204
204
|
value: t[2],
|
|
205
|
-
proportionToMax: t[2] /
|
|
205
|
+
proportionToMax: t[2] / B.value
|
|
206
206
|
},
|
|
207
207
|
right: {
|
|
208
208
|
value: t[3],
|
|
209
|
-
proportionToMax: t[3] /
|
|
209
|
+
proportionToMax: t[3] / B.value
|
|
210
210
|
}
|
|
211
|
-
}))),
|
|
212
|
-
const l = s.value.top + s.value.height /
|
|
211
|
+
}))), $ = g(() => Ze.value.map((t, o) => {
|
|
212
|
+
const l = s.value.top + s.value.height / R.value * o, a = s.value.height / R.value - e.value.style.layout.bars.gap;
|
|
213
213
|
return {
|
|
214
214
|
segment: t.segment,
|
|
215
215
|
age: t.age,
|
|
@@ -218,7 +218,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
218
218
|
y: l,
|
|
219
219
|
color: e.value.style.layout.bars.left.color,
|
|
220
220
|
x: s.value.leftChart.right - t.left.proportionToMax * s.value.leftChart.width,
|
|
221
|
-
width:
|
|
221
|
+
width: p(t.left.proportionToMax * s.value.leftChart.width),
|
|
222
222
|
height: a
|
|
223
223
|
},
|
|
224
224
|
right: {
|
|
@@ -226,30 +226,30 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
226
226
|
y: l,
|
|
227
227
|
color: e.value.style.layout.bars.right.color,
|
|
228
228
|
x: s.value.rightChart.left,
|
|
229
|
-
width:
|
|
229
|
+
width: p(t.right.proportionToMax * s.value.rightChart.width),
|
|
230
230
|
height: a
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
|
-
})),
|
|
234
|
-
function
|
|
233
|
+
})), Z = v(null);
|
|
234
|
+
function ee(t) {
|
|
235
235
|
const [o, l, a, r] = t;
|
|
236
236
|
return { segment: o, index: l, left: a, right: r };
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
238
|
+
function et(t, o) {
|
|
239
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: ee(o), seriesIndex: t });
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
241
|
+
function tt(t, o) {
|
|
242
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ee(o), seriesIndex: t }), U.value = null, j.value = !1;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
244
|
+
function lt(t, o) {
|
|
245
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: ee(o), seriesIndex: t }), U.value = t, Z.value = {
|
|
246
246
|
datapoint: o,
|
|
247
247
|
seriesIndex: t,
|
|
248
|
-
series:
|
|
248
|
+
series: $.value,
|
|
249
249
|
config: e.value
|
|
250
250
|
};
|
|
251
251
|
const l = e.value.style.tooltip.customFormat;
|
|
252
|
-
if (
|
|
252
|
+
if (mt(l) && wt(() => l({
|
|
253
253
|
seriesIndex: t,
|
|
254
254
|
datapoint: {
|
|
255
255
|
segment: o[0],
|
|
@@ -257,10 +257,10 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
257
257
|
left: o[2],
|
|
258
258
|
right: o[3]
|
|
259
259
|
},
|
|
260
|
-
series:
|
|
260
|
+
series: $.value,
|
|
261
261
|
config: e.value
|
|
262
262
|
})))
|
|
263
|
-
|
|
263
|
+
Y.value = l({
|
|
264
264
|
seriesIndex: t,
|
|
265
265
|
datapoint: {
|
|
266
266
|
segment: o[0],
|
|
@@ -268,56 +268,56 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
268
268
|
left: o[2],
|
|
269
269
|
right: o[3]
|
|
270
270
|
},
|
|
271
|
-
series:
|
|
271
|
+
series: $.value,
|
|
272
272
|
config: e.value
|
|
273
273
|
});
|
|
274
274
|
else {
|
|
275
275
|
let a = "";
|
|
276
|
-
const r =
|
|
277
|
-
a += `<div><b>${r.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${
|
|
276
|
+
const r = $.value[t];
|
|
277
|
+
a += `<div><b>${r.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${I(
|
|
278
278
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
p(r.age),
|
|
280
|
+
O({ v: p(r.age) }),
|
|
281
281
|
{ datapoint: o, seriesIndex: t }
|
|
282
|
-
)}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${
|
|
282
|
+
)}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${I(
|
|
283
283
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
p(r.left.value),
|
|
285
|
+
O({ v: p(r.left.value) }),
|
|
286
286
|
{ datapoint: o, seriesIndex: t }
|
|
287
|
-
)}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${
|
|
287
|
+
)}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${I(
|
|
288
288
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
p(r.right.value),
|
|
290
|
+
O({ v: p(r.right.value) }),
|
|
291
291
|
{ datapoint: o, seriesIndex: t }
|
|
292
|
-
)}</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>${
|
|
292
|
+
)}</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>${I(
|
|
293
293
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
p(r.right.value) + p(r.left.value),
|
|
295
|
+
O({ v: p(r.right.value) + p(r.left.value) }),
|
|
296
296
|
{ datapoint: o, seriesIndex: t }
|
|
297
|
-
)}</b></div></div>`, a += "</div>",
|
|
297
|
+
)}</b></div></div>`, a += "</div>", Y.value = `<div>${a}</div>`;
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
j.value = !0;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
|
|
303
|
-
const o = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l =
|
|
301
|
+
function te(t = null) {
|
|
302
|
+
dt(() => {
|
|
303
|
+
const o = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = x.dataset.map((m) => [
|
|
304
304
|
m[0],
|
|
305
305
|
m[1],
|
|
306
306
|
m[2],
|
|
307
307
|
m[3],
|
|
308
308
|
m[2] ?? 0 + m[3] ?? 0
|
|
309
|
-
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r =
|
|
310
|
-
t ? t(r) :
|
|
309
|
+
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = bt(a);
|
|
310
|
+
t ? t(r) : xt({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const W = g(() => {
|
|
314
314
|
const t = [
|
|
315
315
|
e.value.translations.year,
|
|
316
316
|
e.value.translations.age,
|
|
317
317
|
e.value.translations.female,
|
|
318
318
|
e.value.translations.male,
|
|
319
319
|
e.value.translations.total
|
|
320
|
-
], o =
|
|
320
|
+
], o = x.dataset.map((a) => [
|
|
321
321
|
a[0],
|
|
322
322
|
a[1],
|
|
323
323
|
a[2] == null ? "" : a[2].toLocaleString(),
|
|
@@ -337,23 +337,23 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
337
337
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
338
338
|
};
|
|
339
339
|
return { head: t, body: o, config: l, colNames: t };
|
|
340
|
-
}),
|
|
341
|
-
function
|
|
342
|
-
|
|
340
|
+
}), S = v(!1);
|
|
341
|
+
function _e(t) {
|
|
342
|
+
S.value = t, re.value += 1;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
|
|
344
|
+
function Ae() {
|
|
345
|
+
b.value.showTable = !b.value.showTable;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
|
|
347
|
+
function Le() {
|
|
348
|
+
b.value.showTooltip = !b.value.showTooltip;
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
function
|
|
352
|
-
|
|
350
|
+
const V = v(!1);
|
|
351
|
+
function le() {
|
|
352
|
+
V.value = !V.value;
|
|
353
353
|
}
|
|
354
|
-
async function
|
|
354
|
+
async function at({ scale: t = 2 } = {}) {
|
|
355
355
|
if (!k.value) return;
|
|
356
|
-
const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await
|
|
356
|
+
const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await St({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
357
357
|
return {
|
|
358
358
|
imageUri: r,
|
|
359
359
|
base64: m,
|
|
@@ -363,60 +363,93 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
363
363
|
aspectRatio: a
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
timeLabelsEls:
|
|
369
|
-
timeLabels:
|
|
370
|
-
slicer:
|
|
366
|
+
const ot = v([]), st = v({ start: 0, end: $.value.length });
|
|
367
|
+
$t({
|
|
368
|
+
timeLabelsEls: q,
|
|
369
|
+
timeLabels: ot,
|
|
370
|
+
slicer: st,
|
|
371
371
|
configRef: e,
|
|
372
372
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
373
373
|
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
374
374
|
isAutoSize: !1,
|
|
375
|
-
width:
|
|
376
|
-
height:
|
|
375
|
+
width: Ye,
|
|
376
|
+
height: qe,
|
|
377
377
|
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
378
378
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
|
|
379
|
-
})
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
379
|
+
});
|
|
380
|
+
const E = g(() => {
|
|
381
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = b.value.showTable;
|
|
382
|
+
return {
|
|
383
|
+
component: t ? He : Ne,
|
|
384
|
+
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
385
|
+
props: t ? {
|
|
386
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
387
|
+
color: e.value.table.th.color,
|
|
388
|
+
headerColor: e.value.table.th.color,
|
|
389
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
390
|
+
isFullscreen: S.value,
|
|
391
|
+
fullscreenParent: k.value,
|
|
392
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
393
|
+
} : {
|
|
394
|
+
hideDetails: !0,
|
|
395
|
+
config: {
|
|
396
|
+
open: o,
|
|
397
|
+
maxHeight: 1e4,
|
|
398
|
+
body: {
|
|
399
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
400
|
+
color: e.value.style.color
|
|
401
|
+
},
|
|
402
|
+
head: {
|
|
403
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
404
|
+
color: e.value.style.color
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
});
|
|
410
|
+
return X(() => b.value.showTable, (t) => {
|
|
411
|
+
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
412
|
+
}), Pe({
|
|
413
|
+
getImage: at,
|
|
414
|
+
generatePdf: ke,
|
|
415
|
+
generateCsv: te,
|
|
416
|
+
generateImage: Ce,
|
|
417
|
+
toggleTable: Ae,
|
|
418
|
+
toggleTooltip: Le,
|
|
419
|
+
toggleAnnotator: le,
|
|
420
|
+
toggleFullscreen: _e
|
|
388
421
|
}), (t, o) => (i(), n("div", {
|
|
389
|
-
class:
|
|
422
|
+
class: Se(`vue-ui-age-pyramid ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
390
423
|
ref_key: "agePyramid",
|
|
391
424
|
ref: k,
|
|
392
425
|
id: `vue-ui-age-pyramid_${w.value}`,
|
|
393
|
-
style:
|
|
394
|
-
onMouseenter: o[
|
|
395
|
-
onMouseleave: o[
|
|
426
|
+
style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
427
|
+
onMouseenter: o[3] || (o[3] = () => u(ge)(!0)),
|
|
428
|
+
onMouseleave: o[4] || (o[4] = () => u(ge)(!1))
|
|
396
429
|
}, [
|
|
397
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
430
|
+
e.value.userOptions.buttons.annotator ? (i(), P(u(Ee), {
|
|
398
431
|
key: 0,
|
|
399
|
-
svgRef: u(
|
|
432
|
+
svgRef: u(be),
|
|
400
433
|
backgroundColor: e.value.style.backgroundColor,
|
|
401
434
|
color: e.value.style.color,
|
|
402
|
-
active:
|
|
403
|
-
onClose:
|
|
435
|
+
active: V.value,
|
|
436
|
+
onClose: le
|
|
404
437
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
405
|
-
|
|
438
|
+
je.value ? (i(), n("div", {
|
|
406
439
|
key: 1,
|
|
407
440
|
ref_key: "noTitle",
|
|
408
|
-
ref:
|
|
441
|
+
ref: ye,
|
|
409
442
|
class: "vue-data-ui-no-title-space",
|
|
410
443
|
style: "height:36px; width: 100%;background:transparent"
|
|
411
444
|
}, null, 512)) : y("", !0),
|
|
412
445
|
e.value.style.title.text ? (i(), n("div", {
|
|
413
446
|
key: 2,
|
|
414
447
|
ref_key: "chartTitle",
|
|
415
|
-
ref:
|
|
448
|
+
ref: ve,
|
|
416
449
|
style: "width:100%;background:transparent"
|
|
417
450
|
}, [
|
|
418
|
-
(i(),
|
|
419
|
-
key: `title_${
|
|
451
|
+
(i(), P(zt, {
|
|
452
|
+
key: `title_${he.value}`,
|
|
420
453
|
config: {
|
|
421
454
|
title: {
|
|
422
455
|
cy: "pyramid-div-title",
|
|
@@ -429,14 +462,14 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
429
462
|
}
|
|
430
463
|
}, null, 8, ["config"]))
|
|
431
464
|
], 512)) : y("", !0),
|
|
432
|
-
e.value.userOptions.show &&
|
|
465
|
+
e.value.userOptions.show && ne.value && (u(pe) || u(K)) ? (i(), P(u(Ue), {
|
|
433
466
|
ref_key: "details",
|
|
434
|
-
ref:
|
|
435
|
-
key: `user_options_${
|
|
467
|
+
ref: Ve,
|
|
468
|
+
key: `user_options_${re.value}`,
|
|
436
469
|
backgroundColor: e.value.style.backgroundColor,
|
|
437
470
|
color: e.value.style.color,
|
|
438
|
-
isImaging: u(
|
|
439
|
-
isPrinting: u(
|
|
471
|
+
isImaging: u(we),
|
|
472
|
+
isPrinting: u(me),
|
|
440
473
|
uid: w.value,
|
|
441
474
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
442
475
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -444,92 +477,92 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
444
477
|
hasImg: e.value.userOptions.buttons.img,
|
|
445
478
|
hasTable: e.value.userOptions.buttons.table,
|
|
446
479
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
447
|
-
isFullscreen:
|
|
448
|
-
isTooltip:
|
|
480
|
+
isFullscreen: S.value,
|
|
481
|
+
isTooltip: b.value.showTooltip,
|
|
449
482
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
450
483
|
chartElement: k.value,
|
|
451
484
|
position: e.value.userOptions.position,
|
|
452
485
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
453
|
-
isAnnotation:
|
|
486
|
+
isAnnotation: V.value,
|
|
454
487
|
callbacks: e.value.userOptions.callbacks,
|
|
455
488
|
printScale: e.value.userOptions.print.scale,
|
|
456
|
-
onToggleFullscreen:
|
|
457
|
-
onGeneratePdf: u(
|
|
458
|
-
onGenerateCsv:
|
|
459
|
-
onGenerateImage: u(
|
|
460
|
-
onToggleTable:
|
|
461
|
-
onToggleTooltip:
|
|
462
|
-
onToggleAnnotator:
|
|
463
|
-
style:
|
|
464
|
-
visibility: u(
|
|
489
|
+
onToggleFullscreen: _e,
|
|
490
|
+
onGeneratePdf: u(ke),
|
|
491
|
+
onGenerateCsv: te,
|
|
492
|
+
onGenerateImage: u(Ce),
|
|
493
|
+
onToggleTable: Ae,
|
|
494
|
+
onToggleTooltip: Le,
|
|
495
|
+
onToggleAnnotator: le,
|
|
496
|
+
style: ae({
|
|
497
|
+
visibility: u(pe) ? u(K) ? "visible" : "hidden" : "visible"
|
|
465
498
|
})
|
|
466
|
-
},
|
|
499
|
+
}, ze({ _: 2 }, [
|
|
467
500
|
t.$slots.menuIcon ? {
|
|
468
501
|
name: "menuIcon",
|
|
469
|
-
fn:
|
|
470
|
-
h(t.$slots, "menuIcon",
|
|
502
|
+
fn: c(({ isOpen: l, color: a }) => [
|
|
503
|
+
h(t.$slots, "menuIcon", M(D({ isOpen: l, color: a })), void 0, !0)
|
|
471
504
|
]),
|
|
472
505
|
key: "0"
|
|
473
506
|
} : void 0,
|
|
474
507
|
t.$slots.optionTooltip ? {
|
|
475
508
|
name: "optionTooltip",
|
|
476
|
-
fn:
|
|
509
|
+
fn: c(() => [
|
|
477
510
|
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
478
511
|
]),
|
|
479
512
|
key: "1"
|
|
480
513
|
} : void 0,
|
|
481
514
|
t.$slots.optionPdf ? {
|
|
482
515
|
name: "optionPdf",
|
|
483
|
-
fn:
|
|
516
|
+
fn: c(() => [
|
|
484
517
|
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
485
518
|
]),
|
|
486
519
|
key: "2"
|
|
487
520
|
} : void 0,
|
|
488
521
|
t.$slots.optionCsv ? {
|
|
489
522
|
name: "optionCsv",
|
|
490
|
-
fn:
|
|
523
|
+
fn: c(() => [
|
|
491
524
|
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
492
525
|
]),
|
|
493
526
|
key: "3"
|
|
494
527
|
} : void 0,
|
|
495
528
|
t.$slots.optionImg ? {
|
|
496
529
|
name: "optionImg",
|
|
497
|
-
fn:
|
|
530
|
+
fn: c(() => [
|
|
498
531
|
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
499
532
|
]),
|
|
500
533
|
key: "4"
|
|
501
534
|
} : void 0,
|
|
502
535
|
t.$slots.optionTable ? {
|
|
503
536
|
name: "optionTable",
|
|
504
|
-
fn:
|
|
537
|
+
fn: c(() => [
|
|
505
538
|
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
506
539
|
]),
|
|
507
540
|
key: "5"
|
|
508
541
|
} : void 0,
|
|
509
542
|
t.$slots.optionFullscreen ? {
|
|
510
543
|
name: "optionFullscreen",
|
|
511
|
-
fn:
|
|
512
|
-
h(t.$slots, "optionFullscreen",
|
|
544
|
+
fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
545
|
+
h(t.$slots, "optionFullscreen", M(D({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
513
546
|
]),
|
|
514
547
|
key: "6"
|
|
515
548
|
} : void 0,
|
|
516
549
|
t.$slots.optionAnnotator ? {
|
|
517
550
|
name: "optionAnnotator",
|
|
518
|
-
fn:
|
|
519
|
-
h(t.$slots, "optionAnnotator",
|
|
551
|
+
fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
552
|
+
h(t.$slots, "optionAnnotator", M(D({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
520
553
|
]),
|
|
521
554
|
key: "7"
|
|
522
555
|
} : void 0
|
|
523
556
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
524
557
|
(i(), n("svg", {
|
|
525
558
|
ref_key: "svgRef",
|
|
526
|
-
ref:
|
|
527
|
-
xmlns: u(
|
|
528
|
-
class:
|
|
529
|
-
viewBox: `0 0 ${
|
|
530
|
-
style:
|
|
559
|
+
ref: be,
|
|
560
|
+
xmlns: u(pt),
|
|
561
|
+
class: Se({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
562
|
+
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${f.value.height <= 0 ? 10 : f.value.height}`,
|
|
563
|
+
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
531
564
|
}, [
|
|
532
|
-
|
|
565
|
+
oe(u(Ge)),
|
|
533
566
|
t.$slots["chart-background"] ? (i(), n("foreignObject", {
|
|
534
567
|
key: 0,
|
|
535
568
|
x: s.value.left,
|
|
@@ -541,7 +574,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
541
574
|
}
|
|
542
575
|
}, [
|
|
543
576
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
544
|
-
], 8,
|
|
577
|
+
], 8, Rt)) : y("", !0),
|
|
545
578
|
d("defs", null, [
|
|
546
579
|
d("linearGradient", {
|
|
547
580
|
id: `age_pyramid_left_${w.value}`,
|
|
@@ -553,12 +586,12 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
553
586
|
d("stop", {
|
|
554
587
|
offset: "0%",
|
|
555
588
|
"stop-color": e.value.style.layout.bars.left.color
|
|
556
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, Mt),
|
|
557
590
|
d("stop", {
|
|
558
591
|
offset: "100%",
|
|
559
|
-
"stop-color": u(
|
|
560
|
-
}, null, 8,
|
|
561
|
-
], 8,
|
|
592
|
+
"stop-color": u(ie)(u(Oe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
593
|
+
}, null, 8, Dt)
|
|
594
|
+
], 8, Pt),
|
|
562
595
|
d("linearGradient", {
|
|
563
596
|
id: `age_pyramid_right_${w.value}`,
|
|
564
597
|
x1: "0%",
|
|
@@ -568,23 +601,23 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
568
601
|
}, [
|
|
569
602
|
d("stop", {
|
|
570
603
|
offset: "0%",
|
|
571
|
-
"stop-color": u(
|
|
572
|
-
}, null, 8,
|
|
604
|
+
"stop-color": u(ie)(u(Oe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
605
|
+
}, null, 8, Bt),
|
|
573
606
|
d("stop", {
|
|
574
607
|
offset: "100%",
|
|
575
608
|
"stop-color": e.value.style.layout.bars.right.color
|
|
576
|
-
}, null, 8,
|
|
577
|
-
], 8,
|
|
609
|
+
}, null, 8, Et)
|
|
610
|
+
], 8, Nt)
|
|
578
611
|
]),
|
|
579
|
-
(i(!0), n(
|
|
612
|
+
(i(!0), n(T, null, z($.value, (l, a) => (i(), n("g", null, [
|
|
580
613
|
d("rect", {
|
|
581
614
|
x: l.left.x,
|
|
582
615
|
y: l.left.y,
|
|
583
|
-
width: u(
|
|
616
|
+
width: u(p)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
584
617
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
585
618
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
586
619
|
rx: e.value.style.layout.bars.borderRadius
|
|
587
|
-
}, null, 8,
|
|
620
|
+
}, null, 8, Ut),
|
|
588
621
|
d("rect", {
|
|
589
622
|
x: l.left.x,
|
|
590
623
|
y: l.left.y,
|
|
@@ -592,7 +625,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
592
625
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
593
626
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : l.left.color,
|
|
594
627
|
rx: e.value.style.layout.bars.borderRadius
|
|
595
|
-
}, null, 8,
|
|
628
|
+
}, null, 8, Gt),
|
|
596
629
|
d("rect", {
|
|
597
630
|
x: l.right.x,
|
|
598
631
|
y: l.right.y,
|
|
@@ -600,7 +633,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
600
633
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
601
634
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
602
635
|
rx: e.value.style.layout.bars.borderRadius
|
|
603
|
-
}, null, 8,
|
|
636
|
+
}, null, 8, Ht),
|
|
604
637
|
d("rect", {
|
|
605
638
|
x: l.right.x,
|
|
606
639
|
y: l.right.y,
|
|
@@ -608,10 +641,10 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
608
641
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
609
642
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
|
|
610
643
|
rx: e.value.style.layout.bars.borderRadius
|
|
611
|
-
}, null, 8,
|
|
644
|
+
}, null, 8, Wt)
|
|
612
645
|
]))), 256)),
|
|
613
646
|
d("g", null, [
|
|
614
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g",
|
|
647
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g", Vt, [
|
|
615
648
|
d("text", {
|
|
616
649
|
x: s.value.left,
|
|
617
650
|
y: e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
@@ -619,7 +652,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
619
652
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
620
653
|
"text-anchor": "start",
|
|
621
654
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
622
|
-
}, C(e.value.translations.female), 9,
|
|
655
|
+
}, C(e.value.translations.female), 9, Xt),
|
|
623
656
|
d("text", {
|
|
624
657
|
x: s.value.right,
|
|
625
658
|
y: e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
@@ -627,28 +660,28 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
627
660
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
628
661
|
"text-anchor": "end",
|
|
629
662
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
630
|
-
}, C(e.value.translations.male), 9,
|
|
663
|
+
}, C(e.value.translations.male), 9, jt)
|
|
631
664
|
])) : y("", !0),
|
|
632
|
-
e.value.style.layout.dataLabels.yAxis.show ? (i(), n("g",
|
|
633
|
-
(i(!0), n(
|
|
665
|
+
e.value.style.layout.dataLabels.yAxis.show ? (i(), n("g", Yt, [
|
|
666
|
+
(i(!0), n(T, null, z(Ke.value, (l, a) => (i(), n(T, null, [
|
|
634
667
|
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), n("text", {
|
|
635
668
|
key: 0,
|
|
636
669
|
x: s.value.centerX,
|
|
637
|
-
y: s.value.top + s.value.height /
|
|
670
|
+
y: s.value.top + s.value.height / R.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
638
671
|
"text-anchor": "middle",
|
|
639
672
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
640
673
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
641
674
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
642
|
-
}, C(u(
|
|
675
|
+
}, C(u(I)(
|
|
643
676
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
644
677
|
l,
|
|
645
|
-
u(
|
|
678
|
+
u(O)({ v: l }),
|
|
646
679
|
{ datapoint: l, seriesIndex: a }
|
|
647
|
-
)), 9,
|
|
680
|
+
)), 9, qt)) : y("", !0)
|
|
648
681
|
], 64))), 256))
|
|
649
682
|
])) : y("", !0),
|
|
650
|
-
e.value.style.layout.dataLabels.xAxis.show ? (i(), n("g",
|
|
651
|
-
e.value.style.layout.grid.show ? (i(), n("g",
|
|
683
|
+
e.value.style.layout.dataLabels.xAxis.show ? (i(), n("g", Jt, [
|
|
684
|
+
e.value.style.layout.grid.show ? (i(), n("g", Kt, [
|
|
652
685
|
d("line", {
|
|
653
686
|
x1: A.value.right[0].x,
|
|
654
687
|
x2: A.value.right.at(-1).x,
|
|
@@ -657,7 +690,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
657
690
|
stroke: e.value.style.layout.grid.stroke,
|
|
658
691
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
659
692
|
"stroke-linecap": "round"
|
|
660
|
-
}, null, 8,
|
|
693
|
+
}, null, 8, Qt),
|
|
661
694
|
d("line", {
|
|
662
695
|
x1: A.value.left[0].x,
|
|
663
696
|
x2: A.value.left.at(-1).x,
|
|
@@ -666,9 +699,9 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
666
699
|
stroke: e.value.style.layout.grid.stroke,
|
|
667
700
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
668
701
|
"stroke-linecap": "round"
|
|
669
|
-
}, null, 8,
|
|
702
|
+
}, null, 8, Zt)
|
|
670
703
|
])) : y("", !0),
|
|
671
|
-
(i(!0), n(
|
|
704
|
+
(i(!0), n(T, null, z(A.value.right, (l, a) => (i(), n("g", null, [
|
|
672
705
|
e.value.style.layout.grid.show ? (i(), n("line", {
|
|
673
706
|
key: 0,
|
|
674
707
|
x1: l.x,
|
|
@@ -678,9 +711,9 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
678
711
|
stroke: e.value.style.layout.grid.stroke,
|
|
679
712
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
680
713
|
"stroke-linecap": "round"
|
|
681
|
-
}, null, 8,
|
|
714
|
+
}, null, 8, el)) : y("", !0)
|
|
682
715
|
]))), 256)),
|
|
683
|
-
(i(!0), n(
|
|
716
|
+
(i(!0), n(T, null, z(A.value.left, (l, a) => (i(), n("g", null, [
|
|
684
717
|
e.value.style.layout.grid.show ? (i(), n("line", {
|
|
685
718
|
key: 0,
|
|
686
719
|
x1: l.x,
|
|
@@ -690,81 +723,81 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
690
723
|
stroke: e.value.style.layout.grid.stroke,
|
|
691
724
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
692
725
|
"stroke-linecap": "round"
|
|
693
|
-
}, null, 8,
|
|
726
|
+
}, null, 8, tl)) : y("", !0)
|
|
694
727
|
]))), 256)),
|
|
695
728
|
d("g", {
|
|
696
729
|
ref_key: "xAxisLabels",
|
|
697
|
-
ref:
|
|
730
|
+
ref: q
|
|
698
731
|
}, [
|
|
699
|
-
(i(!0), n(
|
|
732
|
+
(i(!0), n(T, null, z(A.value.right, (l, a) => (i(), n("text", {
|
|
700
733
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
701
734
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
702
735
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
703
736
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
704
737
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
705
738
|
transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
706
|
-
}, C(u(
|
|
739
|
+
}, C(u(I)(
|
|
707
740
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
708
741
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
709
|
-
u(
|
|
742
|
+
u(O)({
|
|
710
743
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
711
744
|
}),
|
|
712
745
|
{ datapoint: l, seriesIndex: a }
|
|
713
|
-
)), 9,
|
|
714
|
-
(i(!0), n(
|
|
746
|
+
)), 9, ll))), 256)),
|
|
747
|
+
(i(!0), n(T, null, z(A.value.left, (l, a) => (i(), n("text", {
|
|
715
748
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
716
749
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
717
750
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
718
751
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
719
752
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
720
753
|
transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
721
|
-
}, C(u(
|
|
754
|
+
}, C(u(I)(
|
|
722
755
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
723
756
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
724
|
-
u(
|
|
757
|
+
u(O)({
|
|
725
758
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
726
759
|
}),
|
|
727
760
|
{ datapoint: l, seriesIndex: a }
|
|
728
|
-
)), 9,
|
|
761
|
+
)), 9, al))), 256))
|
|
729
762
|
], 512),
|
|
730
763
|
d("text", {
|
|
731
764
|
x: s.value.right,
|
|
732
|
-
y:
|
|
765
|
+
y: f.value.height,
|
|
733
766
|
"text-anchor": "end",
|
|
734
767
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
735
768
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
736
769
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
737
|
-
}, C(e.value.style.layout.dataLabels.xAxis.translation), 9,
|
|
770
|
+
}, C(e.value.style.layout.dataLabels.xAxis.translation), 9, ol)
|
|
738
771
|
])) : y("", !0)
|
|
739
772
|
]),
|
|
740
|
-
(i(!0), n(
|
|
773
|
+
(i(!0), n(T, null, z(ue.dataset, (l, a) => (i(), n("g", null, [
|
|
741
774
|
d("rect", {
|
|
742
775
|
x: s.value.left,
|
|
743
|
-
y: s.value.top + s.value.height /
|
|
776
|
+
y: s.value.top + s.value.height / R.value * a - e.value.style.layout.bars.gap / 2,
|
|
744
777
|
width: s.value.width <= 0 ? 1e-4 : s.value.width,
|
|
745
|
-
height: s.value.height /
|
|
746
|
-
fill:
|
|
747
|
-
onMouseover: (r) =>
|
|
748
|
-
onMouseleave: (r) =>
|
|
749
|
-
onClick: (r) =>
|
|
750
|
-
}, null, 40,
|
|
778
|
+
height: s.value.height / R.value <= 0 ? 1e-4 : s.value.height / R.value,
|
|
779
|
+
fill: U.value !== null && U.value === a ? u(ie)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
780
|
+
onMouseover: (r) => lt(a, l),
|
|
781
|
+
onMouseleave: (r) => tt(a, l),
|
|
782
|
+
onClick: (r) => et(a, l)
|
|
783
|
+
}, null, 40, sl)
|
|
751
784
|
]))), 256)),
|
|
752
|
-
h(t.$slots, "svg", { svg:
|
|
753
|
-
], 14,
|
|
754
|
-
t.$slots.watermark ? (i(), n("div",
|
|
755
|
-
h(t.$slots, "watermark",
|
|
785
|
+
h(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
786
|
+
], 14, Ft)),
|
|
787
|
+
t.$slots.watermark ? (i(), n("div", il, [
|
|
788
|
+
h(t.$slots, "watermark", M(D({ isPrinting: u(me) || u(we) })), void 0, !0)
|
|
756
789
|
])) : y("", !0),
|
|
757
|
-
h(t.$slots, "legend", { legend:
|
|
790
|
+
h(t.$slots, "legend", { legend: $.value }, void 0, !0),
|
|
758
791
|
t.$slots.source ? (i(), n("div", {
|
|
759
792
|
key: 5,
|
|
760
793
|
ref_key: "source",
|
|
761
|
-
ref:
|
|
794
|
+
ref: de,
|
|
762
795
|
dir: "auto"
|
|
763
796
|
}, [
|
|
764
797
|
h(t.$slots, "source", {}, void 0, !0)
|
|
765
798
|
], 512)) : y("", !0),
|
|
766
|
-
|
|
767
|
-
show:
|
|
799
|
+
oe(u(Me), {
|
|
800
|
+
show: b.value.showTooltip && j.value,
|
|
768
801
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
769
802
|
color: e.value.style.tooltip.color,
|
|
770
803
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -775,61 +808,75 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
|
|
|
775
808
|
position: e.value.style.tooltip.position,
|
|
776
809
|
offsetY: e.value.style.tooltip.offsetY,
|
|
777
810
|
parent: k.value,
|
|
778
|
-
content:
|
|
779
|
-
isFullscreen:
|
|
811
|
+
content: Y.value,
|
|
812
|
+
isFullscreen: S.value,
|
|
780
813
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
781
814
|
smooth: e.value.style.tooltip.smooth,
|
|
782
815
|
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
783
816
|
}, {
|
|
784
|
-
"tooltip-before":
|
|
785
|
-
h(t.$slots, "tooltip-before",
|
|
817
|
+
"tooltip-before": c(() => [
|
|
818
|
+
h(t.$slots, "tooltip-before", M(D({ ...Z.value })), void 0, !0)
|
|
786
819
|
]),
|
|
787
|
-
"tooltip-after":
|
|
788
|
-
h(t.$slots, "tooltip-after",
|
|
820
|
+
"tooltip-after": c(() => [
|
|
821
|
+
h(t.$slots, "tooltip-after", M(D({ ...Z.value })), void 0, !0)
|
|
789
822
|
]),
|
|
790
823
|
_: 3
|
|
791
824
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}, {
|
|
808
|
-
content: p(() => [
|
|
809
|
-
(i(), M(u(Re), {
|
|
810
|
-
key: `table_${re.value}`,
|
|
811
|
-
colNames: H.value.colNames,
|
|
812
|
-
head: H.value.head,
|
|
813
|
-
body: H.value.body,
|
|
814
|
-
config: H.value.config,
|
|
815
|
-
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
816
|
-
onClose: o[0] || (o[0] = (l) => x.value.showTable = !1)
|
|
825
|
+
ne.value ? (i(), P(rt(E.value.component), vt({ key: 6 }, E.value.props, {
|
|
826
|
+
ref_key: "tableUnit",
|
|
827
|
+
ref: N,
|
|
828
|
+
onClose: o[2] || (o[2] = (l) => b.value.showTable = !1)
|
|
829
|
+
}), ze({
|
|
830
|
+
content: c(() => [
|
|
831
|
+
(i(), P(u(Be), {
|
|
832
|
+
key: `table_${ce.value}`,
|
|
833
|
+
colNames: W.value.colNames,
|
|
834
|
+
head: W.value.head,
|
|
835
|
+
body: W.value.body,
|
|
836
|
+
config: W.value.config,
|
|
837
|
+
title: e.value.table.useDialog ? "" : E.value.title,
|
|
838
|
+
withCloseButton: !e.value.table.useDialog,
|
|
839
|
+
onClose: o[1] || (o[1] = (l) => b.value.showTable = !1)
|
|
817
840
|
}, {
|
|
818
|
-
th:
|
|
819
|
-
|
|
841
|
+
th: c(({ th: l }) => [
|
|
842
|
+
se(C(l), 1)
|
|
820
843
|
]),
|
|
821
|
-
td:
|
|
822
|
-
|
|
844
|
+
td: c(({ td: l }) => [
|
|
845
|
+
se(C(l), 1)
|
|
823
846
|
]),
|
|
824
847
|
_: 1
|
|
825
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
848
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
826
849
|
]),
|
|
827
|
-
_:
|
|
828
|
-
},
|
|
829
|
-
|
|
830
|
-
|
|
850
|
+
_: 2
|
|
851
|
+
}, [
|
|
852
|
+
e.value.table.useDialog ? {
|
|
853
|
+
name: "title",
|
|
854
|
+
fn: c(() => [
|
|
855
|
+
se(C(E.value.title), 1)
|
|
856
|
+
]),
|
|
857
|
+
key: "0"
|
|
858
|
+
} : void 0,
|
|
859
|
+
e.value.table.useDialog ? {
|
|
860
|
+
name: "actions",
|
|
861
|
+
fn: c(() => [
|
|
862
|
+
d("button", {
|
|
863
|
+
tabindex: "0",
|
|
864
|
+
class: "vue-ui-user-options-button",
|
|
865
|
+
onClick: o[0] || (o[0] = (l) => te(e.value.userOptions.callbacks.csv))
|
|
866
|
+
}, [
|
|
867
|
+
oe(u(De), {
|
|
868
|
+
name: "excel",
|
|
869
|
+
stroke: E.value.props.color
|
|
870
|
+
}, null, 8, ["stroke"])
|
|
871
|
+
])
|
|
872
|
+
]),
|
|
873
|
+
key: "1"
|
|
874
|
+
} : void 0
|
|
875
|
+
]), 1040)) : y("", !0),
|
|
876
|
+
u(fe) ? (i(), P(_t, { key: 7 })) : y("", !0)
|
|
877
|
+
], 46, Ot));
|
|
831
878
|
}
|
|
832
|
-
},
|
|
879
|
+
}, ml = /* @__PURE__ */ It(ul, [["__scopeId", "data-v-97c2a040"]]);
|
|
833
880
|
export {
|
|
834
|
-
|
|
881
|
+
ml as default
|
|
835
882
|
};
|