vue-data-ui 2.16.5 → 2.17.0

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 (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,16 +1,17 @@
1
- import { defineAsyncComponent as C, computed as b, ref as v, 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-CZNLCg7T.js";
3
- import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
4
- import { u as me } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as et } from "./usePrinter-ButWuZVm.js";
6
- import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
8
- import at from "./Title-BQLtfM0P.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"], dt = ["stop-color"], vt = ["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 b, ref as v, watch as Ee, shallowRef as ge, onMounted as Ue, onBeforeUnmount as Be, 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 n, Fragment as N, renderList as E, toDisplayString as _, 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-pPGk-uhD.js";
3
+ import { t as Ze, u as et } from "./useResponsive-DfdjqQps.js";
4
+ import { u as we } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as tt } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as at } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ot from "./Title-B-2bV0SW.js";
9
+ import st from "./img-Y_hYz-ZC.js";
10
+ import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"], dt = ["id"], vt = ["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
+ }, Nt = {
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-CO4hmfuX.js")), _e = C(() => import("./DataTable-B6MXw9cG.js")), Ce = C(() => import("./PackageVersion-DCreTQN4.js")), $e = C(() => import("./PenAndPaper-BS60tkQN.js")), Te = C(() => import("./vue-ui-skeleton-D9B8DY_k.js")), Ae = C(() => import("./Tooltip-5JmGL7sR.js")), Le = C(() => import("./UserOptions-DMGkAAIO.js")), { vue_ui_age_pyramid: Se } = Ue(), g = J, D = b(() => !!g.dataset && g.dataset.length), m = v(Ve()), ze = v(null), V = v(!1), W = v(""), E = v(null), K = v(0), N = v(null), Q = v(null), Z = v(null), ee = v(null), te = v(0), le = v(0), e = b({
30
+ setup(J, { expose: ke }) {
31
+ const _e = $(() => import("./vue-ui-accordion-CVnA550V.js")), Ce = $(() => import("./DataTable-D0VYDhfx.js")), $e = $(() => import("./PackageVersion-5TR4ocqp.js")), Te = $(() => import("./PenAndPaper-D6AqipIO.js")), Ae = $(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Le = $(() => import("./Tooltip-CoQnTnr-.js")), Se = $(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_age_pyramid: ze } = Ve(), g = J, U = b(() => !!g.dataset && g.dataset.length), m = v(We()), Oe = v(null), V = v(!1), W = v(""), B = v(null), K = v(0), C = v(null), Q = v(null), Z = v(null), ee = v(null), te = v(0), le = v(0), e = b({
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
+ Ee(() => g.config, (t) => {
47
48
  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;
48
49
  }, { deep: !0 });
49
- const k = fe(null), A = fe(null);
50
- Be(() => {
50
+ const k = ge(null), L = ge(null);
51
+ Ue(() => {
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: C.value,
61
62
  title: e.value.style.title.text ? Q.value : null,
62
63
  source: Z.value,
63
64
  noTitle: ee.value
@@ -66,17 +67,17 @@ 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
+ k.value && (L.value && k.value.unobserve(L.value), k.value.disconnect()), k.value = new ResizeObserver(t), L.value = C.value.parentNode, k.value.observe(L.value);
70
71
  }
71
72
  }
72
- De(() => {
73
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
73
+ Be(() => {
74
+ k.value && (L.value && k.value.unobserve(L.value), k.value.disconnect());
74
75
  });
75
- const { isPrinting: re, isImaging: ne, generatePdf: de, generateImage: ve } = et({
76
+ const { isPrinting: re, isImaging: ne, generatePdf: de, generateImage: ve } = tt({
76
77
  elementId: `vue-ui-age-pyramid_${m.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 = v({
80
+ }), Ie = b(() => e.value.userOptions.show && !e.value.style.title.text), x = v({
80
81
  showTable: e.value.table.show,
81
82
  showTooltip: e.value.style.tooltip.show
82
83
  }), p = v({
@@ -101,8 +102,8 @@ 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 = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = b(() => {
106
+ const t = Me(R.value / 5), s = [], l = [];
106
107
  for (let a = 0; a <= 5; a += 1) {
107
108
  const d = t * a, w = t * (a - 5);
108
109
  s.push({
@@ -118,13 +119,13 @@ 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 R = b(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => c(s))))), z = b(() => g.dataset.length), Pe = b(() => g.dataset.map((t) => ({
128
129
  segment: t[0],
129
130
  age: t[1],
130
131
  left: {
@@ -135,8 +136,8 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
135
136
  value: t[3],
136
137
  proportionToMax: t[3] / R.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 = b(() => 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 = v(null);
161
- function Pe(t, s) {
162
- E.value = t, j.value = {
162
+ function Ne(t, s) {
163
+ B.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 d = z.value[t];
194
- a += `<div><b>${d.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${$(
194
+ const d = O.value[t];
195
+ a += `<div><b>${d.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${T(
195
196
  e.value.style.layout.dataLabels.yAxis.formatter,
196
197
  c(d.age),
197
- T({ v: c(d.age) }),
198
+ A({ v: c(d.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_${m.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
202
  c(d.left.value),
202
- T({ v: c(d.left.value) }),
203
+ A({ v: c(d.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_${m.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
207
  c(d.right.value),
207
- T({ v: c(d.right.value) }),
208
+ A({ v: c(d.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
212
  c(d.right.value) + c(d.left.value),
212
- T({ v: c(d.right.value) + c(d.left.value) }),
213
+ A({ v: c(d.right.value) + c(d.left.value) }),
213
214
  { datapoint: s, seriesIndex: t }
214
215
  )}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
215
216
  }
@@ -223,11 +224,11 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
223
224
  w[2],
224
225
  w[3],
225
226
  w[2] + w[3]
226
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), d = Ye(a);
227
- t ? t(d) : qe({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
227
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), d = qe(a);
228
+ t ? t(d) : Je({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
228
229
  });
229
230
  }
230
- const G = b(() => {
231
+ const D = b(() => {
231
232
  const t = [
232
233
  e.value.translations.year,
233
234
  e.value.translations.age,
@@ -254,45 +255,52 @@ 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 = v(!1);
258
- function Ne(t) {
259
- O.value = t, K.value += 1;
258
+ }), I = v(!1);
259
+ function he(t) {
260
+ I.value = t, K.value += 1;
260
261
  }
261
- function he() {
262
+ function ce() {
262
263
  x.value.showTable = !x.value.showTable;
263
264
  }
264
- function ce() {
265
+ function fe() {
265
266
  x.value.showTooltip = !x.value.showTooltip;
266
267
  }
267
- const U = v(!1);
268
+ const G = v(!1);
268
269
  function H() {
269
- U.value = !U.value;
270
+ G.value = !G.value;
271
+ }
272
+ async function Re({ scale: t = 2 } = {}) {
273
+ if (!C.value) return;
274
+ const { imageUri: s, base64: l } = await st({ domElement: C.value, base64: !0, img: !0, scale: t });
275
+ return { imageUri: s, base64: l };
270
276
  }
271
- return we({
277
+ return ke({
278
+ getImage: Re,
272
279
  generatePdf: de,
273
280
  generateCsv: ye,
274
281
  generateImage: ve,
275
- toggleTable: he,
276
- toggleTooltip: ce,
277
- toggleAnnotator: H
282
+ toggleTable: ce,
283
+ toggleTooltip: fe,
284
+ toggleAnnotator: H,
285
+ toggleFullscreen: he
278
286
  }), (t, s) => (u(), r("div", {
279
- class: ge(`vue-ui-age-pyramid ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
287
+ class: pe(`vue-ui-age-pyramid ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
280
288
  ref_key: "agePyramid",
281
- ref: N,
289
+ ref: C,
282
290
  id: `vue-ui-age-pyramid_${m.value}`,
283
291
  style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
284
292
  onMouseenter: s[2] || (s[2] = () => i(ae)(!0)),
285
293
  onMouseleave: s[3] || (s[3] = () => i(ae)(!1))
286
294
  }, [
287
- e.value.userOptions.buttons.annotator ? (u(), I(i($e), {
295
+ e.value.userOptions.buttons.annotator ? (u(), F(i(Te), {
288
296
  key: 0,
289
297
  svgRef: i(se),
290
298
  backgroundColor: e.value.style.backgroundColor,
291
299
  color: e.value.style.color,
292
- active: U.value,
300
+ active: G.value,
293
301
  onClose: H
294
302
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
295
- Oe.value ? (u(), r("div", {
303
+ Ie.value ? (u(), r("div", {
296
304
  key: 1,
297
305
  ref_key: "noTitle",
298
306
  ref: ee,
@@ -305,7 +313,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
305
313
  ref: Q,
306
314
  style: "width:100%;background:transparent"
307
315
  }, [
308
- (u(), I(at, {
316
+ (u(), F(ot, {
309
317
  key: `title_${te.value}`,
310
318
  config: {
311
319
  title: {
@@ -319,9 +327,9 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
319
327
  }
320
328
  }, null, 8, ["config"]))
321
329
  ], 512)) : y("", !0),
322
- e.value.userOptions.show && D.value && (i(oe) || i(X)) ? (u(), I(i(Le), {
330
+ e.value.userOptions.show && U.value && (i(oe) || i(X)) ? (u(), F(i(Se), {
323
331
  ref_key: "details",
324
- ref: ze,
332
+ ref: Oe,
325
333
  key: `user_options_${K.value}`,
326
334
  backgroundColor: e.value.style.backgroundColor,
327
335
  color: e.value.style.color,
@@ -334,29 +342,30 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
334
342
  hasImg: e.value.userOptions.buttons.img,
335
343
  hasTable: e.value.userOptions.buttons.table,
336
344
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
337
- isFullscreen: O.value,
345
+ isFullscreen: I.value,
338
346
  isTooltip: x.value.showTooltip,
339
347
  titles: { ...e.value.userOptions.buttonTitles },
340
- chartElement: N.value,
348
+ chartElement: C.value,
341
349
  position: e.value.userOptions.position,
342
350
  hasAnnotator: e.value.userOptions.buttons.annotator,
343
- isAnnotation: U.value,
351
+ isAnnotation: G.value,
344
352
  callbacks: e.value.userOptions.callbacks,
345
- onToggleFullscreen: Ne,
353
+ printScale: e.value.userOptions.print.scale,
354
+ onToggleFullscreen: he,
346
355
  onGeneratePdf: i(de),
347
356
  onGenerateCsv: ye,
348
357
  onGenerateImage: i(ve),
349
- onToggleTable: he,
350
- onToggleTooltip: ce,
358
+ onToggleTable: ce,
359
+ onToggleTooltip: fe,
351
360
  onToggleAnnotator: H,
352
361
  style: Y({
353
362
  visibility: i(oe) ? i(X) ? "visible" : "hidden" : "visible"
354
363
  })
355
- }, Ee({ _: 2 }, [
364
+ }, De({ _: 2 }, [
356
365
  t.$slots.menuIcon ? {
357
366
  name: "menuIcon",
358
367
  fn: f(({ isOpen: l, color: a }) => [
359
- h(t.$slots, "menuIcon", F(M({ isOpen: l, color: a })), void 0, !0)
368
+ h(t.$slots, "menuIcon", M(P({ isOpen: l, color: a })), void 0, !0)
360
369
  ]),
361
370
  key: "0"
362
371
  } : void 0,
@@ -398,28 +407,28 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
398
407
  t.$slots.optionFullscreen ? {
399
408
  name: "optionFullscreen",
400
409
  fn: f(({ toggleFullscreen: l, isFullscreen: a }) => [
401
- h(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
410
+ h(t.$slots, "optionFullscreen", M(P({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
402
411
  ]),
403
412
  key: "6"
404
413
  } : void 0,
405
414
  t.$slots.optionAnnotator ? {
406
415
  name: "optionAnnotator",
407
416
  fn: f(({ toggleAnnotator: l, isAnnotator: a }) => [
408
- h(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
417
+ h(t.$slots, "optionAnnotator", M(P({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
409
418
  ]),
410
419
  key: "7"
411
420
  } : void 0
412
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
413
- D.value ? (u(), r("svg", {
421
+ ]), 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),
422
+ U.value ? (u(), r("svg", {
414
423
  key: 4,
415
424
  ref_key: "svgRef",
416
425
  ref: se,
417
- xmlns: i(He),
418
- class: ge({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
426
+ xmlns: i(Ye),
427
+ class: pe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
419
428
  viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
420
429
  style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
421
430
  }, [
422
- pe(i(Ce)),
431
+ be(i($e)),
423
432
  t.$slots["chart-background"] ? (u(), r("foreignObject", {
424
433
  key: 0,
425
434
  x: o.value.left,
@@ -431,7 +440,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
431
440
  }
432
441
  }, [
433
442
  h(t.$slots, "chart-background", {}, void 0, !0)
434
- ], 8, ut)) : y("", !0),
443
+ ], 8, nt)) : y("", !0),
435
444
  n("defs", null, [
436
445
  n("linearGradient", {
437
446
  id: `age_pyramid_left_${m.value}`,
@@ -443,12 +452,12 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
443
452
  n("stop", {
444
453
  offset: "0%",
445
454
  "stop-color": e.value.style.layout.bars.left.color
446
- }, null, 8, nt),
455
+ }, null, 8, vt),
447
456
  n("stop", {
448
457
  offset: "100%",
449
- "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)
450
- }, null, 8, dt)
451
- ], 8, rt),
458
+ "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)
459
+ }, null, 8, yt)
460
+ ], 8, dt),
452
461
  n("linearGradient", {
453
462
  id: `age_pyramid_right_${m.value}`,
454
463
  x1: "0%",
@@ -458,15 +467,15 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
458
467
  }, [
459
468
  n("stop", {
460
469
  offset: "0%",
461
- "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)
462
- }, null, 8, yt),
470
+ "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)
471
+ }, null, 8, ct),
463
472
  n("stop", {
464
473
  offset: "100%",
465
474
  "stop-color": e.value.style.layout.bars.right.color
466
- }, null, 8, ht)
467
- ], 8, vt)
475
+ }, null, 8, ft)
476
+ ], 8, ht)
468
477
  ]),
469
- (u(!0), r(P, null, B(z.value, (l, a) => (u(), r("g", null, [
478
+ (u(!0), r(N, null, E(O.value, (l, a) => (u(), r("g", null, [
470
479
  n("rect", {
471
480
  x: l.left.x,
472
481
  y: l.left.y,
@@ -474,7 +483,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
474
483
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
475
484
  fill: e.value.style.layout.bars.gradient.underlayer,
476
485
  rx: e.value.style.layout.bars.borderRadius
477
- }, null, 8, ct),
486
+ }, null, 8, gt),
478
487
  n("rect", {
479
488
  x: l.left.x,
480
489
  y: l.left.y,
@@ -482,7 +491,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
482
491
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
483
492
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : l.left.color,
484
493
  rx: e.value.style.layout.bars.borderRadius
485
- }, null, 8, ft),
494
+ }, null, 8, pt),
486
495
  n("rect", {
487
496
  x: l.right.x,
488
497
  y: l.right.y,
@@ -490,7 +499,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
490
499
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
491
500
  fill: e.value.style.layout.bars.gradient.underlayer,
492
501
  rx: e.value.style.layout.bars.borderRadius
493
- }, null, 8, gt),
502
+ }, null, 8, bt),
494
503
  n("rect", {
495
504
  x: l.right.x,
496
505
  y: l.right.y,
@@ -498,10 +507,10 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
498
507
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
499
508
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : l.right.color,
500
509
  rx: e.value.style.layout.bars.borderRadius
501
- }, null, 8, pt)
510
+ }, null, 8, xt)
502
511
  ]))), 256)),
503
512
  n("g", null, [
504
- e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", bt, [
513
+ e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", mt, [
505
514
  n("text", {
506
515
  x: o.value.left,
507
516
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -509,7 +518,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
509
518
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
510
519
  "text-anchor": "start",
511
520
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
512
- }, _(e.value.translations.female), 9, xt),
521
+ }, _(e.value.translations.female), 9, wt),
513
522
  n("text", {
514
523
  x: o.value.right,
515
524
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -517,48 +526,48 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
517
526
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
518
527
  "text-anchor": "end",
519
528
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
520
- }, _(e.value.translations.male), 9, mt)
529
+ }, _(e.value.translations.male), 9, kt)
521
530
  ])) : y("", !0),
522
- e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", wt, [
523
- (u(!0), r(P, null, B(Ie.value, (l, a) => (u(), r(P, null, [
531
+ e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", _t, [
532
+ (u(!0), r(N, null, E(Fe.value, (l, a) => (u(), r(N, null, [
524
533
  a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
525
534
  key: 0,
526
535
  x: o.value.centerX,
527
- y: o.value.top + o.value.height / S.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
536
+ y: o.value.top + o.value.height / z.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
528
537
  "text-anchor": "middle",
529
538
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
530
539
  fill: e.value.style.layout.dataLabels.yAxis.color,
531
540
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
532
- }, _(i($)(
541
+ }, _(i(T)(
533
542
  e.value.style.layout.dataLabels.yAxis.formatter,
534
543
  l,
535
- i(T)({ v: l }),
544
+ i(A)({ v: l }),
536
545
  { datapoint: l, seriesIndex: a }
537
- )), 9, kt)) : y("", !0)
546
+ )), 9, Ct)) : y("", !0)
538
547
  ], 64))), 256))
539
548
  ])) : y("", !0),
540
- e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", _t, [
541
- e.value.style.layout.grid.show ? (u(), r("g", Ct, [
549
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", $t, [
550
+ e.value.style.layout.grid.show ? (u(), r("g", Tt, [
542
551
  n("line", {
543
- x1: L.value.right[0].x,
544
- x2: L.value.right.at(-1).x,
552
+ x1: S.value.right[0].x,
553
+ x2: S.value.right.at(-1).x,
545
554
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
546
555
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
547
556
  stroke: e.value.style.layout.grid.stroke,
548
557
  "stroke-width": e.value.style.layout.grid.strokeWidth,
549
558
  "stroke-linecap": "round"
550
- }, null, 8, $t),
559
+ }, null, 8, At),
551
560
  n("line", {
552
- x1: L.value.left[0].x,
553
- x2: L.value.left.at(-1).x,
561
+ x1: S.value.left[0].x,
562
+ x2: S.value.left.at(-1).x,
554
563
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
555
564
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
556
565
  stroke: e.value.style.layout.grid.stroke,
557
566
  "stroke-width": e.value.style.layout.grid.strokeWidth,
558
567
  "stroke-linecap": "round"
559
- }, null, 8, Tt)
568
+ }, null, 8, Lt)
560
569
  ])) : y("", !0),
561
- (u(!0), r(P, null, B(L.value.right, (l, a) => (u(), r("g", null, [
570
+ (u(!0), r(N, null, E(S.value.right, (l, a) => (u(), r("g", null, [
562
571
  e.value.style.layout.grid.show ? (u(), r("line", {
563
572
  key: 0,
564
573
  x1: l.x,
@@ -568,7 +577,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
568
577
  stroke: e.value.style.layout.grid.stroke,
569
578
  "stroke-width": e.value.style.layout.grid.strokeWidth,
570
579
  "stroke-linecap": "round"
571
- }, null, 8, At)) : y("", !0),
580
+ }, null, 8, St)) : y("", !0),
572
581
  n("text", {
573
582
  x: l.x,
574
583
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -576,16 +585,16 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
576
585
  fill: e.value.style.layout.dataLabels.xAxis.color,
577
586
  "text-anchor": "middle",
578
587
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
579
- }, _(i($)(
588
+ }, _(i(T)(
580
589
  e.value.style.layout.dataLabels.xAxis.formatter,
581
590
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
582
- i(T)({
591
+ i(A)({
583
592
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
584
593
  }),
585
594
  { datapoint: l, seriesIndex: a }
586
- )), 9, Lt)
595
+ )), 9, zt)
587
596
  ]))), 256)),
588
- (u(!0), r(P, null, B(L.value.left, (l, a) => (u(), r("g", null, [
597
+ (u(!0), r(N, null, E(S.value.left, (l, a) => (u(), r("g", null, [
589
598
  e.value.style.layout.grid.show ? (u(), r("line", {
590
599
  key: 0,
591
600
  x1: l.x,
@@ -595,7 +604,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
595
604
  stroke: e.value.style.layout.grid.stroke,
596
605
  "stroke-width": e.value.style.layout.grid.strokeWidth,
597
606
  "stroke-linecap": "round"
598
- }, null, 8, St)) : y("", !0),
607
+ }, null, 8, Ot)) : y("", !0),
599
608
  n("text", {
600
609
  x: l.x,
601
610
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -603,14 +612,14 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
603
612
  fill: e.value.style.layout.dataLabels.xAxis.color,
604
613
  "text-anchor": "middle",
605
614
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
606
- }, _(i($)(
615
+ }, _(i(T)(
607
616
  e.value.style.layout.dataLabels.xAxis.formatter,
608
617
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
609
- i(T)({
618
+ i(A)({
610
619
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
611
620
  }),
612
621
  { datapoint: l, seriesIndex: a }
613
- )), 9, zt)
622
+ )), 9, It)
614
623
  ]))), 256)),
615
624
  n("text", {
616
625
  x: o.value.right,
@@ -619,28 +628,28 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
619
628
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
620
629
  fill: e.value.style.layout.dataLabels.xAxis.color,
621
630
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
622
- }, _(e.value.style.layout.dataLabels.xAxis.translation), 9, Ot)
631
+ }, _(e.value.style.layout.dataLabels.xAxis.translation), 9, Ft)
623
632
  ])) : y("", !0)
624
633
  ]),
625
- (u(!0), r(P, null, B(J.dataset, (l, a) => (u(), r("g", null, [
634
+ (u(!0), r(N, null, E(J.dataset, (l, a) => (u(), r("g", null, [
626
635
  n("rect", {
627
636
  x: o.value.left,
628
- y: o.value.top + o.value.height / S.value * a - e.value.style.layout.bars.gap / 2,
637
+ y: o.value.top + o.value.height / z.value * a - e.value.style.layout.bars.gap / 2,
629
638
  width: o.value.width <= 0 ? 1e-4 : o.value.width,
630
- height: o.value.height / S.value <= 0 ? 1e-4 : o.value.height / S.value,
631
- fill: E.value !== null && E.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
632
- onMouseover: (d) => Pe(a, l),
639
+ height: o.value.height / z.value <= 0 ? 1e-4 : o.value.height / z.value,
640
+ fill: B.value !== null && B.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
641
+ onMouseover: (d) => Ne(a, l),
633
642
  onMouseleave: s[0] || (s[0] = (d) => {
634
- E.value = null, V.value = !1;
643
+ B.value = null, V.value = !1;
635
644
  })
636
- }, null, 40, It)
645
+ }, null, 40, Mt)
637
646
  ]))), 256)),
638
647
  h(t.$slots, "svg", { svg: p.value }, void 0, !0)
639
- ], 14, it)) : y("", !0),
640
- t.$slots.watermark ? (u(), r("div", Ft, [
641
- h(t.$slots, "watermark", F(M({ isPrinting: i(re) || i(ne) })), void 0, !0)
648
+ ], 14, rt)) : y("", !0),
649
+ t.$slots.watermark ? (u(), r("div", Pt, [
650
+ h(t.$slots, "watermark", M(P({ isPrinting: i(re) || i(ne) })), void 0, !0)
642
651
  ])) : y("", !0),
643
- D.value ? y("", !0) : (u(), I(i(Te), {
652
+ U.value ? y("", !0) : (u(), F(i(Ae), {
644
653
  key: 6,
645
654
  config: {
646
655
  type: "pyramid",
@@ -652,7 +661,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
652
661
  }
653
662
  }
654
663
  }, null, 8, ["config"])),
655
- h(t.$slots, "legend", { legend: z.value }, void 0, !0),
664
+ h(t.$slots, "legend", { legend: O.value }, void 0, !0),
656
665
  t.$slots.source ? (u(), r("div", {
657
666
  key: 7,
658
667
  ref_key: "source",
@@ -661,7 +670,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
661
670
  }, [
662
671
  h(t.$slots, "source", {}, void 0, !0)
663
672
  ], 512)) : y("", !0),
664
- pe(i(Ae), {
673
+ be(i(Le), {
665
674
  show: x.value.showTooltip && V.value,
666
675
  backgroundColor: e.value.style.tooltip.backgroundColor,
667
676
  color: e.value.style.tooltip.color,
@@ -672,20 +681,20 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
672
681
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
673
682
  position: e.value.style.tooltip.position,
674
683
  offsetY: e.value.style.tooltip.offsetY,
675
- parent: N.value,
684
+ parent: C.value,
676
685
  content: W.value,
677
- isFullscreen: O.value,
686
+ isFullscreen: I.value,
678
687
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
679
688
  }, {
680
689
  "tooltip-before": f(() => [
681
- h(t.$slots, "tooltip-before", F(M({ ...j.value })), void 0, !0)
690
+ h(t.$slots, "tooltip-before", M(P({ ...j.value })), void 0, !0)
682
691
  ]),
683
692
  "tooltip-after": f(() => [
684
- h(t.$slots, "tooltip-after", F(M({ ...j.value })), void 0, !0)
693
+ h(t.$slots, "tooltip-after", M(P({ ...j.value })), void 0, !0)
685
694
  ]),
686
695
  _: 3
687
696
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
688
- D.value ? (u(), I(i(ke), {
697
+ U.value ? (u(), F(i(_e), {
689
698
  key: 8,
690
699
  hideDetails: "",
691
700
  config: {
@@ -702,29 +711,29 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
702
711
  }
703
712
  }, {
704
713
  content: f(() => [
705
- (u(), I(i(_e), {
714
+ (u(), F(i(Ce), {
706
715
  key: `table_${le.value}`,
707
- colNames: G.value.colNames,
708
- head: G.value.head,
709
- body: G.value.body,
710
- config: G.value.config,
716
+ colNames: D.value.colNames,
717
+ head: D.value.head,
718
+ body: D.value.body,
719
+ config: D.value.config,
711
720
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
712
721
  onClose: s[1] || (s[1] = (l) => x.value.showTable = !1)
713
722
  }, {
714
723
  th: f(({ th: l }) => [
715
- be(_(l), 1)
724
+ xe(_(l), 1)
716
725
  ]),
717
726
  td: f(({ td: l }) => [
718
- be(_(l), 1)
727
+ xe(_(l), 1)
719
728
  ]),
720
729
  _: 1
721
730
  }, 8, ["colNames", "head", "body", "config", "title"]))
722
731
  ]),
723
732
  _: 1
724
733
  }, 8, ["config"])) : y("", !0)
725
- ], 46, st));
734
+ ], 46, ut));
726
735
  }
727
- }, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-210028cb"]]);
736
+ }, Ht = /* @__PURE__ */ it(Nt, [["__scopeId", "data-v-d9d22660"]]);
728
737
  export {
729
- Wt as default
738
+ Ht as default
730
739
  };