vue-data-ui 3.22.13 → 3.23.0

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