vue-data-ui 3.17.13 → 3.18.0

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