vue-data-ui 3.25.8 → 3.25.10
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-CZZayD-D.js} +1 -1
- package/dist/{PenAndPaper-KFzKlvbi.js → PenAndPaper-Cd3nItcO.js} +3 -3
- package/dist/{SlicerPreview-B6iHOC9L.js → SlicerPreview-Ccss7Vsq.js} +2 -2
- package/dist/{SparkTooltip-C-Y-mDrc.js → SparkTooltip-L3SliZbR.js} +1 -1
- package/dist/{UserOptions-2x4VklMW.js → UserOptions-qo_Tsqci.js} +1 -1
- 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-hill.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-label.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/composables.js +1 -1
- package/dist/{dom-to-png-C6cQJ5Hq.js → dom-to-png-BR4imuKV.js} +1 -1
- package/dist/{geoProjections-CEo3dVaL.js → geoProjections-BYthUA8l.js} +2 -2
- package/dist/{img-DhGApYG0.js → img-BkMKbWsI.js} +1 -1
- package/dist/{package-C4XeEHJx.js → package-CYtJq7s7.js} +1 -1
- package/dist/{pdf-Di5yPEw9.js → pdf-BSOs_GZz.js} +1 -1
- package/dist/{render-common-CQUp12xB.js → render-common-CpHpPc5s.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +5 -5
- package/dist/types/vue-data-ui.d.ts +5 -5
- package/dist/{usePrinter-DISD7q5m.js → usePrinter-hohanNCX.js} +4 -4
- package/dist/{useTooltipPosition-DifeoeQW.js → useTooltipPosition-BCrtQa9H.js} +1 -1
- package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-ChB3aXCO.js} +65 -65
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-DcXbkO19.js} +5 -5
- package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-Cnaxt9NI.js} +263 -251
- package/dist/{vue-ui-annotator-BO5ihHOB.js → vue-ui-annotator-BLYRy--7.js} +12 -12
- package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-DOfD2TSb.js} +4 -4
- package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DL2lDZbE.js} +3 -3
- package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-ijujiVJ5.js} +453 -441
- package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-DFtWb2-C.js} +3 -3
- package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-BGXr0s08.js} +5 -5
- package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DgBzLfbv.js} +5 -5
- package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-88qDJbt0.js} +494 -482
- package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-CcEB7Ypx.js} +1 -1
- package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-BeoFmTDs.js} +6 -6
- package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-NOVcGMCa.js} +63 -63
- package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-BGmT7H1z.js} +1 -1
- package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CP7ilveE.js} +838 -826
- package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-CtXzuWzy.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-D_-y7BZi.js} +6 -6
- package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-BR1Cn4wm.js} +4 -4
- package/dist/vue-ui-flow-Bm6TgD8I.js +1229 -0
- package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-CQ0-9nZT.js} +3 -3
- package/dist/vue-ui-galaxy-DUto0BOw.js +1097 -0
- package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-B6pyA6Jh.js} +4 -4
- package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-BlG7s8MH.js} +408 -396
- package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-BlyehpxE.js} +2 -2
- package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DqbWkKAE.js} +405 -393
- package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-CGE0NdNk.js} +7 -7
- package/dist/vue-ui-history-plot-CaxqIiTb.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-Ykwe4M1n.js} +401 -389
- package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-B7Nfet0o.js} +1 -1
- package/dist/{vue-ui-label-C1UAzvAu.js → vue-ui-label-Cs4ZlAqr.js} +10 -10
- package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-DWq98OSc.js} +347 -335
- package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-DDfimq6c.js} +5 -5
- package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-Bt-r6uXS.js} +360 -348
- package/dist/vue-ui-onion-D8gOhQHP.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BbPbJiiu.js} +387 -375
- package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BJlf3qW1.js} +418 -406
- package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-Cb8x00-X.js} +550 -538
- package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-30PF-qqr.js} +330 -318
- package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRiC4PnL.js} +4 -4
- package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-CSs4Tq_c.js} +4 -4
- package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-BqRWK5rY.js} +321 -309
- package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-Bsh6jbdW.js} +584 -572
- package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-DbPSsEKV.js} +1 -1
- package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend--8QokOII.js} +2 -2
- package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-DkX9Demg.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-Ci_xD5B7.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-Qe3ZCPRd.js} +2 -2
- package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-BwldgOYW.js} +2 -2
- package/dist/vue-ui-sparkstackbar-Divd0hL_.js +750 -0
- package/dist/vue-ui-stackbar-BWPSGzN-.js +2369 -0
- package/dist/vue-ui-stackline-BQroSnwZ.js +2483 -0
- package/dist/vue-ui-strip-plot-BCUPHkCp.js +1752 -0
- package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-DJeXLYly.js} +2 -2
- package/dist/{vue-ui-table-heatmap-BSUab4fG.js → vue-ui-table-heatmap-D5F5bLx5.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-DCm8S2uK.js} +2 -2
- package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-xu4R8d2f.js} +4 -4
- package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-i_3bMu3h.js} +1 -1
- package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DGuMI0yH.js} +4 -4
- package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-Bvl7elni.js} +311 -299
- package/dist/vue-ui-waffle-CVuYg0yU.js +1633 -0
- package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DqHD09iA.js} +4 -4
- package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-BDCuTQ8Q.js} +385 -372
- package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-B0oVwEDj.js} +474 -462
- package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BJJi0E4D.js} +1 -1
- package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-D1dPd68D.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-R2xbgDOy.js} +523 -511
- package/package.json +3 -3
- package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
- package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
- package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
- package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
- package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
- package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
- package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
- package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
- package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
|
@@ -1,140 +1,140 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Jt as i, Pt as a, Ut as o, Wt as ee, X as s,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { l as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Jt as i, Pt as a, Ut as o, Wt as ee, X as s, Z as te, Zt as ne, b as c, i as l, lt as re, nt as ie, q as ae, t as oe } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as le } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as ue } from "./usePrinter-hohanNCX.js";
|
|
6
|
+
import { n as de, t as fe } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as pe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as he } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
+
import { t as _e } from "./img-BkMKbWsI.js";
|
|
12
|
+
import { n as ve } from "./Title-CPHi-evi.js";
|
|
13
|
+
import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { l as be, t as xe } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
+
import { t as Se } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as Ce } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as we } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Ee } from "./vue_ui_age_pyramid-B2R66DgQ.js";
|
|
20
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createTextVNode as Oe, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as ke, nextTick as Ae, normalizeClass as je, normalizeProps as y, normalizeStyle as Me, onBeforeUnmount as Ne, onMounted as Pe, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as w, toRefs as Le, unref as T, watch as Re, watchEffect as ze, withCtx as E } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-age-pyramid.vue
|
|
22
|
-
var
|
|
22
|
+
var Be = /* @__PURE__ */ e({ default: () => ht }), Ve = ["id"], He = ["id"], Ue = { style: { position: "relative" } }, We = [
|
|
23
23
|
"xmlns",
|
|
24
24
|
"viewBox",
|
|
25
25
|
"aria-describedby"
|
|
26
|
-
],
|
|
26
|
+
], Ge = [
|
|
27
27
|
"x",
|
|
28
28
|
"y",
|
|
29
29
|
"width",
|
|
30
30
|
"height"
|
|
31
|
-
],
|
|
31
|
+
], Ke = [
|
|
32
32
|
"x",
|
|
33
33
|
"y",
|
|
34
34
|
"width",
|
|
35
35
|
"height",
|
|
36
36
|
"fill",
|
|
37
37
|
"rx"
|
|
38
|
-
],
|
|
38
|
+
], qe = [
|
|
39
39
|
"x",
|
|
40
40
|
"y",
|
|
41
41
|
"width",
|
|
42
42
|
"height",
|
|
43
43
|
"fill",
|
|
44
44
|
"rx"
|
|
45
|
-
],
|
|
45
|
+
], Je = [
|
|
46
46
|
"x",
|
|
47
47
|
"y",
|
|
48
48
|
"width",
|
|
49
49
|
"height",
|
|
50
50
|
"fill",
|
|
51
51
|
"rx"
|
|
52
|
-
],
|
|
52
|
+
], Ye = [
|
|
53
53
|
"x",
|
|
54
54
|
"y",
|
|
55
55
|
"width",
|
|
56
56
|
"height",
|
|
57
57
|
"fill",
|
|
58
58
|
"rx"
|
|
59
|
-
],
|
|
59
|
+
], Xe = [
|
|
60
60
|
"x",
|
|
61
61
|
"y",
|
|
62
62
|
"font-size",
|
|
63
63
|
"font-weight",
|
|
64
64
|
"fill",
|
|
65
65
|
"stroke"
|
|
66
|
-
],
|
|
66
|
+
], Ze = [
|
|
67
67
|
"x",
|
|
68
68
|
"y",
|
|
69
69
|
"font-size",
|
|
70
70
|
"font-weight",
|
|
71
71
|
"fill",
|
|
72
72
|
"stroke"
|
|
73
|
-
],
|
|
73
|
+
], Qe = { key: 0 }, $e = [
|
|
74
74
|
"x",
|
|
75
75
|
"y",
|
|
76
76
|
"fill",
|
|
77
77
|
"font-size",
|
|
78
78
|
"font-weight"
|
|
79
|
-
],
|
|
79
|
+
], et = [
|
|
80
80
|
"x",
|
|
81
81
|
"y",
|
|
82
82
|
"fill",
|
|
83
83
|
"font-size",
|
|
84
84
|
"font-weight"
|
|
85
|
-
],
|
|
85
|
+
], tt = { key: 1 }, nt = [
|
|
86
86
|
"x",
|
|
87
87
|
"y",
|
|
88
88
|
"font-size",
|
|
89
89
|
"fill",
|
|
90
90
|
"font-weight"
|
|
91
|
-
],
|
|
91
|
+
], rt = { key: 2 }, it = { key: 0 }, at = [
|
|
92
92
|
"x1",
|
|
93
93
|
"x2",
|
|
94
94
|
"y1",
|
|
95
95
|
"y2",
|
|
96
96
|
"stroke",
|
|
97
97
|
"stroke-width"
|
|
98
|
-
],
|
|
98
|
+
], ot = [
|
|
99
99
|
"x1",
|
|
100
100
|
"x2",
|
|
101
101
|
"y1",
|
|
102
102
|
"y2",
|
|
103
103
|
"stroke",
|
|
104
104
|
"stroke-width"
|
|
105
|
-
],
|
|
105
|
+
], st = [
|
|
106
106
|
"x1",
|
|
107
107
|
"x2",
|
|
108
108
|
"y1",
|
|
109
109
|
"y2",
|
|
110
110
|
"stroke",
|
|
111
111
|
"stroke-width"
|
|
112
|
-
],
|
|
112
|
+
], ct = [
|
|
113
113
|
"x1",
|
|
114
114
|
"x2",
|
|
115
115
|
"y1",
|
|
116
116
|
"y2",
|
|
117
117
|
"stroke",
|
|
118
118
|
"stroke-width"
|
|
119
|
-
],
|
|
119
|
+
], lt = [
|
|
120
120
|
"font-size",
|
|
121
121
|
"fill",
|
|
122
122
|
"text-anchor",
|
|
123
123
|
"font-weight",
|
|
124
124
|
"transform"
|
|
125
|
-
],
|
|
125
|
+
], ut = [
|
|
126
126
|
"font-size",
|
|
127
127
|
"fill",
|
|
128
128
|
"text-anchor",
|
|
129
129
|
"font-weight",
|
|
130
130
|
"transform"
|
|
131
|
-
],
|
|
131
|
+
], dt = [
|
|
132
132
|
"x",
|
|
133
133
|
"y",
|
|
134
134
|
"font-size",
|
|
135
135
|
"fill",
|
|
136
136
|
"font-weight"
|
|
137
|
-
],
|
|
137
|
+
], ft = [
|
|
138
138
|
"x",
|
|
139
139
|
"y",
|
|
140
140
|
"width",
|
|
@@ -143,7 +143,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
143
143
|
"onMouseover",
|
|
144
144
|
"onMouseleave",
|
|
145
145
|
"onClick"
|
|
146
|
-
],
|
|
146
|
+
], pt = {
|
|
147
147
|
key: 0,
|
|
148
148
|
style: {
|
|
149
149
|
position: "absolute",
|
|
@@ -153,10 +153,10 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
153
153
|
},
|
|
154
154
|
"data-dom-to-png-ignore": "",
|
|
155
155
|
"aria-hidden": "true"
|
|
156
|
-
},
|
|
156
|
+
}, mt = {
|
|
157
157
|
key: 5,
|
|
158
158
|
class: "vue-data-ui-watermark"
|
|
159
|
-
},
|
|
159
|
+
}, ht = /*#__PURE__*/ ye({
|
|
160
160
|
__name: "vue-ui-age-pyramid",
|
|
161
161
|
props: {
|
|
162
162
|
config: {
|
|
@@ -173,16 +173,16 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
emits: ["copyAlt"],
|
|
176
|
-
setup(e, { expose:
|
|
177
|
-
let
|
|
176
|
+
setup(e, { expose: ye, emit: Be }) {
|
|
177
|
+
let ht = _(() => import("./Tooltip-hhrkQ3Lk.js")), gt = _(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), _t = _(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), vt = _(() => import("./DataTable-oiM9uWrQ.js")), yt = _(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), bt = _(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), xt = _(() => import("./PackageVersion-CZZayD-D.js").then((e) => e.t)), St = _(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_age_pyramid: Ct } = le(), { isThemeValid: wt, warnInvalidTheme: Tt } = me(), D = e, Et = Be, Dt = d(() => !!D.dataset && D.dataset.length), O = x(ae()), k = x(!1), Ot = x(""), A = x(null), kt = x(0), j = x(null), At = x(null), jt = x(null), Mt = x(null), Nt = x(0), Pt = x(0), Ft = x(null), M = x(null), It = x(null), N = x(null), Lt = x({
|
|
178
178
|
x: 0,
|
|
179
179
|
y: 0
|
|
180
|
-
}), P = x("pointer"),
|
|
181
|
-
|
|
180
|
+
}), P = x("pointer"), Rt = x(!1), F = x(Kt()), I = d(() => F.value.style), L = d(() => F.value.style.layout.dataLabels), R = d(() => F.value.style.layout.bars), z = d(() => F.value.style.layout.bars.labels);
|
|
181
|
+
se({
|
|
182
182
|
config: () => F.value,
|
|
183
183
|
dataset: () => D.dataset,
|
|
184
184
|
component: "VueUiAgePyramid",
|
|
185
|
-
rules: [
|
|
185
|
+
rules: [ce.emptyArray, {
|
|
186
186
|
test: (e) => e.length > 130,
|
|
187
187
|
message: [
|
|
188
188
|
"👀 Dataset has > 130 points. Consider:",
|
|
@@ -193,7 +193,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
193
193
|
]
|
|
194
194
|
}]
|
|
195
195
|
});
|
|
196
|
-
let B = d(() => F.value.userOptions.useCursorPointer),
|
|
196
|
+
let B = d(() => F.value.userOptions.useCursorPointer), zt = d(() => ne({
|
|
197
197
|
defaultConfig: {
|
|
198
198
|
userOptions: { show: !1 },
|
|
199
199
|
table: { show: !1 },
|
|
@@ -221,10 +221,10 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
userConfig: F.value.skeletonConfig ?? {}
|
|
224
|
-
})), { loading:
|
|
225
|
-
...
|
|
224
|
+
})), { loading: Bt, FINAL_DATASET: Vt, manualLoading: Ht } = de({
|
|
225
|
+
...Le(D),
|
|
226
226
|
FINAL_CONFIG: F,
|
|
227
|
-
prepareConfig:
|
|
227
|
+
prepareConfig: Kt,
|
|
228
228
|
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
229
229
|
[
|
|
230
230
|
"_",
|
|
@@ -287,49 +287,61 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
287
287
|
144
|
|
288
288
|
]
|
|
289
289
|
],
|
|
290
|
-
skeletonConfig:
|
|
290
|
+
skeletonConfig: ne({
|
|
291
291
|
defaultConfig: F.value,
|
|
292
|
-
userConfig:
|
|
292
|
+
userConfig: zt.value
|
|
293
293
|
})
|
|
294
|
-
}), { userOptionsVisible:
|
|
295
|
-
function
|
|
296
|
-
let e =
|
|
294
|
+
}), { userOptionsVisible: Ut, setUserOptionsVisibility: Wt, keepUserOptionState: Gt } = we({ config: F.value }), { svgRef: V } = Te({ config: F.value.style.title });
|
|
295
|
+
function Kt() {
|
|
296
|
+
let e = pe({
|
|
297
297
|
userConfig: D.config,
|
|
298
|
-
defaultConfig:
|
|
298
|
+
defaultConfig: Ct
|
|
299
299
|
}), t = e.theme;
|
|
300
300
|
if (!t) return e;
|
|
301
|
-
if (!
|
|
302
|
-
let n =
|
|
303
|
-
userConfig:
|
|
301
|
+
if (!wt.value(e)) return Tt(e), e;
|
|
302
|
+
let n = pe({
|
|
303
|
+
userConfig: Ee[t] || D.config,
|
|
304
304
|
defaultConfig: e
|
|
305
305
|
});
|
|
306
|
-
return
|
|
306
|
+
return pe({
|
|
307
307
|
userConfig: D.config,
|
|
308
308
|
defaultConfig: n
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
311
|
+
function qt(e) {
|
|
312
|
+
let t = te(e);
|
|
313
|
+
return t?.style?.chart && delete t.style.tooltip, JSON.stringify(t);
|
|
314
|
+
}
|
|
315
|
+
let Jt = qt(D.config);
|
|
316
|
+
Re(() => D.config, (e, t) => {
|
|
317
|
+
let n = qt(e), r = n !== Jt;
|
|
318
|
+
Jt = n;
|
|
319
|
+
let i = Kt();
|
|
320
|
+
if (!r) {
|
|
321
|
+
F.value.style.tooltip = i.style.tooltip, W.value.showTooltip = F.value.style.tooltip.show;
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
Bt.value || (F.value = i), Ut.value = !F.value.userOptions.showOnChartHover, Xt(), Nt.value += 1, Pt.value += 1, W.value.showTable = F.value.table.show, W.value.showTooltip = F.value.style.tooltip.show;
|
|
325
|
+
}, { deep: !0 }), Re(() => D.dataset, (e) => {
|
|
326
|
+
Array.isArray(e) && e.length > 0 && (Ht.value = !1);
|
|
315
327
|
}, { deep: !0 });
|
|
316
|
-
let H =
|
|
317
|
-
|
|
318
|
-
|
|
328
|
+
let H = Ie(null), U = Ie(null);
|
|
329
|
+
Pe(() => {
|
|
330
|
+
Xt();
|
|
319
331
|
});
|
|
320
|
-
let
|
|
321
|
-
function
|
|
322
|
-
if (a(D.dataset) && (
|
|
332
|
+
let Yt = d(() => F.value.debug);
|
|
333
|
+
function Xt() {
|
|
334
|
+
if (a(D.dataset) && (ie({
|
|
323
335
|
componentName: "VueUiAgePyramid",
|
|
324
336
|
type: "dataset",
|
|
325
|
-
debug:
|
|
326
|
-
}),
|
|
327
|
-
let e =
|
|
328
|
-
let { width: e, height: t } =
|
|
337
|
+
debug: Yt.value
|
|
338
|
+
}), Ht.value = !0), a(D.dataset) || (Ht.value = F.value.loading), F.value.responsive) {
|
|
339
|
+
let e = be(() => {
|
|
340
|
+
let { width: e, height: t } = xe({
|
|
329
341
|
chart: j.value,
|
|
330
|
-
title: I.value.title.text ?
|
|
331
|
-
source:
|
|
332
|
-
noTitle:
|
|
342
|
+
title: I.value.title.text ? At.value : null,
|
|
343
|
+
source: jt.value,
|
|
344
|
+
noTitle: Mt.value
|
|
333
345
|
});
|
|
334
346
|
requestAnimationFrame(() => {
|
|
335
347
|
G.value.width = e, G.value.height = t;
|
|
@@ -338,18 +350,18 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
338
350
|
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value = j.value.parentNode, H.value.observe(U.value);
|
|
339
351
|
}
|
|
340
352
|
}
|
|
341
|
-
|
|
353
|
+
Ne(() => {
|
|
342
354
|
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
|
|
343
355
|
});
|
|
344
|
-
let { isPrinting:
|
|
356
|
+
let { isPrinting: Zt, isImaging: Qt, generatePdf: $t, generateImage: en } = ue({
|
|
345
357
|
elementId: `vue-ui-age-pyramid_${O.value}`,
|
|
346
358
|
fileName: I.value.title.text || "vue-ui-age-pyramid",
|
|
347
359
|
options: F.value.userOptions.print
|
|
348
|
-
}),
|
|
360
|
+
}), tn = d(() => F.value.userOptions.show && !I.value.title.text), W = x({
|
|
349
361
|
showTable: F.value.table.show,
|
|
350
362
|
showTooltip: I.value.tooltip.show
|
|
351
363
|
});
|
|
352
|
-
|
|
364
|
+
Re(F, () => {
|
|
353
365
|
W.value = {
|
|
354
366
|
showTable: F.value.table.show,
|
|
355
367
|
showTooltip: I.value.tooltip.show
|
|
@@ -358,18 +370,18 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
358
370
|
let G = x({
|
|
359
371
|
height: I.value.height,
|
|
360
372
|
width: I.value.width
|
|
361
|
-
}),
|
|
362
|
-
|
|
373
|
+
}), nn = d(() => G.value.width), rn = d(() => G.value.height), an = x(0), on = be((e) => {
|
|
374
|
+
an.value = e;
|
|
363
375
|
}, 100);
|
|
364
|
-
|
|
365
|
-
let t =
|
|
376
|
+
ze((e) => {
|
|
377
|
+
let t = Ft.value;
|
|
366
378
|
if (!t) return;
|
|
367
379
|
let n = new ResizeObserver((e) => {
|
|
368
|
-
|
|
380
|
+
on(e[0].contentRect.height);
|
|
369
381
|
});
|
|
370
382
|
n.observe(t), e(() => n.disconnect());
|
|
371
|
-
}),
|
|
372
|
-
|
|
383
|
+
}), Ne(() => {
|
|
384
|
+
an.value = 0;
|
|
373
385
|
});
|
|
374
386
|
let K = d(() => {
|
|
375
387
|
let e = G.value.width - I.value.layout.padding.right - I.value.layout.padding.left, t = I.value.layout.padding.left, n = G.value.width - I.value.layout.padding.right;
|
|
@@ -377,9 +389,9 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
377
389
|
top: I.value.layout.padding.top + L.value.sideTitles.fontSize + L.value.sideTitles.offsetY + 12,
|
|
378
390
|
left: t,
|
|
379
391
|
right: n,
|
|
380
|
-
bottom: G.value.height - I.value.layout.padding.bottom -
|
|
392
|
+
bottom: G.value.height - I.value.layout.padding.bottom - an.value,
|
|
381
393
|
width: e,
|
|
382
|
-
height: G.value.height - I.value.layout.padding.top - I.value.layout.padding.bottom -
|
|
394
|
+
height: G.value.height - I.value.layout.padding.top - I.value.layout.padding.bottom - an.value - L.value.sideTitles.fontSize - L.value.sideTitles.offsetY - 12,
|
|
383
395
|
centerX: I.value.layout.padding.left + e / 2,
|
|
384
396
|
leftChart: {
|
|
385
397
|
width: e / 2 - I.value.layout.centerSlit.width,
|
|
@@ -390,8 +402,8 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
390
402
|
left: t + e / 2 + I.value.layout.centerSlit.width
|
|
391
403
|
}
|
|
392
404
|
};
|
|
393
|
-
}),
|
|
394
|
-
let e =
|
|
405
|
+
}), sn = d(() => Vt.value.map((e) => L.value.yAxis.display === "age" ? e[1] : e[0])), q = d(() => {
|
|
406
|
+
let e = cn(J.value / 5), t = [], n = [];
|
|
395
407
|
for (let r = 0; r <= 5; r += 1) {
|
|
396
408
|
let i = e * r, a = e * (r - 5);
|
|
397
409
|
t.push({
|
|
@@ -407,12 +419,12 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
407
419
|
left: n
|
|
408
420
|
};
|
|
409
421
|
});
|
|
410
|
-
function
|
|
422
|
+
function cn(e) {
|
|
411
423
|
if (e === 0) return 0;
|
|
412
424
|
let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
|
|
413
425
|
return n = Math.round(e / t) * t, n;
|
|
414
426
|
}
|
|
415
|
-
let J = d(() => Math.max(...
|
|
427
|
+
let J = d(() => Math.max(...Vt.value.flatMap((e) => e.slice(-2).map((e) => c(e))))), Y = d(() => Vt.value.length), ln = d(() => Vt.value.map((e) => ({
|
|
416
428
|
segment: e[0],
|
|
417
429
|
age: e[1],
|
|
418
430
|
left: {
|
|
@@ -423,7 +435,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
423
435
|
value: e[3],
|
|
424
436
|
proportionToMax: e[3] / J.value
|
|
425
437
|
}
|
|
426
|
-
}))), X = d(() =>
|
|
438
|
+
}))), X = d(() => ln.value.map((e, t) => {
|
|
427
439
|
let n = K.value.top + K.value.height / Y.value * t, r = K.value.height / Y.value - R.value.gap;
|
|
428
440
|
return {
|
|
429
441
|
segment: e.segment,
|
|
@@ -445,8 +457,8 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
445
457
|
height: r
|
|
446
458
|
}
|
|
447
459
|
};
|
|
448
|
-
})),
|
|
449
|
-
function
|
|
460
|
+
})), un = x(null);
|
|
461
|
+
function dn(e) {
|
|
450
462
|
let [t, n, r, i] = e;
|
|
451
463
|
return {
|
|
452
464
|
segment: t,
|
|
@@ -455,37 +467,37 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
455
467
|
right: i
|
|
456
468
|
};
|
|
457
469
|
}
|
|
458
|
-
function
|
|
470
|
+
function fn(e, t) {
|
|
459
471
|
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
460
|
-
datapoint:
|
|
472
|
+
datapoint: dn(t),
|
|
461
473
|
seriesIndex: e
|
|
462
474
|
});
|
|
463
475
|
}
|
|
464
|
-
function
|
|
476
|
+
function pn(e, t) {
|
|
465
477
|
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
466
|
-
datapoint:
|
|
478
|
+
datapoint: dn(t),
|
|
467
479
|
seriesIndex: e
|
|
468
480
|
}), (P.value !== "keyboard" || N.value !== e) && (A.value = null, k.value = !1);
|
|
469
481
|
}
|
|
470
|
-
function
|
|
482
|
+
function mn(e) {
|
|
471
483
|
if (!V.value) return;
|
|
472
484
|
let t = X.value[e];
|
|
473
485
|
if (!t) return;
|
|
474
486
|
let n = i(K.value.left + K.value.width / 2, t.left.y + t.left.height / 2, V.value);
|
|
475
|
-
n && (
|
|
487
|
+
n && (Lt.value = n);
|
|
476
488
|
}
|
|
477
|
-
function
|
|
489
|
+
function hn(e, t, r = "pointer") {
|
|
478
490
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
479
|
-
datapoint:
|
|
491
|
+
datapoint: dn(t),
|
|
480
492
|
seriesIndex: e
|
|
481
|
-
}), A.value = e, N.value = e, P.value = r,
|
|
493
|
+
}), A.value = e, N.value = e, P.value = r, un.value = {
|
|
482
494
|
datapoint: t,
|
|
483
495
|
seriesIndex: e,
|
|
484
496
|
series: X.value,
|
|
485
497
|
config: F.value
|
|
486
498
|
};
|
|
487
499
|
let i = I.value.tooltip.customFormat;
|
|
488
|
-
if (n(i) &&
|
|
500
|
+
if (n(i) && re(() => i({
|
|
489
501
|
seriesIndex: e,
|
|
490
502
|
datapoint: {
|
|
491
503
|
segment: t[0],
|
|
@@ -495,7 +507,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
495
507
|
},
|
|
496
508
|
series: X.value,
|
|
497
509
|
config: F.value
|
|
498
|
-
})))
|
|
510
|
+
}))) Ot.value = i({
|
|
499
511
|
seriesIndex: e,
|
|
500
512
|
datapoint: {
|
|
501
513
|
segment: t[0],
|
|
@@ -520,14 +532,14 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
520
532
|
})}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.tooltip.borderColor}"><div>${F.value.translations.total}</div><div><b>${l(L.value.xAxis.formatter, c(r.right.value) + c(r.left.value), s({ v: c(r.right.value) + c(r.left.value) }), {
|
|
521
533
|
datapoint: t,
|
|
522
534
|
seriesIndex: e
|
|
523
|
-
})}</b></div></div>`, n += "</div>",
|
|
535
|
+
})}</b></div></div>`, n += "</div>", Ot.value = `<div>${n}</div>`;
|
|
524
536
|
}
|
|
525
|
-
k.value = !0, r === "keyboard" &&
|
|
526
|
-
|
|
537
|
+
k.value = !0, r === "keyboard" && Ae(() => {
|
|
538
|
+
mn(e);
|
|
527
539
|
});
|
|
528
540
|
}
|
|
529
|
-
function
|
|
530
|
-
|
|
541
|
+
function gn(e = null) {
|
|
542
|
+
Ae(() => {
|
|
531
543
|
let n = [
|
|
532
544
|
F.value.translations.year,
|
|
533
545
|
F.value.translations.age,
|
|
@@ -589,22 +601,22 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
589
601
|
colNames: e
|
|
590
602
|
};
|
|
591
603
|
}), Q = x(!1);
|
|
592
|
-
function
|
|
593
|
-
Q.value = e,
|
|
604
|
+
function _n(e) {
|
|
605
|
+
Q.value = e, kt.value += 1;
|
|
594
606
|
}
|
|
595
|
-
function
|
|
607
|
+
function vn() {
|
|
596
608
|
W.value.showTable = !W.value.showTable;
|
|
597
609
|
}
|
|
598
|
-
function
|
|
610
|
+
function yn() {
|
|
599
611
|
W.value.showTooltip = !W.value.showTooltip;
|
|
600
612
|
}
|
|
601
613
|
let $ = x(!1);
|
|
602
|
-
function
|
|
614
|
+
function bn() {
|
|
603
615
|
$.value = !$.value;
|
|
604
616
|
}
|
|
605
|
-
async function
|
|
617
|
+
async function xn({ scale: e = 2 } = {}) {
|
|
606
618
|
if (!j.value) return;
|
|
607
|
-
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
619
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
608
620
|
domElement: j.value,
|
|
609
621
|
base64: !0,
|
|
610
622
|
img: !0,
|
|
@@ -619,14 +631,14 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
619
631
|
aspectRatio: r
|
|
620
632
|
};
|
|
621
633
|
}
|
|
622
|
-
let
|
|
634
|
+
let Sn = x([]), Cn = x({
|
|
623
635
|
start: 0,
|
|
624
636
|
end: X.value.length
|
|
625
637
|
});
|
|
626
|
-
|
|
627
|
-
timeLabelsEls:
|
|
628
|
-
timeLabels:
|
|
629
|
-
slicer:
|
|
638
|
+
ge({
|
|
639
|
+
timeLabelsEls: Ft,
|
|
640
|
+
timeLabels: Sn,
|
|
641
|
+
slicer: Cn,
|
|
630
642
|
configRef: F,
|
|
631
643
|
rotationPath: [
|
|
632
644
|
"style",
|
|
@@ -644,15 +656,15 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
644
656
|
"enable"
|
|
645
657
|
],
|
|
646
658
|
isAutoSize: !1,
|
|
647
|
-
width:
|
|
648
|
-
height:
|
|
659
|
+
width: nn,
|
|
660
|
+
height: rn,
|
|
649
661
|
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
650
662
|
rotation: I.value.layout.dataLabels.xAxis.autoRotate.angle
|
|
651
663
|
});
|
|
652
|
-
let
|
|
664
|
+
let wn = d(() => {
|
|
653
665
|
let e = F.value.table.useDialog && !F.value.table.show, t = W.value.showTable;
|
|
654
666
|
return {
|
|
655
|
-
component: e ?
|
|
667
|
+
component: e ? St : _t,
|
|
656
668
|
title: `${I.value.title.text}${I.value.title.subtitle.text ? `: ${I.value.title.subtitle.text}` : ""}`,
|
|
657
669
|
props: e ? {
|
|
658
670
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -680,23 +692,23 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
680
692
|
}
|
|
681
693
|
};
|
|
682
694
|
});
|
|
683
|
-
|
|
695
|
+
Re(() => W.value.showTable, (e) => {
|
|
684
696
|
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
685
697
|
});
|
|
686
|
-
function
|
|
687
|
-
W.value.showTable = !1,
|
|
698
|
+
function Tn() {
|
|
699
|
+
W.value.showTable = !1, It.value && It.value.setTableIconState(!1);
|
|
688
700
|
}
|
|
689
|
-
let
|
|
701
|
+
let En = d(() => F.value.style.backgroundColor), Dn = d(() => F.value.style.title), { isCallbackImaging: On, isCallbackSvg: kn, generateSvg: An, onGenerateImage: jn } = he({
|
|
690
702
|
svg: V,
|
|
691
|
-
title:
|
|
703
|
+
title: Dn,
|
|
692
704
|
legend: null,
|
|
693
705
|
legendItems: null,
|
|
694
|
-
backgroundColor:
|
|
706
|
+
backgroundColor: En,
|
|
695
707
|
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
696
|
-
generateImage:
|
|
708
|
+
generateImage: en
|
|
697
709
|
});
|
|
698
|
-
async function
|
|
699
|
-
if (
|
|
710
|
+
async function Mn() {
|
|
711
|
+
if (Et("copyAlt", {
|
|
700
712
|
config: F.value,
|
|
701
713
|
dataset: X.value
|
|
702
714
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -708,13 +720,13 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
708
720
|
dataset: X.value
|
|
709
721
|
}));
|
|
710
722
|
}
|
|
711
|
-
function
|
|
712
|
-
|
|
723
|
+
function Nn() {
|
|
724
|
+
Rt.value = !0;
|
|
713
725
|
}
|
|
714
|
-
function
|
|
715
|
-
A.value = null, N.value = null, P.value = "pointer", k.value = !1,
|
|
726
|
+
function Pn() {
|
|
727
|
+
A.value = null, N.value = null, P.value = "pointer", k.value = !1, Rt.value = !1;
|
|
716
728
|
}
|
|
717
|
-
function
|
|
729
|
+
function Fn(e) {
|
|
718
730
|
if (!V.value || $.value || document.activeElement !== V.value || !X.value.length) return;
|
|
719
731
|
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
720
732
|
if (!t && !n && !r && !i) return;
|
|
@@ -726,39 +738,39 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
726
738
|
if (N.value === null) return;
|
|
727
739
|
let e = D.dataset[N.value];
|
|
728
740
|
if (!e) return;
|
|
729
|
-
|
|
741
|
+
fn(N.value, e);
|
|
730
742
|
return;
|
|
731
743
|
}
|
|
732
744
|
let a = N.value, o = A.value, ee = a !== null && a >= 0 && a < X.value.length, s = o !== null && o >= 0 && o < X.value.length;
|
|
733
745
|
ee ? t ? a = a - 1 < 0 ? X.value.length - 1 : a - 1 : n && (a = a + 1 > X.value.length - 1 ? 0 : a + 1) : s ? (a = n ? o + 1 : o - 1, a >= X.value.length && (a = 0), a < 0 && (a = X.value.length - 1)) : a = n ? 0 : X.value.length - 1;
|
|
734
746
|
let te = D.dataset[a];
|
|
735
|
-
te &&
|
|
747
|
+
te && hn(a, te, "keyboard");
|
|
736
748
|
}
|
|
737
|
-
return
|
|
738
|
-
getImage:
|
|
739
|
-
generatePdf:
|
|
740
|
-
generateCsv:
|
|
741
|
-
generateImage:
|
|
742
|
-
generateSvg:
|
|
743
|
-
toggleTable:
|
|
744
|
-
toggleTooltip:
|
|
745
|
-
toggleAnnotator:
|
|
746
|
-
toggleFullscreen:
|
|
747
|
-
copyAlt:
|
|
749
|
+
return ye({
|
|
750
|
+
getImage: xn,
|
|
751
|
+
generatePdf: $t,
|
|
752
|
+
generateCsv: gn,
|
|
753
|
+
generateImage: en,
|
|
754
|
+
generateSvg: An,
|
|
755
|
+
toggleTable: vn,
|
|
756
|
+
toggleTooltip: yn,
|
|
757
|
+
toggleAnnotator: bn,
|
|
758
|
+
toggleFullscreen: _n,
|
|
759
|
+
copyAlt: Mn
|
|
748
760
|
}), (t, n) => (b(), m("div", {
|
|
749
|
-
class:
|
|
761
|
+
class: je(`vue-data-ui-component vue-ui-age-pyramid ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
750
762
|
ref_key: "agePyramid",
|
|
751
763
|
ref: j,
|
|
752
764
|
id: `vue-ui-age-pyramid_${O.value}`,
|
|
753
|
-
style:
|
|
754
|
-
onMouseenter: n[1] ||= () => T(
|
|
755
|
-
onMouseleave: n[2] ||= () => T(
|
|
765
|
+
style: Me(`font-family:${I.value.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor};${F.value.responsive ? "height:100%" : ""}`),
|
|
766
|
+
onMouseenter: n[1] ||= () => T(Wt)(!0),
|
|
767
|
+
onMouseleave: n[2] ||= () => T(Wt)(!1)
|
|
756
768
|
}, [
|
|
757
769
|
h("div", {
|
|
758
770
|
id: `chart-instructions-${O.value}`,
|
|
759
771
|
class: "sr-only"
|
|
760
|
-
}, [h("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
761
|
-
Z.value?.body?.length ? (b(), f(
|
|
772
|
+
}, [h("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8, He),
|
|
773
|
+
Z.value?.body?.length ? (b(), f(Ce, {
|
|
762
774
|
key: 0,
|
|
763
775
|
uid: O.value,
|
|
764
776
|
head: Z.value.head,
|
|
@@ -772,7 +784,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
772
784
|
"notice",
|
|
773
785
|
"caption"
|
|
774
786
|
])) : p("", !0),
|
|
775
|
-
F.value.userOptions.buttons.annotator ? (b(), f(T(
|
|
787
|
+
F.value.userOptions.buttons.annotator ? (b(), f(T(yt), {
|
|
776
788
|
key: 1,
|
|
777
789
|
svgRef: T(V),
|
|
778
790
|
backgroundColor: I.value.backgroundColor,
|
|
@@ -780,7 +792,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
780
792
|
active: $.value,
|
|
781
793
|
isCursorPointer: B.value,
|
|
782
794
|
palette: F.value.userOptions.annotatorPalette,
|
|
783
|
-
onClose:
|
|
795
|
+
onClose: bn
|
|
784
796
|
}, {
|
|
785
797
|
"annotator-action-close": E(() => [C(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
786
798
|
"annotator-action-color": E(({ color: e }) => [C(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
|
|
@@ -797,20 +809,20 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
797
809
|
"isCursorPointer",
|
|
798
810
|
"palette"
|
|
799
811
|
])) : p("", !0),
|
|
800
|
-
|
|
812
|
+
tn.value ? (b(), m("div", {
|
|
801
813
|
key: 2,
|
|
802
814
|
ref_key: "noTitle",
|
|
803
|
-
ref:
|
|
815
|
+
ref: Mt,
|
|
804
816
|
class: "vue-data-ui-no-title-space",
|
|
805
817
|
style: "height:36px; width: 100%;background:transparent"
|
|
806
818
|
}, null, 512)) : p("", !0),
|
|
807
819
|
I.value.title.text ? (b(), m("div", {
|
|
808
820
|
key: 3,
|
|
809
821
|
ref_key: "chartTitle",
|
|
810
|
-
ref:
|
|
822
|
+
ref: At,
|
|
811
823
|
style: "width:100%;background:transparent"
|
|
812
|
-
}, [(b(), f(
|
|
813
|
-
key: `title_${
|
|
824
|
+
}, [(b(), f(ve, {
|
|
825
|
+
key: `title_${Nt.value}`,
|
|
814
826
|
config: {
|
|
815
827
|
title: {
|
|
816
828
|
cy: "pyramid-div-title",
|
|
@@ -822,14 +834,14 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
822
834
|
}
|
|
823
835
|
}
|
|
824
836
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
825
|
-
F.value.userOptions.show &&
|
|
837
|
+
F.value.userOptions.show && Dt.value && (T(Gt) || T(Ut)) ? (b(), f(T(bt), {
|
|
826
838
|
ref_key: "userOptionsRef",
|
|
827
|
-
ref:
|
|
828
|
-
key: `user_options_${
|
|
839
|
+
ref: It,
|
|
840
|
+
key: `user_options_${kt.value}`,
|
|
829
841
|
backgroundColor: I.value.backgroundColor,
|
|
830
842
|
color: I.value.color,
|
|
831
|
-
isImaging: T(
|
|
832
|
-
isPrinting: T(
|
|
843
|
+
isImaging: T(Qt),
|
|
844
|
+
isPrinting: T(Zt),
|
|
833
845
|
uid: O.value,
|
|
834
846
|
hasTooltip: F.value.userOptions.buttons.tooltip && I.value.tooltip.show,
|
|
835
847
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
@@ -850,17 +862,17 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
850
862
|
printScale: F.value.userOptions.print.scale,
|
|
851
863
|
tableDialog: F.value.table.useDialog,
|
|
852
864
|
isCursorPointer: B.value,
|
|
853
|
-
onToggleFullscreen:
|
|
854
|
-
onGeneratePdf: T(
|
|
855
|
-
onGenerateCsv:
|
|
856
|
-
onGenerateImage: T(
|
|
857
|
-
onGenerateSvg: T(
|
|
858
|
-
onToggleTable:
|
|
859
|
-
onToggleTooltip:
|
|
860
|
-
onToggleAnnotator:
|
|
861
|
-
onCopyAlt:
|
|
862
|
-
style:
|
|
863
|
-
},
|
|
865
|
+
onToggleFullscreen: _n,
|
|
866
|
+
onGeneratePdf: T($t),
|
|
867
|
+
onGenerateCsv: gn,
|
|
868
|
+
onGenerateImage: T(jn),
|
|
869
|
+
onGenerateSvg: T(An),
|
|
870
|
+
onToggleTable: vn,
|
|
871
|
+
onToggleTooltip: yn,
|
|
872
|
+
onToggleAnnotator: bn,
|
|
873
|
+
onCopyAlt: Mn,
|
|
874
|
+
style: Me({ visibility: T(Gt) ? T(Ut) ? "visible" : "hidden" : "visible" })
|
|
875
|
+
}, De({ _: 2 }, [
|
|
864
876
|
t.$slots.menuIcon ? {
|
|
865
877
|
name: "menuIcon",
|
|
866
878
|
fn: E(({ isOpen: e, color: n }) => [C(t.$slots, "menuIcon", y(v({
|
|
@@ -931,23 +943,23 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
931
943
|
key: "11"
|
|
932
944
|
} : void 0
|
|
933
945
|
]), 1032, /* @__PURE__ */ "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.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
|
|
934
|
-
h("div",
|
|
946
|
+
h("div", Ue, [(b(), m("svg", {
|
|
935
947
|
ref_key: "svgRef",
|
|
936
948
|
ref: V,
|
|
937
|
-
xmlns: T(
|
|
938
|
-
class:
|
|
949
|
+
xmlns: T(oe),
|
|
950
|
+
class: je({
|
|
939
951
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
940
952
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
941
953
|
}),
|
|
942
954
|
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
|
|
943
|
-
style:
|
|
955
|
+
style: Me(`max-width:100%;overflow:visible;background:transparent;color:${I.value.color}`),
|
|
944
956
|
tabindex: "0",
|
|
945
957
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
946
|
-
onFocus:
|
|
947
|
-
onBlur:
|
|
948
|
-
onKeydown:
|
|
958
|
+
onFocus: Nn,
|
|
959
|
+
onBlur: Pn,
|
|
960
|
+
onKeydown: Fn
|
|
949
961
|
}, [
|
|
950
|
-
g(T(
|
|
962
|
+
g(T(xt)),
|
|
951
963
|
t.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
952
964
|
key: 0,
|
|
953
965
|
x: K.value.left,
|
|
@@ -955,8 +967,8 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
955
967
|
width: Math.max(.1, K.value.width),
|
|
956
968
|
height: Math.max(.1, K.value.height),
|
|
957
969
|
style: { pointerEvents: "none" }
|
|
958
|
-
}, [C(t.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
959
|
-
h("defs", null, [g(
|
|
970
|
+
}, [C(t.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
|
|
971
|
+
h("defs", null, [g(Se, {
|
|
960
972
|
t: "linear",
|
|
961
973
|
id: `age_pyramid_left_${O.value}`,
|
|
962
974
|
x1: "0%",
|
|
@@ -972,7 +984,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
972
984
|
T(o)(T(ee)(R.value.left.color, R.value.gradient.shiftHue), 100 - R.value.gradient.intensity),
|
|
973
985
|
1
|
|
974
986
|
]]
|
|
975
|
-
}, null, 8, ["id", "stops"]), g(
|
|
987
|
+
}, null, 8, ["id", "stops"]), g(Se, {
|
|
976
988
|
t: "linear",
|
|
977
989
|
id: `age_pyramid_right_${O.value}`,
|
|
978
990
|
x1: "0%",
|
|
@@ -997,7 +1009,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
997
1009
|
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
998
1010
|
fill: R.value.gradient.underlayer,
|
|
999
1011
|
rx: R.value.borderRadius
|
|
1000
|
-
}, null, 8,
|
|
1012
|
+
}, null, 8, Ke),
|
|
1001
1013
|
h("rect", {
|
|
1002
1014
|
x: e.left.x,
|
|
1003
1015
|
y: e.left.y,
|
|
@@ -1005,7 +1017,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1005
1017
|
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
1006
1018
|
fill: R.value.gradient.show ? `url(#age_pyramid_left_${O.value})` : e.left.color,
|
|
1007
1019
|
rx: R.value.borderRadius
|
|
1008
|
-
}, null, 8,
|
|
1020
|
+
}, null, 8, qe),
|
|
1009
1021
|
h("rect", {
|
|
1010
1022
|
x: e.right.x,
|
|
1011
1023
|
y: e.right.y,
|
|
@@ -1013,7 +1025,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1013
1025
|
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
1014
1026
|
fill: R.value.gradient.underlayer,
|
|
1015
1027
|
rx: R.value.borderRadius
|
|
1016
|
-
}, null, 8,
|
|
1028
|
+
}, null, 8, Je),
|
|
1017
1029
|
h("rect", {
|
|
1018
1030
|
x: e.right.x,
|
|
1019
1031
|
y: e.right.y,
|
|
@@ -1021,7 +1033,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1021
1033
|
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
1022
1034
|
fill: R.value.gradient.show ? `url(#age_pyramid_right_${O.value})` : e.right.color,
|
|
1023
1035
|
rx: R.value.borderRadius
|
|
1024
|
-
}, null, 8,
|
|
1036
|
+
}, null, 8, Ye)
|
|
1025
1037
|
]))), 256)),
|
|
1026
1038
|
(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("g", null, [z.value.show ? (b(), m(u, { key: 0 }, [!z.value.showOnHover || z.value.showOnHover && A.value === t ? (b(), m("text", {
|
|
1027
1039
|
key: 0,
|
|
@@ -1040,7 +1052,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1040
1052
|
}, w(T(l)(z.value.formatter, e.left.value, T(s)({ v: e.left.value }), {
|
|
1041
1053
|
datapoint: e.left,
|
|
1042
1054
|
seriesIndex: t
|
|
1043
|
-
})), 9,
|
|
1055
|
+
})), 9, Xe)) : p("", !0)], 64)) : p("", !0), z.value.show ? (b(), m(u, { key: 1 }, [!z.value.showOnHover || z.value.showOnHover && A.value === t ? (b(), m("text", {
|
|
1044
1056
|
key: 0,
|
|
1045
1057
|
x: e.right.x + z.value.offsetX + 6,
|
|
1046
1058
|
y: e.right.y + Math.max(1e-4, e.right.height / 2) + R.value.gap / 2,
|
|
@@ -1057,24 +1069,24 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1057
1069
|
}, w(T(l)(z.value.formatter, e.right.value, T(s)({ v: e.right.value }), {
|
|
1058
1070
|
datapoint: e.right,
|
|
1059
1071
|
seriesIndex: t
|
|
1060
|
-
})), 9,
|
|
1072
|
+
})), 9, Ze)) : p("", !0)], 64)) : p("", !0)]))), 256)),
|
|
1061
1073
|
h("g", null, [
|
|
1062
|
-
L.value.sideTitles.show ? (b(), m("g",
|
|
1074
|
+
L.value.sideTitles.show ? (b(), m("g", Qe, [h("text", {
|
|
1063
1075
|
x: K.value.left,
|
|
1064
1076
|
y: L.value.sideTitles.fontSize,
|
|
1065
1077
|
fill: L.value.sideTitles.useSideColor ? R.value.left.color : L.value.sideTitles.color,
|
|
1066
1078
|
"font-size": L.value.sideTitles.fontSize,
|
|
1067
1079
|
"text-anchor": "start",
|
|
1068
1080
|
"font-weight": L.value.sideTitles.bold ? "bold" : "normal"
|
|
1069
|
-
}, w(F.value.translations.female), 9,
|
|
1081
|
+
}, w(F.value.translations.female), 9, $e), h("text", {
|
|
1070
1082
|
x: K.value.right,
|
|
1071
1083
|
y: L.value.sideTitles.fontSize,
|
|
1072
1084
|
fill: L.value.sideTitles.useSideColor ? R.value.right.color : L.value.sideTitles.color,
|
|
1073
1085
|
"font-size": L.value.sideTitles.fontSize,
|
|
1074
1086
|
"text-anchor": "end",
|
|
1075
1087
|
"font-weight": L.value.sideTitles.bold ? "bold" : "normal"
|
|
1076
|
-
}, w(F.value.translations.male), 9,
|
|
1077
|
-
L.value.yAxis.show ? (b(), m("g",
|
|
1088
|
+
}, w(F.value.translations.male), 9, et)])) : p("", !0),
|
|
1089
|
+
L.value.yAxis.show ? (b(), m("g", tt, [(b(!0), m(u, null, S(sn.value, (e, t) => (b(), m(u, null, [t % L.value.yAxis.showEvery === 0 && (!z.value.show || z.value.showOnHover && A.value === t || A.value === null) || (z.value.show || z.value.showOnHover) && A.value === t ? (b(), m("text", {
|
|
1078
1090
|
key: 0,
|
|
1079
1091
|
x: K.value.centerX,
|
|
1080
1092
|
y: K.value.top + K.value.height / Y.value / 2 + K.value.height / Y.value * t,
|
|
@@ -1086,9 +1098,9 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1086
1098
|
}, w(T(l)(L.value.yAxis.formatter, e, T(s)({ v: e }), {
|
|
1087
1099
|
datapoint: e,
|
|
1088
1100
|
seriesIndex: t
|
|
1089
|
-
})), 9,
|
|
1090
|
-
L.value.xAxis.show ? (b(), m("g",
|
|
1091
|
-
I.value.layout.grid.show ? (b(), m("g",
|
|
1101
|
+
})), 9, nt)) : p("", !0)], 64))), 256))])) : p("", !0),
|
|
1102
|
+
L.value.xAxis.show ? (b(), m("g", rt, [
|
|
1103
|
+
I.value.layout.grid.show ? (b(), m("g", it, [h("line", {
|
|
1092
1104
|
x1: q.value.right[0].x,
|
|
1093
1105
|
x2: q.value.right.at(-1).x,
|
|
1094
1106
|
y1: K.value.bottom + L.value.xAxis.fontSize / 2,
|
|
@@ -1096,7 +1108,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1096
1108
|
stroke: I.value.layout.grid.stroke,
|
|
1097
1109
|
"stroke-width": I.value.layout.grid.strokeWidth,
|
|
1098
1110
|
"stroke-linecap": "round"
|
|
1099
|
-
}, null, 8,
|
|
1111
|
+
}, null, 8, at), h("line", {
|
|
1100
1112
|
x1: q.value.left[0].x,
|
|
1101
1113
|
x2: q.value.left.at(-1).x,
|
|
1102
1114
|
y1: K.value.bottom + L.value.xAxis.fontSize / 2,
|
|
@@ -1104,7 +1116,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1104
1116
|
stroke: I.value.layout.grid.stroke,
|
|
1105
1117
|
"stroke-width": I.value.layout.grid.strokeWidth,
|
|
1106
1118
|
"stroke-linecap": "round"
|
|
1107
|
-
}, null, 8,
|
|
1119
|
+
}, null, 8, ot)])) : p("", !0),
|
|
1108
1120
|
(b(!0), m(u, null, S(q.value.right, (e, t) => (b(), m("g", null, [I.value.layout.grid.show ? (b(), m("line", {
|
|
1109
1121
|
key: 0,
|
|
1110
1122
|
x1: e.x,
|
|
@@ -1114,7 +1126,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1114
1126
|
stroke: I.value.layout.grid.stroke,
|
|
1115
1127
|
"stroke-width": I.value.layout.grid.strokeWidth,
|
|
1116
1128
|
"stroke-linecap": "round"
|
|
1117
|
-
}, null, 8,
|
|
1129
|
+
}, null, 8, st)) : p("", !0)]))), 256)),
|
|
1118
1130
|
(b(!0), m(u, null, S(q.value.left, (e, t) => (b(), m("g", null, [I.value.layout.grid.show ? (b(), m("line", {
|
|
1119
1131
|
key: 0,
|
|
1120
1132
|
x1: e.x,
|
|
@@ -1124,10 +1136,10 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1124
1136
|
stroke: I.value.layout.grid.stroke,
|
|
1125
1137
|
"stroke-width": I.value.layout.grid.strokeWidth,
|
|
1126
1138
|
"stroke-linecap": "round"
|
|
1127
|
-
}, null, 8,
|
|
1139
|
+
}, null, 8, ct)) : p("", !0)]))), 256)),
|
|
1128
1140
|
h("g", {
|
|
1129
1141
|
ref_key: "xAxisLabels",
|
|
1130
|
-
ref:
|
|
1142
|
+
ref: Ft
|
|
1131
1143
|
}, [(b(!0), m(u, null, S(q.value.right, (e, t) => (b(), m("text", {
|
|
1132
1144
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1133
1145
|
"font-size": L.value.xAxis.fontSize,
|
|
@@ -1138,7 +1150,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1138
1150
|
}, w(T(l)(L.value.xAxis.formatter, e.value / L.value.xAxis.scale, T(s)({ v: e.value / I.value.layout.dataLabels.xAxis.scale }), {
|
|
1139
1151
|
datapoint: e,
|
|
1140
1152
|
seriesIndex: t
|
|
1141
|
-
})), 9,
|
|
1153
|
+
})), 9, lt))), 256)), (b(!0), m(u, null, S(q.value.left, (e, t) => (b(), m("text", {
|
|
1142
1154
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1143
1155
|
"font-size": L.value.xAxis.fontSize,
|
|
1144
1156
|
fill: L.value.xAxis.color,
|
|
@@ -1148,7 +1160,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1148
1160
|
}, w(T(l)(L.value.xAxis.formatter, e.value / L.value.xAxis.scale, T(s)({ v: e.value / I.value.layout.dataLabels.xAxis.scale }), {
|
|
1149
1161
|
datapoint: e,
|
|
1150
1162
|
seriesIndex: t
|
|
1151
|
-
})), 9,
|
|
1163
|
+
})), 9, ut))), 256))], 512),
|
|
1152
1164
|
h("text", {
|
|
1153
1165
|
x: K.value.right,
|
|
1154
1166
|
y: G.value.height,
|
|
@@ -1156,7 +1168,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1156
1168
|
"font-size": L.value.xAxis.fontSize,
|
|
1157
1169
|
fill: L.value.xAxis.color,
|
|
1158
1170
|
"font-weight": L.value.xAxis.bold ? "bold" : "normal"
|
|
1159
|
-
}, w(L.value.xAxis.translation), 9,
|
|
1171
|
+
}, w(L.value.xAxis.translation), 9, dt)
|
|
1160
1172
|
])) : p("", !0)
|
|
1161
1173
|
]),
|
|
1162
1174
|
(b(!0), m(u, null, S(e.dataset, (e, t) => (b(), m("g", null, [h("rect", {
|
|
@@ -1165,29 +1177,29 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1165
1177
|
width: K.value.width <= 0 ? 1e-4 : K.value.width,
|
|
1166
1178
|
height: K.value.height / Y.value <= 0 ? 1e-4 : K.value.height / Y.value,
|
|
1167
1179
|
fill: A.value !== null && A.value === t ? T(o)(I.value.highlighter.color, I.value.highlighter.opacity) : "transparent",
|
|
1168
|
-
onMouseover: (n) =>
|
|
1169
|
-
onMouseleave: (n) =>
|
|
1170
|
-
onClick: (n) =>
|
|
1171
|
-
}, null, 40,
|
|
1180
|
+
onMouseover: (n) => hn(t, e, "pointer"),
|
|
1181
|
+
onMouseleave: (n) => pn(t, e),
|
|
1182
|
+
onClick: (n) => fn(t, e)
|
|
1183
|
+
}, null, 40, ft)]))), 256)),
|
|
1172
1184
|
C(t.$slots, "svg", { svg: {
|
|
1173
1185
|
...G.value,
|
|
1174
1186
|
drawingArea: K.value,
|
|
1175
|
-
isPrintingImg: T(
|
|
1176
|
-
isPrintingSvg: T(
|
|
1187
|
+
isPrintingImg: T(Zt) || T(Qt) || T(On),
|
|
1188
|
+
isPrintingSvg: T(kn)
|
|
1177
1189
|
} }, void 0, !0)
|
|
1178
|
-
], 46,
|
|
1190
|
+
], 46, We)), t.$slots.hint ? (b(), m("div", pt, [C(t.$slots, "hint", y(v({
|
|
1179
1191
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1180
|
-
isVisible:
|
|
1192
|
+
isVisible: Rt.value
|
|
1181
1193
|
})), void 0, !0)])) : p("", !0)]),
|
|
1182
|
-
t.$slots.watermark ? (b(), m("div",
|
|
1194
|
+
t.$slots.watermark ? (b(), m("div", mt, [C(t.$slots, "watermark", y(v({ isPrinting: T(Zt) || T(Qt) || T(On) || T(kn) })), void 0, !0)])) : p("", !0),
|
|
1183
1195
|
C(t.$slots, "legend", { legend: X.value }, void 0, !0),
|
|
1184
1196
|
t.$slots.source ? (b(), m("div", {
|
|
1185
1197
|
key: 6,
|
|
1186
1198
|
ref_key: "source",
|
|
1187
|
-
ref:
|
|
1199
|
+
ref: jt,
|
|
1188
1200
|
dir: "auto"
|
|
1189
1201
|
}, [C(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1190
|
-
g(T(
|
|
1202
|
+
g(T(ht), {
|
|
1191
1203
|
teleportTo: I.value.tooltip.teleportTo,
|
|
1192
1204
|
show: W.value.showTooltip && k.value,
|
|
1193
1205
|
backgroundColor: I.value.tooltip.backgroundColor,
|
|
@@ -1201,7 +1213,7 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1201
1213
|
offsetX: I.value.tooltip.offsetX,
|
|
1202
1214
|
offsetY: I.value.tooltip.offsetY,
|
|
1203
1215
|
parent: j.value,
|
|
1204
|
-
content:
|
|
1216
|
+
content: Ot.value,
|
|
1205
1217
|
isFullscreen: Q.value,
|
|
1206
1218
|
isCustom: I.value.tooltip.customFormat && typeof I.value.tooltip.customFormat == "function",
|
|
1207
1219
|
smooth: I.value.tooltip.smooth,
|
|
@@ -1209,11 +1221,11 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1209
1221
|
smoothForce: I.value.tooltip.smoothForce,
|
|
1210
1222
|
smoothSnapThreshold: I.value.tooltip.smoothSnapThreshold,
|
|
1211
1223
|
isA11yMode: P.value === "keyboard",
|
|
1212
|
-
a11yPosition:
|
|
1224
|
+
a11yPosition: Lt.value
|
|
1213
1225
|
}, {
|
|
1214
|
-
"tooltip-before": E(() => [C(t.$slots, "tooltip-before", y(v({ ...
|
|
1215
|
-
tooltip: E(() => [C(t.$slots, "tooltip", y(v({ ...
|
|
1216
|
-
"tooltip-after": E(() => [C(t.$slots, "tooltip-after", y(v({ ...
|
|
1226
|
+
"tooltip-before": E(() => [C(t.$slots, "tooltip-before", y(v({ ...un.value })), void 0, !0)]),
|
|
1227
|
+
tooltip: E(() => [C(t.$slots, "tooltip", y(v({ ...un.value })), void 0, !0)]),
|
|
1228
|
+
"tooltip-after": E(() => [C(t.$slots, "tooltip-after", y(v({ ...un.value })), void 0, !0)]),
|
|
1217
1229
|
_: 3
|
|
1218
1230
|
}, 8, [
|
|
1219
1231
|
"teleportTo",
|
|
@@ -1239,24 +1251,24 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1239
1251
|
"isA11yMode",
|
|
1240
1252
|
"a11yPosition"
|
|
1241
1253
|
]),
|
|
1242
|
-
|
|
1254
|
+
Dt.value && F.value.userOptions.buttons.table ? (b(), f(Fe(wn.value.component), ke({ key: 7 }, wn.value.props, {
|
|
1243
1255
|
ref_key: "tableUnit",
|
|
1244
1256
|
ref: M,
|
|
1245
|
-
onClose:
|
|
1246
|
-
}),
|
|
1247
|
-
content: E(() => [(b(), f(T(
|
|
1248
|
-
key: `table_${
|
|
1257
|
+
onClose: Tn
|
|
1258
|
+
}), De({
|
|
1259
|
+
content: E(() => [(b(), f(T(vt), {
|
|
1260
|
+
key: `table_${Pt.value}`,
|
|
1249
1261
|
colNames: Z.value.colNames,
|
|
1250
1262
|
head: Z.value.head,
|
|
1251
1263
|
body: Z.value.body,
|
|
1252
1264
|
config: Z.value.config,
|
|
1253
|
-
title: F.value.table.useDialog ? "" :
|
|
1265
|
+
title: F.value.table.useDialog ? "" : wn.value.title,
|
|
1254
1266
|
withCloseButton: !F.value.table.useDialog,
|
|
1255
1267
|
isCursorPointer: B.value,
|
|
1256
|
-
onClose:
|
|
1268
|
+
onClose: Tn
|
|
1257
1269
|
}, {
|
|
1258
|
-
th: E(({ th: e }) => [
|
|
1259
|
-
td: E(({ td: e }) => [
|
|
1270
|
+
th: E(({ th: e }) => [Oe(w(e), 1)]),
|
|
1271
|
+
td: E(({ td: e }) => [Oe(w(e), 1)]),
|
|
1260
1272
|
_: 1
|
|
1261
1273
|
}, 8, [
|
|
1262
1274
|
"colNames",
|
|
@@ -1270,24 +1282,24 @@ var ze = /* @__PURE__ */ e({ default: () => mt }), Be = ["id"], Ve = ["id"], He
|
|
|
1270
1282
|
_: 2
|
|
1271
1283
|
}, [F.value.table.useDialog ? {
|
|
1272
1284
|
name: "title",
|
|
1273
|
-
fn: E(() => [
|
|
1285
|
+
fn: E(() => [Oe(w(wn.value.title), 1)]),
|
|
1274
1286
|
key: "0"
|
|
1275
1287
|
} : void 0, F.value.table.useDialog ? {
|
|
1276
1288
|
name: "actions",
|
|
1277
1289
|
fn: E(() => [h("button", {
|
|
1278
1290
|
tabindex: "0",
|
|
1279
1291
|
class: "vue-ui-user-options-button",
|
|
1280
|
-
onClick: n[0] ||= (e) =>
|
|
1281
|
-
style:
|
|
1282
|
-
}, [g(T(
|
|
1292
|
+
onClick: n[0] ||= (e) => gn(F.value.userOptions.callbacks.csv),
|
|
1293
|
+
style: Me({ cursor: B.value ? "pointer" : "default" })
|
|
1294
|
+
}, [g(T(gt), {
|
|
1283
1295
|
name: "fileCsv",
|
|
1284
|
-
stroke:
|
|
1296
|
+
stroke: wn.value.props.color
|
|
1285
1297
|
}, null, 8, ["stroke"])], 4)]),
|
|
1286
1298
|
key: "1"
|
|
1287
1299
|
} : void 0]), 1040)) : p("", !0),
|
|
1288
|
-
C(t.$slots, "skeleton", {}, () => [T(
|
|
1289
|
-
], 46,
|
|
1300
|
+
C(t.$slots, "skeleton", {}, () => [T(Bt) ? (b(), f(fe, { key: 0 })) : p("", !0)], !0)
|
|
1301
|
+
], 46, Ve));
|
|
1290
1302
|
}
|
|
1291
|
-
}, [["__scopeId", "data-v-
|
|
1303
|
+
}, [["__scopeId", "data-v-3f4fd835"]]);
|
|
1292
1304
|
//#endregion
|
|
1293
|
-
export {
|
|
1305
|
+
export { Be as n, ht as t };
|