vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4

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 +21 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
  17. package/dist/dom-to-png-DGfv21rX.js +247 -0
  18. package/dist/img-fdViJw1e.js +20 -0
  19. package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +60 -1
  23. package/dist/types/vue-data-ui.d.ts +60 -1
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-BjSUS-jY.js +0 -243
  92. package/dist/img-DWfzRJdv.js +0 -19
@@ -1,13 +1,13 @@
1
- import { defineAsyncComponent as _, computed as b, ref as v, watch as Re, shallowRef as ce, onMounted as Be, onBeforeUnmount as De, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as H, normalizeClass as ge, createBlock as O, createCommentVNode as y, renderSlot as h, createVNode as pe, createSlots as Ee, withCtx as c, normalizeProps as I, guardReactiveProps as F, createElementVNode as d, Fragment as M, renderList as R, toDisplayString as k, 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 f, X as He, s as Y, w as xe, i as C, f as $, q as Ye, r as qe, x as Je, y as Ke } from "./index-CbcpITE_.js";
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-BzQ0j5xI.js";
3
3
  import { t as Qe, u as Ze } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as me } from "./useNestedProp-y56W8I7J.js";
5
- import { u as et } from "./usePrinter-u-gQiRNz.js";
4
+ import { u as me } from "./useNestedProp-DqpZEE3h.js";
5
+ import { u as et } from "./usePrinter-CpG5jh_z.js";
6
6
  import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
8
- import at from "./Title-Dx8ctnVy.js";
8
+ import at from "./Title-CJcZXNtK.js";
9
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"], ft = ["x", "y", "width", "height", "fill", "rx"], ct = ["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 = {
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 = {
11
11
  key: 5,
12
12
  class: "vue-data-ui-watermark"
13
13
  }, Mt = {
@@ -26,12 +26,12 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
26
26
  }
27
27
  }
28
28
  },
29
- setup(q, { expose: we }) {
30
- const ke = _(() => import("./vue-ui-accordion-BkA7rtwr.js")), _e = _(() => import("./DataTable-CsoAI95B.js")), Ce = _(() => import("./PackageVersion-DCAZ9Z7V.js")), $e = _(() => import("./PenAndPaper-B9RP4oFj.js")), Te = _(() => import("./vue-ui-skeleton-miKWlCAi.js")), Ae = _(() => import("./Tooltip-COHlzpZI.js")), Le = _(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_age_pyramid: Se } = Ue(), g = q, B = b(() => !!g.dataset && g.dataset.length), m = v(Ve()), ze = v(null), U = v(!1), V = v(""), D = v(null), J = v(0), P = v(null), K = v(null), Q = v(null), Z = v(null), ee = v(0), te = v(0), e = b({
31
- get: () => se(),
29
+ setup(J, { expose: we }) {
30
+ const ke = C(() => import("./vue-ui-accordion-bpaEpjqI.js")), _e = C(() => import("./DataTable-CmbjnjRg.js")), Ce = C(() => import("./PackageVersion-OcbP0WH2.js")), $e = C(() => import("./PenAndPaper-BgPXmpGI.js")), Te = C(() => import("./vue-ui-skeleton-CavMQlAm.js")), Ae = C(() => import("./Tooltip-dXp8FaUj.js")), Le = C(() => import("./UserOptions-Cs7JW3dK.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({
31
+ get: () => ie(),
32
32
  set: (t) => t
33
- }), { userOptionsVisible: W, setUserOptionsVisibility: le, keepUserOptionState: ae } = tt({ config: e.value }), { svgRef: oe } = lt({ config: e.value.style.title });
34
- function se() {
33
+ }), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = tt({ config: e.value }), { svgRef: se } = lt({ config: e.value.style.title });
34
+ function ie() {
35
35
  const t = me({
36
36
  userConfig: g.config,
37
37
  defaultConfig: Se
@@ -44,35 +44,35 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
44
44
  } : t;
45
45
  }
46
46
  Re(() => g.config, (t) => {
47
- e.value = se(), W.value = !e.value.userOptions.showOnChartHover, ie(), ee.value += 1, te.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
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;
48
48
  }, { deep: !0 });
49
- const w = ce(null), T = ce(null);
49
+ const k = fe(null), A = fe(null);
50
50
  Be(() => {
51
- ie();
51
+ ue();
52
52
  });
53
- function ie() {
53
+ function ue() {
54
54
  if (Xe(g.dataset) && je({
55
55
  componentName: "VueUiAgePyramid",
56
56
  type: "dataset"
57
57
  }), e.value.responsive) {
58
58
  const t = Qe(() => {
59
59
  const { width: s, height: l } = Ze({
60
- chart: P.value,
61
- title: e.value.style.title.text ? K.value : null,
62
- source: Q.value,
63
- noTitle: Z.value
60
+ chart: N.value,
61
+ title: e.value.style.title.text ? Q.value : null,
62
+ source: Z.value,
63
+ noTitle: ee.value
64
64
  });
65
65
  requestAnimationFrame(() => {
66
66
  p.value.width = s, p.value.height = l;
67
67
  });
68
68
  });
69
- w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect()), w.value = new ResizeObserver(t), T.value = P.value.parentNode, w.value.observe(T.value);
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
70
  }
71
71
  }
72
72
  De(() => {
73
- w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect());
73
+ k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
74
74
  });
75
- const { isPrinting: ue, isImaging: re, generatePdf: ne, generateImage: de } = et({
75
+ const { isPrinting: re, isImaging: ne, generatePdf: de, generateImage: ve } = et({
76
76
  elementId: `vue-ui-age-pyramid_${m.value}`,
77
77
  fileName: e.value.style.title.text || "vue-ui-age-pyramid",
78
78
  options: e.value.userOptions.print
@@ -101,16 +101,16 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
101
101
  left: s + t / 2 + e.value.style.layout.centerSlit.width
102
102
  }
103
103
  };
104
- }), Ie = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), A = b(() => {
105
- const t = Fe(N.value / 5), s = [], l = [];
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 = [];
106
106
  for (let a = 0; a <= 5; a += 1) {
107
- const n = t * a, fe = t * (a - 5);
107
+ const d = t * a, w = t * (a - 5);
108
108
  s.push({
109
- value: n,
110
- x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / N.value * o.value.leftChart.width
109
+ value: d,
110
+ x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + d / R.value * o.value.leftChart.width
111
111
  }), l.push({
112
- value: Math.abs(fe),
113
- x: o.value.left + o.value.width / 2 + fe / N.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
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
114
114
  });
115
115
  }
116
116
  return {
@@ -124,19 +124,19 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
124
124
  let a;
125
125
  return t < 0, a = Math.round(t / l) * l, a;
126
126
  }
127
- const N = b(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => f(s))))), L = b(() => g.dataset.length), Me = b(() => g.dataset.map((t) => ({
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
128
  segment: t[0],
129
129
  age: t[1],
130
130
  left: {
131
131
  value: t[2],
132
- proportionToMax: t[2] / N.value
132
+ proportionToMax: t[2] / R.value
133
133
  },
134
134
  right: {
135
135
  value: t[3],
136
- proportionToMax: t[3] / N.value
136
+ proportionToMax: t[3] / R.value
137
137
  }
138
- }))), S = b(() => Me.value.map((t, s) => {
139
- const l = o.value.top + o.value.height / L.value * s, a = o.value.height / L.value - e.value.style.layout.bars.gap;
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;
140
140
  return {
141
141
  segment: t.segment,
142
142
  age: t.age,
@@ -145,7 +145,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
145
145
  y: l,
146
146
  color: e.value.style.layout.bars.left.color,
147
147
  x: o.value.leftChart.right - t.left.proportionToMax * o.value.leftChart.width,
148
- width: f(t.left.proportionToMax * o.value.leftChart.width),
148
+ width: c(t.left.proportionToMax * o.value.leftChart.width),
149
149
  height: a
150
150
  },
151
151
  right: {
@@ -153,16 +153,16 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
153
153
  y: l,
154
154
  color: e.value.style.layout.bars.right.color,
155
155
  x: o.value.rightChart.left,
156
- width: f(t.right.proportionToMax * o.value.rightChart.width),
156
+ width: c(t.right.proportionToMax * o.value.rightChart.width),
157
157
  height: a
158
158
  }
159
159
  };
160
- })), X = v(null);
160
+ })), j = v(null);
161
161
  function Pe(t, s) {
162
- D.value = t, X.value = {
162
+ E.value = t, j.value = {
163
163
  datapoint: s,
164
164
  seriesIndex: t,
165
- series: S.value,
165
+ series: z.value,
166
166
  config: e.value
167
167
  };
168
168
  const l = e.value.style.tooltip.customFormat;
@@ -174,10 +174,10 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
174
174
  left: s[2],
175
175
  right: s[3]
176
176
  },
177
- series: S.value,
177
+ series: z.value,
178
178
  config: e.value
179
179
  })))
180
- V.value = l({
180
+ W.value = l({
181
181
  seriesIndex: t,
182
182
  datapoint: {
183
183
  segment: s[0],
@@ -185,49 +185,49 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
185
185
  left: s[2],
186
186
  right: s[3]
187
187
  },
188
- series: S.value,
188
+ series: z.value,
189
189
  config: e.value
190
190
  });
191
191
  else {
192
192
  let a = "";
193
- const n = S.value[t];
194
- a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${C(
193
+ const d = z.value[t];
194
+ a += `<div><b>${d.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${$(
195
195
  e.value.style.layout.dataLabels.yAxis.formatter,
196
- f(n.age),
197
- $({ v: f(n.age) }),
196
+ c(d.age),
197
+ T({ v: c(d.age) }),
198
198
  { 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>${C(
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
200
  e.value.style.layout.dataLabels.xAxis.formatter,
201
- f(n.left.value),
202
- $({ v: f(n.left.value) }),
201
+ c(d.left.value),
202
+ T({ v: c(d.left.value) }),
203
203
  { 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>${C(
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
205
  e.value.style.layout.dataLabels.xAxis.formatter,
206
- f(n.right.value),
207
- $({ v: f(n.right.value) }),
206
+ c(d.right.value),
207
+ T({ v: c(d.right.value) }),
208
208
  { 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>${C(
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
210
  e.value.style.layout.dataLabels.xAxis.formatter,
211
- f(n.right.value) + f(n.left.value),
212
- $({ v: f(n.right.value) + f(n.left.value) }),
211
+ c(d.right.value) + c(d.left.value),
212
+ T({ v: c(d.right.value) + c(d.left.value) }),
213
213
  { datapoint: s, seriesIndex: t }
214
- )}</b></div></div>`, a += "</div>", V.value = `<div>${a}</div>`;
214
+ )}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
215
215
  }
216
- U.value = !0;
216
+ V.value = !0;
217
217
  }
218
- function ve() {
218
+ function ye(t = null) {
219
219
  Ge(() => {
220
- const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s = g.dataset.map((n) => [
221
- n[0],
222
- n[1],
223
- n[2],
224
- n[3],
225
- n[2] + n[3]
226
- ]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = Ye(l);
227
- qe({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
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), d = Ye(a);
227
+ t ? t(d) : qe({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
228
228
  });
229
229
  }
230
- const E = b(() => {
230
+ const G = b(() => {
231
231
  const t = [
232
232
  e.value.translations.year,
233
233
  e.value.translations.age,
@@ -254,59 +254,59 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
254
254
  breakpoint: e.value.table.responsiveBreakpoint
255
255
  };
256
256
  return { head: t, body: s, config: l, colNames: t };
257
- }), z = v(!1);
257
+ }), O = v(!1);
258
258
  function Ne(t) {
259
- z.value = t, J.value += 1;
259
+ O.value = t, K.value += 1;
260
260
  }
261
- function ye() {
261
+ function he() {
262
262
  x.value.showTable = !x.value.showTable;
263
263
  }
264
- function he() {
264
+ function ce() {
265
265
  x.value.showTooltip = !x.value.showTooltip;
266
266
  }
267
- const G = v(!1);
268
- function j() {
269
- G.value = !G.value;
267
+ const U = v(!1);
268
+ function H() {
269
+ U.value = !U.value;
270
270
  }
271
271
  return we({
272
- generatePdf: ne,
273
- generateCsv: ve,
274
- generateImage: de,
275
- toggleTable: ye,
276
- toggleTooltip: he,
277
- toggleAnnotator: j
272
+ generatePdf: de,
273
+ generateCsv: ye,
274
+ generateImage: ve,
275
+ toggleTable: he,
276
+ toggleTooltip: ce,
277
+ toggleAnnotator: H
278
278
  }), (t, s) => (u(), r("div", {
279
- class: ge(`vue-ui-age-pyramid ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
279
+ class: ge(`vue-ui-age-pyramid ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
280
280
  ref_key: "agePyramid",
281
- ref: P,
281
+ ref: N,
282
282
  id: `vue-ui-age-pyramid_${m.value}`,
283
- style: H(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
284
- onMouseenter: s[2] || (s[2] = () => i(le)(!0)),
285
- onMouseleave: s[3] || (s[3] = () => i(le)(!1))
283
+ style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
284
+ onMouseenter: s[2] || (s[2] = () => i(ae)(!0)),
285
+ onMouseleave: s[3] || (s[3] = () => i(ae)(!1))
286
286
  }, [
287
- e.value.userOptions.buttons.annotator ? (u(), O(i($e), {
287
+ e.value.userOptions.buttons.annotator ? (u(), I(i($e), {
288
288
  key: 0,
289
- svgRef: i(oe),
289
+ svgRef: i(se),
290
290
  backgroundColor: e.value.style.backgroundColor,
291
291
  color: e.value.style.color,
292
- active: G.value,
293
- onClose: j
292
+ active: U.value,
293
+ onClose: H
294
294
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
295
295
  Oe.value ? (u(), r("div", {
296
296
  key: 1,
297
297
  ref_key: "noTitle",
298
- ref: Z,
298
+ ref: ee,
299
299
  class: "vue-data-ui-no-title-space",
300
300
  style: "height:36px; width: 100%;background:transparent"
301
301
  }, null, 512)) : y("", !0),
302
302
  e.value.style.title.text ? (u(), r("div", {
303
303
  key: 2,
304
304
  ref_key: "chartTitle",
305
- ref: K,
305
+ ref: Q,
306
306
  style: "width:100%;background:transparent"
307
307
  }, [
308
- (u(), O(at, {
309
- key: `title_${ee.value}`,
308
+ (u(), I(at, {
309
+ key: `title_${te.value}`,
310
310
  config: {
311
311
  title: {
312
312
  cy: "pyramid-div-title",
@@ -319,14 +319,14 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
319
319
  }
320
320
  }, null, 8, ["config"]))
321
321
  ], 512)) : y("", !0),
322
- e.value.userOptions.show && B.value && (i(ae) || i(W)) ? (u(), O(i(Le), {
322
+ e.value.userOptions.show && D.value && (i(oe) || i(X)) ? (u(), I(i(Le), {
323
323
  ref_key: "details",
324
324
  ref: ze,
325
- key: `user_options_${J.value}`,
325
+ key: `user_options_${K.value}`,
326
326
  backgroundColor: e.value.style.backgroundColor,
327
327
  color: e.value.style.color,
328
- isImaging: i(re),
329
- isPrinting: i(ue),
328
+ isImaging: i(ne),
329
+ isPrinting: i(re),
330
330
  uid: m.value,
331
331
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
332
332
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -334,89 +334,90 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
334
334
  hasImg: e.value.userOptions.buttons.img,
335
335
  hasTable: e.value.userOptions.buttons.table,
336
336
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
337
- isFullscreen: z.value,
337
+ isFullscreen: O.value,
338
338
  isTooltip: x.value.showTooltip,
339
339
  titles: { ...e.value.userOptions.buttonTitles },
340
- chartElement: P.value,
340
+ chartElement: N.value,
341
341
  position: e.value.userOptions.position,
342
342
  hasAnnotator: e.value.userOptions.buttons.annotator,
343
- isAnnotation: G.value,
343
+ isAnnotation: U.value,
344
+ callbacks: e.value.userOptions.callbacks,
344
345
  onToggleFullscreen: Ne,
345
- onGeneratePdf: i(ne),
346
- onGenerateCsv: ve,
347
- onGenerateImage: i(de),
348
- onToggleTable: ye,
349
- onToggleTooltip: he,
350
- onToggleAnnotator: j,
351
- style: H({
352
- visibility: i(ae) ? i(W) ? "visible" : "hidden" : "visible"
346
+ onGeneratePdf: i(de),
347
+ onGenerateCsv: ye,
348
+ onGenerateImage: i(ve),
349
+ onToggleTable: he,
350
+ onToggleTooltip: ce,
351
+ onToggleAnnotator: H,
352
+ style: Y({
353
+ visibility: i(oe) ? i(X) ? "visible" : "hidden" : "visible"
353
354
  })
354
355
  }, Ee({ _: 2 }, [
355
356
  t.$slots.menuIcon ? {
356
357
  name: "menuIcon",
357
- fn: c(({ isOpen: l, color: a }) => [
358
- h(t.$slots, "menuIcon", I(F({ isOpen: l, color: a })), void 0, !0)
358
+ fn: f(({ isOpen: l, color: a }) => [
359
+ h(t.$slots, "menuIcon", F(M({ isOpen: l, color: a })), void 0, !0)
359
360
  ]),
360
361
  key: "0"
361
362
  } : void 0,
362
363
  t.$slots.optionTooltip ? {
363
364
  name: "optionTooltip",
364
- fn: c(() => [
365
+ fn: f(() => [
365
366
  h(t.$slots, "optionTooltip", {}, void 0, !0)
366
367
  ]),
367
368
  key: "1"
368
369
  } : void 0,
369
370
  t.$slots.optionPdf ? {
370
371
  name: "optionPdf",
371
- fn: c(() => [
372
+ fn: f(() => [
372
373
  h(t.$slots, "optionPdf", {}, void 0, !0)
373
374
  ]),
374
375
  key: "2"
375
376
  } : void 0,
376
377
  t.$slots.optionCsv ? {
377
378
  name: "optionCsv",
378
- fn: c(() => [
379
+ fn: f(() => [
379
380
  h(t.$slots, "optionCsv", {}, void 0, !0)
380
381
  ]),
381
382
  key: "3"
382
383
  } : void 0,
383
384
  t.$slots.optionImg ? {
384
385
  name: "optionImg",
385
- fn: c(() => [
386
+ fn: f(() => [
386
387
  h(t.$slots, "optionImg", {}, void 0, !0)
387
388
  ]),
388
389
  key: "4"
389
390
  } : void 0,
390
391
  t.$slots.optionTable ? {
391
392
  name: "optionTable",
392
- fn: c(() => [
393
+ fn: f(() => [
393
394
  h(t.$slots, "optionTable", {}, void 0, !0)
394
395
  ]),
395
396
  key: "5"
396
397
  } : void 0,
397
398
  t.$slots.optionFullscreen ? {
398
399
  name: "optionFullscreen",
399
- fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
400
- h(t.$slots, "optionFullscreen", I(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
400
+ fn: f(({ toggleFullscreen: l, isFullscreen: a }) => [
401
+ h(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
401
402
  ]),
402
403
  key: "6"
403
404
  } : void 0,
404
405
  t.$slots.optionAnnotator ? {
405
406
  name: "optionAnnotator",
406
- fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
407
- h(t.$slots, "optionAnnotator", I(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
407
+ fn: f(({ toggleAnnotator: l, isAnnotator: a }) => [
408
+ h(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
408
409
  ]),
409
410
  key: "7"
410
411
  } : void 0
411
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
412
- B.value ? (u(), r("svg", {
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", {
413
414
  key: 4,
414
415
  ref_key: "svgRef",
415
- ref: oe,
416
+ ref: se,
416
417
  xmlns: i(He),
417
- class: ge({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
418
+ class: ge({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
418
419
  viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
419
- style: H(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
420
+ style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
420
421
  }, [
421
422
  pe(i(Ce)),
422
423
  t.$slots["chart-background"] ? (u(), r("foreignObject", {
@@ -431,58 +432,58 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
431
432
  }, [
432
433
  h(t.$slots, "chart-background", {}, void 0, !0)
433
434
  ], 8, ut)) : y("", !0),
434
- d("defs", null, [
435
- d("linearGradient", {
435
+ n("defs", null, [
436
+ n("linearGradient", {
436
437
  id: `age_pyramid_left_${m.value}`,
437
438
  x1: "0%",
438
439
  y1: "0%",
439
440
  x2: "100%",
440
441
  y2: "0%"
441
442
  }, [
442
- d("stop", {
443
+ n("stop", {
443
444
  offset: "0%",
444
445
  "stop-color": e.value.style.layout.bars.left.color
445
446
  }, null, 8, nt),
446
- d("stop", {
447
+ n("stop", {
447
448
  offset: "100%",
448
- "stop-color": i(Y)(i(xe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
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)
449
450
  }, null, 8, dt)
450
451
  ], 8, rt),
451
- d("linearGradient", {
452
+ n("linearGradient", {
452
453
  id: `age_pyramid_right_${m.value}`,
453
454
  x1: "0%",
454
455
  y1: "0%",
455
456
  x2: "100%",
456
457
  y2: "0%"
457
458
  }, [
458
- d("stop", {
459
+ n("stop", {
459
460
  offset: "0%",
460
- "stop-color": i(Y)(i(xe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
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)
461
462
  }, null, 8, yt),
462
- d("stop", {
463
+ n("stop", {
463
464
  offset: "100%",
464
465
  "stop-color": e.value.style.layout.bars.right.color
465
466
  }, null, 8, ht)
466
467
  ], 8, vt)
467
468
  ]),
468
- (u(!0), r(M, null, R(S.value, (l, a) => (u(), r("g", null, [
469
- d("rect", {
469
+ (u(!0), r(P, null, B(z.value, (l, a) => (u(), r("g", null, [
470
+ n("rect", {
470
471
  x: l.left.x,
471
472
  y: l.left.y,
472
- width: i(f)(l.left.width <= 0 ? 1e-4 : l.left.width),
473
+ width: i(c)(l.left.width <= 0 ? 1e-4 : l.left.width),
473
474
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
474
475
  fill: e.value.style.layout.bars.gradient.underlayer,
475
476
  rx: e.value.style.layout.bars.borderRadius
476
- }, null, 8, ft),
477
- d("rect", {
477
+ }, null, 8, ct),
478
+ n("rect", {
478
479
  x: l.left.x,
479
480
  y: l.left.y,
480
481
  width: l.left.width <= 0 ? 1e-4 : l.left.width,
481
482
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
482
483
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : l.left.color,
483
484
  rx: e.value.style.layout.bars.borderRadius
484
- }, null, 8, ct),
485
- d("rect", {
485
+ }, null, 8, ft),
486
+ n("rect", {
486
487
  x: l.right.x,
487
488
  y: l.right.y,
488
489
  width: l.right.width <= 0 ? 1e-4 : l.right.width,
@@ -490,7 +491,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
490
491
  fill: e.value.style.layout.bars.gradient.underlayer,
491
492
  rx: e.value.style.layout.bars.borderRadius
492
493
  }, null, 8, gt),
493
- d("rect", {
494
+ n("rect", {
494
495
  x: l.right.x,
495
496
  y: l.right.y,
496
497
  width: l.right.width <= 0 ? 1e-4 : l.right.width,
@@ -499,57 +500,57 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
499
500
  rx: e.value.style.layout.bars.borderRadius
500
501
  }, null, 8, pt)
501
502
  ]))), 256)),
502
- d("g", null, [
503
+ n("g", null, [
503
504
  e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", bt, [
504
- d("text", {
505
+ n("text", {
505
506
  x: o.value.left,
506
507
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
507
508
  fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
508
509
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
509
510
  "text-anchor": "start",
510
511
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
511
- }, k(e.value.translations.female), 9, xt),
512
- d("text", {
512
+ }, _(e.value.translations.female), 9, xt),
513
+ n("text", {
513
514
  x: o.value.right,
514
515
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
515
516
  fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
516
517
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
517
518
  "text-anchor": "end",
518
519
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
519
- }, k(e.value.translations.male), 9, mt)
520
+ }, _(e.value.translations.male), 9, mt)
520
521
  ])) : y("", !0),
521
522
  e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", wt, [
522
- (u(!0), r(M, null, R(Ie.value, (l, a) => (u(), r(M, null, [
523
+ (u(!0), r(P, null, B(Ie.value, (l, a) => (u(), r(P, null, [
523
524
  a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
524
525
  key: 0,
525
526
  x: o.value.centerX,
526
- y: o.value.top + o.value.height / L.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
527
+ y: o.value.top + o.value.height / S.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
527
528
  "text-anchor": "middle",
528
529
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
529
530
  fill: e.value.style.layout.dataLabels.yAxis.color,
530
531
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
531
- }, k(i(C)(
532
+ }, _(i($)(
532
533
  e.value.style.layout.dataLabels.yAxis.formatter,
533
534
  l,
534
- i($)({ v: l }),
535
+ i(T)({ v: l }),
535
536
  { datapoint: l, seriesIndex: a }
536
537
  )), 9, kt)) : y("", !0)
537
538
  ], 64))), 256))
538
539
  ])) : y("", !0),
539
540
  e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", _t, [
540
541
  e.value.style.layout.grid.show ? (u(), r("g", Ct, [
541
- d("line", {
542
- x1: A.value.right[0].x,
543
- x2: A.value.right.at(-1).x,
542
+ n("line", {
543
+ x1: L.value.right[0].x,
544
+ x2: L.value.right.at(-1).x,
544
545
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
545
546
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
546
547
  stroke: e.value.style.layout.grid.stroke,
547
548
  "stroke-width": e.value.style.layout.grid.strokeWidth,
548
549
  "stroke-linecap": "round"
549
550
  }, null, 8, $t),
550
- d("line", {
551
- x1: A.value.left[0].x,
552
- x2: A.value.left.at(-1).x,
551
+ n("line", {
552
+ x1: L.value.left[0].x,
553
+ x2: L.value.left.at(-1).x,
553
554
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
554
555
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
555
556
  stroke: e.value.style.layout.grid.stroke,
@@ -557,7 +558,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
557
558
  "stroke-linecap": "round"
558
559
  }, null, 8, Tt)
559
560
  ])) : y("", !0),
560
- (u(!0), r(M, null, R(A.value.right, (l, a) => (u(), r("g", null, [
561
+ (u(!0), r(P, null, B(L.value.right, (l, a) => (u(), r("g", null, [
561
562
  e.value.style.layout.grid.show ? (u(), r("line", {
562
563
  key: 0,
563
564
  x1: l.x,
@@ -568,23 +569,23 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
568
569
  "stroke-width": e.value.style.layout.grid.strokeWidth,
569
570
  "stroke-linecap": "round"
570
571
  }, null, 8, At)) : y("", !0),
571
- d("text", {
572
+ n("text", {
572
573
  x: l.x,
573
574
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
574
575
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
575
576
  fill: e.value.style.layout.dataLabels.xAxis.color,
576
577
  "text-anchor": "middle",
577
578
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
578
- }, k(i(C)(
579
+ }, _(i($)(
579
580
  e.value.style.layout.dataLabels.xAxis.formatter,
580
581
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
581
- i($)({
582
+ i(T)({
582
583
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
583
584
  }),
584
585
  { datapoint: l, seriesIndex: a }
585
586
  )), 9, Lt)
586
587
  ]))), 256)),
587
- (u(!0), r(M, null, R(A.value.left, (l, a) => (u(), r("g", null, [
588
+ (u(!0), r(P, null, B(L.value.left, (l, a) => (u(), r("g", null, [
588
589
  e.value.style.layout.grid.show ? (u(), r("line", {
589
590
  key: 0,
590
591
  x1: l.x,
@@ -595,51 +596,51 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
595
596
  "stroke-width": e.value.style.layout.grid.strokeWidth,
596
597
  "stroke-linecap": "round"
597
598
  }, null, 8, St)) : y("", !0),
598
- d("text", {
599
+ n("text", {
599
600
  x: l.x,
600
601
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
601
602
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
602
603
  fill: e.value.style.layout.dataLabels.xAxis.color,
603
604
  "text-anchor": "middle",
604
605
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
605
- }, k(i(C)(
606
+ }, _(i($)(
606
607
  e.value.style.layout.dataLabels.xAxis.formatter,
607
608
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
608
- i($)({
609
+ i(T)({
609
610
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
610
611
  }),
611
612
  { datapoint: l, seriesIndex: a }
612
613
  )), 9, zt)
613
614
  ]))), 256)),
614
- d("text", {
615
+ n("text", {
615
616
  x: o.value.right,
616
617
  y: p.value.height,
617
618
  "text-anchor": "end",
618
619
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
619
620
  fill: e.value.style.layout.dataLabels.xAxis.color,
620
621
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
621
- }, k(e.value.style.layout.dataLabels.xAxis.translation), 9, Ot)
622
+ }, _(e.value.style.layout.dataLabels.xAxis.translation), 9, Ot)
622
623
  ])) : y("", !0)
623
624
  ]),
624
- (u(!0), r(M, null, R(q.dataset, (l, a) => (u(), r("g", null, [
625
- d("rect", {
625
+ (u(!0), r(P, null, B(J.dataset, (l, a) => (u(), r("g", null, [
626
+ n("rect", {
626
627
  x: o.value.left,
627
- y: o.value.top + o.value.height / L.value * a - e.value.style.layout.bars.gap / 2,
628
+ y: o.value.top + o.value.height / S.value * a - e.value.style.layout.bars.gap / 2,
628
629
  width: o.value.width <= 0 ? 1e-4 : o.value.width,
629
- height: o.value.height / L.value <= 0 ? 1e-4 : o.value.height / L.value,
630
- fill: D.value !== null && D.value === a ? i(Y)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
631
- onMouseover: (n) => Pe(a, l),
632
- onMouseleave: s[0] || (s[0] = (n) => {
633
- D.value = null, U.value = !1;
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),
633
+ onMouseleave: s[0] || (s[0] = (d) => {
634
+ E.value = null, V.value = !1;
634
635
  })
635
636
  }, null, 40, It)
636
637
  ]))), 256)),
637
638
  h(t.$slots, "svg", { svg: p.value }, void 0, !0)
638
639
  ], 14, it)) : y("", !0),
639
640
  t.$slots.watermark ? (u(), r("div", Ft, [
640
- h(t.$slots, "watermark", I(F({ isPrinting: i(ue) || i(re) })), void 0, !0)
641
+ h(t.$slots, "watermark", F(M({ isPrinting: i(re) || i(ne) })), void 0, !0)
641
642
  ])) : y("", !0),
642
- B.value ? y("", !0) : (u(), O(i(Te), {
643
+ D.value ? y("", !0) : (u(), I(i(Te), {
643
644
  key: 6,
644
645
  config: {
645
646
  type: "pyramid",
@@ -651,17 +652,17 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
651
652
  }
652
653
  }
653
654
  }, null, 8, ["config"])),
654
- h(t.$slots, "legend", { legend: S.value }, void 0, !0),
655
+ h(t.$slots, "legend", { legend: z.value }, void 0, !0),
655
656
  t.$slots.source ? (u(), r("div", {
656
657
  key: 7,
657
658
  ref_key: "source",
658
- ref: Q,
659
+ ref: Z,
659
660
  dir: "auto"
660
661
  }, [
661
662
  h(t.$slots, "source", {}, void 0, !0)
662
663
  ], 512)) : y("", !0),
663
664
  pe(i(Ae), {
664
- show: x.value.showTooltip && U.value,
665
+ show: x.value.showTooltip && V.value,
665
666
  backgroundColor: e.value.style.tooltip.backgroundColor,
666
667
  color: e.value.style.tooltip.color,
667
668
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -671,20 +672,20 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
671
672
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
672
673
  position: e.value.style.tooltip.position,
673
674
  offsetY: e.value.style.tooltip.offsetY,
674
- parent: P.value,
675
- content: V.value,
676
- isFullscreen: z.value,
675
+ parent: N.value,
676
+ content: W.value,
677
+ isFullscreen: O.value,
677
678
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
678
679
  }, {
679
- "tooltip-before": c(() => [
680
- h(t.$slots, "tooltip-before", I(F({ ...X.value })), void 0, !0)
680
+ "tooltip-before": f(() => [
681
+ h(t.$slots, "tooltip-before", F(M({ ...j.value })), void 0, !0)
681
682
  ]),
682
- "tooltip-after": c(() => [
683
- h(t.$slots, "tooltip-after", I(F({ ...X.value })), void 0, !0)
683
+ "tooltip-after": f(() => [
684
+ h(t.$slots, "tooltip-after", F(M({ ...j.value })), void 0, !0)
684
685
  ]),
685
686
  _: 3
686
687
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
687
- B.value ? (u(), O(i(ke), {
688
+ D.value ? (u(), I(i(ke), {
688
689
  key: 8,
689
690
  hideDetails: "",
690
691
  config: {
@@ -700,21 +701,21 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
700
701
  }
701
702
  }
702
703
  }, {
703
- content: c(() => [
704
- (u(), O(i(_e), {
705
- key: `table_${te.value}`,
706
- colNames: E.value.colNames,
707
- head: E.value.head,
708
- body: E.value.body,
709
- config: E.value.config,
704
+ content: f(() => [
705
+ (u(), I(i(_e), {
706
+ key: `table_${le.value}`,
707
+ colNames: G.value.colNames,
708
+ head: G.value.head,
709
+ body: G.value.body,
710
+ config: G.value.config,
710
711
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
711
712
  onClose: s[1] || (s[1] = (l) => x.value.showTable = !1)
712
713
  }, {
713
- th: c(({ th: l }) => [
714
- be(k(l), 1)
714
+ th: f(({ th: l }) => [
715
+ be(_(l), 1)
715
716
  ]),
716
- td: c(({ td: l }) => [
717
- be(k(l), 1)
717
+ td: f(({ td: l }) => [
718
+ be(_(l), 1)
718
719
  ]),
719
720
  _: 1
720
721
  }, 8, ["colNames", "head", "body", "config", "title"]))
@@ -723,7 +724,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
723
724
  }, 8, ["config"])) : y("", !0)
724
725
  ], 46, st));
725
726
  }
726
- }, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-e6b32d38"]]);
727
+ }, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-210028cb"]]);
727
728
  export {
728
729
  Wt as default
729
730
  };