vue-data-ui 3.17.13 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4766 -630
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-CMLF900n.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -0,0 +1,1226 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { G as t, H as n, It as r, J as i, Mt as a, S as o, St as ee, X as te, i as s, jt as ne, nt as re, pt as ie, t as ae, v as c, zt as oe } from "./lib-B83ZCydz.js";
3
+ import { t as se } from "./useConfig-KnOLHtlJ.js";
4
+ import { t as ce } from "./usePrinter-CMLF900n.js";
5
+ import { n as le, t as ue } from "./BaseScanner-C7dmAref.js";
6
+ import { t as de } from "./useSvgExport-Dtu973wa.js";
7
+ import { t as fe } from "./useNestedProp-CcxL1gUU.js";
8
+ import { t as pe } from "./useThemeCheck-rFK9Zlb_.js";
9
+ import { t as me } from "./useTimeLabelCollider-Dm55Emzg.js";
10
+ import { t as he } from "./img-NMY-_LiJ.js";
11
+ import { n as ge } from "./Title-ByyzJzpc.js";
12
+ import { t as _e } from "./_plugin-vue_export-helper-Dq1MygBL.js";
13
+ import { c as ve } from "./canvas-lib-DTaADQOK.js";
14
+ import { t as ye } from "./useResponsive-CrAInupd.js";
15
+ import { t as be } from "./A11yDataTable-q2-8fSlJ.js";
16
+ import { t as xe } from "./useUserOptionState-CjPJPTg2.js";
17
+ import { t as Se } from "./useChartAccessibility-Do37qcw2.js";
18
+ import { t as Ce } from "./vue_ui_age_pyramid-BON8QI6X.js";
19
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as we, createTextVNode as Te, createVNode as Ee, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as De, nextTick as Oe, normalizeClass as ke, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Ae, onMounted as je, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Me, shallowRef as Ne, toDisplayString as C, toRefs as Pe, unref as w, watch as T, watchEffect as Fe, withCtx as E } from "vue";
20
+ //#region src/components/vue-ui-age-pyramid.vue
21
+ var Ie = /* @__PURE__ */ e({ default: () => ht }), Le = ["id"], Re = ["id"], ze = { style: { position: "relative" } }, Be = [
22
+ "xmlns",
23
+ "viewBox",
24
+ "aria-describedby"
25
+ ], Ve = [
26
+ "x",
27
+ "y",
28
+ "width",
29
+ "height"
30
+ ], He = ["id"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["id"], Ke = ["stop-color"], qe = ["stop-color"], Je = [
31
+ "x",
32
+ "y",
33
+ "width",
34
+ "height",
35
+ "fill",
36
+ "rx"
37
+ ], Ye = [
38
+ "x",
39
+ "y",
40
+ "width",
41
+ "height",
42
+ "fill",
43
+ "rx"
44
+ ], Xe = [
45
+ "x",
46
+ "y",
47
+ "width",
48
+ "height",
49
+ "fill",
50
+ "rx"
51
+ ], Ze = [
52
+ "x",
53
+ "y",
54
+ "width",
55
+ "height",
56
+ "fill",
57
+ "rx"
58
+ ], Qe = { key: 0 }, $e = [
59
+ "x",
60
+ "y",
61
+ "fill",
62
+ "font-size",
63
+ "font-weight"
64
+ ], et = [
65
+ "x",
66
+ "y",
67
+ "fill",
68
+ "font-size",
69
+ "font-weight"
70
+ ], tt = { key: 1 }, nt = [
71
+ "x",
72
+ "y",
73
+ "font-size",
74
+ "fill",
75
+ "font-weight"
76
+ ], rt = { key: 2 }, it = { key: 0 }, at = [
77
+ "x1",
78
+ "x2",
79
+ "y1",
80
+ "y2",
81
+ "stroke",
82
+ "stroke-width"
83
+ ], ot = [
84
+ "x1",
85
+ "x2",
86
+ "y1",
87
+ "y2",
88
+ "stroke",
89
+ "stroke-width"
90
+ ], st = [
91
+ "x1",
92
+ "x2",
93
+ "y1",
94
+ "y2",
95
+ "stroke",
96
+ "stroke-width"
97
+ ], ct = [
98
+ "x1",
99
+ "x2",
100
+ "y1",
101
+ "y2",
102
+ "stroke",
103
+ "stroke-width"
104
+ ], lt = [
105
+ "font-size",
106
+ "fill",
107
+ "text-anchor",
108
+ "font-weight",
109
+ "transform"
110
+ ], ut = [
111
+ "font-size",
112
+ "fill",
113
+ "text-anchor",
114
+ "font-weight",
115
+ "transform"
116
+ ], dt = [
117
+ "x",
118
+ "y",
119
+ "font-size",
120
+ "fill",
121
+ "font-weight"
122
+ ], ft = [
123
+ "x",
124
+ "y",
125
+ "width",
126
+ "height",
127
+ "fill",
128
+ "onMouseover",
129
+ "onMouseleave",
130
+ "onClick"
131
+ ], pt = {
132
+ key: 0,
133
+ style: {
134
+ position: "absolute",
135
+ top: "100%",
136
+ left: "0",
137
+ width: "100%"
138
+ },
139
+ "data-dom-to-png-ignore": "",
140
+ "aria-hidden": "true"
141
+ }, mt = {
142
+ key: 5,
143
+ class: "vue-data-ui-watermark"
144
+ }, ht = /* @__PURE__ */ _e({
145
+ __name: "vue-ui-age-pyramid",
146
+ props: {
147
+ config: {
148
+ type: Object,
149
+ default() {
150
+ return {};
151
+ }
152
+ },
153
+ dataset: {
154
+ type: Array,
155
+ default() {
156
+ return [];
157
+ }
158
+ }
159
+ },
160
+ emits: ["copyAlt"],
161
+ setup(e, { expose: _e, emit: Ie }) {
162
+ let ht = h(() => import("./Tooltip-V6Z0Ko-1.js")), gt = h(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), _t = h(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), vt = h(() => import("./DataTable-ZG4GX2Zg.js")), yt = h(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), bt = h(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), xt = h(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), St = h(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_age_pyramid: Ct } = se(), { isThemeValid: wt, warnInvalidTheme: Tt } = pe(), D = e, Et = Ie, Dt = u(() => !!D.dataset && D.dataset.length), O = b(n()), k = b(!1), Ot = b(""), A = b(null), kt = b(0), j = b(null), At = b(null), jt = b(null), Mt = b(null), Nt = b(0), Pt = b(0), Ft = b(null), M = b(null), It = b(null), Lt = b(!1), N = b(!1), P = b(null), Rt = b({
163
+ x: 0,
164
+ y: 0
165
+ }), F = b("pointer"), zt = b(!1), I = b(Kt()), L = u(() => I.value.userOptions.useCursorPointer), Bt = u(() => oe({
166
+ defaultConfig: {
167
+ userOptions: { show: !1 },
168
+ table: { show: !1 },
169
+ translations: {
170
+ male: "",
171
+ female: ""
172
+ },
173
+ style: {
174
+ backgroundColor: "#99999930",
175
+ layout: {
176
+ bars: {
177
+ left: { color: "#CACACA" },
178
+ right: { color: "#999999" }
179
+ },
180
+ dataLabels: {
181
+ xAxis: {
182
+ fontSize: 0,
183
+ scale: 1e3,
184
+ translation: ""
185
+ },
186
+ yAxis: { show: !1 }
187
+ },
188
+ grid: { stroke: "#6A6A6A" }
189
+ }
190
+ }
191
+ },
192
+ userConfig: I.value.skeletonConfig ?? {}
193
+ })), { loading: Vt, FINAL_DATASET: R, manualLoading: Ht } = le({
194
+ ...Pe(D),
195
+ FINAL_CONFIG: I,
196
+ prepareConfig: Kt,
197
+ skeletonDataset: D.config?.skeletonDataset ?? [
198
+ [
199
+ "_",
200
+ 9,
201
+ 2,
202
+ 2
203
+ ],
204
+ [
205
+ "_",
206
+ 8,
207
+ 3,
208
+ 3
209
+ ],
210
+ [
211
+ "_",
212
+ 7,
213
+ 5,
214
+ 5
215
+ ],
216
+ [
217
+ "_",
218
+ 6,
219
+ 8,
220
+ 8
221
+ ],
222
+ [
223
+ "_",
224
+ 5,
225
+ 13,
226
+ 13
227
+ ],
228
+ [
229
+ "_",
230
+ 4,
231
+ 21,
232
+ 21
233
+ ],
234
+ [
235
+ "_",
236
+ 3,
237
+ 34,
238
+ 34
239
+ ],
240
+ [
241
+ "_",
242
+ 2,
243
+ 55,
244
+ 55
245
+ ],
246
+ [
247
+ "_",
248
+ 1,
249
+ 89,
250
+ 89
251
+ ],
252
+ [
253
+ "_",
254
+ 0,
255
+ 144,
256
+ 144
257
+ ]
258
+ ],
259
+ skeletonConfig: oe({
260
+ defaultConfig: I.value,
261
+ userConfig: Bt.value
262
+ })
263
+ }), { userOptionsVisible: Ut, setUserOptionsVisibility: Wt, keepUserOptionState: Gt } = xe({ config: I.value }), { svgRef: z } = Se({ config: I.value.style.title });
264
+ function Kt() {
265
+ let e = fe({
266
+ userConfig: D.config,
267
+ defaultConfig: Ct
268
+ }), t = e.theme;
269
+ if (!t) return e;
270
+ if (!wt.value(e)) return Tt(e), e;
271
+ let n = fe({
272
+ userConfig: Ce[t] || D.config,
273
+ defaultConfig: e
274
+ });
275
+ return fe({
276
+ userConfig: D.config,
277
+ defaultConfig: n
278
+ });
279
+ }
280
+ T(() => D.config, (e) => {
281
+ Vt.value || (I.value = Kt()), Ut.value = !I.value.userOptions.showOnChartHover, Jt(), Nt.value += 1, Pt.value += 1, H.value.showTable = I.value.table.show, H.value.showTooltip = I.value.style.tooltip.show;
282
+ }, { deep: !0 }), T(() => D.dataset, (e) => {
283
+ Array.isArray(e) && e.length > 0 && (Ht.value = !1);
284
+ }, { deep: !0 });
285
+ let B = Ne(null), V = Ne(null);
286
+ je(() => {
287
+ Jt();
288
+ });
289
+ let qt = u(() => !!I.value.debug);
290
+ function Jt() {
291
+ if (ee(D.dataset) && (te({
292
+ componentName: "VueUiAgePyramid",
293
+ type: "dataset",
294
+ debug: qt.value
295
+ }), Ht.value = !0), ee(D.dataset) || (Ht.value = I.value.loading), I.value.responsive) {
296
+ let e = ve(() => {
297
+ let { width: e, height: t } = ye({
298
+ chart: j.value,
299
+ title: I.value.style.title.text ? At.value : null,
300
+ source: jt.value,
301
+ noTitle: Mt.value
302
+ });
303
+ requestAnimationFrame(() => {
304
+ U.value.width = e, U.value.height = t;
305
+ });
306
+ });
307
+ B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = j.value.parentNode, B.value.observe(V.value);
308
+ }
309
+ }
310
+ Ae(() => {
311
+ B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
312
+ });
313
+ let { isPrinting: Yt, isImaging: Xt, generatePdf: Zt, generateImage: Qt } = ce({
314
+ elementId: `vue-ui-age-pyramid_${O.value}`,
315
+ fileName: I.value.style.title.text || "vue-ui-age-pyramid",
316
+ options: I.value.userOptions.print
317
+ }), $t = u(() => I.value.userOptions.show && !I.value.style.title.text), H = b({
318
+ showTable: I.value.table.show,
319
+ showTooltip: I.value.style.tooltip.show
320
+ });
321
+ T(I, () => {
322
+ H.value = {
323
+ showTable: I.value.table.show,
324
+ showTooltip: I.value.style.tooltip.show
325
+ };
326
+ }, { immediate: !0 });
327
+ let U = b({
328
+ height: I.value.style.height,
329
+ width: I.value.style.width
330
+ }), en = u(() => U.value.width), tn = u(() => U.value.height), W = b(0), nn = ve((e) => {
331
+ W.value = e;
332
+ }, 100);
333
+ Fe((e) => {
334
+ let t = Ft.value;
335
+ if (!t) return;
336
+ let n = new ResizeObserver((e) => {
337
+ nn(e[0].contentRect.height);
338
+ });
339
+ n.observe(t), e(() => n.disconnect());
340
+ }), Ae(() => {
341
+ W.value = 0;
342
+ });
343
+ let G = u(() => {
344
+ 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;
345
+ return {
346
+ top: I.value.style.layout.padding.top + I.value.style.layout.dataLabels.sideTitles.fontSize + I.value.style.layout.dataLabels.sideTitles.offsetY + 12,
347
+ left: t,
348
+ right: n,
349
+ bottom: U.value.height - I.value.style.layout.padding.bottom - W.value,
350
+ width: e,
351
+ 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,
352
+ centerX: I.value.style.layout.padding.left + e / 2,
353
+ leftChart: {
354
+ width: e / 2 - I.value.style.layout.centerSlit.width,
355
+ right: t + e / 2 - I.value.style.layout.centerSlit.width
356
+ },
357
+ rightChart: {
358
+ width: e / 2 - I.value.style.layout.centerSlit.width,
359
+ left: t + e / 2 + I.value.style.layout.centerSlit.width
360
+ }
361
+ };
362
+ }), rn = u(() => R.value.map((e) => I.value.style.layout.dataLabels.yAxis.display === "age" ? e[1] : e[0])), K = u(() => {
363
+ let e = an(q.value / 5), t = [], n = [];
364
+ for (let r = 0; r <= 5; r += 1) {
365
+ let i = e * r, a = e * (r - 5);
366
+ t.push({
367
+ value: i,
368
+ x: G.value.left + G.value.width / 2 + I.value.style.layout.centerSlit.width + i / q.value * G.value.leftChart.width
369
+ }), n.push({
370
+ value: Math.abs(a),
371
+ x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - I.value.style.layout.centerSlit.width
372
+ });
373
+ }
374
+ return {
375
+ right: t,
376
+ left: n
377
+ };
378
+ });
379
+ function an(e) {
380
+ if (e === 0) return 0;
381
+ let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
382
+ return n = Math.round(e / t) * t, n;
383
+ }
384
+ let q = u(() => Math.max(...R.value.flatMap((e) => e.slice(-2).map((e) => c(e))))), J = u(() => R.value.length), on = u(() => R.value.map((e) => ({
385
+ segment: e[0],
386
+ age: e[1],
387
+ left: {
388
+ value: e[2],
389
+ proportionToMax: e[2] / q.value
390
+ },
391
+ right: {
392
+ value: e[3],
393
+ proportionToMax: e[3] / q.value
394
+ }
395
+ }))), Y = u(() => on.value.map((e, t) => {
396
+ let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - I.value.style.layout.bars.gap;
397
+ return {
398
+ segment: e.segment,
399
+ age: e.age,
400
+ left: {
401
+ ...e.left,
402
+ y: n,
403
+ color: I.value.style.layout.bars.left.color,
404
+ x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
405
+ width: c(e.left.proportionToMax * G.value.leftChart.width),
406
+ height: r
407
+ },
408
+ right: {
409
+ ...e.right,
410
+ y: n,
411
+ color: I.value.style.layout.bars.right.color,
412
+ x: G.value.rightChart.left,
413
+ width: c(e.right.proportionToMax * G.value.rightChart.width),
414
+ height: r
415
+ }
416
+ };
417
+ })), sn = b(null);
418
+ function cn(e) {
419
+ let [t, n, r, i] = e;
420
+ return {
421
+ segment: t,
422
+ index: n,
423
+ left: r,
424
+ right: i
425
+ };
426
+ }
427
+ function ln(e, t) {
428
+ I.value.events.datapointClick && I.value.events.datapointClick({
429
+ datapoint: cn(t),
430
+ seriesIndex: e
431
+ });
432
+ }
433
+ function un(e, t) {
434
+ I.value.events.datapointLeave && I.value.events.datapointLeave({
435
+ datapoint: cn(t),
436
+ seriesIndex: e
437
+ }), !(F.value === "keyboard" && P.value === e) && (A.value = null, k.value = !1);
438
+ }
439
+ function dn(e) {
440
+ if (!z.value) return;
441
+ let t = Y.value[e];
442
+ if (!t) return;
443
+ let n = r(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, z.value);
444
+ n && (Rt.value = n);
445
+ }
446
+ function fn(e, n, r = "pointer") {
447
+ I.value.events.datapointEnter && I.value.events.datapointEnter({
448
+ datapoint: cn(n),
449
+ seriesIndex: e
450
+ }), A.value = e, P.value = e, F.value = r, sn.value = {
451
+ datapoint: n,
452
+ seriesIndex: e,
453
+ series: Y.value,
454
+ config: I.value
455
+ };
456
+ let i = I.value.style.tooltip.customFormat;
457
+ if (ie(i) && re(() => i({
458
+ seriesIndex: e,
459
+ datapoint: {
460
+ segment: n[0],
461
+ index: n[1],
462
+ left: n[2],
463
+ right: n[3]
464
+ },
465
+ series: Y.value,
466
+ config: I.value
467
+ }))) Ot.value = i({
468
+ seriesIndex: e,
469
+ datapoint: {
470
+ segment: n[0],
471
+ index: n[1],
472
+ left: n[2],
473
+ right: n[3]
474
+ },
475
+ series: Y.value,
476
+ config: I.value
477
+ });
478
+ else {
479
+ let r = "", i = Y.value[e];
480
+ r += `<div><b>${i.segment}</b></div>`, r += `<div>${I.value.translations.age}: ${s(I.value.style.layout.dataLabels.yAxis.formatter, c(i.age), t({ v: c(i.age) }), {
481
+ datapoint: n,
482
+ seriesIndex: e
483
+ })}</div>`, r += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.style.tooltip.borderColor}">`, r += "<div style=\"display:flex; flex-direction:row;gap:12px\">", r += `<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_${O.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), t({ v: c(i.left.value) }), {
484
+ datapoint: n,
485
+ seriesIndex: e
486
+ })}</b></div></div>`, r += `<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_${O.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), t({ v: c(i.right.value) }), {
487
+ datapoint: n,
488
+ seriesIndex: e
489
+ })}</b></div></div>`, r += "</div>", r += `<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), t({ v: c(i.right.value) + c(i.left.value) }), {
490
+ datapoint: n,
491
+ seriesIndex: e
492
+ })}</b></div></div>`, r += "</div>", Ot.value = `<div>${r}</div>`;
493
+ }
494
+ k.value = !0, r === "keyboard" && Oe(() => {
495
+ dn(e);
496
+ });
497
+ }
498
+ function pn(e = null) {
499
+ Oe(() => {
500
+ let t = [
501
+ I.value.translations.year,
502
+ I.value.translations.age,
503
+ I.value.translations.female,
504
+ I.value.translations.male,
505
+ I.value.translations.total
506
+ ], n = D.dataset.map((e) => [
507
+ e[0],
508
+ e[1],
509
+ e[2],
510
+ e[3],
511
+ e[2] ?? 0 + e[3] ?? 0
512
+ ]), r = o([
513
+ [I.value.style.title.text],
514
+ [I.value.style.title.subtitle.text],
515
+ [
516
+ [""],
517
+ [""],
518
+ [""]
519
+ ],
520
+ t
521
+ ].concat(n));
522
+ e ? e(r) : i({
523
+ csvContent: r,
524
+ title: I.value.style.title.text || "vue-ui-heatmap"
525
+ });
526
+ });
527
+ }
528
+ let X = u(() => {
529
+ let e = [
530
+ I.value.translations.year,
531
+ I.value.translations.age,
532
+ I.value.translations.female,
533
+ I.value.translations.male,
534
+ I.value.translations.total
535
+ ];
536
+ return {
537
+ head: e,
538
+ body: D.dataset.map((e) => [
539
+ e[0],
540
+ e[1],
541
+ e[2] == null ? "" : e[2].toLocaleString(),
542
+ e[3] == null ? "" : e[3].toLocaleString(),
543
+ (e[2] ?? 0 + e[3] ?? 0).toLocaleString()
544
+ ]),
545
+ config: {
546
+ th: {
547
+ backgroundColor: I.value.table.th.backgroundColor,
548
+ color: I.value.table.th.color,
549
+ outline: I.value.table.th.outline
550
+ },
551
+ td: {
552
+ backgroundColor: I.value.table.td.backgroundColor,
553
+ color: I.value.table.td.color,
554
+ outline: I.value.table.td.outline
555
+ },
556
+ breakpoint: I.value.table.responsiveBreakpoint
557
+ },
558
+ colNames: e
559
+ };
560
+ }), Z = b(!1);
561
+ function mn(e) {
562
+ Z.value = e, kt.value += 1;
563
+ }
564
+ function hn() {
565
+ H.value.showTable = !H.value.showTable;
566
+ }
567
+ function gn() {
568
+ H.value.showTooltip = !H.value.showTooltip;
569
+ }
570
+ let Q = b(!1);
571
+ function _n() {
572
+ Q.value = !Q.value;
573
+ }
574
+ async function vn({ scale: e = 2 } = {}) {
575
+ if (!j.value) return;
576
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
577
+ domElement: j.value,
578
+ base64: !0,
579
+ img: !0,
580
+ scale: e
581
+ });
582
+ return {
583
+ imageUri: i,
584
+ base64: a,
585
+ title: I.value.style.title.text,
586
+ width: t,
587
+ height: n,
588
+ aspectRatio: r
589
+ };
590
+ }
591
+ me({
592
+ timeLabelsEls: Ft,
593
+ timeLabels: b([]),
594
+ slicer: b({
595
+ start: 0,
596
+ end: Y.value.length
597
+ }),
598
+ configRef: I,
599
+ rotationPath: [
600
+ "style",
601
+ "layout",
602
+ "dataLabels",
603
+ "xAxis",
604
+ "rotation"
605
+ ],
606
+ autoRotatePath: [
607
+ "style",
608
+ "layout",
609
+ "dataLabels",
610
+ "xAxis",
611
+ "autoRotate",
612
+ "enable"
613
+ ],
614
+ isAutoSize: !1,
615
+ width: en,
616
+ height: tn,
617
+ targetClass: ".vue-ui-age-pyramid-x-axis-label",
618
+ rotation: I.value.style.layout.dataLabels.xAxis.autoRotate.angle
619
+ });
620
+ let $ = u(() => {
621
+ let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
622
+ return {
623
+ component: e ? St : _t,
624
+ title: `${I.value.style.title.text}${I.value.style.title.subtitle.text ? `: ${I.value.style.title.subtitle.text}` : ""}`,
625
+ props: e ? {
626
+ backgroundColor: I.value.table.th.backgroundColor,
627
+ color: I.value.table.th.color,
628
+ headerColor: I.value.table.th.color,
629
+ headerBg: I.value.table.th.backgroundColor,
630
+ isFullscreen: Z.value,
631
+ fullscreenParent: j.value,
632
+ forcedWidth: Math.min(800, window.innerWidth * .8),
633
+ isCursorPointer: L.value
634
+ } : {
635
+ hideDetails: !0,
636
+ config: {
637
+ open: t,
638
+ maxHeight: 1e4,
639
+ body: {
640
+ backgroundColor: I.value.style.backgroundColor,
641
+ color: I.value.style.color
642
+ },
643
+ head: {
644
+ backgroundColor: I.value.style.backgroundColor,
645
+ color: I.value.style.color
646
+ }
647
+ }
648
+ }
649
+ };
650
+ });
651
+ T(() => H.value.showTable, (e) => {
652
+ I.value.table.show || (e && I.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
653
+ });
654
+ function yn() {
655
+ H.value.showTable = !1, It.value && It.value.setTableIconState(!1);
656
+ }
657
+ let bn = u(() => I.value.style.backgroundColor), { exportSvg: xn, getSvg: Sn } = de({
658
+ svg: z,
659
+ title: u(() => I.value.style.title),
660
+ backgroundColor: bn
661
+ });
662
+ async function Cn({ isCb: e }) {
663
+ N.value = !0, await Oe();
664
+ try {
665
+ if (e) {
666
+ let { blob: e, url: t, text: n, dataUrl: r } = await Sn();
667
+ await Promise.resolve(I.value.userOptions.callbacks.svg({
668
+ blob: e,
669
+ url: t,
670
+ text: n,
671
+ dataUrl: r
672
+ }));
673
+ } else await Promise.resolve(xn());
674
+ } finally {
675
+ N.value = !1;
676
+ }
677
+ }
678
+ function wn(e) {
679
+ if (e?.stage === "start") {
680
+ Lt.value = !0;
681
+ return;
682
+ }
683
+ if (e?.stage === "end") {
684
+ Lt.value = !1;
685
+ return;
686
+ }
687
+ Qt();
688
+ }
689
+ async function Tn() {
690
+ if (Et("copyAlt", {
691
+ config: I.value,
692
+ dataset: Y.value
693
+ }), !I.value.userOptions.callbacks.altCopy) {
694
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
695
+ return;
696
+ }
697
+ await Promise.resolve(I.value.userOptions.callbacks.altCopy({
698
+ config: I.value,
699
+ dataset: Y.value
700
+ }));
701
+ }
702
+ function En() {
703
+ zt.value = !0;
704
+ }
705
+ function Dn() {
706
+ A.value = null, P.value = null, F.value = "pointer", k.value = !1, zt.value = !1;
707
+ }
708
+ function On(e) {
709
+ if (!z.value || Q.value || document.activeElement !== z.value || !Y.value.length) return;
710
+ let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
711
+ if (!t && !n && !r && !i) return;
712
+ if (e.preventDefault(), e.stopPropagation(), i) {
713
+ A.value = null, P.value = null, F.value = "pointer", k.value = !1;
714
+ return;
715
+ }
716
+ if (r) {
717
+ if (P.value === null) return;
718
+ let e = D.dataset[P.value];
719
+ if (!e) return;
720
+ ln(P.value, e);
721
+ return;
722
+ }
723
+ let a = P.value, o = A.value, ee = a !== null && a >= 0 && a < Y.value.length, te = o !== null && o >= 0 && o < Y.value.length;
724
+ 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;
725
+ let s = D.dataset[a];
726
+ s && fn(a, s, "keyboard");
727
+ }
728
+ return _e({
729
+ getImage: vn,
730
+ generatePdf: Zt,
731
+ generateCsv: pn,
732
+ generateImage: Qt,
733
+ generateSvg: Cn,
734
+ toggleTable: hn,
735
+ toggleTooltip: gn,
736
+ toggleAnnotator: _n,
737
+ toggleFullscreen: mn,
738
+ copyAlt: Tn
739
+ }), (n, r) => (y(), p("div", {
740
+ class: ke(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
741
+ ref_key: "agePyramid",
742
+ ref: j,
743
+ id: `vue-ui-age-pyramid_${O.value}`,
744
+ style: v(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
745
+ onMouseenter: r[1] ||= () => w(Wt)(!0),
746
+ onMouseleave: r[2] ||= () => w(Wt)(!1)
747
+ }, [
748
+ m("div", {
749
+ id: `chart-instructions-${O.value}`,
750
+ class: "sr-only"
751
+ }, [m("p", null, C(I.value.a11y.translations.keyboardNavigation), 1)], 8, Re),
752
+ X.value?.body?.length ? (y(), d(be, {
753
+ key: 0,
754
+ uid: O.value,
755
+ head: X.value.head,
756
+ body: X.value.body,
757
+ notice: I.value.a11y.translations.tableAvailable,
758
+ caption: I.value.a11y.translations.tableCaption
759
+ }, null, 8, [
760
+ "uid",
761
+ "head",
762
+ "body",
763
+ "notice",
764
+ "caption"
765
+ ])) : f("", !0),
766
+ I.value.userOptions.buttons.annotator ? (y(), d(w(yt), {
767
+ key: 1,
768
+ svgRef: w(z),
769
+ backgroundColor: I.value.style.backgroundColor,
770
+ color: I.value.style.color,
771
+ active: Q.value,
772
+ isCursorPointer: L.value,
773
+ onClose: _n
774
+ }, {
775
+ "annotator-action-close": E(() => [S(n.$slots, "annotator-action-close", {}, void 0, !0)]),
776
+ "annotator-action-color": E(({ color: e }) => [S(n.$slots, "annotator-action-color", _(g({ color: e })), void 0, !0)]),
777
+ "annotator-action-draw": E(({ mode: e }) => [S(n.$slots, "annotator-action-draw", _(g({ mode: e })), void 0, !0)]),
778
+ "annotator-action-undo": E(({ disabled: e }) => [S(n.$slots, "annotator-action-undo", _(g({ disabled: e })), void 0, !0)]),
779
+ "annotator-action-redo": E(({ disabled: e }) => [S(n.$slots, "annotator-action-redo", _(g({ disabled: e })), void 0, !0)]),
780
+ "annotator-action-delete": E(({ disabled: e }) => [S(n.$slots, "annotator-action-delete", _(g({ disabled: e })), void 0, !0)]),
781
+ _: 3
782
+ }, 8, [
783
+ "svgRef",
784
+ "backgroundColor",
785
+ "color",
786
+ "active",
787
+ "isCursorPointer"
788
+ ])) : f("", !0),
789
+ $t.value ? (y(), p("div", {
790
+ key: 2,
791
+ ref_key: "noTitle",
792
+ ref: Mt,
793
+ class: "vue-data-ui-no-title-space",
794
+ style: "height:36px; width: 100%;background:transparent"
795
+ }, null, 512)) : f("", !0),
796
+ I.value.style.title.text ? (y(), p("div", {
797
+ key: 3,
798
+ ref_key: "chartTitle",
799
+ ref: At,
800
+ style: "width:100%;background:transparent"
801
+ }, [(y(), d(ge, {
802
+ key: `title_${Nt.value}`,
803
+ config: {
804
+ title: {
805
+ cy: "pyramid-div-title",
806
+ ...I.value.style.title
807
+ },
808
+ subtitle: {
809
+ cy: "pyramid-div-subtitle",
810
+ ...I.value.style.title.subtitle
811
+ }
812
+ }
813
+ }, null, 8, ["config"]))], 512)) : f("", !0),
814
+ I.value.userOptions.show && Dt.value && (w(Gt) || w(Ut)) ? (y(), d(w(bt), {
815
+ ref_key: "userOptionsRef",
816
+ ref: It,
817
+ key: `user_options_${kt.value}`,
818
+ backgroundColor: I.value.style.backgroundColor,
819
+ color: I.value.style.color,
820
+ isImaging: w(Xt),
821
+ isPrinting: w(Yt),
822
+ uid: O.value,
823
+ hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.tooltip.show,
824
+ hasPdf: I.value.userOptions.buttons.pdf,
825
+ hasXls: I.value.userOptions.buttons.csv,
826
+ hasImg: I.value.userOptions.buttons.img,
827
+ hasSvg: I.value.userOptions.buttons.svg,
828
+ hasTable: I.value.userOptions.buttons.table,
829
+ hasFullscreen: I.value.userOptions.buttons.fullscreen,
830
+ hasAltCopy: I.value.userOptions.buttons.altCopy,
831
+ isFullscreen: Z.value,
832
+ isTooltip: H.value.showTooltip,
833
+ titles: { ...I.value.userOptions.buttonTitles },
834
+ chartElement: j.value,
835
+ position: I.value.userOptions.position,
836
+ hasAnnotator: I.value.userOptions.buttons.annotator,
837
+ isAnnotation: Q.value,
838
+ callbacks: I.value.userOptions.callbacks,
839
+ printScale: I.value.userOptions.print.scale,
840
+ tableDialog: I.value.table.useDialog,
841
+ isCursorPointer: L.value,
842
+ onToggleFullscreen: mn,
843
+ onGeneratePdf: w(Zt),
844
+ onGenerateCsv: pn,
845
+ onGenerateImage: wn,
846
+ onGenerateSvg: Cn,
847
+ onToggleTable: hn,
848
+ onToggleTooltip: gn,
849
+ onToggleAnnotator: _n,
850
+ onCopyAlt: Tn,
851
+ style: v({ visibility: w(Gt) ? w(Ut) ? "visible" : "hidden" : "visible" })
852
+ }, we({ _: 2 }, [
853
+ n.$slots.menuIcon ? {
854
+ name: "menuIcon",
855
+ fn: E(({ isOpen: e, color: t }) => [S(n.$slots, "menuIcon", _(g({
856
+ isOpen: e,
857
+ color: t
858
+ })), void 0, !0)]),
859
+ key: "0"
860
+ } : void 0,
861
+ n.$slots.optionTooltip ? {
862
+ name: "optionTooltip",
863
+ fn: E(() => [S(n.$slots, "optionTooltip", {}, void 0, !0)]),
864
+ key: "1"
865
+ } : void 0,
866
+ n.$slots.optionPdf ? {
867
+ name: "optionPdf",
868
+ fn: E(() => [S(n.$slots, "optionPdf", {}, void 0, !0)]),
869
+ key: "2"
870
+ } : void 0,
871
+ n.$slots.optionCsv ? {
872
+ name: "optionCsv",
873
+ fn: E(() => [S(n.$slots, "optionCsv", {}, void 0, !0)]),
874
+ key: "3"
875
+ } : void 0,
876
+ n.$slots.optionImg ? {
877
+ name: "optionImg",
878
+ fn: E(() => [S(n.$slots, "optionImg", {}, void 0, !0)]),
879
+ key: "4"
880
+ } : void 0,
881
+ n.$slots.optionSvg ? {
882
+ name: "optionSvg",
883
+ fn: E(() => [S(n.$slots, "optionSvg", {}, void 0, !0)]),
884
+ key: "5"
885
+ } : void 0,
886
+ n.$slots.optionTable ? {
887
+ name: "optionTable",
888
+ fn: E(() => [S(n.$slots, "optionTable", {}, void 0, !0)]),
889
+ key: "6"
890
+ } : void 0,
891
+ n.$slots.optionFullscreen ? {
892
+ name: "optionFullscreen",
893
+ fn: E(({ toggleFullscreen: e, isFullscreen: t }) => [S(n.$slots, "optionFullscreen", _(g({
894
+ toggleFullscreen: e,
895
+ isFullscreen: t
896
+ })), void 0, !0)]),
897
+ key: "7"
898
+ } : void 0,
899
+ n.$slots.optionAnnotator ? {
900
+ name: "optionAnnotator",
901
+ fn: E(({ toggleAnnotator: e, isAnnotator: t }) => [S(n.$slots, "optionAnnotator", _(g({
902
+ toggleAnnotator: e,
903
+ isAnnotator: t
904
+ })), void 0, !0)]),
905
+ key: "8"
906
+ } : void 0,
907
+ n.$slots.optionAltCopy ? {
908
+ name: "optionAltCopy",
909
+ fn: E(({ altCopy: e }) => [S(n.$slots, "optionAltCopy", _(g({ altCopy: e })), void 0, !0)]),
910
+ key: "9"
911
+ } : void 0
912
+ ]), 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),
913
+ m("div", ze, [(y(), p("svg", {
914
+ ref_key: "svgRef",
915
+ ref: z,
916
+ xmlns: w(ae),
917
+ class: ke({
918
+ "vue-data-ui-fullscreen--on": Z.value,
919
+ "vue-data-ui-fulscreen--off": !Z.value
920
+ }),
921
+ viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
922
+ style: v(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.color}`),
923
+ tabindex: "0",
924
+ "aria-describedby": `chart-instructions-${O.value}`,
925
+ onFocus: En,
926
+ onBlur: Dn,
927
+ onKeydown: On
928
+ }, [
929
+ Ee(w(xt)),
930
+ n.$slots["chart-background"] ? (y(), p("foreignObject", {
931
+ key: 0,
932
+ x: G.value.left,
933
+ y: G.value.top,
934
+ width: Math.max(.1, G.value.width),
935
+ height: Math.max(.1, G.value.height),
936
+ style: { pointerEvents: "none" }
937
+ }, [S(n.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : f("", !0),
938
+ m("defs", null, [m("linearGradient", {
939
+ id: `age_pyramid_left_${O.value}`,
940
+ x1: "0%",
941
+ y1: "0%",
942
+ x2: "100%",
943
+ y2: "0%"
944
+ }, [m("stop", {
945
+ offset: "0%",
946
+ "stop-color": I.value.style.layout.bars.left.color
947
+ }, null, 8, Ue), m("stop", {
948
+ offset: "100%",
949
+ "stop-color": w(ne)(w(a)(I.value.style.layout.bars.left.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity)
950
+ }, null, 8, We)], 8, He), m("linearGradient", {
951
+ id: `age_pyramid_right_${O.value}`,
952
+ x1: "0%",
953
+ y1: "0%",
954
+ x2: "100%",
955
+ y2: "0%"
956
+ }, [m("stop", {
957
+ offset: "0%",
958
+ "stop-color": w(ne)(w(a)(I.value.style.layout.bars.right.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity)
959
+ }, null, 8, Ke), m("stop", {
960
+ offset: "100%",
961
+ "stop-color": I.value.style.layout.bars.right.color
962
+ }, null, 8, qe)], 8, Ge)]),
963
+ (y(!0), p(l, null, x(Y.value, (e, t) => (y(), p("g", null, [
964
+ m("rect", {
965
+ x: e.left.x,
966
+ y: e.left.y,
967
+ width: w(c)(e.left.width <= 0 ? 1e-4 : e.left.width),
968
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
969
+ fill: I.value.style.layout.bars.gradient.underlayer,
970
+ rx: I.value.style.layout.bars.borderRadius
971
+ }, null, 8, Je),
972
+ m("rect", {
973
+ x: e.left.x,
974
+ y: e.left.y,
975
+ width: e.left.width <= 0 ? 1e-4 : e.left.width,
976
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
977
+ fill: I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${O.value})` : e.left.color,
978
+ rx: I.value.style.layout.bars.borderRadius
979
+ }, null, 8, Ye),
980
+ m("rect", {
981
+ x: e.right.x,
982
+ y: e.right.y,
983
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
984
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
985
+ fill: I.value.style.layout.bars.gradient.underlayer,
986
+ rx: I.value.style.layout.bars.borderRadius
987
+ }, null, 8, Xe),
988
+ m("rect", {
989
+ x: e.right.x,
990
+ y: e.right.y,
991
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
992
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
993
+ fill: I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${O.value})` : e.right.color,
994
+ rx: I.value.style.layout.bars.borderRadius
995
+ }, null, 8, Ze)
996
+ ]))), 256)),
997
+ m("g", null, [
998
+ I.value.style.layout.dataLabels.sideTitles.show ? (y(), p("g", Qe, [m("text", {
999
+ x: G.value.left,
1000
+ y: I.value.style.layout.dataLabels.sideTitles.fontSize,
1001
+ fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.left.color : I.value.style.layout.dataLabels.sideTitles.color,
1002
+ "font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
1003
+ "text-anchor": "start",
1004
+ "font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1005
+ }, C(I.value.translations.female), 9, $e), m("text", {
1006
+ x: G.value.right,
1007
+ y: I.value.style.layout.dataLabels.sideTitles.fontSize,
1008
+ fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.right.color : I.value.style.layout.dataLabels.sideTitles.color,
1009
+ "font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
1010
+ "text-anchor": "end",
1011
+ "font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1012
+ }, C(I.value.translations.male), 9, et)])) : f("", !0),
1013
+ I.value.style.layout.dataLabels.yAxis.show ? (y(), p("g", tt, [(y(!0), p(l, null, x(rn.value, (e, n) => (y(), p(l, null, [n % I.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (y(), p("text", {
1014
+ key: 0,
1015
+ x: G.value.centerX,
1016
+ y: G.value.top + G.value.height / J.value * n + I.value.style.layout.dataLabels.yAxis.fontSize / 3,
1017
+ "text-anchor": "middle",
1018
+ "font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
1019
+ fill: I.value.style.layout.dataLabels.yAxis.color,
1020
+ "font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
1021
+ }, C(w(s)(I.value.style.layout.dataLabels.yAxis.formatter, e, w(t)({ v: e }), {
1022
+ datapoint: e,
1023
+ seriesIndex: n
1024
+ })), 9, nt)) : f("", !0)], 64))), 256))])) : f("", !0),
1025
+ I.value.style.layout.dataLabels.xAxis.show ? (y(), p("g", rt, [
1026
+ I.value.style.layout.grid.show ? (y(), p("g", it, [m("line", {
1027
+ x1: K.value.right[0].x,
1028
+ x2: K.value.right.at(-1).x,
1029
+ y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1030
+ y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1031
+ stroke: I.value.style.layout.grid.stroke,
1032
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1033
+ "stroke-linecap": "round"
1034
+ }, null, 8, at), m("line", {
1035
+ x1: K.value.left[0].x,
1036
+ x2: K.value.left.at(-1).x,
1037
+ y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1038
+ y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1039
+ stroke: I.value.style.layout.grid.stroke,
1040
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1041
+ "stroke-linecap": "round"
1042
+ }, null, 8, ot)])) : f("", !0),
1043
+ (y(!0), p(l, null, x(K.value.right, (e, t) => (y(), p("g", null, [I.value.style.layout.grid.show ? (y(), p("line", {
1044
+ key: 0,
1045
+ x1: e.x,
1046
+ x2: e.x,
1047
+ y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1048
+ y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1049
+ stroke: I.value.style.layout.grid.stroke,
1050
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1051
+ "stroke-linecap": "round"
1052
+ }, null, 8, st)) : f("", !0)]))), 256)),
1053
+ (y(!0), p(l, null, x(K.value.left, (e, t) => (y(), p("g", null, [I.value.style.layout.grid.show ? (y(), p("line", {
1054
+ key: 0,
1055
+ x1: e.x,
1056
+ x2: e.x,
1057
+ y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
1058
+ y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1059
+ stroke: I.value.style.layout.grid.stroke,
1060
+ "stroke-width": I.value.style.layout.grid.strokeWidth,
1061
+ "stroke-linecap": "round"
1062
+ }, null, 8, ct)) : f("", !0)]))), 256)),
1063
+ m("g", {
1064
+ ref_key: "xAxisLabels",
1065
+ ref: Ft
1066
+ }, [(y(!0), p(l, null, x(K.value.right, (e, n) => (y(), p("text", {
1067
+ class: "vue-ui-age-pyramid-x-axis-label",
1068
+ "font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
1069
+ fill: I.value.style.layout.dataLabels.xAxis.color,
1070
+ "text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1071
+ "font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1072
+ transform: `translate(${e.x}, ${G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
1073
+ }, C(w(s)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, w(t)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
1074
+ datapoint: e,
1075
+ seriesIndex: n
1076
+ })), 9, lt))), 256)), (y(!0), p(l, null, x(K.value.left, (e, n) => (y(), p("text", {
1077
+ class: "vue-ui-age-pyramid-x-axis-label",
1078
+ "font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
1079
+ fill: I.value.style.layout.dataLabels.xAxis.color,
1080
+ "text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1081
+ "font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1082
+ transform: `translate(${e.x}, ${G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
1083
+ }, C(w(s)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, w(t)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
1084
+ datapoint: e,
1085
+ seriesIndex: n
1086
+ })), 9, ut))), 256))], 512),
1087
+ m("text", {
1088
+ x: G.value.right,
1089
+ y: U.value.height,
1090
+ "text-anchor": "end",
1091
+ "font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
1092
+ fill: I.value.style.layout.dataLabels.xAxis.color,
1093
+ "font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
1094
+ }, C(I.value.style.layout.dataLabels.xAxis.translation), 9, dt)
1095
+ ])) : f("", !0)
1096
+ ]),
1097
+ (y(!0), p(l, null, x(e.dataset, (e, t) => (y(), p("g", null, [m("rect", {
1098
+ x: G.value.left,
1099
+ y: G.value.top + G.value.height / J.value * t - I.value.style.layout.bars.gap / 2,
1100
+ width: G.value.width <= 0 ? 1e-4 : G.value.width,
1101
+ height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
1102
+ fill: A.value !== null && A.value === t ? w(ne)(I.value.style.highlighter.color, I.value.style.highlighter.opacity) : "transparent",
1103
+ onMouseover: (n) => fn(t, e, "pointer"),
1104
+ onMouseleave: (n) => un(t, e),
1105
+ onClick: (n) => ln(t, e)
1106
+ }, null, 40, ft)]))), 256)),
1107
+ S(n.$slots, "svg", { svg: {
1108
+ ...U.value,
1109
+ drawingArea: G.value,
1110
+ isPrintingImg: w(Yt) || w(Xt) || Lt.value,
1111
+ isPrintingSvg: N.value
1112
+ } }, void 0, !0)
1113
+ ], 46, Be)), n.$slots.hint ? (y(), p("div", pt, [S(n.$slots, "hint", _(g({
1114
+ hint: I.value.a11y.translations.keyboardNavigation,
1115
+ isVisible: zt.value
1116
+ })), void 0, !0)])) : f("", !0)]),
1117
+ n.$slots.watermark ? (y(), p("div", mt, [S(n.$slots, "watermark", _(g({ isPrinting: w(Yt) || w(Xt) || Lt.value || N.value })), void 0, !0)])) : f("", !0),
1118
+ S(n.$slots, "legend", { legend: Y.value }, void 0, !0),
1119
+ n.$slots.source ? (y(), p("div", {
1120
+ key: 6,
1121
+ ref_key: "source",
1122
+ ref: jt,
1123
+ dir: "auto"
1124
+ }, [S(n.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1125
+ Ee(w(ht), {
1126
+ teleportTo: I.value.style.tooltip.teleportTo,
1127
+ show: H.value.showTooltip && k.value,
1128
+ backgroundColor: I.value.style.tooltip.backgroundColor,
1129
+ color: I.value.style.tooltip.color,
1130
+ borderRadius: I.value.style.tooltip.borderRadius,
1131
+ borderColor: I.value.style.tooltip.borderColor,
1132
+ borderWidth: I.value.style.tooltip.borderWidth,
1133
+ fontSize: I.value.style.tooltip.fontSize,
1134
+ backgroundOpacity: I.value.style.tooltip.backgroundOpacity,
1135
+ position: I.value.style.tooltip.position,
1136
+ offsetY: I.value.style.tooltip.offsetY,
1137
+ parent: j.value,
1138
+ content: Ot.value,
1139
+ isFullscreen: Z.value,
1140
+ isCustom: I.value.style.tooltip.customFormat && typeof I.value.style.tooltip.customFormat == "function",
1141
+ smooth: I.value.style.tooltip.smooth,
1142
+ backdropFilter: I.value.style.tooltip.backdropFilter,
1143
+ smoothForce: I.value.style.tooltip.smoothForce,
1144
+ smoothSnapThreshold: I.value.style.tooltip.smoothSnapThreshold,
1145
+ isA11yMode: F.value === "keyboard",
1146
+ a11yPosition: Rt.value
1147
+ }, {
1148
+ "tooltip-before": E(() => [S(n.$slots, "tooltip-before", _(g({ ...sn.value })), void 0, !0)]),
1149
+ tooltip: E(() => [S(n.$slots, "tooltip", _(g({ ...sn.value })), void 0, !0)]),
1150
+ "tooltip-after": E(() => [S(n.$slots, "tooltip-after", _(g({ ...sn.value })), void 0, !0)]),
1151
+ _: 3
1152
+ }, 8, [
1153
+ "teleportTo",
1154
+ "show",
1155
+ "backgroundColor",
1156
+ "color",
1157
+ "borderRadius",
1158
+ "borderColor",
1159
+ "borderWidth",
1160
+ "fontSize",
1161
+ "backgroundOpacity",
1162
+ "position",
1163
+ "offsetY",
1164
+ "parent",
1165
+ "content",
1166
+ "isFullscreen",
1167
+ "isCustom",
1168
+ "smooth",
1169
+ "backdropFilter",
1170
+ "smoothForce",
1171
+ "smoothSnapThreshold",
1172
+ "isA11yMode",
1173
+ "a11yPosition"
1174
+ ]),
1175
+ Dt.value && I.value.userOptions.buttons.table ? (y(), d(Me($.value.component), De({ key: 7 }, $.value.props, {
1176
+ ref_key: "tableUnit",
1177
+ ref: M,
1178
+ onClose: yn
1179
+ }), we({
1180
+ content: E(() => [(y(), d(w(vt), {
1181
+ key: `table_${Pt.value}`,
1182
+ colNames: X.value.colNames,
1183
+ head: X.value.head,
1184
+ body: X.value.body,
1185
+ config: X.value.config,
1186
+ title: I.value.table.useDialog ? "" : $.value.title,
1187
+ withCloseButton: !I.value.table.useDialog,
1188
+ isCursorPointer: L.value,
1189
+ onClose: yn
1190
+ }, {
1191
+ th: E(({ th: e }) => [Te(C(e), 1)]),
1192
+ td: E(({ td: e }) => [Te(C(e), 1)]),
1193
+ _: 1
1194
+ }, 8, [
1195
+ "colNames",
1196
+ "head",
1197
+ "body",
1198
+ "config",
1199
+ "title",
1200
+ "withCloseButton",
1201
+ "isCursorPointer"
1202
+ ]))]),
1203
+ _: 2
1204
+ }, [I.value.table.useDialog ? {
1205
+ name: "title",
1206
+ fn: E(() => [Te(C($.value.title), 1)]),
1207
+ key: "0"
1208
+ } : void 0, I.value.table.useDialog ? {
1209
+ name: "actions",
1210
+ fn: E(() => [m("button", {
1211
+ tabindex: "0",
1212
+ class: "vue-ui-user-options-button",
1213
+ onClick: r[0] ||= (e) => pn(I.value.userOptions.callbacks.csv),
1214
+ style: v({ cursor: L.value ? "pointer" : "default" })
1215
+ }, [Ee(w(gt), {
1216
+ name: "fileCsv",
1217
+ stroke: $.value.props.color
1218
+ }, null, 8, ["stroke"])], 4)]),
1219
+ key: "1"
1220
+ } : void 0]), 1040)) : f("", !0),
1221
+ S(n.$slots, "skeleton", {}, () => [w(Vt) ? (y(), d(ue, { key: 0 })) : f("", !0)], !0)
1222
+ ], 46, Le));
1223
+ }
1224
+ }, [["__scopeId", "data-v-3f1b1e32"]]);
1225
+ //#endregion
1226
+ export { Ie as n, ht as t };