vue-data-ui 3.15.12 → 3.16.1

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