vue-data-ui 3.23.0 → 3.23.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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -0,0 +1,1241 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Bt as n, D as r, Gt as i, Jt as a, Vt as o, X as s, b as c, ct as ee, i as l, jt as te, q as ne, t as re, tt as ie, xt as ae } from "./lib-Bttd6u5E.js";
3
+ import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-DlNpz6P8.js";
5
+ import { t as le } from "./usePrinter-DN5bYhTG.js";
6
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as fe } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as me } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as he } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
+ import { t as ge } from "./img-Bnokohej.js";
12
+ import { n as _e } from "./Title-BE3qg9xl.js";
13
+ import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as xe } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as Se } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as we } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Te } from "./vue_ui_age_pyramid-BY6c-oX_.js";
20
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ee, createTextVNode as De, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as je, onMounted as Me, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ne, shallowRef as Pe, toDisplayString as T, toRefs as Fe, unref as E, watch as Ie, watchEffect as Le, withCtx as D } from "vue";
21
+ //#region src/components/vue-ui-age-pyramid.vue
22
+ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve = { style: { position: "relative" } }, He = [
23
+ "xmlns",
24
+ "viewBox",
25
+ "aria-describedby"
26
+ ], Ue = [
27
+ "x",
28
+ "y",
29
+ "width",
30
+ "height"
31
+ ], We = [
32
+ "x",
33
+ "y",
34
+ "width",
35
+ "height",
36
+ "fill",
37
+ "rx"
38
+ ], Ge = [
39
+ "x",
40
+ "y",
41
+ "width",
42
+ "height",
43
+ "fill",
44
+ "rx"
45
+ ], Ke = [
46
+ "x",
47
+ "y",
48
+ "width",
49
+ "height",
50
+ "fill",
51
+ "rx"
52
+ ], qe = [
53
+ "x",
54
+ "y",
55
+ "width",
56
+ "height",
57
+ "fill",
58
+ "rx"
59
+ ], Je = { key: 0 }, Ye = [
60
+ "x",
61
+ "y",
62
+ "fill",
63
+ "font-size",
64
+ "font-weight"
65
+ ], Xe = [
66
+ "x",
67
+ "y",
68
+ "fill",
69
+ "font-size",
70
+ "font-weight"
71
+ ], Ze = { key: 1 }, Qe = [
72
+ "x",
73
+ "y",
74
+ "font-size",
75
+ "fill",
76
+ "font-weight"
77
+ ], $e = { key: 2 }, et = { key: 0 }, tt = [
78
+ "x1",
79
+ "x2",
80
+ "y1",
81
+ "y2",
82
+ "stroke",
83
+ "stroke-width"
84
+ ], nt = [
85
+ "x1",
86
+ "x2",
87
+ "y1",
88
+ "y2",
89
+ "stroke",
90
+ "stroke-width"
91
+ ], rt = [
92
+ "x1",
93
+ "x2",
94
+ "y1",
95
+ "y2",
96
+ "stroke",
97
+ "stroke-width"
98
+ ], it = [
99
+ "x1",
100
+ "x2",
101
+ "y1",
102
+ "y2",
103
+ "stroke",
104
+ "stroke-width"
105
+ ], at = [
106
+ "font-size",
107
+ "fill",
108
+ "text-anchor",
109
+ "font-weight",
110
+ "transform"
111
+ ], ot = [
112
+ "font-size",
113
+ "fill",
114
+ "text-anchor",
115
+ "font-weight",
116
+ "transform"
117
+ ], st = [
118
+ "x",
119
+ "y",
120
+ "font-size",
121
+ "fill",
122
+ "font-weight"
123
+ ], ct = [
124
+ "x",
125
+ "y",
126
+ "width",
127
+ "height",
128
+ "fill",
129
+ "onMouseover",
130
+ "onMouseleave",
131
+ "onClick"
132
+ ], lt = {
133
+ key: 0,
134
+ style: {
135
+ position: "absolute",
136
+ top: "100%",
137
+ left: "0",
138
+ width: "100%"
139
+ },
140
+ "data-dom-to-png-ignore": "",
141
+ "aria-hidden": "true"
142
+ }, ut = {
143
+ key: 5,
144
+ class: "vue-data-ui-watermark"
145
+ }, dt = /*#__PURE__*/ ve({
146
+ __name: "vue-ui-age-pyramid",
147
+ props: {
148
+ config: {
149
+ type: Object,
150
+ default() {
151
+ return {};
152
+ }
153
+ },
154
+ dataset: {
155
+ type: Array,
156
+ default() {
157
+ return [];
158
+ }
159
+ }
160
+ },
161
+ emits: ["copyAlt"],
162
+ setup(e, { expose: ve, emit: Re }) {
163
+ let dt = _(() => import("./Tooltip-DhjyfHwz.js")), ft = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), pt = _(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), mt = _(() => import("./DataTable-BbKgJ5UI.js")), ht = _(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), gt = _(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), _t = _(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), vt = _(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_age_pyramid: yt } = ce(), { isThemeValid: bt, warnInvalidTheme: xt } = pe(), O = e, St = Re, Ct = d(() => !!O.dataset && O.dataset.length), k = S(ne()), A = S(!1), wt = S(""), j = S(null), Tt = S(0), M = S(null), Et = S(null), Dt = S(null), Ot = S(null), kt = S(0), At = S(0), jt = S(null), N = S(null), Mt = S(null), P = S(null), Nt = S({
164
+ x: 0,
165
+ y: 0
166
+ }), F = S("pointer"), Pt = S(!1), I = S(Ht());
167
+ oe({
168
+ config: () => I.value,
169
+ dataset: () => O.dataset,
170
+ component: "VueUiAgePyramid",
171
+ rules: [se.emptyArray, {
172
+ test: (e) => e.length > 130,
173
+ message: [
174
+ "👀 Dataset has > 130 points. Consider:",
175
+ "",
176
+ "▶️ Grouping small values into aggregated categories.",
177
+ "",
178
+ "▶️ Using VueUiStackline to display data in a more compact way."
179
+ ]
180
+ }]
181
+ });
182
+ let L = d(() => I.value.userOptions.useCursorPointer), Ft = d(() => a({
183
+ defaultConfig: {
184
+ userOptions: { show: !1 },
185
+ table: { show: !1 },
186
+ translations: {
187
+ male: "",
188
+ female: ""
189
+ },
190
+ style: {
191
+ backgroundColor: "#99999930",
192
+ layout: {
193
+ bars: {
194
+ left: { color: "#CACACA" },
195
+ right: { color: "#999999" }
196
+ },
197
+ dataLabels: {
198
+ xAxis: {
199
+ fontSize: 0,
200
+ scale: 1e3,
201
+ translation: ""
202
+ },
203
+ yAxis: { show: !1 }
204
+ },
205
+ grid: { stroke: "#6A6A6A" }
206
+ }
207
+ }
208
+ },
209
+ userConfig: I.value.skeletonConfig ?? {}
210
+ })), { loading: It, FINAL_DATASET: Lt, manualLoading: Rt } = ue({
211
+ ...Fe(O),
212
+ FINAL_CONFIG: I,
213
+ prepareConfig: Ht,
214
+ skeletonDataset: O.config?.skeletonDataset ?? [
215
+ [
216
+ "_",
217
+ 9,
218
+ 2,
219
+ 2
220
+ ],
221
+ [
222
+ "_",
223
+ 8,
224
+ 3,
225
+ 3
226
+ ],
227
+ [
228
+ "_",
229
+ 7,
230
+ 5,
231
+ 5
232
+ ],
233
+ [
234
+ "_",
235
+ 6,
236
+ 8,
237
+ 8
238
+ ],
239
+ [
240
+ "_",
241
+ 5,
242
+ 13,
243
+ 13
244
+ ],
245
+ [
246
+ "_",
247
+ 4,
248
+ 21,
249
+ 21
250
+ ],
251
+ [
252
+ "_",
253
+ 3,
254
+ 34,
255
+ 34
256
+ ],
257
+ [
258
+ "_",
259
+ 2,
260
+ 55,
261
+ 55
262
+ ],
263
+ [
264
+ "_",
265
+ 1,
266
+ 89,
267
+ 89
268
+ ],
269
+ [
270
+ "_",
271
+ 0,
272
+ 144,
273
+ 144
274
+ ]
275
+ ],
276
+ skeletonConfig: a({
277
+ defaultConfig: I.value,
278
+ userConfig: Ft.value
279
+ })
280
+ }), { userOptionsVisible: zt, setUserOptionsVisibility: Bt, keepUserOptionState: Vt } = Ce({ config: I.value }), { svgRef: R } = we({ config: I.value.style.title });
281
+ function Ht() {
282
+ let e = fe({
283
+ userConfig: O.config,
284
+ defaultConfig: yt
285
+ }), t = e.theme;
286
+ if (!t) return e;
287
+ if (!bt.value(e)) return xt(e), e;
288
+ let n = fe({
289
+ userConfig: Te[t] || O.config,
290
+ defaultConfig: e
291
+ });
292
+ return fe({
293
+ userConfig: O.config,
294
+ defaultConfig: n
295
+ });
296
+ }
297
+ Ie(() => O.config, (e) => {
298
+ It.value || (I.value = Ht()), zt.value = !I.value.userOptions.showOnChartHover, Wt(), kt.value += 1, At.value += 1, V.value.showTable = I.value.table.show, V.value.showTooltip = I.value.style.tooltip.show;
299
+ }, { deep: !0 }), Ie(() => O.dataset, (e) => {
300
+ Array.isArray(e) && e.length > 0 && (Rt.value = !1);
301
+ }, { deep: !0 });
302
+ let z = Pe(null), B = Pe(null);
303
+ Me(() => {
304
+ Wt();
305
+ });
306
+ let Ut = d(() => I.value.debug);
307
+ function Wt() {
308
+ if (te(O.dataset) && (ie({
309
+ componentName: "VueUiAgePyramid",
310
+ type: "dataset",
311
+ debug: Ut.value
312
+ }), Rt.value = !0), te(O.dataset) || (Rt.value = I.value.loading), I.value.responsive) {
313
+ let e = ye(() => {
314
+ let { width: e, height: t } = be({
315
+ chart: M.value,
316
+ title: I.value.style.title.text ? Et.value : null,
317
+ source: Dt.value,
318
+ noTitle: Ot.value
319
+ });
320
+ requestAnimationFrame(() => {
321
+ H.value.width = e, H.value.height = t;
322
+ });
323
+ });
324
+ z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = M.value.parentNode, z.value.observe(B.value);
325
+ }
326
+ }
327
+ je(() => {
328
+ z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
329
+ });
330
+ let { isPrinting: Gt, isImaging: Kt, generatePdf: qt, generateImage: Jt } = le({
331
+ elementId: `vue-ui-age-pyramid_${k.value}`,
332
+ fileName: I.value.style.title.text || "vue-ui-age-pyramid",
333
+ options: I.value.userOptions.print
334
+ }), Yt = d(() => I.value.userOptions.show && !I.value.style.title.text), V = S({
335
+ showTable: I.value.table.show,
336
+ showTooltip: I.value.style.tooltip.show
337
+ });
338
+ Ie(I, () => {
339
+ V.value = {
340
+ showTable: I.value.table.show,
341
+ showTooltip: I.value.style.tooltip.show
342
+ };
343
+ }, { immediate: !0 });
344
+ let H = S({
345
+ height: I.value.style.height,
346
+ width: I.value.style.width
347
+ }), Xt = d(() => H.value.width), Zt = d(() => H.value.height), U = S(0), Qt = ye((e) => {
348
+ U.value = e;
349
+ }, 100);
350
+ Le((e) => {
351
+ let t = jt.value;
352
+ if (!t) return;
353
+ let n = new ResizeObserver((e) => {
354
+ Qt(e[0].contentRect.height);
355
+ });
356
+ n.observe(t), e(() => n.disconnect());
357
+ }), je(() => {
358
+ U.value = 0;
359
+ });
360
+ let W = d(() => {
361
+ let e = H.value.width - I.value.style.layout.padding.right - I.value.style.layout.padding.left, t = I.value.style.layout.padding.left, n = H.value.width - I.value.style.layout.padding.right;
362
+ return {
363
+ top: I.value.style.layout.padding.top + I.value.style.layout.dataLabels.sideTitles.fontSize + I.value.style.layout.dataLabels.sideTitles.offsetY + 12,
364
+ left: t,
365
+ right: n,
366
+ bottom: H.value.height - I.value.style.layout.padding.bottom - U.value,
367
+ width: e,
368
+ height: H.value.height - I.value.style.layout.padding.top - I.value.style.layout.padding.bottom - U.value - I.value.style.layout.dataLabels.sideTitles.fontSize - I.value.style.layout.dataLabels.sideTitles.offsetY - 12,
369
+ centerX: I.value.style.layout.padding.left + e / 2,
370
+ leftChart: {
371
+ width: e / 2 - I.value.style.layout.centerSlit.width,
372
+ right: t + e / 2 - I.value.style.layout.centerSlit.width
373
+ },
374
+ rightChart: {
375
+ width: e / 2 - I.value.style.layout.centerSlit.width,
376
+ left: t + e / 2 + I.value.style.layout.centerSlit.width
377
+ }
378
+ };
379
+ }), $t = d(() => Lt.value.map((e) => I.value.style.layout.dataLabels.yAxis.display === "age" ? e[1] : e[0])), G = d(() => {
380
+ let e = en(K.value / 5), t = [], n = [];
381
+ for (let r = 0; r <= 5; r += 1) {
382
+ let i = e * r, a = e * (r - 5);
383
+ t.push({
384
+ value: i,
385
+ x: W.value.left + W.value.width / 2 + I.value.style.layout.centerSlit.width + i / K.value * W.value.leftChart.width
386
+ }), n.push({
387
+ value: Math.abs(a),
388
+ x: W.value.left + W.value.width / 2 + a / K.value * W.value.leftChart.width - I.value.style.layout.centerSlit.width
389
+ });
390
+ }
391
+ return {
392
+ right: t,
393
+ left: n
394
+ };
395
+ });
396
+ function en(e) {
397
+ if (e === 0) return 0;
398
+ let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
399
+ return n = Math.round(e / t) * t, n;
400
+ }
401
+ let K = d(() => Math.max(...Lt.value.flatMap((e) => e.slice(-2).map((e) => c(e))))), q = d(() => Lt.value.length), tn = d(() => Lt.value.map((e) => ({
402
+ segment: e[0],
403
+ age: e[1],
404
+ left: {
405
+ value: e[2],
406
+ proportionToMax: e[2] / K.value
407
+ },
408
+ right: {
409
+ value: e[3],
410
+ proportionToMax: e[3] / K.value
411
+ }
412
+ }))), J = d(() => tn.value.map((e, t) => {
413
+ let n = W.value.top + W.value.height / q.value * t, r = W.value.height / q.value - I.value.style.layout.bars.gap;
414
+ return {
415
+ segment: e.segment,
416
+ age: e.age,
417
+ left: {
418
+ ...e.left,
419
+ y: n,
420
+ color: I.value.style.layout.bars.left.color,
421
+ x: W.value.leftChart.right - e.left.proportionToMax * W.value.leftChart.width,
422
+ width: c(e.left.proportionToMax * W.value.leftChart.width),
423
+ height: r
424
+ },
425
+ right: {
426
+ ...e.right,
427
+ y: n,
428
+ color: I.value.style.layout.bars.right.color,
429
+ x: W.value.rightChart.left,
430
+ width: c(e.right.proportionToMax * W.value.rightChart.width),
431
+ height: r
432
+ }
433
+ };
434
+ })), Y = S(null);
435
+ function nn(e) {
436
+ let [t, n, r, i] = e;
437
+ return {
438
+ segment: t,
439
+ index: n,
440
+ left: r,
441
+ right: i
442
+ };
443
+ }
444
+ function rn(e, t) {
445
+ I.value.events.datapointClick && I.value.events.datapointClick({
446
+ datapoint: nn(t),
447
+ seriesIndex: e
448
+ });
449
+ }
450
+ function an(e, t) {
451
+ I.value.events.datapointLeave && I.value.events.datapointLeave({
452
+ datapoint: nn(t),
453
+ seriesIndex: e
454
+ }), (F.value !== "keyboard" || P.value !== e) && (j.value = null, A.value = !1);
455
+ }
456
+ function on(e) {
457
+ if (!R.value) return;
458
+ let t = J.value[e];
459
+ if (!t) return;
460
+ let n = i(W.value.left + W.value.width / 2, t.left.y + t.left.height / 2, R.value);
461
+ n && (Nt.value = n);
462
+ }
463
+ function sn(e, t, n = "pointer") {
464
+ I.value.events.datapointEnter && I.value.events.datapointEnter({
465
+ datapoint: nn(t),
466
+ seriesIndex: e
467
+ }), j.value = e, P.value = e, F.value = n, Y.value = {
468
+ datapoint: t,
469
+ seriesIndex: e,
470
+ series: J.value,
471
+ config: I.value
472
+ };
473
+ let r = I.value.style.tooltip.customFormat;
474
+ if (ae(r) && ee(() => r({
475
+ seriesIndex: e,
476
+ datapoint: {
477
+ segment: t[0],
478
+ index: t[1],
479
+ left: t[2],
480
+ right: t[3]
481
+ },
482
+ series: J.value,
483
+ config: I.value
484
+ }))) wt.value = r({
485
+ seriesIndex: e,
486
+ datapoint: {
487
+ segment: t[0],
488
+ index: t[1],
489
+ left: t[2],
490
+ right: t[3]
491
+ },
492
+ series: J.value,
493
+ config: I.value
494
+ });
495
+ else {
496
+ let n = "", r = J.value[e];
497
+ n += `<div><b>${r.segment}</b></div>`, n += `<div>${I.value.translations.age}: ${l(I.value.style.layout.dataLabels.yAxis.formatter, c(r.age), s({ v: c(r.age) }), {
498
+ datapoint: t,
499
+ seriesIndex: e
500
+ })}</div>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.style.tooltip.borderColor}">`, n += "<div style=\"display:flex; flex-direction:row;gap:12px\">", n += `<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="${I.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : I.value.style.layout.bars.left.color}"/></svg><div>${I.value.translations.female}</div><div><b>${l(I.value.style.layout.dataLabels.xAxis.formatter, c(r.left.value), s({ v: c(r.left.value) }), {
501
+ datapoint: t,
502
+ seriesIndex: e
503
+ })}</b></div></div>`, n += `<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="${I.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : I.value.style.layout.bars.right.color}"/></svg><div>${I.value.translations.male}</div><div><b>${l(I.value.style.layout.dataLabels.xAxis.formatter, c(r.right.value), s({ v: c(r.right.value) }), {
504
+ datapoint: t,
505
+ seriesIndex: e
506
+ })}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.style.tooltip.borderColor}"><div>${I.value.translations.total}</div><div><b>${l(I.value.style.layout.dataLabels.xAxis.formatter, c(r.right.value) + c(r.left.value), s({ v: c(r.right.value) + c(r.left.value) }), {
507
+ datapoint: t,
508
+ seriesIndex: e
509
+ })}</b></div></div>`, n += "</div>", wt.value = `<div>${n}</div>`;
510
+ }
511
+ A.value = !0, n === "keyboard" && ke(() => {
512
+ on(e);
513
+ });
514
+ }
515
+ function cn(e = null) {
516
+ ke(() => {
517
+ let n = [
518
+ I.value.translations.year,
519
+ I.value.translations.age,
520
+ I.value.translations.female,
521
+ I.value.translations.male,
522
+ I.value.translations.total
523
+ ], i = O.dataset.map((e) => [
524
+ e[0],
525
+ e[1],
526
+ e[2],
527
+ e[3],
528
+ e[2] ?? 0 + e[3] ?? 0
529
+ ]), a = [
530
+ [I.value.style.title.text],
531
+ [I.value.style.title.subtitle.text],
532
+ [
533
+ [""],
534
+ [""],
535
+ [""]
536
+ ],
537
+ n
538
+ ].concat(i), o = r(a);
539
+ e ? e(o) : t({
540
+ csvContent: o,
541
+ title: I.value.style.title.text || "vue-ui-heatmap"
542
+ });
543
+ });
544
+ }
545
+ let X = d(() => {
546
+ let e = [
547
+ I.value.translations.year,
548
+ I.value.translations.age,
549
+ I.value.translations.female,
550
+ I.value.translations.male,
551
+ I.value.translations.total
552
+ ];
553
+ return {
554
+ head: e,
555
+ body: O.dataset.map((e) => [
556
+ e[0],
557
+ e[1],
558
+ e[2] == null ? "" : e[2].toLocaleString(),
559
+ e[3] == null ? "" : e[3].toLocaleString(),
560
+ (e[2] ?? 0 + e[3] ?? 0).toLocaleString()
561
+ ]),
562
+ config: {
563
+ th: {
564
+ backgroundColor: I.value.table.th.backgroundColor,
565
+ color: I.value.table.th.color,
566
+ outline: I.value.table.th.outline
567
+ },
568
+ td: {
569
+ backgroundColor: I.value.table.td.backgroundColor,
570
+ color: I.value.table.td.color,
571
+ outline: I.value.table.td.outline
572
+ },
573
+ breakpoint: I.value.table.responsiveBreakpoint
574
+ },
575
+ colNames: e
576
+ };
577
+ }), Z = S(!1);
578
+ function ln(e) {
579
+ Z.value = e, Tt.value += 1;
580
+ }
581
+ function un() {
582
+ V.value.showTable = !V.value.showTable;
583
+ }
584
+ function dn() {
585
+ V.value.showTooltip = !V.value.showTooltip;
586
+ }
587
+ let Q = S(!1);
588
+ function fn() {
589
+ Q.value = !Q.value;
590
+ }
591
+ async function pn({ scale: e = 2 } = {}) {
592
+ if (!M.value) return;
593
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
594
+ domElement: M.value,
595
+ base64: !0,
596
+ img: !0,
597
+ scale: e
598
+ });
599
+ return {
600
+ imageUri: i,
601
+ base64: a,
602
+ title: I.value.style.title.text,
603
+ width: t,
604
+ height: n,
605
+ aspectRatio: r
606
+ };
607
+ }
608
+ let mn = S([]), hn = S({
609
+ start: 0,
610
+ end: J.value.length
611
+ });
612
+ he({
613
+ timeLabelsEls: jt,
614
+ timeLabels: mn,
615
+ slicer: hn,
616
+ configRef: I,
617
+ rotationPath: [
618
+ "style",
619
+ "layout",
620
+ "dataLabels",
621
+ "xAxis",
622
+ "rotation"
623
+ ],
624
+ autoRotatePath: [
625
+ "style",
626
+ "layout",
627
+ "dataLabels",
628
+ "xAxis",
629
+ "autoRotate",
630
+ "enable"
631
+ ],
632
+ isAutoSize: !1,
633
+ width: Xt,
634
+ height: Zt,
635
+ targetClass: ".vue-ui-age-pyramid-x-axis-label",
636
+ rotation: I.value.style.layout.dataLabels.xAxis.autoRotate.angle
637
+ });
638
+ let $ = d(() => {
639
+ let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
640
+ return {
641
+ component: e ? vt : pt,
642
+ title: `${I.value.style.title.text}${I.value.style.title.subtitle.text ? `: ${I.value.style.title.subtitle.text}` : ""}`,
643
+ props: e ? {
644
+ backgroundColor: I.value.table.th.backgroundColor,
645
+ color: I.value.table.th.color,
646
+ headerColor: I.value.table.th.color,
647
+ headerBg: I.value.table.th.backgroundColor,
648
+ isFullscreen: Z.value,
649
+ fullscreenParent: M.value,
650
+ forcedWidth: Math.min(800, window.innerWidth * .8),
651
+ isCursorPointer: L.value
652
+ } : {
653
+ hideDetails: !0,
654
+ config: {
655
+ open: t,
656
+ maxHeight: 1e4,
657
+ body: {
658
+ backgroundColor: I.value.style.backgroundColor,
659
+ color: I.value.style.color
660
+ },
661
+ head: {
662
+ backgroundColor: I.value.style.backgroundColor,
663
+ color: I.value.style.color
664
+ }
665
+ }
666
+ }
667
+ };
668
+ });
669
+ Ie(() => V.value.showTable, (e) => {
670
+ I.value.table.show || (e && I.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
671
+ });
672
+ function gn() {
673
+ V.value.showTable = !1, Mt.value && Mt.value.setTableIconState(!1);
674
+ }
675
+ let _n = d(() => I.value.style.backgroundColor), vn = d(() => I.value.style.title), { isCallbackImaging: yn, isCallbackSvg: bn, generateSvg: xn, onGenerateImage: Sn } = me({
676
+ svg: R,
677
+ title: vn,
678
+ legend: null,
679
+ legendItems: null,
680
+ backgroundColor: _n,
681
+ getSvgCallback: () => I.value.userOptions.callbacks.svg,
682
+ generateImage: Jt
683
+ });
684
+ async function Cn() {
685
+ if (St("copyAlt", {
686
+ config: I.value,
687
+ dataset: J.value
688
+ }), !I.value.userOptions.callbacks.altCopy) {
689
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
690
+ return;
691
+ }
692
+ await Promise.resolve(I.value.userOptions.callbacks.altCopy({
693
+ config: I.value,
694
+ dataset: J.value
695
+ }));
696
+ }
697
+ function wn() {
698
+ Pt.value = !0;
699
+ }
700
+ function Tn() {
701
+ j.value = null, P.value = null, F.value = "pointer", A.value = !1, Pt.value = !1;
702
+ }
703
+ function En(e) {
704
+ if (!R.value || Q.value || document.activeElement !== R.value || !J.value.length) return;
705
+ let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
706
+ if (!t && !n && !r && !i) return;
707
+ if (e.preventDefault(), e.stopPropagation(), i) {
708
+ j.value = null, P.value = null, F.value = "pointer", A.value = !1;
709
+ return;
710
+ }
711
+ if (r) {
712
+ if (P.value === null) return;
713
+ let e = O.dataset[P.value];
714
+ if (!e) return;
715
+ rn(P.value, e);
716
+ return;
717
+ }
718
+ let a = P.value, o = j.value, s = a !== null && a >= 0 && a < J.value.length, c = o !== null && o >= 0 && o < J.value.length;
719
+ s ? t ? a = a - 1 < 0 ? J.value.length - 1 : a - 1 : n && (a = a + 1 > J.value.length - 1 ? 0 : a + 1) : c ? (a = n ? o + 1 : o - 1, a >= J.value.length && (a = 0), a < 0 && (a = J.value.length - 1)) : a = n ? 0 : J.value.length - 1;
720
+ let ee = O.dataset[a];
721
+ ee && sn(a, ee, "keyboard");
722
+ }
723
+ return ve({
724
+ getImage: pn,
725
+ generatePdf: qt,
726
+ generateCsv: cn,
727
+ generateImage: Jt,
728
+ generateSvg: xn,
729
+ toggleTable: un,
730
+ toggleTooltip: dn,
731
+ toggleAnnotator: fn,
732
+ toggleFullscreen: ln,
733
+ copyAlt: Cn
734
+ }), (t, r) => (x(), m("div", {
735
+ class: Ae(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
736
+ ref_key: "agePyramid",
737
+ ref: M,
738
+ id: `vue-ui-age-pyramid_${k.value}`,
739
+ style: b(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
740
+ onMouseenter: r[1] ||= () => E(Bt)(!0),
741
+ onMouseleave: r[2] ||= () => E(Bt)(!1)
742
+ }, [
743
+ h("div", {
744
+ id: `chart-instructions-${k.value}`,
745
+ class: "sr-only"
746
+ }, [h("p", null, T(I.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
747
+ X.value?.body?.length ? (x(), f(Se, {
748
+ key: 0,
749
+ uid: k.value,
750
+ head: X.value.head,
751
+ body: X.value.body,
752
+ notice: I.value.a11y.translations.tableAvailable,
753
+ caption: I.value.a11y.translations.tableCaption
754
+ }, null, 8, [
755
+ "uid",
756
+ "head",
757
+ "body",
758
+ "notice",
759
+ "caption"
760
+ ])) : p("", !0),
761
+ I.value.userOptions.buttons.annotator ? (x(), f(E(ht), {
762
+ key: 1,
763
+ svgRef: E(R),
764
+ backgroundColor: I.value.style.backgroundColor,
765
+ color: I.value.style.color,
766
+ active: Q.value,
767
+ isCursorPointer: L.value,
768
+ onClose: fn
769
+ }, {
770
+ "annotator-action-close": D(() => [w(t.$slots, "annotator-action-close", {}, void 0, !0)]),
771
+ "annotator-action-color": D(({ color: e }) => [w(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
772
+ "annotator-action-draw": D(({ mode: e }) => [w(t.$slots, "annotator-action-draw", y(v({ mode: e })), void 0, !0)]),
773
+ "annotator-action-undo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-undo", y(v({ disabled: e })), void 0, !0)]),
774
+ "annotator-action-redo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-redo", y(v({ disabled: e })), void 0, !0)]),
775
+ "annotator-action-delete": D(({ disabled: e }) => [w(t.$slots, "annotator-action-delete", y(v({ disabled: e })), void 0, !0)]),
776
+ _: 3
777
+ }, 8, [
778
+ "svgRef",
779
+ "backgroundColor",
780
+ "color",
781
+ "active",
782
+ "isCursorPointer"
783
+ ])) : p("", !0),
784
+ Yt.value ? (x(), m("div", {
785
+ key: 2,
786
+ ref_key: "noTitle",
787
+ ref: Ot,
788
+ class: "vue-data-ui-no-title-space",
789
+ style: "height:36px; width: 100%;background:transparent"
790
+ }, null, 512)) : p("", !0),
791
+ I.value.style.title.text ? (x(), m("div", {
792
+ key: 3,
793
+ ref_key: "chartTitle",
794
+ ref: Et,
795
+ style: "width:100%;background:transparent"
796
+ }, [(x(), f(_e, {
797
+ key: `title_${kt.value}`,
798
+ config: {
799
+ title: {
800
+ cy: "pyramid-div-title",
801
+ ...I.value.style.title
802
+ },
803
+ subtitle: {
804
+ cy: "pyramid-div-subtitle",
805
+ ...I.value.style.title.subtitle
806
+ }
807
+ }
808
+ }, null, 8, ["config"]))], 512)) : p("", !0),
809
+ I.value.userOptions.show && Ct.value && (E(Vt) || E(zt)) ? (x(), f(E(gt), {
810
+ ref_key: "userOptionsRef",
811
+ ref: Mt,
812
+ key: `user_options_${Tt.value}`,
813
+ backgroundColor: I.value.style.backgroundColor,
814
+ color: I.value.style.color,
815
+ isImaging: E(Kt),
816
+ isPrinting: E(Gt),
817
+ uid: k.value,
818
+ hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.tooltip.show,
819
+ hasPdf: I.value.userOptions.buttons.pdf,
820
+ hasXls: I.value.userOptions.buttons.csv,
821
+ hasImg: I.value.userOptions.buttons.img,
822
+ hasSvg: I.value.userOptions.buttons.svg,
823
+ hasTable: I.value.userOptions.buttons.table,
824
+ hasFullscreen: I.value.userOptions.buttons.fullscreen,
825
+ hasAltCopy: I.value.userOptions.buttons.altCopy,
826
+ isFullscreen: Z.value,
827
+ isTooltip: V.value.showTooltip,
828
+ titles: { ...I.value.userOptions.buttonTitles },
829
+ chartElement: M.value,
830
+ position: I.value.userOptions.position,
831
+ hasAnnotator: I.value.userOptions.buttons.annotator,
832
+ isAnnotation: Q.value,
833
+ callbacks: I.value.userOptions.callbacks,
834
+ printScale: I.value.userOptions.print.scale,
835
+ tableDialog: I.value.table.useDialog,
836
+ isCursorPointer: L.value,
837
+ onToggleFullscreen: ln,
838
+ onGeneratePdf: E(qt),
839
+ onGenerateCsv: cn,
840
+ onGenerateImage: E(Sn),
841
+ onGenerateSvg: E(xn),
842
+ onToggleTable: un,
843
+ onToggleTooltip: dn,
844
+ onToggleAnnotator: fn,
845
+ onCopyAlt: Cn,
846
+ style: b({ visibility: E(Vt) ? E(zt) ? "visible" : "hidden" : "visible" })
847
+ }, Ee({ _: 2 }, [
848
+ t.$slots.menuIcon ? {
849
+ name: "menuIcon",
850
+ fn: D(({ isOpen: e, color: n }) => [w(t.$slots, "menuIcon", y(v({
851
+ isOpen: e,
852
+ color: n
853
+ })), void 0, !0)]),
854
+ key: "0"
855
+ } : void 0,
856
+ t.$slots.optionTooltip ? {
857
+ name: "optionTooltip",
858
+ fn: D(() => [w(t.$slots, "optionTooltip", {}, void 0, !0)]),
859
+ key: "1"
860
+ } : void 0,
861
+ t.$slots.optionPdf ? {
862
+ name: "optionPdf",
863
+ fn: D(() => [w(t.$slots, "optionPdf", {}, void 0, !0)]),
864
+ key: "2"
865
+ } : void 0,
866
+ t.$slots.optionCsv ? {
867
+ name: "optionCsv",
868
+ fn: D(() => [w(t.$slots, "optionCsv", {}, void 0, !0)]),
869
+ key: "3"
870
+ } : void 0,
871
+ t.$slots.optionImg ? {
872
+ name: "optionImg",
873
+ fn: D(() => [w(t.$slots, "optionImg", {}, void 0, !0)]),
874
+ key: "4"
875
+ } : void 0,
876
+ t.$slots.optionSvg ? {
877
+ name: "optionSvg",
878
+ fn: D(() => [w(t.$slots, "optionSvg", {}, void 0, !0)]),
879
+ key: "5"
880
+ } : void 0,
881
+ t.$slots.optionTable ? {
882
+ name: "optionTable",
883
+ fn: D(() => [w(t.$slots, "optionTable", {}, void 0, !0)]),
884
+ key: "6"
885
+ } : void 0,
886
+ t.$slots.optionFullscreen ? {
887
+ name: "optionFullscreen",
888
+ fn: D(({ toggleFullscreen: e, isFullscreen: n }) => [w(t.$slots, "optionFullscreen", y(v({
889
+ toggleFullscreen: e,
890
+ isFullscreen: n
891
+ })), void 0, !0)]),
892
+ key: "7"
893
+ } : void 0,
894
+ t.$slots.optionAnnotator ? {
895
+ name: "optionAnnotator",
896
+ fn: D(({ toggleAnnotator: e, isAnnotator: n }) => [w(t.$slots, "optionAnnotator", y(v({
897
+ toggleAnnotator: e,
898
+ isAnnotator: n
899
+ })), void 0, !0)]),
900
+ key: "8"
901
+ } : void 0,
902
+ t.$slots.optionAltCopy ? {
903
+ name: "optionAltCopy",
904
+ fn: D(({ altCopy: e }) => [w(t.$slots, "optionAltCopy", y(v({ altCopy: e })), void 0, !0)]),
905
+ key: "9"
906
+ } : void 0,
907
+ t.$slots["custom-menu-before"] ? {
908
+ name: "custom-menu-before",
909
+ fn: D(() => [w(t.$slots, "custom-menu-before", {}, void 0, !0)]),
910
+ key: "10"
911
+ } : void 0,
912
+ t.$slots["custom-menu-after"] ? {
913
+ name: "custom-menu-after",
914
+ fn: D(() => [w(t.$slots, "custom-menu-after", {}, void 0, !0)]),
915
+ key: "11"
916
+ } : void 0
917
+ ]), 1032, /* @__PURE__ */ "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.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
918
+ h("div", Ve, [(x(), m("svg", {
919
+ ref_key: "svgRef",
920
+ ref: R,
921
+ xmlns: E(re),
922
+ class: Ae({
923
+ "vue-data-ui-fullscreen--on": Z.value,
924
+ "vue-data-ui-fulscreen--off": !Z.value
925
+ }),
926
+ viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
927
+ style: b(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.color}`),
928
+ tabindex: "0",
929
+ "aria-describedby": `chart-instructions-${k.value}`,
930
+ onFocus: wn,
931
+ onBlur: Tn,
932
+ onKeydown: En
933
+ }, [
934
+ g(E(_t)),
935
+ t.$slots["chart-background"] ? (x(), m("foreignObject", {
936
+ key: 0,
937
+ x: W.value.left,
938
+ y: W.value.top,
939
+ width: Math.max(.1, W.value.width),
940
+ height: Math.max(.1, W.value.height),
941
+ style: { pointerEvents: "none" }
942
+ }, [w(t.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : p("", !0),
943
+ h("defs", null, [g(xe, {
944
+ t: "linear",
945
+ id: `age_pyramid_left_${k.value}`,
946
+ x1: "0%",
947
+ y1: "0%",
948
+ x2: "100%",
949
+ y2: "0%",
950
+ stops: [[
951
+ "0%",
952
+ I.value.style.layout.bars.left.color,
953
+ 1
954
+ ], [
955
+ "100%",
956
+ E(n)(E(o)(I.value.style.layout.bars.left.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity),
957
+ 1
958
+ ]]
959
+ }, null, 8, ["id", "stops"]), g(xe, {
960
+ t: "linear",
961
+ id: `age_pyramid_right_${k.value}`,
962
+ x1: "0%",
963
+ y1: "0%",
964
+ x2: "100%",
965
+ y2: "0%",
966
+ stops: [[
967
+ "0%",
968
+ E(n)(E(o)(I.value.style.layout.bars.right.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity),
969
+ 1
970
+ ], [
971
+ "100%",
972
+ I.value.style.layout.bars.right.color,
973
+ 1
974
+ ]]
975
+ }, null, 8, ["id", "stops"])]),
976
+ (x(!0), m(u, null, C(J.value, (e, t) => (x(), m("g", null, [
977
+ h("rect", {
978
+ x: e.left.x,
979
+ y: e.left.y,
980
+ width: E(c)(e.left.width <= 0 ? 1e-4 : e.left.width),
981
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
982
+ fill: I.value.style.layout.bars.gradient.underlayer,
983
+ rx: I.value.style.layout.bars.borderRadius
984
+ }, null, 8, We),
985
+ h("rect", {
986
+ x: e.left.x,
987
+ y: e.left.y,
988
+ width: e.left.width <= 0 ? 1e-4 : e.left.width,
989
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
990
+ fill: I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : e.left.color,
991
+ rx: I.value.style.layout.bars.borderRadius
992
+ }, null, 8, Ge),
993
+ h("rect", {
994
+ x: e.right.x,
995
+ y: e.right.y,
996
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
997
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
998
+ fill: I.value.style.layout.bars.gradient.underlayer,
999
+ rx: I.value.style.layout.bars.borderRadius
1000
+ }, null, 8, Ke),
1001
+ h("rect", {
1002
+ x: e.right.x,
1003
+ y: e.right.y,
1004
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
1005
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
1006
+ fill: I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : e.right.color,
1007
+ rx: I.value.style.layout.bars.borderRadius
1008
+ }, null, 8, qe)
1009
+ ]))), 256)),
1010
+ h("g", null, [
1011
+ I.value.style.layout.dataLabels.sideTitles.show ? (x(), m("g", Je, [h("text", {
1012
+ x: W.value.left,
1013
+ y: I.value.style.layout.dataLabels.sideTitles.fontSize,
1014
+ fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.left.color : I.value.style.layout.dataLabels.sideTitles.color,
1015
+ "font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
1016
+ "text-anchor": "start",
1017
+ "font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1018
+ }, T(I.value.translations.female), 9, Ye), h("text", {
1019
+ x: W.value.right,
1020
+ y: I.value.style.layout.dataLabels.sideTitles.fontSize,
1021
+ fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.right.color : I.value.style.layout.dataLabels.sideTitles.color,
1022
+ "font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
1023
+ "text-anchor": "end",
1024
+ "font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1025
+ }, T(I.value.translations.male), 9, Xe)])) : p("", !0),
1026
+ I.value.style.layout.dataLabels.yAxis.show ? (x(), m("g", Ze, [(x(!0), m(u, null, C($t.value, (e, t) => (x(), m(u, null, [t % I.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (x(), m("text", {
1027
+ key: 0,
1028
+ x: W.value.centerX,
1029
+ y: W.value.top + W.value.height / q.value * t + I.value.style.layout.dataLabels.yAxis.fontSize / 3,
1030
+ "text-anchor": "middle",
1031
+ "font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
1032
+ fill: I.value.style.layout.dataLabels.yAxis.color,
1033
+ "font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
1034
+ }, T(E(l)(I.value.style.layout.dataLabels.yAxis.formatter, e, E(s)({ v: e }), {
1035
+ datapoint: e,
1036
+ seriesIndex: t
1037
+ })), 9, Qe)) : p("", !0)], 64))), 256))])) : p("", !0),
1038
+ I.value.style.layout.dataLabels.xAxis.show ? (x(), m("g", $e, [
1039
+ I.value.style.layout.grid.show ? (x(), m("g", et, [h("line", {
1040
+ x1: G.value.right[0].x,
1041
+ x2: G.value.right.at(-1).x,
1042
+ y1: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1043
+ y2: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1044
+ stroke: I.value.style.layout.grid.stroke,
1045
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1046
+ "stroke-linecap": "round"
1047
+ }, null, 8, tt), h("line", {
1048
+ x1: G.value.left[0].x,
1049
+ x2: G.value.left.at(-1).x,
1050
+ y1: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1051
+ y2: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1052
+ stroke: I.value.style.layout.grid.stroke,
1053
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1054
+ "stroke-linecap": "round"
1055
+ }, null, 8, nt)])) : p("", !0),
1056
+ (x(!0), m(u, null, C(G.value.right, (e, t) => (x(), m("g", null, [I.value.style.layout.grid.show ? (x(), m("line", {
1057
+ key: 0,
1058
+ x1: e.x,
1059
+ x2: e.x,
1060
+ y1: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1061
+ y2: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1062
+ stroke: I.value.style.layout.grid.stroke,
1063
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1064
+ "stroke-linecap": "round"
1065
+ }, null, 8, rt)) : p("", !0)]))), 256)),
1066
+ (x(!0), m(u, null, C(G.value.left, (e, t) => (x(), m("g", null, [I.value.style.layout.grid.show ? (x(), m("line", {
1067
+ key: 0,
1068
+ x1: e.x,
1069
+ x2: e.x,
1070
+ y1: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1071
+ y2: W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1072
+ stroke: I.value.style.layout.grid.stroke,
1073
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1074
+ "stroke-linecap": "round"
1075
+ }, null, 8, it)) : p("", !0)]))), 256)),
1076
+ h("g", {
1077
+ ref_key: "xAxisLabels",
1078
+ ref: jt
1079
+ }, [(x(!0), m(u, null, C(G.value.right, (e, t) => (x(), m("text", {
1080
+ class: "vue-ui-age-pyramid-x-axis-label",
1081
+ "font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
1082
+ fill: I.value.style.layout.dataLabels.xAxis.color,
1083
+ "text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1084
+ "font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1085
+ transform: `translate(${e.x}, ${W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
1086
+ }, T(E(l)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
1087
+ datapoint: e,
1088
+ seriesIndex: t
1089
+ })), 9, at))), 256)), (x(!0), m(u, null, C(G.value.left, (e, t) => (x(), m("text", {
1090
+ class: "vue-ui-age-pyramid-x-axis-label",
1091
+ "font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
1092
+ fill: I.value.style.layout.dataLabels.xAxis.color,
1093
+ "text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1094
+ "font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1095
+ transform: `translate(${e.x}, ${W.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
1096
+ }, T(E(l)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
1097
+ datapoint: e,
1098
+ seriesIndex: t
1099
+ })), 9, ot))), 256))], 512),
1100
+ h("text", {
1101
+ x: W.value.right,
1102
+ y: H.value.height,
1103
+ "text-anchor": "end",
1104
+ "font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
1105
+ fill: I.value.style.layout.dataLabels.xAxis.color,
1106
+ "font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
1107
+ }, T(I.value.style.layout.dataLabels.xAxis.translation), 9, st)
1108
+ ])) : p("", !0)
1109
+ ]),
1110
+ (x(!0), m(u, null, C(e.dataset, (e, t) => (x(), m("g", null, [h("rect", {
1111
+ x: W.value.left,
1112
+ y: W.value.top + W.value.height / q.value * t - I.value.style.layout.bars.gap / 2,
1113
+ width: W.value.width <= 0 ? 1e-4 : W.value.width,
1114
+ height: W.value.height / q.value <= 0 ? 1e-4 : W.value.height / q.value,
1115
+ fill: j.value !== null && j.value === t ? E(n)(I.value.style.highlighter.color, I.value.style.highlighter.opacity) : "transparent",
1116
+ onMouseover: (n) => sn(t, e, "pointer"),
1117
+ onMouseleave: (n) => an(t, e),
1118
+ onClick: (n) => rn(t, e)
1119
+ }, null, 40, ct)]))), 256)),
1120
+ w(t.$slots, "svg", { svg: {
1121
+ ...H.value,
1122
+ drawingArea: W.value,
1123
+ isPrintingImg: E(Gt) || E(Kt) || E(yn),
1124
+ isPrintingSvg: E(bn)
1125
+ } }, void 0, !0)
1126
+ ], 46, He)), t.$slots.hint ? (x(), m("div", lt, [w(t.$slots, "hint", y(v({
1127
+ hint: I.value.a11y.translations.keyboardNavigation,
1128
+ isVisible: Pt.value
1129
+ })), void 0, !0)])) : p("", !0)]),
1130
+ t.$slots.watermark ? (x(), m("div", ut, [w(t.$slots, "watermark", y(v({ isPrinting: E(Gt) || E(Kt) || E(yn) || E(bn) })), void 0, !0)])) : p("", !0),
1131
+ w(t.$slots, "legend", { legend: J.value }, void 0, !0),
1132
+ t.$slots.source ? (x(), m("div", {
1133
+ key: 6,
1134
+ ref_key: "source",
1135
+ ref: Dt,
1136
+ dir: "auto"
1137
+ }, [w(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1138
+ g(E(dt), {
1139
+ teleportTo: I.value.style.tooltip.teleportTo,
1140
+ show: V.value.showTooltip && A.value,
1141
+ backgroundColor: I.value.style.tooltip.backgroundColor,
1142
+ color: I.value.style.tooltip.color,
1143
+ borderRadius: I.value.style.tooltip.borderRadius,
1144
+ borderColor: I.value.style.tooltip.borderColor,
1145
+ borderWidth: I.value.style.tooltip.borderWidth,
1146
+ fontSize: I.value.style.tooltip.fontSize,
1147
+ backgroundOpacity: I.value.style.tooltip.backgroundOpacity,
1148
+ position: I.value.style.tooltip.position,
1149
+ offsetX: I.value.style.tooltip.offsetX,
1150
+ offsetY: I.value.style.tooltip.offsetY,
1151
+ parent: M.value,
1152
+ content: wt.value,
1153
+ isFullscreen: Z.value,
1154
+ isCustom: I.value.style.tooltip.customFormat && typeof I.value.style.tooltip.customFormat == "function",
1155
+ smooth: I.value.style.tooltip.smooth,
1156
+ backdropFilter: I.value.style.tooltip.backdropFilter,
1157
+ smoothForce: I.value.style.tooltip.smoothForce,
1158
+ smoothSnapThreshold: I.value.style.tooltip.smoothSnapThreshold,
1159
+ isA11yMode: F.value === "keyboard",
1160
+ a11yPosition: Nt.value
1161
+ }, {
1162
+ "tooltip-before": D(() => [w(t.$slots, "tooltip-before", y(v({ ...Y.value })), void 0, !0)]),
1163
+ tooltip: D(() => [w(t.$slots, "tooltip", y(v({ ...Y.value })), void 0, !0)]),
1164
+ "tooltip-after": D(() => [w(t.$slots, "tooltip-after", y(v({ ...Y.value })), void 0, !0)]),
1165
+ _: 3
1166
+ }, 8, [
1167
+ "teleportTo",
1168
+ "show",
1169
+ "backgroundColor",
1170
+ "color",
1171
+ "borderRadius",
1172
+ "borderColor",
1173
+ "borderWidth",
1174
+ "fontSize",
1175
+ "backgroundOpacity",
1176
+ "position",
1177
+ "offsetX",
1178
+ "offsetY",
1179
+ "parent",
1180
+ "content",
1181
+ "isFullscreen",
1182
+ "isCustom",
1183
+ "smooth",
1184
+ "backdropFilter",
1185
+ "smoothForce",
1186
+ "smoothSnapThreshold",
1187
+ "isA11yMode",
1188
+ "a11yPosition"
1189
+ ]),
1190
+ Ct.value && I.value.userOptions.buttons.table ? (x(), f(Ne($.value.component), Oe({ key: 7 }, $.value.props, {
1191
+ ref_key: "tableUnit",
1192
+ ref: N,
1193
+ onClose: gn
1194
+ }), Ee({
1195
+ content: D(() => [(x(), f(E(mt), {
1196
+ key: `table_${At.value}`,
1197
+ colNames: X.value.colNames,
1198
+ head: X.value.head,
1199
+ body: X.value.body,
1200
+ config: X.value.config,
1201
+ title: I.value.table.useDialog ? "" : $.value.title,
1202
+ withCloseButton: !I.value.table.useDialog,
1203
+ isCursorPointer: L.value,
1204
+ onClose: gn
1205
+ }, {
1206
+ th: D(({ th: e }) => [De(T(e), 1)]),
1207
+ td: D(({ td: e }) => [De(T(e), 1)]),
1208
+ _: 1
1209
+ }, 8, [
1210
+ "colNames",
1211
+ "head",
1212
+ "body",
1213
+ "config",
1214
+ "title",
1215
+ "withCloseButton",
1216
+ "isCursorPointer"
1217
+ ]))]),
1218
+ _: 2
1219
+ }, [I.value.table.useDialog ? {
1220
+ name: "title",
1221
+ fn: D(() => [De(T($.value.title), 1)]),
1222
+ key: "0"
1223
+ } : void 0, I.value.table.useDialog ? {
1224
+ name: "actions",
1225
+ fn: D(() => [h("button", {
1226
+ tabindex: "0",
1227
+ class: "vue-ui-user-options-button",
1228
+ onClick: r[0] ||= (e) => cn(I.value.userOptions.callbacks.csv),
1229
+ style: b({ cursor: L.value ? "pointer" : "default" })
1230
+ }, [g(E(ft), {
1231
+ name: "fileCsv",
1232
+ stroke: $.value.props.color
1233
+ }, null, 8, ["stroke"])], 4)]),
1234
+ key: "1"
1235
+ } : void 0]), 1040)) : p("", !0),
1236
+ w(t.$slots, "skeleton", {}, () => [E(It) ? (x(), f(de, { key: 0 })) : p("", !0)], !0)
1237
+ ], 46, ze));
1238
+ }
1239
+ }, [["__scopeId", "data-v-96895e9d"]]);
1240
+ //#endregion
1241
+ export { Re as n, dt as t };