vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  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-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,1246 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, Bt as n, E as r, K as i, Q as a, Wt as o, Y as s, bt as ee, et as te, i as c, qt as ne, st as re, t as ie, y as l, zt as ae } from "./lib-CFm_J26b.js";
3
+ import { t as oe } from "./useConfig-C0V0eG7L.js";
4
+ import { t as se } from "./usePrinter-BH-xle1O.js";
5
+ import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ue } from "./useSvgExport-Ba9qBr9M.js";
7
+ import { t as de } from "./useNestedProp-BY6DNN3i.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
+ import { t as me } from "./img-Bikk1dGb.js";
11
+ import { n as he } from "./Title-BuPs74IB.js";
12
+ import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as ye } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as be } from "./A11yDataTable-DdRsVULz.js";
16
+ import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
17
+ import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
18
+ import { t as Ce } from "./vue_ui_age_pyramid-BY6c-oX_.js";
19
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as we, createTextVNode as Te, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ke, onMounted as Ae, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as je, shallowRef as Me, toDisplayString as T, toRefs as Ne, unref as E, watch as Pe, watchEffect as Fe, withCtx as D } from "vue";
20
+ //#region src/components/vue-ui-age-pyramid.vue
21
+ var Ie = /* @__PURE__ */ e({ default: () => lt }), Le = ["id"], Re = ["id"], ze = { style: { position: "relative" } }, Be = [
22
+ "xmlns",
23
+ "viewBox",
24
+ "aria-describedby"
25
+ ], Ve = [
26
+ "x",
27
+ "y",
28
+ "width",
29
+ "height"
30
+ ], He = [
31
+ "x",
32
+ "y",
33
+ "width",
34
+ "height",
35
+ "fill",
36
+ "rx"
37
+ ], Ue = [
38
+ "x",
39
+ "y",
40
+ "width",
41
+ "height",
42
+ "fill",
43
+ "rx"
44
+ ], We = [
45
+ "x",
46
+ "y",
47
+ "width",
48
+ "height",
49
+ "fill",
50
+ "rx"
51
+ ], Ge = [
52
+ "x",
53
+ "y",
54
+ "width",
55
+ "height",
56
+ "fill",
57
+ "rx"
58
+ ], Ke = { key: 0 }, qe = [
59
+ "x",
60
+ "y",
61
+ "fill",
62
+ "font-size",
63
+ "font-weight"
64
+ ], Je = [
65
+ "x",
66
+ "y",
67
+ "fill",
68
+ "font-size",
69
+ "font-weight"
70
+ ], Ye = { key: 1 }, Xe = [
71
+ "x",
72
+ "y",
73
+ "font-size",
74
+ "fill",
75
+ "font-weight"
76
+ ], Ze = { key: 2 }, Qe = { key: 0 }, $e = [
77
+ "x1",
78
+ "x2",
79
+ "y1",
80
+ "y2",
81
+ "stroke",
82
+ "stroke-width"
83
+ ], et = [
84
+ "x1",
85
+ "x2",
86
+ "y1",
87
+ "y2",
88
+ "stroke",
89
+ "stroke-width"
90
+ ], tt = [
91
+ "x1",
92
+ "x2",
93
+ "y1",
94
+ "y2",
95
+ "stroke",
96
+ "stroke-width"
97
+ ], nt = [
98
+ "x1",
99
+ "x2",
100
+ "y1",
101
+ "y2",
102
+ "stroke",
103
+ "stroke-width"
104
+ ], rt = [
105
+ "font-size",
106
+ "fill",
107
+ "text-anchor",
108
+ "font-weight",
109
+ "transform"
110
+ ], it = [
111
+ "font-size",
112
+ "fill",
113
+ "text-anchor",
114
+ "font-weight",
115
+ "transform"
116
+ ], at = [
117
+ "x",
118
+ "y",
119
+ "font-size",
120
+ "fill",
121
+ "font-weight"
122
+ ], ot = [
123
+ "x",
124
+ "y",
125
+ "width",
126
+ "height",
127
+ "fill",
128
+ "onMouseover",
129
+ "onMouseleave",
130
+ "onClick"
131
+ ], st = {
132
+ key: 0,
133
+ style: {
134
+ position: "absolute",
135
+ top: "100%",
136
+ left: "0",
137
+ width: "100%"
138
+ },
139
+ "data-dom-to-png-ignore": "",
140
+ "aria-hidden": "true"
141
+ }, ct = {
142
+ key: 5,
143
+ class: "vue-data-ui-watermark"
144
+ }, lt = /*#__PURE__*/ ge({
145
+ __name: "vue-ui-age-pyramid",
146
+ props: {
147
+ config: {
148
+ type: Object,
149
+ default() {
150
+ return {};
151
+ }
152
+ },
153
+ dataset: {
154
+ type: Array,
155
+ default() {
156
+ return [];
157
+ }
158
+ }
159
+ },
160
+ emits: ["copyAlt"],
161
+ setup(e, { expose: ge, emit: Ie }) {
162
+ let lt = _(() => import("./Tooltip-CA1rtSyl.js")), ut = _(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), dt = _(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), ft = _(() => import("./DataTable-DzPEVvSo.js")), pt = _(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), mt = _(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), ht = _(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), gt = _(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_age_pyramid: _t } = oe(), { isThemeValid: vt, warnInvalidTheme: yt } = fe(), O = e, bt = Ie, xt = d(() => !!O.dataset && O.dataset.length), k = S(i()), A = S(!1), St = S(""), j = S(null), Ct = S(0), M = S(null), wt = S(null), Tt = S(null), Et = S(null), Dt = S(0), Ot = S(0), kt = S(null), N = S(null), At = S(null), P = S(!1), F = S(!1), I = S(null), jt = S({
163
+ x: 0,
164
+ y: 0
165
+ }), L = S("pointer"), Mt = S(!1), R = S(Bt()), z = d(() => R.value.userOptions.useCursorPointer), Nt = d(() => ne({
166
+ defaultConfig: {
167
+ userOptions: { show: !1 },
168
+ table: { show: !1 },
169
+ translations: {
170
+ male: "",
171
+ female: ""
172
+ },
173
+ style: {
174
+ backgroundColor: "#99999930",
175
+ layout: {
176
+ bars: {
177
+ left: { color: "#CACACA" },
178
+ right: { color: "#999999" }
179
+ },
180
+ dataLabels: {
181
+ xAxis: {
182
+ fontSize: 0,
183
+ scale: 1e3,
184
+ translation: ""
185
+ },
186
+ yAxis: { show: !1 }
187
+ },
188
+ grid: { stroke: "#6A6A6A" }
189
+ }
190
+ }
191
+ },
192
+ userConfig: R.value.skeletonConfig ?? {}
193
+ })), { loading: Pt, FINAL_DATASET: Ft, manualLoading: It } = ce({
194
+ ...Ne(O),
195
+ FINAL_CONFIG: R,
196
+ prepareConfig: Bt,
197
+ skeletonDataset: O.config?.skeletonDataset ?? [
198
+ [
199
+ "_",
200
+ 9,
201
+ 2,
202
+ 2
203
+ ],
204
+ [
205
+ "_",
206
+ 8,
207
+ 3,
208
+ 3
209
+ ],
210
+ [
211
+ "_",
212
+ 7,
213
+ 5,
214
+ 5
215
+ ],
216
+ [
217
+ "_",
218
+ 6,
219
+ 8,
220
+ 8
221
+ ],
222
+ [
223
+ "_",
224
+ 5,
225
+ 13,
226
+ 13
227
+ ],
228
+ [
229
+ "_",
230
+ 4,
231
+ 21,
232
+ 21
233
+ ],
234
+ [
235
+ "_",
236
+ 3,
237
+ 34,
238
+ 34
239
+ ],
240
+ [
241
+ "_",
242
+ 2,
243
+ 55,
244
+ 55
245
+ ],
246
+ [
247
+ "_",
248
+ 1,
249
+ 89,
250
+ 89
251
+ ],
252
+ [
253
+ "_",
254
+ 0,
255
+ 144,
256
+ 144
257
+ ]
258
+ ],
259
+ skeletonConfig: ne({
260
+ defaultConfig: R.value,
261
+ userConfig: Nt.value
262
+ })
263
+ }), { userOptionsVisible: Lt, setUserOptionsVisibility: Rt, keepUserOptionState: zt } = xe({ config: R.value }), { svgRef: B } = Se({ config: R.value.style.title });
264
+ function Bt() {
265
+ let e = de({
266
+ userConfig: O.config,
267
+ defaultConfig: _t
268
+ }), t = e.theme;
269
+ if (!t) return e;
270
+ if (!vt.value(e)) return yt(e), e;
271
+ let n = de({
272
+ userConfig: Ce[t] || O.config,
273
+ defaultConfig: e
274
+ });
275
+ return de({
276
+ userConfig: O.config,
277
+ defaultConfig: n
278
+ });
279
+ }
280
+ Pe(() => O.config, (e) => {
281
+ Pt.value || (R.value = Bt()), Lt.value = !R.value.userOptions.showOnChartHover, Ht(), Dt.value += 1, Ot.value += 1, U.value.showTable = R.value.table.show, U.value.showTooltip = R.value.style.tooltip.show;
282
+ }, { deep: !0 }), Pe(() => O.dataset, (e) => {
283
+ Array.isArray(e) && e.length > 0 && (It.value = !1);
284
+ }, { deep: !0 });
285
+ let V = Me(null), H = Me(null);
286
+ Ae(() => {
287
+ Ht();
288
+ });
289
+ let Vt = d(() => !!R.value.debug);
290
+ function Ht() {
291
+ if (t(O.dataset) && (te({
292
+ componentName: "VueUiAgePyramid",
293
+ type: "dataset",
294
+ debug: Vt.value
295
+ }), It.value = !0), t(O.dataset) || (It.value = R.value.loading), R.value.responsive) {
296
+ let e = _e(() => {
297
+ let { width: e, height: t } = ve({
298
+ chart: M.value,
299
+ title: R.value.style.title.text ? wt.value : null,
300
+ source: Tt.value,
301
+ noTitle: Et.value
302
+ });
303
+ requestAnimationFrame(() => {
304
+ W.value.width = e, W.value.height = t;
305
+ });
306
+ });
307
+ V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(e), H.value = M.value.parentNode, V.value.observe(H.value);
308
+ }
309
+ }
310
+ ke(() => {
311
+ V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
312
+ });
313
+ let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = se({
314
+ elementId: `vue-ui-age-pyramid_${k.value}`,
315
+ fileName: R.value.style.title.text || "vue-ui-age-pyramid",
316
+ options: R.value.userOptions.print
317
+ }), qt = d(() => R.value.userOptions.show && !R.value.style.title.text), U = S({
318
+ showTable: R.value.table.show,
319
+ showTooltip: R.value.style.tooltip.show
320
+ });
321
+ Pe(R, () => {
322
+ U.value = {
323
+ showTable: R.value.table.show,
324
+ showTooltip: R.value.style.tooltip.show
325
+ };
326
+ }, { immediate: !0 });
327
+ let W = S({
328
+ height: R.value.style.height,
329
+ width: R.value.style.width
330
+ }), Jt = d(() => W.value.width), Yt = d(() => W.value.height), Xt = S(0), Zt = _e((e) => {
331
+ Xt.value = e;
332
+ }, 100);
333
+ Fe((e) => {
334
+ let t = kt.value;
335
+ if (!t) return;
336
+ let n = new ResizeObserver((e) => {
337
+ Zt(e[0].contentRect.height);
338
+ });
339
+ n.observe(t), e(() => n.disconnect());
340
+ }), ke(() => {
341
+ Xt.value = 0;
342
+ });
343
+ let G = d(() => {
344
+ let e = W.value.width - R.value.style.layout.padding.right - R.value.style.layout.padding.left, t = R.value.style.layout.padding.left, n = W.value.width - R.value.style.layout.padding.right;
345
+ return {
346
+ top: R.value.style.layout.padding.top + R.value.style.layout.dataLabels.sideTitles.fontSize + R.value.style.layout.dataLabels.sideTitles.offsetY + 12,
347
+ left: t,
348
+ right: n,
349
+ bottom: W.value.height - R.value.style.layout.padding.bottom - Xt.value,
350
+ width: e,
351
+ height: W.value.height - R.value.style.layout.padding.top - R.value.style.layout.padding.bottom - Xt.value - R.value.style.layout.dataLabels.sideTitles.fontSize - R.value.style.layout.dataLabels.sideTitles.offsetY - 12,
352
+ centerX: R.value.style.layout.padding.left + e / 2,
353
+ leftChart: {
354
+ width: e / 2 - R.value.style.layout.centerSlit.width,
355
+ right: t + e / 2 - R.value.style.layout.centerSlit.width
356
+ },
357
+ rightChart: {
358
+ width: e / 2 - R.value.style.layout.centerSlit.width,
359
+ left: t + e / 2 + R.value.style.layout.centerSlit.width
360
+ }
361
+ };
362
+ }), Qt = d(() => Ft.value.map((e) => R.value.style.layout.dataLabels.yAxis.display === "age" ? e[1] : e[0])), K = d(() => {
363
+ let e = $t(q.value / 5), t = [], n = [];
364
+ for (let r = 0; r <= 5; r += 1) {
365
+ let i = e * r, a = e * (r - 5);
366
+ t.push({
367
+ value: i,
368
+ x: G.value.left + G.value.width / 2 + R.value.style.layout.centerSlit.width + i / q.value * G.value.leftChart.width
369
+ }), n.push({
370
+ value: Math.abs(a),
371
+ x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - R.value.style.layout.centerSlit.width
372
+ });
373
+ }
374
+ return {
375
+ right: t,
376
+ left: n
377
+ };
378
+ });
379
+ function $t(e) {
380
+ if (e === 0) return 0;
381
+ let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
382
+ return n = Math.round(e / t) * t, n;
383
+ }
384
+ let q = d(() => Math.max(...Ft.value.flatMap((e) => e.slice(-2).map((e) => l(e))))), J = d(() => Ft.value.length), en = d(() => Ft.value.map((e) => ({
385
+ segment: e[0],
386
+ age: e[1],
387
+ left: {
388
+ value: e[2],
389
+ proportionToMax: e[2] / q.value
390
+ },
391
+ right: {
392
+ value: e[3],
393
+ proportionToMax: e[3] / q.value
394
+ }
395
+ }))), Y = d(() => en.value.map((e, t) => {
396
+ let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - R.value.style.layout.bars.gap;
397
+ return {
398
+ segment: e.segment,
399
+ age: e.age,
400
+ left: {
401
+ ...e.left,
402
+ y: n,
403
+ color: R.value.style.layout.bars.left.color,
404
+ x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
405
+ width: l(e.left.proportionToMax * G.value.leftChart.width),
406
+ height: r
407
+ },
408
+ right: {
409
+ ...e.right,
410
+ y: n,
411
+ color: R.value.style.layout.bars.right.color,
412
+ x: G.value.rightChart.left,
413
+ width: l(e.right.proportionToMax * G.value.rightChart.width),
414
+ height: r
415
+ }
416
+ };
417
+ })), tn = S(null);
418
+ function nn(e) {
419
+ let [t, n, r, i] = e;
420
+ return {
421
+ segment: t,
422
+ index: n,
423
+ left: r,
424
+ right: i
425
+ };
426
+ }
427
+ function rn(e, t) {
428
+ R.value.events.datapointClick && R.value.events.datapointClick({
429
+ datapoint: nn(t),
430
+ seriesIndex: e
431
+ });
432
+ }
433
+ function an(e, t) {
434
+ R.value.events.datapointLeave && R.value.events.datapointLeave({
435
+ datapoint: nn(t),
436
+ seriesIndex: e
437
+ }), !(L.value === "keyboard" && I.value === e) && (j.value = null, A.value = !1);
438
+ }
439
+ function on(e) {
440
+ if (!B.value) return;
441
+ let t = Y.value[e];
442
+ if (!t) return;
443
+ let n = o(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, B.value);
444
+ n && (jt.value = n);
445
+ }
446
+ function sn(e, t, n = "pointer") {
447
+ R.value.events.datapointEnter && R.value.events.datapointEnter({
448
+ datapoint: nn(t),
449
+ seriesIndex: e
450
+ }), j.value = e, I.value = e, L.value = n, tn.value = {
451
+ datapoint: t,
452
+ seriesIndex: e,
453
+ series: Y.value,
454
+ config: R.value
455
+ };
456
+ let r = R.value.style.tooltip.customFormat;
457
+ if (ee(r) && re(() => r({
458
+ seriesIndex: e,
459
+ datapoint: {
460
+ segment: t[0],
461
+ index: t[1],
462
+ left: t[2],
463
+ right: t[3]
464
+ },
465
+ series: Y.value,
466
+ config: R.value
467
+ }))) St.value = r({
468
+ seriesIndex: e,
469
+ datapoint: {
470
+ segment: t[0],
471
+ index: t[1],
472
+ left: t[2],
473
+ right: t[3]
474
+ },
475
+ series: Y.value,
476
+ config: R.value
477
+ });
478
+ else {
479
+ let n = "", r = Y.value[e];
480
+ n += `<div><b>${r.segment}</b></div>`, n += `<div>${R.value.translations.age}: ${c(R.value.style.layout.dataLabels.yAxis.formatter, l(r.age), s({ v: l(r.age) }), {
481
+ datapoint: t,
482
+ seriesIndex: e
483
+ })}</div>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${R.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="${R.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : R.value.style.layout.bars.left.color}"/></svg><div>${R.value.translations.female}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.left.value), s({ v: l(r.left.value) }), {
484
+ datapoint: t,
485
+ seriesIndex: e
486
+ })}</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="${R.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : R.value.style.layout.bars.right.color}"/></svg><div>${R.value.translations.male}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value), s({ v: l(r.right.value) }), {
487
+ datapoint: t,
488
+ seriesIndex: e
489
+ })}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}"><div>${R.value.translations.total}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value) + l(r.left.value), s({ v: l(r.right.value) + l(r.left.value) }), {
490
+ datapoint: t,
491
+ seriesIndex: e
492
+ })}</b></div></div>`, n += "</div>", St.value = `<div>${n}</div>`;
493
+ }
494
+ A.value = !0, n === "keyboard" && De(() => {
495
+ on(e);
496
+ });
497
+ }
498
+ function cn(e = null) {
499
+ De(() => {
500
+ let t = [
501
+ R.value.translations.year,
502
+ R.value.translations.age,
503
+ R.value.translations.female,
504
+ R.value.translations.male,
505
+ R.value.translations.total
506
+ ], n = O.dataset.map((e) => [
507
+ e[0],
508
+ e[1],
509
+ e[2],
510
+ e[3],
511
+ e[2] ?? 0 + e[3] ?? 0
512
+ ]), i = r([
513
+ [R.value.style.title.text],
514
+ [R.value.style.title.subtitle.text],
515
+ [
516
+ [""],
517
+ [""],
518
+ [""]
519
+ ],
520
+ t
521
+ ].concat(n));
522
+ e ? e(i) : a({
523
+ csvContent: i,
524
+ title: R.value.style.title.text || "vue-ui-heatmap"
525
+ });
526
+ });
527
+ }
528
+ let X = d(() => {
529
+ let e = [
530
+ R.value.translations.year,
531
+ R.value.translations.age,
532
+ R.value.translations.female,
533
+ R.value.translations.male,
534
+ R.value.translations.total
535
+ ];
536
+ return {
537
+ head: e,
538
+ body: O.dataset.map((e) => [
539
+ e[0],
540
+ e[1],
541
+ e[2] == null ? "" : e[2].toLocaleString(),
542
+ e[3] == null ? "" : e[3].toLocaleString(),
543
+ (e[2] ?? 0 + e[3] ?? 0).toLocaleString()
544
+ ]),
545
+ config: {
546
+ th: {
547
+ backgroundColor: R.value.table.th.backgroundColor,
548
+ color: R.value.table.th.color,
549
+ outline: R.value.table.th.outline
550
+ },
551
+ td: {
552
+ backgroundColor: R.value.table.td.backgroundColor,
553
+ color: R.value.table.td.color,
554
+ outline: R.value.table.td.outline
555
+ },
556
+ breakpoint: R.value.table.responsiveBreakpoint
557
+ },
558
+ colNames: e
559
+ };
560
+ }), Z = S(!1);
561
+ function ln(e) {
562
+ Z.value = e, Ct.value += 1;
563
+ }
564
+ function un() {
565
+ U.value.showTable = !U.value.showTable;
566
+ }
567
+ function dn() {
568
+ U.value.showTooltip = !U.value.showTooltip;
569
+ }
570
+ let Q = S(!1);
571
+ function fn() {
572
+ Q.value = !Q.value;
573
+ }
574
+ async function pn({ scale: e = 2 } = {}) {
575
+ if (!M.value) return;
576
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
577
+ domElement: M.value,
578
+ base64: !0,
579
+ img: !0,
580
+ scale: e
581
+ });
582
+ return {
583
+ imageUri: i,
584
+ base64: a,
585
+ title: R.value.style.title.text,
586
+ width: t,
587
+ height: n,
588
+ aspectRatio: r
589
+ };
590
+ }
591
+ pe({
592
+ timeLabelsEls: kt,
593
+ timeLabels: S([]),
594
+ slicer: S({
595
+ start: 0,
596
+ end: Y.value.length
597
+ }),
598
+ configRef: R,
599
+ rotationPath: [
600
+ "style",
601
+ "layout",
602
+ "dataLabels",
603
+ "xAxis",
604
+ "rotation"
605
+ ],
606
+ autoRotatePath: [
607
+ "style",
608
+ "layout",
609
+ "dataLabels",
610
+ "xAxis",
611
+ "autoRotate",
612
+ "enable"
613
+ ],
614
+ isAutoSize: !1,
615
+ width: Jt,
616
+ height: Yt,
617
+ targetClass: ".vue-ui-age-pyramid-x-axis-label",
618
+ rotation: R.value.style.layout.dataLabels.xAxis.autoRotate.angle
619
+ });
620
+ let $ = d(() => {
621
+ let e = R.value.table.useDialog && !R.value.table.show, t = U.value.showTable;
622
+ return {
623
+ component: e ? gt : dt,
624
+ title: `${R.value.style.title.text}${R.value.style.title.subtitle.text ? `: ${R.value.style.title.subtitle.text}` : ""}`,
625
+ props: e ? {
626
+ backgroundColor: R.value.table.th.backgroundColor,
627
+ color: R.value.table.th.color,
628
+ headerColor: R.value.table.th.color,
629
+ headerBg: R.value.table.th.backgroundColor,
630
+ isFullscreen: Z.value,
631
+ fullscreenParent: M.value,
632
+ forcedWidth: Math.min(800, window.innerWidth * .8),
633
+ isCursorPointer: z.value
634
+ } : {
635
+ hideDetails: !0,
636
+ config: {
637
+ open: t,
638
+ maxHeight: 1e4,
639
+ body: {
640
+ backgroundColor: R.value.style.backgroundColor,
641
+ color: R.value.style.color
642
+ },
643
+ head: {
644
+ backgroundColor: R.value.style.backgroundColor,
645
+ color: R.value.style.color
646
+ }
647
+ }
648
+ }
649
+ };
650
+ });
651
+ Pe(() => U.value.showTable, (e) => {
652
+ R.value.table.show || (e && R.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
653
+ });
654
+ function mn() {
655
+ U.value.showTable = !1, At.value && At.value.setTableIconState(!1);
656
+ }
657
+ let hn = d(() => R.value.style.backgroundColor), { exportSvg: gn, getSvg: _n } = ue({
658
+ svg: B,
659
+ title: d(() => R.value.style.title),
660
+ backgroundColor: hn
661
+ });
662
+ async function vn({ isCb: e }) {
663
+ F.value = !0, await De();
664
+ try {
665
+ if (e) {
666
+ let { blob: e, url: t, text: n, dataUrl: r } = await _n();
667
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
668
+ blob: e,
669
+ url: t,
670
+ text: n,
671
+ dataUrl: r
672
+ }));
673
+ } else await Promise.resolve(gn());
674
+ } finally {
675
+ F.value = !1;
676
+ }
677
+ }
678
+ function yn(e) {
679
+ if (e?.stage === "start") {
680
+ P.value = !0;
681
+ return;
682
+ }
683
+ if (e?.stage === "end") {
684
+ P.value = !1;
685
+ return;
686
+ }
687
+ Kt();
688
+ }
689
+ async function bn() {
690
+ if (bt("copyAlt", {
691
+ config: R.value,
692
+ dataset: Y.value
693
+ }), !R.value.userOptions.callbacks.altCopy) {
694
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
695
+ return;
696
+ }
697
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
698
+ config: R.value,
699
+ dataset: Y.value
700
+ }));
701
+ }
702
+ function xn() {
703
+ Mt.value = !0;
704
+ }
705
+ function Sn() {
706
+ j.value = null, I.value = null, L.value = "pointer", A.value = !1, Mt.value = !1;
707
+ }
708
+ function Cn(e) {
709
+ if (!B.value || Q.value || document.activeElement !== B.value || !Y.value.length) return;
710
+ let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
711
+ if (!t && !n && !r && !i) return;
712
+ if (e.preventDefault(), e.stopPropagation(), i) {
713
+ j.value = null, I.value = null, L.value = "pointer", A.value = !1;
714
+ return;
715
+ }
716
+ if (r) {
717
+ if (I.value === null) return;
718
+ let e = O.dataset[I.value];
719
+ if (!e) return;
720
+ rn(I.value, e);
721
+ return;
722
+ }
723
+ let a = I.value, o = j.value, s = a !== null && a >= 0 && a < Y.value.length, ee = o !== null && o >= 0 && o < Y.value.length;
724
+ s ? t ? a = a - 1 < 0 ? Y.value.length - 1 : a - 1 : n && (a = a + 1 > Y.value.length - 1 ? 0 : a + 1) : ee ? (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;
725
+ let te = O.dataset[a];
726
+ te && sn(a, te, "keyboard");
727
+ }
728
+ return ge({
729
+ getImage: pn,
730
+ generatePdf: Gt,
731
+ generateCsv: cn,
732
+ generateImage: Kt,
733
+ generateSvg: vn,
734
+ toggleTable: un,
735
+ toggleTooltip: dn,
736
+ toggleAnnotator: fn,
737
+ toggleFullscreen: ln,
738
+ copyAlt: bn
739
+ }), (t, r) => (x(), m("div", {
740
+ class: Oe(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
741
+ ref_key: "agePyramid",
742
+ ref: M,
743
+ id: `vue-ui-age-pyramid_${k.value}`,
744
+ style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.backgroundColor};${R.value.responsive ? "height:100%" : ""}`),
745
+ onMouseenter: r[1] ||= () => E(Rt)(!0),
746
+ onMouseleave: r[2] ||= () => E(Rt)(!1)
747
+ }, [
748
+ h("div", {
749
+ id: `chart-instructions-${k.value}`,
750
+ class: "sr-only"
751
+ }, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Re),
752
+ X.value?.body?.length ? (x(), f(be, {
753
+ key: 0,
754
+ uid: k.value,
755
+ head: X.value.head,
756
+ body: X.value.body,
757
+ notice: R.value.a11y.translations.tableAvailable,
758
+ caption: R.value.a11y.translations.tableCaption
759
+ }, null, 8, [
760
+ "uid",
761
+ "head",
762
+ "body",
763
+ "notice",
764
+ "caption"
765
+ ])) : p("", !0),
766
+ R.value.userOptions.buttons.annotator ? (x(), f(E(pt), {
767
+ key: 1,
768
+ svgRef: E(B),
769
+ backgroundColor: R.value.style.backgroundColor,
770
+ color: R.value.style.color,
771
+ active: Q.value,
772
+ isCursorPointer: z.value,
773
+ onClose: fn
774
+ }, {
775
+ "annotator-action-close": D(() => [w(t.$slots, "annotator-action-close", {}, void 0, !0)]),
776
+ "annotator-action-color": D(({ color: e }) => [w(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
777
+ "annotator-action-draw": D(({ mode: e }) => [w(t.$slots, "annotator-action-draw", y(v({ mode: e })), void 0, !0)]),
778
+ "annotator-action-undo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-undo", y(v({ disabled: e })), void 0, !0)]),
779
+ "annotator-action-redo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-redo", y(v({ disabled: e })), void 0, !0)]),
780
+ "annotator-action-delete": D(({ disabled: e }) => [w(t.$slots, "annotator-action-delete", y(v({ disabled: e })), void 0, !0)]),
781
+ _: 3
782
+ }, 8, [
783
+ "svgRef",
784
+ "backgroundColor",
785
+ "color",
786
+ "active",
787
+ "isCursorPointer"
788
+ ])) : p("", !0),
789
+ qt.value ? (x(), m("div", {
790
+ key: 2,
791
+ ref_key: "noTitle",
792
+ ref: Et,
793
+ class: "vue-data-ui-no-title-space",
794
+ style: "height:36px; width: 100%;background:transparent"
795
+ }, null, 512)) : p("", !0),
796
+ R.value.style.title.text ? (x(), m("div", {
797
+ key: 3,
798
+ ref_key: "chartTitle",
799
+ ref: wt,
800
+ style: "width:100%;background:transparent"
801
+ }, [(x(), f(he, {
802
+ key: `title_${Dt.value}`,
803
+ config: {
804
+ title: {
805
+ cy: "pyramid-div-title",
806
+ ...R.value.style.title
807
+ },
808
+ subtitle: {
809
+ cy: "pyramid-div-subtitle",
810
+ ...R.value.style.title.subtitle
811
+ }
812
+ }
813
+ }, null, 8, ["config"]))], 512)) : p("", !0),
814
+ R.value.userOptions.show && xt.value && (E(zt) || E(Lt)) ? (x(), f(E(mt), {
815
+ ref_key: "userOptionsRef",
816
+ ref: At,
817
+ key: `user_options_${Ct.value}`,
818
+ backgroundColor: R.value.style.backgroundColor,
819
+ color: R.value.style.color,
820
+ isImaging: E(Wt),
821
+ isPrinting: E(Ut),
822
+ uid: k.value,
823
+ hasTooltip: R.value.userOptions.buttons.tooltip && R.value.style.tooltip.show,
824
+ hasPdf: R.value.userOptions.buttons.pdf,
825
+ hasXls: R.value.userOptions.buttons.csv,
826
+ hasImg: R.value.userOptions.buttons.img,
827
+ hasSvg: R.value.userOptions.buttons.svg,
828
+ hasTable: R.value.userOptions.buttons.table,
829
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
830
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
831
+ isFullscreen: Z.value,
832
+ isTooltip: U.value.showTooltip,
833
+ titles: { ...R.value.userOptions.buttonTitles },
834
+ chartElement: M.value,
835
+ position: R.value.userOptions.position,
836
+ hasAnnotator: R.value.userOptions.buttons.annotator,
837
+ isAnnotation: Q.value,
838
+ callbacks: R.value.userOptions.callbacks,
839
+ printScale: R.value.userOptions.print.scale,
840
+ tableDialog: R.value.table.useDialog,
841
+ isCursorPointer: z.value,
842
+ onToggleFullscreen: ln,
843
+ onGeneratePdf: E(Gt),
844
+ onGenerateCsv: cn,
845
+ onGenerateImage: yn,
846
+ onGenerateSvg: vn,
847
+ onToggleTable: un,
848
+ onToggleTooltip: dn,
849
+ onToggleAnnotator: fn,
850
+ onCopyAlt: bn,
851
+ style: b({ visibility: E(zt) ? E(Lt) ? "visible" : "hidden" : "visible" })
852
+ }, we({ _: 2 }, [
853
+ t.$slots.menuIcon ? {
854
+ name: "menuIcon",
855
+ fn: D(({ isOpen: e, color: n }) => [w(t.$slots, "menuIcon", y(v({
856
+ isOpen: e,
857
+ color: n
858
+ })), void 0, !0)]),
859
+ key: "0"
860
+ } : void 0,
861
+ t.$slots.optionTooltip ? {
862
+ name: "optionTooltip",
863
+ fn: D(() => [w(t.$slots, "optionTooltip", {}, void 0, !0)]),
864
+ key: "1"
865
+ } : void 0,
866
+ t.$slots.optionPdf ? {
867
+ name: "optionPdf",
868
+ fn: D(() => [w(t.$slots, "optionPdf", {}, void 0, !0)]),
869
+ key: "2"
870
+ } : void 0,
871
+ t.$slots.optionCsv ? {
872
+ name: "optionCsv",
873
+ fn: D(() => [w(t.$slots, "optionCsv", {}, void 0, !0)]),
874
+ key: "3"
875
+ } : void 0,
876
+ t.$slots.optionImg ? {
877
+ name: "optionImg",
878
+ fn: D(() => [w(t.$slots, "optionImg", {}, void 0, !0)]),
879
+ key: "4"
880
+ } : void 0,
881
+ t.$slots.optionSvg ? {
882
+ name: "optionSvg",
883
+ fn: D(() => [w(t.$slots, "optionSvg", {}, void 0, !0)]),
884
+ key: "5"
885
+ } : void 0,
886
+ t.$slots.optionTable ? {
887
+ name: "optionTable",
888
+ fn: D(() => [w(t.$slots, "optionTable", {}, void 0, !0)]),
889
+ key: "6"
890
+ } : void 0,
891
+ t.$slots.optionFullscreen ? {
892
+ name: "optionFullscreen",
893
+ fn: D(({ toggleFullscreen: e, isFullscreen: n }) => [w(t.$slots, "optionFullscreen", y(v({
894
+ toggleFullscreen: e,
895
+ isFullscreen: n
896
+ })), void 0, !0)]),
897
+ key: "7"
898
+ } : void 0,
899
+ t.$slots.optionAnnotator ? {
900
+ name: "optionAnnotator",
901
+ fn: D(({ toggleAnnotator: e, isAnnotator: n }) => [w(t.$slots, "optionAnnotator", y(v({
902
+ toggleAnnotator: e,
903
+ isAnnotator: n
904
+ })), void 0, !0)]),
905
+ key: "8"
906
+ } : void 0,
907
+ t.$slots.optionAltCopy ? {
908
+ name: "optionAltCopy",
909
+ fn: D(({ altCopy: e }) => [w(t.$slots, "optionAltCopy", y(v({ altCopy: e })), void 0, !0)]),
910
+ key: "9"
911
+ } : void 0,
912
+ t.$slots["custom-menu-before"] ? {
913
+ name: "custom-menu-before",
914
+ fn: D(() => [w(t.$slots, "custom-menu-before", {}, void 0, !0)]),
915
+ key: "10"
916
+ } : void 0,
917
+ t.$slots["custom-menu-after"] ? {
918
+ name: "custom-menu-after",
919
+ fn: D(() => [w(t.$slots, "custom-menu-after", {}, void 0, !0)]),
920
+ key: "11"
921
+ } : void 0
922
+ ]), 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.style".split("."))) : p("", !0),
923
+ h("div", ze, [(x(), m("svg", {
924
+ ref_key: "svgRef",
925
+ ref: B,
926
+ xmlns: E(ie),
927
+ class: Oe({
928
+ "vue-data-ui-fullscreen--on": Z.value,
929
+ "vue-data-ui-fulscreen--off": !Z.value
930
+ }),
931
+ viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
932
+ style: b(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.color}`),
933
+ tabindex: "0",
934
+ "aria-describedby": `chart-instructions-${k.value}`,
935
+ onFocus: xn,
936
+ onBlur: Sn,
937
+ onKeydown: Cn
938
+ }, [
939
+ g(E(ht)),
940
+ t.$slots["chart-background"] ? (x(), m("foreignObject", {
941
+ key: 0,
942
+ x: G.value.left,
943
+ y: G.value.top,
944
+ width: Math.max(.1, G.value.width),
945
+ height: Math.max(.1, G.value.height),
946
+ style: { pointerEvents: "none" }
947
+ }, [w(t.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : p("", !0),
948
+ h("defs", null, [g(ye, {
949
+ t: "linear",
950
+ id: `age_pyramid_left_${k.value}`,
951
+ x1: "0%",
952
+ y1: "0%",
953
+ x2: "100%",
954
+ y2: "0%",
955
+ stops: [[
956
+ "0%",
957
+ R.value.style.layout.bars.left.color,
958
+ 1
959
+ ], [
960
+ "100%",
961
+ E(ae)(E(n)(R.value.style.layout.bars.left.color, R.value.style.layout.bars.gradient.shiftHue), 100 - R.value.style.layout.bars.gradient.intensity),
962
+ 1
963
+ ]]
964
+ }, null, 8, ["id", "stops"]), g(ye, {
965
+ t: "linear",
966
+ id: `age_pyramid_right_${k.value}`,
967
+ x1: "0%",
968
+ y1: "0%",
969
+ x2: "100%",
970
+ y2: "0%",
971
+ stops: [[
972
+ "0%",
973
+ E(ae)(E(n)(R.value.style.layout.bars.right.color, R.value.style.layout.bars.gradient.shiftHue), 100 - R.value.style.layout.bars.gradient.intensity),
974
+ 1
975
+ ], [
976
+ "100%",
977
+ R.value.style.layout.bars.right.color,
978
+ 1
979
+ ]]
980
+ }, null, 8, ["id", "stops"])]),
981
+ (x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", null, [
982
+ h("rect", {
983
+ x: e.left.x,
984
+ y: e.left.y,
985
+ width: E(l)(e.left.width <= 0 ? 1e-4 : e.left.width),
986
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
987
+ fill: R.value.style.layout.bars.gradient.underlayer,
988
+ rx: R.value.style.layout.bars.borderRadius
989
+ }, null, 8, He),
990
+ h("rect", {
991
+ x: e.left.x,
992
+ y: e.left.y,
993
+ width: e.left.width <= 0 ? 1e-4 : e.left.width,
994
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
995
+ fill: R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : e.left.color,
996
+ rx: R.value.style.layout.bars.borderRadius
997
+ }, null, 8, Ue),
998
+ h("rect", {
999
+ x: e.right.x,
1000
+ y: e.right.y,
1001
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
1002
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
1003
+ fill: R.value.style.layout.bars.gradient.underlayer,
1004
+ rx: R.value.style.layout.bars.borderRadius
1005
+ }, null, 8, We),
1006
+ h("rect", {
1007
+ x: e.right.x,
1008
+ y: e.right.y,
1009
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
1010
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
1011
+ fill: R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : e.right.color,
1012
+ rx: R.value.style.layout.bars.borderRadius
1013
+ }, null, 8, Ge)
1014
+ ]))), 256)),
1015
+ h("g", null, [
1016
+ R.value.style.layout.dataLabels.sideTitles.show ? (x(), m("g", Ke, [h("text", {
1017
+ x: G.value.left,
1018
+ y: R.value.style.layout.dataLabels.sideTitles.fontSize,
1019
+ fill: R.value.style.layout.dataLabels.sideTitles.useSideColor ? R.value.style.layout.bars.left.color : R.value.style.layout.dataLabels.sideTitles.color,
1020
+ "font-size": R.value.style.layout.dataLabels.sideTitles.fontSize,
1021
+ "text-anchor": "start",
1022
+ "font-weight": R.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1023
+ }, T(R.value.translations.female), 9, qe), h("text", {
1024
+ x: G.value.right,
1025
+ y: R.value.style.layout.dataLabels.sideTitles.fontSize,
1026
+ fill: R.value.style.layout.dataLabels.sideTitles.useSideColor ? R.value.style.layout.bars.right.color : R.value.style.layout.dataLabels.sideTitles.color,
1027
+ "font-size": R.value.style.layout.dataLabels.sideTitles.fontSize,
1028
+ "text-anchor": "end",
1029
+ "font-weight": R.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1030
+ }, T(R.value.translations.male), 9, Je)])) : p("", !0),
1031
+ R.value.style.layout.dataLabels.yAxis.show ? (x(), m("g", Ye, [(x(!0), m(u, null, C(Qt.value, (e, t) => (x(), m(u, null, [t % R.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (x(), m("text", {
1032
+ key: 0,
1033
+ x: G.value.centerX,
1034
+ y: G.value.top + G.value.height / J.value * t + R.value.style.layout.dataLabels.yAxis.fontSize / 3,
1035
+ "text-anchor": "middle",
1036
+ "font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
1037
+ fill: R.value.style.layout.dataLabels.yAxis.color,
1038
+ "font-weight": R.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
1039
+ }, T(E(c)(R.value.style.layout.dataLabels.yAxis.formatter, e, E(s)({ v: e }), {
1040
+ datapoint: e,
1041
+ seriesIndex: t
1042
+ })), 9, Xe)) : p("", !0)], 64))), 256))])) : p("", !0),
1043
+ R.value.style.layout.dataLabels.xAxis.show ? (x(), m("g", Ze, [
1044
+ R.value.style.layout.grid.show ? (x(), m("g", Qe, [h("line", {
1045
+ x1: K.value.right[0].x,
1046
+ x2: K.value.right.at(-1).x,
1047
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1048
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1049
+ stroke: R.value.style.layout.grid.stroke,
1050
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1051
+ "stroke-linecap": "round"
1052
+ }, null, 8, $e), h("line", {
1053
+ x1: K.value.left[0].x,
1054
+ x2: K.value.left.at(-1).x,
1055
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1056
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1057
+ stroke: R.value.style.layout.grid.stroke,
1058
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1059
+ "stroke-linecap": "round"
1060
+ }, null, 8, et)])) : p("", !0),
1061
+ (x(!0), m(u, null, C(K.value.right, (e, t) => (x(), m("g", null, [R.value.style.layout.grid.show ? (x(), m("line", {
1062
+ key: 0,
1063
+ x1: e.x,
1064
+ x2: e.x,
1065
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1066
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1067
+ stroke: R.value.style.layout.grid.stroke,
1068
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1069
+ "stroke-linecap": "round"
1070
+ }, null, 8, tt)) : p("", !0)]))), 256)),
1071
+ (x(!0), m(u, null, C(K.value.left, (e, t) => (x(), m("g", null, [R.value.style.layout.grid.show ? (x(), m("line", {
1072
+ key: 0,
1073
+ x1: e.x,
1074
+ x2: e.x,
1075
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1076
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1077
+ stroke: R.value.style.layout.grid.stroke,
1078
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1079
+ "stroke-linecap": "round"
1080
+ }, null, 8, nt)) : p("", !0)]))), 256)),
1081
+ h("g", {
1082
+ ref_key: "xAxisLabels",
1083
+ ref: kt
1084
+ }, [(x(!0), m(u, null, C(K.value.right, (e, t) => (x(), m("text", {
1085
+ class: "vue-ui-age-pyramid-x-axis-label",
1086
+ "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
1087
+ fill: R.value.style.layout.dataLabels.xAxis.color,
1088
+ "text-anchor": R.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : R.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1089
+ "font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1090
+ transform: `translate(${e.x}, ${G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${R.value.style.layout.dataLabels.xAxis.rotation})`
1091
+ }, T(E(c)(R.value.style.layout.dataLabels.xAxis.formatter, e.value / R.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / R.value.style.layout.dataLabels.xAxis.scale }), {
1092
+ datapoint: e,
1093
+ seriesIndex: t
1094
+ })), 9, rt))), 256)), (x(!0), m(u, null, C(K.value.left, (e, t) => (x(), m("text", {
1095
+ class: "vue-ui-age-pyramid-x-axis-label",
1096
+ "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
1097
+ fill: R.value.style.layout.dataLabels.xAxis.color,
1098
+ "text-anchor": R.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : R.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1099
+ "font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1100
+ transform: `translate(${e.x}, ${G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${R.value.style.layout.dataLabels.xAxis.rotation})`
1101
+ }, T(E(c)(R.value.style.layout.dataLabels.xAxis.formatter, e.value / R.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / R.value.style.layout.dataLabels.xAxis.scale }), {
1102
+ datapoint: e,
1103
+ seriesIndex: t
1104
+ })), 9, it))), 256))], 512),
1105
+ h("text", {
1106
+ x: G.value.right,
1107
+ y: W.value.height,
1108
+ "text-anchor": "end",
1109
+ "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
1110
+ fill: R.value.style.layout.dataLabels.xAxis.color,
1111
+ "font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
1112
+ }, T(R.value.style.layout.dataLabels.xAxis.translation), 9, at)
1113
+ ])) : p("", !0)
1114
+ ]),
1115
+ (x(!0), m(u, null, C(e.dataset, (e, t) => (x(), m("g", null, [h("rect", {
1116
+ x: G.value.left,
1117
+ y: G.value.top + G.value.height / J.value * t - R.value.style.layout.bars.gap / 2,
1118
+ width: G.value.width <= 0 ? 1e-4 : G.value.width,
1119
+ height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
1120
+ fill: j.value !== null && j.value === t ? E(ae)(R.value.style.highlighter.color, R.value.style.highlighter.opacity) : "transparent",
1121
+ onMouseover: (n) => sn(t, e, "pointer"),
1122
+ onMouseleave: (n) => an(t, e),
1123
+ onClick: (n) => rn(t, e)
1124
+ }, null, 40, ot)]))), 256)),
1125
+ w(t.$slots, "svg", { svg: {
1126
+ ...W.value,
1127
+ drawingArea: G.value,
1128
+ isPrintingImg: E(Ut) || E(Wt) || P.value,
1129
+ isPrintingSvg: F.value
1130
+ } }, void 0, !0)
1131
+ ], 46, Be)), t.$slots.hint ? (x(), m("div", st, [w(t.$slots, "hint", y(v({
1132
+ hint: R.value.a11y.translations.keyboardNavigation,
1133
+ isVisible: Mt.value
1134
+ })), void 0, !0)])) : p("", !0)]),
1135
+ t.$slots.watermark ? (x(), m("div", ct, [w(t.$slots, "watermark", y(v({ isPrinting: E(Ut) || E(Wt) || P.value || F.value })), void 0, !0)])) : p("", !0),
1136
+ w(t.$slots, "legend", { legend: Y.value }, void 0, !0),
1137
+ t.$slots.source ? (x(), m("div", {
1138
+ key: 6,
1139
+ ref_key: "source",
1140
+ ref: Tt,
1141
+ dir: "auto"
1142
+ }, [w(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1143
+ g(E(lt), {
1144
+ teleportTo: R.value.style.tooltip.teleportTo,
1145
+ show: U.value.showTooltip && A.value,
1146
+ backgroundColor: R.value.style.tooltip.backgroundColor,
1147
+ color: R.value.style.tooltip.color,
1148
+ borderRadius: R.value.style.tooltip.borderRadius,
1149
+ borderColor: R.value.style.tooltip.borderColor,
1150
+ borderWidth: R.value.style.tooltip.borderWidth,
1151
+ fontSize: R.value.style.tooltip.fontSize,
1152
+ backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
1153
+ position: R.value.style.tooltip.position,
1154
+ offsetX: R.value.style.tooltip.offsetX,
1155
+ offsetY: R.value.style.tooltip.offsetY,
1156
+ parent: M.value,
1157
+ content: St.value,
1158
+ isFullscreen: Z.value,
1159
+ isCustom: R.value.style.tooltip.customFormat && typeof R.value.style.tooltip.customFormat == "function",
1160
+ smooth: R.value.style.tooltip.smooth,
1161
+ backdropFilter: R.value.style.tooltip.backdropFilter,
1162
+ smoothForce: R.value.style.tooltip.smoothForce,
1163
+ smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
1164
+ isA11yMode: L.value === "keyboard",
1165
+ a11yPosition: jt.value
1166
+ }, {
1167
+ "tooltip-before": D(() => [w(t.$slots, "tooltip-before", y(v({ ...tn.value })), void 0, !0)]),
1168
+ tooltip: D(() => [w(t.$slots, "tooltip", y(v({ ...tn.value })), void 0, !0)]),
1169
+ "tooltip-after": D(() => [w(t.$slots, "tooltip-after", y(v({ ...tn.value })), void 0, !0)]),
1170
+ _: 3
1171
+ }, 8, [
1172
+ "teleportTo",
1173
+ "show",
1174
+ "backgroundColor",
1175
+ "color",
1176
+ "borderRadius",
1177
+ "borderColor",
1178
+ "borderWidth",
1179
+ "fontSize",
1180
+ "backgroundOpacity",
1181
+ "position",
1182
+ "offsetX",
1183
+ "offsetY",
1184
+ "parent",
1185
+ "content",
1186
+ "isFullscreen",
1187
+ "isCustom",
1188
+ "smooth",
1189
+ "backdropFilter",
1190
+ "smoothForce",
1191
+ "smoothSnapThreshold",
1192
+ "isA11yMode",
1193
+ "a11yPosition"
1194
+ ]),
1195
+ xt.value && R.value.userOptions.buttons.table ? (x(), f(je($.value.component), Ee({ key: 7 }, $.value.props, {
1196
+ ref_key: "tableUnit",
1197
+ ref: N,
1198
+ onClose: mn
1199
+ }), we({
1200
+ content: D(() => [(x(), f(E(ft), {
1201
+ key: `table_${Ot.value}`,
1202
+ colNames: X.value.colNames,
1203
+ head: X.value.head,
1204
+ body: X.value.body,
1205
+ config: X.value.config,
1206
+ title: R.value.table.useDialog ? "" : $.value.title,
1207
+ withCloseButton: !R.value.table.useDialog,
1208
+ isCursorPointer: z.value,
1209
+ onClose: mn
1210
+ }, {
1211
+ th: D(({ th: e }) => [Te(T(e), 1)]),
1212
+ td: D(({ td: e }) => [Te(T(e), 1)]),
1213
+ _: 1
1214
+ }, 8, [
1215
+ "colNames",
1216
+ "head",
1217
+ "body",
1218
+ "config",
1219
+ "title",
1220
+ "withCloseButton",
1221
+ "isCursorPointer"
1222
+ ]))]),
1223
+ _: 2
1224
+ }, [R.value.table.useDialog ? {
1225
+ name: "title",
1226
+ fn: D(() => [Te(T($.value.title), 1)]),
1227
+ key: "0"
1228
+ } : void 0, R.value.table.useDialog ? {
1229
+ name: "actions",
1230
+ fn: D(() => [h("button", {
1231
+ tabindex: "0",
1232
+ class: "vue-ui-user-options-button",
1233
+ onClick: r[0] ||= (e) => cn(R.value.userOptions.callbacks.csv),
1234
+ style: b({ cursor: z.value ? "pointer" : "default" })
1235
+ }, [g(E(ut), {
1236
+ name: "fileCsv",
1237
+ stroke: $.value.props.color
1238
+ }, null, 8, ["stroke"])], 4)]),
1239
+ key: "1"
1240
+ } : void 0]), 1040)) : p("", !0),
1241
+ w(t.$slots, "skeleton", {}, () => [E(Pt) ? (x(), f(le, { key: 0 })) : p("", !0)], !0)
1242
+ ], 46, Le));
1243
+ }
1244
+ }, [["__scopeId", "data-v-e113be83"]]);
1245
+ //#endregion
1246
+ export { Ie as n, lt as t };