vue-data-ui 3.0.22 → 3.1.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-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/Legend-2-dC7DVb.js +72 -0
  8. package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-Y5T9UxMO.js +0 -133
  93. package/dist/Legend-DkU3at-b.js +0 -72
  94. package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
  95. package/dist/vue-ui-chord-0wf798ls.js +0 -1049
  96. package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
  97. package/dist/vue-ui-flow-K7UBguES.js +0 -852
  98. package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
  99. package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
  100. package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
  101. package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
  102. package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
  103. package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
  104. package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
  105. package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
  106. package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
  107. package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
  108. package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
  109. package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
@@ -1,19 +1,19 @@
1
- import { defineAsyncComponent as R, computed as g, ref as v, toRefs as tt, watch as Z, shallowRef as _e, onMounted as lt, onBeforeUnmount as Ae, watchEffect as at, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as ee, normalizeClass as Le, createBlock as M, createCommentVNode as y, renderSlot as h, createVNode as Ce, createSlots as ot, withCtx as p, normalizeProps as P, guardReactiveProps as N, createElementVNode as d, Fragment as L, renderList as $, toDisplayString as C, createTextVNode as Te, nextTick as st } from "vue";
2
- import { u as it, c as ut, t as nt, b as rt, o as $e, f as vt, h as f, X as dt, s as te, x as Se, k as S, i as z, v as yt, w as ht, y as ct, z as ft } from "./index-BHb_mcWF.js";
3
- import { t as ze, u as gt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ie } from "./useNestedProp-aC9S6EFJ.js";
5
- import { u as pt } from "./usePrinter-B7rhbRrT.js";
6
- import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as xt } from "./useChartAccessibility-9icAAmYg.js";
8
- import mt from "./Title-BL-IjQmj.js";
9
- import wt from "./img-DsVqerdt.js";
10
- import { u as kt } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import { u as _t, B as At } from "./useLoading-D7YHNtLX.js";
12
- import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"], St = ["id"], zt = ["stop-color"], It = ["stop-color"], Ot = ["id"], Ft = ["stop-color"], Rt = ["stop-color"], Mt = ["x", "y", "width", "height", "fill", "rx"], Pt = ["x", "y", "width", "height", "fill", "rx"], Nt = ["x", "y", "width", "height", "fill", "rx"], Et = ["x", "y", "width", "height", "fill", "rx"], Dt = { key: 0 }, Bt = ["x", "y", "fill", "font-size", "font-weight"], Gt = ["x", "y", "fill", "font-size", "font-weight"], Ht = { key: 1 }, Ut = ["x", "y", "font-size", "fill", "font-weight"], Vt = { key: 2 }, Wt = { key: 0 }, Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Kt = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Qt = ["x", "y", "font-size", "fill", "font-weight"], Zt = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], el = {
1
+ import { defineAsyncComponent as L, computed as g, ref as v, toRefs as it, watch as X, shallowRef as Te, onMounted as ut, onBeforeUnmount as $e, watchEffect as nt, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as ae, normalizeClass as Se, createBlock as P, createCommentVNode as y, renderSlot as h, createVNode as oe, createSlots as ze, withCtx as c, normalizeProps as M, guardReactiveProps as D, createElementVNode as d, Fragment as T, renderList as z, toDisplayString as C, resolveDynamicComponent as rt, mergeProps as vt, createTextVNode as se, nextTick as dt } from "vue";
2
+ import { u as yt, c as ht, t as ct, b as ft, o as Ie, f as gt, h as p, X as pt, s as ie, x as Oe, k as I, i as O, v as bt, w as xt, y as mt, z as wt } from "./index-CDQbCd41.js";
3
+ import { t as Fe, u as kt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ct, B as _t } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as At } from "./usePrinter-Bnl1YeUU.js";
6
+ import { u as Re } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as $t } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import St from "./img-JOqdlnUs.js";
11
+ import zt from "./Title-Dq2_Z9kR.js";
12
+ import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Ot = ["id"], Ft = ["xmlns", "viewBox"], Rt = ["x", "y", "width", "height"], Pt = ["id"], Mt = ["stop-color"], Dt = ["stop-color"], Nt = ["id"], Bt = ["stop-color"], Et = ["stop-color"], Ut = ["x", "y", "width", "height", "fill", "rx"], Gt = ["x", "y", "width", "height", "fill", "rx"], Ht = ["x", "y", "width", "height", "fill", "rx"], Wt = ["x", "y", "width", "height", "fill", "rx"], Vt = { key: 0 }, Xt = ["x", "y", "fill", "font-size", "font-weight"], jt = ["x", "y", "fill", "font-size", "font-weight"], Yt = { key: 1 }, qt = ["x", "y", "font-size", "fill", "font-weight"], Jt = { key: 2 }, Kt = { key: 0 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["font-size", "fill", "text-anchor", "font-weight", "transform"], al = ["font-size", "fill", "text-anchor", "font-weight", "transform"], ol = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], il = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, tl = {
16
+ }, ul = {
17
17
  __name: "vue-ui-age-pyramid",
18
18
  props: {
19
19
  config: {
@@ -29,11 +29,11 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
29
29
  }
30
30
  }
31
31
  },
32
- setup(le, { expose: Oe }) {
33
- const Fe = R(() => import("./vue-ui-accordion-DsnF0JuK.js")), Re = R(() => import("./DataTable-Y5T9UxMO.js")), Me = R(() => import("./PackageVersion-CE7HSich.js")), Pe = R(() => import("./PenAndPaper-BMHsOtT8.js")), Ne = R(() => import("./Tooltip-CCnDaboi.js")), Ee = R(() => import("./UserOptions-BWMV0_Ze.js")), { vue_ui_age_pyramid: De } = it(), b = le, ae = g(() => !!b.dataset && b.dataset.length), w = v(ut()), Be = v(null), V = v(!1), W = v(""), D = v(null), oe = v(0), k = v(null), se = v(null), ie = v(null), ue = v(null), ne = v(0), re = v(0), X = v(null), e = v(q()), { loading: ve, FINAL_DATASET: B, manualLoading: j } = _t({
34
- ...tt(b),
32
+ setup(ue, { expose: Pe }) {
33
+ const Me = L(() => import("./Tooltip-Y219DXZO.js")), De = L(() => import("./BaseIcon-DHtro8us.js")), Ne = L(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Be = L(() => import("./DataTable-DJjA2_wf.js")), Ee = L(() => import("./PenAndPaper-B7QEDgx4.js")), Ue = L(() => import("./UserOptions-BuGfCdAY.js")), Ge = L(() => import("./PackageVersion-DU12WH3O.js")), He = L(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_age_pyramid: We } = yt(), x = ue, ne = g(() => !!x.dataset && x.dataset.length), w = v(ht()), Ve = v(null), j = v(!1), Y = v(""), U = v(null), re = v(0), k = v(null), ve = v(null), de = v(null), ye = v(null), he = v(0), ce = v(0), q = v(null), N = v(null), e = v(Q()), { loading: fe, FINAL_DATASET: G, manualLoading: J } = Ct({
34
+ ...it(x),
35
35
  FINAL_CONFIG: e,
36
- prepareConfig: q,
36
+ prepareConfig: Q,
37
37
  skeletonDataset: [
38
38
  ["_", 9, 2, 2],
39
39
  ["_", 8, 3, 3],
@@ -46,7 +46,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
46
46
  ["_", 1, 89, 89],
47
47
  ["_", 0, 144, 144]
48
48
  ],
49
- skeletonConfig: nt({
49
+ skeletonConfig: ct({
50
50
  defaultConfig: e.value,
51
51
  userConfig: {
52
52
  userOptions: { show: !1 },
@@ -79,91 +79,91 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
79
79
  }
80
80
  }
81
81
  })
82
- }), { userOptionsVisible: Y, setUserOptionsVisibility: de, keepUserOptionState: ye } = bt({ config: e.value }), { svgRef: he } = xt({ config: e.value.style.title });
83
- function q() {
84
- const t = Ie({
85
- userConfig: b.config,
86
- defaultConfig: De
82
+ }), { userOptionsVisible: K, setUserOptionsVisibility: ge, keepUserOptionState: pe } = Lt({ config: e.value }), { svgRef: be } = Tt({ config: e.value.style.title });
83
+ function Q() {
84
+ const t = Re({
85
+ userConfig: x.config,
86
+ defaultConfig: We
87
87
  });
88
88
  return t.theme ? {
89
- ...Ie({
90
- userConfig: rt.vue_ui_age_pyramid[t.theme] || b.config,
89
+ ...Re({
90
+ userConfig: ft.vue_ui_age_pyramid[t.theme] || x.config,
91
91
  defaultConfig: t
92
92
  })
93
93
  } : t;
94
94
  }
95
- Z(() => b.config, (t) => {
96
- ve.value || (e.value = q()), Y.value = !e.value.userOptions.showOnChartHover, ce(), ne.value += 1, re.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.tooltip.show;
97
- }, { deep: !0 }), Z(() => b.dataset, (t) => {
98
- Array.isArray(t) && t.length > 0 && (j.value = !1);
95
+ X(() => x.config, (t) => {
96
+ fe.value || (e.value = Q()), K.value = !e.value.userOptions.showOnChartHover, xe(), he.value += 1, ce.value += 1, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.tooltip.show;
97
+ }, { deep: !0 }), X(() => x.dataset, (t) => {
98
+ Array.isArray(t) && t.length > 0 && (J.value = !1);
99
99
  }, { deep: !0 });
100
- const _ = _e(null), I = _e(null);
101
- lt(() => {
102
- ce();
100
+ const _ = Te(null), F = Te(null);
101
+ ut(() => {
102
+ xe();
103
103
  });
104
- const Ge = g(() => !!e.value.debug);
105
- function ce() {
106
- if ($e(b.dataset) && (vt({
104
+ const Xe = g(() => !!e.value.debug);
105
+ function xe() {
106
+ if (Ie(x.dataset) && (gt({
107
107
  componentName: "VueUiAgePyramid",
108
108
  type: "dataset",
109
- debug: Ge.value
110
- }), j.value = !0), $e(b.dataset) || (j.value = e.value.loading), e.value.responsive) {
111
- const t = ze(() => {
112
- const { width: o, height: l } = gt({
109
+ debug: Xe.value
110
+ }), J.value = !0), Ie(x.dataset) || (J.value = e.value.loading), e.value.responsive) {
111
+ const t = Fe(() => {
112
+ const { width: o, height: l } = kt({
113
113
  chart: k.value,
114
- title: e.value.style.title.text ? se.value : null,
115
- source: ie.value,
116
- noTitle: ue.value
114
+ title: e.value.style.title.text ? ve.value : null,
115
+ source: de.value,
116
+ noTitle: ye.value
117
117
  });
118
118
  requestAnimationFrame(() => {
119
- c.value.width = o, c.value.height = l;
119
+ f.value.width = o, f.value.height = l;
120
120
  });
121
121
  });
122
- _.value && (I.value && _.value.unobserve(I.value), _.value.disconnect()), _.value = new ResizeObserver(t), I.value = k.value.parentNode, _.value.observe(I.value);
122
+ _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = k.value.parentNode, _.value.observe(F.value);
123
123
  }
124
124
  }
125
- Ae(() => {
126
- _.value && (I.value && _.value.unobserve(I.value), _.value.disconnect());
125
+ $e(() => {
126
+ _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
127
127
  });
128
- const { isPrinting: fe, isImaging: ge, generatePdf: pe, generateImage: be } = pt({
128
+ const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage: Ce } = At({
129
129
  elementId: `vue-ui-age-pyramid_${w.value}`,
130
130
  fileName: e.value.style.title.text || "vue-ui-age-pyramid",
131
131
  options: e.value.userOptions.print
132
- }), He = g(() => e.value.userOptions.show && !e.value.style.title.text), x = v({
132
+ }), je = g(() => e.value.userOptions.show && !e.value.style.title.text), b = v({
133
133
  showTable: e.value.table.show,
134
134
  showTooltip: e.value.style.tooltip.show
135
135
  });
136
- Z(e, () => {
137
- x.value = {
136
+ X(e, () => {
137
+ b.value = {
138
138
  showTable: e.value.table.show,
139
139
  showTooltip: e.value.style.tooltip.show
140
140
  };
141
141
  }, { immediate: !0 });
142
- const c = v({
142
+ const f = v({
143
143
  height: e.value.style.height,
144
144
  width: e.value.style.width
145
- }), Ue = g(() => c.value.width), Ve = g(() => c.value.height), G = v(0), We = ze((t) => {
146
- G.value = t;
145
+ }), Ye = g(() => f.value.width), qe = g(() => f.value.height), H = v(0), Je = Fe((t) => {
146
+ H.value = t;
147
147
  }, 100);
148
- at((t) => {
149
- const o = X.value;
148
+ nt((t) => {
149
+ const o = q.value;
150
150
  if (!o) return;
151
151
  const l = new ResizeObserver((a) => {
152
- We(a[0].contentRect.height);
152
+ Je(a[0].contentRect.height);
153
153
  });
154
154
  l.observe(o), t(() => l.disconnect());
155
- }), Ae(() => {
156
- G.value = 0;
155
+ }), $e(() => {
156
+ H.value = 0;
157
157
  });
158
158
  const s = g(() => {
159
- const t = c.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, o = e.value.style.layout.padding.left, l = c.value.width - e.value.style.layout.padding.right;
159
+ const t = f.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, o = e.value.style.layout.padding.left, l = f.value.width - e.value.style.layout.padding.right;
160
160
  return {
161
161
  top: e.value.style.layout.padding.top + e.value.style.layout.dataLabels.sideTitles.fontSize + e.value.style.layout.dataLabels.sideTitles.offsetY + 12,
162
162
  left: o,
163
163
  right: l,
164
- bottom: c.value.height - e.value.style.layout.padding.bottom - G.value,
164
+ bottom: f.value.height - e.value.style.layout.padding.bottom - H.value,
165
165
  width: t,
166
- height: c.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - G.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
166
+ height: f.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - H.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
167
167
  centerX: e.value.style.layout.padding.left + t / 2,
168
168
  leftChart: {
169
169
  width: t / 2 - e.value.style.layout.centerSlit.width,
@@ -174,16 +174,16 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
174
174
  left: o + t / 2 + e.value.style.layout.centerSlit.width
175
175
  }
176
176
  };
177
- }), Xe = g(() => B.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), A = g(() => {
178
- const t = je(E.value / 5), o = [], l = [];
177
+ }), Ke = g(() => G.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), A = g(() => {
178
+ const t = Qe(B.value / 5), o = [], l = [];
179
179
  for (let a = 0; a <= 5; a += 1) {
180
180
  const r = t * a, m = t * (a - 5);
181
181
  o.push({
182
182
  value: r,
183
- x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + r / E.value * s.value.leftChart.width
183
+ x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + r / B.value * s.value.leftChart.width
184
184
  }), l.push({
185
185
  value: Math.abs(m),
186
- x: s.value.left + s.value.width / 2 + m / E.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
186
+ x: s.value.left + s.value.width / 2 + m / B.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
187
187
  });
188
188
  }
189
189
  return {
@@ -191,25 +191,25 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
191
191
  left: l
192
192
  };
193
193
  });
194
- function je(t) {
194
+ function Qe(t) {
195
195
  if (t === 0) return 0;
196
196
  const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
197
197
  let a;
198
198
  return t < 0, a = Math.round(t / l) * l, a;
199
199
  }
200
- const E = g(() => Math.max(...B.value.flatMap((t) => t.slice(-2).map((o) => f(o))))), O = g(() => B.value.length), Ye = g(() => B.value.map((t) => ({
200
+ const B = g(() => Math.max(...G.value.flatMap((t) => t.slice(-2).map((o) => p(o))))), R = g(() => G.value.length), Ze = g(() => G.value.map((t) => ({
201
201
  segment: t[0],
202
202
  age: t[1],
203
203
  left: {
204
204
  value: t[2],
205
- proportionToMax: t[2] / E.value
205
+ proportionToMax: t[2] / B.value
206
206
  },
207
207
  right: {
208
208
  value: t[3],
209
- proportionToMax: t[3] / E.value
209
+ proportionToMax: t[3] / B.value
210
210
  }
211
- }))), T = g(() => Ye.value.map((t, o) => {
212
- const l = s.value.top + s.value.height / O.value * o, a = s.value.height / O.value - e.value.style.layout.bars.gap;
211
+ }))), $ = g(() => Ze.value.map((t, o) => {
212
+ const l = s.value.top + s.value.height / R.value * o, a = s.value.height / R.value - e.value.style.layout.bars.gap;
213
213
  return {
214
214
  segment: t.segment,
215
215
  age: t.age,
@@ -218,7 +218,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
218
218
  y: l,
219
219
  color: e.value.style.layout.bars.left.color,
220
220
  x: s.value.leftChart.right - t.left.proportionToMax * s.value.leftChart.width,
221
- width: f(t.left.proportionToMax * s.value.leftChart.width),
221
+ width: p(t.left.proportionToMax * s.value.leftChart.width),
222
222
  height: a
223
223
  },
224
224
  right: {
@@ -226,30 +226,30 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
226
226
  y: l,
227
227
  color: e.value.style.layout.bars.right.color,
228
228
  x: s.value.rightChart.left,
229
- width: f(t.right.proportionToMax * s.value.rightChart.width),
229
+ width: p(t.right.proportionToMax * s.value.rightChart.width),
230
230
  height: a
231
231
  }
232
232
  };
233
- })), J = v(null);
234
- function K(t) {
233
+ })), Z = v(null);
234
+ function ee(t) {
235
235
  const [o, l, a, r] = t;
236
236
  return { segment: o, index: l, left: a, right: r };
237
237
  }
238
- function qe(t, o) {
239
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: K(o), seriesIndex: t });
238
+ function et(t, o) {
239
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: ee(o), seriesIndex: t });
240
240
  }
241
- function Je(t, o) {
242
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: K(o), seriesIndex: t }), D.value = null, V.value = !1;
241
+ function tt(t, o) {
242
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ee(o), seriesIndex: t }), U.value = null, j.value = !1;
243
243
  }
244
- function Ke(t, o) {
245
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: K(o), seriesIndex: t }), D.value = t, J.value = {
244
+ function lt(t, o) {
245
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: ee(o), seriesIndex: t }), U.value = t, Z.value = {
246
246
  datapoint: o,
247
247
  seriesIndex: t,
248
- series: T.value,
248
+ series: $.value,
249
249
  config: e.value
250
250
  };
251
251
  const l = e.value.style.tooltip.customFormat;
252
- if (ct(l) && ft(() => l({
252
+ if (mt(l) && wt(() => l({
253
253
  seriesIndex: t,
254
254
  datapoint: {
255
255
  segment: o[0],
@@ -257,10 +257,10 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
257
257
  left: o[2],
258
258
  right: o[3]
259
259
  },
260
- series: T.value,
260
+ series: $.value,
261
261
  config: e.value
262
262
  })))
263
- W.value = l({
263
+ Y.value = l({
264
264
  seriesIndex: t,
265
265
  datapoint: {
266
266
  segment: o[0],
@@ -268,56 +268,56 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
268
268
  left: o[2],
269
269
  right: o[3]
270
270
  },
271
- series: T.value,
271
+ series: $.value,
272
272
  config: e.value
273
273
  });
274
274
  else {
275
275
  let a = "";
276
- const r = T.value[t];
277
- a += `<div><b>${r.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${S(
276
+ const r = $.value[t];
277
+ a += `<div><b>${r.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${I(
278
278
  e.value.style.layout.dataLabels.yAxis.formatter,
279
- f(r.age),
280
- z({ v: f(r.age) }),
279
+ p(r.age),
280
+ O({ v: p(r.age) }),
281
281
  { datapoint: o, seriesIndex: t }
282
- )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${S(
282
+ )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${I(
283
283
  e.value.style.layout.dataLabels.xAxis.formatter,
284
- f(r.left.value),
285
- z({ v: f(r.left.value) }),
284
+ p(r.left.value),
285
+ O({ v: p(r.left.value) }),
286
286
  { datapoint: o, seriesIndex: t }
287
- )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${S(
287
+ )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${I(
288
288
  e.value.style.layout.dataLabels.xAxis.formatter,
289
- f(r.right.value),
290
- z({ v: f(r.right.value) }),
289
+ p(r.right.value),
290
+ O({ v: p(r.right.value) }),
291
291
  { datapoint: o, seriesIndex: t }
292
- )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${S(
292
+ )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${I(
293
293
  e.value.style.layout.dataLabels.xAxis.formatter,
294
- f(r.right.value) + f(r.left.value),
295
- z({ v: f(r.right.value) + f(r.left.value) }),
294
+ p(r.right.value) + p(r.left.value),
295
+ O({ v: p(r.right.value) + p(r.left.value) }),
296
296
  { datapoint: o, seriesIndex: t }
297
- )}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
297
+ )}</b></div></div>`, a += "</div>", Y.value = `<div>${a}</div>`;
298
298
  }
299
- V.value = !0;
299
+ j.value = !0;
300
300
  }
301
- function xe(t = null) {
302
- st(() => {
303
- const o = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = b.dataset.map((m) => [
301
+ function te(t = null) {
302
+ dt(() => {
303
+ const o = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = x.dataset.map((m) => [
304
304
  m[0],
305
305
  m[1],
306
306
  m[2],
307
307
  m[3],
308
308
  m[2] ?? 0 + m[3] ?? 0
309
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = yt(a);
310
- t ? t(r) : ht({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
309
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = bt(a);
310
+ t ? t(r) : xt({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
311
311
  });
312
312
  }
313
- const H = g(() => {
313
+ const W = g(() => {
314
314
  const t = [
315
315
  e.value.translations.year,
316
316
  e.value.translations.age,
317
317
  e.value.translations.female,
318
318
  e.value.translations.male,
319
319
  e.value.translations.total
320
- ], o = b.dataset.map((a) => [
320
+ ], o = x.dataset.map((a) => [
321
321
  a[0],
322
322
  a[1],
323
323
  a[2] == null ? "" : a[2].toLocaleString(),
@@ -337,23 +337,23 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
337
337
  breakpoint: e.value.table.responsiveBreakpoint
338
338
  };
339
339
  return { head: t, body: o, config: l, colNames: t };
340
- }), F = v(!1);
341
- function me(t) {
342
- F.value = t, oe.value += 1;
340
+ }), S = v(!1);
341
+ function _e(t) {
342
+ S.value = t, re.value += 1;
343
343
  }
344
- function we() {
345
- x.value.showTable = !x.value.showTable;
344
+ function Ae() {
345
+ b.value.showTable = !b.value.showTable;
346
346
  }
347
- function ke() {
348
- x.value.showTooltip = !x.value.showTooltip;
347
+ function Le() {
348
+ b.value.showTooltip = !b.value.showTooltip;
349
349
  }
350
- const U = v(!1);
351
- function Q() {
352
- U.value = !U.value;
350
+ const V = v(!1);
351
+ function le() {
352
+ V.value = !V.value;
353
353
  }
354
- async function Qe({ scale: t = 2 } = {}) {
354
+ async function at({ scale: t = 2 } = {}) {
355
355
  if (!k.value) return;
356
- const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await wt({ domElement: k.value, base64: !0, img: !0, scale: t });
356
+ const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await St({ domElement: k.value, base64: !0, img: !0, scale: t });
357
357
  return {
358
358
  imageUri: r,
359
359
  base64: m,
@@ -363,60 +363,93 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
363
363
  aspectRatio: a
364
364
  };
365
365
  }
366
- const Ze = v([]), et = v({ start: 0, end: T.value.length });
367
- return kt({
368
- timeLabelsEls: X,
369
- timeLabels: Ze,
370
- slicer: et,
366
+ const ot = v([]), st = v({ start: 0, end: $.value.length });
367
+ $t({
368
+ timeLabelsEls: q,
369
+ timeLabels: ot,
370
+ slicer: st,
371
371
  configRef: e,
372
372
  rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
373
373
  autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
374
374
  isAutoSize: !1,
375
- width: Ue,
376
- height: Ve,
375
+ width: Ye,
376
+ height: qe,
377
377
  targetClass: ".vue-ui-age-pyramid-x-axis-label",
378
378
  rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
379
- }), Oe({
380
- getImage: Qe,
381
- generatePdf: pe,
382
- generateCsv: xe,
383
- generateImage: be,
384
- toggleTable: we,
385
- toggleTooltip: ke,
386
- toggleAnnotator: Q,
387
- toggleFullscreen: me
379
+ });
380
+ const E = g(() => {
381
+ const t = e.value.table.useDialog && !e.value.table.show, o = b.value.showTable;
382
+ return {
383
+ component: t ? He : Ne,
384
+ title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
385
+ props: t ? {
386
+ backgroundColor: e.value.table.th.backgroundColor,
387
+ color: e.value.table.th.color,
388
+ headerColor: e.value.table.th.color,
389
+ headerBg: e.value.table.th.backgroundColor,
390
+ isFullscreen: S.value,
391
+ fullscreenParent: k.value,
392
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
393
+ } : {
394
+ hideDetails: !0,
395
+ config: {
396
+ open: o,
397
+ maxHeight: 1e4,
398
+ body: {
399
+ backgroundColor: e.value.style.backgroundColor,
400
+ color: e.value.style.color
401
+ },
402
+ head: {
403
+ backgroundColor: e.value.style.backgroundColor,
404
+ color: e.value.style.color
405
+ }
406
+ }
407
+ }
408
+ };
409
+ });
410
+ return X(() => b.value.showTable, (t) => {
411
+ e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
412
+ }), Pe({
413
+ getImage: at,
414
+ generatePdf: ke,
415
+ generateCsv: te,
416
+ generateImage: Ce,
417
+ toggleTable: Ae,
418
+ toggleTooltip: Le,
419
+ toggleAnnotator: le,
420
+ toggleFullscreen: _e
388
421
  }), (t, o) => (i(), n("div", {
389
- class: Le(`vue-ui-age-pyramid ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
422
+ class: Se(`vue-ui-age-pyramid ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
390
423
  ref_key: "agePyramid",
391
424
  ref: k,
392
425
  id: `vue-ui-age-pyramid_${w.value}`,
393
- style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
394
- onMouseenter: o[1] || (o[1] = () => u(de)(!0)),
395
- onMouseleave: o[2] || (o[2] = () => u(de)(!1))
426
+ style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
427
+ onMouseenter: o[3] || (o[3] = () => u(ge)(!0)),
428
+ onMouseleave: o[4] || (o[4] = () => u(ge)(!1))
396
429
  }, [
397
- e.value.userOptions.buttons.annotator ? (i(), M(u(Pe), {
430
+ e.value.userOptions.buttons.annotator ? (i(), P(u(Ee), {
398
431
  key: 0,
399
- svgRef: u(he),
432
+ svgRef: u(be),
400
433
  backgroundColor: e.value.style.backgroundColor,
401
434
  color: e.value.style.color,
402
- active: U.value,
403
- onClose: Q
435
+ active: V.value,
436
+ onClose: le
404
437
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
405
- He.value ? (i(), n("div", {
438
+ je.value ? (i(), n("div", {
406
439
  key: 1,
407
440
  ref_key: "noTitle",
408
- ref: ue,
441
+ ref: ye,
409
442
  class: "vue-data-ui-no-title-space",
410
443
  style: "height:36px; width: 100%;background:transparent"
411
444
  }, null, 512)) : y("", !0),
412
445
  e.value.style.title.text ? (i(), n("div", {
413
446
  key: 2,
414
447
  ref_key: "chartTitle",
415
- ref: se,
448
+ ref: ve,
416
449
  style: "width:100%;background:transparent"
417
450
  }, [
418
- (i(), M(mt, {
419
- key: `title_${ne.value}`,
451
+ (i(), P(zt, {
452
+ key: `title_${he.value}`,
420
453
  config: {
421
454
  title: {
422
455
  cy: "pyramid-div-title",
@@ -429,14 +462,14 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
429
462
  }
430
463
  }, null, 8, ["config"]))
431
464
  ], 512)) : y("", !0),
432
- e.value.userOptions.show && ae.value && (u(ye) || u(Y)) ? (i(), M(u(Ee), {
465
+ e.value.userOptions.show && ne.value && (u(pe) || u(K)) ? (i(), P(u(Ue), {
433
466
  ref_key: "details",
434
- ref: Be,
435
- key: `user_options_${oe.value}`,
467
+ ref: Ve,
468
+ key: `user_options_${re.value}`,
436
469
  backgroundColor: e.value.style.backgroundColor,
437
470
  color: e.value.style.color,
438
- isImaging: u(ge),
439
- isPrinting: u(fe),
471
+ isImaging: u(we),
472
+ isPrinting: u(me),
440
473
  uid: w.value,
441
474
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
442
475
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -444,92 +477,92 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
444
477
  hasImg: e.value.userOptions.buttons.img,
445
478
  hasTable: e.value.userOptions.buttons.table,
446
479
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
447
- isFullscreen: F.value,
448
- isTooltip: x.value.showTooltip,
480
+ isFullscreen: S.value,
481
+ isTooltip: b.value.showTooltip,
449
482
  titles: { ...e.value.userOptions.buttonTitles },
450
483
  chartElement: k.value,
451
484
  position: e.value.userOptions.position,
452
485
  hasAnnotator: e.value.userOptions.buttons.annotator,
453
- isAnnotation: U.value,
486
+ isAnnotation: V.value,
454
487
  callbacks: e.value.userOptions.callbacks,
455
488
  printScale: e.value.userOptions.print.scale,
456
- onToggleFullscreen: me,
457
- onGeneratePdf: u(pe),
458
- onGenerateCsv: xe,
459
- onGenerateImage: u(be),
460
- onToggleTable: we,
461
- onToggleTooltip: ke,
462
- onToggleAnnotator: Q,
463
- style: ee({
464
- visibility: u(ye) ? u(Y) ? "visible" : "hidden" : "visible"
489
+ onToggleFullscreen: _e,
490
+ onGeneratePdf: u(ke),
491
+ onGenerateCsv: te,
492
+ onGenerateImage: u(Ce),
493
+ onToggleTable: Ae,
494
+ onToggleTooltip: Le,
495
+ onToggleAnnotator: le,
496
+ style: ae({
497
+ visibility: u(pe) ? u(K) ? "visible" : "hidden" : "visible"
465
498
  })
466
- }, ot({ _: 2 }, [
499
+ }, ze({ _: 2 }, [
467
500
  t.$slots.menuIcon ? {
468
501
  name: "menuIcon",
469
- fn: p(({ isOpen: l, color: a }) => [
470
- h(t.$slots, "menuIcon", P(N({ isOpen: l, color: a })), void 0, !0)
502
+ fn: c(({ isOpen: l, color: a }) => [
503
+ h(t.$slots, "menuIcon", M(D({ isOpen: l, color: a })), void 0, !0)
471
504
  ]),
472
505
  key: "0"
473
506
  } : void 0,
474
507
  t.$slots.optionTooltip ? {
475
508
  name: "optionTooltip",
476
- fn: p(() => [
509
+ fn: c(() => [
477
510
  h(t.$slots, "optionTooltip", {}, void 0, !0)
478
511
  ]),
479
512
  key: "1"
480
513
  } : void 0,
481
514
  t.$slots.optionPdf ? {
482
515
  name: "optionPdf",
483
- fn: p(() => [
516
+ fn: c(() => [
484
517
  h(t.$slots, "optionPdf", {}, void 0, !0)
485
518
  ]),
486
519
  key: "2"
487
520
  } : void 0,
488
521
  t.$slots.optionCsv ? {
489
522
  name: "optionCsv",
490
- fn: p(() => [
523
+ fn: c(() => [
491
524
  h(t.$slots, "optionCsv", {}, void 0, !0)
492
525
  ]),
493
526
  key: "3"
494
527
  } : void 0,
495
528
  t.$slots.optionImg ? {
496
529
  name: "optionImg",
497
- fn: p(() => [
530
+ fn: c(() => [
498
531
  h(t.$slots, "optionImg", {}, void 0, !0)
499
532
  ]),
500
533
  key: "4"
501
534
  } : void 0,
502
535
  t.$slots.optionTable ? {
503
536
  name: "optionTable",
504
- fn: p(() => [
537
+ fn: c(() => [
505
538
  h(t.$slots, "optionTable", {}, void 0, !0)
506
539
  ]),
507
540
  key: "5"
508
541
  } : void 0,
509
542
  t.$slots.optionFullscreen ? {
510
543
  name: "optionFullscreen",
511
- fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
512
- h(t.$slots, "optionFullscreen", P(N({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
544
+ fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
545
+ h(t.$slots, "optionFullscreen", M(D({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
513
546
  ]),
514
547
  key: "6"
515
548
  } : void 0,
516
549
  t.$slots.optionAnnotator ? {
517
550
  name: "optionAnnotator",
518
- fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
519
- h(t.$slots, "optionAnnotator", P(N({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
551
+ fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
552
+ h(t.$slots, "optionAnnotator", M(D({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
520
553
  ]),
521
554
  key: "7"
522
555
  } : void 0
523
556
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
524
557
  (i(), n("svg", {
525
558
  ref_key: "svgRef",
526
- ref: he,
527
- xmlns: u(dt),
528
- class: Le({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
529
- viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
530
- style: ee(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
559
+ ref: be,
560
+ xmlns: u(pt),
561
+ class: Se({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
562
+ viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${f.value.height <= 0 ? 10 : f.value.height}`,
563
+ style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
531
564
  }, [
532
- Ce(u(Me)),
565
+ oe(u(Ge)),
533
566
  t.$slots["chart-background"] ? (i(), n("foreignObject", {
534
567
  key: 0,
535
568
  x: s.value.left,
@@ -541,7 +574,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
541
574
  }
542
575
  }, [
543
576
  h(t.$slots, "chart-background", {}, void 0, !0)
544
- ], 8, $t)) : y("", !0),
577
+ ], 8, Rt)) : y("", !0),
545
578
  d("defs", null, [
546
579
  d("linearGradient", {
547
580
  id: `age_pyramid_left_${w.value}`,
@@ -553,12 +586,12 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
553
586
  d("stop", {
554
587
  offset: "0%",
555
588
  "stop-color": e.value.style.layout.bars.left.color
556
- }, null, 8, zt),
589
+ }, null, 8, Mt),
557
590
  d("stop", {
558
591
  offset: "100%",
559
- "stop-color": u(te)(u(Se)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
560
- }, null, 8, It)
561
- ], 8, St),
592
+ "stop-color": u(ie)(u(Oe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
593
+ }, null, 8, Dt)
594
+ ], 8, Pt),
562
595
  d("linearGradient", {
563
596
  id: `age_pyramid_right_${w.value}`,
564
597
  x1: "0%",
@@ -568,23 +601,23 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
568
601
  }, [
569
602
  d("stop", {
570
603
  offset: "0%",
571
- "stop-color": u(te)(u(Se)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
572
- }, null, 8, Ft),
604
+ "stop-color": u(ie)(u(Oe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
605
+ }, null, 8, Bt),
573
606
  d("stop", {
574
607
  offset: "100%",
575
608
  "stop-color": e.value.style.layout.bars.right.color
576
- }, null, 8, Rt)
577
- ], 8, Ot)
609
+ }, null, 8, Et)
610
+ ], 8, Nt)
578
611
  ]),
579
- (i(!0), n(L, null, $(T.value, (l, a) => (i(), n("g", null, [
612
+ (i(!0), n(T, null, z($.value, (l, a) => (i(), n("g", null, [
580
613
  d("rect", {
581
614
  x: l.left.x,
582
615
  y: l.left.y,
583
- width: u(f)(l.left.width <= 0 ? 1e-4 : l.left.width),
616
+ width: u(p)(l.left.width <= 0 ? 1e-4 : l.left.width),
584
617
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
585
618
  fill: e.value.style.layout.bars.gradient.underlayer,
586
619
  rx: e.value.style.layout.bars.borderRadius
587
- }, null, 8, Mt),
620
+ }, null, 8, Ut),
588
621
  d("rect", {
589
622
  x: l.left.x,
590
623
  y: l.left.y,
@@ -592,7 +625,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
592
625
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
593
626
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : l.left.color,
594
627
  rx: e.value.style.layout.bars.borderRadius
595
- }, null, 8, Pt),
628
+ }, null, 8, Gt),
596
629
  d("rect", {
597
630
  x: l.right.x,
598
631
  y: l.right.y,
@@ -600,7 +633,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
600
633
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
601
634
  fill: e.value.style.layout.bars.gradient.underlayer,
602
635
  rx: e.value.style.layout.bars.borderRadius
603
- }, null, 8, Nt),
636
+ }, null, 8, Ht),
604
637
  d("rect", {
605
638
  x: l.right.x,
606
639
  y: l.right.y,
@@ -608,10 +641,10 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
608
641
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
609
642
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
610
643
  rx: e.value.style.layout.bars.borderRadius
611
- }, null, 8, Et)
644
+ }, null, 8, Wt)
612
645
  ]))), 256)),
613
646
  d("g", null, [
614
- e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g", Dt, [
647
+ e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g", Vt, [
615
648
  d("text", {
616
649
  x: s.value.left,
617
650
  y: e.value.style.layout.dataLabels.sideTitles.fontSize,
@@ -619,7 +652,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
619
652
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
620
653
  "text-anchor": "start",
621
654
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
622
- }, C(e.value.translations.female), 9, Bt),
655
+ }, C(e.value.translations.female), 9, Xt),
623
656
  d("text", {
624
657
  x: s.value.right,
625
658
  y: e.value.style.layout.dataLabels.sideTitles.fontSize,
@@ -627,28 +660,28 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
627
660
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
628
661
  "text-anchor": "end",
629
662
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
630
- }, C(e.value.translations.male), 9, Gt)
663
+ }, C(e.value.translations.male), 9, jt)
631
664
  ])) : y("", !0),
632
- e.value.style.layout.dataLabels.yAxis.show ? (i(), n("g", Ht, [
633
- (i(!0), n(L, null, $(Xe.value, (l, a) => (i(), n(L, null, [
665
+ e.value.style.layout.dataLabels.yAxis.show ? (i(), n("g", Yt, [
666
+ (i(!0), n(T, null, z(Ke.value, (l, a) => (i(), n(T, null, [
634
667
  a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), n("text", {
635
668
  key: 0,
636
669
  x: s.value.centerX,
637
- y: s.value.top + s.value.height / O.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
670
+ y: s.value.top + s.value.height / R.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
638
671
  "text-anchor": "middle",
639
672
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
640
673
  fill: e.value.style.layout.dataLabels.yAxis.color,
641
674
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
642
- }, C(u(S)(
675
+ }, C(u(I)(
643
676
  e.value.style.layout.dataLabels.yAxis.formatter,
644
677
  l,
645
- u(z)({ v: l }),
678
+ u(O)({ v: l }),
646
679
  { datapoint: l, seriesIndex: a }
647
- )), 9, Ut)) : y("", !0)
680
+ )), 9, qt)) : y("", !0)
648
681
  ], 64))), 256))
649
682
  ])) : y("", !0),
650
- e.value.style.layout.dataLabels.xAxis.show ? (i(), n("g", Vt, [
651
- e.value.style.layout.grid.show ? (i(), n("g", Wt, [
683
+ e.value.style.layout.dataLabels.xAxis.show ? (i(), n("g", Jt, [
684
+ e.value.style.layout.grid.show ? (i(), n("g", Kt, [
652
685
  d("line", {
653
686
  x1: A.value.right[0].x,
654
687
  x2: A.value.right.at(-1).x,
@@ -657,7 +690,7 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
657
690
  stroke: e.value.style.layout.grid.stroke,
658
691
  "stroke-width": e.value.style.layout.grid.strokeWidth,
659
692
  "stroke-linecap": "round"
660
- }, null, 8, Xt),
693
+ }, null, 8, Qt),
661
694
  d("line", {
662
695
  x1: A.value.left[0].x,
663
696
  x2: A.value.left.at(-1).x,
@@ -666,9 +699,9 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
666
699
  stroke: e.value.style.layout.grid.stroke,
667
700
  "stroke-width": e.value.style.layout.grid.strokeWidth,
668
701
  "stroke-linecap": "round"
669
- }, null, 8, jt)
702
+ }, null, 8, Zt)
670
703
  ])) : y("", !0),
671
- (i(!0), n(L, null, $(A.value.right, (l, a) => (i(), n("g", null, [
704
+ (i(!0), n(T, null, z(A.value.right, (l, a) => (i(), n("g", null, [
672
705
  e.value.style.layout.grid.show ? (i(), n("line", {
673
706
  key: 0,
674
707
  x1: l.x,
@@ -678,9 +711,9 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
678
711
  stroke: e.value.style.layout.grid.stroke,
679
712
  "stroke-width": e.value.style.layout.grid.strokeWidth,
680
713
  "stroke-linecap": "round"
681
- }, null, 8, Yt)) : y("", !0)
714
+ }, null, 8, el)) : y("", !0)
682
715
  ]))), 256)),
683
- (i(!0), n(L, null, $(A.value.left, (l, a) => (i(), n("g", null, [
716
+ (i(!0), n(T, null, z(A.value.left, (l, a) => (i(), n("g", null, [
684
717
  e.value.style.layout.grid.show ? (i(), n("line", {
685
718
  key: 0,
686
719
  x1: l.x,
@@ -690,81 +723,81 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
690
723
  stroke: e.value.style.layout.grid.stroke,
691
724
  "stroke-width": e.value.style.layout.grid.strokeWidth,
692
725
  "stroke-linecap": "round"
693
- }, null, 8, qt)) : y("", !0)
726
+ }, null, 8, tl)) : y("", !0)
694
727
  ]))), 256)),
695
728
  d("g", {
696
729
  ref_key: "xAxisLabels",
697
- ref: X
730
+ ref: q
698
731
  }, [
699
- (i(!0), n(L, null, $(A.value.right, (l, a) => (i(), n("text", {
732
+ (i(!0), n(T, null, z(A.value.right, (l, a) => (i(), n("text", {
700
733
  class: "vue-ui-age-pyramid-x-axis-label",
701
734
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
702
735
  fill: e.value.style.layout.dataLabels.xAxis.color,
703
736
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
704
737
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
705
738
  transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
706
- }, C(u(S)(
739
+ }, C(u(I)(
707
740
  e.value.style.layout.dataLabels.xAxis.formatter,
708
741
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
709
- u(z)({
742
+ u(O)({
710
743
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
711
744
  }),
712
745
  { datapoint: l, seriesIndex: a }
713
- )), 9, Jt))), 256)),
714
- (i(!0), n(L, null, $(A.value.left, (l, a) => (i(), n("text", {
746
+ )), 9, ll))), 256)),
747
+ (i(!0), n(T, null, z(A.value.left, (l, a) => (i(), n("text", {
715
748
  class: "vue-ui-age-pyramid-x-axis-label",
716
749
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
717
750
  fill: e.value.style.layout.dataLabels.xAxis.color,
718
751
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
719
752
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
720
753
  transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
721
- }, C(u(S)(
754
+ }, C(u(I)(
722
755
  e.value.style.layout.dataLabels.xAxis.formatter,
723
756
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
724
- u(z)({
757
+ u(O)({
725
758
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
726
759
  }),
727
760
  { datapoint: l, seriesIndex: a }
728
- )), 9, Kt))), 256))
761
+ )), 9, al))), 256))
729
762
  ], 512),
730
763
  d("text", {
731
764
  x: s.value.right,
732
- y: c.value.height,
765
+ y: f.value.height,
733
766
  "text-anchor": "end",
734
767
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
735
768
  fill: e.value.style.layout.dataLabels.xAxis.color,
736
769
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
737
- }, C(e.value.style.layout.dataLabels.xAxis.translation), 9, Qt)
770
+ }, C(e.value.style.layout.dataLabels.xAxis.translation), 9, ol)
738
771
  ])) : y("", !0)
739
772
  ]),
740
- (i(!0), n(L, null, $(le.dataset, (l, a) => (i(), n("g", null, [
773
+ (i(!0), n(T, null, z(ue.dataset, (l, a) => (i(), n("g", null, [
741
774
  d("rect", {
742
775
  x: s.value.left,
743
- y: s.value.top + s.value.height / O.value * a - e.value.style.layout.bars.gap / 2,
776
+ y: s.value.top + s.value.height / R.value * a - e.value.style.layout.bars.gap / 2,
744
777
  width: s.value.width <= 0 ? 1e-4 : s.value.width,
745
- height: s.value.height / O.value <= 0 ? 1e-4 : s.value.height / O.value,
746
- fill: D.value !== null && D.value === a ? u(te)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
747
- onMouseover: (r) => Ke(a, l),
748
- onMouseleave: (r) => Je(a, l),
749
- onClick: (r) => qe(a, l)
750
- }, null, 40, Zt)
778
+ height: s.value.height / R.value <= 0 ? 1e-4 : s.value.height / R.value,
779
+ fill: U.value !== null && U.value === a ? u(ie)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
780
+ onMouseover: (r) => lt(a, l),
781
+ onMouseleave: (r) => tt(a, l),
782
+ onClick: (r) => et(a, l)
783
+ }, null, 40, sl)
751
784
  ]))), 256)),
752
- h(t.$slots, "svg", { svg: c.value }, void 0, !0)
753
- ], 14, Tt)),
754
- t.$slots.watermark ? (i(), n("div", el, [
755
- h(t.$slots, "watermark", P(N({ isPrinting: u(fe) || u(ge) })), void 0, !0)
785
+ h(t.$slots, "svg", { svg: f.value }, void 0, !0)
786
+ ], 14, Ft)),
787
+ t.$slots.watermark ? (i(), n("div", il, [
788
+ h(t.$slots, "watermark", M(D({ isPrinting: u(me) || u(we) })), void 0, !0)
756
789
  ])) : y("", !0),
757
- h(t.$slots, "legend", { legend: T.value }, void 0, !0),
790
+ h(t.$slots, "legend", { legend: $.value }, void 0, !0),
758
791
  t.$slots.source ? (i(), n("div", {
759
792
  key: 5,
760
793
  ref_key: "source",
761
- ref: ie,
794
+ ref: de,
762
795
  dir: "auto"
763
796
  }, [
764
797
  h(t.$slots, "source", {}, void 0, !0)
765
798
  ], 512)) : y("", !0),
766
- Ce(u(Ne), {
767
- show: x.value.showTooltip && V.value,
799
+ oe(u(Me), {
800
+ show: b.value.showTooltip && j.value,
768
801
  backgroundColor: e.value.style.tooltip.backgroundColor,
769
802
  color: e.value.style.tooltip.color,
770
803
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -775,61 +808,75 @@ const Ct = ["id"], Tt = ["xmlns", "viewBox"], $t = ["x", "y", "width", "height"]
775
808
  position: e.value.style.tooltip.position,
776
809
  offsetY: e.value.style.tooltip.offsetY,
777
810
  parent: k.value,
778
- content: W.value,
779
- isFullscreen: F.value,
811
+ content: Y.value,
812
+ isFullscreen: S.value,
780
813
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
781
814
  smooth: e.value.style.tooltip.smooth,
782
815
  backdropFilter: e.value.style.tooltip.backdropFilter
783
816
  }, {
784
- "tooltip-before": p(() => [
785
- h(t.$slots, "tooltip-before", P(N({ ...J.value })), void 0, !0)
817
+ "tooltip-before": c(() => [
818
+ h(t.$slots, "tooltip-before", M(D({ ...Z.value })), void 0, !0)
786
819
  ]),
787
- "tooltip-after": p(() => [
788
- h(t.$slots, "tooltip-after", P(N({ ...J.value })), void 0, !0)
820
+ "tooltip-after": c(() => [
821
+ h(t.$slots, "tooltip-after", M(D({ ...Z.value })), void 0, !0)
789
822
  ]),
790
823
  _: 3
791
824
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
792
- ae.value ? (i(), M(u(Fe), {
793
- key: 6,
794
- hideDetails: "",
795
- config: {
796
- open: x.value.showTable,
797
- maxHeight: 1e4,
798
- body: {
799
- backgroundColor: e.value.style.backgroundColor,
800
- color: e.value.style.color
801
- },
802
- head: {
803
- backgroundColor: e.value.style.backgroundColor,
804
- color: e.value.style.color
805
- }
806
- }
807
- }, {
808
- content: p(() => [
809
- (i(), M(u(Re), {
810
- key: `table_${re.value}`,
811
- colNames: H.value.colNames,
812
- head: H.value.head,
813
- body: H.value.body,
814
- config: H.value.config,
815
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
816
- onClose: o[0] || (o[0] = (l) => x.value.showTable = !1)
825
+ ne.value ? (i(), P(rt(E.value.component), vt({ key: 6 }, E.value.props, {
826
+ ref_key: "tableUnit",
827
+ ref: N,
828
+ onClose: o[2] || (o[2] = (l) => b.value.showTable = !1)
829
+ }), ze({
830
+ content: c(() => [
831
+ (i(), P(u(Be), {
832
+ key: `table_${ce.value}`,
833
+ colNames: W.value.colNames,
834
+ head: W.value.head,
835
+ body: W.value.body,
836
+ config: W.value.config,
837
+ title: e.value.table.useDialog ? "" : E.value.title,
838
+ withCloseButton: !e.value.table.useDialog,
839
+ onClose: o[1] || (o[1] = (l) => b.value.showTable = !1)
817
840
  }, {
818
- th: p(({ th: l }) => [
819
- Te(C(l), 1)
841
+ th: c(({ th: l }) => [
842
+ se(C(l), 1)
820
843
  ]),
821
- td: p(({ td: l }) => [
822
- Te(C(l), 1)
844
+ td: c(({ td: l }) => [
845
+ se(C(l), 1)
823
846
  ]),
824
847
  _: 1
825
- }, 8, ["colNames", "head", "body", "config", "title"]))
848
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
826
849
  ]),
827
- _: 1
828
- }, 8, ["config"])) : y("", !0),
829
- u(ve) ? (i(), M(At, { key: 7 })) : y("", !0)
830
- ], 46, Ct));
850
+ _: 2
851
+ }, [
852
+ e.value.table.useDialog ? {
853
+ name: "title",
854
+ fn: c(() => [
855
+ se(C(E.value.title), 1)
856
+ ]),
857
+ key: "0"
858
+ } : void 0,
859
+ e.value.table.useDialog ? {
860
+ name: "actions",
861
+ fn: c(() => [
862
+ d("button", {
863
+ tabindex: "0",
864
+ class: "vue-ui-user-options-button",
865
+ onClick: o[0] || (o[0] = (l) => te(e.value.userOptions.callbacks.csv))
866
+ }, [
867
+ oe(u(De), {
868
+ name: "excel",
869
+ stroke: E.value.props.color
870
+ }, null, 8, ["stroke"])
871
+ ])
872
+ ]),
873
+ key: "1"
874
+ } : void 0
875
+ ]), 1040)) : y("", !0),
876
+ u(fe) ? (i(), P(_t, { key: 7 })) : y("", !0)
877
+ ], 46, Ot));
831
878
  }
832
- }, cl = /* @__PURE__ */ Lt(tl, [["__scopeId", "data-v-3cd08557"]]);
879
+ }, ml = /* @__PURE__ */ It(ul, [["__scopeId", "data-v-97c2a040"]]);
833
880
  export {
834
- cl as default
881
+ ml as default
835
882
  };