vue-data-ui 3.1.1 → 3.1.3

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.
Files changed (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,19 +1,19 @@
1
- import { defineAsyncComponent as L, computed as g, ref as v, toRefs as it, watch as X, shallowRef as Te, onMounted as ut, onBeforeUnmount as $e, watchEffect as nt, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as ae, normalizeClass as Se, createBlock as P, createCommentVNode as y, renderSlot as h, createVNode as oe, createSlots as ze, withCtx as c, normalizeProps as M, guardReactiveProps as D, createElementVNode as d, Fragment as T, renderList as z, toDisplayString as C, resolveDynamicComponent as rt, mergeProps as vt, createTextVNode as se, nextTick as dt } from "vue";
2
- import { u as yt, c as ht, t as ct, b as ft, o as Ie, f as gt, h as p, X as pt, s as ie, x as Oe, k as I, i as O, v as bt, w as xt, y as mt, z as wt } from "./index-BKQqb9lF.js";
3
- import { t as Fe, u as kt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ct, B as _t } from "./BaseScanner-BgWxam9d.js";
5
- import { u as At } from "./usePrinter-BzuXiubT.js";
6
- import { u as Re } from "./useNestedProp-aBOhgs4U.js";
7
- import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as $t } from "./useTimeLabelCollider-CIsgDrl9.js";
10
- import St from "./img-gBDz7xQQ.js";
11
- import zt from "./Title-Dz-j6ERs.js";
1
+ import { defineAsyncComponent as L, computed as g, ref as v, toRefs as ut, watch as X, shallowRef as Se, onMounted as nt, onBeforeUnmount as ze, watchEffect as rt, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as oe, normalizeClass as Oe, createBlock as D, createCommentVNode as y, renderSlot as h, createVNode as se, createSlots as Ie, withCtx as c, normalizeProps as P, guardReactiveProps as M, createElementVNode as d, Fragment as T, renderList as z, toDisplayString as _, resolveDynamicComponent as vt, mergeProps as dt, createTextVNode as ie, nextTick as yt } from "vue";
2
+ import { u as ht, c as ct, t as ft, b as gt, o as Re, f as pt, h as p, X as bt, s as ue, x as Fe, k as O, i as I, v as xt, w as mt, y as wt, z as kt } from "./index-CaxArMHL.js";
3
+ import { t as De, u as _t } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ct, B as At } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Lt } from "./usePrinter-BYtPmEo8.js";
6
+ import { u as Pe } from "./useNestedProp-tWT02_6S.js";
7
+ import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as St } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import zt from "./img-DSrvx9J6.js";
11
+ import Ot from "./Title-CqYBs02Y.js";
12
12
  import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"], Pt = ["id"], Mt = ["stop-color"], Dt = ["stop-color"], Nt = ["id"], Bt = ["stop-color"], Et = ["stop-color"], Ut = ["x", "y", "width", "height", "fill", "rx"], Gt = ["x", "y", "width", "height", "fill", "rx"], Ht = ["x", "y", "width", "height", "fill", "rx"], Wt = ["x", "y", "width", "height", "fill", "rx"], Vt = { key: 0 }, Xt = ["x", "y", "fill", "font-size", "font-weight"], jt = ["x", "y", "fill", "font-size", "font-weight"], Yt = { key: 1 }, qt = ["x", "y", "font-size", "fill", "font-weight"], Jt = { key: 2 }, Kt = { key: 0 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["font-size", "fill", "text-anchor", "font-weight", "transform"], al = ["font-size", "fill", "text-anchor", "font-weight", "transform"], ol = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], il = {
13
+ const Rt = ["id"], Ft = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"], Pt = ["id"], Mt = ["stop-color"], Nt = ["stop-color"], Bt = ["id"], Et = ["stop-color"], Ut = ["stop-color"], Gt = ["x", "y", "width", "height", "fill", "rx"], Ht = ["x", "y", "width", "height", "fill", "rx"], Wt = ["x", "y", "width", "height", "fill", "rx"], Vt = ["x", "y", "width", "height", "fill", "rx"], Xt = { key: 0 }, jt = ["x", "y", "fill", "font-size", "font-weight"], Yt = ["x", "y", "fill", "font-size", "font-weight"], qt = { key: 1 }, Jt = ["x", "y", "font-size", "fill", "font-weight"], Kt = { key: 2 }, Qt = { key: 0 }, Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["font-size", "fill", "text-anchor", "font-weight", "transform"], ol = ["font-size", "fill", "text-anchor", "font-weight", "transform"], sl = ["x", "y", "font-size", "fill", "font-weight"], il = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], ul = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, ul = {
16
+ }, nl = {
17
17
  __name: "vue-ui-age-pyramid",
18
18
  props: {
19
19
  config: {
@@ -29,11 +29,11 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
29
29
  }
30
30
  }
31
31
  },
32
- setup(ue, { expose: Pe }) {
33
- const Me = L(() => import("./Tooltip-BTGOEC7w.js")), De = L(() => import("./BaseIcon-DLesaZpW.js")), Ne = L(() => import("./vue-ui-accordion-B5QeV3BK.js")), Be = L(() => import("./DataTable-BAf4Obr9.js")), Ee = L(() => import("./PenAndPaper-B6OvfyHH.js")), Ue = L(() => import("./UserOptions-CsDlFB0L.js")), Ge = L(() => import("./PackageVersion-Cv_ypT0N.js")), He = L(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_age_pyramid: We } = yt(), x = ue, ne = g(() => !!x.dataset && x.dataset.length), w = v(ht()), Ve = v(null), j = v(!1), Y = v(""), U = v(null), re = v(0), k = v(null), ve = v(null), de = v(null), ye = v(null), he = v(0), ce = v(0), q = v(null), N = v(null), e = v(Q()), { loading: fe, FINAL_DATASET: G, manualLoading: J } = Ct({
34
- ...it(x),
32
+ setup(ne, { expose: Me }) {
33
+ const Ne = L(() => import("./Tooltip-CP0tVHAf.js")), Be = L(() => import("./BaseIcon-BcOSijbz.js")), Ee = L(() => import("./vue-ui-accordion-DUlNpLir.js")), Ue = L(() => import("./DataTable-Cm8Tt9PQ.js")), Ge = L(() => import("./PenAndPaper-CyH7Ip2i.js")), He = L(() => import("./UserOptions-ZmwlARCV.js")), We = L(() => import("./PackageVersion-0XlRFsI_.js")), Ve = L(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_age_pyramid: Xe } = ht(), x = ne, re = g(() => !!x.dataset && x.dataset.length), w = v(ct()), j = v(!1), Y = v(""), U = v(null), ve = v(0), k = v(null), de = v(null), ye = v(null), he = v(null), ce = v(0), fe = v(0), q = v(null), N = v(null), J = v(null), e = v(Z()), { loading: ge, FINAL_DATASET: G, manualLoading: K } = Ct({
34
+ ...ut(x),
35
35
  FINAL_CONFIG: e,
36
- prepareConfig: Q,
36
+ prepareConfig: Z,
37
37
  skeletonDataset: [
38
38
  ["_", 9, 2, 2],
39
39
  ["_", 8, 3, 3],
@@ -46,7 +46,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
46
46
  ["_", 1, 89, 89],
47
47
  ["_", 0, 144, 144]
48
48
  ],
49
- skeletonConfig: ct({
49
+ skeletonConfig: ft({
50
50
  defaultConfig: e.value,
51
51
  userConfig: {
52
52
  userOptions: { show: !1 },
@@ -79,57 +79,57 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
79
79
  }
80
80
  }
81
81
  })
82
- }), { userOptionsVisible: K, setUserOptionsVisibility: ge, keepUserOptionState: pe } = Lt({ config: e.value }), { svgRef: be } = Tt({ config: e.value.style.title });
83
- function Q() {
84
- const t = Re({
82
+ }), { userOptionsVisible: Q, setUserOptionsVisibility: pe, keepUserOptionState: be } = Tt({ config: e.value }), { svgRef: xe } = $t({ config: e.value.style.title });
83
+ function Z() {
84
+ const t = Pe({
85
85
  userConfig: x.config,
86
- defaultConfig: We
86
+ defaultConfig: Xe
87
87
  });
88
88
  return t.theme ? {
89
- ...Re({
90
- userConfig: ft.vue_ui_age_pyramid[t.theme] || x.config,
89
+ ...Pe({
90
+ userConfig: gt.vue_ui_age_pyramid[t.theme] || x.config,
91
91
  defaultConfig: t
92
92
  })
93
93
  } : t;
94
94
  }
95
95
  X(() => x.config, (t) => {
96
- fe.value || (e.value = Q()), K.value = !e.value.userOptions.showOnChartHover, xe(), he.value += 1, ce.value += 1, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.tooltip.show;
96
+ ge.value || (e.value = Z()), Q.value = !e.value.userOptions.showOnChartHover, me(), ce.value += 1, fe.value += 1, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.tooltip.show;
97
97
  }, { deep: !0 }), X(() => x.dataset, (t) => {
98
- Array.isArray(t) && t.length > 0 && (J.value = !1);
98
+ Array.isArray(t) && t.length > 0 && (K.value = !1);
99
99
  }, { deep: !0 });
100
- const _ = Te(null), F = Te(null);
101
- ut(() => {
102
- xe();
100
+ const C = Se(null), R = Se(null);
101
+ nt(() => {
102
+ me();
103
103
  });
104
- const Xe = g(() => !!e.value.debug);
105
- function xe() {
106
- if (Ie(x.dataset) && (gt({
104
+ const je = g(() => !!e.value.debug);
105
+ function me() {
106
+ if (Re(x.dataset) && (pt({
107
107
  componentName: "VueUiAgePyramid",
108
108
  type: "dataset",
109
- debug: Xe.value
110
- }), J.value = !0), Ie(x.dataset) || (J.value = e.value.loading), e.value.responsive) {
111
- const t = Fe(() => {
112
- const { width: o, height: l } = kt({
109
+ debug: je.value
110
+ }), K.value = !0), Re(x.dataset) || (K.value = e.value.loading), e.value.responsive) {
111
+ const t = De(() => {
112
+ const { width: o, height: l } = _t({
113
113
  chart: k.value,
114
- title: e.value.style.title.text ? ve.value : null,
115
- source: de.value,
116
- noTitle: ye.value
114
+ title: e.value.style.title.text ? de.value : null,
115
+ source: ye.value,
116
+ noTitle: he.value
117
117
  });
118
118
  requestAnimationFrame(() => {
119
119
  f.value.width = o, f.value.height = l;
120
120
  });
121
121
  });
122
- _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = k.value.parentNode, _.value.observe(F.value);
122
+ C.value && (R.value && C.value.unobserve(R.value), C.value.disconnect()), C.value = new ResizeObserver(t), R.value = k.value.parentNode, C.value.observe(R.value);
123
123
  }
124
124
  }
125
- $e(() => {
126
- _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
125
+ ze(() => {
126
+ C.value && (R.value && C.value.unobserve(R.value), C.value.disconnect());
127
127
  });
128
- const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage: Ce } = At({
128
+ const { isPrinting: we, isImaging: ke, generatePdf: _e, generateImage: Ce } = Lt({
129
129
  elementId: `vue-ui-age-pyramid_${w.value}`,
130
130
  fileName: e.value.style.title.text || "vue-ui-age-pyramid",
131
131
  options: e.value.userOptions.print
132
- }), je = g(() => e.value.userOptions.show && !e.value.style.title.text), b = v({
132
+ }), Ye = g(() => e.value.userOptions.show && !e.value.style.title.text), b = v({
133
133
  showTable: e.value.table.show,
134
134
  showTooltip: e.value.style.tooltip.show
135
135
  });
@@ -142,17 +142,17 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
142
142
  const f = v({
143
143
  height: e.value.style.height,
144
144
  width: e.value.style.width
145
- }), Ye = g(() => f.value.width), qe = g(() => f.value.height), H = v(0), Je = Fe((t) => {
145
+ }), qe = g(() => f.value.width), Je = g(() => f.value.height), H = v(0), Ke = De((t) => {
146
146
  H.value = t;
147
147
  }, 100);
148
- nt((t) => {
148
+ rt((t) => {
149
149
  const o = q.value;
150
150
  if (!o) return;
151
151
  const l = new ResizeObserver((a) => {
152
- Je(a[0].contentRect.height);
152
+ Ke(a[0].contentRect.height);
153
153
  });
154
154
  l.observe(o), t(() => l.disconnect());
155
- }), $e(() => {
155
+ }), ze(() => {
156
156
  H.value = 0;
157
157
  });
158
158
  const s = g(() => {
@@ -174,8 +174,8 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
174
174
  left: o + t / 2 + e.value.style.layout.centerSlit.width
175
175
  }
176
176
  };
177
- }), Ke = g(() => G.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), A = g(() => {
178
- const t = Qe(B.value / 5), o = [], l = [];
177
+ }), Qe = g(() => G.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), A = g(() => {
178
+ const t = Ze(B.value / 5), o = [], l = [];
179
179
  for (let a = 0; a <= 5; a += 1) {
180
180
  const r = t * a, m = t * (a - 5);
181
181
  o.push({
@@ -191,13 +191,13 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
191
191
  left: l
192
192
  };
193
193
  });
194
- function Qe(t) {
194
+ function Ze(t) {
195
195
  if (t === 0) return 0;
196
196
  const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
197
197
  let a;
198
198
  return t < 0, a = Math.round(t / l) * l, a;
199
199
  }
200
- const B = g(() => Math.max(...G.value.flatMap((t) => t.slice(-2).map((o) => p(o))))), R = g(() => G.value.length), Ze = g(() => G.value.map((t) => ({
200
+ const B = g(() => Math.max(...G.value.flatMap((t) => t.slice(-2).map((o) => p(o))))), F = g(() => G.value.length), et = g(() => G.value.map((t) => ({
201
201
  segment: t[0],
202
202
  age: t[1],
203
203
  left: {
@@ -208,8 +208,8 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
208
208
  value: t[3],
209
209
  proportionToMax: t[3] / B.value
210
210
  }
211
- }))), $ = g(() => Ze.value.map((t, o) => {
212
- const l = s.value.top + s.value.height / R.value * o, a = s.value.height / R.value - e.value.style.layout.bars.gap;
211
+ }))), $ = g(() => et.value.map((t, o) => {
212
+ const l = s.value.top + s.value.height / F.value * o, a = s.value.height / F.value - e.value.style.layout.bars.gap;
213
213
  return {
214
214
  segment: t.segment,
215
215
  age: t.age,
@@ -230,26 +230,26 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
230
230
  height: a
231
231
  }
232
232
  };
233
- })), Z = v(null);
234
- function ee(t) {
233
+ })), ee = v(null);
234
+ function te(t) {
235
235
  const [o, l, a, r] = t;
236
236
  return { segment: o, index: l, left: a, right: r };
237
237
  }
238
- function et(t, o) {
239
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: ee(o), seriesIndex: t });
240
- }
241
238
  function tt(t, o) {
242
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ee(o), seriesIndex: t }), U.value = null, j.value = !1;
239
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: te(o), seriesIndex: t });
243
240
  }
244
241
  function lt(t, o) {
245
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: ee(o), seriesIndex: t }), U.value = t, Z.value = {
242
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: te(o), seriesIndex: t }), U.value = null, j.value = !1;
243
+ }
244
+ function at(t, o) {
245
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: te(o), seriesIndex: t }), U.value = t, ee.value = {
246
246
  datapoint: o,
247
247
  seriesIndex: t,
248
248
  series: $.value,
249
249
  config: e.value
250
250
  };
251
251
  const l = e.value.style.tooltip.customFormat;
252
- if (mt(l) && wt(() => l({
252
+ if (wt(l) && kt(() => l({
253
253
  seriesIndex: t,
254
254
  datapoint: {
255
255
  segment: o[0],
@@ -274,40 +274,40 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
274
274
  else {
275
275
  let a = "";
276
276
  const r = $.value[t];
277
- a += `<div><b>${r.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${I(
277
+ a += `<div><b>${r.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${O(
278
278
  e.value.style.layout.dataLabels.yAxis.formatter,
279
279
  p(r.age),
280
- O({ v: p(r.age) }),
280
+ I({ v: p(r.age) }),
281
281
  { datapoint: o, seriesIndex: t }
282
- )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${I(
282
+ )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${O(
283
283
  e.value.style.layout.dataLabels.xAxis.formatter,
284
284
  p(r.left.value),
285
- O({ v: p(r.left.value) }),
285
+ I({ v: p(r.left.value) }),
286
286
  { datapoint: o, seriesIndex: t }
287
- )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${I(
287
+ )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${O(
288
288
  e.value.style.layout.dataLabels.xAxis.formatter,
289
289
  p(r.right.value),
290
- O({ v: p(r.right.value) }),
290
+ I({ v: p(r.right.value) }),
291
291
  { datapoint: o, seriesIndex: t }
292
- )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${I(
292
+ )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${O(
293
293
  e.value.style.layout.dataLabels.xAxis.formatter,
294
294
  p(r.right.value) + p(r.left.value),
295
- O({ v: p(r.right.value) + p(r.left.value) }),
295
+ I({ v: p(r.right.value) + p(r.left.value) }),
296
296
  { datapoint: o, seriesIndex: t }
297
297
  )}</b></div></div>`, a += "</div>", Y.value = `<div>${a}</div>`;
298
298
  }
299
299
  j.value = !0;
300
300
  }
301
- function te(t = null) {
302
- dt(() => {
301
+ function le(t = null) {
302
+ yt(() => {
303
303
  const o = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = x.dataset.map((m) => [
304
304
  m[0],
305
305
  m[1],
306
306
  m[2],
307
307
  m[3],
308
308
  m[2] ?? 0 + m[3] ?? 0
309
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = bt(a);
310
- t ? t(r) : xt({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
309
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = xt(a);
310
+ t ? t(r) : mt({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
311
311
  });
312
312
  }
313
313
  const W = g(() => {
@@ -338,22 +338,22 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
338
338
  };
339
339
  return { head: t, body: o, config: l, colNames: t };
340
340
  }), S = v(!1);
341
- function _e(t) {
342
- S.value = t, re.value += 1;
341
+ function Ae(t) {
342
+ S.value = t, ve.value += 1;
343
343
  }
344
- function Ae() {
344
+ function Le() {
345
345
  b.value.showTable = !b.value.showTable;
346
346
  }
347
- function Le() {
347
+ function Te() {
348
348
  b.value.showTooltip = !b.value.showTooltip;
349
349
  }
350
350
  const V = v(!1);
351
- function le() {
351
+ function ae() {
352
352
  V.value = !V.value;
353
353
  }
354
- async function at({ scale: t = 2 } = {}) {
354
+ async function ot({ scale: t = 2 } = {}) {
355
355
  if (!k.value) return;
356
- const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await St({ domElement: k.value, base64: !0, img: !0, scale: t });
356
+ const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await zt({ domElement: k.value, base64: !0, img: !0, scale: t });
357
357
  return {
358
358
  imageUri: r,
359
359
  base64: m,
@@ -363,24 +363,24 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
363
363
  aspectRatio: a
364
364
  };
365
365
  }
366
- const ot = v([]), st = v({ start: 0, end: $.value.length });
367
- $t({
366
+ const st = v([]), it = v({ start: 0, end: $.value.length });
367
+ St({
368
368
  timeLabelsEls: q,
369
- timeLabels: ot,
370
- slicer: st,
369
+ timeLabels: st,
370
+ slicer: it,
371
371
  configRef: e,
372
372
  rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
373
373
  autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
374
374
  isAutoSize: !1,
375
- width: Ye,
376
- height: qe,
375
+ width: qe,
376
+ height: Je,
377
377
  targetClass: ".vue-ui-age-pyramid-x-axis-label",
378
378
  rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
379
379
  });
380
380
  const E = g(() => {
381
381
  const t = e.value.table.useDialog && !e.value.table.show, o = b.value.showTable;
382
382
  return {
383
- component: t ? He : Ne,
383
+ component: t ? Ve : Ee,
384
384
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
385
385
  props: t ? {
386
386
  backgroundColor: e.value.table.th.backgroundColor,
@@ -407,49 +407,53 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
407
407
  }
408
408
  };
409
409
  });
410
- return X(() => b.value.showTable, (t) => {
410
+ X(() => b.value.showTable, (t) => {
411
411
  e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
412
- }), Pe({
413
- getImage: at,
414
- generatePdf: ke,
415
- generateCsv: te,
412
+ });
413
+ function $e() {
414
+ b.value.showTable = !1, J.value && J.value.setTableIconState(!1);
415
+ }
416
+ return Me({
417
+ getImage: ot,
418
+ generatePdf: _e,
419
+ generateCsv: le,
416
420
  generateImage: Ce,
417
- toggleTable: Ae,
418
- toggleTooltip: Le,
419
- toggleAnnotator: le,
420
- toggleFullscreen: _e
421
+ toggleTable: Le,
422
+ toggleTooltip: Te,
423
+ toggleAnnotator: ae,
424
+ toggleFullscreen: Ae
421
425
  }), (t, o) => (i(), n("div", {
422
- class: Se(`vue-ui-age-pyramid ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
426
+ class: Oe(`vue-ui-age-pyramid ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
423
427
  ref_key: "agePyramid",
424
428
  ref: k,
425
429
  id: `vue-ui-age-pyramid_${w.value}`,
426
- style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
427
- onMouseenter: o[3] || (o[3] = () => u(ge)(!0)),
428
- onMouseleave: o[4] || (o[4] = () => u(ge)(!1))
430
+ style: oe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
431
+ onMouseenter: o[1] || (o[1] = () => u(pe)(!0)),
432
+ onMouseleave: o[2] || (o[2] = () => u(pe)(!1))
429
433
  }, [
430
- e.value.userOptions.buttons.annotator ? (i(), P(u(Ee), {
434
+ e.value.userOptions.buttons.annotator ? (i(), D(u(Ge), {
431
435
  key: 0,
432
- svgRef: u(be),
436
+ svgRef: u(xe),
433
437
  backgroundColor: e.value.style.backgroundColor,
434
438
  color: e.value.style.color,
435
439
  active: V.value,
436
- onClose: le
440
+ onClose: ae
437
441
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
438
- je.value ? (i(), n("div", {
442
+ Ye.value ? (i(), n("div", {
439
443
  key: 1,
440
444
  ref_key: "noTitle",
441
- ref: ye,
445
+ ref: he,
442
446
  class: "vue-data-ui-no-title-space",
443
447
  style: "height:36px; width: 100%;background:transparent"
444
448
  }, null, 512)) : y("", !0),
445
449
  e.value.style.title.text ? (i(), n("div", {
446
450
  key: 2,
447
451
  ref_key: "chartTitle",
448
- ref: ve,
452
+ ref: de,
449
453
  style: "width:100%;background:transparent"
450
454
  }, [
451
- (i(), P(zt, {
452
- key: `title_${he.value}`,
455
+ (i(), D(Ot, {
456
+ key: `title_${ce.value}`,
453
457
  config: {
454
458
  title: {
455
459
  cy: "pyramid-div-title",
@@ -462,14 +466,14 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
462
466
  }
463
467
  }, null, 8, ["config"]))
464
468
  ], 512)) : y("", !0),
465
- e.value.userOptions.show && ne.value && (u(pe) || u(K)) ? (i(), P(u(Ue), {
466
- ref_key: "details",
467
- ref: Ve,
468
- key: `user_options_${re.value}`,
469
+ e.value.userOptions.show && re.value && (u(be) || u(Q)) ? (i(), D(u(He), {
470
+ ref_key: "userOptionsRef",
471
+ ref: J,
472
+ key: `user_options_${ve.value}`,
469
473
  backgroundColor: e.value.style.backgroundColor,
470
474
  color: e.value.style.color,
471
- isImaging: u(we),
472
- isPrinting: u(me),
475
+ isImaging: u(ke),
476
+ isPrinting: u(we),
473
477
  uid: w.value,
474
478
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
475
479
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -486,21 +490,22 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
486
490
  isAnnotation: V.value,
487
491
  callbacks: e.value.userOptions.callbacks,
488
492
  printScale: e.value.userOptions.print.scale,
489
- onToggleFullscreen: _e,
490
- onGeneratePdf: u(ke),
491
- onGenerateCsv: te,
493
+ tableDialog: e.value.table.useDialog,
494
+ onToggleFullscreen: Ae,
495
+ onGeneratePdf: u(_e),
496
+ onGenerateCsv: le,
492
497
  onGenerateImage: u(Ce),
493
- onToggleTable: Ae,
494
- onToggleTooltip: Le,
495
- onToggleAnnotator: le,
496
- style: ae({
497
- visibility: u(pe) ? u(K) ? "visible" : "hidden" : "visible"
498
+ onToggleTable: Le,
499
+ onToggleTooltip: Te,
500
+ onToggleAnnotator: ae,
501
+ style: oe({
502
+ visibility: u(be) ? u(Q) ? "visible" : "hidden" : "visible"
498
503
  })
499
- }, ze({ _: 2 }, [
504
+ }, Ie({ _: 2 }, [
500
505
  t.$slots.menuIcon ? {
501
506
  name: "menuIcon",
502
507
  fn: c(({ isOpen: l, color: a }) => [
503
- h(t.$slots, "menuIcon", M(D({ isOpen: l, color: a })), void 0, !0)
508
+ h(t.$slots, "menuIcon", P(M({ isOpen: l, color: a })), void 0, !0)
504
509
  ]),
505
510
  key: "0"
506
511
  } : void 0,
@@ -542,27 +547,27 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
542
547
  t.$slots.optionFullscreen ? {
543
548
  name: "optionFullscreen",
544
549
  fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
545
- h(t.$slots, "optionFullscreen", M(D({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
550
+ h(t.$slots, "optionFullscreen", P(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
546
551
  ]),
547
552
  key: "6"
548
553
  } : void 0,
549
554
  t.$slots.optionAnnotator ? {
550
555
  name: "optionAnnotator",
551
556
  fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
552
- h(t.$slots, "optionAnnotator", M(D({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
557
+ h(t.$slots, "optionAnnotator", P(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
553
558
  ]),
554
559
  key: "7"
555
560
  } : void 0
556
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
561
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
557
562
  (i(), n("svg", {
558
563
  ref_key: "svgRef",
559
- ref: be,
560
- xmlns: u(pt),
561
- class: Se({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
564
+ ref: xe,
565
+ xmlns: u(bt),
566
+ class: Oe({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
562
567
  viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${f.value.height <= 0 ? 10 : f.value.height}`,
563
- style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
568
+ style: oe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
564
569
  }, [
565
- oe(u(Ge)),
570
+ se(u(We)),
566
571
  t.$slots["chart-background"] ? (i(), n("foreignObject", {
567
572
  key: 0,
568
573
  x: s.value.left,
@@ -574,7 +579,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
574
579
  }
575
580
  }, [
576
581
  h(t.$slots, "chart-background", {}, void 0, !0)
577
- ], 8, Rt)) : y("", !0),
582
+ ], 8, Dt)) : y("", !0),
578
583
  d("defs", null, [
579
584
  d("linearGradient", {
580
585
  id: `age_pyramid_left_${w.value}`,
@@ -589,8 +594,8 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
589
594
  }, null, 8, Mt),
590
595
  d("stop", {
591
596
  offset: "100%",
592
- "stop-color": u(ie)(u(Oe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
593
- }, null, 8, Dt)
597
+ "stop-color": u(ue)(u(Fe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
598
+ }, null, 8, Nt)
594
599
  ], 8, Pt),
595
600
  d("linearGradient", {
596
601
  id: `age_pyramid_right_${w.value}`,
@@ -601,13 +606,13 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
601
606
  }, [
602
607
  d("stop", {
603
608
  offset: "0%",
604
- "stop-color": u(ie)(u(Oe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
605
- }, null, 8, Bt),
609
+ "stop-color": u(ue)(u(Fe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
610
+ }, null, 8, Et),
606
611
  d("stop", {
607
612
  offset: "100%",
608
613
  "stop-color": e.value.style.layout.bars.right.color
609
- }, null, 8, Et)
610
- ], 8, Nt)
614
+ }, null, 8, Ut)
615
+ ], 8, Bt)
611
616
  ]),
612
617
  (i(!0), n(T, null, z($.value, (l, a) => (i(), n("g", null, [
613
618
  d("rect", {
@@ -617,7 +622,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
617
622
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
618
623
  fill: e.value.style.layout.bars.gradient.underlayer,
619
624
  rx: e.value.style.layout.bars.borderRadius
620
- }, null, 8, Ut),
625
+ }, null, 8, Gt),
621
626
  d("rect", {
622
627
  x: l.left.x,
623
628
  y: l.left.y,
@@ -625,7 +630,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
625
630
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
626
631
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : l.left.color,
627
632
  rx: e.value.style.layout.bars.borderRadius
628
- }, null, 8, Gt),
633
+ }, null, 8, Ht),
629
634
  d("rect", {
630
635
  x: l.right.x,
631
636
  y: l.right.y,
@@ -633,7 +638,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
633
638
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
634
639
  fill: e.value.style.layout.bars.gradient.underlayer,
635
640
  rx: e.value.style.layout.bars.borderRadius
636
- }, null, 8, Ht),
641
+ }, null, 8, Wt),
637
642
  d("rect", {
638
643
  x: l.right.x,
639
644
  y: l.right.y,
@@ -641,10 +646,10 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
641
646
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
642
647
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
643
648
  rx: e.value.style.layout.bars.borderRadius
644
- }, null, 8, Wt)
649
+ }, null, 8, Vt)
645
650
  ]))), 256)),
646
651
  d("g", null, [
647
- e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g", Vt, [
652
+ e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g", Xt, [
648
653
  d("text", {
649
654
  x: s.value.left,
650
655
  y: e.value.style.layout.dataLabels.sideTitles.fontSize,
@@ -652,7 +657,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
652
657
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
653
658
  "text-anchor": "start",
654
659
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
655
- }, C(e.value.translations.female), 9, Xt),
660
+ }, _(e.value.translations.female), 9, jt),
656
661
  d("text", {
657
662
  x: s.value.right,
658
663
  y: e.value.style.layout.dataLabels.sideTitles.fontSize,
@@ -660,28 +665,28 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
660
665
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
661
666
  "text-anchor": "end",
662
667
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
663
- }, C(e.value.translations.male), 9, jt)
668
+ }, _(e.value.translations.male), 9, Yt)
664
669
  ])) : y("", !0),
665
- e.value.style.layout.dataLabels.yAxis.show ? (i(), n("g", Yt, [
666
- (i(!0), n(T, null, z(Ke.value, (l, a) => (i(), n(T, null, [
670
+ e.value.style.layout.dataLabels.yAxis.show ? (i(), n("g", qt, [
671
+ (i(!0), n(T, null, z(Qe.value, (l, a) => (i(), n(T, null, [
667
672
  a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), n("text", {
668
673
  key: 0,
669
674
  x: s.value.centerX,
670
- y: s.value.top + s.value.height / R.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
675
+ y: s.value.top + s.value.height / F.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
671
676
  "text-anchor": "middle",
672
677
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
673
678
  fill: e.value.style.layout.dataLabels.yAxis.color,
674
679
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
675
- }, C(u(I)(
680
+ }, _(u(O)(
676
681
  e.value.style.layout.dataLabels.yAxis.formatter,
677
682
  l,
678
- u(O)({ v: l }),
683
+ u(I)({ v: l }),
679
684
  { datapoint: l, seriesIndex: a }
680
- )), 9, qt)) : y("", !0)
685
+ )), 9, Jt)) : y("", !0)
681
686
  ], 64))), 256))
682
687
  ])) : y("", !0),
683
- e.value.style.layout.dataLabels.xAxis.show ? (i(), n("g", Jt, [
684
- e.value.style.layout.grid.show ? (i(), n("g", Kt, [
688
+ e.value.style.layout.dataLabels.xAxis.show ? (i(), n("g", Kt, [
689
+ e.value.style.layout.grid.show ? (i(), n("g", Qt, [
685
690
  d("line", {
686
691
  x1: A.value.right[0].x,
687
692
  x2: A.value.right.at(-1).x,
@@ -690,7 +695,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
690
695
  stroke: e.value.style.layout.grid.stroke,
691
696
  "stroke-width": e.value.style.layout.grid.strokeWidth,
692
697
  "stroke-linecap": "round"
693
- }, null, 8, Qt),
698
+ }, null, 8, Zt),
694
699
  d("line", {
695
700
  x1: A.value.left[0].x,
696
701
  x2: A.value.left.at(-1).x,
@@ -699,7 +704,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
699
704
  stroke: e.value.style.layout.grid.stroke,
700
705
  "stroke-width": e.value.style.layout.grid.strokeWidth,
701
706
  "stroke-linecap": "round"
702
- }, null, 8, Zt)
707
+ }, null, 8, el)
703
708
  ])) : y("", !0),
704
709
  (i(!0), n(T, null, z(A.value.right, (l, a) => (i(), n("g", null, [
705
710
  e.value.style.layout.grid.show ? (i(), n("line", {
@@ -711,7 +716,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
711
716
  stroke: e.value.style.layout.grid.stroke,
712
717
  "stroke-width": e.value.style.layout.grid.strokeWidth,
713
718
  "stroke-linecap": "round"
714
- }, null, 8, el)) : y("", !0)
719
+ }, null, 8, tl)) : y("", !0)
715
720
  ]))), 256)),
716
721
  (i(!0), n(T, null, z(A.value.left, (l, a) => (i(), n("g", null, [
717
722
  e.value.style.layout.grid.show ? (i(), n("line", {
@@ -723,7 +728,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
723
728
  stroke: e.value.style.layout.grid.stroke,
724
729
  "stroke-width": e.value.style.layout.grid.strokeWidth,
725
730
  "stroke-linecap": "round"
726
- }, null, 8, tl)) : y("", !0)
731
+ }, null, 8, ll)) : y("", !0)
727
732
  ]))), 256)),
728
733
  d("g", {
729
734
  ref_key: "xAxisLabels",
@@ -736,14 +741,14 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
736
741
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
737
742
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
738
743
  transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
739
- }, C(u(I)(
744
+ }, _(u(O)(
740
745
  e.value.style.layout.dataLabels.xAxis.formatter,
741
746
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
742
- u(O)({
747
+ u(I)({
743
748
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
744
749
  }),
745
750
  { datapoint: l, seriesIndex: a }
746
- )), 9, ll))), 256)),
751
+ )), 9, al))), 256)),
747
752
  (i(!0), n(T, null, z(A.value.left, (l, a) => (i(), n("text", {
748
753
  class: "vue-ui-age-pyramid-x-axis-label",
749
754
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
@@ -751,14 +756,14 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
751
756
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
752
757
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
753
758
  transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
754
- }, C(u(I)(
759
+ }, _(u(O)(
755
760
  e.value.style.layout.dataLabels.xAxis.formatter,
756
761
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
757
- u(O)({
762
+ u(I)({
758
763
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
759
764
  }),
760
765
  { datapoint: l, seriesIndex: a }
761
- )), 9, al))), 256))
766
+ )), 9, ol))), 256))
762
767
  ], 512),
763
768
  d("text", {
764
769
  x: s.value.right,
@@ -767,36 +772,36 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
767
772
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
768
773
  fill: e.value.style.layout.dataLabels.xAxis.color,
769
774
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
770
- }, C(e.value.style.layout.dataLabels.xAxis.translation), 9, ol)
775
+ }, _(e.value.style.layout.dataLabels.xAxis.translation), 9, sl)
771
776
  ])) : y("", !0)
772
777
  ]),
773
- (i(!0), n(T, null, z(ue.dataset, (l, a) => (i(), n("g", null, [
778
+ (i(!0), n(T, null, z(ne.dataset, (l, a) => (i(), n("g", null, [
774
779
  d("rect", {
775
780
  x: s.value.left,
776
- y: s.value.top + s.value.height / R.value * a - e.value.style.layout.bars.gap / 2,
781
+ y: s.value.top + s.value.height / F.value * a - e.value.style.layout.bars.gap / 2,
777
782
  width: s.value.width <= 0 ? 1e-4 : s.value.width,
778
- height: s.value.height / R.value <= 0 ? 1e-4 : s.value.height / R.value,
779
- fill: U.value !== null && U.value === a ? u(ie)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
780
- onMouseover: (r) => lt(a, l),
781
- onMouseleave: (r) => tt(a, l),
782
- onClick: (r) => et(a, l)
783
- }, null, 40, sl)
783
+ height: s.value.height / F.value <= 0 ? 1e-4 : s.value.height / F.value,
784
+ fill: U.value !== null && U.value === a ? u(ue)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
785
+ onMouseover: (r) => at(a, l),
786
+ onMouseleave: (r) => lt(a, l),
787
+ onClick: (r) => tt(a, l)
788
+ }, null, 40, il)
784
789
  ]))), 256)),
785
790
  h(t.$slots, "svg", { svg: f.value }, void 0, !0)
786
791
  ], 14, Ft)),
787
- t.$slots.watermark ? (i(), n("div", il, [
788
- h(t.$slots, "watermark", M(D({ isPrinting: u(me) || u(we) })), void 0, !0)
792
+ t.$slots.watermark ? (i(), n("div", ul, [
793
+ h(t.$slots, "watermark", P(M({ isPrinting: u(we) || u(ke) })), void 0, !0)
789
794
  ])) : y("", !0),
790
795
  h(t.$slots, "legend", { legend: $.value }, void 0, !0),
791
796
  t.$slots.source ? (i(), n("div", {
792
797
  key: 5,
793
798
  ref_key: "source",
794
- ref: de,
799
+ ref: ye,
795
800
  dir: "auto"
796
801
  }, [
797
802
  h(t.$slots, "source", {}, void 0, !0)
798
803
  ], 512)) : y("", !0),
799
- oe(u(Me), {
804
+ se(u(Ne), {
800
805
  show: b.value.showTooltip && j.value,
801
806
  backgroundColor: e.value.style.tooltip.backgroundColor,
802
807
  color: e.value.style.tooltip.color,
@@ -815,34 +820,34 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
815
820
  backdropFilter: e.value.style.tooltip.backdropFilter
816
821
  }, {
817
822
  "tooltip-before": c(() => [
818
- h(t.$slots, "tooltip-before", M(D({ ...Z.value })), void 0, !0)
823
+ h(t.$slots, "tooltip-before", P(M({ ...ee.value })), void 0, !0)
819
824
  ]),
820
825
  "tooltip-after": c(() => [
821
- h(t.$slots, "tooltip-after", M(D({ ...Z.value })), void 0, !0)
826
+ h(t.$slots, "tooltip-after", P(M({ ...ee.value })), void 0, !0)
822
827
  ]),
823
828
  _: 3
824
829
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
825
- ne.value ? (i(), P(rt(E.value.component), vt({ key: 6 }, E.value.props, {
830
+ re.value ? (i(), D(vt(E.value.component), dt({ key: 6 }, E.value.props, {
826
831
  ref_key: "tableUnit",
827
832
  ref: N,
828
- onClose: o[2] || (o[2] = (l) => b.value.showTable = !1)
829
- }), ze({
833
+ onClose: $e
834
+ }), Ie({
830
835
  content: c(() => [
831
- (i(), P(u(Be), {
832
- key: `table_${ce.value}`,
836
+ (i(), D(u(Ue), {
837
+ key: `table_${fe.value}`,
833
838
  colNames: W.value.colNames,
834
839
  head: W.value.head,
835
840
  body: W.value.body,
836
841
  config: W.value.config,
837
842
  title: e.value.table.useDialog ? "" : E.value.title,
838
843
  withCloseButton: !e.value.table.useDialog,
839
- onClose: o[1] || (o[1] = (l) => b.value.showTable = !1)
844
+ onClose: $e
840
845
  }, {
841
846
  th: c(({ th: l }) => [
842
- se(C(l), 1)
847
+ ie(_(l), 1)
843
848
  ]),
844
849
  td: c(({ td: l }) => [
845
- se(C(l), 1)
850
+ ie(_(l), 1)
846
851
  ]),
847
852
  _: 1
848
853
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -852,7 +857,7 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
852
857
  e.value.table.useDialog ? {
853
858
  name: "title",
854
859
  fn: c(() => [
855
- se(C(E.value.title), 1)
860
+ ie(_(E.value.title), 1)
856
861
  ]),
857
862
  key: "0"
858
863
  } : void 0,
@@ -862,9 +867,9 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
862
867
  d("button", {
863
868
  tabindex: "0",
864
869
  class: "vue-ui-user-options-button",
865
- onClick: o[0] || (o[0] = (l) => te(e.value.userOptions.callbacks.csv))
870
+ onClick: o[0] || (o[0] = (l) => le(e.value.userOptions.callbacks.csv))
866
871
  }, [
867
- oe(u(De), {
872
+ se(u(Be), {
868
873
  name: "excel",
869
874
  stroke: E.value.props.color
870
875
  }, null, 8, ["stroke"])
@@ -873,10 +878,10 @@ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"]
873
878
  key: "1"
874
879
  } : void 0
875
880
  ]), 1040)) : y("", !0),
876
- u(fe) ? (i(), P(_t, { key: 7 })) : y("", !0)
877
- ], 46, Ot));
881
+ u(ge) ? (i(), D(At, { key: 7 })) : y("", !0)
882
+ ], 46, Rt));
878
883
  }
879
- }, ml = /* @__PURE__ */ It(ul, [["__scopeId", "data-v-97c2a040"]]);
884
+ }, wl = /* @__PURE__ */ It(nl, [["__scopeId", "data-v-69770647"]]);
880
885
  export {
881
- ml as default
886
+ wl as default
882
887
  };