vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1069 @@
1
+ import { defineAsyncComponent as I, computed as g, ref as r, toRefs as Mt, watch as ee, shallowRef as We, onMounted as Nt, onBeforeUnmount as Ke, watchEffect as Et, openBlock as u, createElementBlock as v, unref as n, normalizeStyle as te, normalizeClass as Xe, createElementVNode as c, toDisplayString as T, createBlock as R, createCommentVNode as p, withCtx as f, renderSlot as y, normalizeProps as w, guardReactiveProps as k, createSlots as je, createVNode as he, Fragment as O, renderList as M, resolveDynamicComponent as Bt, mergeProps as Ut, createTextVNode as ge, nextTick as pe } from "vue";
2
+ import { j as Vt, t as Ye, o as qe, q as Gt, K as x, X as Ht, u as be, v as Je, k as N, l as E, a0 as Wt, a1 as Kt, T as Xt, U as jt, a3 as Yt } from "./lib-DBptbyyI.js";
3
+ import { t as Qe, u as qt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Jt } from "./useConfig-DO94Aj5s.js";
5
+ import { u as Qt, B as Zt } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as el } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as tl } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as me } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as ll } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as al } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as ol } from "./useChartAccessibility-9icAAmYg.js";
12
+ import { u as sl } from "./useTimeLabelCollider-CIsgDrl9.js";
13
+ import il from "./img-LXxMLmCg.js";
14
+ import ul from "./Title-BeMKE1cj.js";
15
+ import nl from "./vue_ui_age_pyramid-8H8WSL7J.js";
16
+ import { A as rl } from "./A11yDataTable-KcVAX2cP.js";
17
+ import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const dl = ["id"], yl = ["id"], cl = { style: { position: "relative" } }, fl = ["xmlns", "viewBox", "aria-describedby"], hl = ["x", "y", "width", "height"], gl = ["id"], pl = ["stop-color"], bl = ["stop-color"], ml = ["id"], xl = ["stop-color"], wl = ["stop-color"], kl = ["x", "y", "width", "height", "fill", "rx"], Cl = ["x", "y", "width", "height", "fill", "rx"], Al = ["x", "y", "width", "height", "fill", "rx"], Tl = ["x", "y", "width", "height", "fill", "rx"], $l = { key: 0 }, Ll = ["x", "y", "fill", "font-size", "font-weight"], _l = ["x", "y", "fill", "font-size", "font-weight"], Sl = { key: 1 }, Il = ["x", "y", "font-size", "fill", "font-weight"], Ol = { key: 2 }, Pl = { key: 0 }, zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Nl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], El = ["x", "y", "font-size", "fill", "font-weight"], Bl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], Ul = {
19
+ key: 0,
20
+ style: { position: "absolute", top: "100%", left: "0", width: "100%" },
21
+ "data-dom-to-png-ignore": "",
22
+ "aria-hidden": "true"
23
+ }, Vl = {
24
+ key: 5,
25
+ class: "vue-data-ui-watermark"
26
+ }, Gl = {
27
+ __name: "vue-ui-age-pyramid",
28
+ props: {
29
+ config: {
30
+ type: Object,
31
+ default() {
32
+ return {};
33
+ }
34
+ },
35
+ dataset: {
36
+ type: Array,
37
+ default() {
38
+ return [];
39
+ }
40
+ }
41
+ },
42
+ emits: ["copyAlt"],
43
+ setup(xe, { expose: Ze, emit: et }) {
44
+ const tt = I(() => import("./Tooltip-Bf-kM3_A.js")), lt = I(() => import("./BaseIcon-Cb3zzG6s.js")), at = I(() => import("./vue-ui-accordion-nvggWcGN.js")), ot = I(() => import("./DataTable-DT2kIdQ6.js")), st = I(() => import("./PenAndPaper-Ct3qJ4lA.js")), it = I(() => import("./UserOptions-rW2fRf3V.js")), ut = I(() => import("./PackageVersion-DPO-OOVI.js")), nt = I(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_age_pyramid: rt } = Jt(), { isThemeValid: vt, warnInvalidTheme: dt } = ll(), b = xe, yt = et, we = g(() => !!b.dataset && b.dataset.length), C = r(Vt()), V = r(!1), le = r(""), P = r(null), ke = r(0), $ = r(null), Ce = r(null), Ae = r(null), Te = r(null), $e = r(0), Le = r(0), ae = r(null), G = r(null), oe = r(null), q = r(!1), J = r(!1), L = r(null), _e = r({ x: 0, y: 0 }), H = r("pointer"), se = r(!1), e = r(ne()), W = g(() => e.value.userOptions.useCursorPointer), ct = g(() => Ye({
45
+ defaultConfig: {
46
+ userOptions: { show: !1 },
47
+ table: { show: !1 },
48
+ translations: {
49
+ male: "",
50
+ female: ""
51
+ },
52
+ style: {
53
+ backgroundColor: "#99999930",
54
+ layout: {
55
+ bars: {
56
+ left: { color: "#CACACA" },
57
+ right: { color: "#999999" }
58
+ },
59
+ dataLabels: {
60
+ xAxis: {
61
+ fontSize: 0,
62
+ scale: 1e3,
63
+ translation: ""
64
+ },
65
+ yAxis: {
66
+ show: !1
67
+ }
68
+ },
69
+ grid: {
70
+ stroke: "#6A6A6A"
71
+ }
72
+ }
73
+ }
74
+ },
75
+ userConfig: e.value.skeletonConfig ?? {}
76
+ })), { loading: Se, FINAL_DATASET: Q, manualLoading: ie } = Qt({
77
+ ...Mt(b),
78
+ FINAL_CONFIG: e,
79
+ prepareConfig: ne,
80
+ skeletonDataset: b.config?.skeletonDataset ?? [
81
+ ["_", 9, 2, 2],
82
+ ["_", 8, 3, 3],
83
+ ["_", 7, 5, 5],
84
+ ["_", 6, 8, 8],
85
+ ["_", 5, 13, 13],
86
+ ["_", 4, 21, 21],
87
+ ["_", 3, 34, 34],
88
+ ["_", 2, 55, 55],
89
+ ["_", 1, 89, 89],
90
+ ["_", 0, 144, 144]
91
+ ],
92
+ skeletonConfig: Ye({
93
+ defaultConfig: e.value,
94
+ userConfig: ct.value
95
+ })
96
+ }), { userOptionsVisible: ue, setUserOptionsVisibility: Ie, keepUserOptionState: Oe } = al({ config: e.value }), { svgRef: z } = ol({ config: e.value.style.title });
97
+ function ne() {
98
+ const t = me({
99
+ userConfig: b.config,
100
+ defaultConfig: rt
101
+ }), a = t.theme;
102
+ if (!a) return t;
103
+ if (!vt.value(t))
104
+ return dt(t), t;
105
+ const l = me({
106
+ userConfig: nl[a] || b.config,
107
+ defaultConfig: t
108
+ });
109
+ return me({
110
+ userConfig: b.config,
111
+ defaultConfig: l
112
+ });
113
+ }
114
+ ee(() => b.config, (t) => {
115
+ Se.value || (e.value = ne()), ue.value = !e.value.userOptions.showOnChartHover, Pe(), $e.value += 1, Le.value += 1, A.value.showTable = e.value.table.show, A.value.showTooltip = e.value.style.tooltip.show;
116
+ }, { deep: !0 }), ee(() => b.dataset, (t) => {
117
+ Array.isArray(t) && t.length > 0 && (ie.value = !1);
118
+ }, { deep: !0 });
119
+ const _ = We(null), B = We(null);
120
+ Nt(() => {
121
+ Pe();
122
+ });
123
+ const ft = g(() => !!e.value.debug);
124
+ function Pe() {
125
+ if (qe(b.dataset) && (Gt({
126
+ componentName: "VueUiAgePyramid",
127
+ type: "dataset",
128
+ debug: ft.value
129
+ }), ie.value = !0), qe(b.dataset) || (ie.value = e.value.loading), e.value.responsive) {
130
+ const t = Qe(() => {
131
+ const { width: a, height: l } = qt({
132
+ chart: $.value,
133
+ title: e.value.style.title.text ? Ce.value : null,
134
+ source: Ae.value,
135
+ noTitle: Te.value
136
+ });
137
+ requestAnimationFrame(() => {
138
+ m.value.width = a, m.value.height = l;
139
+ });
140
+ });
141
+ _.value && (B.value && _.value.unobserve(B.value), _.value.disconnect()), _.value = new ResizeObserver(t), B.value = $.value.parentNode, _.value.observe(B.value);
142
+ }
143
+ }
144
+ Ke(() => {
145
+ _.value && (B.value && _.value.unobserve(B.value), _.value.disconnect());
146
+ });
147
+ const { isPrinting: re, isImaging: ve, generatePdf: ze, generateImage: Fe } = el({
148
+ elementId: `vue-ui-age-pyramid_${C.value}`,
149
+ fileName: e.value.style.title.text || "vue-ui-age-pyramid",
150
+ options: e.value.userOptions.print
151
+ }), ht = g(() => e.value.userOptions.show && !e.value.style.title.text), A = r({
152
+ showTable: e.value.table.show,
153
+ showTooltip: e.value.style.tooltip.show
154
+ });
155
+ ee(e, () => {
156
+ A.value = {
157
+ showTable: e.value.table.show,
158
+ showTooltip: e.value.style.tooltip.show
159
+ };
160
+ }, { immediate: !0 });
161
+ const m = r({
162
+ height: e.value.style.height,
163
+ width: e.value.style.width
164
+ }), gt = g(() => m.value.width), pt = g(() => m.value.height), Z = r(0), bt = Qe((t) => {
165
+ Z.value = t;
166
+ }, 100);
167
+ Et((t) => {
168
+ const a = ae.value;
169
+ if (!a) return;
170
+ const l = new ResizeObserver((o) => {
171
+ bt(o[0].contentRect.height);
172
+ });
173
+ l.observe(a), t(() => l.disconnect());
174
+ }), Ke(() => {
175
+ Z.value = 0;
176
+ });
177
+ const s = g(() => {
178
+ const t = m.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, a = e.value.style.layout.padding.left, l = m.value.width - e.value.style.layout.padding.right;
179
+ return {
180
+ top: e.value.style.layout.padding.top + e.value.style.layout.dataLabels.sideTitles.fontSize + e.value.style.layout.dataLabels.sideTitles.offsetY + 12,
181
+ left: a,
182
+ right: l,
183
+ bottom: m.value.height - e.value.style.layout.padding.bottom - Z.value,
184
+ width: t,
185
+ height: m.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Z.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
186
+ centerX: e.value.style.layout.padding.left + t / 2,
187
+ leftChart: {
188
+ width: t / 2 - e.value.style.layout.centerSlit.width,
189
+ right: a + t / 2 - e.value.style.layout.centerSlit.width
190
+ },
191
+ rightChart: {
192
+ width: t / 2 - e.value.style.layout.centerSlit.width,
193
+ left: a + t / 2 + e.value.style.layout.centerSlit.width
194
+ }
195
+ };
196
+ }), mt = g(() => Q.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = g(() => {
197
+ const t = xt(K.value / 5), a = [], l = [];
198
+ for (let o = 0; o <= 5; o += 1) {
199
+ const d = t * o, i = t * (o - 5);
200
+ a.push({
201
+ value: d,
202
+ x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + d / K.value * s.value.leftChart.width
203
+ }), l.push({
204
+ value: Math.abs(i),
205
+ x: s.value.left + s.value.width / 2 + i / K.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
206
+ });
207
+ }
208
+ return {
209
+ right: a,
210
+ left: l
211
+ };
212
+ });
213
+ function xt(t) {
214
+ if (t === 0) return 0;
215
+ const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
216
+ let o;
217
+ return t < 0, o = Math.round(t / l) * l, o;
218
+ }
219
+ const K = g(() => Math.max(...Q.value.flatMap((t) => t.slice(-2).map((a) => x(a))))), U = g(() => Q.value.length), wt = g(() => Q.value.map((t) => ({
220
+ segment: t[0],
221
+ age: t[1],
222
+ left: {
223
+ value: t[2],
224
+ proportionToMax: t[2] / K.value
225
+ },
226
+ right: {
227
+ value: t[3],
228
+ proportionToMax: t[3] / K.value
229
+ }
230
+ }))), h = g(() => wt.value.map((t, a) => {
231
+ const l = s.value.top + s.value.height / U.value * a, o = s.value.height / U.value - e.value.style.layout.bars.gap;
232
+ return {
233
+ segment: t.segment,
234
+ age: t.age,
235
+ left: {
236
+ ...t.left,
237
+ y: l,
238
+ color: e.value.style.layout.bars.left.color,
239
+ x: s.value.leftChart.right - t.left.proportionToMax * s.value.leftChart.width,
240
+ width: x(t.left.proportionToMax * s.value.leftChart.width),
241
+ height: o
242
+ },
243
+ right: {
244
+ ...t.right,
245
+ y: l,
246
+ color: e.value.style.layout.bars.right.color,
247
+ x: s.value.rightChart.left,
248
+ width: x(t.right.proportionToMax * s.value.rightChart.width),
249
+ height: o
250
+ }
251
+ };
252
+ })), de = r(null);
253
+ function ye(t) {
254
+ const [a, l, o, d] = t;
255
+ return { segment: a, index: l, left: o, right: d };
256
+ }
257
+ function De(t, a) {
258
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: ye(a), seriesIndex: t });
259
+ }
260
+ function kt(t, a) {
261
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ye(a), seriesIndex: t }), !(H.value === "keyboard" && L.value === t) && (P.value = null, V.value = !1);
262
+ }
263
+ function Ct(t) {
264
+ if (!z.value) return;
265
+ const a = h.value[t];
266
+ if (!a) return;
267
+ const l = Yt(
268
+ s.value.left + s.value.width / 2,
269
+ a.left.y + a.left.height / 2,
270
+ z.value
271
+ );
272
+ l && (_e.value = l);
273
+ }
274
+ function Re(t, a, l = "pointer") {
275
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: ye(a), seriesIndex: t }), P.value = t, L.value = t, H.value = l, de.value = {
276
+ datapoint: a,
277
+ seriesIndex: t,
278
+ series: h.value,
279
+ config: e.value
280
+ };
281
+ const o = e.value.style.tooltip.customFormat;
282
+ if (Xt(o) && jt(() => o({
283
+ seriesIndex: t,
284
+ datapoint: {
285
+ segment: a[0],
286
+ index: a[1],
287
+ left: a[2],
288
+ right: a[3]
289
+ },
290
+ series: h.value,
291
+ config: e.value
292
+ })))
293
+ le.value = o({
294
+ seriesIndex: t,
295
+ datapoint: {
296
+ segment: a[0],
297
+ index: a[1],
298
+ left: a[2],
299
+ right: a[3]
300
+ },
301
+ series: h.value,
302
+ config: e.value
303
+ });
304
+ else {
305
+ let d = "";
306
+ const i = h.value[t];
307
+ d += `<div><b>${i.segment}</b></div>`, d += `<div>${e.value.translations.age}: ${N(
308
+ e.value.style.layout.dataLabels.yAxis.formatter,
309
+ x(i.age),
310
+ E({ v: x(i.age) }),
311
+ { datapoint: a, seriesIndex: t }
312
+ )}</div>`, d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, d += '<div style="display:flex; flex-direction:row;gap:12px">', d += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${C.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${N(
313
+ e.value.style.layout.dataLabels.xAxis.formatter,
314
+ x(i.left.value),
315
+ E({ v: x(i.left.value) }),
316
+ { datapoint: a, seriesIndex: t }
317
+ )}</b></div></div>`, d += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${C.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${N(
318
+ e.value.style.layout.dataLabels.xAxis.formatter,
319
+ x(i.right.value),
320
+ E({ v: x(i.right.value) }),
321
+ { datapoint: a, seriesIndex: t }
322
+ )}</b></div></div>`, d += "</div>", d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${N(
323
+ e.value.style.layout.dataLabels.xAxis.formatter,
324
+ x(i.right.value) + x(i.left.value),
325
+ E({ v: x(i.right.value) + x(i.left.value) }),
326
+ { datapoint: a, seriesIndex: t }
327
+ )}</b></div></div>`, d += "</div>", le.value = `<div>${d}</div>`;
328
+ }
329
+ V.value = !0, l === "keyboard" && pe(() => {
330
+ Ct(t);
331
+ });
332
+ }
333
+ function ce(t = null) {
334
+ pe(() => {
335
+ const a = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = b.dataset.map((i) => [
336
+ i[0],
337
+ i[1],
338
+ i[2],
339
+ i[3],
340
+ i[2] ?? 0 + i[3] ?? 0
341
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), d = Wt(o);
342
+ t ? t(d) : Kt({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
343
+ });
344
+ }
345
+ const F = g(() => {
346
+ const t = [
347
+ e.value.translations.year,
348
+ e.value.translations.age,
349
+ e.value.translations.female,
350
+ e.value.translations.male,
351
+ e.value.translations.total
352
+ ], a = b.dataset.map((o) => [
353
+ o[0],
354
+ o[1],
355
+ o[2] == null ? "" : o[2].toLocaleString(),
356
+ o[3] == null ? "" : o[3].toLocaleString(),
357
+ (o[2] ?? 0 + o[3] ?? 0).toLocaleString()
358
+ ]), l = {
359
+ th: {
360
+ backgroundColor: e.value.table.th.backgroundColor,
361
+ color: e.value.table.th.color,
362
+ outline: e.value.table.th.outline
363
+ },
364
+ td: {
365
+ backgroundColor: e.value.table.td.backgroundColor,
366
+ color: e.value.table.td.color,
367
+ outline: e.value.table.td.outline
368
+ },
369
+ breakpoint: e.value.table.responsiveBreakpoint
370
+ };
371
+ return { head: t, body: a, config: l, colNames: t };
372
+ }), D = r(!1);
373
+ function Me(t) {
374
+ D.value = t, ke.value += 1;
375
+ }
376
+ function Ne() {
377
+ A.value.showTable = !A.value.showTable;
378
+ }
379
+ function Ee() {
380
+ A.value.showTooltip = !A.value.showTooltip;
381
+ }
382
+ const X = r(!1);
383
+ function fe() {
384
+ X.value = !X.value;
385
+ }
386
+ async function At({ scale: t = 2 } = {}) {
387
+ if (!$.value) return;
388
+ const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: d, base64: i } = await il({ domElement: $.value, base64: !0, img: !0, scale: t });
389
+ return {
390
+ imageUri: d,
391
+ base64: i,
392
+ title: e.value.style.title.text,
393
+ width: a,
394
+ height: l,
395
+ aspectRatio: o
396
+ };
397
+ }
398
+ const Tt = r([]), $t = r({ start: 0, end: h.value.length });
399
+ sl({
400
+ timeLabelsEls: ae,
401
+ timeLabels: Tt,
402
+ slicer: $t,
403
+ configRef: e,
404
+ rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
405
+ autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
406
+ isAutoSize: !1,
407
+ width: gt,
408
+ height: pt,
409
+ targetClass: ".vue-ui-age-pyramid-x-axis-label",
410
+ rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
411
+ });
412
+ const j = g(() => {
413
+ const t = e.value.table.useDialog && !e.value.table.show, a = A.value.showTable;
414
+ return {
415
+ component: t ? nt : at,
416
+ title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
417
+ props: t ? {
418
+ backgroundColor: e.value.table.th.backgroundColor,
419
+ color: e.value.table.th.color,
420
+ headerColor: e.value.table.th.color,
421
+ headerBg: e.value.table.th.backgroundColor,
422
+ isFullscreen: D.value,
423
+ fullscreenParent: $.value,
424
+ forcedWidth: Math.min(800, window.innerWidth * 0.8),
425
+ isCursorPointer: W.value
426
+ } : {
427
+ hideDetails: !0,
428
+ config: {
429
+ open: a,
430
+ maxHeight: 1e4,
431
+ body: {
432
+ backgroundColor: e.value.style.backgroundColor,
433
+ color: e.value.style.color
434
+ },
435
+ head: {
436
+ backgroundColor: e.value.style.backgroundColor,
437
+ color: e.value.style.color
438
+ }
439
+ }
440
+ }
441
+ };
442
+ });
443
+ ee(() => A.value.showTable, (t) => {
444
+ e.value.table.show || (t && e.value.table.useDialog && G.value ? G.value.open() : "close" in G.value && G.value.close());
445
+ });
446
+ function Be() {
447
+ A.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
448
+ }
449
+ const Lt = g(() => e.value.style.backgroundColor), _t = g(() => e.value.style.title), { exportSvg: St, getSvg: It } = tl({
450
+ svg: z,
451
+ title: _t,
452
+ backgroundColor: Lt
453
+ });
454
+ async function Ue({ isCb: t }) {
455
+ J.value = !0, await pe();
456
+ try {
457
+ if (t) {
458
+ const { blob: a, url: l, text: o, dataUrl: d } = await It();
459
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: d }));
460
+ } else
461
+ await Promise.resolve(St());
462
+ } finally {
463
+ J.value = !1;
464
+ }
465
+ }
466
+ function Ot(t) {
467
+ if (t?.stage === "start") {
468
+ q.value = !0;
469
+ return;
470
+ }
471
+ if (t?.stage === "end") {
472
+ q.value = !1;
473
+ return;
474
+ }
475
+ Fe();
476
+ }
477
+ async function Ve() {
478
+ if (yt("copyAlt", {
479
+ config: e.value,
480
+ dataset: h.value
481
+ }), !e.value.userOptions.callbacks.altCopy) {
482
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
483
+ return;
484
+ }
485
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
486
+ config: e.value,
487
+ dataset: h.value
488
+ }));
489
+ }
490
+ function Pt() {
491
+ se.value = !0;
492
+ }
493
+ function zt() {
494
+ P.value = null, L.value = null, H.value = "pointer", V.value = !1, se.value = !1;
495
+ }
496
+ function Ft(t) {
497
+ if (!z.value || X.value || document.activeElement !== z.value || !h.value.length) return;
498
+ const a = ["ArrowUp", "ArrowLeft"].includes(t.key), l = ["ArrowDown", "ArrowRight"].includes(t.key), o = t.key === "Enter" || t.key === " ", d = t.key === "Escape";
499
+ if (!a && !l && !o && !d) return;
500
+ if (t.preventDefault(), t.stopPropagation(), d) {
501
+ P.value = null, L.value = null, H.value = "pointer", V.value = !1;
502
+ return;
503
+ }
504
+ if (o) {
505
+ if (L.value === null) return;
506
+ const He = b.dataset[L.value];
507
+ if (!He) return;
508
+ De(L.value, He);
509
+ return;
510
+ }
511
+ let i = L.value;
512
+ const Y = P.value, Dt = i !== null && i >= 0 && i < h.value.length, Rt = Y !== null && Y >= 0 && Y < h.value.length;
513
+ Dt ? a ? i = i - 1 < 0 ? h.value.length - 1 : i - 1 : l && (i = i + 1 > h.value.length - 1 ? 0 : i + 1) : Rt ? (i = l ? Y + 1 : Y - 1, i >= h.value.length && (i = 0), i < 0 && (i = h.value.length - 1)) : l ? i = 0 : i = h.value.length - 1;
514
+ const Ge = b.dataset[i];
515
+ Ge && Re(i, Ge, "keyboard");
516
+ }
517
+ return Ze({
518
+ getImage: At,
519
+ generatePdf: ze,
520
+ generateCsv: ce,
521
+ generateImage: Fe,
522
+ generateSvg: Ue,
523
+ toggleTable: Ne,
524
+ toggleTooltip: Ee,
525
+ toggleAnnotator: fe,
526
+ toggleFullscreen: Me,
527
+ copyAlt: Ve
528
+ }), (t, a) => (u(), v("div", {
529
+ class: Xe(`vue-data-ui-component vue-ui-age-pyramid ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
530
+ ref_key: "agePyramid",
531
+ ref: $,
532
+ id: `vue-ui-age-pyramid_${C.value}`,
533
+ style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
534
+ onMouseenter: a[1] || (a[1] = () => n(Ie)(!0)),
535
+ onMouseleave: a[2] || (a[2] = () => n(Ie)(!1))
536
+ }, [
537
+ c("div", {
538
+ id: `chart-instructions-${C.value}`,
539
+ class: "sr-only"
540
+ }, [
541
+ c("p", null, T(e.value.a11y.translations.keyboardNavigation), 1)
542
+ ], 8, yl),
543
+ F.value?.body?.length ? (u(), R(rl, {
544
+ key: 0,
545
+ uid: C.value,
546
+ head: F.value.head,
547
+ body: F.value.body,
548
+ notice: e.value.a11y.translations.tableAvailable,
549
+ caption: e.value.a11y.translations.tableCaption
550
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
551
+ e.value.userOptions.buttons.annotator ? (u(), R(n(st), {
552
+ key: 1,
553
+ svgRef: n(z),
554
+ backgroundColor: e.value.style.backgroundColor,
555
+ color: e.value.style.color,
556
+ active: X.value,
557
+ isCursorPointer: W.value,
558
+ onClose: fe
559
+ }, {
560
+ "annotator-action-close": f(() => [
561
+ y(t.$slots, "annotator-action-close", {}, void 0, !0)
562
+ ]),
563
+ "annotator-action-color": f(({ color: l }) => [
564
+ y(t.$slots, "annotator-action-color", w(k({ color: l })), void 0, !0)
565
+ ]),
566
+ "annotator-action-draw": f(({ mode: l }) => [
567
+ y(t.$slots, "annotator-action-draw", w(k({ mode: l })), void 0, !0)
568
+ ]),
569
+ "annotator-action-undo": f(({ disabled: l }) => [
570
+ y(t.$slots, "annotator-action-undo", w(k({ disabled: l })), void 0, !0)
571
+ ]),
572
+ "annotator-action-redo": f(({ disabled: l }) => [
573
+ y(t.$slots, "annotator-action-redo", w(k({ disabled: l })), void 0, !0)
574
+ ]),
575
+ "annotator-action-delete": f(({ disabled: l }) => [
576
+ y(t.$slots, "annotator-action-delete", w(k({ disabled: l })), void 0, !0)
577
+ ]),
578
+ _: 3
579
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
580
+ ht.value ? (u(), v("div", {
581
+ key: 2,
582
+ ref_key: "noTitle",
583
+ ref: Te,
584
+ class: "vue-data-ui-no-title-space",
585
+ style: "height:36px; width: 100%;background:transparent"
586
+ }, null, 512)) : p("", !0),
587
+ e.value.style.title.text ? (u(), v("div", {
588
+ key: 3,
589
+ ref_key: "chartTitle",
590
+ ref: Ce,
591
+ style: "width:100%;background:transparent"
592
+ }, [
593
+ (u(), R(ul, {
594
+ key: `title_${$e.value}`,
595
+ config: {
596
+ title: {
597
+ cy: "pyramid-div-title",
598
+ ...e.value.style.title
599
+ },
600
+ subtitle: {
601
+ cy: "pyramid-div-subtitle",
602
+ ...e.value.style.title.subtitle
603
+ }
604
+ }
605
+ }, null, 8, ["config"]))
606
+ ], 512)) : p("", !0),
607
+ e.value.userOptions.show && we.value && (n(Oe) || n(ue)) ? (u(), R(n(it), {
608
+ ref_key: "userOptionsRef",
609
+ ref: oe,
610
+ key: `user_options_${ke.value}`,
611
+ backgroundColor: e.value.style.backgroundColor,
612
+ color: e.value.style.color,
613
+ isImaging: n(ve),
614
+ isPrinting: n(re),
615
+ uid: C.value,
616
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
617
+ hasPdf: e.value.userOptions.buttons.pdf,
618
+ hasXls: e.value.userOptions.buttons.csv,
619
+ hasImg: e.value.userOptions.buttons.img,
620
+ hasSvg: e.value.userOptions.buttons.svg,
621
+ hasTable: e.value.userOptions.buttons.table,
622
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
623
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
624
+ isFullscreen: D.value,
625
+ isTooltip: A.value.showTooltip,
626
+ titles: { ...e.value.userOptions.buttonTitles },
627
+ chartElement: $.value,
628
+ position: e.value.userOptions.position,
629
+ hasAnnotator: e.value.userOptions.buttons.annotator,
630
+ isAnnotation: X.value,
631
+ callbacks: e.value.userOptions.callbacks,
632
+ printScale: e.value.userOptions.print.scale,
633
+ tableDialog: e.value.table.useDialog,
634
+ isCursorPointer: W.value,
635
+ onToggleFullscreen: Me,
636
+ onGeneratePdf: n(ze),
637
+ onGenerateCsv: ce,
638
+ onGenerateImage: Ot,
639
+ onGenerateSvg: Ue,
640
+ onToggleTable: Ne,
641
+ onToggleTooltip: Ee,
642
+ onToggleAnnotator: fe,
643
+ onCopyAlt: Ve,
644
+ style: te({
645
+ visibility: n(Oe) ? n(ue) ? "visible" : "hidden" : "visible"
646
+ })
647
+ }, je({ _: 2 }, [
648
+ t.$slots.menuIcon ? {
649
+ name: "menuIcon",
650
+ fn: f(({ isOpen: l, color: o }) => [
651
+ y(t.$slots, "menuIcon", w(k({ isOpen: l, color: o })), void 0, !0)
652
+ ]),
653
+ key: "0"
654
+ } : void 0,
655
+ t.$slots.optionTooltip ? {
656
+ name: "optionTooltip",
657
+ fn: f(() => [
658
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
659
+ ]),
660
+ key: "1"
661
+ } : void 0,
662
+ t.$slots.optionPdf ? {
663
+ name: "optionPdf",
664
+ fn: f(() => [
665
+ y(t.$slots, "optionPdf", {}, void 0, !0)
666
+ ]),
667
+ key: "2"
668
+ } : void 0,
669
+ t.$slots.optionCsv ? {
670
+ name: "optionCsv",
671
+ fn: f(() => [
672
+ y(t.$slots, "optionCsv", {}, void 0, !0)
673
+ ]),
674
+ key: "3"
675
+ } : void 0,
676
+ t.$slots.optionImg ? {
677
+ name: "optionImg",
678
+ fn: f(() => [
679
+ y(t.$slots, "optionImg", {}, void 0, !0)
680
+ ]),
681
+ key: "4"
682
+ } : void 0,
683
+ t.$slots.optionSvg ? {
684
+ name: "optionSvg",
685
+ fn: f(() => [
686
+ y(t.$slots, "optionSvg", {}, void 0, !0)
687
+ ]),
688
+ key: "5"
689
+ } : void 0,
690
+ t.$slots.optionTable ? {
691
+ name: "optionTable",
692
+ fn: f(() => [
693
+ y(t.$slots, "optionTable", {}, void 0, !0)
694
+ ]),
695
+ key: "6"
696
+ } : void 0,
697
+ t.$slots.optionFullscreen ? {
698
+ name: "optionFullscreen",
699
+ fn: f(({ toggleFullscreen: l, isFullscreen: o }) => [
700
+ y(t.$slots, "optionFullscreen", w(k({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
701
+ ]),
702
+ key: "7"
703
+ } : void 0,
704
+ t.$slots.optionAnnotator ? {
705
+ name: "optionAnnotator",
706
+ fn: f(({ toggleAnnotator: l, isAnnotator: o }) => [
707
+ y(t.$slots, "optionAnnotator", w(k({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
708
+ ]),
709
+ key: "8"
710
+ } : void 0,
711
+ t.$slots.optionAltCopy ? {
712
+ name: "optionAltCopy",
713
+ fn: f(({ altCopy: l }) => [
714
+ y(t.$slots, "optionAltCopy", w(k({ altCopy: l })), void 0, !0)
715
+ ]),
716
+ key: "9"
717
+ } : void 0
718
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
719
+ c("div", cl, [
720
+ (u(), v("svg", {
721
+ ref_key: "svgRef",
722
+ ref: z,
723
+ xmlns: n(Ht),
724
+ class: Xe({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
725
+ viewBox: `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`,
726
+ style: te(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
727
+ tabindex: "0",
728
+ "aria-describedby": `chart-instructions-${C.value}`,
729
+ onFocus: Pt,
730
+ onBlur: zt,
731
+ onKeydown: Ft
732
+ }, [
733
+ he(n(ut)),
734
+ t.$slots["chart-background"] ? (u(), v("foreignObject", {
735
+ key: 0,
736
+ x: s.value.left,
737
+ y: s.value.top,
738
+ width: Math.max(0.1, s.value.width),
739
+ height: Math.max(0.1, s.value.height),
740
+ style: {
741
+ pointerEvents: "none"
742
+ }
743
+ }, [
744
+ y(t.$slots, "chart-background", {}, void 0, !0)
745
+ ], 8, hl)) : p("", !0),
746
+ c("defs", null, [
747
+ c("linearGradient", {
748
+ id: `age_pyramid_left_${C.value}`,
749
+ x1: "0%",
750
+ y1: "0%",
751
+ x2: "100%",
752
+ y2: "0%"
753
+ }, [
754
+ c("stop", {
755
+ offset: "0%",
756
+ "stop-color": e.value.style.layout.bars.left.color
757
+ }, null, 8, pl),
758
+ c("stop", {
759
+ offset: "100%",
760
+ "stop-color": n(be)(n(Je)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
761
+ }, null, 8, bl)
762
+ ], 8, gl),
763
+ c("linearGradient", {
764
+ id: `age_pyramid_right_${C.value}`,
765
+ x1: "0%",
766
+ y1: "0%",
767
+ x2: "100%",
768
+ y2: "0%"
769
+ }, [
770
+ c("stop", {
771
+ offset: "0%",
772
+ "stop-color": n(be)(n(Je)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
773
+ }, null, 8, xl),
774
+ c("stop", {
775
+ offset: "100%",
776
+ "stop-color": e.value.style.layout.bars.right.color
777
+ }, null, 8, wl)
778
+ ], 8, ml)
779
+ ]),
780
+ (u(!0), v(O, null, M(h.value, (l, o) => (u(), v("g", null, [
781
+ c("rect", {
782
+ x: l.left.x,
783
+ y: l.left.y,
784
+ width: n(x)(l.left.width <= 0 ? 1e-4 : l.left.width),
785
+ height: l.left.height <= 0 ? 1e-4 : l.left.height,
786
+ fill: e.value.style.layout.bars.gradient.underlayer,
787
+ rx: e.value.style.layout.bars.borderRadius
788
+ }, null, 8, kl),
789
+ c("rect", {
790
+ x: l.left.x,
791
+ y: l.left.y,
792
+ width: l.left.width <= 0 ? 1e-4 : l.left.width,
793
+ height: l.left.height <= 0 ? 1e-4 : l.left.height,
794
+ fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${C.value})` : l.left.color,
795
+ rx: e.value.style.layout.bars.borderRadius
796
+ }, null, 8, Cl),
797
+ c("rect", {
798
+ x: l.right.x,
799
+ y: l.right.y,
800
+ width: l.right.width <= 0 ? 1e-4 : l.right.width,
801
+ height: l.right.height <= 0 ? 1e-4 : l.right.height,
802
+ fill: e.value.style.layout.bars.gradient.underlayer,
803
+ rx: e.value.style.layout.bars.borderRadius
804
+ }, null, 8, Al),
805
+ c("rect", {
806
+ x: l.right.x,
807
+ y: l.right.y,
808
+ width: l.right.width <= 0 ? 1e-4 : l.right.width,
809
+ height: l.right.height <= 0 ? 1e-4 : l.right.height,
810
+ fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${C.value})` : l.right.color,
811
+ rx: e.value.style.layout.bars.borderRadius
812
+ }, null, 8, Tl)
813
+ ]))), 256)),
814
+ c("g", null, [
815
+ e.value.style.layout.dataLabels.sideTitles.show ? (u(), v("g", $l, [
816
+ c("text", {
817
+ x: s.value.left,
818
+ y: e.value.style.layout.dataLabels.sideTitles.fontSize,
819
+ fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
820
+ "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
821
+ "text-anchor": "start",
822
+ "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
823
+ }, T(e.value.translations.female), 9, Ll),
824
+ c("text", {
825
+ x: s.value.right,
826
+ y: e.value.style.layout.dataLabels.sideTitles.fontSize,
827
+ fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
828
+ "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
829
+ "text-anchor": "end",
830
+ "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
831
+ }, T(e.value.translations.male), 9, _l)
832
+ ])) : p("", !0),
833
+ e.value.style.layout.dataLabels.yAxis.show ? (u(), v("g", Sl, [
834
+ (u(!0), v(O, null, M(mt.value, (l, o) => (u(), v(O, null, [
835
+ o % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), v("text", {
836
+ key: 0,
837
+ x: s.value.centerX,
838
+ y: s.value.top + s.value.height / U.value * o + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
839
+ "text-anchor": "middle",
840
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
841
+ fill: e.value.style.layout.dataLabels.yAxis.color,
842
+ "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
843
+ }, T(n(N)(
844
+ e.value.style.layout.dataLabels.yAxis.formatter,
845
+ l,
846
+ n(E)({ v: l }),
847
+ { datapoint: l, seriesIndex: o }
848
+ )), 9, Il)) : p("", !0)
849
+ ], 64))), 256))
850
+ ])) : p("", !0),
851
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), v("g", Ol, [
852
+ e.value.style.layout.grid.show ? (u(), v("g", Pl, [
853
+ c("line", {
854
+ x1: S.value.right[0].x,
855
+ x2: S.value.right.at(-1).x,
856
+ y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
857
+ y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
858
+ stroke: e.value.style.layout.grid.stroke,
859
+ "stroke-width": e.value.style.layout.grid.strokeWidth,
860
+ "stroke-linecap": "round"
861
+ }, null, 8, zl),
862
+ c("line", {
863
+ x1: S.value.left[0].x,
864
+ x2: S.value.left.at(-1).x,
865
+ y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
866
+ y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
867
+ stroke: e.value.style.layout.grid.stroke,
868
+ "stroke-width": e.value.style.layout.grid.strokeWidth,
869
+ "stroke-linecap": "round"
870
+ }, null, 8, Fl)
871
+ ])) : p("", !0),
872
+ (u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("g", null, [
873
+ e.value.style.layout.grid.show ? (u(), v("line", {
874
+ key: 0,
875
+ x1: l.x,
876
+ x2: l.x,
877
+ y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
878
+ y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
879
+ stroke: e.value.style.layout.grid.stroke,
880
+ "stroke-width": e.value.style.layout.grid.strokeWidth,
881
+ "stroke-linecap": "round"
882
+ }, null, 8, Dl)) : p("", !0)
883
+ ]))), 256)),
884
+ (u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("g", null, [
885
+ e.value.style.layout.grid.show ? (u(), v("line", {
886
+ key: 0,
887
+ x1: l.x,
888
+ x2: l.x,
889
+ y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
890
+ y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
891
+ stroke: e.value.style.layout.grid.stroke,
892
+ "stroke-width": e.value.style.layout.grid.strokeWidth,
893
+ "stroke-linecap": "round"
894
+ }, null, 8, Rl)) : p("", !0)
895
+ ]))), 256)),
896
+ c("g", {
897
+ ref_key: "xAxisLabels",
898
+ ref: ae
899
+ }, [
900
+ (u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("text", {
901
+ class: "vue-ui-age-pyramid-x-axis-label",
902
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
903
+ fill: e.value.style.layout.dataLabels.xAxis.color,
904
+ "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
905
+ "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
906
+ transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
907
+ }, T(n(N)(
908
+ e.value.style.layout.dataLabels.xAxis.formatter,
909
+ l.value / e.value.style.layout.dataLabels.xAxis.scale,
910
+ n(E)({
911
+ v: l.value / e.value.style.layout.dataLabels.xAxis.scale
912
+ }),
913
+ { datapoint: l, seriesIndex: o }
914
+ )), 9, Ml))), 256)),
915
+ (u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("text", {
916
+ class: "vue-ui-age-pyramid-x-axis-label",
917
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
918
+ fill: e.value.style.layout.dataLabels.xAxis.color,
919
+ "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
920
+ "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
921
+ transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
922
+ }, T(n(N)(
923
+ e.value.style.layout.dataLabels.xAxis.formatter,
924
+ l.value / e.value.style.layout.dataLabels.xAxis.scale,
925
+ n(E)({
926
+ v: l.value / e.value.style.layout.dataLabels.xAxis.scale
927
+ }),
928
+ { datapoint: l, seriesIndex: o }
929
+ )), 9, Nl))), 256))
930
+ ], 512),
931
+ c("text", {
932
+ x: s.value.right,
933
+ y: m.value.height,
934
+ "text-anchor": "end",
935
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
936
+ fill: e.value.style.layout.dataLabels.xAxis.color,
937
+ "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
938
+ }, T(e.value.style.layout.dataLabels.xAxis.translation), 9, El)
939
+ ])) : p("", !0)
940
+ ]),
941
+ (u(!0), v(O, null, M(xe.dataset, (l, o) => (u(), v("g", null, [
942
+ c("rect", {
943
+ x: s.value.left,
944
+ y: s.value.top + s.value.height / U.value * o - e.value.style.layout.bars.gap / 2,
945
+ width: s.value.width <= 0 ? 1e-4 : s.value.width,
946
+ height: s.value.height / U.value <= 0 ? 1e-4 : s.value.height / U.value,
947
+ fill: P.value !== null && P.value === o ? n(be)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
948
+ onMouseover: (d) => Re(o, l, "pointer"),
949
+ onMouseleave: (d) => kt(o, l),
950
+ onClick: (d) => De(o, l)
951
+ }, null, 40, Bl)
952
+ ]))), 256)),
953
+ y(t.$slots, "svg", {
954
+ svg: {
955
+ ...m.value,
956
+ isPrintingImg: n(re) | n(ve) | q.value,
957
+ isPrintingSvg: J.value
958
+ }
959
+ }, void 0, !0)
960
+ ], 46, fl)),
961
+ t.$slots.hint ? (u(), v("div", Ul, [
962
+ y(t.$slots, "hint", w(k({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: se.value })), void 0, !0)
963
+ ])) : p("", !0)
964
+ ]),
965
+ t.$slots.watermark ? (u(), v("div", Vl, [
966
+ y(t.$slots, "watermark", w(k({ isPrinting: n(re) || n(ve) || q.value || J.value })), void 0, !0)
967
+ ])) : p("", !0),
968
+ y(t.$slots, "legend", { legend: h.value }, void 0, !0),
969
+ t.$slots.source ? (u(), v("div", {
970
+ key: 6,
971
+ ref_key: "source",
972
+ ref: Ae,
973
+ dir: "auto"
974
+ }, [
975
+ y(t.$slots, "source", {}, void 0, !0)
976
+ ], 512)) : p("", !0),
977
+ he(n(tt), {
978
+ teleportTo: e.value.style.tooltip.teleportTo,
979
+ show: A.value.showTooltip && V.value,
980
+ backgroundColor: e.value.style.tooltip.backgroundColor,
981
+ color: e.value.style.tooltip.color,
982
+ borderRadius: e.value.style.tooltip.borderRadius,
983
+ borderColor: e.value.style.tooltip.borderColor,
984
+ borderWidth: e.value.style.tooltip.borderWidth,
985
+ fontSize: e.value.style.tooltip.fontSize,
986
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
987
+ position: e.value.style.tooltip.position,
988
+ offsetY: e.value.style.tooltip.offsetY,
989
+ parent: $.value,
990
+ content: le.value,
991
+ isFullscreen: D.value,
992
+ isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
993
+ smooth: e.value.style.tooltip.smooth,
994
+ backdropFilter: e.value.style.tooltip.backdropFilter,
995
+ smoothForce: e.value.style.tooltip.smoothForce,
996
+ smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
997
+ isA11yMode: H.value === "keyboard",
998
+ a11yPosition: _e.value
999
+ }, {
1000
+ "tooltip-before": f(() => [
1001
+ y(t.$slots, "tooltip-before", w(k({ ...de.value })), void 0, !0)
1002
+ ]),
1003
+ "tooltip-after": f(() => [
1004
+ y(t.$slots, "tooltip-after", w(k({ ...de.value })), void 0, !0)
1005
+ ]),
1006
+ _: 3
1007
+ }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1008
+ we.value && e.value.userOptions.buttons.table ? (u(), R(Bt(j.value.component), Ut({ key: 7 }, j.value.props, {
1009
+ ref_key: "tableUnit",
1010
+ ref: G,
1011
+ onClose: Be
1012
+ }), je({
1013
+ content: f(() => [
1014
+ (u(), R(n(ot), {
1015
+ key: `table_${Le.value}`,
1016
+ colNames: F.value.colNames,
1017
+ head: F.value.head,
1018
+ body: F.value.body,
1019
+ config: F.value.config,
1020
+ title: e.value.table.useDialog ? "" : j.value.title,
1021
+ withCloseButton: !e.value.table.useDialog,
1022
+ isCursorPointer: W.value,
1023
+ onClose: Be
1024
+ }, {
1025
+ th: f(({ th: l }) => [
1026
+ ge(T(l), 1)
1027
+ ]),
1028
+ td: f(({ td: l }) => [
1029
+ ge(T(l), 1)
1030
+ ]),
1031
+ _: 1
1032
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1033
+ ]),
1034
+ _: 2
1035
+ }, [
1036
+ e.value.table.useDialog ? {
1037
+ name: "title",
1038
+ fn: f(() => [
1039
+ ge(T(j.value.title), 1)
1040
+ ]),
1041
+ key: "0"
1042
+ } : void 0,
1043
+ e.value.table.useDialog ? {
1044
+ name: "actions",
1045
+ fn: f(() => [
1046
+ c("button", {
1047
+ tabindex: "0",
1048
+ class: "vue-ui-user-options-button",
1049
+ onClick: a[0] || (a[0] = (l) => ce(e.value.userOptions.callbacks.csv)),
1050
+ style: te({ cursor: W.value ? "pointer" : "default" })
1051
+ }, [
1052
+ he(n(lt), {
1053
+ name: "fileCsv",
1054
+ stroke: j.value.props.color
1055
+ }, null, 8, ["stroke"])
1056
+ ], 4)
1057
+ ]),
1058
+ key: "1"
1059
+ } : void 0
1060
+ ]), 1040)) : p("", !0),
1061
+ y(t.$slots, "skeleton", {}, () => [
1062
+ n(Se) ? (u(), R(Zt, { key: 0 })) : p("", !0)
1063
+ ], !0)
1064
+ ], 46, dl));
1065
+ }
1066
+ }, ua = /* @__PURE__ */ vl(Gl, [["__scopeId", "data-v-b63d06c1"]]);
1067
+ export {
1068
+ ua as default
1069
+ };