vue-data-ui 2.12.6 → 2.12.7-beta.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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,22 +1,16 @@
1
- import { computed as b, ref as v, watch as Ae, onMounted as Le, createElementBlock as r, openBlock as i, unref as u, normalizeStyle as W, normalizeClass as he, createBlock as L, createCommentVNode as y, renderSlot as h, createVNode as fe, createSlots as Se, withCtx as c, normalizeProps as S, guardReactiveProps as z, createElementVNode as d, Fragment as O, renderList as M, toDisplayString as w, createTextVNode as ce, nextTick as ze } from "vue";
2
- import { u as Oe, c as Ie, a as Fe, o as Me, e as Pe, v as f, X as Ne, s as X, w as ge, i as k, f as _, q as Re, r as De, x as Ge, y as Ue } from "./index-BFzQMJda.js";
3
- import { t as Be, u as Ee } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as Ve } from "./Title-CzaCeCOm.js";
5
- import { u as We, U as Xe } from "./usePrinter-C5bLp34h.js";
6
- import { _ as je } from "./Tooltip-CWmRmhJr.js";
7
- import { D as He } from "./DataTable-Rajdtaf6.js";
8
- import Ye from "./vue-ui-skeleton-B_YI7Yuc.js";
9
- import qe from "./vue-ui-accordion-BUz4JIIX.js";
10
- import { u as pe } from "./useNestedProp-v7KPpwuP.js";
11
- import { _ as Je } from "./PackageVersion-BjrblLPQ.js";
12
- import { _ as Ke } from "./PenAndPaper-BkP3J-Ft.js";
13
- import { u as Qe } from "./useUserOptionState-BIvW1Kz7.js";
14
- import { u as Ze } from "./useChartAccessibility-BWojgys7.js";
15
- import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"], ot = ["id"], st = ["stop-color"], it = ["stop-color"], ut = ["id"], rt = ["stop-color"], nt = ["stop-color"], dt = ["x", "y", "width", "height", "fill", "rx"], vt = ["x", "y", "width", "height", "fill", "rx"], yt = ["x", "y", "width", "height", "fill", "rx"], ht = ["x", "y", "width", "height", "fill", "rx"], ft = { key: 0 }, ct = ["x", "y", "fill", "font-size", "font-weight"], gt = ["x", "y", "fill", "font-size", "font-weight"], pt = { key: 1 }, bt = ["x", "y", "font-size", "fill", "font-weight"], xt = { key: 2 }, mt = { key: 0 }, wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x", "y", "font-size", "fill", "font-weight"], At = ["x", "y", "font-size", "fill", "font-weight"], Lt = ["x", "y", "width", "height", "fill", "onMouseover"], St = {
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-BiHmNd1-.js";
3
+ import { t as Qe, u as Ze } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as me } from "./useNestedProp-tRqS0ZAM.js";
5
+ import { u as et } from "./usePrinter-CRCbl1WG.js";
6
+ import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import at from "./Title-B5qqUI3M.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"], 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 = {
17
11
  key: 5,
18
12
  class: "vue-data-ui-watermark"
19
- }, zt = {
13
+ }, Mt = {
20
14
  __name: "vue-ui-age-pyramid",
21
15
  props: {
22
16
  config: {
@@ -32,54 +26,57 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
32
26
  }
33
27
  }
34
28
  },
35
- setup(j, { expose: be }) {
36
- const { vue_ui_age_pyramid: xe } = Oe(), g = j, P = b(() => !!g.dataset && g.dataset.length), m = v(Ie()), me = v(null), G = v(!1), U = v(""), N = v(null), H = v(0), I = v(null), Y = v(null), q = v(null), J = v(null), K = v(0), Q = v(0), e = b({
37
- get: () => le(),
29
+ setup(q, { expose: we }) {
30
+ const ke = _(() => import("./vue-ui-accordion-CmCs2yR2.js")), _e = _(() => import("./DataTable-Cv9CIz-a.js")), Ce = _(() => import("./PackageVersion-CLY-udAA.js")), $e = _(() => import("./PenAndPaper-B9na2mbr.js")), Te = _(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Ae = _(() => import("./Tooltip-C9rxJ-Ru.js")), Le = _(() => import("./UserOptions-Ddy6CuLC.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(),
38
32
  set: (t) => t
39
- }), { userOptionsVisible: B, setUserOptionsVisibility: Z, keepUserOptionState: ee } = Qe({ config: e.value }), { svgRef: te } = Ze({ config: e.value.style.title });
40
- function le() {
41
- const t = pe({
33
+ }), { userOptionsVisible: W, setUserOptionsVisibility: le, keepUserOptionState: ae } = tt({ config: e.value }), { svgRef: oe } = lt({ config: e.value.style.title });
34
+ function se() {
35
+ const t = me({
42
36
  userConfig: g.config,
43
- defaultConfig: xe
37
+ defaultConfig: Se
44
38
  });
45
39
  return t.theme ? {
46
- ...pe({
47
- userConfig: Fe.vue_ui_age_pyramid[t.theme] || g.config,
40
+ ...me({
41
+ userConfig: We.vue_ui_age_pyramid[t.theme] || g.config,
48
42
  defaultConfig: t
49
43
  })
50
44
  } : t;
51
45
  }
52
- Ae(() => g.config, (t) => {
53
- e.value = le(), B.value = !e.value.userOptions.showOnChartHover, oe(), K.value += 1, Q.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
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;
54
48
  }, { deep: !0 });
55
- const ae = v(null);
56
- Le(() => {
57
- oe();
49
+ const w = ce(null), T = ce(null);
50
+ Be(() => {
51
+ ie();
58
52
  });
59
- function oe() {
60
- if (Me(g.dataset) && Pe({
53
+ function ie() {
54
+ if (Xe(g.dataset) && je({
61
55
  componentName: "VueUiAgePyramid",
62
56
  type: "dataset"
63
57
  }), e.value.responsive) {
64
- const t = Be(() => {
65
- const { width: s, height: l } = Ee({
66
- chart: I.value,
67
- title: e.value.style.title.text ? Y.value : null,
68
- source: q.value,
69
- noTitle: J.value
58
+ const t = Qe(() => {
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
70
64
  });
71
65
  requestAnimationFrame(() => {
72
66
  p.value.width = s, p.value.height = l;
73
67
  });
74
68
  });
75
- ae.value = new ResizeObserver(t), ae.value.observe(I.value.parentNode);
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);
76
70
  }
77
71
  }
78
- const { isPrinting: se, isImaging: ie, generatePdf: ue, generateImage: re } = We({
72
+ De(() => {
73
+ w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect());
74
+ });
75
+ const { isPrinting: ue, isImaging: re, generatePdf: ne, generateImage: de } = et({
79
76
  elementId: `vue-ui-age-pyramid_${m.value}`,
80
77
  fileName: e.value.style.title.text || "vue-ui-age-pyramid",
81
78
  options: e.value.userOptions.print
82
- }), we = b(() => e.value.userOptions.show && !e.value.style.title.text), x = v({
79
+ }), Oe = b(() => e.value.userOptions.show && !e.value.style.title.text), x = v({
83
80
  showTable: e.value.table.show,
84
81
  showTooltip: e.value.style.tooltip.show
85
82
  }), p = v({
@@ -104,16 +101,16 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
104
101
  left: s + t / 2 + e.value.style.layout.centerSlit.width
105
102
  }
106
103
  };
107
- }), ke = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), C = b(() => {
108
- const t = _e(F.value / 5), s = [], l = [];
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 = [];
109
106
  for (let a = 0; a <= 5; a += 1) {
110
- const n = t * a, ye = t * (a - 5);
107
+ const n = t * a, fe = t * (a - 5);
111
108
  s.push({
112
109
  value: n,
113
- x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / F.value * o.value.leftChart.width
110
+ x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / N.value * o.value.leftChart.width
114
111
  }), l.push({
115
- value: Math.abs(ye),
116
- x: o.value.left + o.value.width / 2 + ye / F.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
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
117
114
  });
118
115
  }
119
116
  return {
@@ -121,25 +118,25 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
121
118
  left: l
122
119
  };
123
120
  });
124
- function _e(t) {
121
+ function Fe(t) {
125
122
  if (t === 0) return 0;
126
123
  const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
127
124
  let a;
128
125
  return t < 0, a = Math.round(t / l) * l, a;
129
126
  }
130
- const F = b(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => f(s))))), $ = b(() => g.dataset.length), Ce = b(() => g.dataset.map((t) => ({
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) => ({
131
128
  segment: t[0],
132
129
  age: t[1],
133
130
  left: {
134
131
  value: t[2],
135
- proportionToMax: t[2] / F.value
132
+ proportionToMax: t[2] / N.value
136
133
  },
137
134
  right: {
138
135
  value: t[3],
139
- proportionToMax: t[3] / F.value
136
+ proportionToMax: t[3] / N.value
140
137
  }
141
- }))), T = b(() => Ce.value.map((t, s) => {
142
- const l = o.value.top + o.value.height / $.value * s, a = o.value.height / $.value - e.value.style.layout.bars.gap;
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;
143
140
  return {
144
141
  segment: t.segment,
145
142
  age: t.age,
@@ -160,16 +157,16 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
160
157
  height: a
161
158
  }
162
159
  };
163
- })), E = v(null);
164
- function $e(t, s) {
165
- N.value = t, E.value = {
160
+ })), X = v(null);
161
+ function Pe(t, s) {
162
+ D.value = t, X.value = {
166
163
  datapoint: s,
167
164
  seriesIndex: t,
168
- series: T.value,
165
+ series: S.value,
169
166
  config: e.value
170
167
  };
171
168
  const l = e.value.style.tooltip.customFormat;
172
- if (Ge(l) && Ue(() => l({
169
+ if (Je(l) && Ke(() => l({
173
170
  seriesIndex: t,
174
171
  datapoint: {
175
172
  segment: s[0],
@@ -177,10 +174,10 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
177
174
  left: s[2],
178
175
  right: s[3]
179
176
  },
180
- series: T.value,
177
+ series: S.value,
181
178
  config: e.value
182
179
  })))
183
- U.value = l({
180
+ V.value = l({
184
181
  seriesIndex: t,
185
182
  datapoint: {
186
183
  segment: s[0],
@@ -188,49 +185,49 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
188
185
  left: s[2],
189
186
  right: s[3]
190
187
  },
191
- series: T.value,
188
+ series: S.value,
192
189
  config: e.value
193
190
  });
194
191
  else {
195
192
  let a = "";
196
- const n = T.value[t];
197
- a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${k(
193
+ const n = S.value[t];
194
+ a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${C(
198
195
  e.value.style.layout.dataLabels.yAxis.formatter,
199
196
  f(n.age),
200
- _({ v: f(n.age) }),
197
+ $({ v: f(n.age) }),
201
198
  { datapoint: s, seriesIndex: t }
202
- )}</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>${k(
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(
203
200
  e.value.style.layout.dataLabels.xAxis.formatter,
204
201
  f(n.left.value),
205
- _({ v: f(n.left.value) }),
202
+ $({ v: f(n.left.value) }),
206
203
  { datapoint: s, seriesIndex: t }
207
- )}</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>${k(
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(
208
205
  e.value.style.layout.dataLabels.xAxis.formatter,
209
206
  f(n.right.value),
210
- _({ v: f(n.right.value) }),
207
+ $({ v: f(n.right.value) }),
211
208
  { datapoint: s, seriesIndex: t }
212
- )}</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>${k(
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(
213
210
  e.value.style.layout.dataLabels.xAxis.formatter,
214
211
  f(n.right.value) + f(n.left.value),
215
- _({ v: f(n.right.value) + f(n.left.value) }),
212
+ $({ v: f(n.right.value) + f(n.left.value) }),
216
213
  { datapoint: s, seriesIndex: t }
217
- )}</b></div></div>`, a += "</div>", U.value = `<div>${a}</div>`;
214
+ )}</b></div></div>`, a += "</div>", V.value = `<div>${a}</div>`;
218
215
  }
219
- G.value = !0;
216
+ U.value = !0;
220
217
  }
221
- function ne() {
222
- ze(() => {
218
+ function ve() {
219
+ Ge(() => {
223
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) => [
224
221
  n[0],
225
222
  n[1],
226
223
  n[2],
227
224
  n[3],
228
225
  n[2] + n[3]
229
- ]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = Re(l);
230
- De({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
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" });
231
228
  });
232
229
  }
233
- const R = b(() => {
230
+ const E = b(() => {
234
231
  const t = [
235
232
  e.value.translations.year,
236
233
  e.value.translations.age,
@@ -257,59 +254,59 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
257
254
  breakpoint: e.value.table.responsiveBreakpoint
258
255
  };
259
256
  return { head: t, body: s, config: l, colNames: t };
260
- }), A = v(!1);
261
- function Te(t) {
262
- A.value = t, H.value += 1;
257
+ }), z = v(!1);
258
+ function Ne(t) {
259
+ z.value = t, J.value += 1;
263
260
  }
264
- function de() {
261
+ function ye() {
265
262
  x.value.showTable = !x.value.showTable;
266
263
  }
267
- function ve() {
264
+ function he() {
268
265
  x.value.showTooltip = !x.value.showTooltip;
269
266
  }
270
- const D = v(!1);
271
- function V() {
272
- D.value = !D.value;
267
+ const G = v(!1);
268
+ function j() {
269
+ G.value = !G.value;
273
270
  }
274
- return be({
275
- generatePdf: ue,
276
- generateCsv: ne,
277
- generateImage: re,
278
- toggleTable: de,
279
- toggleTooltip: ve,
280
- toggleAnnotator: V
281
- }), (t, s) => (i(), r("div", {
282
- class: he(`vue-ui-age-pyramid ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
271
+ return we({
272
+ generatePdf: ne,
273
+ generateCsv: ve,
274
+ generateImage: de,
275
+ toggleTable: ye,
276
+ toggleTooltip: he,
277
+ toggleAnnotator: j
278
+ }), (t, s) => (u(), r("div", {
279
+ class: ge(`vue-ui-age-pyramid ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
283
280
  ref_key: "agePyramid",
284
- ref: I,
281
+ ref: P,
285
282
  id: `vue-ui-age-pyramid_${m.value}`,
286
- style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
287
- onMouseenter: s[2] || (s[2] = () => u(Z)(!0)),
288
- onMouseleave: s[3] || (s[3] = () => u(Z)(!1))
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))
289
286
  }, [
290
- e.value.userOptions.buttons.annotator ? (i(), L(Ke, {
287
+ e.value.userOptions.buttons.annotator ? (u(), O(i($e), {
291
288
  key: 0,
292
- svgRef: u(te),
289
+ svgRef: i(oe),
293
290
  backgroundColor: e.value.style.backgroundColor,
294
291
  color: e.value.style.color,
295
- active: D.value,
296
- onClose: V
292
+ active: G.value,
293
+ onClose: j
297
294
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
298
- we.value ? (i(), r("div", {
295
+ Oe.value ? (u(), r("div", {
299
296
  key: 1,
300
297
  ref_key: "noTitle",
301
- ref: J,
298
+ ref: Z,
302
299
  class: "vue-data-ui-no-title-space",
303
300
  style: "height:36px; width: 100%;background:transparent"
304
301
  }, null, 512)) : y("", !0),
305
- e.value.style.title.text ? (i(), r("div", {
302
+ e.value.style.title.text ? (u(), r("div", {
306
303
  key: 2,
307
304
  ref_key: "chartTitle",
308
- ref: Y,
305
+ ref: K,
309
306
  style: "width:100%;background:transparent"
310
307
  }, [
311
- (i(), L(Ve, {
312
- key: `title_${K.value}`,
308
+ (u(), O(at, {
309
+ key: `title_${ee.value}`,
313
310
  config: {
314
311
  title: {
315
312
  cy: "pyramid-div-title",
@@ -322,14 +319,14 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
322
319
  }
323
320
  }, null, 8, ["config"]))
324
321
  ], 512)) : y("", !0),
325
- e.value.userOptions.show && P.value && (u(ee) || u(B)) ? (i(), L(Xe, {
322
+ e.value.userOptions.show && B.value && (i(ae) || i(W)) ? (u(), O(i(Le), {
326
323
  ref_key: "details",
327
- ref: me,
328
- key: `user_options_${H.value}`,
324
+ ref: ze,
325
+ key: `user_options_${J.value}`,
329
326
  backgroundColor: e.value.style.backgroundColor,
330
327
  color: e.value.style.color,
331
- isImaging: u(ie),
332
- isPrinting: u(se),
328
+ isImaging: i(re),
329
+ isPrinting: i(ue),
333
330
  uid: m.value,
334
331
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
335
332
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -337,28 +334,28 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
337
334
  hasImg: e.value.userOptions.buttons.img,
338
335
  hasTable: e.value.userOptions.buttons.table,
339
336
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
340
- isFullscreen: A.value,
337
+ isFullscreen: z.value,
341
338
  isTooltip: x.value.showTooltip,
342
339
  titles: { ...e.value.userOptions.buttonTitles },
343
- chartElement: I.value,
340
+ chartElement: P.value,
344
341
  position: e.value.userOptions.position,
345
342
  hasAnnotator: e.value.userOptions.buttons.annotator,
346
- isAnnotation: D.value,
347
- onToggleFullscreen: Te,
348
- onGeneratePdf: u(ue),
349
- onGenerateCsv: ne,
350
- onGenerateImage: u(re),
351
- onToggleTable: de,
352
- onToggleTooltip: ve,
353
- onToggleAnnotator: V,
354
- style: W({
355
- visibility: u(ee) ? u(B) ? "visible" : "hidden" : "visible"
343
+ isAnnotation: G.value,
344
+ 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"
356
353
  })
357
- }, Se({ _: 2 }, [
354
+ }, Ee({ _: 2 }, [
358
355
  t.$slots.menuIcon ? {
359
356
  name: "menuIcon",
360
357
  fn: c(({ isOpen: l, color: a }) => [
361
- h(t.$slots, "menuIcon", S(z({ isOpen: l, color: a })), void 0, !0)
358
+ h(t.$slots, "menuIcon", I(F({ isOpen: l, color: a })), void 0, !0)
362
359
  ]),
363
360
  key: "0"
364
361
  } : void 0,
@@ -400,40 +397,40 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
400
397
  t.$slots.optionFullscreen ? {
401
398
  name: "optionFullscreen",
402
399
  fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
403
- h(t.$slots, "optionFullscreen", S(z({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
400
+ h(t.$slots, "optionFullscreen", I(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
404
401
  ]),
405
402
  key: "6"
406
403
  } : void 0,
407
404
  t.$slots.optionAnnotator ? {
408
405
  name: "optionAnnotator",
409
406
  fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
410
- h(t.$slots, "optionAnnotator", S(z({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
407
+ h(t.$slots, "optionAnnotator", I(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
411
408
  ]),
412
409
  key: "7"
413
410
  } : void 0
414
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),
415
- P.value ? (i(), r("svg", {
412
+ B.value ? (u(), r("svg", {
416
413
  key: 4,
417
414
  ref_key: "svgRef",
418
- ref: te,
419
- xmlns: u(Ne),
420
- class: he({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
415
+ ref: oe,
416
+ xmlns: i(He),
417
+ class: ge({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
421
418
  viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
422
- style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
419
+ style: H(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
423
420
  }, [
424
- fe(Je),
425
- t.$slots["chart-background"] ? (i(), r("foreignObject", {
421
+ pe(i(Ce)),
422
+ t.$slots["chart-background"] ? (u(), r("foreignObject", {
426
423
  key: 0,
427
424
  x: o.value.left,
428
425
  y: o.value.top,
429
- width: o.value.width,
430
- height: o.value.height,
426
+ width: Math.max(0.1, o.value.width),
427
+ height: Math.max(0.1, o.value.height),
431
428
  style: {
432
429
  pointerEvents: "none"
433
430
  }
434
431
  }, [
435
432
  h(t.$slots, "chart-background", {}, void 0, !0)
436
- ], 8, at)) : y("", !0),
433
+ ], 8, ut)) : y("", !0),
437
434
  d("defs", null, [
438
435
  d("linearGradient", {
439
436
  id: `age_pyramid_left_${m.value}`,
@@ -445,12 +442,12 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
445
442
  d("stop", {
446
443
  offset: "0%",
447
444
  "stop-color": e.value.style.layout.bars.left.color
448
- }, null, 8, st),
445
+ }, null, 8, nt),
449
446
  d("stop", {
450
447
  offset: "100%",
451
- "stop-color": u(X)(u(ge)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
452
- }, null, 8, it)
453
- ], 8, ot),
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
+ }, null, 8, dt)
450
+ ], 8, rt),
454
451
  d("linearGradient", {
455
452
  id: `age_pyramid_right_${m.value}`,
456
453
  x1: "0%",
@@ -460,23 +457,23 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
460
457
  }, [
461
458
  d("stop", {
462
459
  offset: "0%",
463
- "stop-color": u(X)(u(ge)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
464
- }, null, 8, rt),
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
+ }, null, 8, yt),
465
462
  d("stop", {
466
463
  offset: "100%",
467
464
  "stop-color": e.value.style.layout.bars.right.color
468
- }, null, 8, nt)
469
- ], 8, ut)
465
+ }, null, 8, ht)
466
+ ], 8, vt)
470
467
  ]),
471
- (i(!0), r(O, null, M(T.value, (l, a) => (i(), r("g", null, [
468
+ (u(!0), r(M, null, R(S.value, (l, a) => (u(), r("g", null, [
472
469
  d("rect", {
473
470
  x: l.left.x,
474
471
  y: l.left.y,
475
- width: u(f)(l.left.width <= 0 ? 1e-4 : l.left.width),
472
+ width: i(f)(l.left.width <= 0 ? 1e-4 : l.left.width),
476
473
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
477
474
  fill: e.value.style.layout.bars.gradient.underlayer,
478
475
  rx: e.value.style.layout.bars.borderRadius
479
- }, null, 8, dt),
476
+ }, null, 8, ft),
480
477
  d("rect", {
481
478
  x: l.left.x,
482
479
  y: l.left.y,
@@ -484,7 +481,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
484
481
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
485
482
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : l.left.color,
486
483
  rx: e.value.style.layout.bars.borderRadius
487
- }, null, 8, vt),
484
+ }, null, 8, ct),
488
485
  d("rect", {
489
486
  x: l.right.x,
490
487
  y: l.right.y,
@@ -492,7 +489,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
492
489
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
493
490
  fill: e.value.style.layout.bars.gradient.underlayer,
494
491
  rx: e.value.style.layout.bars.borderRadius
495
- }, null, 8, yt),
492
+ }, null, 8, gt),
496
493
  d("rect", {
497
494
  x: l.right.x,
498
495
  y: l.right.y,
@@ -500,10 +497,10 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
500
497
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
501
498
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : l.right.color,
502
499
  rx: e.value.style.layout.bars.borderRadius
503
- }, null, 8, ht)
500
+ }, null, 8, pt)
504
501
  ]))), 256)),
505
502
  d("g", null, [
506
- e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", ft, [
503
+ e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", bt, [
507
504
  d("text", {
508
505
  x: o.value.left,
509
506
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -511,7 +508,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
511
508
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
512
509
  "text-anchor": "start",
513
510
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
514
- }, w(e.value.translations.female), 9, ct),
511
+ }, k(e.value.translations.female), 9, xt),
515
512
  d("text", {
516
513
  x: o.value.right,
517
514
  y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
@@ -519,49 +516,49 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
519
516
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
520
517
  "text-anchor": "end",
521
518
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
522
- }, w(e.value.translations.male), 9, gt)
519
+ }, k(e.value.translations.male), 9, mt)
523
520
  ])) : y("", !0),
524
- e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", pt, [
525
- (i(!0), r(O, null, M(ke.value, (l, a) => (i(), r(O, null, [
526
- a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
521
+ 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
+ a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
527
524
  key: 0,
528
525
  x: o.value.centerX,
529
- y: o.value.top + o.value.height / $.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
526
+ y: o.value.top + o.value.height / L.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
530
527
  "text-anchor": "middle",
531
528
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
532
529
  fill: e.value.style.layout.dataLabels.yAxis.color,
533
530
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
534
- }, w(u(k)(
531
+ }, k(i(C)(
535
532
  e.value.style.layout.dataLabels.yAxis.formatter,
536
533
  l,
537
- u(_)({ v: l }),
534
+ i($)({ v: l }),
538
535
  { datapoint: l, seriesIndex: a }
539
- )), 9, bt)) : y("", !0)
536
+ )), 9, kt)) : y("", !0)
540
537
  ], 64))), 256))
541
538
  ])) : y("", !0),
542
- e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", xt, [
543
- e.value.style.layout.grid.show ? (i(), r("g", mt, [
539
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", _t, [
540
+ e.value.style.layout.grid.show ? (u(), r("g", Ct, [
544
541
  d("line", {
545
- x1: C.value.right[0].x,
546
- x2: C.value.right.at(-1).x,
542
+ x1: A.value.right[0].x,
543
+ x2: A.value.right.at(-1).x,
547
544
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
548
545
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
549
546
  stroke: e.value.style.layout.grid.stroke,
550
547
  "stroke-width": e.value.style.layout.grid.strokeWidth,
551
548
  "stroke-linecap": "round"
552
- }, null, 8, wt),
549
+ }, null, 8, $t),
553
550
  d("line", {
554
- x1: C.value.left[0].x,
555
- x2: C.value.left.at(-1).x,
551
+ x1: A.value.left[0].x,
552
+ x2: A.value.left.at(-1).x,
556
553
  y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
557
554
  y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
558
555
  stroke: e.value.style.layout.grid.stroke,
559
556
  "stroke-width": e.value.style.layout.grid.strokeWidth,
560
557
  "stroke-linecap": "round"
561
- }, null, 8, kt)
558
+ }, null, 8, Tt)
562
559
  ])) : y("", !0),
563
- (i(!0), r(O, null, M(C.value.right, (l, a) => (i(), r("g", null, [
564
- e.value.style.layout.grid.show ? (i(), r("line", {
560
+ (u(!0), r(M, null, R(A.value.right, (l, a) => (u(), r("g", null, [
561
+ e.value.style.layout.grid.show ? (u(), r("line", {
565
562
  key: 0,
566
563
  x1: l.x,
567
564
  x2: l.x,
@@ -570,7 +567,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
570
567
  stroke: e.value.style.layout.grid.stroke,
571
568
  "stroke-width": e.value.style.layout.grid.strokeWidth,
572
569
  "stroke-linecap": "round"
573
- }, null, 8, _t)) : y("", !0),
570
+ }, null, 8, At)) : y("", !0),
574
571
  d("text", {
575
572
  x: l.x,
576
573
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -578,17 +575,17 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
578
575
  fill: e.value.style.layout.dataLabels.xAxis.color,
579
576
  "text-anchor": "middle",
580
577
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
581
- }, w(u(k)(
578
+ }, k(i(C)(
582
579
  e.value.style.layout.dataLabels.xAxis.formatter,
583
580
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
584
- u(_)({
581
+ i($)({
585
582
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
586
583
  }),
587
584
  { datapoint: l, seriesIndex: a }
588
- )), 9, Ct)
585
+ )), 9, Lt)
589
586
  ]))), 256)),
590
- (i(!0), r(O, null, M(C.value.left, (l, a) => (i(), r("g", null, [
591
- e.value.style.layout.grid.show ? (i(), r("line", {
587
+ (u(!0), r(M, null, R(A.value.left, (l, a) => (u(), r("g", null, [
588
+ e.value.style.layout.grid.show ? (u(), r("line", {
592
589
  key: 0,
593
590
  x1: l.x,
594
591
  x2: l.x,
@@ -597,7 +594,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
597
594
  stroke: e.value.style.layout.grid.stroke,
598
595
  "stroke-width": e.value.style.layout.grid.strokeWidth,
599
596
  "stroke-linecap": "round"
600
- }, null, 8, $t)) : y("", !0),
597
+ }, null, 8, St)) : y("", !0),
601
598
  d("text", {
602
599
  x: l.x,
603
600
  y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
@@ -605,14 +602,14 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
605
602
  fill: e.value.style.layout.dataLabels.xAxis.color,
606
603
  "text-anchor": "middle",
607
604
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
608
- }, w(u(k)(
605
+ }, k(i(C)(
609
606
  e.value.style.layout.dataLabels.xAxis.formatter,
610
607
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
611
- u(_)({
608
+ i($)({
612
609
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
613
610
  }),
614
611
  { datapoint: l, seriesIndex: a }
615
- )), 9, Tt)
612
+ )), 9, zt)
616
613
  ]))), 256)),
617
614
  d("text", {
618
615
  x: o.value.right,
@@ -621,28 +618,28 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
621
618
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
622
619
  fill: e.value.style.layout.dataLabels.xAxis.color,
623
620
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
624
- }, w(e.value.style.layout.dataLabels.xAxis.translation), 9, At)
621
+ }, k(e.value.style.layout.dataLabels.xAxis.translation), 9, Ot)
625
622
  ])) : y("", !0)
626
623
  ]),
627
- (i(!0), r(O, null, M(j.dataset, (l, a) => (i(), r("g", null, [
624
+ (u(!0), r(M, null, R(q.dataset, (l, a) => (u(), r("g", null, [
628
625
  d("rect", {
629
626
  x: o.value.left,
630
- y: o.value.top + o.value.height / $.value * a - e.value.style.layout.bars.gap / 2,
627
+ y: o.value.top + o.value.height / L.value * a - e.value.style.layout.bars.gap / 2,
631
628
  width: o.value.width <= 0 ? 1e-4 : o.value.width,
632
- height: o.value.height / $.value <= 0 ? 1e-4 : o.value.height / $.value,
633
- fill: N.value !== null && N.value === a ? u(X)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
634
- onMouseover: (n) => $e(a, l),
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),
635
632
  onMouseleave: s[0] || (s[0] = (n) => {
636
- N.value = null, G.value = !1;
633
+ D.value = null, U.value = !1;
637
634
  })
638
- }, null, 40, Lt)
635
+ }, null, 40, It)
639
636
  ]))), 256)),
640
637
  h(t.$slots, "svg", { svg: p.value }, void 0, !0)
641
- ], 14, lt)) : y("", !0),
642
- t.$slots.watermark ? (i(), r("div", St, [
643
- h(t.$slots, "watermark", S(z({ isPrinting: u(se) || u(ie) })), void 0, !0)
638
+ ], 14, it)) : y("", !0),
639
+ t.$slots.watermark ? (u(), r("div", Ft, [
640
+ h(t.$slots, "watermark", I(F({ isPrinting: i(ue) || i(re) })), void 0, !0)
644
641
  ])) : y("", !0),
645
- P.value ? y("", !0) : (i(), L(Ye, {
642
+ B.value ? y("", !0) : (u(), O(i(Te), {
646
643
  key: 6,
647
644
  config: {
648
645
  type: "pyramid",
@@ -654,17 +651,17 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
654
651
  }
655
652
  }
656
653
  }, null, 8, ["config"])),
657
- h(t.$slots, "legend", { legend: T.value }, void 0, !0),
658
- t.$slots.source ? (i(), r("div", {
654
+ h(t.$slots, "legend", { legend: S.value }, void 0, !0),
655
+ t.$slots.source ? (u(), r("div", {
659
656
  key: 7,
660
657
  ref_key: "source",
661
- ref: q,
658
+ ref: Q,
662
659
  dir: "auto"
663
660
  }, [
664
661
  h(t.$slots, "source", {}, void 0, !0)
665
662
  ], 512)) : y("", !0),
666
- fe(je, {
667
- show: x.value.showTooltip && G.value,
663
+ pe(i(Ae), {
664
+ show: x.value.showTooltip && U.value,
668
665
  backgroundColor: e.value.style.tooltip.backgroundColor,
669
666
  color: e.value.style.tooltip.color,
670
667
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -674,20 +671,20 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
674
671
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
675
672
  position: e.value.style.tooltip.position,
676
673
  offsetY: e.value.style.tooltip.offsetY,
677
- parent: I.value,
678
- content: U.value,
679
- isFullscreen: A.value,
674
+ parent: P.value,
675
+ content: V.value,
676
+ isFullscreen: z.value,
680
677
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
681
678
  }, {
682
679
  "tooltip-before": c(() => [
683
- h(t.$slots, "tooltip-before", S(z({ ...E.value })), void 0, !0)
680
+ h(t.$slots, "tooltip-before", I(F({ ...X.value })), void 0, !0)
684
681
  ]),
685
682
  "tooltip-after": c(() => [
686
- h(t.$slots, "tooltip-after", S(z({ ...E.value })), void 0, !0)
683
+ h(t.$slots, "tooltip-after", I(F({ ...X.value })), void 0, !0)
687
684
  ]),
688
685
  _: 3
689
686
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
690
- P.value ? (i(), L(qe, {
687
+ B.value ? (u(), O(i(ke), {
691
688
  key: 8,
692
689
  hideDetails: "",
693
690
  config: {
@@ -704,29 +701,29 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], at = ["x", "y", "width", "height"]
704
701
  }
705
702
  }, {
706
703
  content: c(() => [
707
- (i(), L(He, {
708
- key: `table_${Q.value}`,
709
- colNames: R.value.colNames,
710
- head: R.value.head,
711
- body: R.value.body,
712
- config: R.value.config,
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,
713
710
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
714
711
  onClose: s[1] || (s[1] = (l) => x.value.showTable = !1)
715
712
  }, {
716
713
  th: c(({ th: l }) => [
717
- ce(w(l), 1)
714
+ be(k(l), 1)
718
715
  ]),
719
716
  td: c(({ td: l }) => [
720
- ce(w(l), 1)
717
+ be(k(l), 1)
721
718
  ]),
722
719
  _: 1
723
720
  }, 8, ["colNames", "head", "body", "config", "title"]))
724
721
  ]),
725
722
  _: 1
726
723
  }, 8, ["config"])) : y("", !0)
727
- ], 46, tt));
724
+ ], 46, st));
728
725
  }
729
- }, jt = /* @__PURE__ */ et(zt, [["__scopeId", "data-v-beb1c78c"]]);
726
+ }, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-e6b32d38"]]);
730
727
  export {
731
- jt as default
728
+ Wt as default
732
729
  };