vue-data-ui 3.25.11 → 3.25.13

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -0,0 +1,1305 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, Et as r, Jt as i, Qt as a, Rt as o, X as ee, at as te, b as s, et as ne, ft as re, i as c, nt as ie, qt as ae, t as oe, tn as se } from "./lib-DOpaUOQx.js";
3
+ import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ue } from "./useConfig-C2uy4ltq.js";
5
+ import { t as de } from "./usePrinter-BBBooAGP.js";
6
+ import { n as fe, t as pe } from "./BaseScanner-Dzc8VT3j.js";
7
+ import { t as me } from "./useNestedProp-Bux0f4iY.js";
8
+ import { t as he } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ge } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as _e } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
+ import { t as ve } from "./img-W50sC9SC.js";
12
+ import { n as ye } from "./Title-DeqmC-vN.js";
13
+ import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as Ce } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as we } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as De } from "./vue_ui_age_pyramid-B2R66DgQ.js";
20
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Oe, createTextVNode as ke, createVNode as h, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as v, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as C, toRefs as Re, unref as w, watch as ze, watchEffect as Be, withCtx as T } from "vue";
21
+ //#region src/components/vue-ui-age-pyramid.vue
22
+ var Ve = /* @__PURE__ */ e({ default: () => gt }), He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
23
+ "xmlns",
24
+ "viewBox",
25
+ "aria-describedby"
26
+ ], Ke = [
27
+ "x",
28
+ "y",
29
+ "width",
30
+ "height"
31
+ ], qe = [
32
+ "x",
33
+ "y",
34
+ "width",
35
+ "height",
36
+ "fill",
37
+ "rx"
38
+ ], Je = [
39
+ "x",
40
+ "y",
41
+ "width",
42
+ "height",
43
+ "fill",
44
+ "rx"
45
+ ], Ye = [
46
+ "x",
47
+ "y",
48
+ "width",
49
+ "height",
50
+ "fill",
51
+ "rx"
52
+ ], Xe = [
53
+ "x",
54
+ "y",
55
+ "width",
56
+ "height",
57
+ "fill",
58
+ "rx"
59
+ ], Ze = [
60
+ "x",
61
+ "y",
62
+ "font-size",
63
+ "font-weight",
64
+ "fill",
65
+ "stroke"
66
+ ], Qe = [
67
+ "x",
68
+ "y",
69
+ "font-size",
70
+ "font-weight",
71
+ "fill",
72
+ "stroke"
73
+ ], $e = { key: 0 }, et = [
74
+ "x",
75
+ "y",
76
+ "fill",
77
+ "font-size",
78
+ "font-weight"
79
+ ], tt = [
80
+ "x",
81
+ "y",
82
+ "fill",
83
+ "font-size",
84
+ "font-weight"
85
+ ], nt = { key: 1 }, rt = [
86
+ "x",
87
+ "y",
88
+ "font-size",
89
+ "fill",
90
+ "font-weight"
91
+ ], it = { key: 2 }, at = { key: 0 }, ot = [
92
+ "x1",
93
+ "x2",
94
+ "y1",
95
+ "y2",
96
+ "stroke",
97
+ "stroke-width"
98
+ ], st = [
99
+ "x1",
100
+ "x2",
101
+ "y1",
102
+ "y2",
103
+ "stroke",
104
+ "stroke-width"
105
+ ], ct = [
106
+ "x1",
107
+ "x2",
108
+ "y1",
109
+ "y2",
110
+ "stroke",
111
+ "stroke-width"
112
+ ], lt = [
113
+ "x1",
114
+ "x2",
115
+ "y1",
116
+ "y2",
117
+ "stroke",
118
+ "stroke-width"
119
+ ], ut = [
120
+ "font-size",
121
+ "fill",
122
+ "text-anchor",
123
+ "font-weight",
124
+ "transform"
125
+ ], dt = [
126
+ "font-size",
127
+ "fill",
128
+ "text-anchor",
129
+ "font-weight",
130
+ "transform"
131
+ ], ft = [
132
+ "x",
133
+ "y",
134
+ "font-size",
135
+ "fill",
136
+ "font-weight"
137
+ ], pt = [
138
+ "x",
139
+ "y",
140
+ "width",
141
+ "height",
142
+ "fill",
143
+ "onMouseover",
144
+ "onMouseleave",
145
+ "onClick"
146
+ ], mt = {
147
+ key: 0,
148
+ style: {
149
+ position: "absolute",
150
+ top: "100%",
151
+ left: "0",
152
+ width: "100%"
153
+ },
154
+ "data-dom-to-png-ignore": "",
155
+ "aria-hidden": "true"
156
+ }, ht = {
157
+ key: 5,
158
+ class: "vue-data-ui-watermark"
159
+ }, gt = /*#__PURE__*/ be({
160
+ __name: "vue-ui-age-pyramid",
161
+ props: {
162
+ config: {
163
+ type: Object,
164
+ default() {
165
+ return {};
166
+ }
167
+ },
168
+ dataset: {
169
+ type: Array,
170
+ default() {
171
+ return [];
172
+ }
173
+ }
174
+ },
175
+ emits: ["copyAlt"],
176
+ setup(e, { expose: be, emit: Ve }) {
177
+ let gt = g(() => import("./Tooltip-DZ4a3XJQ.js")), _t = g(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), vt = g(() => import("./vue-ui-accordion-yHZMJLaY.js").then((e) => e.n)), yt = g(() => import("./DataTable-BD1eZ0zB.js")), bt = g(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), xt = g(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), St = g(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), Ct = g(() => import("./BaseDraggableDialog-Ck6R5Q0K.js").then((e) => e.n)), { vue_ui_age_pyramid: wt } = ue(), { isThemeValid: Tt, warnInvalidTheme: Et } = he(), E = e, Dt = Ve, Ot = u(() => !!E.dataset && E.dataset.length), D = b(ee()), O = b(!1), kt = b(""), k = b(null), At = b(0), A = b(null), jt = b(null), Mt = b(null), Nt = b(null), Pt = b(0), Ft = b(0), It = b(null), j = b(null), Lt = b(null), M = b(null), Rt = b({
178
+ x: 0,
179
+ y: 0
180
+ }), N = b("pointer"), zt = b(!1), P = b(qt()), F = u(() => P.value.style), I = u(() => P.value.style.layout.dataLabels), L = u(() => P.value.style.layout.bars), R = u(() => P.value.style.layout.bars.labels);
181
+ ce({
182
+ config: () => P.value,
183
+ dataset: () => E.dataset,
184
+ component: "VueUiAgePyramid",
185
+ rules: [le.emptyArray, {
186
+ test: (e) => e.length > 130,
187
+ message: [
188
+ "👀 Dataset has > 130 points. Consider:",
189
+ "",
190
+ "▶️ Grouping small values into aggregated categories.",
191
+ "",
192
+ "▶️ Using VueUiStackline to display data in a more compact way."
193
+ ]
194
+ }]
195
+ });
196
+ let z = u(() => P.value.userOptions.useCursorPointer), Bt = u(() => se({
197
+ defaultConfig: {
198
+ userOptions: { show: !1 },
199
+ table: { show: !1 },
200
+ translations: {
201
+ male: "",
202
+ female: ""
203
+ },
204
+ style: {
205
+ backgroundColor: "#99999930",
206
+ layout: {
207
+ bars: {
208
+ left: { color: "#CACACA" },
209
+ right: { color: "#999999" }
210
+ },
211
+ dataLabels: {
212
+ xAxis: {
213
+ fontSize: 0,
214
+ scale: 1e3,
215
+ translation: ""
216
+ },
217
+ yAxis: { show: !1 }
218
+ },
219
+ grid: { stroke: "#6A6A6A" }
220
+ }
221
+ }
222
+ },
223
+ userConfig: P.value.skeletonConfig ?? {}
224
+ })), { loading: Vt, FINAL_DATASET: Ht, manualLoading: Ut } = fe({
225
+ ...Re(E),
226
+ FINAL_CONFIG: P,
227
+ prepareConfig: qt,
228
+ skeletonDataset: E.config?.skeletonDataset ?? [
229
+ [
230
+ "_",
231
+ 9,
232
+ 2,
233
+ 2
234
+ ],
235
+ [
236
+ "_",
237
+ 8,
238
+ 3,
239
+ 3
240
+ ],
241
+ [
242
+ "_",
243
+ 7,
244
+ 5,
245
+ 5
246
+ ],
247
+ [
248
+ "_",
249
+ 6,
250
+ 8,
251
+ 8
252
+ ],
253
+ [
254
+ "_",
255
+ 5,
256
+ 13,
257
+ 13
258
+ ],
259
+ [
260
+ "_",
261
+ 4,
262
+ 21,
263
+ 21
264
+ ],
265
+ [
266
+ "_",
267
+ 3,
268
+ 34,
269
+ 34
270
+ ],
271
+ [
272
+ "_",
273
+ 2,
274
+ 55,
275
+ 55
276
+ ],
277
+ [
278
+ "_",
279
+ 1,
280
+ 89,
281
+ 89
282
+ ],
283
+ [
284
+ "_",
285
+ 0,
286
+ 144,
287
+ 144
288
+ ]
289
+ ],
290
+ skeletonConfig: se({
291
+ defaultConfig: P.value,
292
+ userConfig: Bt.value
293
+ })
294
+ }), { userOptionsVisible: Wt, setUserOptionsVisibility: Gt, keepUserOptionState: Kt } = Te({ config: P.value }), { svgRef: B } = Ee({ config: P.value.style.title });
295
+ function qt() {
296
+ let e = me({
297
+ userConfig: E.config,
298
+ defaultConfig: wt
299
+ }), t = e.theme;
300
+ if (!t) return e;
301
+ if (!Tt.value(e)) return Et(e), e;
302
+ let n = me({
303
+ userConfig: De[t] || E.config,
304
+ defaultConfig: e
305
+ });
306
+ return me({
307
+ userConfig: E.config,
308
+ defaultConfig: n
309
+ });
310
+ }
311
+ function Jt(e) {
312
+ let t = ne(e);
313
+ return t?.style?.chart && delete t.style.tooltip, JSON.stringify(t);
314
+ }
315
+ let Yt = Jt(E.config);
316
+ ze(() => E.config, (e, t) => {
317
+ let n = Jt(e), r = n !== Yt;
318
+ Yt = n;
319
+ let i = qt();
320
+ if (!r) {
321
+ P.value.style.tooltip = i.style.tooltip, U.value.showTooltip = P.value.style.tooltip.show;
322
+ return;
323
+ }
324
+ Vt.value || (P.value = i), Wt.value = !P.value.userOptions.showOnChartHover, Zt(), Pt.value += 1, Ft.value += 1, U.value.showTable = P.value.table.show, U.value.showTooltip = P.value.style.tooltip.show;
325
+ }, { deep: !0 }), ze(() => E.dataset, (e) => {
326
+ Array.isArray(e) && e.length > 0 && (Ut.value = !1);
327
+ }, { deep: !0 });
328
+ let V = Le(null), H = Le(null);
329
+ Fe(() => {
330
+ Zt();
331
+ });
332
+ let Xt = u(() => P.value.debug);
333
+ function Zt() {
334
+ if (o(E.dataset) && (te({
335
+ componentName: "VueUiAgePyramid",
336
+ type: "dataset",
337
+ debug: Xt.value
338
+ }), Ut.value = !0), o(E.dataset) || (Ut.value = P.value.loading), P.value.responsive) {
339
+ let e = xe(() => {
340
+ let { width: e, height: t } = Se({
341
+ chart: A.value,
342
+ title: F.value.title.text ? jt.value : null,
343
+ source: Mt.value,
344
+ noTitle: Nt.value
345
+ });
346
+ requestAnimationFrame(() => {
347
+ W.value.width = e, W.value.height = t;
348
+ });
349
+ });
350
+ V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(e), H.value = A.value.parentNode, V.value.observe(H.value);
351
+ }
352
+ }
353
+ Pe(() => {
354
+ V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
355
+ });
356
+ let { isPrinting: Qt, isImaging: $t, generatePdf: en, generateImage: tn } = de({
357
+ elementId: `vue-ui-age-pyramid_${D.value}`,
358
+ fileName: F.value.title.text || "vue-ui-age-pyramid",
359
+ options: P.value.userOptions.print
360
+ }), nn = u(() => P.value.userOptions.show && !F.value.title.text), U = b({
361
+ showTable: P.value.table.show,
362
+ showTooltip: F.value.tooltip.show
363
+ });
364
+ ze(P, () => {
365
+ U.value = {
366
+ showTable: P.value.table.show,
367
+ showTooltip: F.value.tooltip.show
368
+ };
369
+ }, { immediate: !0 });
370
+ let W = b({
371
+ height: F.value.height,
372
+ width: F.value.width
373
+ }), rn = u(() => W.value.width), an = u(() => W.value.height), on = b(0), sn = xe((e) => {
374
+ on.value = e;
375
+ }, 100);
376
+ Be((e) => {
377
+ let t = It.value;
378
+ if (!t) return;
379
+ let n = new ResizeObserver((e) => {
380
+ sn(e[0].contentRect.height);
381
+ });
382
+ n.observe(t), e(() => n.disconnect());
383
+ }), Pe(() => {
384
+ on.value = 0;
385
+ });
386
+ let G = u(() => {
387
+ let e = W.value.width - F.value.layout.padding.right - F.value.layout.padding.left, t = F.value.layout.padding.left, n = W.value.width - F.value.layout.padding.right;
388
+ return {
389
+ top: F.value.layout.padding.top + I.value.sideTitles.fontSize + I.value.sideTitles.offsetY + 12,
390
+ left: t,
391
+ right: n,
392
+ bottom: W.value.height - F.value.layout.padding.bottom - on.value,
393
+ width: e,
394
+ height: W.value.height - F.value.layout.padding.top - F.value.layout.padding.bottom - on.value - I.value.sideTitles.fontSize - I.value.sideTitles.offsetY - 12,
395
+ centerX: F.value.layout.padding.left + e / 2,
396
+ leftChart: {
397
+ width: e / 2 - F.value.layout.centerSlit.width,
398
+ right: t + e / 2 - F.value.layout.centerSlit.width
399
+ },
400
+ rightChart: {
401
+ width: e / 2 - F.value.layout.centerSlit.width,
402
+ left: t + e / 2 + F.value.layout.centerSlit.width
403
+ }
404
+ };
405
+ }), cn = u(() => Ht.value.map((e) => I.value.yAxis.display === "age" ? e[1] : e[0])), K = u(() => {
406
+ let e = ln(q.value / 5), t = [], n = [];
407
+ for (let r = 0; r <= 5; r += 1) {
408
+ let i = e * r, a = e * (r - 5);
409
+ t.push({
410
+ value: i,
411
+ x: G.value.left + G.value.width / 2 + F.value.layout.centerSlit.width + i / q.value * G.value.leftChart.width
412
+ }), n.push({
413
+ value: Math.abs(a),
414
+ x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - F.value.layout.centerSlit.width
415
+ });
416
+ }
417
+ return {
418
+ right: t,
419
+ left: n
420
+ };
421
+ });
422
+ function ln(e) {
423
+ if (e === 0) return 0;
424
+ let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
425
+ return n = Math.round(e / t) * t, n;
426
+ }
427
+ let q = u(() => Math.max(...Ht.value.flatMap((e) => e.slice(-2).map((e) => s(e))))), J = u(() => Ht.value.length), un = u(() => Ht.value.map((e) => ({
428
+ segment: e[0],
429
+ age: e[1],
430
+ left: {
431
+ value: e[2],
432
+ proportionToMax: e[2] / q.value
433
+ },
434
+ right: {
435
+ value: e[3],
436
+ proportionToMax: e[3] / q.value
437
+ }
438
+ }))), Y = u(() => un.value.map((e, t) => {
439
+ let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - L.value.gap;
440
+ return {
441
+ segment: e.segment,
442
+ age: e.age,
443
+ left: {
444
+ ...e.left,
445
+ y: n,
446
+ color: L.value.left.color,
447
+ x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
448
+ width: s(e.left.proportionToMax * G.value.leftChart.width),
449
+ height: r
450
+ },
451
+ right: {
452
+ ...e.right,
453
+ y: n,
454
+ color: L.value.right.color,
455
+ x: G.value.rightChart.left,
456
+ width: s(e.right.proportionToMax * G.value.rightChart.width),
457
+ height: r
458
+ }
459
+ };
460
+ })), dn = b(null);
461
+ function fn(e) {
462
+ let [t, n, r, i] = e;
463
+ return {
464
+ segment: t,
465
+ index: n,
466
+ left: r,
467
+ right: i
468
+ };
469
+ }
470
+ function pn(e, t) {
471
+ P.value.events.datapointClick && P.value.events.datapointClick({
472
+ datapoint: fn(t),
473
+ seriesIndex: e
474
+ });
475
+ }
476
+ function mn(e, t) {
477
+ P.value.events.datapointLeave && P.value.events.datapointLeave({
478
+ datapoint: fn(t),
479
+ seriesIndex: e
480
+ }), (N.value !== "keyboard" || M.value !== e) && (k.value = null, O.value = !1);
481
+ }
482
+ function hn(e) {
483
+ if (!B.value) return;
484
+ let t = Y.value[e];
485
+ if (!t) return;
486
+ let n = a(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, B.value);
487
+ n && (Rt.value = n);
488
+ }
489
+ function gn(e, n, i = "pointer") {
490
+ P.value.events.datapointEnter && P.value.events.datapointEnter({
491
+ datapoint: fn(n),
492
+ seriesIndex: e
493
+ }), k.value = e, M.value = e, N.value = i, dn.value = {
494
+ datapoint: n,
495
+ seriesIndex: e,
496
+ series: Y.value,
497
+ config: P.value
498
+ };
499
+ let a = F.value.tooltip.customFormat;
500
+ if (r(a) && re(() => a({
501
+ seriesIndex: e,
502
+ datapoint: {
503
+ segment: n[0],
504
+ index: n[1],
505
+ left: n[2],
506
+ right: n[3]
507
+ },
508
+ series: Y.value,
509
+ config: P.value
510
+ }))) kt.value = a({
511
+ seriesIndex: e,
512
+ datapoint: {
513
+ segment: n[0],
514
+ index: n[1],
515
+ left: n[2],
516
+ right: n[3]
517
+ },
518
+ series: Y.value,
519
+ config: P.value
520
+ });
521
+ else {
522
+ let r = "", i = Y.value[e];
523
+ r += `<div><b>${i.segment}</b></div>`, r += `<div>${P.value.translations.age}: ${c(I.value.yAxis.formatter, s(i.age), t({ v: s(i.age) }), {
524
+ datapoint: n,
525
+ seriesIndex: e
526
+ })}</div>`, r += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`, r += "<div style=\"display:flex; flex-direction:row;gap:12px\">", r += `<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="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show ? `url(#age_pyramid_left_${D.value})` : L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${c(I.value.xAxis.formatter, s(i.left.value), t({ v: s(i.left.value) }), {
527
+ datapoint: n,
528
+ seriesIndex: e
529
+ })}</b></div></div>`, r += `<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="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show ? `url(#age_pyramid_right_${D.value})` : L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${c(I.value.xAxis.formatter, s(i.right.value), t({ v: s(i.right.value) }), {
530
+ datapoint: n,
531
+ seriesIndex: e
532
+ })}</b></div></div>`, r += "</div>", r += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${c(I.value.xAxis.formatter, s(i.right.value) + s(i.left.value), t({ v: s(i.right.value) + s(i.left.value) }), {
533
+ datapoint: n,
534
+ seriesIndex: e
535
+ })}</b></div></div>`, r += "</div>", kt.value = `<div>${r}</div>`;
536
+ }
537
+ O.value = !0, i === "keyboard" && je(() => {
538
+ hn(e);
539
+ });
540
+ }
541
+ function _n(e = null) {
542
+ je(() => {
543
+ let t = [
544
+ P.value.translations.year,
545
+ P.value.translations.age,
546
+ P.value.translations.female,
547
+ P.value.translations.male,
548
+ P.value.translations.total
549
+ ], r = E.dataset.map((e) => [
550
+ e[0],
551
+ e[1],
552
+ e[2],
553
+ e[3],
554
+ e[2] ?? 0 + e[3] ?? 0
555
+ ]), i = [
556
+ [F.value.title.text],
557
+ [F.value.title.subtitle.text],
558
+ [
559
+ [""],
560
+ [""],
561
+ [""]
562
+ ],
563
+ t
564
+ ].concat(r), a = n(i);
565
+ e ? e(a) : ie({
566
+ csvContent: a,
567
+ title: F.value.title.text || "vue-ui-heatmap"
568
+ });
569
+ });
570
+ }
571
+ let X = u(() => {
572
+ let e = [
573
+ P.value.translations.year,
574
+ P.value.translations.age,
575
+ P.value.translations.female,
576
+ P.value.translations.male,
577
+ P.value.translations.total
578
+ ];
579
+ return {
580
+ head: e,
581
+ body: E.dataset.map((e) => [
582
+ e[0],
583
+ e[1],
584
+ e[2] == null ? "" : e[2].toLocaleString(),
585
+ e[3] == null ? "" : e[3].toLocaleString(),
586
+ (e[2] ?? 0 + e[3] ?? 0).toLocaleString()
587
+ ]),
588
+ config: {
589
+ th: {
590
+ backgroundColor: P.value.table.th.backgroundColor,
591
+ color: P.value.table.th.color,
592
+ outline: P.value.table.th.outline
593
+ },
594
+ td: {
595
+ backgroundColor: P.value.table.td.backgroundColor,
596
+ color: P.value.table.td.color,
597
+ outline: P.value.table.td.outline
598
+ },
599
+ breakpoint: P.value.table.responsiveBreakpoint
600
+ },
601
+ colNames: e
602
+ };
603
+ }), Z = b(!1);
604
+ function vn(e) {
605
+ Z.value = e, At.value += 1;
606
+ }
607
+ function yn() {
608
+ U.value.showTable = !U.value.showTable;
609
+ }
610
+ function bn() {
611
+ U.value.showTooltip = !U.value.showTooltip;
612
+ }
613
+ let Q = b(!1);
614
+ function xn() {
615
+ Q.value = !Q.value;
616
+ }
617
+ async function Sn({ scale: e = 2 } = {}) {
618
+ if (!A.value) return;
619
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
620
+ domElement: A.value,
621
+ base64: !0,
622
+ img: !0,
623
+ scale: e
624
+ });
625
+ return {
626
+ imageUri: i,
627
+ base64: a,
628
+ title: F.value.title.text,
629
+ width: t,
630
+ height: n,
631
+ aspectRatio: r
632
+ };
633
+ }
634
+ let Cn = b([]), wn = b({
635
+ start: 0,
636
+ end: Y.value.length
637
+ });
638
+ _e({
639
+ timeLabelsEls: It,
640
+ timeLabels: Cn,
641
+ slicer: wn,
642
+ configRef: P,
643
+ rotationPath: [
644
+ "style",
645
+ "layout",
646
+ "dataLabels",
647
+ "xAxis",
648
+ "rotation"
649
+ ],
650
+ autoRotatePath: [
651
+ "style",
652
+ "layout",
653
+ "dataLabels",
654
+ "xAxis",
655
+ "autoRotate",
656
+ "enable"
657
+ ],
658
+ isAutoSize: !1,
659
+ width: rn,
660
+ height: an,
661
+ targetClass: ".vue-ui-age-pyramid-x-axis-label",
662
+ rotation: F.value.layout.dataLabels.xAxis.autoRotate.angle
663
+ });
664
+ let $ = u(() => {
665
+ let e = P.value.table.useDialog && !P.value.table.show, t = U.value.showTable;
666
+ return {
667
+ component: e ? Ct : vt,
668
+ title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
669
+ props: e ? {
670
+ backgroundColor: P.value.table.th.backgroundColor,
671
+ color: P.value.table.th.color,
672
+ headerColor: P.value.table.th.color,
673
+ headerBg: P.value.table.th.backgroundColor,
674
+ isFullscreen: Z.value,
675
+ fullscreenParent: A.value,
676
+ forcedWidth: Math.min(800, window.innerWidth * .8),
677
+ isCursorPointer: z.value
678
+ } : {
679
+ hideDetails: !0,
680
+ config: {
681
+ open: t,
682
+ maxHeight: 1e4,
683
+ body: {
684
+ backgroundColor: F.value.backgroundColor,
685
+ color: F.value.color
686
+ },
687
+ head: {
688
+ backgroundColor: F.value.backgroundColor,
689
+ color: F.value.color
690
+ }
691
+ }
692
+ }
693
+ };
694
+ });
695
+ ze(() => U.value.showTable, (e) => {
696
+ P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
697
+ });
698
+ function Tn() {
699
+ U.value.showTable = !1, Lt.value && Lt.value.setTableIconState(!1);
700
+ }
701
+ let En = u(() => P.value.style.backgroundColor), Dn = u(() => P.value.style.title), { isCallbackImaging: On, isCallbackSvg: kn, generateSvg: An, onGenerateImage: jn } = ge({
702
+ svg: B,
703
+ title: Dn,
704
+ legend: null,
705
+ legendItems: null,
706
+ backgroundColor: En,
707
+ getSvgCallback: () => P.value.userOptions.callbacks.svg,
708
+ generateImage: tn
709
+ });
710
+ async function Mn() {
711
+ if (Dt("copyAlt", {
712
+ config: P.value,
713
+ dataset: Y.value
714
+ }), !P.value.userOptions.callbacks.altCopy) {
715
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
716
+ return;
717
+ }
718
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
719
+ config: P.value,
720
+ dataset: Y.value
721
+ }));
722
+ }
723
+ function Nn() {
724
+ zt.value = !0;
725
+ }
726
+ function Pn() {
727
+ k.value = null, M.value = null, N.value = "pointer", O.value = !1, zt.value = !1;
728
+ }
729
+ function Fn(e) {
730
+ if (!B.value || Q.value || document.activeElement !== B.value || !Y.value.length) return;
731
+ let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
732
+ if (!t && !n && !r && !i) return;
733
+ if (e.preventDefault(), e.stopPropagation(), i) {
734
+ k.value = null, M.value = null, N.value = "pointer", O.value = !1;
735
+ return;
736
+ }
737
+ if (r) {
738
+ if (M.value === null) return;
739
+ let e = E.dataset[M.value];
740
+ if (!e) return;
741
+ pn(M.value, e);
742
+ return;
743
+ }
744
+ let a = M.value, o = k.value, ee = a !== null && a >= 0 && a < Y.value.length, te = o !== null && o >= 0 && o < Y.value.length;
745
+ ee ? t ? a = a - 1 < 0 ? Y.value.length - 1 : a - 1 : n && (a = a + 1 > Y.value.length - 1 ? 0 : a + 1) : te ? (a = n ? o + 1 : o - 1, a >= Y.value.length && (a = 0), a < 0 && (a = Y.value.length - 1)) : a = n ? 0 : Y.value.length - 1;
746
+ let s = E.dataset[a];
747
+ s && gn(a, s, "keyboard");
748
+ }
749
+ return be({
750
+ getImage: Sn,
751
+ generatePdf: en,
752
+ generateCsv: _n,
753
+ generateImage: tn,
754
+ generateSvg: An,
755
+ toggleTable: yn,
756
+ toggleTooltip: bn,
757
+ toggleAnnotator: xn,
758
+ toggleFullscreen: vn,
759
+ copyAlt: Mn
760
+ }), (n, r) => (y(), p("div", {
761
+ class: Me(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
762
+ ref_key: "agePyramid",
763
+ ref: A,
764
+ id: `vue-ui-age-pyramid_${D.value}`,
765
+ style: Ne(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive ? "height:100%" : ""}`),
766
+ onMouseenter: r[1] ||= () => w(Gt)(!0),
767
+ onMouseleave: r[2] ||= () => w(Gt)(!1)
768
+ }, [
769
+ m("div", {
770
+ id: `chart-instructions-${D.value}`,
771
+ class: "sr-only"
772
+ }, [m("p", null, C(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
773
+ X.value?.body?.length ? (y(), d(we, {
774
+ key: 0,
775
+ uid: D.value,
776
+ head: X.value.head,
777
+ body: X.value.body,
778
+ notice: P.value.a11y.translations.tableAvailable,
779
+ caption: P.value.a11y.translations.tableCaption
780
+ }, null, 8, [
781
+ "uid",
782
+ "head",
783
+ "body",
784
+ "notice",
785
+ "caption"
786
+ ])) : f("", !0),
787
+ P.value.userOptions.buttons.annotator ? (y(), d(w(bt), {
788
+ key: 1,
789
+ svgRef: w(B),
790
+ backgroundColor: F.value.backgroundColor,
791
+ color: F.value.color,
792
+ active: Q.value,
793
+ isCursorPointer: z.value,
794
+ palette: P.value.userOptions.annotatorPalette,
795
+ onClose: xn
796
+ }, {
797
+ "annotator-action-close": T(() => [S(n.$slots, "annotator-action-close", {}, void 0, !0)]),
798
+ "annotator-action-color": T(({ color: e }) => [S(n.$slots, "annotator-action-color", v(_({ color: e })), void 0, !0)]),
799
+ "annotator-action-draw": T(({ mode: e }) => [S(n.$slots, "annotator-action-draw", v(_({ mode: e })), void 0, !0)]),
800
+ "annotator-action-undo": T(({ disabled: e }) => [S(n.$slots, "annotator-action-undo", v(_({ disabled: e })), void 0, !0)]),
801
+ "annotator-action-redo": T(({ disabled: e }) => [S(n.$slots, "annotator-action-redo", v(_({ disabled: e })), void 0, !0)]),
802
+ "annotator-action-delete": T(({ disabled: e }) => [S(n.$slots, "annotator-action-delete", v(_({ disabled: e })), void 0, !0)]),
803
+ _: 3
804
+ }, 8, [
805
+ "svgRef",
806
+ "backgroundColor",
807
+ "color",
808
+ "active",
809
+ "isCursorPointer",
810
+ "palette"
811
+ ])) : f("", !0),
812
+ nn.value ? (y(), p("div", {
813
+ key: 2,
814
+ ref_key: "noTitle",
815
+ ref: Nt,
816
+ class: "vue-data-ui-no-title-space",
817
+ style: "height:36px; width: 100%;background:transparent"
818
+ }, null, 512)) : f("", !0),
819
+ F.value.title.text ? (y(), p("div", {
820
+ key: 3,
821
+ ref_key: "chartTitle",
822
+ ref: jt,
823
+ style: "width:100%;background:transparent"
824
+ }, [(y(), d(ye, {
825
+ key: `title_${Pt.value}`,
826
+ config: {
827
+ title: {
828
+ cy: "pyramid-div-title",
829
+ ...F.value.title
830
+ },
831
+ subtitle: {
832
+ cy: "pyramid-div-subtitle",
833
+ ...F.value.title.subtitle
834
+ }
835
+ }
836
+ }, null, 8, ["config"]))], 512)) : f("", !0),
837
+ P.value.userOptions.show && Ot.value && (w(Kt) || w(Wt)) ? (y(), d(w(xt), {
838
+ ref_key: "userOptionsRef",
839
+ ref: Lt,
840
+ key: `user_options_${At.value}`,
841
+ backgroundColor: F.value.backgroundColor,
842
+ color: F.value.color,
843
+ isImaging: w($t),
844
+ isPrinting: w(Qt),
845
+ uid: D.value,
846
+ hasTooltip: P.value.userOptions.buttons.tooltip && F.value.tooltip.show,
847
+ hasPdf: P.value.userOptions.buttons.pdf,
848
+ hasXls: P.value.userOptions.buttons.csv,
849
+ hasImg: P.value.userOptions.buttons.img,
850
+ hasSvg: P.value.userOptions.buttons.svg,
851
+ hasTable: P.value.userOptions.buttons.table,
852
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
853
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
854
+ isFullscreen: Z.value,
855
+ isTooltip: U.value.showTooltip,
856
+ titles: { ...P.value.userOptions.buttonTitles },
857
+ chartElement: A.value,
858
+ position: P.value.userOptions.position,
859
+ hasAnnotator: P.value.userOptions.buttons.annotator,
860
+ isAnnotation: Q.value,
861
+ callbacks: P.value.userOptions.callbacks,
862
+ printScale: P.value.userOptions.print.scale,
863
+ tableDialog: P.value.table.useDialog,
864
+ isCursorPointer: z.value,
865
+ onToggleFullscreen: vn,
866
+ onGeneratePdf: w(en),
867
+ onGenerateCsv: _n,
868
+ onGenerateImage: w(jn),
869
+ onGenerateSvg: w(An),
870
+ onToggleTable: yn,
871
+ onToggleTooltip: bn,
872
+ onToggleAnnotator: xn,
873
+ onCopyAlt: Mn,
874
+ style: Ne({ visibility: w(Kt) ? w(Wt) ? "visible" : "hidden" : "visible" })
875
+ }, Oe({ _: 2 }, [
876
+ n.$slots.menuIcon ? {
877
+ name: "menuIcon",
878
+ fn: T(({ isOpen: e, color: t }) => [S(n.$slots, "menuIcon", v(_({
879
+ isOpen: e,
880
+ color: t
881
+ })), void 0, !0)]),
882
+ key: "0"
883
+ } : void 0,
884
+ n.$slots.optionTooltip ? {
885
+ name: "optionTooltip",
886
+ fn: T(() => [S(n.$slots, "optionTooltip", {}, void 0, !0)]),
887
+ key: "1"
888
+ } : void 0,
889
+ n.$slots.optionPdf ? {
890
+ name: "optionPdf",
891
+ fn: T(() => [S(n.$slots, "optionPdf", {}, void 0, !0)]),
892
+ key: "2"
893
+ } : void 0,
894
+ n.$slots.optionCsv ? {
895
+ name: "optionCsv",
896
+ fn: T(() => [S(n.$slots, "optionCsv", {}, void 0, !0)]),
897
+ key: "3"
898
+ } : void 0,
899
+ n.$slots.optionImg ? {
900
+ name: "optionImg",
901
+ fn: T(() => [S(n.$slots, "optionImg", {}, void 0, !0)]),
902
+ key: "4"
903
+ } : void 0,
904
+ n.$slots.optionSvg ? {
905
+ name: "optionSvg",
906
+ fn: T(() => [S(n.$slots, "optionSvg", {}, void 0, !0)]),
907
+ key: "5"
908
+ } : void 0,
909
+ n.$slots.optionTable ? {
910
+ name: "optionTable",
911
+ fn: T(() => [S(n.$slots, "optionTable", {}, void 0, !0)]),
912
+ key: "6"
913
+ } : void 0,
914
+ n.$slots.optionFullscreen ? {
915
+ name: "optionFullscreen",
916
+ fn: T(({ toggleFullscreen: e, isFullscreen: t }) => [S(n.$slots, "optionFullscreen", v(_({
917
+ toggleFullscreen: e,
918
+ isFullscreen: t
919
+ })), void 0, !0)]),
920
+ key: "7"
921
+ } : void 0,
922
+ n.$slots.optionAnnotator ? {
923
+ name: "optionAnnotator",
924
+ fn: T(({ toggleAnnotator: e, isAnnotator: t }) => [S(n.$slots, "optionAnnotator", v(_({
925
+ toggleAnnotator: e,
926
+ isAnnotator: t
927
+ })), void 0, !0)]),
928
+ key: "8"
929
+ } : void 0,
930
+ n.$slots.optionAltCopy ? {
931
+ name: "optionAltCopy",
932
+ fn: T(({ altCopy: e }) => [S(n.$slots, "optionAltCopy", v(_({ altCopy: e })), void 0, !0)]),
933
+ key: "9"
934
+ } : void 0,
935
+ n.$slots["custom-menu-before"] ? {
936
+ name: "custom-menu-before",
937
+ fn: T(() => [S(n.$slots, "custom-menu-before", {}, void 0, !0)]),
938
+ key: "10"
939
+ } : void 0,
940
+ n.$slots["custom-menu-after"] ? {
941
+ name: "custom-menu-after",
942
+ fn: T(() => [S(n.$slots, "custom-menu-after", {}, void 0, !0)]),
943
+ key: "11"
944
+ } : void 0
945
+ ]), 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("."))) : f("", !0),
946
+ m("div", We, [(y(), p("svg", {
947
+ ref_key: "svgRef",
948
+ ref: B,
949
+ xmlns: w(oe),
950
+ class: Me({
951
+ "vue-data-ui-fullscreen--on": Z.value,
952
+ "vue-data-ui-fulscreen--off": !Z.value
953
+ }),
954
+ viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
955
+ style: Ne(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color}`),
956
+ tabindex: "0",
957
+ "aria-describedby": `chart-instructions-${D.value}`,
958
+ onFocus: Nn,
959
+ onBlur: Pn,
960
+ onKeydown: Fn
961
+ }, [
962
+ h(w(St)),
963
+ n.$slots["chart-background"] ? (y(), p("foreignObject", {
964
+ key: 0,
965
+ x: G.value.left,
966
+ y: G.value.top,
967
+ width: Math.max(.1, G.value.width),
968
+ height: Math.max(.1, G.value.height),
969
+ style: { pointerEvents: "none" }
970
+ }, [S(n.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : f("", !0),
971
+ m("defs", null, [h(Ce, {
972
+ t: "linear",
973
+ id: `age_pyramid_left_${D.value}`,
974
+ x1: "0%",
975
+ y1: "0%",
976
+ x2: "100%",
977
+ y2: "0%",
978
+ stops: [[
979
+ "0%",
980
+ L.value.left.color,
981
+ 1
982
+ ], [
983
+ "100%",
984
+ w(ae)(w(i)(L.value.left.color, L.value.gradient.shiftHue), 100 - L.value.gradient.intensity),
985
+ 1
986
+ ]]
987
+ }, null, 8, ["id", "stops"]), h(Ce, {
988
+ t: "linear",
989
+ id: `age_pyramid_right_${D.value}`,
990
+ x1: "0%",
991
+ y1: "0%",
992
+ x2: "100%",
993
+ y2: "0%",
994
+ stops: [[
995
+ "0%",
996
+ w(ae)(w(i)(L.value.right.color, L.value.gradient.shiftHue), 100 - L.value.gradient.intensity),
997
+ 1
998
+ ], [
999
+ "100%",
1000
+ L.value.right.color,
1001
+ 1
1002
+ ]]
1003
+ }, null, 8, ["id", "stops"])]),
1004
+ (y(!0), p(l, null, x(Y.value, (e, t) => (y(), p("g", null, [
1005
+ m("rect", {
1006
+ x: e.left.x,
1007
+ y: e.left.y,
1008
+ width: w(s)(e.left.width <= 0 ? 1e-4 : e.left.width),
1009
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
1010
+ fill: L.value.gradient.underlayer,
1011
+ rx: L.value.borderRadius
1012
+ }, null, 8, qe),
1013
+ m("rect", {
1014
+ x: e.left.x,
1015
+ y: e.left.y,
1016
+ width: e.left.width <= 0 ? 1e-4 : e.left.width,
1017
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
1018
+ fill: L.value.gradient.show ? `url(#age_pyramid_left_${D.value})` : e.left.color,
1019
+ rx: L.value.borderRadius
1020
+ }, null, 8, Je),
1021
+ m("rect", {
1022
+ x: e.right.x,
1023
+ y: e.right.y,
1024
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
1025
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
1026
+ fill: L.value.gradient.underlayer,
1027
+ rx: L.value.borderRadius
1028
+ }, null, 8, Ye),
1029
+ m("rect", {
1030
+ x: e.right.x,
1031
+ y: e.right.y,
1032
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
1033
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
1034
+ fill: L.value.gradient.show ? `url(#age_pyramid_right_${D.value})` : e.right.color,
1035
+ rx: L.value.borderRadius
1036
+ }, null, 8, Xe)
1037
+ ]))), 256)),
1038
+ (y(!0), p(l, null, x(Y.value, (e, n) => (y(), p("g", null, [R.value.show ? (y(), p(l, { key: 0 }, [!R.value.showOnHover || R.value.showOnHover && k.value === n ? (y(), p("text", {
1039
+ key: 0,
1040
+ x: e.left.x + Math.max(1e-4, e.left.width) - R.value.offsetX - 6,
1041
+ y: e.left.y + Math.max(1e-4, e.left.height / 2) + L.value.gap / 2,
1042
+ "text-anchor": "end",
1043
+ "dominant-baseline": "middle",
1044
+ "font-size": R.value.fontSize,
1045
+ "font-weight": R.value.bold ? "bold" : "normal",
1046
+ fill: R.value.color,
1047
+ stroke: F.value.backgroundColor,
1048
+ "paint-order": "stroke fill",
1049
+ "stroke-linecap": "round",
1050
+ "stroke-linejoin": "round",
1051
+ "stroke-width": "3"
1052
+ }, C(w(c)(R.value.formatter, e.left.value, w(t)({ v: e.left.value }), {
1053
+ datapoint: e.left,
1054
+ seriesIndex: n
1055
+ })), 9, Ze)) : f("", !0)], 64)) : f("", !0), R.value.show ? (y(), p(l, { key: 1 }, [!R.value.showOnHover || R.value.showOnHover && k.value === n ? (y(), p("text", {
1056
+ key: 0,
1057
+ x: e.right.x + R.value.offsetX + 6,
1058
+ y: e.right.y + Math.max(1e-4, e.right.height / 2) + L.value.gap / 2,
1059
+ "text-anchor": "start",
1060
+ "dominant-baseline": "middle",
1061
+ "font-size": R.value.fontSize,
1062
+ "font-weight": R.value.bold ? "bold" : "normal",
1063
+ fill: R.value.color,
1064
+ stroke: F.value.backgroundColor,
1065
+ "paint-order": "stroke fill",
1066
+ "stroke-linecap": "round",
1067
+ "stroke-linejoin": "round",
1068
+ "stroke-width": "3"
1069
+ }, C(w(c)(R.value.formatter, e.right.value, w(t)({ v: e.right.value }), {
1070
+ datapoint: e.right,
1071
+ seriesIndex: n
1072
+ })), 9, Qe)) : f("", !0)], 64)) : f("", !0)]))), 256)),
1073
+ m("g", null, [
1074
+ I.value.sideTitles.show ? (y(), p("g", $e, [m("text", {
1075
+ x: G.value.left,
1076
+ y: I.value.sideTitles.fontSize,
1077
+ fill: I.value.sideTitles.useSideColor ? L.value.left.color : I.value.sideTitles.color,
1078
+ "font-size": I.value.sideTitles.fontSize,
1079
+ "text-anchor": "start",
1080
+ "font-weight": I.value.sideTitles.bold ? "bold" : "normal"
1081
+ }, C(P.value.translations.female), 9, et), m("text", {
1082
+ x: G.value.right,
1083
+ y: I.value.sideTitles.fontSize,
1084
+ fill: I.value.sideTitles.useSideColor ? L.value.right.color : I.value.sideTitles.color,
1085
+ "font-size": I.value.sideTitles.fontSize,
1086
+ "text-anchor": "end",
1087
+ "font-weight": I.value.sideTitles.bold ? "bold" : "normal"
1088
+ }, C(P.value.translations.male), 9, tt)])) : f("", !0),
1089
+ I.value.yAxis.show ? (y(), p("g", nt, [(y(!0), p(l, null, x(cn.value, (e, n) => (y(), p(l, null, [n % I.value.yAxis.showEvery === 0 && (!R.value.show || R.value.showOnHover && k.value === n || k.value === null) || (R.value.show || R.value.showOnHover) && k.value === n ? (y(), p("text", {
1090
+ key: 0,
1091
+ x: G.value.centerX,
1092
+ y: G.value.top + G.value.height / J.value / 2 + G.value.height / J.value * n,
1093
+ "dominant-baseline": "middle",
1094
+ "text-anchor": "middle",
1095
+ "font-size": I.value.yAxis.fontSize,
1096
+ fill: I.value.yAxis.color,
1097
+ "font-weight": I.value.yAxis.bold ? "bold" : "normal"
1098
+ }, C(w(c)(I.value.yAxis.formatter, e, w(t)({ v: e }), {
1099
+ datapoint: e,
1100
+ seriesIndex: n
1101
+ })), 9, rt)) : f("", !0)], 64))), 256))])) : f("", !0),
1102
+ I.value.xAxis.show ? (y(), p("g", it, [
1103
+ F.value.layout.grid.show ? (y(), p("g", at, [m("line", {
1104
+ x1: K.value.right[0].x,
1105
+ x2: K.value.right.at(-1).x,
1106
+ y1: G.value.bottom + I.value.xAxis.fontSize / 2,
1107
+ y2: G.value.bottom + I.value.xAxis.fontSize / 2,
1108
+ stroke: F.value.layout.grid.stroke,
1109
+ "stroke-width": F.value.layout.grid.strokeWidth,
1110
+ "stroke-linecap": "round"
1111
+ }, null, 8, ot), m("line", {
1112
+ x1: K.value.left[0].x,
1113
+ x2: K.value.left.at(-1).x,
1114
+ y1: G.value.bottom + I.value.xAxis.fontSize / 2,
1115
+ y2: G.value.bottom + I.value.xAxis.fontSize / 2,
1116
+ stroke: F.value.layout.grid.stroke,
1117
+ "stroke-width": F.value.layout.grid.strokeWidth,
1118
+ "stroke-linecap": "round"
1119
+ }, null, 8, st)])) : f("", !0),
1120
+ (y(!0), p(l, null, x(K.value.right, (e, t) => (y(), p("g", null, [F.value.layout.grid.show ? (y(), p("line", {
1121
+ key: 0,
1122
+ x1: e.x,
1123
+ x2: e.x,
1124
+ y1: G.value.bottom + I.value.xAxis.fontSize / 2,
1125
+ y2: G.value.bottom + I.value.xAxis.fontSize / 2 + 4,
1126
+ stroke: F.value.layout.grid.stroke,
1127
+ "stroke-width": F.value.layout.grid.strokeWidth,
1128
+ "stroke-linecap": "round"
1129
+ }, null, 8, ct)) : f("", !0)]))), 256)),
1130
+ (y(!0), p(l, null, x(K.value.left, (e, t) => (y(), p("g", null, [F.value.layout.grid.show ? (y(), p("line", {
1131
+ key: 0,
1132
+ x1: e.x,
1133
+ x2: e.x,
1134
+ y1: G.value.bottom + I.value.xAxis.fontSize / 2,
1135
+ y2: G.value.bottom + I.value.xAxis.fontSize / 2 + 4,
1136
+ stroke: F.value.layout.grid.stroke,
1137
+ "stroke-width": F.value.layout.grid.strokeWidth,
1138
+ "stroke-linecap": "round"
1139
+ }, null, 8, lt)) : f("", !0)]))), 256)),
1140
+ m("g", {
1141
+ ref_key: "xAxisLabels",
1142
+ ref: It
1143
+ }, [(y(!0), p(l, null, x(K.value.right, (e, n) => (y(), p("text", {
1144
+ class: "vue-ui-age-pyramid-x-axis-label",
1145
+ "font-size": I.value.xAxis.fontSize,
1146
+ fill: I.value.xAxis.color,
1147
+ "text-anchor": I.value.xAxis.rotation > 0 ? "start" : I.value.xAxis.rotation < 0 ? "end" : "middle",
1148
+ "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1149
+ transform: `translate(${e.x}, ${G.value.bottom + I.value.xAxis.fontSize * 2}) rotate(${I.value.xAxis.rotation})`
1150
+ }, C(w(c)(I.value.xAxis.formatter, e.value / I.value.xAxis.scale, w(t)({ v: e.value / F.value.layout.dataLabels.xAxis.scale }), {
1151
+ datapoint: e,
1152
+ seriesIndex: n
1153
+ })), 9, ut))), 256)), (y(!0), p(l, null, x(K.value.left, (e, n) => (y(), p("text", {
1154
+ class: "vue-ui-age-pyramid-x-axis-label",
1155
+ "font-size": I.value.xAxis.fontSize,
1156
+ fill: I.value.xAxis.color,
1157
+ "text-anchor": I.value.xAxis.rotation > 0 ? "start" : I.value.xAxis.rotation < 0 ? "end" : "middle",
1158
+ "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1159
+ transform: `translate(${e.x}, ${G.value.bottom + I.value.xAxis.fontSize * 2}) rotate(${I.value.xAxis.rotation})`
1160
+ }, C(w(c)(I.value.xAxis.formatter, e.value / I.value.xAxis.scale, w(t)({ v: e.value / F.value.layout.dataLabels.xAxis.scale }), {
1161
+ datapoint: e,
1162
+ seriesIndex: n
1163
+ })), 9, dt))), 256))], 512),
1164
+ m("text", {
1165
+ x: G.value.right,
1166
+ y: W.value.height,
1167
+ "text-anchor": "end",
1168
+ "font-size": I.value.xAxis.fontSize,
1169
+ fill: I.value.xAxis.color,
1170
+ "font-weight": I.value.xAxis.bold ? "bold" : "normal"
1171
+ }, C(I.value.xAxis.translation), 9, ft)
1172
+ ])) : f("", !0)
1173
+ ]),
1174
+ (y(!0), p(l, null, x(e.dataset, (e, t) => (y(), p("g", null, [m("rect", {
1175
+ x: G.value.left,
1176
+ y: G.value.top + G.value.height / J.value * t - L.value.gap / 2,
1177
+ width: G.value.width <= 0 ? 1e-4 : G.value.width,
1178
+ height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
1179
+ fill: k.value !== null && k.value === t ? w(ae)(F.value.highlighter.color, F.value.highlighter.opacity) : "transparent",
1180
+ onMouseover: (n) => gn(t, e, "pointer"),
1181
+ onMouseleave: (n) => mn(t, e),
1182
+ onClick: (n) => pn(t, e)
1183
+ }, null, 40, pt)]))), 256)),
1184
+ S(n.$slots, "svg", { svg: {
1185
+ ...W.value,
1186
+ drawingArea: G.value,
1187
+ isPrintingImg: w(Qt) || w($t) || w(On),
1188
+ isPrintingSvg: w(kn)
1189
+ } }, void 0, !0)
1190
+ ], 46, Ge)), n.$slots.hint ? (y(), p("div", mt, [S(n.$slots, "hint", v(_({
1191
+ hint: P.value.a11y.translations.keyboardNavigation,
1192
+ isVisible: zt.value
1193
+ })), void 0, !0)])) : f("", !0)]),
1194
+ n.$slots.watermark ? (y(), p("div", ht, [S(n.$slots, "watermark", v(_({ isPrinting: w(Qt) || w($t) || w(On) || w(kn) })), void 0, !0)])) : f("", !0),
1195
+ S(n.$slots, "legend", { legend: Y.value }, void 0, !0),
1196
+ n.$slots.source ? (y(), p("div", {
1197
+ key: 6,
1198
+ ref_key: "source",
1199
+ ref: Mt,
1200
+ dir: "auto"
1201
+ }, [S(n.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1202
+ h(w(gt), {
1203
+ teleportTo: F.value.tooltip.teleportTo,
1204
+ show: U.value.showTooltip && O.value,
1205
+ backgroundColor: F.value.tooltip.backgroundColor,
1206
+ color: F.value.tooltip.color,
1207
+ borderRadius: F.value.tooltip.borderRadius,
1208
+ borderColor: F.value.tooltip.borderColor,
1209
+ borderWidth: F.value.tooltip.borderWidth,
1210
+ fontSize: F.value.tooltip.fontSize,
1211
+ backgroundOpacity: F.value.tooltip.backgroundOpacity,
1212
+ position: F.value.tooltip.position,
1213
+ offsetX: F.value.tooltip.offsetX,
1214
+ offsetY: F.value.tooltip.offsetY,
1215
+ parent: A.value,
1216
+ content: kt.value,
1217
+ isFullscreen: Z.value,
1218
+ isCustom: F.value.tooltip.customFormat && typeof F.value.tooltip.customFormat == "function",
1219
+ smooth: F.value.tooltip.smooth,
1220
+ backdropFilter: F.value.tooltip.backdropFilter,
1221
+ smoothForce: F.value.tooltip.smoothForce,
1222
+ smoothSnapThreshold: F.value.tooltip.smoothSnapThreshold,
1223
+ isA11yMode: N.value === "keyboard",
1224
+ a11yPosition: Rt.value
1225
+ }, {
1226
+ "tooltip-before": T(() => [S(n.$slots, "tooltip-before", v(_({ ...dn.value })), void 0, !0)]),
1227
+ tooltip: T(() => [S(n.$slots, "tooltip", v(_({ ...dn.value })), void 0, !0)]),
1228
+ "tooltip-after": T(() => [S(n.$slots, "tooltip-after", v(_({ ...dn.value })), void 0, !0)]),
1229
+ _: 3
1230
+ }, 8, [
1231
+ "teleportTo",
1232
+ "show",
1233
+ "backgroundColor",
1234
+ "color",
1235
+ "borderRadius",
1236
+ "borderColor",
1237
+ "borderWidth",
1238
+ "fontSize",
1239
+ "backgroundOpacity",
1240
+ "position",
1241
+ "offsetX",
1242
+ "offsetY",
1243
+ "parent",
1244
+ "content",
1245
+ "isFullscreen",
1246
+ "isCustom",
1247
+ "smooth",
1248
+ "backdropFilter",
1249
+ "smoothForce",
1250
+ "smoothSnapThreshold",
1251
+ "isA11yMode",
1252
+ "a11yPosition"
1253
+ ]),
1254
+ Ot.value && P.value.userOptions.buttons.table ? (y(), d(Ie($.value.component), Ae({ key: 7 }, $.value.props, {
1255
+ ref_key: "tableUnit",
1256
+ ref: j,
1257
+ onClose: Tn
1258
+ }), Oe({
1259
+ content: T(() => [(y(), d(w(yt), {
1260
+ key: `table_${Ft.value}`,
1261
+ colNames: X.value.colNames,
1262
+ head: X.value.head,
1263
+ body: X.value.body,
1264
+ config: X.value.config,
1265
+ title: P.value.table.useDialog ? "" : $.value.title,
1266
+ withCloseButton: !P.value.table.useDialog,
1267
+ isCursorPointer: z.value,
1268
+ onClose: Tn
1269
+ }, {
1270
+ th: T(({ th: e }) => [ke(C(e), 1)]),
1271
+ td: T(({ td: e }) => [ke(C(e), 1)]),
1272
+ _: 1
1273
+ }, 8, [
1274
+ "colNames",
1275
+ "head",
1276
+ "body",
1277
+ "config",
1278
+ "title",
1279
+ "withCloseButton",
1280
+ "isCursorPointer"
1281
+ ]))]),
1282
+ _: 2
1283
+ }, [P.value.table.useDialog ? {
1284
+ name: "title",
1285
+ fn: T(() => [ke(C($.value.title), 1)]),
1286
+ key: "0"
1287
+ } : void 0, P.value.table.useDialog ? {
1288
+ name: "actions",
1289
+ fn: T(() => [m("button", {
1290
+ tabindex: "0",
1291
+ class: "vue-ui-user-options-button",
1292
+ onClick: r[0] ||= (e) => _n(P.value.userOptions.callbacks.csv),
1293
+ style: Ne({ cursor: z.value ? "pointer" : "default" })
1294
+ }, [h(w(_t), {
1295
+ name: "fileCsv",
1296
+ stroke: $.value.props.color
1297
+ }, null, 8, ["stroke"])], 4)]),
1298
+ key: "1"
1299
+ } : void 0]), 1040)) : f("", !0),
1300
+ S(n.$slots, "skeleton", {}, () => [w(Vt) ? (y(), d(pe, { key: 0 })) : f("", !0)], !0)
1301
+ ], 46, He));
1302
+ }
1303
+ }, [["__scopeId", "data-v-3f4fd835"]]);
1304
+ //#endregion
1305
+ export { Ve as n, gt as t };