vue-data-ui 3.16.0 → 3.16.2

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 (137) hide show
  1. package/README.md +1 -1
  2. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  3. package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
  4. package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-C4NWSOC8.js} +1 -1
  5. package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  6. package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-age-pyramid.js +1 -1
  9. package/dist/components/vue-ui-annotator.js +1 -1
  10. package/dist/components/vue-ui-bullet.js +1 -1
  11. package/dist/components/vue-ui-bump.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dag.js +1 -1
  19. package/dist/components/vue-ui-dashboard.js +1 -1
  20. package/dist/components/vue-ui-digits.js +1 -1
  21. package/dist/components/vue-ui-donut-evolution.js +1 -1
  22. package/dist/components/vue-ui-donut.js +1 -1
  23. package/dist/components/vue-ui-dumbbell.js +1 -1
  24. package/dist/components/vue-ui-flow.js +1 -1
  25. package/dist/components/vue-ui-funnel.js +1 -1
  26. package/dist/components/vue-ui-galaxy.js +1 -1
  27. package/dist/components/vue-ui-gauge.js +1 -1
  28. package/dist/components/vue-ui-geo.js +1 -1
  29. package/dist/components/vue-ui-gizmo.js +1 -1
  30. package/dist/components/vue-ui-heatmap.js +1 -1
  31. package/dist/components/vue-ui-history-plot.js +1 -1
  32. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  33. package/dist/components/vue-ui-kpi.js +1 -1
  34. package/dist/components/vue-ui-molecule.js +1 -1
  35. package/dist/components/vue-ui-mood-radar.js +1 -1
  36. package/dist/components/vue-ui-nested-donuts.js +1 -1
  37. package/dist/components/vue-ui-onion.js +1 -1
  38. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  39. package/dist/components/vue-ui-quadrant.js +1 -1
  40. package/dist/components/vue-ui-quick-chart.js +1 -1
  41. package/dist/components/vue-ui-radar.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +1 -0
  72. package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DFEJxVok.js} +63 -63
  73. package/dist/vue-data-ui.js +63 -63
  74. package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-TFhzm8cr.js} +1 -1
  75. package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-C67ZVh2l.js} +342 -341
  76. package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
  77. package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-LoAIeIFd.js} +1 -1
  78. package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-BCarORO1.js} +1 -1
  79. package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DJdFQLah.js} +240 -239
  80. package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-ChXrvtSj.js} +1 -1
  81. package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-DPYfcD5f.js} +1 -1
  82. package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-COQHkRXy.js} +1 -1
  83. package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-DT50sM_h.js} +1 -1
  84. package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-KgnoG_o8.js} +1 -1
  85. package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-BNET87VV.js} +1 -1
  86. package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-Di_HG3jq.js} +62 -62
  87. package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-CybP0Vom.js} +1 -1
  88. package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Ba-5TQ3a.js} +395 -394
  89. package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-64u0LX-J.js} +265 -264
  90. package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-Qy_lKcLT.js} +1 -1
  91. package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-HoOfjAv9.js} +1 -1
  92. package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-DByHtveP.js} +1 -1
  93. package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-DbD8-S5s.js} +1 -1
  94. package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-C9F0Fva2.js} +1 -1
  95. package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-Bn-_i_L8.js} +1 -1
  96. package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-D2mUKXiE.js} +1 -1
  97. package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-gLY-fZmR.js} +494 -482
  98. package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-JWCz3Dsa.js} +1 -1
  99. package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-B58pqRYq.js} +438 -437
  100. package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-CXeBMtyK.js} +1 -1
  101. package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-CbadY7E8.js} +1 -1
  102. package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-3bJn1U3y.js} +1 -1
  103. package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-BbuQH4SB.js} +284 -283
  104. package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-78rfipI0.js} +1 -1
  105. package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-BW8kfcgB.js} +1 -1
  106. package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-Cq1Ij3or.js} +556 -555
  107. package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DDq7LxP3.js} +360 -359
  108. package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-CL5dq6Ph.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-ZsHgSA93.js} +1 -1
  110. package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CnRlC_w1.js} +1 -1
  111. package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-pMBjF5ps.js} +1 -1
  112. package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-D_1tBt3O.js} +479 -466
  113. package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-Ber3eG5N.js} +1 -1
  114. package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-DUz9LWxF.js} +1 -1
  115. package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-DRjnVH0Z.js} +1 -1
  116. package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DHinf-33.js} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-D-jZIHxA.js} +1 -1
  118. package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-CtRskCcH.js} +439 -438
  119. package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-gslNTicq.js} +1 -1
  120. package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-D5JI4liZ.js} +212 -211
  121. package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-BWvPiDVJ.js} +363 -362
  122. package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-BW1hOsyh.js} +1 -1
  123. package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DOE47Jpg.js} +2 -2
  124. package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-DwIOn22D.js} +1 -1
  126. package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-Dk8PXXJX.js} +1 -1
  127. package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-CcYyxhEU.js} +1 -1
  128. package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-Ch-cO4qI.js} +1 -1
  129. package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-Cflb1VOc.js} +388 -387
  130. package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-JuTN5MhL.js} +1 -1
  131. package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-BzXCA7Wf.js} +1 -1
  132. package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-C4k5LTYe.js} +1 -1
  133. package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-_1e3qZ-5.js} +1 -1
  134. package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-DF2i7jxF.js} +956 -955
  135. package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
  136. package/package.json +1 -1
  137. package/dist/ColorPicker-DQ5sdRrl.js +0 -244
@@ -1,29 +1,29 @@
1
- import { defineAsyncComponent as O, computed as h, ref as r, toRefs as Ft, watch as Z, shallowRef as He, onMounted as Dt, onBeforeUnmount as We, watchEffect as Rt, openBlock as i, createElementBlock as v, unref as n, normalizeStyle as ee, normalizeClass as Ke, createElementVNode as c, toDisplayString as T, createBlock as D, createCommentVNode as g, withCtx as f, renderSlot as y, normalizeProps as w, guardReactiveProps as k, createSlots as Xe, createVNode as fe, Fragment as I, renderList as R, resolveDynamicComponent as Mt, mergeProps as Nt, createTextVNode as he, nextTick as ge } from "vue";
2
- import { j as Et, t as je, o as Ye, q as Bt, K as m, X as Ut, u as pe, v as qe, k as M, l as N, a0 as Vt, a1 as Gt, T as Ht, U as Wt, a3 as Kt } from "./lib-DBptbyyI.js";
3
- import { t as Je, u as Xt } from "./useResponsive-DfdjqQps.js";
4
- import { u as jt } from "./useConfig-DO94Aj5s.js";
5
- import { u as Yt, B as qt } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as Jt } from "./usePrinter-CEpYU3r5.js";
7
- import { u as Qt } from "./useSvgExport-ByUukOZt.js";
8
- import { u as be } from "./useNestedProp-Bf5XFbs8.js";
9
- import { u as Zt } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as el } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as tl } from "./useChartAccessibility-9icAAmYg.js";
12
- import { u as ll } from "./useTimeLabelCollider-CIsgDrl9.js";
13
- import al from "./img-LXxMLmCg.js";
14
- import ol from "./Title-BeMKE1cj.js";
15
- import sl from "./vue_ui_age_pyramid-8H8WSL7J.js";
16
- import { A as il } from "./A11yDataTable-KcVAX2cP.js";
17
- import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = ["xmlns", "viewBox", "aria-describedby"], yl = ["x", "y", "width", "height"], cl = ["id"], fl = ["stop-color"], hl = ["stop-color"], gl = ["id"], pl = ["stop-color"], bl = ["stop-color"], ml = ["x", "y", "width", "height", "fill", "rx"], xl = ["x", "y", "width", "height", "fill", "rx"], wl = ["x", "y", "width", "height", "fill", "rx"], kl = ["x", "y", "width", "height", "fill", "rx"], Cl = { key: 0 }, Al = ["x", "y", "fill", "font-size", "font-weight"], Tl = ["x", "y", "fill", "font-size", "font-weight"], $l = { key: 1 }, Ll = ["x", "y", "font-size", "fill", "font-weight"], _l = { key: 2 }, Sl = { key: 0 }, Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Dl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Rl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], Nl = {
1
+ import { defineAsyncComponent as I, computed as g, ref as r, toRefs as Mt, watch as ee, shallowRef as We, onMounted as Nt, onBeforeUnmount as Ke, watchEffect as Et, openBlock as u, createElementBlock as v, unref as n, normalizeStyle as te, normalizeClass as Xe, createElementVNode as c, toDisplayString as T, createBlock as R, createCommentVNode as p, withCtx as f, renderSlot as y, normalizeProps as w, guardReactiveProps as k, createSlots as je, createVNode as he, Fragment as O, renderList as M, resolveDynamicComponent as Bt, mergeProps as Ut, createTextVNode as ge, nextTick as pe } from "vue";
2
+ import { j as Vt, t as Ye, o as qe, q as Gt, K as x, X as Ht, u as be, v as Je, k as N, l as E, a0 as Wt, a1 as Kt, T as Xt, U as jt, a3 as Yt } from "./lib-DBptbyyI.js";
3
+ import { t as Qe, u as qt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Jt } from "./useConfig-DO94Aj5s.js";
5
+ import { u as Qt, B as Zt } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as el } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as tl } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as me } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as ll } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as al } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as ol } from "./useChartAccessibility-9icAAmYg.js";
12
+ import { u as sl } from "./useTimeLabelCollider-CIsgDrl9.js";
13
+ import il from "./img-LXxMLmCg.js";
14
+ import ul from "./Title-BeMKE1cj.js";
15
+ import nl from "./vue_ui_age_pyramid-8H8WSL7J.js";
16
+ import { A as rl } from "./A11yDataTable-KcVAX2cP.js";
17
+ import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const dl = ["id"], yl = ["id"], cl = { style: { position: "relative" } }, fl = ["xmlns", "viewBox", "aria-describedby"], hl = ["x", "y", "width", "height"], gl = ["id"], pl = ["stop-color"], bl = ["stop-color"], ml = ["id"], xl = ["stop-color"], wl = ["stop-color"], kl = ["x", "y", "width", "height", "fill", "rx"], Cl = ["x", "y", "width", "height", "fill", "rx"], Al = ["x", "y", "width", "height", "fill", "rx"], Tl = ["x", "y", "width", "height", "fill", "rx"], $l = { key: 0 }, Ll = ["x", "y", "fill", "font-size", "font-weight"], _l = ["x", "y", "fill", "font-size", "font-weight"], Sl = { key: 1 }, Il = ["x", "y", "font-size", "fill", "font-weight"], Ol = { key: 2 }, Pl = { key: 0 }, zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Nl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], El = ["x", "y", "font-size", "fill", "font-weight"], Bl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], Ul = {
19
19
  key: 0,
20
20
  style: { position: "absolute", top: "100%", left: "0", width: "100%" },
21
21
  "data-dom-to-png-ignore": "",
22
22
  "aria-hidden": "true"
23
- }, El = {
23
+ }, Vl = {
24
24
  key: 5,
25
25
  class: "vue-data-ui-watermark"
26
- }, Bl = {
26
+ }, Gl = {
27
27
  __name: "vue-ui-age-pyramid",
28
28
  props: {
29
29
  config: {
@@ -40,8 +40,8 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
40
40
  }
41
41
  },
42
42
  emits: ["copyAlt"],
43
- setup(me, { expose: Qe, emit: Ze }) {
44
- const et = O(() => import("./Tooltip-Bf-kM3_A.js")), tt = O(() => import("./BaseIcon-Cb3zzG6s.js")), lt = O(() => import("./vue-ui-accordion-nvggWcGN.js")), at = O(() => import("./DataTable-DT2kIdQ6.js")), ot = O(() => import("./PenAndPaper-DARlvvKW.js")), st = O(() => import("./UserOptions-DWHf8jyO.js")), it = O(() => import("./PackageVersion-IIGK_e2C.js")), ut = O(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_age_pyramid: nt } = jt(), { isThemeValid: rt, warnInvalidTheme: vt } = Zt(), p = me, dt = Ze, xe = h(() => !!p.dataset && p.dataset.length), C = r(Et()), V = r(!1), te = r(""), E = r(null), we = r(0), $ = r(null), ke = r(null), Ce = r(null), Ae = r(null), Te = r(0), $e = r(0), le = r(null), G = r(null), ae = r(null), Y = r(!1), q = r(!1), L = r(null), Le = r({ x: 0, y: 0 }), H = r("pointer"), oe = r(!1), e = r(ue()), W = h(() => e.value.userOptions.useCursorPointer), yt = h(() => je({
43
+ setup(xe, { expose: Ze, emit: et }) {
44
+ const tt = I(() => import("./Tooltip-Bf-kM3_A.js")), lt = I(() => import("./BaseIcon-Cb3zzG6s.js")), at = I(() => import("./vue-ui-accordion-nvggWcGN.js")), ot = I(() => import("./DataTable-DT2kIdQ6.js")), st = I(() => import("./PenAndPaper-Ct3qJ4lA.js")), it = I(() => import("./UserOptions-rW2fRf3V.js")), ut = I(() => import("./PackageVersion-C4NWSOC8.js")), nt = I(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_age_pyramid: rt } = Jt(), { isThemeValid: vt, warnInvalidTheme: dt } = ll(), b = xe, yt = et, we = g(() => !!b.dataset && b.dataset.length), C = r(Vt()), V = r(!1), le = r(""), P = r(null), ke = r(0), $ = r(null), Ce = r(null), Ae = r(null), Te = r(null), $e = r(0), Le = r(0), ae = r(null), G = r(null), oe = r(null), q = r(!1), J = r(!1), L = r(null), _e = r({ x: 0, y: 0 }), H = r("pointer"), se = r(!1), e = r(ne()), W = g(() => e.value.userOptions.useCursorPointer), ct = g(() => Ye({
45
45
  defaultConfig: {
46
46
  userOptions: { show: !1 },
47
47
  table: { show: !1 },
@@ -73,11 +73,11 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
73
73
  }
74
74
  },
75
75
  userConfig: e.value.skeletonConfig ?? {}
76
- })), { loading: _e, FINAL_DATASET: J, manualLoading: se } = Yt({
77
- ...Ft(p),
76
+ })), { loading: Se, FINAL_DATASET: Q, manualLoading: ie } = Qt({
77
+ ...Mt(b),
78
78
  FINAL_CONFIG: e,
79
- prepareConfig: ue,
80
- skeletonDataset: p.config?.skeletonDataset ?? [
79
+ prepareConfig: ne,
80
+ skeletonDataset: b.config?.skeletonDataset ?? [
81
81
  ["_", 9, 2, 2],
82
82
  ["_", 8, 3, 3],
83
83
  ["_", 7, 5, 5],
@@ -89,100 +89,100 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
89
89
  ["_", 1, 89, 89],
90
90
  ["_", 0, 144, 144]
91
91
  ],
92
- skeletonConfig: je({
92
+ skeletonConfig: Ye({
93
93
  defaultConfig: e.value,
94
- userConfig: yt.value
94
+ userConfig: ct.value
95
95
  })
96
- }), { userOptionsVisible: ie, setUserOptionsVisibility: Se, keepUserOptionState: Oe } = el({ config: e.value }), { svgRef: P } = tl({ config: e.value.style.title });
97
- function ue() {
98
- const t = be({
99
- userConfig: p.config,
100
- defaultConfig: nt
96
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: Ie, keepUserOptionState: Oe } = al({ config: e.value }), { svgRef: z } = ol({ config: e.value.style.title });
97
+ function ne() {
98
+ const t = me({
99
+ userConfig: b.config,
100
+ defaultConfig: rt
101
101
  }), a = t.theme;
102
102
  if (!a) return t;
103
- if (!rt.value(t))
104
- return vt(t), t;
105
- const l = be({
106
- userConfig: sl[a] || p.config,
103
+ if (!vt.value(t))
104
+ return dt(t), t;
105
+ const l = me({
106
+ userConfig: nl[a] || b.config,
107
107
  defaultConfig: t
108
108
  });
109
- return be({
110
- userConfig: p.config,
109
+ return me({
110
+ userConfig: b.config,
111
111
  defaultConfig: l
112
112
  });
113
113
  }
114
- Z(() => p.config, (t) => {
115
- _e.value || (e.value = ue()), ie.value = !e.value.userOptions.showOnChartHover, Ie(), Te.value += 1, $e.value += 1, A.value.showTable = e.value.table.show, A.value.showTooltip = e.value.style.tooltip.show;
116
- }, { deep: !0 }), Z(() => p.dataset, (t) => {
117
- Array.isArray(t) && t.length > 0 && (se.value = !1);
114
+ ee(() => b.config, (t) => {
115
+ Se.value || (e.value = ne()), ue.value = !e.value.userOptions.showOnChartHover, Pe(), $e.value += 1, Le.value += 1, A.value.showTable = e.value.table.show, A.value.showTooltip = e.value.style.tooltip.show;
116
+ }, { deep: !0 }), ee(() => b.dataset, (t) => {
117
+ Array.isArray(t) && t.length > 0 && (ie.value = !1);
118
118
  }, { deep: !0 });
119
- const _ = He(null), B = He(null);
120
- Dt(() => {
121
- Ie();
119
+ const _ = We(null), B = We(null);
120
+ Nt(() => {
121
+ Pe();
122
122
  });
123
- const ct = h(() => !!e.value.debug);
124
- function Ie() {
125
- if (Ye(p.dataset) && (Bt({
123
+ const ft = g(() => !!e.value.debug);
124
+ function Pe() {
125
+ if (qe(b.dataset) && (Gt({
126
126
  componentName: "VueUiAgePyramid",
127
127
  type: "dataset",
128
- debug: ct.value
129
- }), se.value = !0), Ye(p.dataset) || (se.value = e.value.loading), e.value.responsive) {
130
- const t = Je(() => {
131
- const { width: a, height: l } = Xt({
128
+ debug: ft.value
129
+ }), ie.value = !0), qe(b.dataset) || (ie.value = e.value.loading), e.value.responsive) {
130
+ const t = Qe(() => {
131
+ const { width: a, height: l } = qt({
132
132
  chart: $.value,
133
- title: e.value.style.title.text ? ke.value : null,
134
- source: Ce.value,
135
- noTitle: Ae.value
133
+ title: e.value.style.title.text ? Ce.value : null,
134
+ source: Ae.value,
135
+ noTitle: Te.value
136
136
  });
137
137
  requestAnimationFrame(() => {
138
- b.value.width = a, b.value.height = l;
138
+ m.value.width = a, m.value.height = l;
139
139
  });
140
140
  });
141
141
  _.value && (B.value && _.value.unobserve(B.value), _.value.disconnect()), _.value = new ResizeObserver(t), B.value = $.value.parentNode, _.value.observe(B.value);
142
142
  }
143
143
  }
144
- We(() => {
144
+ Ke(() => {
145
145
  _.value && (B.value && _.value.unobserve(B.value), _.value.disconnect());
146
146
  });
147
- const { isPrinting: ne, isImaging: re, generatePdf: Pe, generateImage: ze } = Jt({
147
+ const { isPrinting: re, isImaging: ve, generatePdf: ze, generateImage: Fe } = el({
148
148
  elementId: `vue-ui-age-pyramid_${C.value}`,
149
149
  fileName: e.value.style.title.text || "vue-ui-age-pyramid",
150
150
  options: e.value.userOptions.print
151
- }), ft = h(() => e.value.userOptions.show && !e.value.style.title.text), A = r({
151
+ }), ht = g(() => e.value.userOptions.show && !e.value.style.title.text), A = r({
152
152
  showTable: e.value.table.show,
153
153
  showTooltip: e.value.style.tooltip.show
154
154
  });
155
- Z(e, () => {
155
+ ee(e, () => {
156
156
  A.value = {
157
157
  showTable: e.value.table.show,
158
158
  showTooltip: e.value.style.tooltip.show
159
159
  };
160
160
  }, { immediate: !0 });
161
- const b = r({
161
+ const m = r({
162
162
  height: e.value.style.height,
163
163
  width: e.value.style.width
164
- }), ht = h(() => b.value.width), gt = h(() => b.value.height), Q = r(0), pt = Je((t) => {
165
- Q.value = t;
164
+ }), gt = g(() => m.value.width), pt = g(() => m.value.height), Z = r(0), bt = Qe((t) => {
165
+ Z.value = t;
166
166
  }, 100);
167
- Rt((t) => {
168
- const a = le.value;
167
+ Et((t) => {
168
+ const a = ae.value;
169
169
  if (!a) return;
170
170
  const l = new ResizeObserver((o) => {
171
- pt(o[0].contentRect.height);
171
+ bt(o[0].contentRect.height);
172
172
  });
173
173
  l.observe(a), t(() => l.disconnect());
174
- }), We(() => {
175
- Q.value = 0;
174
+ }), Ke(() => {
175
+ Z.value = 0;
176
176
  });
177
- const s = h(() => {
178
- const t = b.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, a = e.value.style.layout.padding.left, l = b.value.width - e.value.style.layout.padding.right;
177
+ const s = g(() => {
178
+ const t = m.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, a = e.value.style.layout.padding.left, l = m.value.width - e.value.style.layout.padding.right;
179
179
  return {
180
180
  top: e.value.style.layout.padding.top + e.value.style.layout.dataLabels.sideTitles.fontSize + e.value.style.layout.dataLabels.sideTitles.offsetY + 12,
181
181
  left: a,
182
182
  right: l,
183
- bottom: b.value.height - e.value.style.layout.padding.bottom - Q.value,
183
+ bottom: m.value.height - e.value.style.layout.padding.bottom - Z.value,
184
184
  width: t,
185
- height: b.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Q.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
185
+ height: m.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Z.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
186
186
  centerX: e.value.style.layout.padding.left + t / 2,
187
187
  leftChart: {
188
188
  width: t / 2 - e.value.style.layout.centerSlit.width,
@@ -193,16 +193,16 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
193
193
  left: a + t / 2 + e.value.style.layout.centerSlit.width
194
194
  }
195
195
  };
196
- }), bt = h(() => J.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = h(() => {
197
- const t = mt(K.value / 5), a = [], l = [];
196
+ }), mt = g(() => Q.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = g(() => {
197
+ const t = xt(K.value / 5), a = [], l = [];
198
198
  for (let o = 0; o <= 5; o += 1) {
199
- const d = t * o, u = t * (o - 5);
199
+ const d = t * o, i = t * (o - 5);
200
200
  a.push({
201
201
  value: d,
202
202
  x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + d / K.value * s.value.leftChart.width
203
203
  }), l.push({
204
- value: Math.abs(u),
205
- x: s.value.left + s.value.width / 2 + u / K.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
204
+ value: Math.abs(i),
205
+ x: s.value.left + s.value.width / 2 + i / K.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
206
206
  });
207
207
  }
208
208
  return {
@@ -210,13 +210,13 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
210
210
  left: l
211
211
  };
212
212
  });
213
- function mt(t) {
213
+ function xt(t) {
214
214
  if (t === 0) return 0;
215
215
  const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
216
216
  let o;
217
217
  return t < 0, o = Math.round(t / l) * l, o;
218
218
  }
219
- const K = h(() => Math.max(...J.value.flatMap((t) => t.slice(-2).map((a) => m(a))))), U = h(() => J.value.length), xt = h(() => J.value.map((t) => ({
219
+ const K = g(() => Math.max(...Q.value.flatMap((t) => t.slice(-2).map((a) => x(a))))), U = g(() => Q.value.length), wt = g(() => Q.value.map((t) => ({
220
220
  segment: t[0],
221
221
  age: t[1],
222
222
  left: {
@@ -227,7 +227,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
227
227
  value: t[3],
228
228
  proportionToMax: t[3] / K.value
229
229
  }
230
- }))), x = h(() => xt.value.map((t, a) => {
230
+ }))), h = g(() => wt.value.map((t, a) => {
231
231
  const l = s.value.top + s.value.height / U.value * a, o = s.value.height / U.value - e.value.style.layout.bars.gap;
232
232
  return {
233
233
  segment: t.segment,
@@ -237,7 +237,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
237
237
  y: l,
238
238
  color: e.value.style.layout.bars.left.color,
239
239
  x: s.value.leftChart.right - t.left.proportionToMax * s.value.leftChart.width,
240
- width: m(t.left.proportionToMax * s.value.leftChart.width),
240
+ width: x(t.left.proportionToMax * s.value.leftChart.width),
241
241
  height: o
242
242
  },
243
243
  right: {
@@ -245,41 +245,41 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
245
245
  y: l,
246
246
  color: e.value.style.layout.bars.right.color,
247
247
  x: s.value.rightChart.left,
248
- width: m(t.right.proportionToMax * s.value.rightChart.width),
248
+ width: x(t.right.proportionToMax * s.value.rightChart.width),
249
249
  height: o
250
250
  }
251
251
  };
252
- })), ve = r(null);
253
- function de(t) {
252
+ })), de = r(null);
253
+ function ye(t) {
254
254
  const [a, l, o, d] = t;
255
255
  return { segment: a, index: l, left: o, right: d };
256
256
  }
257
- function Fe(t, a) {
258
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: de(a), seriesIndex: t });
257
+ function De(t, a) {
258
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: ye(a), seriesIndex: t });
259
259
  }
260
- function wt(t, a) {
261
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: de(a), seriesIndex: t }), !(H.value === "keyboard" && L.value === t) && (E.value = null, V.value = !1);
260
+ function kt(t, a) {
261
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ye(a), seriesIndex: t }), !(H.value === "keyboard" && L.value === t) && (P.value = null, V.value = !1);
262
262
  }
263
- function kt(t) {
264
- if (!P.value) return;
265
- const a = x.value[t];
263
+ function Ct(t) {
264
+ if (!z.value) return;
265
+ const a = h.value[t];
266
266
  if (!a) return;
267
- const l = Kt(
267
+ const l = Yt(
268
268
  s.value.left + s.value.width / 2,
269
269
  a.left.y + a.left.height / 2,
270
- P.value
270
+ z.value
271
271
  );
272
- l && (Le.value = l);
272
+ l && (_e.value = l);
273
273
  }
274
- function De(t, a, l = "pointer") {
275
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: de(a), seriesIndex: t }), E.value = t, L.value = t, H.value = l, ve.value = {
274
+ function Re(t, a, l = "pointer") {
275
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: ye(a), seriesIndex: t }), P.value = t, L.value = t, H.value = l, de.value = {
276
276
  datapoint: a,
277
277
  seriesIndex: t,
278
- series: x.value,
278
+ series: h.value,
279
279
  config: e.value
280
280
  };
281
281
  const o = e.value.style.tooltip.customFormat;
282
- if (Ht(o) && Wt(() => o({
282
+ if (Xt(o) && jt(() => o({
283
283
  seriesIndex: t,
284
284
  datapoint: {
285
285
  segment: a[0],
@@ -287,10 +287,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
287
287
  left: a[2],
288
288
  right: a[3]
289
289
  },
290
- series: x.value,
290
+ series: h.value,
291
291
  config: e.value
292
292
  })))
293
- te.value = o({
293
+ le.value = o({
294
294
  seriesIndex: t,
295
295
  datapoint: {
296
296
  segment: a[0],
@@ -298,58 +298,58 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
298
298
  left: a[2],
299
299
  right: a[3]
300
300
  },
301
- series: x.value,
301
+ series: h.value,
302
302
  config: e.value
303
303
  });
304
304
  else {
305
305
  let d = "";
306
- const u = x.value[t];
307
- d += `<div><b>${u.segment}</b></div>`, d += `<div>${e.value.translations.age}: ${M(
306
+ const i = h.value[t];
307
+ d += `<div><b>${i.segment}</b></div>`, d += `<div>${e.value.translations.age}: ${N(
308
308
  e.value.style.layout.dataLabels.yAxis.formatter,
309
- m(u.age),
310
- N({ v: m(u.age) }),
309
+ x(i.age),
310
+ E({ v: x(i.age) }),
311
311
  { datapoint: a, seriesIndex: t }
312
- )}</div>`, d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, d += '<div style="display:flex; flex-direction:row;gap:12px">', d += `<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_${C.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${M(
312
+ )}</div>`, d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, d += '<div style="display:flex; flex-direction:row;gap:12px">', d += `<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_${C.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${N(
313
313
  e.value.style.layout.dataLabels.xAxis.formatter,
314
- m(u.left.value),
315
- N({ v: m(u.left.value) }),
314
+ x(i.left.value),
315
+ E({ v: x(i.left.value) }),
316
316
  { datapoint: a, seriesIndex: t }
317
- )}</b></div></div>`, d += `<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_${C.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${M(
317
+ )}</b></div></div>`, d += `<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_${C.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${N(
318
318
  e.value.style.layout.dataLabels.xAxis.formatter,
319
- m(u.right.value),
320
- N({ v: m(u.right.value) }),
319
+ x(i.right.value),
320
+ E({ v: x(i.right.value) }),
321
321
  { datapoint: a, seriesIndex: t }
322
- )}</b></div></div>`, d += "</div>", d += `<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>${M(
322
+ )}</b></div></div>`, d += "</div>", d += `<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>${N(
323
323
  e.value.style.layout.dataLabels.xAxis.formatter,
324
- m(u.right.value) + m(u.left.value),
325
- N({ v: m(u.right.value) + m(u.left.value) }),
324
+ x(i.right.value) + x(i.left.value),
325
+ E({ v: x(i.right.value) + x(i.left.value) }),
326
326
  { datapoint: a, seriesIndex: t }
327
- )}</b></div></div>`, d += "</div>", te.value = `<div>${d}</div>`;
327
+ )}</b></div></div>`, d += "</div>", le.value = `<div>${d}</div>`;
328
328
  }
329
- V.value = !0, l === "keyboard" && ge(() => {
330
- kt(t);
329
+ V.value = !0, l === "keyboard" && pe(() => {
330
+ Ct(t);
331
331
  });
332
332
  }
333
- function ye(t = null) {
334
- ge(() => {
335
- const a = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = p.dataset.map((u) => [
336
- u[0],
337
- u[1],
338
- u[2],
339
- u[3],
340
- u[2] ?? 0 + u[3] ?? 0
341
- ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), d = Vt(o);
342
- t ? t(d) : Gt({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
333
+ function ce(t = null) {
334
+ pe(() => {
335
+ const a = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = b.dataset.map((i) => [
336
+ i[0],
337
+ i[1],
338
+ i[2],
339
+ i[3],
340
+ i[2] ?? 0 + i[3] ?? 0
341
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), d = Wt(o);
342
+ t ? t(d) : Kt({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
343
343
  });
344
344
  }
345
- const z = h(() => {
345
+ const F = g(() => {
346
346
  const t = [
347
347
  e.value.translations.year,
348
348
  e.value.translations.age,
349
349
  e.value.translations.female,
350
350
  e.value.translations.male,
351
351
  e.value.translations.total
352
- ], a = p.dataset.map((o) => [
352
+ ], a = b.dataset.map((o) => [
353
353
  o[0],
354
354
  o[1],
355
355
  o[2] == null ? "" : o[2].toLocaleString(),
@@ -369,57 +369,57 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
369
369
  breakpoint: e.value.table.responsiveBreakpoint
370
370
  };
371
371
  return { head: t, body: a, config: l, colNames: t };
372
- }), F = r(!1);
373
- function Re(t) {
374
- F.value = t, we.value += 1;
372
+ }), D = r(!1);
373
+ function Me(t) {
374
+ D.value = t, ke.value += 1;
375
375
  }
376
- function Me() {
376
+ function Ne() {
377
377
  A.value.showTable = !A.value.showTable;
378
378
  }
379
- function Ne() {
379
+ function Ee() {
380
380
  A.value.showTooltip = !A.value.showTooltip;
381
381
  }
382
382
  const X = r(!1);
383
- function ce() {
383
+ function fe() {
384
384
  X.value = !X.value;
385
385
  }
386
- async function Ct({ scale: t = 2 } = {}) {
386
+ async function At({ scale: t = 2 } = {}) {
387
387
  if (!$.value) return;
388
- const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: d, base64: u } = await al({ domElement: $.value, base64: !0, img: !0, scale: t });
388
+ const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: d, base64: i } = await il({ domElement: $.value, base64: !0, img: !0, scale: t });
389
389
  return {
390
390
  imageUri: d,
391
- base64: u,
391
+ base64: i,
392
392
  title: e.value.style.title.text,
393
393
  width: a,
394
394
  height: l,
395
395
  aspectRatio: o
396
396
  };
397
397
  }
398
- const At = r([]), Tt = r({ start: 0, end: x.value.length });
399
- ll({
400
- timeLabelsEls: le,
401
- timeLabels: At,
402
- slicer: Tt,
398
+ const Tt = r([]), $t = r({ start: 0, end: h.value.length });
399
+ sl({
400
+ timeLabelsEls: ae,
401
+ timeLabels: Tt,
402
+ slicer: $t,
403
403
  configRef: e,
404
404
  rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
405
405
  autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
406
406
  isAutoSize: !1,
407
- width: ht,
408
- height: gt,
407
+ width: gt,
408
+ height: pt,
409
409
  targetClass: ".vue-ui-age-pyramid-x-axis-label",
410
410
  rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
411
411
  });
412
- const j = h(() => {
412
+ const j = g(() => {
413
413
  const t = e.value.table.useDialog && !e.value.table.show, a = A.value.showTable;
414
414
  return {
415
- component: t ? ut : lt,
415
+ component: t ? nt : at,
416
416
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
417
417
  props: t ? {
418
418
  backgroundColor: e.value.table.th.backgroundColor,
419
419
  color: e.value.table.th.color,
420
420
  headerColor: e.value.table.th.color,
421
421
  headerBg: e.value.table.th.backgroundColor,
422
- isFullscreen: F.value,
422
+ isFullscreen: D.value,
423
423
  fullscreenParent: $.value,
424
424
  forcedWidth: Math.min(800, window.innerWidth * 0.8),
425
425
  isCursorPointer: W.value
@@ -440,121 +440,122 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
440
440
  }
441
441
  };
442
442
  });
443
- Z(() => A.value.showTable, (t) => {
443
+ ee(() => A.value.showTable, (t) => {
444
444
  e.value.table.show || (t && e.value.table.useDialog && G.value ? G.value.open() : "close" in G.value && G.value.close());
445
445
  });
446
- function Ee() {
447
- A.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
446
+ function Be() {
447
+ A.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
448
448
  }
449
- const $t = h(() => e.value.style.backgroundColor), Lt = h(() => e.value.style.title), { exportSvg: _t, getSvg: St } = Qt({
450
- svg: P,
451
- title: Lt,
452
- backgroundColor: $t
449
+ const Lt = g(() => e.value.style.backgroundColor), _t = g(() => e.value.style.title), { exportSvg: St, getSvg: It } = tl({
450
+ svg: z,
451
+ title: _t,
452
+ backgroundColor: Lt
453
453
  });
454
- async function Be({ isCb: t }) {
455
- q.value = !0, await ge();
454
+ async function Ue({ isCb: t }) {
455
+ J.value = !0, await pe();
456
456
  try {
457
457
  if (t) {
458
- const { blob: a, url: l, text: o, dataUrl: d } = await St();
458
+ const { blob: a, url: l, text: o, dataUrl: d } = await It();
459
459
  await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: d }));
460
460
  } else
461
- await Promise.resolve(_t());
461
+ await Promise.resolve(St());
462
462
  } finally {
463
- q.value = !1;
463
+ J.value = !1;
464
464
  }
465
465
  }
466
466
  function Ot(t) {
467
467
  if (t?.stage === "start") {
468
- Y.value = !0;
468
+ q.value = !0;
469
469
  return;
470
470
  }
471
471
  if (t?.stage === "end") {
472
- Y.value = !1;
472
+ q.value = !1;
473
473
  return;
474
474
  }
475
- ze();
475
+ Fe();
476
476
  }
477
- async function Ue() {
478
- if (dt("copyAlt", {
477
+ async function Ve() {
478
+ if (yt("copyAlt", {
479
479
  config: e.value,
480
- dataset: x.value
480
+ dataset: h.value
481
481
  }), !e.value.userOptions.callbacks.altCopy) {
482
482
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
483
483
  return;
484
484
  }
485
485
  await Promise.resolve(e.value.userOptions.callbacks.altCopy({
486
486
  config: e.value,
487
- dataset: x.value
487
+ dataset: h.value
488
488
  }));
489
489
  }
490
- function It() {
491
- oe.value = !0;
492
- }
493
490
  function Pt() {
494
- E.value = null, L.value = null, H.value = "pointer", V.value = !1, oe.value = !1;
491
+ se.value = !0;
492
+ }
493
+ function zt() {
494
+ P.value = null, L.value = null, H.value = "pointer", V.value = !1, se.value = !1;
495
495
  }
496
- function zt(t) {
497
- if (!P.value || X.value || document.activeElement !== P.value || !x.value.length) return;
496
+ function Ft(t) {
497
+ if (!z.value || X.value || document.activeElement !== z.value || !h.value.length) return;
498
498
  const a = ["ArrowUp", "ArrowLeft"].includes(t.key), l = ["ArrowDown", "ArrowRight"].includes(t.key), o = t.key === "Enter" || t.key === " ", d = t.key === "Escape";
499
499
  if (!a && !l && !o && !d) return;
500
500
  if (t.preventDefault(), t.stopPropagation(), d) {
501
- E.value = null, L.value = null, H.value = "pointer", V.value = !1;
501
+ P.value = null, L.value = null, H.value = "pointer", V.value = !1;
502
502
  return;
503
503
  }
504
504
  if (o) {
505
505
  if (L.value === null) return;
506
- const Ge = p.dataset[L.value];
507
- if (!Ge) return;
508
- Fe(L.value, Ge);
506
+ const He = b.dataset[L.value];
507
+ if (!He) return;
508
+ De(L.value, He);
509
509
  return;
510
510
  }
511
- let u = L.value;
512
- u === null ? u = 0 : a ? u = u - 1 < 0 ? x.value.length - 1 : u - 1 : l && (u = u + 1 > x.value.length - 1 ? 0 : u + 1);
513
- const Ve = p.dataset[u];
514
- Ve && De(u, Ve, "keyboard");
511
+ let i = L.value;
512
+ const Y = P.value, Dt = i !== null && i >= 0 && i < h.value.length, Rt = Y !== null && Y >= 0 && Y < h.value.length;
513
+ Dt ? a ? i = i - 1 < 0 ? h.value.length - 1 : i - 1 : l && (i = i + 1 > h.value.length - 1 ? 0 : i + 1) : Rt ? (i = l ? Y + 1 : Y - 1, i >= h.value.length && (i = 0), i < 0 && (i = h.value.length - 1)) : l ? i = 0 : i = h.value.length - 1;
514
+ const Ge = b.dataset[i];
515
+ Ge && Re(i, Ge, "keyboard");
515
516
  }
516
- return Qe({
517
- getImage: Ct,
518
- generatePdf: Pe,
519
- generateCsv: ye,
520
- generateImage: ze,
521
- generateSvg: Be,
522
- toggleTable: Me,
523
- toggleTooltip: Ne,
524
- toggleAnnotator: ce,
525
- toggleFullscreen: Re,
526
- copyAlt: Ue
527
- }), (t, a) => (i(), v("div", {
528
- class: Ke(`vue-data-ui-component vue-ui-age-pyramid ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
517
+ return Ze({
518
+ getImage: At,
519
+ generatePdf: ze,
520
+ generateCsv: ce,
521
+ generateImage: Fe,
522
+ generateSvg: Ue,
523
+ toggleTable: Ne,
524
+ toggleTooltip: Ee,
525
+ toggleAnnotator: fe,
526
+ toggleFullscreen: Me,
527
+ copyAlt: Ve
528
+ }), (t, a) => (u(), v("div", {
529
+ class: Xe(`vue-data-ui-component vue-ui-age-pyramid ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
529
530
  ref_key: "agePyramid",
530
531
  ref: $,
531
532
  id: `vue-ui-age-pyramid_${C.value}`,
532
- style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
533
- onMouseenter: a[1] || (a[1] = () => n(Se)(!0)),
534
- onMouseleave: a[2] || (a[2] = () => n(Se)(!1))
533
+ style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
534
+ onMouseenter: a[1] || (a[1] = () => n(Ie)(!0)),
535
+ onMouseleave: a[2] || (a[2] = () => n(Ie)(!1))
535
536
  }, [
536
537
  c("div", {
537
538
  id: `chart-instructions-${C.value}`,
538
539
  class: "sr-only"
539
540
  }, [
540
541
  c("p", null, T(e.value.a11y.translations.keyboardNavigation), 1)
541
- ], 8, rl),
542
- z.value?.body?.length ? (i(), D(il, {
542
+ ], 8, yl),
543
+ F.value?.body?.length ? (u(), R(rl, {
543
544
  key: 0,
544
545
  uid: C.value,
545
- head: z.value.head,
546
- body: z.value.body,
546
+ head: F.value.head,
547
+ body: F.value.body,
547
548
  notice: e.value.a11y.translations.tableAvailable,
548
549
  caption: e.value.a11y.translations.tableCaption
549
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : g("", !0),
550
- e.value.userOptions.buttons.annotator ? (i(), D(n(ot), {
550
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
551
+ e.value.userOptions.buttons.annotator ? (u(), R(n(st), {
551
552
  key: 1,
552
- svgRef: n(P),
553
+ svgRef: n(z),
553
554
  backgroundColor: e.value.style.backgroundColor,
554
555
  color: e.value.style.color,
555
556
  active: X.value,
556
557
  isCursorPointer: W.value,
557
- onClose: ce
558
+ onClose: fe
558
559
  }, {
559
560
  "annotator-action-close": f(() => [
560
561
  y(t.$slots, "annotator-action-close", {}, void 0, !0)
@@ -575,22 +576,22 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
575
576
  y(t.$slots, "annotator-action-delete", w(k({ disabled: l })), void 0, !0)
576
577
  ]),
577
578
  _: 3
578
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : g("", !0),
579
- ft.value ? (i(), v("div", {
579
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
580
+ ht.value ? (u(), v("div", {
580
581
  key: 2,
581
582
  ref_key: "noTitle",
582
- ref: Ae,
583
+ ref: Te,
583
584
  class: "vue-data-ui-no-title-space",
584
585
  style: "height:36px; width: 100%;background:transparent"
585
- }, null, 512)) : g("", !0),
586
- e.value.style.title.text ? (i(), v("div", {
586
+ }, null, 512)) : p("", !0),
587
+ e.value.style.title.text ? (u(), v("div", {
587
588
  key: 3,
588
589
  ref_key: "chartTitle",
589
- ref: ke,
590
+ ref: Ce,
590
591
  style: "width:100%;background:transparent"
591
592
  }, [
592
- (i(), D(ol, {
593
- key: `title_${Te.value}`,
593
+ (u(), R(ul, {
594
+ key: `title_${$e.value}`,
594
595
  config: {
595
596
  title: {
596
597
  cy: "pyramid-div-title",
@@ -602,15 +603,15 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
602
603
  }
603
604
  }
604
605
  }, null, 8, ["config"]))
605
- ], 512)) : g("", !0),
606
- e.value.userOptions.show && xe.value && (n(Oe) || n(ie)) ? (i(), D(n(st), {
606
+ ], 512)) : p("", !0),
607
+ e.value.userOptions.show && we.value && (n(Oe) || n(ue)) ? (u(), R(n(it), {
607
608
  ref_key: "userOptionsRef",
608
- ref: ae,
609
- key: `user_options_${we.value}`,
609
+ ref: oe,
610
+ key: `user_options_${ke.value}`,
610
611
  backgroundColor: e.value.style.backgroundColor,
611
612
  color: e.value.style.color,
612
- isImaging: n(re),
613
- isPrinting: n(ne),
613
+ isImaging: n(ve),
614
+ isPrinting: n(re),
614
615
  uid: C.value,
615
616
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
616
617
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -620,7 +621,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
620
621
  hasTable: e.value.userOptions.buttons.table,
621
622
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
622
623
  hasAltCopy: e.value.userOptions.buttons.altCopy,
623
- isFullscreen: F.value,
624
+ isFullscreen: D.value,
624
625
  isTooltip: A.value.showTooltip,
625
626
  titles: { ...e.value.userOptions.buttonTitles },
626
627
  chartElement: $.value,
@@ -631,19 +632,19 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
631
632
  printScale: e.value.userOptions.print.scale,
632
633
  tableDialog: e.value.table.useDialog,
633
634
  isCursorPointer: W.value,
634
- onToggleFullscreen: Re,
635
- onGeneratePdf: n(Pe),
636
- onGenerateCsv: ye,
635
+ onToggleFullscreen: Me,
636
+ onGeneratePdf: n(ze),
637
+ onGenerateCsv: ce,
637
638
  onGenerateImage: Ot,
638
- onGenerateSvg: Be,
639
- onToggleTable: Me,
640
- onToggleTooltip: Ne,
641
- onToggleAnnotator: ce,
642
- onCopyAlt: Ue,
643
- style: ee({
644
- visibility: n(Oe) ? n(ie) ? "visible" : "hidden" : "visible"
639
+ onGenerateSvg: Ue,
640
+ onToggleTable: Ne,
641
+ onToggleTooltip: Ee,
642
+ onToggleAnnotator: fe,
643
+ onCopyAlt: Ve,
644
+ style: te({
645
+ visibility: n(Oe) ? n(ue) ? "visible" : "hidden" : "visible"
645
646
  })
646
- }, Xe({ _: 2 }, [
647
+ }, je({ _: 2 }, [
647
648
  t.$slots.menuIcon ? {
648
649
  name: "menuIcon",
649
650
  fn: f(({ isOpen: l, color: o }) => [
@@ -714,23 +715,23 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
714
715
  ]),
715
716
  key: "9"
716
717
  } : void 0
717
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : g("", !0),
718
- c("div", vl, [
719
- (i(), v("svg", {
718
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
719
+ c("div", cl, [
720
+ (u(), v("svg", {
720
721
  ref_key: "svgRef",
721
- ref: P,
722
- xmlns: n(Ut),
723
- class: Ke({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
724
- viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`,
725
- style: ee(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
722
+ ref: z,
723
+ xmlns: n(Ht),
724
+ class: Xe({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
725
+ viewBox: `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`,
726
+ style: te(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
726
727
  tabindex: "0",
727
728
  "aria-describedby": `chart-instructions-${C.value}`,
728
- onFocus: It,
729
- onBlur: Pt,
730
- onKeydown: zt
729
+ onFocus: Pt,
730
+ onBlur: zt,
731
+ onKeydown: Ft
731
732
  }, [
732
- fe(n(it)),
733
- t.$slots["chart-background"] ? (i(), v("foreignObject", {
733
+ he(n(ut)),
734
+ t.$slots["chart-background"] ? (u(), v("foreignObject", {
734
735
  key: 0,
735
736
  x: s.value.left,
736
737
  y: s.value.top,
@@ -741,7 +742,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
741
742
  }
742
743
  }, [
743
744
  y(t.$slots, "chart-background", {}, void 0, !0)
744
- ], 8, yl)) : g("", !0),
745
+ ], 8, hl)) : p("", !0),
745
746
  c("defs", null, [
746
747
  c("linearGradient", {
747
748
  id: `age_pyramid_left_${C.value}`,
@@ -753,12 +754,12 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
753
754
  c("stop", {
754
755
  offset: "0%",
755
756
  "stop-color": e.value.style.layout.bars.left.color
756
- }, null, 8, fl),
757
+ }, null, 8, pl),
757
758
  c("stop", {
758
759
  offset: "100%",
759
- "stop-color": n(pe)(n(qe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
760
- }, null, 8, hl)
761
- ], 8, cl),
760
+ "stop-color": n(be)(n(Je)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
761
+ }, null, 8, bl)
762
+ ], 8, gl),
762
763
  c("linearGradient", {
763
764
  id: `age_pyramid_right_${C.value}`,
764
765
  x1: "0%",
@@ -768,23 +769,23 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
768
769
  }, [
769
770
  c("stop", {
770
771
  offset: "0%",
771
- "stop-color": n(pe)(n(qe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
772
- }, null, 8, pl),
772
+ "stop-color": n(be)(n(Je)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
773
+ }, null, 8, xl),
773
774
  c("stop", {
774
775
  offset: "100%",
775
776
  "stop-color": e.value.style.layout.bars.right.color
776
- }, null, 8, bl)
777
- ], 8, gl)
777
+ }, null, 8, wl)
778
+ ], 8, ml)
778
779
  ]),
779
- (i(!0), v(I, null, R(x.value, (l, o) => (i(), v("g", null, [
780
+ (u(!0), v(O, null, M(h.value, (l, o) => (u(), v("g", null, [
780
781
  c("rect", {
781
782
  x: l.left.x,
782
783
  y: l.left.y,
783
- width: n(m)(l.left.width <= 0 ? 1e-4 : l.left.width),
784
+ width: n(x)(l.left.width <= 0 ? 1e-4 : l.left.width),
784
785
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
785
786
  fill: e.value.style.layout.bars.gradient.underlayer,
786
787
  rx: e.value.style.layout.bars.borderRadius
787
- }, null, 8, ml),
788
+ }, null, 8, kl),
788
789
  c("rect", {
789
790
  x: l.left.x,
790
791
  y: l.left.y,
@@ -792,7 +793,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
792
793
  height: l.left.height <= 0 ? 1e-4 : l.left.height,
793
794
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${C.value})` : l.left.color,
794
795
  rx: e.value.style.layout.bars.borderRadius
795
- }, null, 8, xl),
796
+ }, null, 8, Cl),
796
797
  c("rect", {
797
798
  x: l.right.x,
798
799
  y: l.right.y,
@@ -800,7 +801,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
800
801
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
801
802
  fill: e.value.style.layout.bars.gradient.underlayer,
802
803
  rx: e.value.style.layout.bars.borderRadius
803
- }, null, 8, wl),
804
+ }, null, 8, Al),
804
805
  c("rect", {
805
806
  x: l.right.x,
806
807
  y: l.right.y,
@@ -808,10 +809,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
808
809
  height: l.right.height <= 0 ? 1e-4 : l.right.height,
809
810
  fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${C.value})` : l.right.color,
810
811
  rx: e.value.style.layout.bars.borderRadius
811
- }, null, 8, kl)
812
+ }, null, 8, Tl)
812
813
  ]))), 256)),
813
814
  c("g", null, [
814
- e.value.style.layout.dataLabels.sideTitles.show ? (i(), v("g", Cl, [
815
+ e.value.style.layout.dataLabels.sideTitles.show ? (u(), v("g", $l, [
815
816
  c("text", {
816
817
  x: s.value.left,
817
818
  y: e.value.style.layout.dataLabels.sideTitles.fontSize,
@@ -819,7 +820,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
819
820
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
820
821
  "text-anchor": "start",
821
822
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
822
- }, T(e.value.translations.female), 9, Al),
823
+ }, T(e.value.translations.female), 9, Ll),
823
824
  c("text", {
824
825
  x: s.value.right,
825
826
  y: e.value.style.layout.dataLabels.sideTitles.fontSize,
@@ -827,11 +828,11 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
827
828
  "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
828
829
  "text-anchor": "end",
829
830
  "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
830
- }, T(e.value.translations.male), 9, Tl)
831
- ])) : g("", !0),
832
- e.value.style.layout.dataLabels.yAxis.show ? (i(), v("g", $l, [
833
- (i(!0), v(I, null, R(bt.value, (l, o) => (i(), v(I, null, [
834
- o % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), v("text", {
831
+ }, T(e.value.translations.male), 9, _l)
832
+ ])) : p("", !0),
833
+ e.value.style.layout.dataLabels.yAxis.show ? (u(), v("g", Sl, [
834
+ (u(!0), v(O, null, M(mt.value, (l, o) => (u(), v(O, null, [
835
+ o % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), v("text", {
835
836
  key: 0,
836
837
  x: s.value.centerX,
837
838
  y: s.value.top + s.value.height / U.value * o + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
@@ -839,16 +840,16 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
839
840
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
840
841
  fill: e.value.style.layout.dataLabels.yAxis.color,
841
842
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
842
- }, T(n(M)(
843
+ }, T(n(N)(
843
844
  e.value.style.layout.dataLabels.yAxis.formatter,
844
845
  l,
845
- n(N)({ v: l }),
846
+ n(E)({ v: l }),
846
847
  { datapoint: l, seriesIndex: o }
847
- )), 9, Ll)) : g("", !0)
848
+ )), 9, Il)) : p("", !0)
848
849
  ], 64))), 256))
849
- ])) : g("", !0),
850
- e.value.style.layout.dataLabels.xAxis.show ? (i(), v("g", _l, [
851
- e.value.style.layout.grid.show ? (i(), v("g", Sl, [
850
+ ])) : p("", !0),
851
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), v("g", Ol, [
852
+ e.value.style.layout.grid.show ? (u(), v("g", Pl, [
852
853
  c("line", {
853
854
  x1: S.value.right[0].x,
854
855
  x2: S.value.right.at(-1).x,
@@ -857,7 +858,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
857
858
  stroke: e.value.style.layout.grid.stroke,
858
859
  "stroke-width": e.value.style.layout.grid.strokeWidth,
859
860
  "stroke-linecap": "round"
860
- }, null, 8, Ol),
861
+ }, null, 8, zl),
861
862
  c("line", {
862
863
  x1: S.value.left[0].x,
863
864
  x2: S.value.left.at(-1).x,
@@ -866,10 +867,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
866
867
  stroke: e.value.style.layout.grid.stroke,
867
868
  "stroke-width": e.value.style.layout.grid.strokeWidth,
868
869
  "stroke-linecap": "round"
869
- }, null, 8, Il)
870
- ])) : g("", !0),
871
- (i(!0), v(I, null, R(S.value.right, (l, o) => (i(), v("g", null, [
872
- e.value.style.layout.grid.show ? (i(), v("line", {
870
+ }, null, 8, Fl)
871
+ ])) : p("", !0),
872
+ (u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("g", null, [
873
+ e.value.style.layout.grid.show ? (u(), v("line", {
873
874
  key: 0,
874
875
  x1: l.x,
875
876
  x2: l.x,
@@ -878,10 +879,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
878
879
  stroke: e.value.style.layout.grid.stroke,
879
880
  "stroke-width": e.value.style.layout.grid.strokeWidth,
880
881
  "stroke-linecap": "round"
881
- }, null, 8, Pl)) : g("", !0)
882
+ }, null, 8, Dl)) : p("", !0)
882
883
  ]))), 256)),
883
- (i(!0), v(I, null, R(S.value.left, (l, o) => (i(), v("g", null, [
884
- e.value.style.layout.grid.show ? (i(), v("line", {
884
+ (u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("g", null, [
885
+ e.value.style.layout.grid.show ? (u(), v("line", {
885
886
  key: 0,
886
887
  x1: l.x,
887
888
  x2: l.x,
@@ -890,90 +891,90 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
890
891
  stroke: e.value.style.layout.grid.stroke,
891
892
  "stroke-width": e.value.style.layout.grid.strokeWidth,
892
893
  "stroke-linecap": "round"
893
- }, null, 8, zl)) : g("", !0)
894
+ }, null, 8, Rl)) : p("", !0)
894
895
  ]))), 256)),
895
896
  c("g", {
896
897
  ref_key: "xAxisLabels",
897
- ref: le
898
+ ref: ae
898
899
  }, [
899
- (i(!0), v(I, null, R(S.value.right, (l, o) => (i(), v("text", {
900
+ (u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("text", {
900
901
  class: "vue-ui-age-pyramid-x-axis-label",
901
902
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
902
903
  fill: e.value.style.layout.dataLabels.xAxis.color,
903
904
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
904
905
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
905
906
  transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
906
- }, T(n(M)(
907
+ }, T(n(N)(
907
908
  e.value.style.layout.dataLabels.xAxis.formatter,
908
909
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
909
- n(N)({
910
+ n(E)({
910
911
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
911
912
  }),
912
913
  { datapoint: l, seriesIndex: o }
913
- )), 9, Fl))), 256)),
914
- (i(!0), v(I, null, R(S.value.left, (l, o) => (i(), v("text", {
914
+ )), 9, Ml))), 256)),
915
+ (u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("text", {
915
916
  class: "vue-ui-age-pyramid-x-axis-label",
916
917
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
917
918
  fill: e.value.style.layout.dataLabels.xAxis.color,
918
919
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
919
920
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
920
921
  transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
921
- }, T(n(M)(
922
+ }, T(n(N)(
922
923
  e.value.style.layout.dataLabels.xAxis.formatter,
923
924
  l.value / e.value.style.layout.dataLabels.xAxis.scale,
924
- n(N)({
925
+ n(E)({
925
926
  v: l.value / e.value.style.layout.dataLabels.xAxis.scale
926
927
  }),
927
928
  { datapoint: l, seriesIndex: o }
928
- )), 9, Dl))), 256))
929
+ )), 9, Nl))), 256))
929
930
  ], 512),
930
931
  c("text", {
931
932
  x: s.value.right,
932
- y: b.value.height,
933
+ y: m.value.height,
933
934
  "text-anchor": "end",
934
935
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
935
936
  fill: e.value.style.layout.dataLabels.xAxis.color,
936
937
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
937
- }, T(e.value.style.layout.dataLabels.xAxis.translation), 9, Rl)
938
- ])) : g("", !0)
938
+ }, T(e.value.style.layout.dataLabels.xAxis.translation), 9, El)
939
+ ])) : p("", !0)
939
940
  ]),
940
- (i(!0), v(I, null, R(me.dataset, (l, o) => (i(), v("g", null, [
941
+ (u(!0), v(O, null, M(xe.dataset, (l, o) => (u(), v("g", null, [
941
942
  c("rect", {
942
943
  x: s.value.left,
943
944
  y: s.value.top + s.value.height / U.value * o - e.value.style.layout.bars.gap / 2,
944
945
  width: s.value.width <= 0 ? 1e-4 : s.value.width,
945
946
  height: s.value.height / U.value <= 0 ? 1e-4 : s.value.height / U.value,
946
- fill: E.value !== null && E.value === o ? n(pe)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
947
- onMouseover: (d) => De(o, l, "pointer"),
948
- onMouseleave: (d) => wt(o, l),
949
- onClick: (d) => Fe(o, l)
950
- }, null, 40, Ml)
947
+ fill: P.value !== null && P.value === o ? n(be)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
948
+ onMouseover: (d) => Re(o, l, "pointer"),
949
+ onMouseleave: (d) => kt(o, l),
950
+ onClick: (d) => De(o, l)
951
+ }, null, 40, Bl)
951
952
  ]))), 256)),
952
953
  y(t.$slots, "svg", {
953
954
  svg: {
954
- ...b.value,
955
- isPrintingImg: n(ne) | n(re) | Y.value,
956
- isPrintingSvg: q.value
955
+ ...m.value,
956
+ isPrintingImg: n(re) | n(ve) | q.value,
957
+ isPrintingSvg: J.value
957
958
  }
958
959
  }, void 0, !0)
959
- ], 46, dl)),
960
- t.$slots.hint ? (i(), v("div", Nl, [
961
- y(t.$slots, "hint", w(k({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: oe.value })), void 0, !0)
962
- ])) : g("", !0)
960
+ ], 46, fl)),
961
+ t.$slots.hint ? (u(), v("div", Ul, [
962
+ y(t.$slots, "hint", w(k({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: se.value })), void 0, !0)
963
+ ])) : p("", !0)
963
964
  ]),
964
- t.$slots.watermark ? (i(), v("div", El, [
965
- y(t.$slots, "watermark", w(k({ isPrinting: n(ne) || n(re) || Y.value || q.value })), void 0, !0)
966
- ])) : g("", !0),
967
- y(t.$slots, "legend", { legend: x.value }, void 0, !0),
968
- t.$slots.source ? (i(), v("div", {
965
+ t.$slots.watermark ? (u(), v("div", Vl, [
966
+ y(t.$slots, "watermark", w(k({ isPrinting: n(re) || n(ve) || q.value || J.value })), void 0, !0)
967
+ ])) : p("", !0),
968
+ y(t.$slots, "legend", { legend: h.value }, void 0, !0),
969
+ t.$slots.source ? (u(), v("div", {
969
970
  key: 6,
970
971
  ref_key: "source",
971
- ref: Ce,
972
+ ref: Ae,
972
973
  dir: "auto"
973
974
  }, [
974
975
  y(t.$slots, "source", {}, void 0, !0)
975
- ], 512)) : g("", !0),
976
- fe(n(et), {
976
+ ], 512)) : p("", !0),
977
+ he(n(tt), {
977
978
  teleportTo: e.value.style.tooltip.teleportTo,
978
979
  show: A.value.showTooltip && V.value,
979
980
  backgroundColor: e.value.style.tooltip.backgroundColor,
@@ -986,46 +987,46 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
986
987
  position: e.value.style.tooltip.position,
987
988
  offsetY: e.value.style.tooltip.offsetY,
988
989
  parent: $.value,
989
- content: te.value,
990
- isFullscreen: F.value,
990
+ content: le.value,
991
+ isFullscreen: D.value,
991
992
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
992
993
  smooth: e.value.style.tooltip.smooth,
993
994
  backdropFilter: e.value.style.tooltip.backdropFilter,
994
995
  smoothForce: e.value.style.tooltip.smoothForce,
995
996
  smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
996
997
  isA11yMode: H.value === "keyboard",
997
- a11yPosition: Le.value
998
+ a11yPosition: _e.value
998
999
  }, {
999
1000
  "tooltip-before": f(() => [
1000
- y(t.$slots, "tooltip-before", w(k({ ...ve.value })), void 0, !0)
1001
+ y(t.$slots, "tooltip-before", w(k({ ...de.value })), void 0, !0)
1001
1002
  ]),
1002
1003
  "tooltip-after": f(() => [
1003
- y(t.$slots, "tooltip-after", w(k({ ...ve.value })), void 0, !0)
1004
+ y(t.$slots, "tooltip-after", w(k({ ...de.value })), void 0, !0)
1004
1005
  ]),
1005
1006
  _: 3
1006
1007
  }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1007
- xe.value && e.value.userOptions.buttons.table ? (i(), D(Mt(j.value.component), Nt({ key: 7 }, j.value.props, {
1008
+ we.value && e.value.userOptions.buttons.table ? (u(), R(Bt(j.value.component), Ut({ key: 7 }, j.value.props, {
1008
1009
  ref_key: "tableUnit",
1009
1010
  ref: G,
1010
- onClose: Ee
1011
- }), Xe({
1011
+ onClose: Be
1012
+ }), je({
1012
1013
  content: f(() => [
1013
- (i(), D(n(at), {
1014
- key: `table_${$e.value}`,
1015
- colNames: z.value.colNames,
1016
- head: z.value.head,
1017
- body: z.value.body,
1018
- config: z.value.config,
1014
+ (u(), R(n(ot), {
1015
+ key: `table_${Le.value}`,
1016
+ colNames: F.value.colNames,
1017
+ head: F.value.head,
1018
+ body: F.value.body,
1019
+ config: F.value.config,
1019
1020
  title: e.value.table.useDialog ? "" : j.value.title,
1020
1021
  withCloseButton: !e.value.table.useDialog,
1021
1022
  isCursorPointer: W.value,
1022
- onClose: Ee
1023
+ onClose: Be
1023
1024
  }, {
1024
1025
  th: f(({ th: l }) => [
1025
- he(T(l), 1)
1026
+ ge(T(l), 1)
1026
1027
  ]),
1027
1028
  td: f(({ td: l }) => [
1028
- he(T(l), 1)
1029
+ ge(T(l), 1)
1029
1030
  ]),
1030
1031
  _: 1
1031
1032
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
@@ -1035,7 +1036,7 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
1035
1036
  e.value.table.useDialog ? {
1036
1037
  name: "title",
1037
1038
  fn: f(() => [
1038
- he(T(j.value.title), 1)
1039
+ ge(T(j.value.title), 1)
1039
1040
  ]),
1040
1041
  key: "0"
1041
1042
  } : void 0,
@@ -1045,10 +1046,10 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
1045
1046
  c("button", {
1046
1047
  tabindex: "0",
1047
1048
  class: "vue-ui-user-options-button",
1048
- onClick: a[0] || (a[0] = (l) => ye(e.value.userOptions.callbacks.csv)),
1049
- style: ee({ cursor: W.value ? "pointer" : "default" })
1049
+ onClick: a[0] || (a[0] = (l) => ce(e.value.userOptions.callbacks.csv)),
1050
+ style: te({ cursor: W.value ? "pointer" : "default" })
1050
1051
  }, [
1051
- fe(n(tt), {
1052
+ he(n(lt), {
1052
1053
  name: "fileCsv",
1053
1054
  stroke: j.value.props.color
1054
1055
  }, null, 8, ["stroke"])
@@ -1056,13 +1057,13 @@ const nl = ["id"], rl = ["id"], vl = { style: { position: "relative" } }, dl = [
1056
1057
  ]),
1057
1058
  key: "1"
1058
1059
  } : void 0
1059
- ]), 1040)) : g("", !0),
1060
+ ]), 1040)) : p("", !0),
1060
1061
  y(t.$slots, "skeleton", {}, () => [
1061
- n(_e) ? (i(), D(qt, { key: 0 })) : g("", !0)
1062
+ n(Se) ? (u(), R(Zt, { key: 0 })) : p("", !0)
1062
1063
  ], !0)
1063
- ], 46, nl));
1064
+ ], 46, dl));
1064
1065
  }
1065
- }, oa = /* @__PURE__ */ ul(Bl, [["__scopeId", "data-v-66c2b0a4"]]);
1066
+ }, ua = /* @__PURE__ */ vl(Gl, [["__scopeId", "data-v-b63d06c1"]]);
1066
1067
  export {
1067
- oa as default
1068
+ ua as default
1068
1069
  };