vue-data-ui 3.17.13 → 3.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.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-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.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-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.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 +4775 -627
  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-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.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-X0yWOynH.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-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.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-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.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
@@ -1,1179 +0,0 @@
1
- import { defineAsyncComponent as I, computed as g, ref as r, toRefs as Mt, watch as te, shallowRef as We, onMounted as Nt, onBeforeUnmount as Ke, watchEffect as Et, openBlock as u, createElementBlock as v, unref as n, normalizeStyle as le, normalizeClass as Xe, createElementVNode as f, toDisplayString as T, createBlock as R, createCommentVNode as p, withCtx as c, renderSlot as y, normalizeProps as x, guardReactiveProps as w, createSlots as je, createVNode as he, Fragment as O, renderList as M, resolveDynamicComponent as Bt, mergeProps as Ut, createTextVNode as ge, nextTick as pe } from "vue";
2
- import { j as Vt, t as Ye, o as qe, q as Gt, K as k, X as Ht, u as be, v as Je, k as N, l as E, a0 as Wt, a1 as Kt, T as Xt, U as jt, a3 as Yt } from "./lib-DMzrGQHK.js";
3
- import { t as Qe, u as qt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Jt } from "./useConfig-CG4HT3wS.js";
5
- import { u as Qt, B as Zt } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as el } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as tl } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as me } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as ll } from "./useThemeCheck-C9Ccl7U9.js";
10
- import { u as al } from "./useUserOptionState-B7Ej974k.js";
11
- import { u as ol } from "./useChartAccessibility-cp6XQtqi.js";
12
- import { u as sl } from "./useTimeLabelCollider-D3JeJ6Ye.js";
13
- import il from "./img-CjTQXS0U.js";
14
- import ul from "./Title-BbKoiBk2.js";
15
- import nl from "./vue_ui_age_pyramid-8H8WSL7J.js";
16
- import { A as rl } from "./A11yDataTable-BpmuNomI.js";
17
- import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const dl = ["id"], yl = ["id"], cl = { style: { position: "relative" } }, fl = ["xmlns", "viewBox", "aria-describedby"], hl = ["x", "y", "width", "height"], gl = ["id"], pl = ["stop-color"], bl = ["stop-color"], ml = ["id"], xl = ["stop-color"], wl = ["stop-color"], kl = ["x", "y", "width", "height", "fill", "rx"], Cl = ["x", "y", "width", "height", "fill", "rx"], Al = ["x", "y", "width", "height", "fill", "rx"], Tl = ["x", "y", "width", "height", "fill", "rx"], $l = { key: 0 }, Ll = ["x", "y", "fill", "font-size", "font-weight"], _l = ["x", "y", "fill", "font-size", "font-weight"], Sl = { key: 1 }, Il = ["x", "y", "font-size", "fill", "font-weight"], Ol = { key: 2 }, Pl = { key: 0 }, zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["font-size", "fill", "text-anchor", "font-weight", "transform"], Nl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], El = ["x", "y", "font-size", "fill", "font-weight"], Bl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], Ul = {
19
- key: 0,
20
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
21
- "data-dom-to-png-ignore": "",
22
- "aria-hidden": "true"
23
- }, Vl = {
24
- key: 5,
25
- class: "vue-data-ui-watermark"
26
- }, Gl = {
27
- __name: "vue-ui-age-pyramid",
28
- props: {
29
- config: {
30
- type: Object,
31
- default() {
32
- return {};
33
- }
34
- },
35
- dataset: {
36
- type: Array,
37
- default() {
38
- return [];
39
- }
40
- }
41
- },
42
- emits: ["copyAlt"],
43
- setup(xe, { expose: Ze, emit: et }) {
44
- const tt = I(() => import("./Tooltip-Cvt7Fi0Q.js")), lt = I(() => import("./BaseIcon-DX0hTWa-.js")), at = I(() => import("./vue-ui-accordion-DFtpH_16.js")), ot = I(() => import("./DataTable-cMnb68Ik.js")), st = I(
45
- () => import("./PenAndPaper-CJDoB5H9.js")
46
- ), it = I(
47
- () => import("./UserOptions-DVduN6X7.js")
48
- ), ut = I(
49
- () => import("./PackageVersion-BfrCAH6_.js")
50
- ), nt = I(
51
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
52
- ), { vue_ui_age_pyramid: rt } = Jt(), { isThemeValid: vt, warnInvalidTheme: dt } = ll(), b = xe, yt = et, we = g(() => !!b.dataset && b.dataset.length), C = r(Vt()), V = r(!1), ae = r(""), P = r(null), ke = r(0), $ = r(null), Ce = r(null), Ae = r(null), Te = r(null), $e = r(0), Le = r(0), oe = r(null), G = r(null), se = r(null), q = r(!1), J = r(!1), L = r(null), _e = r({ x: 0, y: 0 }), H = r("pointer"), ie = r(!1), e = r(re()), W = g(
53
- () => e.value.userOptions.useCursorPointer
54
- ), ct = g(() => Ye({
55
- defaultConfig: {
56
- userOptions: { show: !1 },
57
- table: { show: !1 },
58
- translations: {
59
- male: "",
60
- female: ""
61
- },
62
- style: {
63
- backgroundColor: "#99999930",
64
- layout: {
65
- bars: {
66
- left: { color: "#CACACA" },
67
- right: { color: "#999999" }
68
- },
69
- dataLabels: {
70
- xAxis: {
71
- fontSize: 0,
72
- scale: 1e3,
73
- translation: ""
74
- },
75
- yAxis: {
76
- show: !1
77
- }
78
- },
79
- grid: {
80
- stroke: "#6A6A6A"
81
- }
82
- }
83
- }
84
- },
85
- userConfig: e.value.skeletonConfig ?? {}
86
- })), { loading: Se, FINAL_DATASET: Q, manualLoading: ue } = Qt({
87
- ...Mt(b),
88
- FINAL_CONFIG: e,
89
- prepareConfig: re,
90
- skeletonDataset: b.config?.skeletonDataset ?? [
91
- ["_", 9, 2, 2],
92
- ["_", 8, 3, 3],
93
- ["_", 7, 5, 5],
94
- ["_", 6, 8, 8],
95
- ["_", 5, 13, 13],
96
- ["_", 4, 21, 21],
97
- ["_", 3, 34, 34],
98
- ["_", 2, 55, 55],
99
- ["_", 1, 89, 89],
100
- ["_", 0, 144, 144]
101
- ],
102
- skeletonConfig: Ye({
103
- defaultConfig: e.value,
104
- userConfig: ct.value
105
- })
106
- }), { userOptionsVisible: ne, setUserOptionsVisibility: Ie, keepUserOptionState: Oe } = al({ config: e.value }), { svgRef: z } = ol({
107
- config: e.value.style.title
108
- });
109
- function re() {
110
- const t = me({
111
- userConfig: b.config,
112
- defaultConfig: rt
113
- }), a = t.theme;
114
- if (!a) return t;
115
- if (!vt.value(t))
116
- return dt(t), t;
117
- const l = me({
118
- userConfig: nl[a] || b.config,
119
- defaultConfig: t
120
- });
121
- return me({
122
- userConfig: b.config,
123
- defaultConfig: l
124
- });
125
- }
126
- te(
127
- () => b.config,
128
- (t) => {
129
- Se.value || (e.value = re()), ne.value = !e.value.userOptions.showOnChartHover, Pe(), $e.value += 1, Le.value += 1, A.value.showTable = e.value.table.show, A.value.showTooltip = e.value.style.tooltip.show;
130
- },
131
- { deep: !0 }
132
- ), te(
133
- () => b.dataset,
134
- (t) => {
135
- Array.isArray(t) && t.length > 0 && (ue.value = !1);
136
- },
137
- { deep: !0 }
138
- );
139
- const _ = We(null), B = We(null);
140
- Nt(() => {
141
- Pe();
142
- });
143
- const ft = g(() => !!e.value.debug);
144
- function Pe() {
145
- if (qe(b.dataset) && (Gt({
146
- componentName: "VueUiAgePyramid",
147
- type: "dataset",
148
- debug: ft.value
149
- }), ue.value = !0), qe(b.dataset) || (ue.value = e.value.loading), e.value.responsive) {
150
- const t = Qe(() => {
151
- const { width: a, height: l } = qt({
152
- chart: $.value,
153
- title: e.value.style.title.text ? Ce.value : null,
154
- source: Ae.value,
155
- noTitle: Te.value
156
- });
157
- requestAnimationFrame(() => {
158
- m.value.width = a, m.value.height = l;
159
- });
160
- });
161
- _.value && (B.value && _.value.unobserve(B.value), _.value.disconnect()), _.value = new ResizeObserver(t), B.value = $.value.parentNode, _.value.observe(B.value);
162
- }
163
- }
164
- Ke(() => {
165
- _.value && (B.value && _.value.unobserve(B.value), _.value.disconnect());
166
- });
167
- const { isPrinting: ve, isImaging: de, generatePdf: ze, generateImage: Fe } = el({
168
- elementId: `vue-ui-age-pyramid_${C.value}`,
169
- fileName: e.value.style.title.text || "vue-ui-age-pyramid",
170
- options: e.value.userOptions.print
171
- }), ht = g(() => e.value.userOptions.show && !e.value.style.title.text), A = r({
172
- showTable: e.value.table.show,
173
- showTooltip: e.value.style.tooltip.show
174
- });
175
- te(
176
- e,
177
- () => {
178
- A.value = {
179
- showTable: e.value.table.show,
180
- showTooltip: e.value.style.tooltip.show
181
- };
182
- },
183
- { immediate: !0 }
184
- );
185
- const m = r({
186
- height: e.value.style.height,
187
- width: e.value.style.width
188
- }), gt = g(() => m.value.width), pt = g(() => m.value.height), Z = r(0), bt = Qe((t) => {
189
- Z.value = t;
190
- }, 100);
191
- Et((t) => {
192
- const a = oe.value;
193
- if (!a) return;
194
- const l = new ResizeObserver((o) => {
195
- bt(o[0].contentRect.height);
196
- });
197
- l.observe(a), t(() => l.disconnect());
198
- }), Ke(() => {
199
- Z.value = 0;
200
- });
201
- const s = g(() => {
202
- const t = m.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, a = e.value.style.layout.padding.left, l = m.value.width - e.value.style.layout.padding.right;
203
- return {
204
- top: e.value.style.layout.padding.top + e.value.style.layout.dataLabels.sideTitles.fontSize + e.value.style.layout.dataLabels.sideTitles.offsetY + 12,
205
- left: a,
206
- right: l,
207
- bottom: m.value.height - e.value.style.layout.padding.bottom - Z.value,
208
- width: t,
209
- height: m.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Z.value - e.value.style.layout.dataLabels.sideTitles.fontSize - e.value.style.layout.dataLabels.sideTitles.offsetY - 12,
210
- centerX: e.value.style.layout.padding.left + t / 2,
211
- leftChart: {
212
- width: t / 2 - e.value.style.layout.centerSlit.width,
213
- right: a + t / 2 - e.value.style.layout.centerSlit.width
214
- },
215
- rightChart: {
216
- width: t / 2 - e.value.style.layout.centerSlit.width,
217
- left: a + t / 2 + e.value.style.layout.centerSlit.width
218
- }
219
- };
220
- }), mt = g(() => Q.value.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = g(() => {
221
- const t = xt(K.value / 5), a = [], l = [];
222
- for (let o = 0; o <= 5; o += 1) {
223
- const d = t * o, i = t * (o - 5);
224
- a.push({
225
- value: d,
226
- x: s.value.left + s.value.width / 2 + e.value.style.layout.centerSlit.width + d / K.value * s.value.leftChart.width
227
- }), l.push({
228
- value: Math.abs(i),
229
- x: s.value.left + s.value.width / 2 + i / K.value * s.value.leftChart.width - e.value.style.layout.centerSlit.width
230
- });
231
- }
232
- return {
233
- right: a,
234
- left: l
235
- };
236
- });
237
- function xt(t) {
238
- if (t === 0) return 0;
239
- const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
240
- let o;
241
- return t < 0, o = Math.round(t / l) * l, o;
242
- }
243
- const K = g(() => Math.max(
244
- ...Q.value.flatMap((t) => t.slice(-2).map((a) => k(a)))
245
- )), U = g(() => Q.value.length), wt = g(() => Q.value.map((t) => ({
246
- segment: t[0],
247
- age: t[1],
248
- left: {
249
- value: t[2],
250
- proportionToMax: t[2] / K.value
251
- },
252
- right: {
253
- value: t[3],
254
- proportionToMax: t[3] / K.value
255
- }
256
- }))), h = g(() => wt.value.map((t, a) => {
257
- const l = s.value.top + s.value.height / U.value * a, o = s.value.height / U.value - e.value.style.layout.bars.gap;
258
- return {
259
- segment: t.segment,
260
- age: t.age,
261
- left: {
262
- ...t.left,
263
- y: l,
264
- color: e.value.style.layout.bars.left.color,
265
- x: s.value.leftChart.right - t.left.proportionToMax * s.value.leftChart.width,
266
- width: k(
267
- t.left.proportionToMax * s.value.leftChart.width
268
- ),
269
- height: o
270
- },
271
- right: {
272
- ...t.right,
273
- y: l,
274
- color: e.value.style.layout.bars.right.color,
275
- x: s.value.rightChart.left,
276
- width: k(
277
- t.right.proportionToMax * s.value.rightChart.width
278
- ),
279
- height: o
280
- }
281
- };
282
- })), ee = r(null);
283
- function ye(t) {
284
- const [a, l, o, d] = t;
285
- return { segment: a, index: l, left: o, right: d };
286
- }
287
- function De(t, a) {
288
- e.value.events.datapointClick && e.value.events.datapointClick({
289
- datapoint: ye(a),
290
- seriesIndex: t
291
- });
292
- }
293
- function kt(t, a) {
294
- e.value.events.datapointLeave && e.value.events.datapointLeave({
295
- datapoint: ye(a),
296
- seriesIndex: t
297
- }), !(H.value === "keyboard" && L.value === t) && (P.value = null, V.value = !1);
298
- }
299
- function Ct(t) {
300
- if (!z.value) return;
301
- const a = h.value[t];
302
- if (!a) return;
303
- const l = Yt(
304
- s.value.left + s.value.width / 2,
305
- a.left.y + a.left.height / 2,
306
- z.value
307
- );
308
- l && (_e.value = l);
309
- }
310
- function Re(t, a, l = "pointer") {
311
- e.value.events.datapointEnter && e.value.events.datapointEnter({
312
- datapoint: ye(a),
313
- seriesIndex: t
314
- }), P.value = t, L.value = t, H.value = l, ee.value = {
315
- datapoint: a,
316
- seriesIndex: t,
317
- series: h.value,
318
- config: e.value
319
- };
320
- const o = e.value.style.tooltip.customFormat;
321
- if (Xt(o) && jt(
322
- () => o({
323
- seriesIndex: t,
324
- datapoint: {
325
- segment: a[0],
326
- index: a[1],
327
- left: a[2],
328
- right: a[3]
329
- },
330
- series: h.value,
331
- config: e.value
332
- })
333
- ))
334
- ae.value = o({
335
- seriesIndex: t,
336
- datapoint: {
337
- segment: a[0],
338
- index: a[1],
339
- left: a[2],
340
- right: a[3]
341
- },
342
- series: h.value,
343
- config: e.value
344
- });
345
- else {
346
- let d = "";
347
- const i = h.value[t];
348
- d += `<div><b>${i.segment}</b></div>`, d += `<div>${e.value.translations.age}: ${N(
349
- e.value.style.layout.dataLabels.yAxis.formatter,
350
- k(i.age),
351
- E({ v: k(i.age) }),
352
- { datapoint: a, seriesIndex: t }
353
- )}</div>`, d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, d += '<div style="display:flex; flex-direction:row;gap:12px">', d += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${C.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${N(
354
- e.value.style.layout.dataLabels.xAxis.formatter,
355
- k(i.left.value),
356
- E({ v: k(i.left.value) }),
357
- { datapoint: a, seriesIndex: t }
358
- )}</b></div></div>`, d += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${C.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${N(
359
- e.value.style.layout.dataLabels.xAxis.formatter,
360
- k(i.right.value),
361
- E({ v: k(i.right.value) }),
362
- { datapoint: a, seriesIndex: t }
363
- )}</b></div></div>`, d += "</div>", d += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${N(
364
- e.value.style.layout.dataLabels.xAxis.formatter,
365
- k(i.right.value) + k(i.left.value),
366
- E({
367
- v: k(i.right.value) + k(i.left.value)
368
- }),
369
- { datapoint: a, seriesIndex: t }
370
- )}</b></div></div>`, d += "</div>", ae.value = `<div>${d}</div>`;
371
- }
372
- V.value = !0, l === "keyboard" && pe(() => {
373
- Ct(t);
374
- });
375
- }
376
- function ce(t = null) {
377
- pe(() => {
378
- const a = [
379
- e.value.translations.year,
380
- e.value.translations.age,
381
- e.value.translations.female,
382
- e.value.translations.male,
383
- e.value.translations.total
384
- ], l = b.dataset.map((i) => [i[0], i[1], i[2], i[3], i[2] ?? 0 + i[3] ?? 0]), o = [
385
- [e.value.style.title.text],
386
- [e.value.style.title.subtitle.text],
387
- [[""], [""], [""]]
388
- ].concat([a]).concat(l), d = Wt(o);
389
- t ? t(d) : Kt({
390
- csvContent: d,
391
- title: e.value.style.title.text || "vue-ui-heatmap"
392
- });
393
- });
394
- }
395
- const F = g(() => {
396
- const t = [
397
- e.value.translations.year,
398
- e.value.translations.age,
399
- e.value.translations.female,
400
- e.value.translations.male,
401
- e.value.translations.total
402
- ], a = b.dataset.map((o) => [
403
- o[0],
404
- o[1],
405
- o[2] == null ? "" : o[2].toLocaleString(),
406
- o[3] == null ? "" : o[3].toLocaleString(),
407
- (o[2] ?? 0 + o[3] ?? 0).toLocaleString()
408
- ]), l = {
409
- th: {
410
- backgroundColor: e.value.table.th.backgroundColor,
411
- color: e.value.table.th.color,
412
- outline: e.value.table.th.outline
413
- },
414
- td: {
415
- backgroundColor: e.value.table.td.backgroundColor,
416
- color: e.value.table.td.color,
417
- outline: e.value.table.td.outline
418
- },
419
- breakpoint: e.value.table.responsiveBreakpoint
420
- };
421
- return { head: t, body: a, config: l, colNames: t };
422
- }), D = r(!1);
423
- function Me(t) {
424
- D.value = t, ke.value += 1;
425
- }
426
- function Ne() {
427
- A.value.showTable = !A.value.showTable;
428
- }
429
- function Ee() {
430
- A.value.showTooltip = !A.value.showTooltip;
431
- }
432
- const X = r(!1);
433
- function fe() {
434
- X.value = !X.value;
435
- }
436
- async function At({ scale: t = 2 } = {}) {
437
- if (!$.value) return;
438
- const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: d, base64: i } = await il({
439
- domElement: $.value,
440
- base64: !0,
441
- img: !0,
442
- scale: t
443
- });
444
- return {
445
- imageUri: d,
446
- base64: i,
447
- title: e.value.style.title.text,
448
- width: a,
449
- height: l,
450
- aspectRatio: o
451
- };
452
- }
453
- const Tt = r([]), $t = r({ start: 0, end: h.value.length });
454
- sl({
455
- timeLabelsEls: oe,
456
- timeLabels: Tt,
457
- slicer: $t,
458
- configRef: e,
459
- rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
460
- autoRotatePath: [
461
- "style",
462
- "layout",
463
- "dataLabels",
464
- "xAxis",
465
- "autoRotate",
466
- "enable"
467
- ],
468
- isAutoSize: !1,
469
- width: gt,
470
- height: pt,
471
- targetClass: ".vue-ui-age-pyramid-x-axis-label",
472
- rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
473
- });
474
- const j = g(() => {
475
- const t = e.value.table.useDialog && !e.value.table.show, a = A.value.showTable;
476
- return {
477
- component: t ? nt : at,
478
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
479
- props: t ? {
480
- backgroundColor: e.value.table.th.backgroundColor,
481
- color: e.value.table.th.color,
482
- headerColor: e.value.table.th.color,
483
- headerBg: e.value.table.th.backgroundColor,
484
- isFullscreen: D.value,
485
- fullscreenParent: $.value,
486
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
487
- isCursorPointer: W.value
488
- } : {
489
- hideDetails: !0,
490
- config: {
491
- open: a,
492
- maxHeight: 1e4,
493
- body: {
494
- backgroundColor: e.value.style.backgroundColor,
495
- color: e.value.style.color
496
- },
497
- head: {
498
- backgroundColor: e.value.style.backgroundColor,
499
- color: e.value.style.color
500
- }
501
- }
502
- }
503
- };
504
- });
505
- te(
506
- () => A.value.showTable,
507
- (t) => {
508
- e.value.table.show || (t && e.value.table.useDialog && G.value ? G.value.open() : "close" in G.value && G.value.close());
509
- }
510
- );
511
- function Be() {
512
- A.value.showTable = !1, se.value && se.value.setTableIconState(!1);
513
- }
514
- const Lt = g(() => e.value.style.backgroundColor), _t = g(() => e.value.style.title), { exportSvg: St, getSvg: It } = tl({
515
- svg: z,
516
- title: _t,
517
- backgroundColor: Lt
518
- });
519
- async function Ue({ isCb: t }) {
520
- J.value = !0, await pe();
521
- try {
522
- if (t) {
523
- const { blob: a, url: l, text: o, dataUrl: d } = await It();
524
- await Promise.resolve(
525
- e.value.userOptions.callbacks.svg({
526
- blob: a,
527
- url: l,
528
- text: o,
529
- dataUrl: d
530
- })
531
- );
532
- } else
533
- await Promise.resolve(St());
534
- } finally {
535
- J.value = !1;
536
- }
537
- }
538
- function Ot(t) {
539
- if (t?.stage === "start") {
540
- q.value = !0;
541
- return;
542
- }
543
- if (t?.stage === "end") {
544
- q.value = !1;
545
- return;
546
- }
547
- Fe();
548
- }
549
- async function Ve() {
550
- if (yt("copyAlt", {
551
- config: e.value,
552
- dataset: h.value
553
- }), !e.value.userOptions.callbacks.altCopy) {
554
- console.warn(
555
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
556
- );
557
- return;
558
- }
559
- await Promise.resolve(
560
- e.value.userOptions.callbacks.altCopy({
561
- config: e.value,
562
- dataset: h.value
563
- })
564
- );
565
- }
566
- function Pt() {
567
- ie.value = !0;
568
- }
569
- function zt() {
570
- P.value = null, L.value = null, H.value = "pointer", V.value = !1, ie.value = !1;
571
- }
572
- function Ft(t) {
573
- if (!z.value || X.value || document.activeElement !== z.value || !h.value.length) return;
574
- const a = ["ArrowUp", "ArrowLeft"].includes(t.key), l = ["ArrowDown", "ArrowRight"].includes(t.key), o = t.key === "Enter" || t.key === " ", d = t.key === "Escape";
575
- if (!a && !l && !o && !d) return;
576
- if (t.preventDefault(), t.stopPropagation(), d) {
577
- P.value = null, L.value = null, H.value = "pointer", V.value = !1;
578
- return;
579
- }
580
- if (o) {
581
- if (L.value === null) return;
582
- const He = b.dataset[L.value];
583
- if (!He) return;
584
- De(L.value, He);
585
- return;
586
- }
587
- let i = L.value;
588
- const Y = P.value, Dt = i !== null && i >= 0 && i < h.value.length, Rt = Y !== null && Y >= 0 && Y < h.value.length;
589
- Dt ? a ? i = i - 1 < 0 ? h.value.length - 1 : i - 1 : l && (i = i + 1 > h.value.length - 1 ? 0 : i + 1) : Rt ? (i = l ? Y + 1 : Y - 1, i >= h.value.length && (i = 0), i < 0 && (i = h.value.length - 1)) : l ? i = 0 : i = h.value.length - 1;
590
- const Ge = b.dataset[i];
591
- Ge && Re(i, Ge, "keyboard");
592
- }
593
- return Ze({
594
- getImage: At,
595
- generatePdf: ze,
596
- generateCsv: ce,
597
- generateImage: Fe,
598
- generateSvg: Ue,
599
- toggleTable: Ne,
600
- toggleTooltip: Ee,
601
- toggleAnnotator: fe,
602
- toggleFullscreen: Me,
603
- copyAlt: Ve
604
- }), (t, a) => (u(), v("div", {
605
- class: Xe(`vue-data-ui-component vue-ui-age-pyramid ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
606
- ref_key: "agePyramid",
607
- ref: $,
608
- id: `vue-ui-age-pyramid_${C.value}`,
609
- style: le(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
610
- onMouseenter: a[1] || (a[1] = () => n(Ie)(!0)),
611
- onMouseleave: a[2] || (a[2] = () => n(Ie)(!1))
612
- }, [
613
- f("div", {
614
- id: `chart-instructions-${C.value}`,
615
- class: "sr-only"
616
- }, [
617
- f("p", null, T(e.value.a11y.translations.keyboardNavigation), 1)
618
- ], 8, yl),
619
- F.value?.body?.length ? (u(), R(rl, {
620
- key: 0,
621
- uid: C.value,
622
- head: F.value.head,
623
- body: F.value.body,
624
- notice: e.value.a11y.translations.tableAvailable,
625
- caption: e.value.a11y.translations.tableCaption
626
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
627
- e.value.userOptions.buttons.annotator ? (u(), R(n(st), {
628
- key: 1,
629
- svgRef: n(z),
630
- backgroundColor: e.value.style.backgroundColor,
631
- color: e.value.style.color,
632
- active: X.value,
633
- isCursorPointer: W.value,
634
- onClose: fe
635
- }, {
636
- "annotator-action-close": c(() => [
637
- y(t.$slots, "annotator-action-close", {}, void 0, !0)
638
- ]),
639
- "annotator-action-color": c(({ color: l }) => [
640
- y(t.$slots, "annotator-action-color", x(w({ color: l })), void 0, !0)
641
- ]),
642
- "annotator-action-draw": c(({ mode: l }) => [
643
- y(t.$slots, "annotator-action-draw", x(w({ mode: l })), void 0, !0)
644
- ]),
645
- "annotator-action-undo": c(({ disabled: l }) => [
646
- y(t.$slots, "annotator-action-undo", x(w({ disabled: l })), void 0, !0)
647
- ]),
648
- "annotator-action-redo": c(({ disabled: l }) => [
649
- y(t.$slots, "annotator-action-redo", x(w({ disabled: l })), void 0, !0)
650
- ]),
651
- "annotator-action-delete": c(({ disabled: l }) => [
652
- y(t.$slots, "annotator-action-delete", x(w({ disabled: l })), void 0, !0)
653
- ]),
654
- _: 3
655
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
656
- ht.value ? (u(), v("div", {
657
- key: 2,
658
- ref_key: "noTitle",
659
- ref: Te,
660
- class: "vue-data-ui-no-title-space",
661
- style: "height:36px; width: 100%;background:transparent"
662
- }, null, 512)) : p("", !0),
663
- e.value.style.title.text ? (u(), v("div", {
664
- key: 3,
665
- ref_key: "chartTitle",
666
- ref: Ce,
667
- style: "width:100%;background:transparent"
668
- }, [
669
- (u(), R(ul, {
670
- key: `title_${$e.value}`,
671
- config: {
672
- title: {
673
- cy: "pyramid-div-title",
674
- ...e.value.style.title
675
- },
676
- subtitle: {
677
- cy: "pyramid-div-subtitle",
678
- ...e.value.style.title.subtitle
679
- }
680
- }
681
- }, null, 8, ["config"]))
682
- ], 512)) : p("", !0),
683
- e.value.userOptions.show && we.value && (n(Oe) || n(ne)) ? (u(), R(n(it), {
684
- ref_key: "userOptionsRef",
685
- ref: se,
686
- key: `user_options_${ke.value}`,
687
- backgroundColor: e.value.style.backgroundColor,
688
- color: e.value.style.color,
689
- isImaging: n(de),
690
- isPrinting: n(ve),
691
- uid: C.value,
692
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
693
- hasPdf: e.value.userOptions.buttons.pdf,
694
- hasXls: e.value.userOptions.buttons.csv,
695
- hasImg: e.value.userOptions.buttons.img,
696
- hasSvg: e.value.userOptions.buttons.svg,
697
- hasTable: e.value.userOptions.buttons.table,
698
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
699
- hasAltCopy: e.value.userOptions.buttons.altCopy,
700
- isFullscreen: D.value,
701
- isTooltip: A.value.showTooltip,
702
- titles: { ...e.value.userOptions.buttonTitles },
703
- chartElement: $.value,
704
- position: e.value.userOptions.position,
705
- hasAnnotator: e.value.userOptions.buttons.annotator,
706
- isAnnotation: X.value,
707
- callbacks: e.value.userOptions.callbacks,
708
- printScale: e.value.userOptions.print.scale,
709
- tableDialog: e.value.table.useDialog,
710
- isCursorPointer: W.value,
711
- onToggleFullscreen: Me,
712
- onGeneratePdf: n(ze),
713
- onGenerateCsv: ce,
714
- onGenerateImage: Ot,
715
- onGenerateSvg: Ue,
716
- onToggleTable: Ne,
717
- onToggleTooltip: Ee,
718
- onToggleAnnotator: fe,
719
- onCopyAlt: Ve,
720
- style: le({
721
- visibility: n(Oe) ? n(ne) ? "visible" : "hidden" : "visible"
722
- })
723
- }, je({ _: 2 }, [
724
- t.$slots.menuIcon ? {
725
- name: "menuIcon",
726
- fn: c(({ isOpen: l, color: o }) => [
727
- y(t.$slots, "menuIcon", x(w({ isOpen: l, color: o })), void 0, !0)
728
- ]),
729
- key: "0"
730
- } : void 0,
731
- t.$slots.optionTooltip ? {
732
- name: "optionTooltip",
733
- fn: c(() => [
734
- y(t.$slots, "optionTooltip", {}, void 0, !0)
735
- ]),
736
- key: "1"
737
- } : void 0,
738
- t.$slots.optionPdf ? {
739
- name: "optionPdf",
740
- fn: c(() => [
741
- y(t.$slots, "optionPdf", {}, void 0, !0)
742
- ]),
743
- key: "2"
744
- } : void 0,
745
- t.$slots.optionCsv ? {
746
- name: "optionCsv",
747
- fn: c(() => [
748
- y(t.$slots, "optionCsv", {}, void 0, !0)
749
- ]),
750
- key: "3"
751
- } : void 0,
752
- t.$slots.optionImg ? {
753
- name: "optionImg",
754
- fn: c(() => [
755
- y(t.$slots, "optionImg", {}, void 0, !0)
756
- ]),
757
- key: "4"
758
- } : void 0,
759
- t.$slots.optionSvg ? {
760
- name: "optionSvg",
761
- fn: c(() => [
762
- y(t.$slots, "optionSvg", {}, void 0, !0)
763
- ]),
764
- key: "5"
765
- } : void 0,
766
- t.$slots.optionTable ? {
767
- name: "optionTable",
768
- fn: c(() => [
769
- y(t.$slots, "optionTable", {}, void 0, !0)
770
- ]),
771
- key: "6"
772
- } : void 0,
773
- t.$slots.optionFullscreen ? {
774
- name: "optionFullscreen",
775
- fn: c(({ toggleFullscreen: l, isFullscreen: o }) => [
776
- y(t.$slots, "optionFullscreen", x(w({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
777
- ]),
778
- key: "7"
779
- } : void 0,
780
- t.$slots.optionAnnotator ? {
781
- name: "optionAnnotator",
782
- fn: c(({ toggleAnnotator: l, isAnnotator: o }) => [
783
- y(t.$slots, "optionAnnotator", x(w({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
784
- ]),
785
- key: "8"
786
- } : void 0,
787
- t.$slots.optionAltCopy ? {
788
- name: "optionAltCopy",
789
- fn: c(({ altCopy: l }) => [
790
- y(t.$slots, "optionAltCopy", x(w({ altCopy: l })), void 0, !0)
791
- ]),
792
- key: "9"
793
- } : void 0
794
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
795
- f("div", cl, [
796
- (u(), v("svg", {
797
- ref_key: "svgRef",
798
- ref: z,
799
- xmlns: n(Ht),
800
- class: Xe({
801
- "vue-data-ui-fullscreen--on": D.value,
802
- "vue-data-ui-fulscreen--off": !D.value
803
- }),
804
- viewBox: `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`,
805
- style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
806
- tabindex: "0",
807
- "aria-describedby": `chart-instructions-${C.value}`,
808
- onFocus: Pt,
809
- onBlur: zt,
810
- onKeydown: Ft
811
- }, [
812
- he(n(ut)),
813
- t.$slots["chart-background"] ? (u(), v("foreignObject", {
814
- key: 0,
815
- x: s.value.left,
816
- y: s.value.top,
817
- width: Math.max(0.1, s.value.width),
818
- height: Math.max(0.1, s.value.height),
819
- style: {
820
- pointerEvents: "none"
821
- }
822
- }, [
823
- y(t.$slots, "chart-background", {}, void 0, !0)
824
- ], 8, hl)) : p("", !0),
825
- f("defs", null, [
826
- f("linearGradient", {
827
- id: `age_pyramid_left_${C.value}`,
828
- x1: "0%",
829
- y1: "0%",
830
- x2: "100%",
831
- y2: "0%"
832
- }, [
833
- f("stop", {
834
- offset: "0%",
835
- "stop-color": e.value.style.layout.bars.left.color
836
- }, null, 8, pl),
837
- f("stop", {
838
- offset: "100%",
839
- "stop-color": n(be)(
840
- n(Je)(
841
- e.value.style.layout.bars.left.color,
842
- e.value.style.layout.bars.gradient.shiftHue
843
- ),
844
- 100 - e.value.style.layout.bars.gradient.intensity
845
- )
846
- }, null, 8, bl)
847
- ], 8, gl),
848
- f("linearGradient", {
849
- id: `age_pyramid_right_${C.value}`,
850
- x1: "0%",
851
- y1: "0%",
852
- x2: "100%",
853
- y2: "0%"
854
- }, [
855
- f("stop", {
856
- offset: "0%",
857
- "stop-color": n(be)(
858
- n(Je)(
859
- e.value.style.layout.bars.right.color,
860
- e.value.style.layout.bars.gradient.shiftHue
861
- ),
862
- 100 - e.value.style.layout.bars.gradient.intensity
863
- )
864
- }, null, 8, xl),
865
- f("stop", {
866
- offset: "100%",
867
- "stop-color": e.value.style.layout.bars.right.color
868
- }, null, 8, wl)
869
- ], 8, ml)
870
- ]),
871
- (u(!0), v(O, null, M(h.value, (l, o) => (u(), v("g", null, [
872
- f("rect", {
873
- x: l.left.x,
874
- y: l.left.y,
875
- width: n(k)(
876
- l.left.width <= 0 ? 1e-4 : l.left.width
877
- ),
878
- height: l.left.height <= 0 ? 1e-4 : l.left.height,
879
- fill: e.value.style.layout.bars.gradient.underlayer,
880
- rx: e.value.style.layout.bars.borderRadius
881
- }, null, 8, kl),
882
- f("rect", {
883
- x: l.left.x,
884
- y: l.left.y,
885
- width: l.left.width <= 0 ? 1e-4 : l.left.width,
886
- height: l.left.height <= 0 ? 1e-4 : l.left.height,
887
- fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${C.value})` : l.left.color,
888
- rx: e.value.style.layout.bars.borderRadius
889
- }, null, 8, Cl),
890
- f("rect", {
891
- x: l.right.x,
892
- y: l.right.y,
893
- width: l.right.width <= 0 ? 1e-4 : l.right.width,
894
- height: l.right.height <= 0 ? 1e-4 : l.right.height,
895
- fill: e.value.style.layout.bars.gradient.underlayer,
896
- rx: e.value.style.layout.bars.borderRadius
897
- }, null, 8, Al),
898
- f("rect", {
899
- x: l.right.x,
900
- y: l.right.y,
901
- width: l.right.width <= 0 ? 1e-4 : l.right.width,
902
- height: l.right.height <= 0 ? 1e-4 : l.right.height,
903
- fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${C.value})` : l.right.color,
904
- rx: e.value.style.layout.bars.borderRadius
905
- }, null, 8, Tl)
906
- ]))), 256)),
907
- f("g", null, [
908
- e.value.style.layout.dataLabels.sideTitles.show ? (u(), v("g", $l, [
909
- f("text", {
910
- x: s.value.left,
911
- y: e.value.style.layout.dataLabels.sideTitles.fontSize,
912
- fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
913
- "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
914
- "text-anchor": "start",
915
- "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
916
- }, T(e.value.translations.female), 9, Ll),
917
- f("text", {
918
- x: s.value.right,
919
- y: e.value.style.layout.dataLabels.sideTitles.fontSize,
920
- fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
921
- "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
922
- "text-anchor": "end",
923
- "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
924
- }, T(e.value.translations.male), 9, _l)
925
- ])) : p("", !0),
926
- e.value.style.layout.dataLabels.yAxis.show ? (u(), v("g", Sl, [
927
- (u(!0), v(O, null, M(mt.value, (l, o) => (u(), v(O, null, [
928
- o % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), v("text", {
929
- key: 0,
930
- x: s.value.centerX,
931
- y: s.value.top + s.value.height / U.value * o + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
932
- "text-anchor": "middle",
933
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
934
- fill: e.value.style.layout.dataLabels.yAxis.color,
935
- "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
936
- }, T(n(N)(
937
- e.value.style.layout.dataLabels.yAxis.formatter,
938
- l,
939
- n(E)({ v: l }),
940
- { datapoint: l, seriesIndex: o }
941
- )), 9, Il)) : p("", !0)
942
- ], 64))), 256))
943
- ])) : p("", !0),
944
- e.value.style.layout.dataLabels.xAxis.show ? (u(), v("g", Ol, [
945
- e.value.style.layout.grid.show ? (u(), v("g", Pl, [
946
- f("line", {
947
- x1: S.value.right[0].x,
948
- x2: S.value.right.at(-1).x,
949
- y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
950
- y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
951
- stroke: e.value.style.layout.grid.stroke,
952
- "stroke-width": e.value.style.layout.grid.strokeWidth,
953
- "stroke-linecap": "round"
954
- }, null, 8, zl),
955
- f("line", {
956
- x1: S.value.left[0].x,
957
- x2: S.value.left.at(-1).x,
958
- y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
959
- y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
960
- stroke: e.value.style.layout.grid.stroke,
961
- "stroke-width": e.value.style.layout.grid.strokeWidth,
962
- "stroke-linecap": "round"
963
- }, null, 8, Fl)
964
- ])) : p("", !0),
965
- (u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("g", null, [
966
- e.value.style.layout.grid.show ? (u(), v("line", {
967
- key: 0,
968
- x1: l.x,
969
- x2: l.x,
970
- y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
971
- y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
972
- stroke: e.value.style.layout.grid.stroke,
973
- "stroke-width": e.value.style.layout.grid.strokeWidth,
974
- "stroke-linecap": "round"
975
- }, null, 8, Dl)) : p("", !0)
976
- ]))), 256)),
977
- (u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("g", null, [
978
- e.value.style.layout.grid.show ? (u(), v("line", {
979
- key: 0,
980
- x1: l.x,
981
- x2: l.x,
982
- y1: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
983
- y2: s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
984
- stroke: e.value.style.layout.grid.stroke,
985
- "stroke-width": e.value.style.layout.grid.strokeWidth,
986
- "stroke-linecap": "round"
987
- }, null, 8, Rl)) : p("", !0)
988
- ]))), 256)),
989
- f("g", {
990
- ref_key: "xAxisLabels",
991
- ref: oe
992
- }, [
993
- (u(!0), v(O, null, M(S.value.right, (l, o) => (u(), v("text", {
994
- class: "vue-ui-age-pyramid-x-axis-label",
995
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
996
- fill: e.value.style.layout.dataLabels.xAxis.color,
997
- "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
998
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
999
- transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
1000
- }, T(n(N)(
1001
- e.value.style.layout.dataLabels.xAxis.formatter,
1002
- l.value / e.value.style.layout.dataLabels.xAxis.scale,
1003
- n(E)({
1004
- v: l.value / e.value.style.layout.dataLabels.xAxis.scale
1005
- }),
1006
- {
1007
- datapoint: l,
1008
- seriesIndex: o
1009
- }
1010
- )), 9, Ml))), 256)),
1011
- (u(!0), v(O, null, M(S.value.left, (l, o) => (u(), v("text", {
1012
- class: "vue-ui-age-pyramid-x-axis-label",
1013
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1014
- fill: e.value.style.layout.dataLabels.xAxis.color,
1015
- "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1016
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1017
- transform: `translate(${l.x}, ${s.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
1018
- }, T(n(N)(
1019
- e.value.style.layout.dataLabels.xAxis.formatter,
1020
- l.value / e.value.style.layout.dataLabels.xAxis.scale,
1021
- n(E)({
1022
- v: l.value / e.value.style.layout.dataLabels.xAxis.scale
1023
- }),
1024
- {
1025
- datapoint: l,
1026
- seriesIndex: o
1027
- }
1028
- )), 9, Nl))), 256))
1029
- ], 512),
1030
- f("text", {
1031
- x: s.value.right,
1032
- y: m.value.height,
1033
- "text-anchor": "end",
1034
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1035
- fill: e.value.style.layout.dataLabels.xAxis.color,
1036
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
1037
- }, T(e.value.style.layout.dataLabels.xAxis.translation), 9, El)
1038
- ])) : p("", !0)
1039
- ]),
1040
- (u(!0), v(O, null, M(xe.dataset, (l, o) => (u(), v("g", null, [
1041
- f("rect", {
1042
- x: s.value.left,
1043
- y: s.value.top + s.value.height / U.value * o - e.value.style.layout.bars.gap / 2,
1044
- width: s.value.width <= 0 ? 1e-4 : s.value.width,
1045
- height: s.value.height / U.value <= 0 ? 1e-4 : s.value.height / U.value,
1046
- fill: P.value !== null && P.value === o ? n(be)(
1047
- e.value.style.highlighter.color,
1048
- e.value.style.highlighter.opacity
1049
- ) : "transparent",
1050
- onMouseover: (d) => Re(o, l, "pointer"),
1051
- onMouseleave: (d) => kt(o, l),
1052
- onClick: (d) => De(o, l)
1053
- }, null, 40, Bl)
1054
- ]))), 256)),
1055
- y(t.$slots, "svg", {
1056
- svg: {
1057
- ...m.value,
1058
- isPrintingImg: n(ve) | n(de) | q.value,
1059
- isPrintingSvg: J.value
1060
- }
1061
- }, void 0, !0)
1062
- ], 46, fl)),
1063
- t.$slots.hint ? (u(), v("div", Ul, [
1064
- y(t.$slots, "hint", x(w({
1065
- hint: e.value.a11y.translations.keyboardNavigation,
1066
- isVisible: ie.value
1067
- })), void 0, !0)
1068
- ])) : p("", !0)
1069
- ]),
1070
- t.$slots.watermark ? (u(), v("div", Vl, [
1071
- y(t.$slots, "watermark", x(w({
1072
- isPrinting: n(ve) || n(de) || q.value || J.value
1073
- })), void 0, !0)
1074
- ])) : p("", !0),
1075
- y(t.$slots, "legend", { legend: h.value }, void 0, !0),
1076
- t.$slots.source ? (u(), v("div", {
1077
- key: 6,
1078
- ref_key: "source",
1079
- ref: Ae,
1080
- dir: "auto"
1081
- }, [
1082
- y(t.$slots, "source", {}, void 0, !0)
1083
- ], 512)) : p("", !0),
1084
- he(n(tt), {
1085
- teleportTo: e.value.style.tooltip.teleportTo,
1086
- show: A.value.showTooltip && V.value,
1087
- backgroundColor: e.value.style.tooltip.backgroundColor,
1088
- color: e.value.style.tooltip.color,
1089
- borderRadius: e.value.style.tooltip.borderRadius,
1090
- borderColor: e.value.style.tooltip.borderColor,
1091
- borderWidth: e.value.style.tooltip.borderWidth,
1092
- fontSize: e.value.style.tooltip.fontSize,
1093
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1094
- position: e.value.style.tooltip.position,
1095
- offsetY: e.value.style.tooltip.offsetY,
1096
- parent: $.value,
1097
- content: ae.value,
1098
- isFullscreen: D.value,
1099
- isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1100
- smooth: e.value.style.tooltip.smooth,
1101
- backdropFilter: e.value.style.tooltip.backdropFilter,
1102
- smoothForce: e.value.style.tooltip.smoothForce,
1103
- smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
1104
- isA11yMode: H.value === "keyboard",
1105
- a11yPosition: _e.value
1106
- }, {
1107
- "tooltip-before": c(() => [
1108
- y(t.$slots, "tooltip-before", x(w({ ...ee.value })), void 0, !0)
1109
- ]),
1110
- tooltip: c(() => [
1111
- y(t.$slots, "tooltip", x(w({ ...ee.value })), void 0, !0)
1112
- ]),
1113
- "tooltip-after": c(() => [
1114
- y(t.$slots, "tooltip-after", x(w({ ...ee.value })), void 0, !0)
1115
- ]),
1116
- _: 3
1117
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1118
- we.value && e.value.userOptions.buttons.table ? (u(), R(Bt(j.value.component), Ut({ key: 7 }, j.value.props, {
1119
- ref_key: "tableUnit",
1120
- ref: G,
1121
- onClose: Be
1122
- }), je({
1123
- content: c(() => [
1124
- (u(), R(n(ot), {
1125
- key: `table_${Le.value}`,
1126
- colNames: F.value.colNames,
1127
- head: F.value.head,
1128
- body: F.value.body,
1129
- config: F.value.config,
1130
- title: e.value.table.useDialog ? "" : j.value.title,
1131
- withCloseButton: !e.value.table.useDialog,
1132
- isCursorPointer: W.value,
1133
- onClose: Be
1134
- }, {
1135
- th: c(({ th: l }) => [
1136
- ge(T(l), 1)
1137
- ]),
1138
- td: c(({ td: l }) => [
1139
- ge(T(l), 1)
1140
- ]),
1141
- _: 1
1142
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1143
- ]),
1144
- _: 2
1145
- }, [
1146
- e.value.table.useDialog ? {
1147
- name: "title",
1148
- fn: c(() => [
1149
- ge(T(j.value.title), 1)
1150
- ]),
1151
- key: "0"
1152
- } : void 0,
1153
- e.value.table.useDialog ? {
1154
- name: "actions",
1155
- fn: c(() => [
1156
- f("button", {
1157
- tabindex: "0",
1158
- class: "vue-ui-user-options-button",
1159
- onClick: a[0] || (a[0] = (l) => ce(e.value.userOptions.callbacks.csv)),
1160
- style: le({ cursor: W.value ? "pointer" : "default" })
1161
- }, [
1162
- he(n(lt), {
1163
- name: "fileCsv",
1164
- stroke: j.value.props.color
1165
- }, null, 8, ["stroke"])
1166
- ], 4)
1167
- ]),
1168
- key: "1"
1169
- } : void 0
1170
- ]), 1040)) : p("", !0),
1171
- y(t.$slots, "skeleton", {}, () => [
1172
- n(Se) ? (u(), R(Zt, { key: 0 })) : p("", !0)
1173
- ], !0)
1174
- ], 46, dl));
1175
- }
1176
- }, ua = /* @__PURE__ */ vl(Gl, [["__scopeId", "data-v-ffd1351e"]]);
1177
- export {
1178
- ua as default
1179
- };