vue-data-ui 3.17.13 → 3.18.0

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