vue-data-ui 3.25.4 → 3.25.6

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