vue-data-ui 3.22.7 → 3.22.9

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