vue-data-ui 3.16.0 → 3.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-C4NWSOC8.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DFEJxVok.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-TFhzm8cr.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-C67ZVh2l.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-LoAIeIFd.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-BCarORO1.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DJdFQLah.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-ChXrvtSj.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-DPYfcD5f.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-COQHkRXy.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-DT50sM_h.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-KgnoG_o8.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-BNET87VV.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-Di_HG3jq.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-CybP0Vom.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Ba-5TQ3a.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-64u0LX-J.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-Qy_lKcLT.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-HoOfjAv9.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-DByHtveP.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-DbD8-S5s.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-C9F0Fva2.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-Bn-_i_L8.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-D2mUKXiE.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-gLY-fZmR.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-JWCz3Dsa.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-B58pqRYq.js} +438 -437
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-CXeBMtyK.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-CbadY7E8.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-3bJn1U3y.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-BbuQH4SB.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-78rfipI0.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-BW8kfcgB.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-Cq1Ij3or.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DDq7LxP3.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-CL5dq6Ph.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-ZsHgSA93.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CnRlC_w1.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-pMBjF5ps.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-D_1tBt3O.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-Ber3eG5N.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-DUz9LWxF.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-DRjnVH0Z.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DHinf-33.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-D-jZIHxA.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-CtRskCcH.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-gslNTicq.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-D5JI4liZ.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-BWvPiDVJ.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-BW1hOsyh.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DOE47Jpg.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-DwIOn22D.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-Dk8PXXJX.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-CcYyxhEU.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-Ch-cO4qI.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-Cflb1VOc.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-JuTN5MhL.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-BzXCA7Wf.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-C4k5LTYe.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-_1e3qZ-5.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-DF2i7jxF.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { j as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { A as
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
1
|
+
import { defineAsyncComponent as I, computed as g, ref as r, toRefs as Mt, watch as ee, shallowRef as We, onMounted as Nt, onBeforeUnmount as Ke, watchEffect as Et, openBlock as u, createElementBlock as v, unref as n, normalizeStyle as te, normalizeClass as Xe, createElementVNode as c, toDisplayString as T, createBlock as R, createCommentVNode as p, withCtx as f, renderSlot as y, normalizeProps as w, guardReactiveProps as k, createSlots as je, createVNode as he, Fragment as O, renderList as M, resolveDynamicComponent as Bt, mergeProps as Ut, createTextVNode as ge, nextTick as pe } from "vue";
|
|
2
|
+
import { j as Vt, t as Ye, o as qe, q as Gt, K as x, X as Ht, u as be, v as Je, k as N, l as E, a0 as Wt, a1 as Kt, T as Xt, U as jt, a3 as Yt } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as Qe, u as qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Jt } from "./useConfig-DO94Aj5s.js";
|
|
5
|
+
import { u as Qt, B as Zt } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
+
import { u as el } from "./usePrinter-CEpYU3r5.js";
|
|
7
|
+
import { u as tl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as me } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
|
+
import { u as ll } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as al } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as ol } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as sl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import il from "./img-LXxMLmCg.js";
|
|
14
|
+
import ul from "./Title-BeMKE1cj.js";
|
|
15
|
+
import nl from "./vue_ui_age_pyramid-8H8WSL7J.js";
|
|
16
|
+
import { A as rl } from "./A11yDataTable-KcVAX2cP.js";
|
|
17
|
+
import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const dl = ["id"], yl = ["id"], cl = { style: { position: "relative" } }, fl = ["xmlns", "viewBox", "aria-describedby"], hl = ["x", "y", "width", "height"], gl = ["id"], pl = ["stop-color"], bl = ["stop-color"], ml = ["id"], xl = ["stop-color"], wl = ["stop-color"], kl = ["x", "y", "width", "height", "fill", "rx"], Cl = ["x", "y", "width", "height", "fill", "rx"], Al = ["x", "y", "width", "height", "fill", "rx"], Tl = ["x", "y", "width", "height", "fill", "rx"], $l = { key: 0 }, Ll = ["x", "y", "fill", "font-size", "font-weight"], _l = ["x", "y", "fill", "font-size", "font-weight"], Sl = { key: 1 }, Il = ["x", "y", "font-size", "fill", "font-weight"], Ol = { key: 2 }, Pl = { key: 0 }, zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Nl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], El = ["x", "y", "font-size", "fill", "font-weight"], Bl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], Ul = {
|
|
19
19
|
key: 0,
|
|
20
20
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
21
21
|
"data-dom-to-png-ignore": "",
|
|
22
22
|
"aria-hidden": "true"
|
|
23
|
-
},
|
|
23
|
+
}, Vl = {
|
|
24
24
|
key: 5,
|
|
25
25
|
class: "vue-data-ui-watermark"
|
|
26
|
-
},
|
|
26
|
+
}, Gl = {
|
|
27
27
|
__name: "vue-ui-age-pyramid",
|
|
28
28
|
props: {
|
|
29
29
|
config: {
|
|
@@ -40,8 +40,8 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
emits: ["copyAlt"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
43
|
+
setup(xe, { expose: Ze, emit: et }) {
|
|
44
|
+
const tt = I(() => import("./Tooltip-Bf-kM3_A.js")), lt = I(() => import("./BaseIcon-Cb3zzG6s.js")), at = I(() => import("./vue-ui-accordion-nvggWcGN.js")), ot = I(() => import("./DataTable-DT2kIdQ6.js")), st = I(() => import("./PenAndPaper-Ct3qJ4lA.js")), it = I(() => import("./UserOptions-rW2fRf3V.js")), ut = I(() => import("./PackageVersion-C4NWSOC8.js")), nt = I(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_age_pyramid: rt } = Jt(), { isThemeValid: vt, warnInvalidTheme: dt } = ll(), b = xe, yt = et, we = g(() => !!b.dataset && b.dataset.length), C = r(Vt()), V = r(!1), le = r(""), P = r(null), ke = r(0), $ = r(null), Ce = r(null), Ae = r(null), Te = r(null), $e = r(0), Le = r(0), ae = r(null), G = r(null), oe = r(null), q = r(!1), J = r(!1), L = r(null), _e = r({ x: 0, y: 0 }), H = r("pointer"), se = r(!1), e = r(ne()), W = g(() => e.value.userOptions.useCursorPointer), ct = g(() => Ye({
|
|
45
45
|
defaultConfig: {
|
|
46
46
|
userOptions: { show: !1 },
|
|
47
47
|
table: { show: !1 },
|
|
@@ -73,11 +73,11 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
userConfig: e.value.skeletonConfig ?? {}
|
|
76
|
-
})), { loading:
|
|
77
|
-
...
|
|
76
|
+
})), { loading: Se, FINAL_DATASET: Q, manualLoading: ie } = Qt({
|
|
77
|
+
...Mt(b),
|
|
78
78
|
FINAL_CONFIG: e,
|
|
79
|
-
prepareConfig:
|
|
80
|
-
skeletonDataset:
|
|
79
|
+
prepareConfig: ne,
|
|
80
|
+
skeletonDataset: b.config?.skeletonDataset ?? [
|
|
81
81
|
["_", 9, 2, 2],
|
|
82
82
|
["_", 8, 3, 3],
|
|
83
83
|
["_", 7, 5, 5],
|
|
@@ -89,100 +89,100 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
89
89
|
["_", 1, 89, 89],
|
|
90
90
|
["_", 0, 144, 144]
|
|
91
91
|
],
|
|
92
|
-
skeletonConfig:
|
|
92
|
+
skeletonConfig: Ye({
|
|
93
93
|
defaultConfig: e.value,
|
|
94
|
-
userConfig:
|
|
94
|
+
userConfig: ct.value
|
|
95
95
|
})
|
|
96
|
-
}), { userOptionsVisible:
|
|
97
|
-
function
|
|
98
|
-
const t =
|
|
99
|
-
userConfig:
|
|
100
|
-
defaultConfig:
|
|
96
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: Ie, keepUserOptionState: Oe } = al({ config: e.value }), { svgRef: z } = ol({ config: e.value.style.title });
|
|
97
|
+
function ne() {
|
|
98
|
+
const t = me({
|
|
99
|
+
userConfig: b.config,
|
|
100
|
+
defaultConfig: rt
|
|
101
101
|
}), a = t.theme;
|
|
102
102
|
if (!a) return t;
|
|
103
|
-
if (!
|
|
104
|
-
return
|
|
105
|
-
const l =
|
|
106
|
-
userConfig:
|
|
103
|
+
if (!vt.value(t))
|
|
104
|
+
return dt(t), t;
|
|
105
|
+
const l = me({
|
|
106
|
+
userConfig: nl[a] || b.config,
|
|
107
107
|
defaultConfig: t
|
|
108
108
|
});
|
|
109
|
-
return
|
|
110
|
-
userConfig:
|
|
109
|
+
return me({
|
|
110
|
+
userConfig: b.config,
|
|
111
111
|
defaultConfig: l
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}, { deep: !0 }),
|
|
117
|
-
Array.isArray(t) && t.length > 0 && (
|
|
114
|
+
ee(() => b.config, (t) => {
|
|
115
|
+
Se.value || (e.value = ne()), ue.value = !e.value.userOptions.showOnChartHover, Pe(), $e.value += 1, Le.value += 1, A.value.showTable = e.value.table.show, A.value.showTooltip = e.value.style.tooltip.show;
|
|
116
|
+
}, { deep: !0 }), ee(() => b.dataset, (t) => {
|
|
117
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1);
|
|
118
118
|
}, { deep: !0 });
|
|
119
|
-
const _ =
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
const _ = We(null), B = We(null);
|
|
120
|
+
Nt(() => {
|
|
121
|
+
Pe();
|
|
122
122
|
});
|
|
123
|
-
const
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
123
|
+
const ft = g(() => !!e.value.debug);
|
|
124
|
+
function Pe() {
|
|
125
|
+
if (qe(b.dataset) && (Gt({
|
|
126
126
|
componentName: "VueUiAgePyramid",
|
|
127
127
|
type: "dataset",
|
|
128
|
-
debug:
|
|
129
|
-
}),
|
|
130
|
-
const t =
|
|
131
|
-
const { width: a, height: l } =
|
|
128
|
+
debug: ft.value
|
|
129
|
+
}), ie.value = !0), qe(b.dataset) || (ie.value = e.value.loading), e.value.responsive) {
|
|
130
|
+
const t = Qe(() => {
|
|
131
|
+
const { width: a, height: l } = qt({
|
|
132
132
|
chart: $.value,
|
|
133
|
-
title: e.value.style.title.text ?
|
|
134
|
-
source:
|
|
135
|
-
noTitle:
|
|
133
|
+
title: e.value.style.title.text ? Ce.value : null,
|
|
134
|
+
source: Ae.value,
|
|
135
|
+
noTitle: Te.value
|
|
136
136
|
});
|
|
137
137
|
requestAnimationFrame(() => {
|
|
138
|
-
|
|
138
|
+
m.value.width = a, m.value.height = l;
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
_.value && (B.value && _.value.unobserve(B.value), _.value.disconnect()), _.value = new ResizeObserver(t), B.value = $.value.parentNode, _.value.observe(B.value);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
Ke(() => {
|
|
145
145
|
_.value && (B.value && _.value.unobserve(B.value), _.value.disconnect());
|
|
146
146
|
});
|
|
147
|
-
const { isPrinting:
|
|
147
|
+
const { isPrinting: re, isImaging: ve, generatePdf: ze, generateImage: Fe } = el({
|
|
148
148
|
elementId: `vue-ui-age-pyramid_${C.value}`,
|
|
149
149
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
150
150
|
options: e.value.userOptions.print
|
|
151
|
-
}),
|
|
151
|
+
}), ht = g(() => e.value.userOptions.show && !e.value.style.title.text), A = r({
|
|
152
152
|
showTable: e.value.table.show,
|
|
153
153
|
showTooltip: e.value.style.tooltip.show
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
ee(e, () => {
|
|
156
156
|
A.value = {
|
|
157
157
|
showTable: e.value.table.show,
|
|
158
158
|
showTooltip: e.value.style.tooltip.show
|
|
159
159
|
};
|
|
160
160
|
}, { immediate: !0 });
|
|
161
|
-
const
|
|
161
|
+
const m = r({
|
|
162
162
|
height: e.value.style.height,
|
|
163
163
|
width: e.value.style.width
|
|
164
|
-
}),
|
|
165
|
-
|
|
164
|
+
}), gt = g(() => m.value.width), pt = g(() => m.value.height), Z = r(0), bt = Qe((t) => {
|
|
165
|
+
Z.value = t;
|
|
166
166
|
}, 100);
|
|
167
|
-
|
|
168
|
-
const a =
|
|
167
|
+
Et((t) => {
|
|
168
|
+
const a = ae.value;
|
|
169
169
|
if (!a) return;
|
|
170
170
|
const l = new ResizeObserver((o) => {
|
|
171
|
-
|
|
171
|
+
bt(o[0].contentRect.height);
|
|
172
172
|
});
|
|
173
173
|
l.observe(a), t(() => l.disconnect());
|
|
174
|
-
}),
|
|
175
|
-
|
|
174
|
+
}), Ke(() => {
|
|
175
|
+
Z.value = 0;
|
|
176
176
|
});
|
|
177
|
-
const s =
|
|
178
|
-
const t =
|
|
177
|
+
const s = g(() => {
|
|
178
|
+
const t = m.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, a = e.value.style.layout.padding.left, l = m.value.width - e.value.style.layout.padding.right;
|
|
179
179
|
return {
|
|
180
180
|
top: e.value.style.layout.padding.top + e.value.style.layout.dataLabels.sideTitles.fontSize + e.value.style.layout.dataLabels.sideTitles.offsetY + 12,
|
|
181
181
|
left: a,
|
|
182
182
|
right: l,
|
|
183
|
-
bottom:
|
|
183
|
+
bottom: m.value.height - e.value.style.layout.padding.bottom - Z.value,
|
|
184
184
|
width: t,
|
|
185
|
-
height:
|
|
185
|
+
height: m.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Z.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
|
|
186
186
|
centerX: e.value.style.layout.padding.left + t / 2,
|
|
187
187
|
leftChart: {
|
|
188
188
|
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
@@ -193,16 +193,16 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
193
193
|
left: a + t / 2 + e.value.style.layout.centerSlit.width
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
}),
|
|
197
|
-
const t =
|
|
196
|
+
}), mt = g(() => Q.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = g(() => {
|
|
197
|
+
const t = xt(K.value / 5), a = [], l = [];
|
|
198
198
|
for (let o = 0; o <= 5; o += 1) {
|
|
199
|
-
const d = t * o,
|
|
199
|
+
const d = t * o, i = t * (o - 5);
|
|
200
200
|
a.push({
|
|
201
201
|
value: d,
|
|
202
202
|
x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + d / K.value * s.value.leftChart.width
|
|
203
203
|
}), l.push({
|
|
204
|
-
value: Math.abs(
|
|
205
|
-
x: s.value.left + s.value.width / 2 +
|
|
204
|
+
value: Math.abs(i),
|
|
205
|
+
x: s.value.left + s.value.width / 2 + i / K.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
return {
|
|
@@ -210,13 +210,13 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
210
210
|
left: l
|
|
211
211
|
};
|
|
212
212
|
});
|
|
213
|
-
function
|
|
213
|
+
function xt(t) {
|
|
214
214
|
if (t === 0) return 0;
|
|
215
215
|
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
216
216
|
let o;
|
|
217
217
|
return t < 0, o = Math.round(t / l) * l, o;
|
|
218
218
|
}
|
|
219
|
-
const K =
|
|
219
|
+
const K = g(() => Math.max(...Q.value.flatMap((t) => t.slice(-2).map((a) => x(a))))), U = g(() => Q.value.length), wt = g(() => Q.value.map((t) => ({
|
|
220
220
|
segment: t[0],
|
|
221
221
|
age: t[1],
|
|
222
222
|
left: {
|
|
@@ -227,7 +227,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
227
227
|
value: t[3],
|
|
228
228
|
proportionToMax: t[3] / K.value
|
|
229
229
|
}
|
|
230
|
-
}))),
|
|
230
|
+
}))), h = g(() => wt.value.map((t, a) => {
|
|
231
231
|
const l = s.value.top + s.value.height / U.value * a, o = s.value.height / U.value - e.value.style.layout.bars.gap;
|
|
232
232
|
return {
|
|
233
233
|
segment: t.segment,
|
|
@@ -237,7 +237,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
237
237
|
y: l,
|
|
238
238
|
color: e.value.style.layout.bars.left.color,
|
|
239
239
|
x: s.value.leftChart.right - t.left.proportionToMax * s.value.leftChart.width,
|
|
240
|
-
width:
|
|
240
|
+
width: x(t.left.proportionToMax * s.value.leftChart.width),
|
|
241
241
|
height: o
|
|
242
242
|
},
|
|
243
243
|
right: {
|
|
@@ -245,41 +245,41 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
245
245
|
y: l,
|
|
246
246
|
color: e.value.style.layout.bars.right.color,
|
|
247
247
|
x: s.value.rightChart.left,
|
|
248
|
-
width:
|
|
248
|
+
width: x(t.right.proportionToMax * s.value.rightChart.width),
|
|
249
249
|
height: o
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
})),
|
|
253
|
-
function
|
|
252
|
+
})), de = r(null);
|
|
253
|
+
function ye(t) {
|
|
254
254
|
const [a, l, o, d] = t;
|
|
255
255
|
return { segment: a, index: l, left: o, right: d };
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
257
|
+
function De(t, a) {
|
|
258
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: ye(a), seriesIndex: t });
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
260
|
+
function kt(t, a) {
|
|
261
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ye(a), seriesIndex: t }), !(H.value === "keyboard" && L.value === t) && (P.value = null, V.value = !1);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
if (!
|
|
265
|
-
const a =
|
|
263
|
+
function Ct(t) {
|
|
264
|
+
if (!z.value) return;
|
|
265
|
+
const a = h.value[t];
|
|
266
266
|
if (!a) return;
|
|
267
|
-
const l =
|
|
267
|
+
const l = Yt(
|
|
268
268
|
s.value.left + s.value.width / 2,
|
|
269
269
|
a.left.y + a.left.height / 2,
|
|
270
|
-
|
|
270
|
+
z.value
|
|
271
271
|
);
|
|
272
|
-
l && (
|
|
272
|
+
l && (_e.value = l);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
274
|
+
function Re(t, a, l = "pointer") {
|
|
275
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: ye(a), seriesIndex: t }), P.value = t, L.value = t, H.value = l, de.value = {
|
|
276
276
|
datapoint: a,
|
|
277
277
|
seriesIndex: t,
|
|
278
|
-
series:
|
|
278
|
+
series: h.value,
|
|
279
279
|
config: e.value
|
|
280
280
|
};
|
|
281
281
|
const o = e.value.style.tooltip.customFormat;
|
|
282
|
-
if (
|
|
282
|
+
if (Xt(o) && jt(() => o({
|
|
283
283
|
seriesIndex: t,
|
|
284
284
|
datapoint: {
|
|
285
285
|
segment: a[0],
|
|
@@ -287,10 +287,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
287
287
|
left: a[2],
|
|
288
288
|
right: a[3]
|
|
289
289
|
},
|
|
290
|
-
series:
|
|
290
|
+
series: h.value,
|
|
291
291
|
config: e.value
|
|
292
292
|
})))
|
|
293
|
-
|
|
293
|
+
le.value = o({
|
|
294
294
|
seriesIndex: t,
|
|
295
295
|
datapoint: {
|
|
296
296
|
segment: a[0],
|
|
@@ -298,58 +298,58 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
298
298
|
left: a[2],
|
|
299
299
|
right: a[3]
|
|
300
300
|
},
|
|
301
|
-
series:
|
|
301
|
+
series: h.value,
|
|
302
302
|
config: e.value
|
|
303
303
|
});
|
|
304
304
|
else {
|
|
305
305
|
let d = "";
|
|
306
|
-
const
|
|
307
|
-
d += `<div><b>${
|
|
306
|
+
const i = h.value[t];
|
|
307
|
+
d += `<div><b>${i.segment}</b></div>`, d += `<div>${e.value.translations.age}: ${N(
|
|
308
308
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
x(i.age),
|
|
310
|
+
E({ v: x(i.age) }),
|
|
311
311
|
{ datapoint: a, seriesIndex: t }
|
|
312
|
-
)}</div>`, d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, d += '<div style="display:flex; flex-direction:row;gap:12px">', d += `<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_${C.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${
|
|
312
|
+
)}</div>`, d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, d += '<div style="display:flex; flex-direction:row;gap:12px">', d += `<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_${C.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${N(
|
|
313
313
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
x(i.left.value),
|
|
315
|
+
E({ v: x(i.left.value) }),
|
|
316
316
|
{ datapoint: a, seriesIndex: t }
|
|
317
|
-
)}</b></div></div>`, d += `<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_${C.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${
|
|
317
|
+
)}</b></div></div>`, d += `<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_${C.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${N(
|
|
318
318
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
x(i.right.value),
|
|
320
|
+
E({ v: x(i.right.value) }),
|
|
321
321
|
{ datapoint: a, seriesIndex: t }
|
|
322
|
-
)}</b></div></div>`, d += "</div>", d += `<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>${
|
|
322
|
+
)}</b></div></div>`, d += "</div>", d += `<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>${N(
|
|
323
323
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
x(i.right.value) + x(i.left.value),
|
|
325
|
+
E({ v: x(i.right.value) + x(i.left.value) }),
|
|
326
326
|
{ datapoint: a, seriesIndex: t }
|
|
327
|
-
)}</b></div></div>`, d += "</div>",
|
|
327
|
+
)}</b></div></div>`, d += "</div>", le.value = `<div>${d}</div>`;
|
|
328
328
|
}
|
|
329
|
-
V.value = !0, l === "keyboard" &&
|
|
330
|
-
|
|
329
|
+
V.value = !0, l === "keyboard" && pe(() => {
|
|
330
|
+
Ct(t);
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
|
|
335
|
-
const a = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l =
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), d =
|
|
342
|
-
t ? t(d) :
|
|
333
|
+
function ce(t = null) {
|
|
334
|
+
pe(() => {
|
|
335
|
+
const a = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = b.dataset.map((i) => [
|
|
336
|
+
i[0],
|
|
337
|
+
i[1],
|
|
338
|
+
i[2],
|
|
339
|
+
i[3],
|
|
340
|
+
i[2] ?? 0 + i[3] ?? 0
|
|
341
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), d = Wt(o);
|
|
342
|
+
t ? t(d) : Kt({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const F = g(() => {
|
|
346
346
|
const t = [
|
|
347
347
|
e.value.translations.year,
|
|
348
348
|
e.value.translations.age,
|
|
349
349
|
e.value.translations.female,
|
|
350
350
|
e.value.translations.male,
|
|
351
351
|
e.value.translations.total
|
|
352
|
-
], a =
|
|
352
|
+
], a = b.dataset.map((o) => [
|
|
353
353
|
o[0],
|
|
354
354
|
o[1],
|
|
355
355
|
o[2] == null ? "" : o[2].toLocaleString(),
|
|
@@ -369,57 +369,57 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
369
369
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
370
370
|
};
|
|
371
371
|
return { head: t, body: a, config: l, colNames: t };
|
|
372
|
-
}),
|
|
373
|
-
function
|
|
374
|
-
|
|
372
|
+
}), D = r(!1);
|
|
373
|
+
function Me(t) {
|
|
374
|
+
D.value = t, ke.value += 1;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Ne() {
|
|
377
377
|
A.value.showTable = !A.value.showTable;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Ee() {
|
|
380
380
|
A.value.showTooltip = !A.value.showTooltip;
|
|
381
381
|
}
|
|
382
382
|
const X = r(!1);
|
|
383
|
-
function
|
|
383
|
+
function fe() {
|
|
384
384
|
X.value = !X.value;
|
|
385
385
|
}
|
|
386
|
-
async function
|
|
386
|
+
async function At({ scale: t = 2 } = {}) {
|
|
387
387
|
if (!$.value) return;
|
|
388
|
-
const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: d, base64:
|
|
388
|
+
const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: d, base64: i } = await il({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
389
389
|
return {
|
|
390
390
|
imageUri: d,
|
|
391
|
-
base64:
|
|
391
|
+
base64: i,
|
|
392
392
|
title: e.value.style.title.text,
|
|
393
393
|
width: a,
|
|
394
394
|
height: l,
|
|
395
395
|
aspectRatio: o
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
|
-
const
|
|
399
|
-
|
|
400
|
-
timeLabelsEls:
|
|
401
|
-
timeLabels:
|
|
402
|
-
slicer:
|
|
398
|
+
const Tt = r([]), $t = r({ start: 0, end: h.value.length });
|
|
399
|
+
sl({
|
|
400
|
+
timeLabelsEls: ae,
|
|
401
|
+
timeLabels: Tt,
|
|
402
|
+
slicer: $t,
|
|
403
403
|
configRef: e,
|
|
404
404
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
405
405
|
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
406
406
|
isAutoSize: !1,
|
|
407
|
-
width:
|
|
408
|
-
height:
|
|
407
|
+
width: gt,
|
|
408
|
+
height: pt,
|
|
409
409
|
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
410
410
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
|
|
411
411
|
});
|
|
412
|
-
const j =
|
|
412
|
+
const j = g(() => {
|
|
413
413
|
const t = e.value.table.useDialog && !e.value.table.show, a = A.value.showTable;
|
|
414
414
|
return {
|
|
415
|
-
component: t ?
|
|
415
|
+
component: t ? nt : at,
|
|
416
416
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
417
417
|
props: t ? {
|
|
418
418
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
419
419
|
color: e.value.table.th.color,
|
|
420
420
|
headerColor: e.value.table.th.color,
|
|
421
421
|
headerBg: e.value.table.th.backgroundColor,
|
|
422
|
-
isFullscreen:
|
|
422
|
+
isFullscreen: D.value,
|
|
423
423
|
fullscreenParent: $.value,
|
|
424
424
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
425
425
|
isCursorPointer: W.value
|
|
@@ -440,121 +440,122 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
});
|
|
443
|
-
|
|
443
|
+
ee(() => A.value.showTable, (t) => {
|
|
444
444
|
e.value.table.show || (t && e.value.table.useDialog && G.value ? G.value.open() : "close" in G.value && G.value.close());
|
|
445
445
|
});
|
|
446
|
-
function
|
|
447
|
-
A.value.showTable = !1,
|
|
446
|
+
function Be() {
|
|
447
|
+
A.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
|
|
448
448
|
}
|
|
449
|
-
const
|
|
450
|
-
svg:
|
|
451
|
-
title:
|
|
452
|
-
backgroundColor:
|
|
449
|
+
const Lt = g(() => e.value.style.backgroundColor), _t = g(() => e.value.style.title), { exportSvg: St, getSvg: It } = tl({
|
|
450
|
+
svg: z,
|
|
451
|
+
title: _t,
|
|
452
|
+
backgroundColor: Lt
|
|
453
453
|
});
|
|
454
|
-
async function
|
|
455
|
-
|
|
454
|
+
async function Ue({ isCb: t }) {
|
|
455
|
+
J.value = !0, await pe();
|
|
456
456
|
try {
|
|
457
457
|
if (t) {
|
|
458
|
-
const { blob: a, url: l, text: o, dataUrl: d } = await
|
|
458
|
+
const { blob: a, url: l, text: o, dataUrl: d } = await It();
|
|
459
459
|
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: d }));
|
|
460
460
|
} else
|
|
461
|
-
await Promise.resolve(
|
|
461
|
+
await Promise.resolve(St());
|
|
462
462
|
} finally {
|
|
463
|
-
|
|
463
|
+
J.value = !1;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
function Ot(t) {
|
|
467
467
|
if (t?.stage === "start") {
|
|
468
|
-
|
|
468
|
+
q.value = !0;
|
|
469
469
|
return;
|
|
470
470
|
}
|
|
471
471
|
if (t?.stage === "end") {
|
|
472
|
-
|
|
472
|
+
q.value = !1;
|
|
473
473
|
return;
|
|
474
474
|
}
|
|
475
|
-
|
|
475
|
+
Fe();
|
|
476
476
|
}
|
|
477
|
-
async function
|
|
478
|
-
if (
|
|
477
|
+
async function Ve() {
|
|
478
|
+
if (yt("copyAlt", {
|
|
479
479
|
config: e.value,
|
|
480
|
-
dataset:
|
|
480
|
+
dataset: h.value
|
|
481
481
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
482
482
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
485
485
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
486
486
|
config: e.value,
|
|
487
|
-
dataset:
|
|
487
|
+
dataset: h.value
|
|
488
488
|
}));
|
|
489
489
|
}
|
|
490
|
-
function It() {
|
|
491
|
-
oe.value = !0;
|
|
492
|
-
}
|
|
493
490
|
function Pt() {
|
|
494
|
-
|
|
491
|
+
se.value = !0;
|
|
492
|
+
}
|
|
493
|
+
function zt() {
|
|
494
|
+
P.value = null, L.value = null, H.value = "pointer", V.value = !1, se.value = !1;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
497
|
-
if (!
|
|
496
|
+
function Ft(t) {
|
|
497
|
+
if (!z.value || X.value || document.activeElement !== z.value || !h.value.length) return;
|
|
498
498
|
const a = ["ArrowUp", "ArrowLeft"].includes(t.key), l = ["ArrowDown", "ArrowRight"].includes(t.key), o = t.key === "Enter" || t.key === " ", d = t.key === "Escape";
|
|
499
499
|
if (!a && !l && !o && !d) return;
|
|
500
500
|
if (t.preventDefault(), t.stopPropagation(), d) {
|
|
501
|
-
|
|
501
|
+
P.value = null, L.value = null, H.value = "pointer", V.value = !1;
|
|
502
502
|
return;
|
|
503
503
|
}
|
|
504
504
|
if (o) {
|
|
505
505
|
if (L.value === null) return;
|
|
506
|
-
const
|
|
507
|
-
if (!
|
|
508
|
-
|
|
506
|
+
const He = b.dataset[L.value];
|
|
507
|
+
if (!He) return;
|
|
508
|
+
De(L.value, He);
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
|
-
let
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
511
|
+
let i = L.value;
|
|
512
|
+
const Y = P.value, Dt = i !== null && i >= 0 && i < h.value.length, Rt = Y !== null && Y >= 0 && Y < h.value.length;
|
|
513
|
+
Dt ? a ? i = i - 1 < 0 ? h.value.length - 1 : i - 1 : l && (i = i + 1 > h.value.length - 1 ? 0 : i + 1) : Rt ? (i = l ? Y + 1 : Y - 1, i >= h.value.length && (i = 0), i < 0 && (i = h.value.length - 1)) : l ? i = 0 : i = h.value.length - 1;
|
|
514
|
+
const Ge = b.dataset[i];
|
|
515
|
+
Ge && Re(i, Ge, "keyboard");
|
|
515
516
|
}
|
|
516
|
-
return
|
|
517
|
-
getImage:
|
|
518
|
-
generatePdf:
|
|
519
|
-
generateCsv:
|
|
520
|
-
generateImage:
|
|
521
|
-
generateSvg:
|
|
522
|
-
toggleTable:
|
|
523
|
-
toggleTooltip:
|
|
524
|
-
toggleAnnotator:
|
|
525
|
-
toggleFullscreen:
|
|
526
|
-
copyAlt:
|
|
527
|
-
}), (t, a) => (
|
|
528
|
-
class:
|
|
517
|
+
return Ze({
|
|
518
|
+
getImage: At,
|
|
519
|
+
generatePdf: ze,
|
|
520
|
+
generateCsv: ce,
|
|
521
|
+
generateImage: Fe,
|
|
522
|
+
generateSvg: Ue,
|
|
523
|
+
toggleTable: Ne,
|
|
524
|
+
toggleTooltip: Ee,
|
|
525
|
+
toggleAnnotator: fe,
|
|
526
|
+
toggleFullscreen: Me,
|
|
527
|
+
copyAlt: Ve
|
|
528
|
+
}), (t, a) => (u(), v("div", {
|
|
529
|
+
class: Xe(`vue-data-ui-component vue-ui-age-pyramid ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
529
530
|
ref_key: "agePyramid",
|
|
530
531
|
ref: $,
|
|
531
532
|
id: `vue-ui-age-pyramid_${C.value}`,
|
|
532
|
-
style:
|
|
533
|
-
onMouseenter: a[1] || (a[1] = () => n(
|
|
534
|
-
onMouseleave: a[2] || (a[2] = () => n(
|
|
533
|
+
style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
534
|
+
onMouseenter: a[1] || (a[1] = () => n(Ie)(!0)),
|
|
535
|
+
onMouseleave: a[2] || (a[2] = () => n(Ie)(!1))
|
|
535
536
|
}, [
|
|
536
537
|
c("div", {
|
|
537
538
|
id: `chart-instructions-${C.value}`,
|
|
538
539
|
class: "sr-only"
|
|
539
540
|
}, [
|
|
540
541
|
c("p", null, T(e.value.a11y.translations.keyboardNavigation), 1)
|
|
541
|
-
], 8,
|
|
542
|
-
|
|
542
|
+
], 8, yl),
|
|
543
|
+
F.value?.body?.length ? (u(), R(rl, {
|
|
543
544
|
key: 0,
|
|
544
545
|
uid: C.value,
|
|
545
|
-
head:
|
|
546
|
-
body:
|
|
546
|
+
head: F.value.head,
|
|
547
|
+
body: F.value.body,
|
|
547
548
|
notice: e.value.a11y.translations.tableAvailable,
|
|
548
549
|
caption: e.value.a11y.translations.tableCaption
|
|
549
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) :
|
|
550
|
-
e.value.userOptions.buttons.annotator ? (
|
|
550
|
+
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
|
|
551
|
+
e.value.userOptions.buttons.annotator ? (u(), R(n(st), {
|
|
551
552
|
key: 1,
|
|
552
|
-
svgRef: n(
|
|
553
|
+
svgRef: n(z),
|
|
553
554
|
backgroundColor: e.value.style.backgroundColor,
|
|
554
555
|
color: e.value.style.color,
|
|
555
556
|
active: X.value,
|
|
556
557
|
isCursorPointer: W.value,
|
|
557
|
-
onClose:
|
|
558
|
+
onClose: fe
|
|
558
559
|
}, {
|
|
559
560
|
"annotator-action-close": f(() => [
|
|
560
561
|
y(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
@@ -575,22 +576,22 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
575
576
|
y(t.$slots, "annotator-action-delete", w(k({ disabled: l })), void 0, !0)
|
|
576
577
|
]),
|
|
577
578
|
_: 3
|
|
578
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) :
|
|
579
|
-
|
|
579
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
|
|
580
|
+
ht.value ? (u(), v("div", {
|
|
580
581
|
key: 2,
|
|
581
582
|
ref_key: "noTitle",
|
|
582
|
-
ref:
|
|
583
|
+
ref: Te,
|
|
583
584
|
class: "vue-data-ui-no-title-space",
|
|
584
585
|
style: "height:36px; width: 100%;background:transparent"
|
|
585
|
-
}, null, 512)) :
|
|
586
|
-
e.value.style.title.text ? (
|
|
586
|
+
}, null, 512)) : p("", !0),
|
|
587
|
+
e.value.style.title.text ? (u(), v("div", {
|
|
587
588
|
key: 3,
|
|
588
589
|
ref_key: "chartTitle",
|
|
589
|
-
ref:
|
|
590
|
+
ref: Ce,
|
|
590
591
|
style: "width:100%;background:transparent"
|
|
591
592
|
}, [
|
|
592
|
-
(
|
|
593
|
-
key: `title_${
|
|
593
|
+
(u(), R(ul, {
|
|
594
|
+
key: `title_${$e.value}`,
|
|
594
595
|
config: {
|
|
595
596
|
title: {
|
|
596
597
|
cy: "pyramid-div-title",
|
|
@@ -602,15 +603,15 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
602
603
|
}
|
|
603
604
|
}
|
|
604
605
|
}, null, 8, ["config"]))
|
|
605
|
-
], 512)) :
|
|
606
|
-
e.value.userOptions.show &&
|
|
606
|
+
], 512)) : p("", !0),
|
|
607
|
+
e.value.userOptions.show && we.value && (n(Oe) || n(ue)) ? (u(), R(n(it), {
|
|
607
608
|
ref_key: "userOptionsRef",
|
|
608
|
-
ref:
|
|
609
|
-
key: `user_options_${
|
|
609
|
+
ref: oe,
|
|
610
|
+
key: `user_options_${ke.value}`,
|
|
610
611
|
backgroundColor: e.value.style.backgroundColor,
|
|
611
612
|
color: e.value.style.color,
|
|
612
|
-
isImaging: n(
|
|
613
|
-
isPrinting: n(
|
|
613
|
+
isImaging: n(ve),
|
|
614
|
+
isPrinting: n(re),
|
|
614
615
|
uid: C.value,
|
|
615
616
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
616
617
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -620,7 +621,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
620
621
|
hasTable: e.value.userOptions.buttons.table,
|
|
621
622
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
622
623
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
623
|
-
isFullscreen:
|
|
624
|
+
isFullscreen: D.value,
|
|
624
625
|
isTooltip: A.value.showTooltip,
|
|
625
626
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
626
627
|
chartElement: $.value,
|
|
@@ -631,19 +632,19 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
631
632
|
printScale: e.value.userOptions.print.scale,
|
|
632
633
|
tableDialog: e.value.table.useDialog,
|
|
633
634
|
isCursorPointer: W.value,
|
|
634
|
-
onToggleFullscreen:
|
|
635
|
-
onGeneratePdf: n(
|
|
636
|
-
onGenerateCsv:
|
|
635
|
+
onToggleFullscreen: Me,
|
|
636
|
+
onGeneratePdf: n(ze),
|
|
637
|
+
onGenerateCsv: ce,
|
|
637
638
|
onGenerateImage: Ot,
|
|
638
|
-
onGenerateSvg:
|
|
639
|
-
onToggleTable:
|
|
640
|
-
onToggleTooltip:
|
|
641
|
-
onToggleAnnotator:
|
|
642
|
-
onCopyAlt:
|
|
643
|
-
style:
|
|
644
|
-
visibility: n(Oe) ? n(
|
|
639
|
+
onGenerateSvg: Ue,
|
|
640
|
+
onToggleTable: Ne,
|
|
641
|
+
onToggleTooltip: Ee,
|
|
642
|
+
onToggleAnnotator: fe,
|
|
643
|
+
onCopyAlt: Ve,
|
|
644
|
+
style: te({
|
|
645
|
+
visibility: n(Oe) ? n(ue) ? "visible" : "hidden" : "visible"
|
|
645
646
|
})
|
|
646
|
-
},
|
|
647
|
+
}, je({ _: 2 }, [
|
|
647
648
|
t.$slots.menuIcon ? {
|
|
648
649
|
name: "menuIcon",
|
|
649
650
|
fn: f(({ isOpen: l, color: o }) => [
|
|
@@ -714,23 +715,23 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
714
715
|
]),
|
|
715
716
|
key: "9"
|
|
716
717
|
} : void 0
|
|
717
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) :
|
|
718
|
-
c("div",
|
|
719
|
-
(
|
|
718
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
|
|
719
|
+
c("div", cl, [
|
|
720
|
+
(u(), v("svg", {
|
|
720
721
|
ref_key: "svgRef",
|
|
721
|
-
ref:
|
|
722
|
-
xmlns: n(
|
|
723
|
-
class:
|
|
724
|
-
viewBox: `0 0 ${
|
|
725
|
-
style:
|
|
722
|
+
ref: z,
|
|
723
|
+
xmlns: n(Ht),
|
|
724
|
+
class: Xe({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
725
|
+
viewBox: `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`,
|
|
726
|
+
style: te(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
726
727
|
tabindex: "0",
|
|
727
728
|
"aria-describedby": `chart-instructions-${C.value}`,
|
|
728
|
-
onFocus:
|
|
729
|
-
onBlur:
|
|
730
|
-
onKeydown:
|
|
729
|
+
onFocus: Pt,
|
|
730
|
+
onBlur: zt,
|
|
731
|
+
onKeydown: Ft
|
|
731
732
|
}, [
|
|
732
|
-
|
|
733
|
-
t.$slots["chart-background"] ? (
|
|
733
|
+
he(n(ut)),
|
|
734
|
+
t.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
734
735
|
key: 0,
|
|
735
736
|
x: s.value.left,
|
|
736
737
|
y: s.value.top,
|
|
@@ -741,7 +742,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
741
742
|
}
|
|
742
743
|
}, [
|
|
743
744
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
744
|
-
], 8,
|
|
745
|
+
], 8, hl)) : p("", !0),
|
|
745
746
|
c("defs", null, [
|
|
746
747
|
c("linearGradient", {
|
|
747
748
|
id: `age_pyramid_left_${C.value}`,
|
|
@@ -753,12 +754,12 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
753
754
|
c("stop", {
|
|
754
755
|
offset: "0%",
|
|
755
756
|
"stop-color": e.value.style.layout.bars.left.color
|
|
756
|
-
}, null, 8,
|
|
757
|
+
}, null, 8, pl),
|
|
757
758
|
c("stop", {
|
|
758
759
|
offset: "100%",
|
|
759
|
-
"stop-color": n(
|
|
760
|
-
}, null, 8,
|
|
761
|
-
], 8,
|
|
760
|
+
"stop-color": n(be)(n(Je)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
761
|
+
}, null, 8, bl)
|
|
762
|
+
], 8, gl),
|
|
762
763
|
c("linearGradient", {
|
|
763
764
|
id: `age_pyramid_right_${C.value}`,
|
|
764
765
|
x1: "0%",
|
|
@@ -768,23 +769,23 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
768
769
|
}, [
|
|
769
770
|
c("stop", {
|
|
770
771
|
offset: "0%",
|
|
771
|
-
"stop-color": n(
|
|
772
|
-
}, null, 8,
|
|
772
|
+
"stop-color": n(be)(n(Je)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
773
|
+
}, null, 8, xl),
|
|
773
774
|
c("stop", {
|
|
774
775
|
offset: "100%",
|
|
775
776
|
"stop-color": e.value.style.layout.bars.right.color
|
|
776
|
-
}, null, 8,
|
|
777
|
-
], 8,
|
|
777
|
+
}, null, 8, wl)
|
|
778
|
+
], 8, ml)
|
|
778
779
|
]),
|
|
779
|
-
(
|
|
780
|
+
(u(!0), v(O, null, M(h.value, (l, o) => (u(), v("g", null, [
|
|
780
781
|
c("rect", {
|
|
781
782
|
x: l.left.x,
|
|
782
783
|
y: l.left.y,
|
|
783
|
-
width: n(
|
|
784
|
+
width: n(x)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
784
785
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
785
786
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
786
787
|
rx: e.value.style.layout.bars.borderRadius
|
|
787
|
-
}, null, 8,
|
|
788
|
+
}, null, 8, kl),
|
|
788
789
|
c("rect", {
|
|
789
790
|
x: l.left.x,
|
|
790
791
|
y: l.left.y,
|
|
@@ -792,7 +793,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
792
793
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
793
794
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${C.value})` : l.left.color,
|
|
794
795
|
rx: e.value.style.layout.bars.borderRadius
|
|
795
|
-
}, null, 8,
|
|
796
|
+
}, null, 8, Cl),
|
|
796
797
|
c("rect", {
|
|
797
798
|
x: l.right.x,
|
|
798
799
|
y: l.right.y,
|
|
@@ -800,7 +801,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
800
801
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
801
802
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
802
803
|
rx: e.value.style.layout.bars.borderRadius
|
|
803
|
-
}, null, 8,
|
|
804
|
+
}, null, 8, Al),
|
|
804
805
|
c("rect", {
|
|
805
806
|
x: l.right.x,
|
|
806
807
|
y: l.right.y,
|
|
@@ -808,10 +809,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
808
809
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
809
810
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${C.value})` : l.right.color,
|
|
810
811
|
rx: e.value.style.layout.bars.borderRadius
|
|
811
|
-
}, null, 8,
|
|
812
|
+
}, null, 8, Tl)
|
|
812
813
|
]))), 256)),
|
|
813
814
|
c("g", null, [
|
|
814
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (
|
|
815
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (u(), v("g", $l, [
|
|
815
816
|
c("text", {
|
|
816
817
|
x: s.value.left,
|
|
817
818
|
y: e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
@@ -819,7 +820,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
819
820
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
820
821
|
"text-anchor": "start",
|
|
821
822
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
822
|
-
}, T(e.value.translations.female), 9,
|
|
823
|
+
}, T(e.value.translations.female), 9, Ll),
|
|
823
824
|
c("text", {
|
|
824
825
|
x: s.value.right,
|
|
825
826
|
y: e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
@@ -827,11 +828,11 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
827
828
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
828
829
|
"text-anchor": "end",
|
|
829
830
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
830
|
-
}, T(e.value.translations.male), 9,
|
|
831
|
-
])) :
|
|
832
|
-
e.value.style.layout.dataLabels.yAxis.show ? (
|
|
833
|
-
(
|
|
834
|
-
o % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (
|
|
831
|
+
}, T(e.value.translations.male), 9, _l)
|
|
832
|
+
])) : p("", !0),
|
|
833
|
+
e.value.style.layout.dataLabels.yAxis.show ? (u(), v("g", Sl, [
|
|
834
|
+
(u(!0), v(O, null, M(mt.value, (l, o) => (u(), v(O, null, [
|
|
835
|
+
o % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), v("text", {
|
|
835
836
|
key: 0,
|
|
836
837
|
x: s.value.centerX,
|
|
837
838
|
y: s.value.top + s.value.height / U.value * o + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
@@ -839,16 +840,16 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
839
840
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
840
841
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
841
842
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
842
|
-
}, T(n(
|
|
843
|
+
}, T(n(N)(
|
|
843
844
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
844
845
|
l,
|
|
845
|
-
n(
|
|
846
|
+
n(E)({ v: l }),
|
|
846
847
|
{ datapoint: l, seriesIndex: o }
|
|
847
|
-
)), 9,
|
|
848
|
+
)), 9, Il)) : p("", !0)
|
|
848
849
|
], 64))), 256))
|
|
849
|
-
])) :
|
|
850
|
-
e.value.style.layout.dataLabels.xAxis.show ? (
|
|
851
|
-
e.value.style.layout.grid.show ? (
|
|
850
|
+
])) : p("", !0),
|
|
851
|
+
e.value.style.layout.dataLabels.xAxis.show ? (u(), v("g", Ol, [
|
|
852
|
+
e.value.style.layout.grid.show ? (u(), v("g", Pl, [
|
|
852
853
|
c("line", {
|
|
853
854
|
x1: S.value.right[0].x,
|
|
854
855
|
x2: S.value.right.at(-1).x,
|
|
@@ -857,7 +858,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
857
858
|
stroke: e.value.style.layout.grid.stroke,
|
|
858
859
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
859
860
|
"stroke-linecap": "round"
|
|
860
|
-
}, null, 8,
|
|
861
|
+
}, null, 8, zl),
|
|
861
862
|
c("line", {
|
|
862
863
|
x1: S.value.left[0].x,
|
|
863
864
|
x2: S.value.left.at(-1).x,
|
|
@@ -866,10 +867,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
866
867
|
stroke: e.value.style.layout.grid.stroke,
|
|
867
868
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
868
869
|
"stroke-linecap": "round"
|
|
869
|
-
}, null, 8,
|
|
870
|
-
])) :
|
|
871
|
-
(
|
|
872
|
-
e.value.style.layout.grid.show ? (
|
|
870
|
+
}, null, 8, Fl)
|
|
871
|
+
])) : p("", !0),
|
|
872
|
+
(u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("g", null, [
|
|
873
|
+
e.value.style.layout.grid.show ? (u(), v("line", {
|
|
873
874
|
key: 0,
|
|
874
875
|
x1: l.x,
|
|
875
876
|
x2: l.x,
|
|
@@ -878,10 +879,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
878
879
|
stroke: e.value.style.layout.grid.stroke,
|
|
879
880
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
880
881
|
"stroke-linecap": "round"
|
|
881
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, Dl)) : p("", !0)
|
|
882
883
|
]))), 256)),
|
|
883
|
-
(
|
|
884
|
-
e.value.style.layout.grid.show ? (
|
|
884
|
+
(u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("g", null, [
|
|
885
|
+
e.value.style.layout.grid.show ? (u(), v("line", {
|
|
885
886
|
key: 0,
|
|
886
887
|
x1: l.x,
|
|
887
888
|
x2: l.x,
|
|
@@ -890,90 +891,90 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
890
891
|
stroke: e.value.style.layout.grid.stroke,
|
|
891
892
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
892
893
|
"stroke-linecap": "round"
|
|
893
|
-
}, null, 8,
|
|
894
|
+
}, null, 8, Rl)) : p("", !0)
|
|
894
895
|
]))), 256)),
|
|
895
896
|
c("g", {
|
|
896
897
|
ref_key: "xAxisLabels",
|
|
897
|
-
ref:
|
|
898
|
+
ref: ae
|
|
898
899
|
}, [
|
|
899
|
-
(
|
|
900
|
+
(u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("text", {
|
|
900
901
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
901
902
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
902
903
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
903
904
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
904
905
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
905
906
|
transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
906
|
-
}, T(n(
|
|
907
|
+
}, T(n(N)(
|
|
907
908
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
908
909
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
909
|
-
n(
|
|
910
|
+
n(E)({
|
|
910
911
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
911
912
|
}),
|
|
912
913
|
{ datapoint: l, seriesIndex: o }
|
|
913
|
-
)), 9,
|
|
914
|
-
(
|
|
914
|
+
)), 9, Ml))), 256)),
|
|
915
|
+
(u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("text", {
|
|
915
916
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
916
917
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
917
918
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
918
919
|
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
919
920
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
920
921
|
transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
921
|
-
}, T(n(
|
|
922
|
+
}, T(n(N)(
|
|
922
923
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
923
924
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
924
|
-
n(
|
|
925
|
+
n(E)({
|
|
925
926
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
926
927
|
}),
|
|
927
928
|
{ datapoint: l, seriesIndex: o }
|
|
928
|
-
)), 9,
|
|
929
|
+
)), 9, Nl))), 256))
|
|
929
930
|
], 512),
|
|
930
931
|
c("text", {
|
|
931
932
|
x: s.value.right,
|
|
932
|
-
y:
|
|
933
|
+
y: m.value.height,
|
|
933
934
|
"text-anchor": "end",
|
|
934
935
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
935
936
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
936
937
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
937
|
-
}, T(e.value.style.layout.dataLabels.xAxis.translation), 9,
|
|
938
|
-
])) :
|
|
938
|
+
}, T(e.value.style.layout.dataLabels.xAxis.translation), 9, El)
|
|
939
|
+
])) : p("", !0)
|
|
939
940
|
]),
|
|
940
|
-
(
|
|
941
|
+
(u(!0), v(O, null, M(xe.dataset, (l, o) => (u(), v("g", null, [
|
|
941
942
|
c("rect", {
|
|
942
943
|
x: s.value.left,
|
|
943
944
|
y: s.value.top + s.value.height / U.value * o - e.value.style.layout.bars.gap / 2,
|
|
944
945
|
width: s.value.width <= 0 ? 1e-4 : s.value.width,
|
|
945
946
|
height: s.value.height / U.value <= 0 ? 1e-4 : s.value.height / U.value,
|
|
946
|
-
fill:
|
|
947
|
-
onMouseover: (d) =>
|
|
948
|
-
onMouseleave: (d) =>
|
|
949
|
-
onClick: (d) =>
|
|
950
|
-
}, null, 40,
|
|
947
|
+
fill: P.value !== null && P.value === o ? n(be)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
948
|
+
onMouseover: (d) => Re(o, l, "pointer"),
|
|
949
|
+
onMouseleave: (d) => kt(o, l),
|
|
950
|
+
onClick: (d) => De(o, l)
|
|
951
|
+
}, null, 40, Bl)
|
|
951
952
|
]))), 256)),
|
|
952
953
|
y(t.$slots, "svg", {
|
|
953
954
|
svg: {
|
|
954
|
-
...
|
|
955
|
-
isPrintingImg: n(
|
|
956
|
-
isPrintingSvg:
|
|
955
|
+
...m.value,
|
|
956
|
+
isPrintingImg: n(re) | n(ve) | q.value,
|
|
957
|
+
isPrintingSvg: J.value
|
|
957
958
|
}
|
|
958
959
|
}, void 0, !0)
|
|
959
|
-
], 46,
|
|
960
|
-
t.$slots.hint ? (
|
|
961
|
-
y(t.$slots, "hint", w(k({ hint: e.value.a11y.translations.keyboardNavigation, isVisible:
|
|
962
|
-
])) :
|
|
960
|
+
], 46, fl)),
|
|
961
|
+
t.$slots.hint ? (u(), v("div", Ul, [
|
|
962
|
+
y(t.$slots, "hint", w(k({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: se.value })), void 0, !0)
|
|
963
|
+
])) : p("", !0)
|
|
963
964
|
]),
|
|
964
|
-
t.$slots.watermark ? (
|
|
965
|
-
y(t.$slots, "watermark", w(k({ isPrinting: n(
|
|
966
|
-
])) :
|
|
967
|
-
y(t.$slots, "legend", { legend:
|
|
968
|
-
t.$slots.source ? (
|
|
965
|
+
t.$slots.watermark ? (u(), v("div", Vl, [
|
|
966
|
+
y(t.$slots, "watermark", w(k({ isPrinting: n(re) || n(ve) || q.value || J.value })), void 0, !0)
|
|
967
|
+
])) : p("", !0),
|
|
968
|
+
y(t.$slots, "legend", { legend: h.value }, void 0, !0),
|
|
969
|
+
t.$slots.source ? (u(), v("div", {
|
|
969
970
|
key: 6,
|
|
970
971
|
ref_key: "source",
|
|
971
|
-
ref:
|
|
972
|
+
ref: Ae,
|
|
972
973
|
dir: "auto"
|
|
973
974
|
}, [
|
|
974
975
|
y(t.$slots, "source", {}, void 0, !0)
|
|
975
|
-
], 512)) :
|
|
976
|
-
|
|
976
|
+
], 512)) : p("", !0),
|
|
977
|
+
he(n(tt), {
|
|
977
978
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
978
979
|
show: A.value.showTooltip && V.value,
|
|
979
980
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
@@ -986,46 +987,46 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
986
987
|
position: e.value.style.tooltip.position,
|
|
987
988
|
offsetY: e.value.style.tooltip.offsetY,
|
|
988
989
|
parent: $.value,
|
|
989
|
-
content:
|
|
990
|
-
isFullscreen:
|
|
990
|
+
content: le.value,
|
|
991
|
+
isFullscreen: D.value,
|
|
991
992
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
992
993
|
smooth: e.value.style.tooltip.smooth,
|
|
993
994
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
994
995
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
995
996
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
|
|
996
997
|
isA11yMode: H.value === "keyboard",
|
|
997
|
-
a11yPosition:
|
|
998
|
+
a11yPosition: _e.value
|
|
998
999
|
}, {
|
|
999
1000
|
"tooltip-before": f(() => [
|
|
1000
|
-
y(t.$slots, "tooltip-before", w(k({ ...
|
|
1001
|
+
y(t.$slots, "tooltip-before", w(k({ ...de.value })), void 0, !0)
|
|
1001
1002
|
]),
|
|
1002
1003
|
"tooltip-after": f(() => [
|
|
1003
|
-
y(t.$slots, "tooltip-after", w(k({ ...
|
|
1004
|
+
y(t.$slots, "tooltip-after", w(k({ ...de.value })), void 0, !0)
|
|
1004
1005
|
]),
|
|
1005
1006
|
_: 3
|
|
1006
1007
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1007
|
-
|
|
1008
|
+
we.value && e.value.userOptions.buttons.table ? (u(), R(Bt(j.value.component), Ut({ key: 7 }, j.value.props, {
|
|
1008
1009
|
ref_key: "tableUnit",
|
|
1009
1010
|
ref: G,
|
|
1010
|
-
onClose:
|
|
1011
|
-
}),
|
|
1011
|
+
onClose: Be
|
|
1012
|
+
}), je({
|
|
1012
1013
|
content: f(() => [
|
|
1013
|
-
(
|
|
1014
|
-
key: `table_${
|
|
1015
|
-
colNames:
|
|
1016
|
-
head:
|
|
1017
|
-
body:
|
|
1018
|
-
config:
|
|
1014
|
+
(u(), R(n(ot), {
|
|
1015
|
+
key: `table_${Le.value}`,
|
|
1016
|
+
colNames: F.value.colNames,
|
|
1017
|
+
head: F.value.head,
|
|
1018
|
+
body: F.value.body,
|
|
1019
|
+
config: F.value.config,
|
|
1019
1020
|
title: e.value.table.useDialog ? "" : j.value.title,
|
|
1020
1021
|
withCloseButton: !e.value.table.useDialog,
|
|
1021
1022
|
isCursorPointer: W.value,
|
|
1022
|
-
onClose:
|
|
1023
|
+
onClose: Be
|
|
1023
1024
|
}, {
|
|
1024
1025
|
th: f(({ th: l }) => [
|
|
1025
|
-
|
|
1026
|
+
ge(T(l), 1)
|
|
1026
1027
|
]),
|
|
1027
1028
|
td: f(({ td: l }) => [
|
|
1028
|
-
|
|
1029
|
+
ge(T(l), 1)
|
|
1029
1030
|
]),
|
|
1030
1031
|
_: 1
|
|
1031
1032
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
@@ -1035,7 +1036,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
1035
1036
|
e.value.table.useDialog ? {
|
|
1036
1037
|
name: "title",
|
|
1037
1038
|
fn: f(() => [
|
|
1038
|
-
|
|
1039
|
+
ge(T(j.value.title), 1)
|
|
1039
1040
|
]),
|
|
1040
1041
|
key: "0"
|
|
1041
1042
|
} : void 0,
|
|
@@ -1045,10 +1046,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
1045
1046
|
c("button", {
|
|
1046
1047
|
tabindex: "0",
|
|
1047
1048
|
class: "vue-ui-user-options-button",
|
|
1048
|
-
onClick: a[0] || (a[0] = (l) =>
|
|
1049
|
-
style:
|
|
1049
|
+
onClick: a[0] || (a[0] = (l) => ce(e.value.userOptions.callbacks.csv)),
|
|
1050
|
+
style: te({ cursor: W.value ? "pointer" : "default" })
|
|
1050
1051
|
}, [
|
|
1051
|
-
|
|
1052
|
+
he(n(lt), {
|
|
1052
1053
|
name: "fileCsv",
|
|
1053
1054
|
stroke: j.value.props.color
|
|
1054
1055
|
}, null, 8, ["stroke"])
|
|
@@ -1056,13 +1057,13 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
|
|
|
1056
1057
|
]),
|
|
1057
1058
|
key: "1"
|
|
1058
1059
|
} : void 0
|
|
1059
|
-
]), 1040)) :
|
|
1060
|
+
]), 1040)) : p("", !0),
|
|
1060
1061
|
y(t.$slots, "skeleton", {}, () => [
|
|
1061
|
-
n(
|
|
1062
|
+
n(Se) ? (u(), R(Zt, { key: 0 })) : p("", !0)
|
|
1062
1063
|
], !0)
|
|
1063
|
-
], 46,
|
|
1064
|
+
], 46, dl));
|
|
1064
1065
|
}
|
|
1065
|
-
},
|
|
1066
|
+
}, ua = /* @__PURE__ */ vl(Gl, [["__scopeId", "data-v-b63d06c1"]]);
|
|
1066
1067
|
export {
|
|
1067
|
-
|
|
1068
|
+
ua as default
|
|
1068
1069
|
};
|