vue-data-ui 2.16.6 → 2.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,16 +1,17 @@
1
- import { defineAsyncComponent as C, computed as b, ref as d, watch as Re, shallowRef as fe, onMounted as Be, onBeforeUnmount as De, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as ge, createBlock as I, createCommentVNode as y, renderSlot as h, createVNode as pe, createSlots as Ee, withCtx as f, normalizeProps as F, guardReactiveProps as M, createElementVNode as n, Fragment as P, renderList as B, toDisplayString as _, createTextVNode as be, nextTick as Ge } from "vue";
2
- import { u as Ue, c as Ve, a as We, o as Xe, e as je, v as c, X as He, s as q, w as xe, i as $, f as T, q as Ye, r as qe, x as Je, y as Ke } from "./index-DvIXJm6t.js";
3
- import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
4
- import { u as me } from "./useNestedProp-DrYHm61t.js";
5
- import { u as et } from "./usePrinter-CWnXbGMb.js";
6
- import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
8
- import at from "./Title-Gi81VwUM.js";
9
- import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], rt = ["id"], nt = ["stop-color"], vt = ["stop-color"], dt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ct = ["x", "y", "width", "height", "fill", "rx"], ft = ["x", "y", "width", "height", "fill", "rx"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = { key: 0 }, xt = ["x", "y", "fill", "font-size", "font-weight"], mt = ["x", "y", "fill", "font-size", "font-weight"], wt = { key: 1 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = { key: 2 }, Ct = { key: 0 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], It = ["x", "y", "width", "height", "fill", "onMouseover"], Ft = {
1
+ import { defineAsyncComponent as $, computed as x, ref as d, watch as Be, shallowRef as ge, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as pe, createBlock as F, createCommentVNode as y, renderSlot as h, createVNode as be, createSlots as De, withCtx as f, normalizeProps as M, guardReactiveProps as P, createElementVNode as v, Fragment as R, renderList as B, toDisplayString as C, createTextVNode as xe, nextTick as Ge } from "vue";
2
+ import { u as Ve, c as We, a as Xe, o as je, e as He, v as c, X as Ye, s as q, w as me, i as T, f as A, q as qe, r as Je, x as Ke, y as Qe } from "./index-CobsZUkv.js";
3
+ import { t as Ze, u as et } from "./useResponsive-DfdjqQps.js";
4
+ import { u as we } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as tt } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as at } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ot from "./Title-DpERl1yr.js";
9
+ import st from "./img-utitT2Gd.js";
10
+ import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"], vt = ["id"], dt = ["stop-color"], yt = ["stop-color"], ht = ["id"], ct = ["stop-color"], ft = ["stop-color"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = ["x", "y", "width", "height", "fill", "rx"], xt = ["x", "y", "width", "height", "fill", "rx"], mt = { key: 0 }, wt = ["x", "y", "fill", "font-size", "font-weight"], kt = ["x", "y", "fill", "font-size", "font-weight"], _t = { key: 1 }, Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = { key: 2 }, Tt = { key: 0 }, At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "font-size", "fill", "font-weight"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["x", "y", "width", "height", "fill", "onMouseover"], Pt = {
11
12
  key: 5,
12
13
  class: "vue-data-ui-watermark"
13
- }, Mt = {
14
+ }, Rt = {
14
15
  __name: "vue-ui-age-pyramid",
15
16
  props: {
16
17
  config: {
@@ -26,38 +27,38 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
26
27
  }
27
28
  }
28
29
  },
29
- setup(J, { expose: we }) {
30
- const ke = C(() => import("./vue-ui-accordion-D55kCO5G.js")), _e = C(() => import("./DataTable-CHBLjKtZ.js")), Ce = C(() => import("./PackageVersion-Bg_9KCU-.js")), $e = C(() => import("./PenAndPaper-BPTpbnay.js")), Te = C(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ae = C(() => import("./Tooltip-CJxVw7-T.js")), Le = C(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_age_pyramid: Se } = Ue(), g = J, D = b(() => !!g.dataset && g.dataset.length), m = d(Ve()), ze = d(null), V = d(!1), W = d(""), E = d(null), K = d(0), N = d(null), Q = d(null), Z = d(null), ee = d(null), te = d(0), le = d(0), e = b({
30
+ setup(J, { expose: ke }) {
31
+ const _e = $(() => import("./vue-ui-accordion-UewqY6OI.js")), Ce = $(() => import("./DataTable-Dt-TIOyY.js")), $e = $(() => import("./PackageVersion-C-4Ee8BQ.js")), Te = $(() => import("./PenAndPaper-Cde-wJ3N.js")), Ae = $(() => import("./vue-ui-skeleton-8s4xts8z.js")), Le = $(() => import("./Tooltip-DA0bYKFG.js")), Se = $(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_age_pyramid: ze } = Ve(), g = J, E = x(() => !!g.dataset && g.dataset.length), w = d(We()), Oe = d(null), V = d(!1), W = d(""), U = d(null), K = d(0), k = d(null), Q = d(null), Z = d(null), ee = d(null), te = d(0), le = d(0), e = x({
31
32
  get: () => ie(),
32
33
  set: (t) => t
33
- }), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = tt({ config: e.value }), { svgRef: se } = lt({ config: e.value.style.title });
34
+ }), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = lt({ config: e.value }), { svgRef: se } = at({ config: e.value.style.title });
34
35
  function ie() {
35
- const t = me({
36
+ const t = we({
36
37
  userConfig: g.config,
37
- defaultConfig: Se
38
+ defaultConfig: ze
38
39
  });
39
40
  return t.theme ? {
40
- ...me({
41
- userConfig: We.vue_ui_age_pyramid[t.theme] || g.config,
41
+ ...we({
42
+ userConfig: Xe.vue_ui_age_pyramid[t.theme] || g.config,
42
43
  defaultConfig: t
43
44
  })
44
45
  } : t;
45
46
  }
46
- Re(() => g.config, (t) => {
47
- e.value = ie(), X.value = !e.value.userOptions.showOnChartHover, ue(), te.value += 1, le.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
47
+ Be(() => g.config, (t) => {
48
+ e.value = ie(), X.value = !e.value.userOptions.showOnChartHover, ue(), te.value += 1, le.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
48
49
  }, { deep: !0 });
49
- const k = fe(null), A = fe(null);
50
- Be(() => {
50
+ const _ = ge(null), L = ge(null);
51
+ Ee(() => {
51
52
  ue();
52
53
  });
53
54
  function ue() {
54
- if (Xe(g.dataset) && je({
55
+ if (je(g.dataset) && He({
55
56
  componentName: "VueUiAgePyramid",
56
57
  type: "dataset"
57
58
  }), e.value.responsive) {
58
- const t = Qe(() => {
59
- const { width: s, height: l } = Ze({
60
- chart: N.value,
59
+ const t = Ze(() => {
60
+ const { width: s, height: l } = et({
61
+ chart: k.value,
61
62
  title: e.value.style.title.text ? Q.value : null,
62
63
  source: Z.value,
63
64
  noTitle: ee.value
@@ -66,23 +67,23 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
66
67
  p.value.width = s, p.value.height = l;
67
68
  });
68
69
  });
69
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(t), A.value = N.value.parentNode, k.value.observe(A.value);
70
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = k.value.parentNode, _.value.observe(L.value);
70
71
  }
71
72
  }
72
- De(() => {
73
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
73
+ Ue(() => {
74
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
74
75
  });
75
- const { isPrinting: re, isImaging: ne, generatePdf: ve, generateImage: de } = et({
76
- elementId: `vue-ui-age-pyramid_${m.value}`,
76
+ const { isPrinting: re, isImaging: ne, generatePdf: ve, generateImage: de } = tt({
77
+ elementId: `vue-ui-age-pyramid_${w.value}`,
77
78
  fileName: e.value.style.title.text || "vue-ui-age-pyramid",
78
79
  options: e.value.userOptions.print
79
- }), Oe = b(() => e.value.userOptions.show && !e.value.style.title.text), x = d({
80
+ }), Ie = x(() => e.value.userOptions.show && !e.value.style.title.text), m = d({
80
81
  showTable: e.value.table.show,
81
82
  showTooltip: e.value.style.tooltip.show
82
83
  }), p = d({
83
84
  height: e.value.style.height,
84
85
  width: e.value.style.width
85
- }), o = b(() => {
86
+ }), o = x(() => {
86
87
  const t = p.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, s = e.value.style.layout.padding.left, l = p.value.width - e.value.style.layout.padding.right;
87
88
  return {
88
89
  top: e.value.style.layout.padding.top,
@@ -101,16 +102,16 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
101
102
  left: s + t / 2 + e.value.style.layout.centerSlit.width
102
103
  }
103
104
  };
104
- }), Ie = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), L = b(() => {
105
- const t = Fe(R.value / 5), s = [], l = [];
105
+ }), Fe = x(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = x(() => {
106
+ const t = Me(N.value / 5), s = [], l = [];
106
107
  for (let a = 0; a <= 5; a += 1) {
107
- const v = t * a, w = t * (a - 5);
108
+ const n = t * a, b = t * (a - 5);
108
109
  s.push({
109
- value: v,
110
- x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + v / R.value * o.value.leftChart.width
110
+ value: n,
111
+ x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / N.value * o.value.leftChart.width
111
112
  }), l.push({
112
- value: Math.abs(w),
113
- x: o.value.left + o.value.width / 2 + w / R.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
113
+ value: Math.abs(b),
114
+ x: o.value.left + o.value.width / 2 + b / N.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
114
115
  });
115
116
  }
116
117
  return {
@@ -118,25 +119,25 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
118
119
  left: l
119
120
  };
120
121
  });
121
- function Fe(t) {
122
+ function Me(t) {
122
123
  if (t === 0) return 0;
123
124
  const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
124
125
  let a;
125
126
  return t < 0, a = Math.round(t / l) * l, a;
126
127
  }
127
- const R = b(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => c(s))))), S = b(() => g.dataset.length), Me = b(() => g.dataset.map((t) => ({
128
+ const N = x(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => c(s))))), z = x(() => g.dataset.length), Pe = x(() => g.dataset.map((t) => ({
128
129
  segment: t[0],
129
130
  age: t[1],
130
131
  left: {
131
132
  value: t[2],
132
- proportionToMax: t[2] / R.value
133
+ proportionToMax: t[2] / N.value
133
134
  },
134
135
  right: {
135
136
  value: t[3],
136
- proportionToMax: t[3] / R.value
137
+ proportionToMax: t[3] / N.value
137
138
  }
138
- }))), z = b(() => Me.value.map((t, s) => {
139
- const l = o.value.top + o.value.height / S.value * s, a = o.value.height / S.value - e.value.style.layout.bars.gap;
139
+ }))), O = x(() => Pe.value.map((t, s) => {
140
+ const l = o.value.top + o.value.height / z.value * s, a = o.value.height / z.value - e.value.style.layout.bars.gap;
140
141
  return {
141
142
  segment: t.segment,
142
143
  age: t.age,
@@ -158,15 +159,15 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
158
159
  }
159
160
  };
160
161
  })), j = d(null);
161
- function Pe(t, s) {
162
- E.value = t, j.value = {
162
+ function Re(t, s) {
163
+ U.value = t, j.value = {
163
164
  datapoint: s,
164
165
  seriesIndex: t,
165
- series: z.value,
166
+ series: O.value,
166
167
  config: e.value
167
168
  };
168
169
  const l = e.value.style.tooltip.customFormat;
169
- if (Je(l) && Ke(() => l({
170
+ if (Ke(l) && Qe(() => l({
170
171
  seriesIndex: t,
171
172
  datapoint: {
172
173
  segment: s[0],
@@ -174,7 +175,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
174
175
  left: s[2],
175
176
  right: s[3]
176
177
  },
177
- series: z.value,
178
+ series: O.value,
178
179
  config: e.value
179
180
  })))
180
181
  W.value = l({
@@ -185,31 +186,31 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
185
186
  left: s[2],
186
187
  right: s[3]
187
188
  },
188
- series: z.value,
189
+ series: O.value,
189
190
  config: e.value
190
191
  });
191
192
  else {
192
193
  let a = "";
193
- const v = z.value[t];
194
- a += `<div><b>${v.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${$(
194
+ const n = O.value[t];
195
+ a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${T(
195
196
  e.value.style.layout.dataLabels.yAxis.formatter,
196
- c(v.age),
197
- T({ v: c(v.age) }),
197
+ c(n.age),
198
+ A({ v: c(n.age) }),
198
199
  { datapoint: s, seriesIndex: t }
199
- )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${$(
200
+ )}</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>${T(
200
201
  e.value.style.layout.dataLabels.xAxis.formatter,
201
- c(v.left.value),
202
- T({ v: c(v.left.value) }),
202
+ c(n.left.value),
203
+ A({ v: c(n.left.value) }),
203
204
  { datapoint: s, seriesIndex: t }
204
- )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${$(
205
+ )}</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>${T(
205
206
  e.value.style.layout.dataLabels.xAxis.formatter,
206
- c(v.right.value),
207
- T({ v: c(v.right.value) }),
207
+ c(n.right.value),
208
+ A({ v: c(n.right.value) }),
208
209
  { datapoint: s, seriesIndex: t }
209
- )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${$(
210
+ )}</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>${T(
210
211
  e.value.style.layout.dataLabels.xAxis.formatter,
211
- c(v.right.value) + c(v.left.value),
212
- T({ v: c(v.right.value) + c(v.left.value) }),
212
+ c(n.right.value) + c(n.left.value),
213
+ A({ v: c(n.right.value) + c(n.left.value) }),
213
214
  { datapoint: s, seriesIndex: t }
214
215
  )}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
215
216
  }
@@ -217,17 +218,17 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
217
218
  }
218
219
  function ye(t = null) {
219
220
  Ge(() => {
220
- const s = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = g.dataset.map((w) => [
221
- w[0],
222
- w[1],
223
- w[2],
224
- w[3],
225
- w[2] + w[3]
226
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), v = Ye(a);
227
- t ? t(v) : qe({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
221
+ const s = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = g.dataset.map((b) => [
222
+ b[0],
223
+ b[1],
224
+ b[2],
225
+ b[3],
226
+ b[2] + b[3]
227
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), n = qe(a);
228
+ t ? t(n) : Je({ csvContent: n, title: e.value.style.title.text || "vue-ui-heatmap" });
228
229
  });
229
230
  }
230
- const G = b(() => {
231
+ const D = x(() => {
231
232
  const t = [
232
233
  e.value.translations.year,
233
234
  e.value.translations.age,
@@ -254,45 +255,59 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
254
255
  breakpoint: e.value.table.responsiveBreakpoint
255
256
  };
256
257
  return { head: t, body: s, config: l, colNames: t };
257
- }), O = d(!1);
258
- function Ne(t) {
259
- O.value = t, K.value += 1;
260
- }
261
- function he() {
262
- x.value.showTable = !x.value.showTable;
258
+ }), I = d(!1);
259
+ function he(t) {
260
+ I.value = t, K.value += 1;
263
261
  }
264
262
  function ce() {
265
- x.value.showTooltip = !x.value.showTooltip;
263
+ m.value.showTable = !m.value.showTable;
264
+ }
265
+ function fe() {
266
+ m.value.showTooltip = !m.value.showTooltip;
266
267
  }
267
- const U = d(!1);
268
+ const G = d(!1);
268
269
  function H() {
269
- U.value = !U.value;
270
+ G.value = !G.value;
271
+ }
272
+ async function Ne({ scale: t = 2 } = {}) {
273
+ if (!k.value) return;
274
+ const { width: s, height: l } = k.value.getBoundingClientRect(), a = s / l, { imageUri: n, base64: b } = await st({ domElement: k.value, base64: !0, img: !0, scale: t });
275
+ return {
276
+ imageUri: n,
277
+ base64: b,
278
+ title: e.value.style.title.text,
279
+ width: s,
280
+ height: l,
281
+ aspectRatio: a
282
+ };
270
283
  }
271
- return we({
284
+ return ke({
285
+ getImage: Ne,
272
286
  generatePdf: ve,
273
287
  generateCsv: ye,
274
288
  generateImage: de,
275
- toggleTable: he,
276
- toggleTooltip: ce,
277
- toggleAnnotator: H
289
+ toggleTable: ce,
290
+ toggleTooltip: fe,
291
+ toggleAnnotator: H,
292
+ toggleFullscreen: he
278
293
  }), (t, s) => (u(), r("div", {
279
- class: ge(`vue-ui-age-pyramid ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
294
+ class: pe(`vue-ui-age-pyramid ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
280
295
  ref_key: "agePyramid",
281
- ref: N,
282
- id: `vue-ui-age-pyramid_${m.value}`,
296
+ ref: k,
297
+ id: `vue-ui-age-pyramid_${w.value}`,
283
298
  style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
284
299
  onMouseenter: s[2] || (s[2] = () => i(ae)(!0)),
285
300
  onMouseleave: s[3] || (s[3] = () => i(ae)(!1))
286
301
  }, [
287
- e.value.userOptions.buttons.annotator ? (u(), I(i($e), {
302
+ e.value.userOptions.buttons.annotator ? (u(), F(i(Te), {
288
303
  key: 0,
289
304
  svgRef: i(se),
290
305
  backgroundColor: e.value.style.backgroundColor,
291
306
  color: e.value.style.color,
292
- active: U.value,
307
+ active: G.value,
293
308
  onClose: H
294
309
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
295
- Oe.value ? (u(), r("div", {
310
+ Ie.value ? (u(), r("div", {
296
311
  key: 1,
297
312
  ref_key: "noTitle",
298
313
  ref: ee,
@@ -305,7 +320,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
305
320
  ref: Q,
306
321
  style: "width:100%;background:transparent"
307
322
  }, [
308
- (u(), I(at, {
323
+ (u(), F(ot, {
309
324
  key: `title_${te.value}`,
310
325
  config: {
311
326
  title: {
@@ -319,45 +334,45 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
319
334
  }
320
335
  }, null, 8, ["config"]))
321
336
  ], 512)) : y("", !0),
322
- e.value.userOptions.show && D.value && (i(oe) || i(X)) ? (u(), I(i(Le), {
337
+ e.value.userOptions.show && E.value && (i(oe) || i(X)) ? (u(), F(i(Se), {
323
338
  ref_key: "details",
324
- ref: ze,
339
+ ref: Oe,
325
340
  key: `user_options_${K.value}`,
326
341
  backgroundColor: e.value.style.backgroundColor,
327
342
  color: e.value.style.color,
328
343
  isImaging: i(ne),
329
344
  isPrinting: i(re),
330
- uid: m.value,
345
+ uid: w.value,
331
346
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
332
347
  hasPdf: e.value.userOptions.buttons.pdf,
333
348
  hasXls: e.value.userOptions.buttons.csv,
334
349
  hasImg: e.value.userOptions.buttons.img,
335
350
  hasTable: e.value.userOptions.buttons.table,
336
351
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
337
- isFullscreen: O.value,
338
- isTooltip: x.value.showTooltip,
352
+ isFullscreen: I.value,
353
+ isTooltip: m.value.showTooltip,
339
354
  titles: { ...e.value.userOptions.buttonTitles },
340
- chartElement: N.value,
355
+ chartElement: k.value,
341
356
  position: e.value.userOptions.position,
342
357
  hasAnnotator: e.value.userOptions.buttons.annotator,
343
- isAnnotation: U.value,
358
+ isAnnotation: G.value,
344
359
  callbacks: e.value.userOptions.callbacks,
345
360
  printScale: e.value.userOptions.print.scale,
346
- onToggleFullscreen: Ne,
361
+ onToggleFullscreen: he,
347
362
  onGeneratePdf: i(ve),
348
363
  onGenerateCsv: ye,
349
364
  onGenerateImage: i(de),
350
- onToggleTable: he,
351
- onToggleTooltip: ce,
365
+ onToggleTable: ce,
366
+ onToggleTooltip: fe,
352
367
  onToggleAnnotator: H,
353
368
  style: Y({
354
369
  visibility: i(oe) ? i(X) ? "visible" : "hidden" : "visible"
355
370
  })
356
- }, Ee({ _: 2 }, [
371
+ }, De({ _: 2 }, [
357
372
  t.$slots.menuIcon ? {
358
373
  name: "menuIcon",
359
374
  fn: f(({ isOpen: l, color: a }) => [
360
- h(t.$slots, "menuIcon", F(M({ isOpen: l, color: a })), void 0, !0)
375
+ h(t.$slots, "menuIcon", M(P({ isOpen: l, color: a })), void 0, !0)
361
376
  ]),
362
377
  key: "0"
363
378
  } : void 0,
@@ -399,28 +414,28 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
399
414
  t.$slots.optionFullscreen ? {
400
415
  name: "optionFullscreen",
401
416
  fn: f(({ toggleFullscreen: l, isFullscreen: a }) => [
402
- h(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
417
+ h(t.$slots, "optionFullscreen", M(P({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
403
418
  ]),
404
419
  key: "6"
405
420
  } : void 0,
406
421
  t.$slots.optionAnnotator ? {
407
422
  name: "optionAnnotator",
408
423
  fn: f(({ toggleAnnotator: l, isAnnotator: a }) => [
409
- h(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
424
+ h(t.$slots, "optionAnnotator", M(P({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
410
425
  ]),
411
426
  key: "7"
412
427
  } : void 0
413
428
  ]), 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),
414
- D.value ? (u(), r("svg", {
429
+ E.value ? (u(), r("svg", {
415
430
  key: 4,
416
431
  ref_key: "svgRef",
417
432
  ref: se,
418
- xmlns: i(He),
419
- class: ge({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
433
+ xmlns: i(Ye),
434
+ class: pe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
420
435
  viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
421
436
  style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
422
437
  }, [
423
- pe(i(Ce)),
438
+ be(i($e)),
424
439
  t.$slots["chart-background"] ? (u(), r("foreignObject", {
425
440
  key: 0,
426
441
  x: o.value.left,
@@ -432,134 +447,134 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
432
447
  }
433
448
  }, [
434
449
  h(t.$slots, "chart-background", {}, void 0, !0)
435
- ], 8, ut)) : y("", !0),
436
- n("defs", null, [
437
- n("linearGradient", {
438
- id: `age_pyramid_left_${m.value}`,
450
+ ], 8, nt)) : y("", !0),
451
+ v("defs", null, [
452
+ v("linearGradient", {
453
+ id: `age_pyramid_left_${w.value}`,
439
454
  x1: "0%",
440
455
  y1: "0%",
441
456
  x2: "100%",
442
457
  y2: "0%"
443
458
  }, [
444
- n("stop", {
459
+ v("stop", {
445
460
  offset: "0%",
446
461
  "stop-color": e.value.style.layout.bars.left.color
447
- }, null, 8, nt),
448
- n("stop", {
462
+ }, null, 8, dt),
463
+ v("stop", {
449
464
  offset: "100%",
450
- "stop-color": i(q)(i(xe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
451
- }, null, 8, vt)
452
- ], 8, rt),
453
- n("linearGradient", {
454
- id: `age_pyramid_right_${m.value}`,
465
+ "stop-color": i(q)(i(me)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
466
+ }, null, 8, yt)
467
+ ], 8, vt),
468
+ v("linearGradient", {
469
+ id: `age_pyramid_right_${w.value}`,
455
470
  x1: "0%",
456
471
  y1: "0%",
457
472
  x2: "100%",
458
473
  y2: "0%"
459
474
  }, [
460
- n("stop", {
475
+ v("stop", {
461
476
  offset: "0%",
462
- "stop-color": i(q)(i(xe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
463
- }, null, 8, yt),
464
- n("stop", {
477
+ "stop-color": i(q)(i(me)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
478
+ }, null, 8, ct),
479
+ v("stop", {
465
480
  offset: "100%",
466
481
  "stop-color": e.value.style.layout.bars.right.color
467
- }, null, 8, ht)
468
- ], 8, dt)
482
+ }, null, 8, ft)
483
+ ], 8, ht)
469
484
  ]),
470
- (u(!0), r(P, null, B(z.value, (l, a) => (u(), r("g", null, [
471
- n("rect", {
485
+ (u(!0), r(R, null, B(O.value, (l, a) => (u(), r("g", null, [
486
+ v("rect", {
472
487
  x: l.left.x,
473
488
  y: l.left.y,
474
489
  width: i(c)(l.left.width <= 0 ? 1e-4 : l.left.width),
475
490
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
476
491
  fill: e.value.style.layout.bars.gradient.underlayer,
477
492
  rx: e.value.style.layout.bars.borderRadius
478
- }, null, 8, ct),
479
- n("rect", {
493
+ }, null, 8, gt),
494
+ v("rect", {
480
495
  x: l.left.x,
481
496
  y: l.left.y,
482
497
  width: l.left.width <= 0 ? 1e-4 : l.left.width,
483
498
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
484
- fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : l.left.color,
499
+ fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : l.left.color,
485
500
  rx: e.value.style.layout.bars.borderRadius
486
- }, null, 8, ft),
487
- n("rect", {
501
+ }, null, 8, pt),
502
+ v("rect", {
488
503
  x: l.right.x,
489
504
  y: l.right.y,
490
505
  width: l.right.width <= 0 ? 1e-4 : l.right.width,
491
506
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
492
507
  fill: e.value.style.layout.bars.gradient.underlayer,
493
508
  rx: e.value.style.layout.bars.borderRadius
494
- }, null, 8, gt),
495
- n("rect", {
509
+ }, null, 8, bt),
510
+ v("rect", {
496
511
  x: l.right.x,
497
512
  y: l.right.y,
498
513
  width: l.right.width <= 0 ? 1e-4 : l.right.width,
499
514
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
500
- fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : l.right.color,
515
+ fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
501
516
  rx: e.value.style.layout.bars.borderRadius
502
- }, null, 8, pt)
517
+ }, null, 8, xt)
503
518
  ]))), 256)),
504
- n("g", null, [
505
- e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", bt, [
506
- n("text", {
519
+ v("g", null, [
520
+ e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", mt, [
521
+ v("text", {
507
522
  x: o.value.left,
508
523
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
509
524
  fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
510
525
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
511
526
  "text-anchor": "start",
512
527
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
513
- }, _(e.value.translations.female), 9, xt),
514
- n("text", {
528
+ }, C(e.value.translations.female), 9, wt),
529
+ v("text", {
515
530
  x: o.value.right,
516
531
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
517
532
  fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
518
533
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
519
534
  "text-anchor": "end",
520
535
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
521
- }, _(e.value.translations.male), 9, mt)
536
+ }, C(e.value.translations.male), 9, kt)
522
537
  ])) : y("", !0),
523
- e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", wt, [
524
- (u(!0), r(P, null, B(Ie.value, (l, a) => (u(), r(P, null, [
538
+ e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", _t, [
539
+ (u(!0), r(R, null, B(Fe.value, (l, a) => (u(), r(R, null, [
525
540
  a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
526
541
  key: 0,
527
542
  x: o.value.centerX,
528
- y: o.value.top + o.value.height / S.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
543
+ y: o.value.top + o.value.height / z.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
529
544
  "text-anchor": "middle",
530
545
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
531
546
  fill: e.value.style.layout.dataLabels.yAxis.color,
532
547
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
533
- }, _(i($)(
548
+ }, C(i(T)(
534
549
  e.value.style.layout.dataLabels.yAxis.formatter,
535
550
  l,
536
- i(T)({ v: l }),
551
+ i(A)({ v: l }),
537
552
  { datapoint: l, seriesIndex: a }
538
- )), 9, kt)) : y("", !0)
553
+ )), 9, Ct)) : y("", !0)
539
554
  ], 64))), 256))
540
555
  ])) : y("", !0),
541
- e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", _t, [
542
- e.value.style.layout.grid.show ? (u(), r("g", Ct, [
543
- n("line", {
544
- x1: L.value.right[0].x,
545
- x2: L.value.right.at(-1).x,
556
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", $t, [
557
+ e.value.style.layout.grid.show ? (u(), r("g", Tt, [
558
+ v("line", {
559
+ x1: S.value.right[0].x,
560
+ x2: S.value.right.at(-1).x,
546
561
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
547
562
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
548
563
  stroke: e.value.style.layout.grid.stroke,
549
564
  "stroke-width": e.value.style.layout.grid.strokeWidth,
550
565
  "stroke-linecap": "round"
551
- }, null, 8, $t),
552
- n("line", {
553
- x1: L.value.left[0].x,
554
- x2: L.value.left.at(-1).x,
566
+ }, null, 8, At),
567
+ v("line", {
568
+ x1: S.value.left[0].x,
569
+ x2: S.value.left.at(-1).x,
555
570
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
556
571
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
557
572
  stroke: e.value.style.layout.grid.stroke,
558
573
  "stroke-width": e.value.style.layout.grid.strokeWidth,
559
574
  "stroke-linecap": "round"
560
- }, null, 8, Tt)
575
+ }, null, 8, Lt)
561
576
  ])) : y("", !0),
562
- (u(!0), r(P, null, B(L.value.right, (l, a) => (u(), r("g", null, [
577
+ (u(!0), r(R, null, B(S.value.right, (l, a) => (u(), r("g", null, [
563
578
  e.value.style.layout.grid.show ? (u(), r("line", {
564
579
  key: 0,
565
580
  x1: l.x,
@@ -569,24 +584,24 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
569
584
  stroke: e.value.style.layout.grid.stroke,
570
585
  "stroke-width": e.value.style.layout.grid.strokeWidth,
571
586
  "stroke-linecap": "round"
572
- }, null, 8, At)) : y("", !0),
573
- n("text", {
587
+ }, null, 8, St)) : y("", !0),
588
+ v("text", {
574
589
  x: l.x,
575
590
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
576
591
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
577
592
  fill: e.value.style.layout.dataLabels.xAxis.color,
578
593
  "text-anchor": "middle",
579
594
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
580
- }, _(i($)(
595
+ }, C(i(T)(
581
596
  e.value.style.layout.dataLabels.xAxis.formatter,
582
597
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
583
- i(T)({
598
+ i(A)({
584
599
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
585
600
  }),
586
601
  { datapoint: l, seriesIndex: a }
587
- )), 9, Lt)
602
+ )), 9, zt)
588
603
  ]))), 256)),
589
- (u(!0), r(P, null, B(L.value.left, (l, a) => (u(), r("g", null, [
604
+ (u(!0), r(R, null, B(S.value.left, (l, a) => (u(), r("g", null, [
590
605
  e.value.style.layout.grid.show ? (u(), r("line", {
591
606
  key: 0,
592
607
  x1: l.x,
@@ -596,52 +611,52 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
596
611
  stroke: e.value.style.layout.grid.stroke,
597
612
  "stroke-width": e.value.style.layout.grid.strokeWidth,
598
613
  "stroke-linecap": "round"
599
- }, null, 8, St)) : y("", !0),
600
- n("text", {
614
+ }, null, 8, Ot)) : y("", !0),
615
+ v("text", {
601
616
  x: l.x,
602
617
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
603
618
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
604
619
  fill: e.value.style.layout.dataLabels.xAxis.color,
605
620
  "text-anchor": "middle",
606
621
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
607
- }, _(i($)(
622
+ }, C(i(T)(
608
623
  e.value.style.layout.dataLabels.xAxis.formatter,
609
624
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
610
- i(T)({
625
+ i(A)({
611
626
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
612
627
  }),
613
628
  { datapoint: l, seriesIndex: a }
614
- )), 9, zt)
629
+ )), 9, It)
615
630
  ]))), 256)),
616
- n("text", {
631
+ v("text", {
617
632
  x: o.value.right,
618
633
  y: p.value.height,
619
634
  "text-anchor": "end",
620
635
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
621
636
  fill: e.value.style.layout.dataLabels.xAxis.color,
622
637
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
623
- }, _(e.value.style.layout.dataLabels.xAxis.translation), 9, Ot)
638
+ }, C(e.value.style.layout.dataLabels.xAxis.translation), 9, Ft)
624
639
  ])) : y("", !0)
625
640
  ]),
626
- (u(!0), r(P, null, B(J.dataset, (l, a) => (u(), r("g", null, [
627
- n("rect", {
641
+ (u(!0), r(R, null, B(J.dataset, (l, a) => (u(), r("g", null, [
642
+ v("rect", {
628
643
  x: o.value.left,
629
- y: o.value.top + o.value.height / S.value * a - e.value.style.layout.bars.gap / 2,
644
+ y: o.value.top + o.value.height / z.value * a - e.value.style.layout.bars.gap / 2,
630
645
  width: o.value.width <= 0 ? 1e-4 : o.value.width,
631
- height: o.value.height / S.value <= 0 ? 1e-4 : o.value.height / S.value,
632
- fill: E.value !== null && E.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
633
- onMouseover: (v) => Pe(a, l),
634
- onMouseleave: s[0] || (s[0] = (v) => {
635
- E.value = null, V.value = !1;
646
+ height: o.value.height / z.value <= 0 ? 1e-4 : o.value.height / z.value,
647
+ fill: U.value !== null && U.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
648
+ onMouseover: (n) => Re(a, l),
649
+ onMouseleave: s[0] || (s[0] = (n) => {
650
+ U.value = null, V.value = !1;
636
651
  })
637
- }, null, 40, It)
652
+ }, null, 40, Mt)
638
653
  ]))), 256)),
639
654
  h(t.$slots, "svg", { svg: p.value }, void 0, !0)
640
- ], 14, it)) : y("", !0),
641
- t.$slots.watermark ? (u(), r("div", Ft, [
642
- h(t.$slots, "watermark", F(M({ isPrinting: i(re) || i(ne) })), void 0, !0)
655
+ ], 14, rt)) : y("", !0),
656
+ t.$slots.watermark ? (u(), r("div", Pt, [
657
+ h(t.$slots, "watermark", M(P({ isPrinting: i(re) || i(ne) })), void 0, !0)
643
658
  ])) : y("", !0),
644
- D.value ? y("", !0) : (u(), I(i(Te), {
659
+ E.value ? y("", !0) : (u(), F(i(Ae), {
645
660
  key: 6,
646
661
  config: {
647
662
  type: "pyramid",
@@ -653,7 +668,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
653
668
  }
654
669
  }
655
670
  }, null, 8, ["config"])),
656
- h(t.$slots, "legend", { legend: z.value }, void 0, !0),
671
+ h(t.$slots, "legend", { legend: O.value }, void 0, !0),
657
672
  t.$slots.source ? (u(), r("div", {
658
673
  key: 7,
659
674
  ref_key: "source",
@@ -662,8 +677,8 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
662
677
  }, [
663
678
  h(t.$slots, "source", {}, void 0, !0)
664
679
  ], 512)) : y("", !0),
665
- pe(i(Ae), {
666
- show: x.value.showTooltip && V.value,
680
+ be(i(Le), {
681
+ show: m.value.showTooltip && V.value,
667
682
  backgroundColor: e.value.style.tooltip.backgroundColor,
668
683
  color: e.value.style.tooltip.color,
669
684
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -673,24 +688,24 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
673
688
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
674
689
  position: e.value.style.tooltip.position,
675
690
  offsetY: e.value.style.tooltip.offsetY,
676
- parent: N.value,
691
+ parent: k.value,
677
692
  content: W.value,
678
- isFullscreen: O.value,
693
+ isFullscreen: I.value,
679
694
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
680
695
  }, {
681
696
  "tooltip-before": f(() => [
682
- h(t.$slots, "tooltip-before", F(M({ ...j.value })), void 0, !0)
697
+ h(t.$slots, "tooltip-before", M(P({ ...j.value })), void 0, !0)
683
698
  ]),
684
699
  "tooltip-after": f(() => [
685
- h(t.$slots, "tooltip-after", F(M({ ...j.value })), void 0, !0)
700
+ h(t.$slots, "tooltip-after", M(P({ ...j.value })), void 0, !0)
686
701
  ]),
687
702
  _: 3
688
703
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
689
- D.value ? (u(), I(i(ke), {
704
+ E.value ? (u(), F(i(_e), {
690
705
  key: 8,
691
706
  hideDetails: "",
692
707
  config: {
693
- open: x.value.showTable,
708
+ open: m.value.showTable,
694
709
  maxHeight: 1e4,
695
710
  body: {
696
711
  backgroundColor: e.value.style.backgroundColor,
@@ -703,29 +718,29 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
703
718
  }
704
719
  }, {
705
720
  content: f(() => [
706
- (u(), I(i(_e), {
721
+ (u(), F(i(Ce), {
707
722
  key: `table_${le.value}`,
708
- colNames: G.value.colNames,
709
- head: G.value.head,
710
- body: G.value.body,
711
- config: G.value.config,
723
+ colNames: D.value.colNames,
724
+ head: D.value.head,
725
+ body: D.value.body,
726
+ config: D.value.config,
712
727
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
713
- onClose: s[1] || (s[1] = (l) => x.value.showTable = !1)
728
+ onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
714
729
  }, {
715
730
  th: f(({ th: l }) => [
716
- be(_(l), 1)
731
+ xe(C(l), 1)
717
732
  ]),
718
733
  td: f(({ td: l }) => [
719
- be(_(l), 1)
734
+ xe(C(l), 1)
720
735
  ]),
721
736
  _: 1
722
737
  }, 8, ["colNames", "head", "body", "config", "title"]))
723
738
  ]),
724
739
  _: 1
725
740
  }, 8, ["config"])) : y("", !0)
726
- ], 46, st));
741
+ ], 46, ut));
727
742
  }
728
- }, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-07736a66"]]);
743
+ }, Ht = /* @__PURE__ */ it(Rt, [["__scopeId", "data-v-2c6ac5e8"]]);
729
744
  export {
730
- Wt as default
745
+ Ht as default
731
746
  };