vue-data-ui 3.27.0 → 3.27.1-beta.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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-CJeSufxg.js +1 -0
  3. package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
  4. package/dist/BaseIcon-Cz30ODFA.js +1 -0
  5. package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
  8. package/dist/ColorPicker-CUjEw53A.js +1 -0
  9. package/dist/DataTable-DSUA5M9p.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-DdvXld3a.js +1 -0
  12. package/dist/Legend-DokTll4u.js +1 -0
  13. package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
  14. package/dist/PackageVersion-D6pKL176.js +1 -0
  15. package/dist/PenAndPaper-DvJJaeU2.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-tkp65OcG.js +1 -0
  20. package/dist/SlicerPreview-GFRs2EWB.js +1 -0
  21. package/dist/SparkTooltip-BlJLvizH.js +1 -0
  22. package/dist/Title-BRAjxtjG.js +1 -0
  23. package/dist/Tooltip-BUXB0i6z.js +1 -0
  24. package/dist/UserOptions-D65t74CM.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-NwZO-elv.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
  103. package/dist/exposedLib-CMTeSmyW.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-8sM3sVWU.js +1 -0
  106. package/dist/labelUtils-Djp5nJtN.js +1 -0
  107. package/dist/lib-zDxoqrgo.js +12 -0
  108. package/dist/package-DIR2F6AE.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-Dlv_ks7R.js +1 -0
  111. package/dist/render-common-DOYi0f4Z.js +1 -0
  112. package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CT9phgWx.js +1 -0
  203. package/dist/useObjectBindings-DM3xDKV3.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-CnyKPIFM.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-BG41UScx.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
  222. package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
  223. package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
  224. package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
  225. package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
  226. package/dist/vue-ui-bump-DYajIrva.js +10 -0
  227. package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
  228. package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
  229. package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
  230. package/dist/vue-ui-chord-fAckHfOW.js +21 -0
  231. package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
  232. package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
  233. package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
  234. package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
  235. package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
  236. package/dist/vue-ui-donut-BaEodt-3.js +22 -0
  237. package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
  238. package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
  239. package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
  240. package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
  241. package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
  242. package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
  243. package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
  244. package/dist/vue-ui-geo-CX3yH18H.js +1 -0
  245. package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
  246. package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
  247. package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
  248. package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
  250. package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
  251. package/dist/vue-ui-label-D1Aog-zO.js +7 -0
  252. package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
  253. package/dist/vue-ui-molecule-B13qVX71.js +1 -0
  254. package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
  255. package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
  256. package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
  261. package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
  262. package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
  263. package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
  264. package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
  265. package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
  266. package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
  267. package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
  268. package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
  269. package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
  270. package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
  271. package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
  272. package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
  274. package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
  276. package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
  277. package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
  278. package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
  279. package/dist/vue-ui-table-Br2JgD_L.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
  281. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
  282. package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
  283. package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
  284. package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
  285. package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
  286. package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
  287. package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
  288. package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
  289. package/dist/vue-ui-world-Cp0DeauH.js +19 -0
  290. package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
  291. package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
  292. package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1633 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Dt as r, Ht as i, Jt as a, S as o, X as s, Yt as ee, at as c, en as te, et as ne, i as re, n as ie, nn as ae, nt as oe, pt as se, r as ce, t as le, w as ue, yt as de, zt as fe } from "./lib-D4wK6ljP.js";
3
- import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
4
- import { t as he } from "./useConfig-D_6ZrPMD.js";
5
- import { t as ge } from "./usePrinter-DdW2GSm0.js";
6
- import { n as _e, t as ve } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as ye } from "./useNestedProp-DR_8JPol.js";
8
- import { t as be } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as xe } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Se } from "./useTransitions-g_zBREk2.js";
11
- import { t as Ce } from "./img-Bb5rHcpO.js";
12
- import { n as we } from "./Title-BMCuINbv.js";
13
- import { t as Te } from "./Shape-DSwamtmO.js";
14
- import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
16
- import { t as ke } from "./DefGrad-DVBqDjhO.js";
17
- import { t as Ae } from "./BaseLegendToggle-CP3sddwv.js";
18
- import { t as je } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Pe } from "./labelUtils-Ccn9kK7T.js";
22
- import { t as Fe } from "./Legend-CulFgjUY.js";
23
- import { t as Ie } from "./usePrefersMotion-BC-CsqR1.js";
24
- import { t as Le } from "./vue_ui_waffle-DE_DiSVP.js";
25
- import { Fragment as l, Teleport as Re, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as He, nextTick as Ue, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as We, onMounted as Ge, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as Je, toRefs as Ye, unref as w, useSlots as Xe, watch as Ze, withCtx as T } from "vue";
26
- //#region src/components/vue-ui-waffle.vue
27
- var Qe = /* @__PURE__ */ e({ default: () => Et }), $e = ["id"], et = ["id"], tt = ["id"], nt = { style: { position: "relative" } }, rt = [
28
- "xmlns",
29
- "aria-describedby",
30
- "viewBox"
31
- ], it = ["id"], at = [
32
- "x",
33
- "y",
34
- "height",
35
- "width"
36
- ], ot = ["height", "width"], st = { key: 0 }, ct = [
37
- "d",
38
- "stroke",
39
- "stroke-width",
40
- "filter"
41
- ], lt = [
42
- "d",
43
- "fill",
44
- "stroke",
45
- "stroke-width",
46
- "filter"
47
- ], ut = { key: 0 }, dt = [
48
- "d",
49
- "fill",
50
- "filter"
51
- ], ft = [
52
- "rx",
53
- "x",
54
- "y",
55
- "height",
56
- "width",
57
- "stroke",
58
- "stroke-width",
59
- "filter"
60
- ], pt = [
61
- "rx",
62
- "x",
63
- "y",
64
- "height",
65
- "width",
66
- "fill",
67
- "stroke",
68
- "stroke-width",
69
- "filter"
70
- ], mt = { key: 0 }, ht = [
71
- "rx",
72
- "x",
73
- "y",
74
- "height",
75
- "width",
76
- "fill",
77
- "filter"
78
- ], gt = [
79
- "points",
80
- "stroke",
81
- "stroke-width",
82
- "stroke-linejoin"
83
- ], _t = [
84
- "textContent",
85
- "x",
86
- "y",
87
- "font-size",
88
- "fill",
89
- "filter"
90
- ], vt = [
91
- "d",
92
- "onMouseover",
93
- "onMouseleave",
94
- "onClick"
95
- ], yt = [
96
- "x",
97
- "y",
98
- "height",
99
- "width",
100
- "onMouseover",
101
- "onMouseleave",
102
- "onClick"
103
- ], bt = {
104
- key: 0,
105
- style: {
106
- position: "absolute",
107
- top: "100%",
108
- left: "0",
109
- width: "100%"
110
- },
111
- "data-dom-to-png-ignore": "",
112
- "aria-hidden": "true"
113
- }, xt = {
114
- key: 5,
115
- class: "vue-data-ui-watermark"
116
- }, St = ["id"], Ct = ["onClick"], wt = { key: 0 }, Tt = { key: 1 }, Et = /*#__PURE__*/ Ee({
117
- __name: "vue-ui-waffle",
118
- props: {
119
- config: {
120
- type: Object,
121
- default() {
122
- return {};
123
- }
124
- },
125
- dataset: {
126
- type: Array,
127
- default() {
128
- return [];
129
- }
130
- }
131
- },
132
- emits: ["selectLegend", "copyAlt"],
133
- setup(e, { expose: Ee, emit: Qe }) {
134
- let Et = h(() => import("./Tooltip-C4ZTwkLF.js")), Dt = h(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Ot = h(() => import("./DataTable-CjF_An2h.js")), kt = h(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), At = h(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), jt = h(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Mt = h(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Nt = h(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_waffle: Pt } = he(), { isThemeValid: Ft, warnInvalidTheme: It } = be(), Lt = Ie(), E = e, Rt = Xe(), zt = u({
135
- get() {
136
- return !!E.dataset && E.dataset.length;
137
- },
138
- set(e) {
139
- return e;
140
- }
141
- }), D = x(s()), Bt = x(!1), Vt = x(""), O = x(null), Ht = x(0), k = x(null), Ut = x(null), Wt = x(null), Gt = x(null), Kt = x(null), qt = x(0), Jt = x(0), Yt = x(0), Xt = x(!1), Zt = x(null), Qt = x(null), A = x(null), $t = x({
142
- x: 0,
143
- y: 0
144
- }), en = x("pointer"), tn = x(!1), j = x(pn()), M = u(() => j.value.userOptions), N = u(() => j.value.style.chart.tooltip), P = u(() => j.value.style.chart.legend), F = u(() => j.value.style.chart.layout.rect), I = u(() => j.value.style.chart.layout.grid), L = u(() => j.value.style.chart.layout), R = u(() => j.value.style.chart), { transitionEnabled: nn } = Se({
145
- config: () => j.value.transitions,
146
- dataset: () => E.dataset
147
- });
148
- pe({
149
- config: () => j.value,
150
- dataset: () => E.dataset,
151
- component: "VueUiWaffle",
152
- rules: [
153
- me.singleSeries,
154
- me.emptyArray,
155
- {
156
- test: (e) => e.length > 6,
157
- message: [
158
- "👀 The number of series is > 6. Consider:",
159
- "",
160
- "▶️ Grouping small values dynamically into a single \"Other\" series.",
161
- "",
162
- "▶️ Using filters to let users choose a maximum number of series to display.",
163
- "",
164
- "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
165
- ]
166
- }
167
- ]
168
- });
169
- let rn = u(() => j.value.userOptions.useCursorPointer), an = u(() => ae({
170
- defaultConfig: {
171
- useCustomCells: !1,
172
- userOptions: { show: !1 },
173
- table: { show: !1 },
174
- style: { chart: {
175
- backgroundColor: "#99999930",
176
- layout: {
177
- labels: { captions: { show: !1 } },
178
- rect: { stroke: "#999999" }
179
- },
180
- legend: {
181
- backgroundColor: "transparent",
182
- showValue: !1,
183
- showPercentage: !1
184
- }
185
- } }
186
- },
187
- userConfig: j.value.skeletonConfig ?? {}
188
- })), { loading: on, FINAL_DATASET: sn, manualLoading: cn } = _e({
189
- ...Ye(E),
190
- FINAL_CONFIG: j,
191
- prepareConfig: pn,
192
- callback: () => {
193
- Promise.resolve().then(async () => {
194
- G.value = kn();
195
- });
196
- },
197
- skeletonDataset: E.config?.skeletonDataset ?? [
198
- {
199
- name: "",
200
- values: [1],
201
- color: "#AAAAAA"
202
- },
203
- {
204
- name: "",
205
- values: [1],
206
- color: "#BABABA"
207
- },
208
- {
209
- name: "",
210
- values: [1],
211
- color: "#CACACA"
212
- }
213
- ],
214
- skeletonConfig: ae({
215
- defaultConfig: j.value,
216
- userConfig: an.value
217
- })
218
- }), { userOptionsVisible: ln, setUserOptionsVisibility: un, keepUserOptionState: dn } = Me({ config: j.value }), { svgRef: fn } = Ne({ config: R.value.title });
219
- function pn() {
220
- let e = ye({
221
- userConfig: E.config,
222
- defaultConfig: Pt
223
- }), t = e.theme;
224
- if (!t) return e;
225
- if (!Ft.value(e)) return It(e), e;
226
- let n = ye({
227
- userConfig: Le[t] || E.config,
228
- defaultConfig: e
229
- }), r = ye({
230
- userConfig: E.config,
231
- defaultConfig: n
232
- });
233
- return {
234
- ...r,
235
- customPalette: r.customPalette.length ? r.customPalette : te[t] || i
236
- };
237
- }
238
- function mn(e) {
239
- let t = ne(e);
240
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
241
- }
242
- let hn = mn(E.config);
243
- Ze(() => E.config, (e, t) => {
244
- let n = mn(e), r = n !== hn;
245
- hn = n;
246
- let i = pn();
247
- if (!r) {
248
- j.value.style.chart.tooltip = i.style.chart.tooltip, B.value.showTooltip = j.value.style.chart.tooltip.show;
249
- return;
250
- }
251
- on.value || (j.value = i), ln.value = !j.value.userOptions.showOnChartHover, vn(), qt.value += 1, Jt.value += 1, Yt.value += 1, B.value.showTable = j.value.table.show, B.value.showTooltip = N.value.show;
252
- }, { deep: !0 });
253
- let z = qe(null), gn = qe(null), _n = u(() => j.value.debug);
254
- function vn() {
255
- if (fe(E.dataset) ? (c({
256
- componentName: "VueUiWaffle",
257
- type: "dataset",
258
- debug: _n.value
259
- }), zt.value = !1, cn.value = !0) : _n.value && E.dataset.forEach((e, t) => {
260
- de({
261
- datasetObject: e,
262
- requiredAttributes: ["name", "values"]
263
- }).forEach((e) => {
264
- c({
265
- componentName: "VueUiWaffle",
266
- type: "datasetSerieAttribute",
267
- property: e,
268
- index: t
269
- });
270
- });
271
- }), fe(E.dataset) || (cn.value = j.value.loading), j.value.responsive) {
272
- let e = De(() => {
273
- let { width: e, height: t } = Oe({
274
- chart: k.value,
275
- title: R.value.title.text ? Ut.value : null,
276
- legend: P.value.show ? Wt.value : null,
277
- source: Gt.value,
278
- noTitle: Kt.value
279
- });
280
- requestAnimationFrame(() => {
281
- V.value.width = e, V.value.height = t, H.value.width = e, H.value.height = t;
282
- });
283
- });
284
- z.value && (gn.value && z.value.unobserve(gn.value), z.value.disconnect()), z.value = new ResizeObserver(e), gn.value = k.value.parentNode, z.value.observe(gn.value);
285
- }
286
- }
287
- Ge(() => {
288
- Xt.value = !0, vn();
289
- }), We(() => {
290
- z.value && (gn.value && z.value.unobserve(gn.value), z.value.disconnect());
291
- });
292
- let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = ge({
293
- elementId: `vue-ui-waffle_${D.value}`,
294
- fileName: R.value.title.text || "vue-ui-waffle",
295
- options: j.value.userOptions.print
296
- }), Cn = u(() => j.value.userOptions.show && !R.value.title.text), wn = u(() => ue(j.value.customPalette)), B = x({
297
- showTable: j.value.table.show,
298
- showTooltip: N.value.show
299
- });
300
- Ze(j, () => {
301
- B.value = {
302
- showTable: j.value.table.show,
303
- showTooltip: N.value.show
304
- };
305
- }, { immediate: !0 });
306
- let V = x({
307
- height: 512,
308
- width: 512
309
- }), H = x({
310
- top: 0,
311
- left: 0,
312
- height: 512,
313
- width: 512
314
- }), U = u(() => (H.value.width - I.value.size * I.value.spaceBetween) / I.value.size), W = u(() => (H.value.height - I.value.size * I.value.spaceBetween) / I.value.size), Tn = u(() => Math.max(1e-4, H.value.width / I.value.size)), En = u(() => Math.max(1e-4, H.value.height / I.value.size));
315
- function Dn(e) {
316
- let t = I.value.size * I.value.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);
317
- for (; o > 0;) {
318
- let e = a.indexOf(Math.max(...a));
319
- i[e] += 1, a[e] = 0, --o;
320
- }
321
- return i;
322
- }
323
- let On = x(!1);
324
- function kn() {
325
- return On.value = sn.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, sn.value.map((e, t) => ({
326
- ...e,
327
- color: o(e.color) || wn.value[t] || i[t] || i[t % i.length],
328
- uid: `serie_${t}`,
329
- absoluteIndex: t
330
- }));
331
- }
332
- let An = u(() => kn()), G = x(An.value);
333
- Ze(() => E.dataset, (e) => {
334
- Array.isArray(e) && e.length > 0 && (cn.value = !1);
335
- }, { immediate: !0 }), Ze(() => E.dataset, (e) => {
336
- G.value = kn();
337
- }, { deep: !0 });
338
- let jn = u(() => Dn(G.value.filter((e, t) => !Y.value.includes(e.uid)).map((e, t) => On.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), Mn = u(() => Dn(G.value.map((e, t) => On.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), Nn = u(() => I.value.size ** 2), K = u(() => (_n.value && sn.value.forEach((e, t) => {
339
- [null, void 0].includes(e.values) && c({
340
- componentName: "VueUiWaffle",
341
- type: "datasetSerieAttribute",
342
- property: "values (number[])",
343
- index: t
344
- });
345
- }), G.value.filter((e, t) => !Y.value.includes(e.uid)).map((e, t) => {
346
- let n = jn.value[t];
347
- return {
348
- absoluteIndex: e.absoluteIndex,
349
- uid: e.uid,
350
- name: e.name,
351
- color: e.color,
352
- value: (e.values || []).reduce((e, t) => e + t, 0),
353
- absoluteValues: e.values || [],
354
- squareCount: n,
355
- proportion: n / Nn.value
356
- };
357
- }))), Pn = u(() => G.value.map((e, t) => {
358
- let n = Mn.value[t];
359
- return {
360
- absoluteIndex: e.absoluteIndex,
361
- uid: e.uid,
362
- name: e.name,
363
- color: e.color,
364
- value: (e.values || []).reduce((e, t) => e + t, 0),
365
- absoluteValues: e.values || [],
366
- squareCount: n,
367
- proportion: n / Nn.value
368
- };
369
- }));
370
- function Fn() {
371
- return Pn.value.map((e) => ({
372
- name: e.name,
373
- color: e.color,
374
- value: e.value,
375
- squareCount: e.squareCount,
376
- proportion: e.proportion
377
- }));
378
- }
379
- let In = u(() => {
380
- let e = 0;
381
- return K.value.map((t, n) => {
382
- let r = e, i = r + t.squareCount, a = [];
383
- for (let e = Math.floor(r); e < Math.floor(i); e += 1) a.push(e);
384
- return e = i, {
385
- ...t,
386
- start: r,
387
- rects: a
388
- };
389
- });
390
- }), q = u(() => In.value.flatMap((e, t) => e.rects.map((n, r) => ({
391
- isFirst: r === 0,
392
- isLongEnough: n.length > 2,
393
- name: e.name,
394
- color: e.color,
395
- value: e.value,
396
- serieIndex: t,
397
- absoluteStartIndex: r < 3,
398
- serieId: e.uid,
399
- ...e
400
- }))).map((e, t) => ({
401
- ...e,
402
- isAbsoluteFirst: t % I.value.size === 0
403
- }))), J = u(() => {
404
- let e = [];
405
- for (let t = 0; t < I.value.size; t += 1) for (let n = 0; n < I.value.size; n += 1) e.push({
406
- isStartOfLine: n === 0,
407
- position: I.value.vertical ? t : n,
408
- x: (I.value.vertical ? t : n) * (U.value + I.value.spaceBetween),
409
- y: (I.value.vertical ? n : t) * (W.value + I.value.spaceBetween) + H.value.top
410
- });
411
- return e;
412
- }), Y = x([]), Ln = x(!1), Rn = x(Object.create(null)), zn = x(Object.create(null)), X = x(0);
413
- function Bn(e, t) {
414
- G.value = G.value.map((n) => n.uid === e ? {
415
- ...n,
416
- values: [t]
417
- } : n);
418
- }
419
- function Vn(e, t) {
420
- let n = t.find((t) => t.uid === e);
421
- return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
422
- }
423
- function Hn(e) {
424
- let t = !1;
425
- Rn.value[e] && (cancelAnimationFrame(Rn.value[e]), delete Rn.value[e], t = !0), zn.value[e] && (cancelAnimationFrame(zn.value[e]), delete zn.value[e], t = !0), t && (X.value = Math.max(0, X.value - 1), Ln.value = X.value > 0);
426
- }
427
- function Un({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
428
- Hn(e), X.value += 1, Ln.value = !0;
429
- let i = t;
430
- return new Promise((a) => {
431
- function o() {
432
- if (r === "increase") {
433
- if (i >= n) {
434
- Bn(e, n), --X.value, X.value <= 0 && (Ln.value = !1), delete Rn.value[e], a();
435
- return;
436
- }
437
- i += n * .025, i > n && (i = n), Bn(e, i), Rn.value[e] = requestAnimationFrame(o);
438
- } else {
439
- if (i <= t / 100) {
440
- Bn(e, 0), --X.value, X.value <= 0 && (Ln.value = !1), delete zn.value[e], a();
441
- return;
442
- }
443
- i /= 1.15, Bn(e, i), zn.value[e] = requestAnimationFrame(o);
444
- }
445
- }
446
- o();
447
- });
448
- }
449
- function Wn() {
450
- G.value = An.value;
451
- let e = Y.value.length > 0;
452
- if (!j.value.useAnimation) {
453
- e ? Y.value = [] : Y.value = Xn.value.map((e) => e.uid);
454
- return;
455
- }
456
- e ? [...Y.value].forEach((e) => {
457
- Gn(e, !0);
458
- }) : Xn.value.map((e) => e.uid).forEach((e) => {
459
- Gn(e, !0);
460
- });
461
- }
462
- function Gn(e, t = !1) {
463
- if (On.value && !t) return;
464
- let n = t || Y.value.length < Xn.value.length - 1 && Xn.value.length > 1;
465
- if (!j.value.useAnimation) {
466
- Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : n && Y.value.push(e);
467
- return;
468
- }
469
- let r = Vn(e, An.value), i = Vn(e, G.value);
470
- if (i !== 0 || r !== 0) {
471
- if (Y.value.includes(e)) {
472
- if (Y.value = Y.value.filter((t) => t !== e), Lt.value) {
473
- Hn(e), Bn(e, r), ar("selectLegend", K.value.map((e) => ({
474
- name: e.name,
475
- color: e.color,
476
- value: e.value,
477
- proportion: e.proportion
478
- })));
479
- return;
480
- }
481
- Un({
482
- seriesId: e,
483
- fromValue: i,
484
- toValue: r,
485
- mode: "increase"
486
- }).then(() => {
487
- ar("selectLegend", K.value.map((e) => ({
488
- name: e.name,
489
- color: e.color,
490
- value: e.value,
491
- proportion: e.proportion
492
- })));
493
- });
494
- return;
495
- }
496
- if (n) {
497
- if (Lt.value) {
498
- Hn(e), Y.value.includes(e) || Y.value.push(e), Bn(e, 0), ar("selectLegend", K.value.map((e) => ({
499
- name: e.name,
500
- color: e.color,
501
- value: e.value,
502
- proportion: e.proportion
503
- })));
504
- return;
505
- }
506
- Un({
507
- seriesId: e,
508
- fromValue: i,
509
- toValue: 0,
510
- mode: "decrease"
511
- }).then(() => {
512
- Y.value.includes(e) || Y.value.push(e), Bn(e, 0), ar("selectLegend", K.value.map((e) => ({
513
- name: e.name,
514
- color: e.color,
515
- value: e.value,
516
- proportion: e.proportion
517
- })));
518
- });
519
- }
520
- }
521
- }
522
- function Kn(e) {
523
- return Pn.value.length ? Pn.value.find((t) => t.name === e) || (_n.value && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (_n.value && console.warn("VueUiWaffle - There are no series to show."), null);
524
- }
525
- function qn(e) {
526
- let t = Kn(e);
527
- t !== null && Y.value.includes(t.uid) && Gn(t.uid);
528
- }
529
- function Jn(e) {
530
- let t = Kn(e);
531
- t !== null && (Y.value.includes(t.uid) || Gn(t.uid));
532
- }
533
- function Yn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
534
- return Pe({
535
- config: i,
536
- val: e,
537
- percentage: t,
538
- showVal: n,
539
- showPercentage: r
540
- });
541
- }
542
- let Xn = u(() => G.value.map((e, t) => {
543
- let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / G.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
544
- return {
545
- name: e.name,
546
- color: e.color || wn[t] || i[t] || i[t % i.length],
547
- value: n,
548
- proportion: r,
549
- uid: e.uid,
550
- shape: "square"
551
- };
552
- }).map((e, n) => {
553
- let r = Yn({
554
- val: re(L.value.labels.dataLabels.formatter, e.value, t({
555
- p: L.value.labels.dataLabels.prefix,
556
- v: e.value,
557
- s: L.value.labels.dataLabels.suffix,
558
- r: P.value.roundingValue
559
- }), {
560
- datapoint: e,
561
- index: n
562
- }),
563
- percentage: isNaN(e.value / Z.value) ? "-" : t({
564
- v: e.value / Z.value * 100,
565
- s: "%",
566
- r: P.value.roundingPercentage
567
- }),
568
- showVal: P.value.showValue,
569
- showPercentage: P.value.showPercentage,
570
- config: P.value
571
- });
572
- return {
573
- ...e,
574
- opacity: Y.value.includes(e.uid) ? .5 : 1,
575
- segregate: () => Gn(e.uid),
576
- isSegregated: Y.value.includes(e.uid),
577
- display: `${e.name}${P.value.showPercentage || P.value.showValue ? ": " : ""}${r}`
578
- };
579
- })), Zn = u(() => ({
580
- cy: "waffle-div-legend",
581
- backgroundColor: P.value.backgroundColor,
582
- color: P.value.color,
583
- fontSize: P.value.fontSize,
584
- paddingBottom: 12,
585
- fontWeight: P.value.bold ? "bold" : ""
586
- })), Z = u(() => K.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Qn = x(null), $n = x(null), Q = u(() => {
587
- let e = /* @__PURE__ */ new Map();
588
- return q.value.forEach((t, n) => {
589
- e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
590
- serieIndex: t.serieIndex,
591
- absoluteIndex: t.absoluteIndex,
592
- serieId: t.serieId,
593
- name: t.name,
594
- color: t.color,
595
- value: t.value,
596
- proportion: t.proportion,
597
- rectIndexes: [n]
598
- });
599
- }), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
600
- });
601
- function er(e) {
602
- return Q.value.find((t) => t.serieIndex === e) || null;
603
- }
604
- function tr(e) {
605
- let t = er(e);
606
- return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
607
- }
608
- function nr(e) {
609
- let t = q.value[e];
610
- j.value.events.datapointClick && j.value.events.datapointClick({
611
- datapoint: t,
612
- seriesIndex: t.serieIndex
613
- });
614
- }
615
- function rr(e) {
616
- let t = q.value[e];
617
- j.value.events.datapointLeave && j.value.events.datapointLeave({
618
- datapoint: t,
619
- seriesIndex: t.serieIndex
620
- }), $n.value = null, Bt.value = !1, O.value = null, A.value = null, en.value = "pointer";
621
- }
622
- function ir(e, n = "pointer") {
623
- if (Y.value.length === E.dataset.length) return;
624
- let i = q.value[e];
625
- if (!i) return;
626
- en.value = n, A.value = i.serieIndex, Qn.value = {
627
- datapoint: i,
628
- seriesIndex: i.absoluteIndex,
629
- series: G.value,
630
- config: j.value
631
- }, j.value.events.datapointEnter && $n.value !== i.serieIndex && j.value.events.datapointEnter({
632
- datapoint: i,
633
- seriesIndex: i.serieIndex
634
- }), $n.value = i.serieIndex, Bt.value = !0, O.value = i.serieIndex;
635
- let a = N.value.customFormat;
636
- if (r(a) && se(() => a({
637
- seriesIndex: i.absoluteIndex,
638
- datapoint: i,
639
- series: G.value,
640
- config: j.value
641
- }))) Vt.value = a({
642
- seriesIndex: i.absoluteIndex,
643
- datapoint: i,
644
- series: G.value,
645
- config: j.value
646
- });
647
- else {
648
- let e = "";
649
- e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${i.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="${i.color}" />${Rt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${D.value}_${i.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${Yn({
650
- config: N.value,
651
- showVal: N.value.showValue,
652
- showPercentage: N.value.showPercentage,
653
- val: `<span>${re(L.value.labels.dataLabels.formatter, i.value, t({
654
- p: L.value.labels.dataLabels.prefix,
655
- v: i.value,
656
- s: L.value.labels.dataLabels.suffix,
657
- r: N.value.roundingValue
658
- }), {
659
- datapoint: i,
660
- seriesIndex: i.absoluteIndex,
661
- series: G.value
662
- })}</span>`,
663
- percentage: `<span>${t({
664
- v: On.value ? 1 / sn.value.length * 100 : i.value / Z.value * 100,
665
- s: "%",
666
- r: N.value.roundingPercentage
667
- })}</span>`
668
- })}</b></div>`, Vt.value = e;
669
- }
670
- }
671
- let ar = Qe, $ = u(() => ({
672
- head: K.value.map((e) => ({
673
- name: e.name,
674
- color: e.color
675
- })),
676
- body: K.value.map((e) => e.value)
677
- }));
678
- function or(e) {
679
- return j.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== e ? `url(#blur_${D.value})` : "";
680
- }
681
- function sr(e) {
682
- return [null, void 0].includes(O.value) || O.value === e ? { opacity: 1 } : { opacity: F.value.selection.unselectedOpacity };
683
- }
684
- function cr(e) {
685
- return e.length <= 3 ? e : e.filter((t, n) => {
686
- let r = e[(n - 1 + e.length) % e.length], i = e[(n + 1) % e.length], a = r.x === t.x && t.x === i.x, o = r.y === t.y && t.y === i.y;
687
- return !a && !o;
688
- });
689
- }
690
- function lr(e) {
691
- if (!e.length) return [];
692
- let t = new Set(e.map(({ row: e, col: t }) => `${e}:${t}`)), n = [], r = /* @__PURE__ */ new Set(), i = [
693
- [-1, 0],
694
- [0, 1],
695
- [1, 0],
696
- [0, -1]
697
- ];
698
- e.forEach((e) => {
699
- let a = `${e.row}:${e.col}`;
700
- if (r.has(a)) return;
701
- let o = [], s = [e];
702
- for (r.add(a); s.length;) {
703
- let e = s.shift();
704
- o.push(e), i.forEach(([n, i]) => {
705
- let a = e.row + n, o = e.col + i, ee = `${a}:${o}`;
706
- t.has(ee) && !r.has(ee) && (r.add(ee), s.push({
707
- row: a,
708
- col: o
709
- }));
710
- });
711
- }
712
- n.push(o);
713
- });
714
- let a = [];
715
- return n.forEach((e) => {
716
- let t = new Set(e.map(({ row: e, col: t }) => `${e}:${t}`)), n = [];
717
- e.forEach(({ row: e, col: r }) => {
718
- t.has(`${e - 1}:${r}`) || n.push({
719
- start: {
720
- x: r,
721
- y: e
722
- },
723
- end: {
724
- x: r + 1,
725
- y: e
726
- }
727
- }), t.has(`${e}:${r + 1}`) || n.push({
728
- start: {
729
- x: r + 1,
730
- y: e
731
- },
732
- end: {
733
- x: r + 1,
734
- y: e + 1
735
- }
736
- }), t.has(`${e + 1}:${r}`) || n.push({
737
- start: {
738
- x: r + 1,
739
- y: e + 1
740
- },
741
- end: {
742
- x: r,
743
- y: e + 1
744
- }
745
- }), t.has(`${e}:${r - 1}`) || n.push({
746
- start: {
747
- x: r,
748
- y: e + 1
749
- },
750
- end: {
751
- x: r,
752
- y: e
753
- }
754
- });
755
- });
756
- let r = /* @__PURE__ */ new Map(), i = (e) => `${e.start.x}:${e.start.y}>${e.end.x}:${e.end.y}`, o = (e) => `${e.x}:${e.y}`, s = new Set(n.map(i));
757
- for (n.forEach((e) => {
758
- let t = o(e.start);
759
- r.has(t) || r.set(t, []), r.get(t).push(e);
760
- }); s.size;) {
761
- let e = s.values().next().value, t = n.find((t) => i(t) === e), ee = t.start, c = [ee], te = t;
762
- for (; te;) {
763
- s.delete(i(te));
764
- let e = te.end;
765
- if (o(e) === o(ee)) break;
766
- c.push(e), te = (r.get(o(e)) || []).find((e) => s.has(i(e)));
767
- }
768
- c.length >= 4 && a.push(cr(c));
769
- }
770
- }), a;
771
- }
772
- function ur(e) {
773
- let t = I.value.size, n = I.value.vertical, r = [];
774
- return q.value.forEach((i, a) => {
775
- if (i.serieIndex !== e) return;
776
- let o = Math.floor(a / t), s = a % t;
777
- r.push({
778
- row: n ? s : o,
779
- col: n ? o : s
780
- });
781
- }), r;
782
- }
783
- function dr(e) {
784
- let t = Tn.value, n = En.value;
785
- return lr(ur(e)).map((e) => e.map(({ x: e, y: r }) => ({
786
- x: e * t,
787
- y: H.value.top + r * n
788
- })));
789
- }
790
- function fr(e) {
791
- return e.map(({ x: e, y: t }) => `${e},${t}`).join(" ");
792
- }
793
- function pr(e) {
794
- return e.map((e) => {
795
- if (!e.length) return "";
796
- let [t, ...n] = e, r = n.map(({ x: e, y: t }) => `L ${e} ${t}`).join(" ");
797
- return `M ${t.x} ${t.y} ${r} Z`;
798
- }).filter(Boolean).join(" ");
799
- }
800
- let mr = u(() => !F.value.selection?.wrap?.show || [null, void 0].includes(O.value) ? [] : dr(O.value).map(fr)), hr = u(() => {
801
- if (!F.value.merged) return [];
802
- let e = /* @__PURE__ */ new Map();
803
- return q.value.forEach((t, n) => {
804
- e.has(t.serieIndex) || e.set(t.serieIndex, {
805
- serieIndex: t.serieIndex,
806
- absoluteIndex: t.absoluteIndex,
807
- color: t.color,
808
- gradientIndex: n,
809
- rectIndex: n
810
- });
811
- }), Array.from(e.values()).map((e) => ({
812
- ...e,
813
- d: pr(dr(e.serieIndex))
814
- })).filter((e) => e.d);
815
- });
816
- function gr(e, t) {
817
- return L.value.labels.captions.show ? q.value.length && !Ln.value && !I.value.vertical && (q.value[e].isFirst && t.position < I.value.size - 2 || q.value[e].isAbsoluteFirst && e % I.value.size === 0 && q.value[e].absoluteStartIndex) : !1;
818
- }
819
- function _r(e, n = null) {
820
- let r = re(L.value.labels.dataLabels.formatter, q.value[e].value, t({
821
- p: L.value.labels.dataLabels.prefix,
822
- v: q.value[e].value,
823
- s: L.value.labels.dataLabels.suffix,
824
- r: L.value.labels.captions.roundingValue
825
- }), {
826
- datapoint: q.value[e],
827
- position: n
828
- }), i = t({
829
- v: q.value[e].proportion * 100,
830
- s: "%",
831
- r: L.value.labels.captions.roundingPercentage
832
- }), a = (L.value.labels.captions.serieNameAbbreviation ? ie({
833
- source: q.value[e].name,
834
- length: L.value.labels.captions.serieNameMaxAbbreviationSize
835
- }) : q.value[e].name) + (L.value.labels.captions.showPercentage || L.value.labels.captions.showValue ? ":" : "");
836
- return `${L.value.labels.captions.showSerieName ? a : ""} ${Yn({
837
- val: r,
838
- percentage: i,
839
- showVal: L.value.labels.captions.showValue,
840
- showPercentage: L.value.labels.captions.showPercentage,
841
- config: L.value.labels.dataLabels
842
- })}`;
843
- }
844
- function vr(e = null) {
845
- Ue(() => {
846
- let t = $.value.head.map((e, t) => [
847
- [e.name],
848
- [$.value.body[t]],
849
- [isNaN($.value.body[t] / Z.value) ? "-" : $.value.body[t] / Z.value * 100]
850
- ]), r = [
851
- [R.value.title.text],
852
- [R.value.title.subtitle.text],
853
- [
854
- [""],
855
- ["val"],
856
- ["%"]
857
- ]
858
- ].concat(t), i = n(r);
859
- e ? e(i) : oe({
860
- csvContent: i,
861
- title: R.value.title.text || "vue-ui-waffle"
862
- });
863
- });
864
- }
865
- let yr = u(() => ({
866
- head: [
867
- "__SUM__",
868
- re(L.value.labels.dataLabels.formatter, Z.value, t({
869
- p: L.value.labels.dataLabels.prefix,
870
- v: Z.value,
871
- s: L.value.labels.dataLabels.suffix,
872
- r: j.value.table.td.roundingValue
873
- })),
874
- "100%"
875
- ],
876
- body: $.value.head.map((e, n) => [
877
- {
878
- color: e.color,
879
- name: e.name
880
- },
881
- re(L.value.labels.dataLabels.formatter, $.value.body[n], t({
882
- p: L.value.labels.dataLabels.prefix,
883
- v: $.value.body[n],
884
- s: L.value.labels.dataLabels.suffix,
885
- r: j.value.table.td.roundingValue
886
- })),
887
- isNaN($.value.body[n] / Z.value) ? "-" : t({
888
- v: $.value.body[n] / Z.value * 100,
889
- s: "%",
890
- r: j.value.table.td.roundingPercentage
891
- })
892
- ]),
893
- config: {
894
- th: {
895
- backgroundColor: j.value.table.th.backgroundColor,
896
- color: j.value.table.th.color,
897
- outline: j.value.table.th.outline
898
- },
899
- td: {
900
- backgroundColor: j.value.table.td.backgroundColor,
901
- color: j.value.table.td.color,
902
- outline: j.value.table.td.outline
903
- },
904
- shape: "square",
905
- breakpoint: j.value.table.responsiveBreakpoint
906
- },
907
- colNames: [
908
- j.value.table.columnNames.series,
909
- j.value.table.columnNames.value,
910
- j.value.table.columnNames.percentage
911
- ]
912
- })), br = x(!1);
913
- function xr(e) {
914
- br.value = e, Ht.value += 1;
915
- }
916
- function Sr() {
917
- B.value.showTable = !B.value.showTable;
918
- }
919
- function Cr() {
920
- B.value.showTooltip = !B.value.showTooltip;
921
- }
922
- let wr = x(!1);
923
- function Tr() {
924
- wr.value = !wr.value;
925
- }
926
- async function Er({ scale: e = 2 } = {}) {
927
- if (!k.value) return;
928
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
929
- domElement: k.value,
930
- base64: !0,
931
- img: !0,
932
- scale: e
933
- });
934
- return {
935
- imageUri: i,
936
- base64: a,
937
- title: R.value.title.text,
938
- width: t,
939
- height: n,
940
- aspectRatio: r
941
- };
942
- }
943
- let Dr = u(() => {
944
- let e = j.value.table.useDialog && !j.value.table.show, t = B.value.showTable;
945
- return {
946
- component: e ? Nt : kt,
947
- title: `${R.value.title.text}${R.value.title.subtitle.text ? `: ${R.value.title.subtitle.text}` : ""}`,
948
- props: e ? {
949
- backgroundColor: j.value.table.th.backgroundColor,
950
- color: j.value.table.th.color,
951
- headerColor: j.value.table.th.color,
952
- headerBg: j.value.table.th.backgroundColor,
953
- isFullscreen: br.value,
954
- fullscreenParent: k.value,
955
- forcedWidth: Math.min(500, window.innerWidth * .8),
956
- isCursorPointer: rn.value
957
- } : {
958
- hideDetails: !0,
959
- config: {
960
- open: t,
961
- maxHeight: 1e4,
962
- body: {
963
- backgroundColor: R.value.backgroundColor,
964
- color: R.value.color
965
- },
966
- head: {
967
- backgroundColor: R.value.backgroundColor,
968
- color: R.value.color
969
- }
970
- }
971
- }
972
- };
973
- });
974
- Ze(() => B.value.showTable, (e) => {
975
- j.value.table.show || (e && j.value.table.useDialog && Zt.value ? Zt.value.open() : "close" in Zt.value && Zt.value.close());
976
- });
977
- function Or() {
978
- B.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
979
- }
980
- let kr = u(() => Xn.value.map((e) => ({
981
- ...e,
982
- name: e.display
983
- }))), Ar = u(() => R.value.backgroundColor), jr = u(() => R.value.title), { isCallbackImaging: Mr, isCallbackSvg: Nr, generateSvg: Pr, onGenerateImage: Fr } = xe({
984
- svg: fn,
985
- title: jr,
986
- legend: P,
987
- legendItems: kr,
988
- backgroundColor: Ar,
989
- getSvgCallback: () => j.value.userOptions.callbacks.svg,
990
- generateImage: Sn
991
- });
992
- async function Ir() {
993
- if (ar("copyAlt", {
994
- config: j.value,
995
- dataset: Pn.value
996
- }), !j.value.userOptions.callbacks.altCopy) {
997
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
998
- return;
999
- }
1000
- await Promise.resolve(j.value.userOptions.callbacks.altCopy({
1001
- config: j.value,
1002
- dataset: Pn.value
1003
- }));
1004
- }
1005
- function Lr() {
1006
- A.value = null, tn.value = !0;
1007
- }
1008
- function Rr() {
1009
- A.value = null, en.value = "pointer", Bt.value = !1, O.value = null, $n.value = null, tn.value = !1;
1010
- }
1011
- function zr(e) {
1012
- if (!fn.value || wr.value || document.activeElement !== fn.value || !Q.value.length || Y.value.length === E.dataset.length) return;
1013
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1014
- if (!t && !n && !r && !i) return;
1015
- if (e.preventDefault(), e.stopPropagation(), i) {
1016
- A.value = null, en.value = "pointer", Bt.value = !1, O.value = null, $n.value = null;
1017
- return;
1018
- }
1019
- if (r) {
1020
- if (A.value === null) return;
1021
- let e = tr(A.value);
1022
- if (e === null) return;
1023
- nr(e);
1024
- return;
1025
- }
1026
- let a = Q.value.findIndex((e) => e.serieIndex === A.value), o = null;
1027
- if (o = a === -1 ? n ? Q.value[0] : Q.value[Q.value.length - 1] : n ? Q.value[(a + 1) % Q.value.length] : Q.value[(a - 1 + Q.value.length) % Q.value.length], !o) return;
1028
- let s = tr(o.serieIndex);
1029
- s !== null && (Br(o.serieIndex), ir(s, "keyboard"));
1030
- }
1031
- function Br(e) {
1032
- if (!Number.isFinite(e) || !fn.value) return;
1033
- let t = er(e);
1034
- if (!t || !t.rectIndexes.length) return;
1035
- let n = t.rectIndexes.map((e) => {
1036
- let t = J.value[e];
1037
- return t ? {
1038
- x: t.x + I.value.spaceBetween / 2 + Tn.value / 2,
1039
- y: t.y + I.value.spaceBetween / 2 + En.value / 2
1040
- } : null;
1041
- }).filter(Boolean);
1042
- if (!n.length) return;
1043
- 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)), s = (r + i) / 2, ee = (a + o) / 2, c = fn.value.getBoundingClientRect();
1044
- $t.value = {
1045
- x: c.left + s / V.value.width * c.width,
1046
- y: c.top + ee / V.value.height * c.height
1047
- };
1048
- }
1049
- let Vr = u(() => ({
1050
- headers: yr.value?.colNames ?? [],
1051
- rows: yr.value?.body ?? []
1052
- }));
1053
- return Ee({
1054
- getData: Fn,
1055
- getImage: Er,
1056
- generatePdf: xn,
1057
- generateCsv: vr,
1058
- generateImage: Sn,
1059
- generateSvg: Pr,
1060
- hideSeries: Jn,
1061
- showSeries: qn,
1062
- toggleTable: Sr,
1063
- toggleTooltip: Cr,
1064
- toggleAnnotator: Tr,
1065
- toggleFullscreen: xr,
1066
- copyAlt: Ir
1067
- }), (e, t) => (b(), p("div", {
1068
- class: _(`vue-data-ui-component vue-ui-waffle ${br.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1069
- ref_key: "waffleChart",
1070
- ref: k,
1071
- id: `vue-ui-waffle_${D.value}`,
1072
- style: y(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${R.value.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
1073
- onMouseenter: t[2] ||= () => w(un)(!0),
1074
- onMouseleave: t[3] ||= () => w(un)(!1)
1075
- }, [
1076
- m("div", {
1077
- id: `chart-instructions-${D.value}`,
1078
- class: "sr-only"
1079
- }, [m("p", null, Je(j.value.a11y.translations.keyboardNavigation), 1)], 8, et),
1080
- Vr.value?.rows?.length ? (b(), d(je, {
1081
- key: 0,
1082
- uid: D.value,
1083
- head: Vr.value.headers,
1084
- body: Vr.value.rows,
1085
- notice: j.value.a11y.translations.tableAvailable,
1086
- caption: j.value.a11y.translations.tableCaption
1087
- }, null, 8, [
1088
- "uid",
1089
- "head",
1090
- "body",
1091
- "notice",
1092
- "caption"
1093
- ])) : f("", !0),
1094
- M.value.buttons.annotator ? (b(), d(w(jt), {
1095
- key: 1,
1096
- svgRef: w(fn),
1097
- backgroundColor: R.value.backgroundColor,
1098
- color: R.value.color,
1099
- active: wr.value,
1100
- isCursorPointer: rn.value,
1101
- palette: M.value.annotatorPalette,
1102
- onClose: Tr
1103
- }, {
1104
- "annotator-action-close": T(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1105
- "annotator-action-color": T(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
1106
- "annotator-action-draw": T(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
1107
- "annotator-action-undo": T(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
1108
- "annotator-action-redo": T(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
1109
- "annotator-action-delete": T(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
1110
- _: 3
1111
- }, 8, [
1112
- "svgRef",
1113
- "backgroundColor",
1114
- "color",
1115
- "active",
1116
- "isCursorPointer",
1117
- "palette"
1118
- ])) : f("", !0),
1119
- Cn.value ? (b(), p("div", {
1120
- key: 2,
1121
- ref_key: "noTitle",
1122
- ref: Kt,
1123
- class: "vue-data-ui-no-title-space",
1124
- style: "height:36px; width: 100%;background:transparent"
1125
- }, null, 512)) : f("", !0),
1126
- R.value.title.text ? (b(), p("div", {
1127
- key: 3,
1128
- ref_key: "chartTitle",
1129
- ref: Ut,
1130
- style: "width:100%;background:transparent;padding-bottom:12px"
1131
- }, [(b(), d(we, {
1132
- key: `title_${qt.value}`,
1133
- config: {
1134
- title: {
1135
- cy: "waffle-title",
1136
- ...R.value.title
1137
- },
1138
- subtitle: {
1139
- cy: "waffle-subtitle",
1140
- ...R.value.title.subtitle
1141
- }
1142
- }
1143
- }, null, 8, ["config"]))], 512)) : f("", !0),
1144
- m("div", { id: `legend-top-${D.value}` }, null, 8, tt),
1145
- M.value.show && zt.value && (w(dn) || w(ln)) ? (b(), d(w(At), {
1146
- ref_key: "userOptionsRef",
1147
- ref: Qt,
1148
- key: `user_options_${Ht.value}`,
1149
- backgroundColor: R.value.backgroundColor,
1150
- color: R.value.color,
1151
- isPrinting: w(yn),
1152
- isImaging: w(bn),
1153
- uid: D.value,
1154
- hasTooltip: M.value.buttons.tooltip && N.value.show,
1155
- hasPdf: M.value.buttons.pdf,
1156
- hasImg: M.value.buttons.img,
1157
- hasSvg: M.value.buttons.svg,
1158
- hasXls: M.value.buttons.csv,
1159
- hasTable: M.value.buttons.table,
1160
- hasFullscreen: M.value.buttons.fullscreen,
1161
- hasAltCopy: M.value.buttons.altCopy,
1162
- isFullscreen: br.value,
1163
- isTooltip: B.value.showTooltip,
1164
- titles: { ...M.value.buttonTitles },
1165
- chartElement: k.value,
1166
- position: M.value.position,
1167
- hasAnnotator: M.value.buttons.annotator,
1168
- isAnnotation: wr.value,
1169
- callbacks: M.value.callbacks,
1170
- printScale: M.value.print.scale,
1171
- tableDialog: j.value.table.useDialog,
1172
- isCursorPointer: rn.value,
1173
- onToggleFullscreen: xr,
1174
- onGeneratePdf: w(xn),
1175
- onGenerateCsv: vr,
1176
- onGenerateImage: w(Fr),
1177
- onGenerateSvg: w(Pr),
1178
- onToggleTable: Sr,
1179
- onToggleTooltip: Cr,
1180
- onToggleAnnotator: Tr,
1181
- onCopyAlt: Ir,
1182
- style: y({ visibility: w(dn) ? w(ln) ? "visible" : "hidden" : "visible" })
1183
- }, ze({ _: 2 }, [
1184
- e.$slots.menuIcon ? {
1185
- name: "menuIcon",
1186
- fn: T(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
1187
- isOpen: t,
1188
- color: n
1189
- })), void 0, !0)]),
1190
- key: "0"
1191
- } : void 0,
1192
- e.$slots.optionTooltip ? {
1193
- name: "optionTooltip",
1194
- fn: T(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1195
- key: "1"
1196
- } : void 0,
1197
- e.$slots.optionPdf ? {
1198
- name: "optionPdf",
1199
- fn: T(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1200
- key: "2"
1201
- } : void 0,
1202
- e.$slots.optionCsv ? {
1203
- name: "optionCsv",
1204
- fn: T(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1205
- key: "3"
1206
- } : void 0,
1207
- e.$slots.optionImg ? {
1208
- name: "optionImg",
1209
- fn: T(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1210
- key: "4"
1211
- } : void 0,
1212
- e.$slots.optionSvg ? {
1213
- name: "optionSvg",
1214
- fn: T(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1215
- key: "5"
1216
- } : void 0,
1217
- e.$slots.optionTable ? {
1218
- name: "optionTable",
1219
- fn: T(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1220
- key: "6"
1221
- } : void 0,
1222
- e.$slots.optionFullscreen ? {
1223
- name: "optionFullscreen",
1224
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
1225
- toggleFullscreen: t,
1226
- isFullscreen: n
1227
- })), void 0, !0)]),
1228
- key: "7"
1229
- } : void 0,
1230
- e.$slots.optionAnnotator ? {
1231
- name: "optionAnnotator",
1232
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
1233
- toggleAnnotator: t,
1234
- isAnnotator: n
1235
- })), void 0, !0)]),
1236
- key: "8"
1237
- } : void 0,
1238
- e.$slots.optionAltCopy ? {
1239
- name: "optionAltCopy",
1240
- fn: T(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
1241
- key: "9"
1242
- } : void 0,
1243
- e.$slots["custom-menu-before"] ? {
1244
- name: "custom-menu-before",
1245
- fn: T(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1246
- key: "10"
1247
- } : void 0,
1248
- e.$slots["custom-menu-after"] ? {
1249
- name: "custom-menu-after",
1250
- fn: T(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1251
- key: "11"
1252
- } : void 0
1253
- ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : f("", !0),
1254
- m("div", nt, [(b(), p("svg", {
1255
- ref_key: "svgRef",
1256
- ref: fn,
1257
- xmlns: w(le),
1258
- "aria-describedby": `chart-instructions-${D.value}`,
1259
- class: _({
1260
- "vue-data-ui-fullscreen--on": br.value,
1261
- "vue-data-ui-fulscreen--off": !br.value,
1262
- "vue-data-ui-no-transition": !w(nn)
1263
- }),
1264
- tabindex: "0",
1265
- viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
1266
- style: y(`max-width:100%;overflow:visible;background:transparent;color:${R.value.color}`),
1267
- onFocus: Lr,
1268
- onBlur: Rr,
1269
- onKeydown: zr
1270
- }, [
1271
- Ve(w(Mt)),
1272
- m("defs", null, [(b(!0), p(l, null, S(q.value, (e, t) => (b(), d(ke, {
1273
- t: "radial",
1274
- cx: "50%",
1275
- cy: "50%",
1276
- r: "50%",
1277
- fx: "50%",
1278
- fy: "50%",
1279
- id: `gradient_${D.value}_${t}`,
1280
- key: `gradient_${D.value}_${t}`,
1281
- stops: [[
1282
- "0%",
1283
- w(a)(w(ee)(e.color, .05), 100 - F.value.gradientIntensity),
1284
- 1
1285
- ], [
1286
- "100%",
1287
- e.color,
1288
- 1
1289
- ]]
1290
- }, null, 8, ["id", "stops"]))), 128))]),
1291
- m("defs", null, [m("filter", {
1292
- id: `blur_${D.value}`,
1293
- x: "-50%",
1294
- y: "-50%",
1295
- width: "200%",
1296
- height: "200%"
1297
- }, [...t[4] ||= [m("feGaussianBlur", {
1298
- in: "SourceGraphic",
1299
- stdDeviation: 2
1300
- }, null, -1), m("feColorMatrix", {
1301
- type: "saturate",
1302
- values: "0"
1303
- }, null, -1)]], 8, it)]),
1304
- j.value.useCustomCells && q.value.length && e.$slots.cell ? (b(!0), p(l, { key: 0 }, S(J.value, (t, n) => (b(), p("foreignObject", {
1305
- x: t.x,
1306
- y: t.y,
1307
- height: W.value <= 0 ? 1e-4 : W.value,
1308
- width: U.value <= 0 ? 1e-4 : U.value,
1309
- class: "vue-ui-waffle-custom-cell-foreignObject"
1310
- }, [C(e.$slots, "cell", He({ ref_for: !0 }, {
1311
- cell: {
1312
- ...t,
1313
- color: q.value[n].color,
1314
- height: Math.max(0, W.value),
1315
- width: Math.max(0, U.value),
1316
- ...q.value[n]
1317
- },
1318
- isSelected: [null, void 0].includes(O.value) ? !0 : q.value[n].serieIndex === O.value
1319
- }), void 0, !0)], 8, at))), 256)) : f("", !0),
1320
- !q.value.length && !j.value.useCustomCells ? (b(), p("rect", {
1321
- key: 1,
1322
- x: 12,
1323
- y: 12,
1324
- height: H.value.height - 24,
1325
- width: H.value.width - 24,
1326
- rx: 3,
1327
- fill: "none",
1328
- stroke: "black"
1329
- }, null, 8, ot)) : q.value.length && !j.value.useCustomCells ? (b(), p(l, { key: 2 }, [e.$slots.pattern ? (b(), p("g", st, [(b(!0), p(l, null, S(An.value, (t) => (b(), p("defs", null, [C(e.$slots, "pattern", He({ ref_for: !0 }, {
1330
- seriesIndex: t.absoluteIndex,
1331
- patternId: `pattern_${D.value}_${t.absoluteIndex}`
1332
- }), void 0, !0)]))), 256))])) : f("", !0), F.value.merged ? (b(), p(l, { key: 1 }, [
1333
- (b(!0), p(l, null, S(hr.value, (e) => (b(), p("path", {
1334
- key: `merged-underlayer-${e.serieIndex}`,
1335
- d: e.d,
1336
- fill: "white",
1337
- "fill-rule": "evenodd",
1338
- stroke: F.value.stroke,
1339
- "stroke-width": F.value.strokeWidth,
1340
- "stroke-linejoin": "round",
1341
- filter: or(e.serieIndex),
1342
- style: y(sr(e.serieIndex)),
1343
- class: _({ "vue-data-ui-transition": w(nn) })
1344
- }, null, 14, ct))), 128)),
1345
- (b(!0), p(l, null, S(hr.value, (e) => (b(), p("path", {
1346
- key: `merged-serie-${e.serieIndex}`,
1347
- d: e.d,
1348
- fill: F.value.useGradient && F.value.gradientIntensity > 0 ? `url(#gradient_${D.value}_${e.gradientIndex})` : e.color,
1349
- "fill-rule": "evenodd",
1350
- stroke: F.value.stroke,
1351
- "stroke-width": F.value.strokeWidth,
1352
- "stroke-linejoin": "round",
1353
- filter: or(e.serieIndex),
1354
- style: y(sr(e.serieIndex)),
1355
- class: _({ "vue-data-ui-transition": w(nn) })
1356
- }, null, 14, lt))), 128)),
1357
- e.$slots.pattern ? (b(), p("g", ut, [(b(!0), p(l, null, S(hr.value, (e) => (b(), p("path", {
1358
- key: `merged-pattern-${e.serieIndex}`,
1359
- d: e.d,
1360
- fill: `url(#pattern_${D.value}_${e.absoluteIndex})`,
1361
- "fill-rule": "evenodd",
1362
- stroke: "none",
1363
- filter: or(e.serieIndex),
1364
- style: y(sr(e.serieIndex)),
1365
- class: _({ "vue-data-ui-transition": w(nn) })
1366
- }, null, 14, dt))), 128))])) : f("", !0)
1367
- ], 64)) : (b(), p(l, { key: 2 }, [
1368
- (b(!0), p(l, null, S(J.value, (e, t) => (b(), p("rect", {
1369
- rx: F.value.rounded ? F.value.rounding : 0,
1370
- x: e.x + I.value.spaceBetween / 2,
1371
- y: e.y + I.value.spaceBetween / 2,
1372
- height: W.value <= 0 ? 1e-4 : W.value,
1373
- width: U.value <= 0 ? 1e-4 : U.value,
1374
- fill: "white",
1375
- stroke: F.value.stroke,
1376
- "stroke-width": F.value.strokeWidth,
1377
- filter: or(q.value[t].serieIndex),
1378
- style: y(sr(q.value[t].serieIndex)),
1379
- class: _({ "vue-data-ui-transition": w(nn) })
1380
- }, null, 14, ft))), 256)),
1381
- (b(!0), p(l, null, S(J.value, (e, t) => (b(), p("rect", {
1382
- rx: F.value.rounded ? F.value.rounding : 0,
1383
- x: e.x + I.value.spaceBetween / 2,
1384
- y: e.y + I.value.spaceBetween / 2,
1385
- height: W.value <= 0 ? 1e-4 : W.value,
1386
- width: U.value <= 0 ? 1e-4 : U.value,
1387
- fill: F.value.useGradient && F.value.gradientIntensity > 0 ? `url(#gradient_${D.value}_${t})` : q.value[t].color,
1388
- stroke: F.value.stroke,
1389
- "stroke-width": F.value.strokeWidth,
1390
- filter: or(q.value[t].serieIndex),
1391
- style: y(sr(q.value[t].serieIndex)),
1392
- class: _({ "vue-data-ui-transition": w(nn) })
1393
- }, null, 14, pt))), 256)),
1394
- e.$slots.pattern ? (b(), p("g", mt, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p("rect", {
1395
- rx: F.value.rounded ? F.value.rounding : 0,
1396
- x: e.x + I.value.spaceBetween / 2,
1397
- y: e.y + I.value.spaceBetween / 2,
1398
- height: W.value <= 0 ? 1e-4 : W.value,
1399
- width: U.value <= 0 ? 1e-4 : U.value,
1400
- fill: `url(#pattern_${D.value}_${q.value[t].absoluteIndex})`,
1401
- stroke: "none",
1402
- filter: or(q.value[t].serieIndex),
1403
- style: y(sr(q.value[t].serieIndex)),
1404
- class: _({ "vue-data-ui-transition": w(nn) })
1405
- }, null, 14, ht))), 256))])) : f("", !0)
1406
- ], 64))], 64)) : f("", !0),
1407
- e.$slots.cellSvg ? (b(!0), p(l, { key: 3 }, S(J.value, (t, n) => (b(), p("g", null, [C(e.$slots, "cellSvg", He({ ref_for: !0 }, {
1408
- cell: {
1409
- ...t,
1410
- color: q.value[n].color,
1411
- height: Math.max(0, W.value),
1412
- width: Math.max(0, U.value),
1413
- ...q.value[n]
1414
- },
1415
- isSelected: [null, void 0].includes(O.value) ? !0 : q.value[n].serieIndex === O.value
1416
- }), void 0, !0)]))), 256)) : f("", !0),
1417
- (b(!0), p(l, null, S(mr.value, (e, t) => (b(), p("polygon", {
1418
- key: `selected-series-wrap-${t}`,
1419
- points: e,
1420
- fill: "none",
1421
- stroke: F.value.selection.wrap.stroke,
1422
- "stroke-width": F.value.selection.wrap.strokeWidth,
1423
- "stroke-linejoin": F.value.selection.wrap.strokeLinejoin,
1424
- "pointer-events": "none"
1425
- }, null, 8, gt))), 128)),
1426
- (b(!0), p(l, null, S(J.value, (e, t) => (b(), p(l, null, [gr(t, e) ? (b(), p("text", {
1427
- key: `datalabel_${t}`,
1428
- textContent: Je(_r(t, e)),
1429
- x: e.x + L.value.labels.captions.offsetX + I.value.spaceBetween / 2 + 6,
1430
- y: e.y + L.value.labels.captions.offsetY + I.value.spaceBetween / 2 + En.value / 2 + L.value.labels.captions.fontSize / 3,
1431
- "font-size": L.value.labels.captions.fontSize,
1432
- fill: w(ce)(q.value[t].color),
1433
- filter: or(q.value[t].serieIndex),
1434
- class: _({ "vue-data-ui-transition": w(nn) })
1435
- }, null, 10, _t)) : f("", !0)], 64))), 256)),
1436
- F.value.merged && !j.value.useCustomCells ? (b(!0), p(l, { key: 4 }, S(hr.value, (e) => (b(), p("path", {
1437
- key: `tooltip-trap-${e.serieIndex}`,
1438
- d: e.d,
1439
- fill: "transparent",
1440
- "fill-rule": "evenodd",
1441
- stroke: "none",
1442
- "pointer-events": "fill",
1443
- onMouseover: (t) => ir(e.rectIndex),
1444
- onMouseleave: (t) => rr(e.rectIndex),
1445
- onClick: (t) => nr(e.rectIndex)
1446
- }, null, 40, vt))), 128)) : (b(!0), p(l, { key: 5 }, S(J.value, (e, t) => (b(), p("rect", {
1447
- key: `tooltip-trap-${t}`,
1448
- x: e.x + I.value.spaceBetween / 2,
1449
- y: e.y + I.value.spaceBetween / 2,
1450
- height: En.value,
1451
- width: Tn.value,
1452
- fill: "transparent",
1453
- stroke: "none",
1454
- onMouseover: (e) => ir(t),
1455
- onMouseleave: (e) => rr(t),
1456
- onClick: (e) => nr(t)
1457
- }, null, 40, yt))), 128)),
1458
- C(e.$slots, "svg", { svg: {
1459
- ...V.value,
1460
- isPrintingImg: w(yn) || w(bn) || w(Mr),
1461
- isPrintingSvg: w(Nr)
1462
- } }, void 0, !0)
1463
- ], 46, rt)), e.$slots.hint ? (b(), p("div", bt, [C(e.$slots, "hint", v(g({
1464
- hint: j.value.a11y.translations.keyboardNavigation,
1465
- isVisible: tn.value
1466
- })), void 0, !0)])) : f("", !0)]),
1467
- e.$slots.watermark ? (b(), p("div", xt, [C(e.$slots, "watermark", v(g({ isPrinting: w(yn) || w(bn) || w(Mr) || w(Nr) })), void 0, !0)])) : f("", !0),
1468
- m("div", { id: `legend-bottom-${D.value}` }, null, 8, St),
1469
- Xt.value && (P.value.show || e.$slots.legend) ? (b(), d(Re, {
1470
- key: 6,
1471
- to: P.value.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1472
- }, [m("div", {
1473
- ref_key: "chartLegend",
1474
- ref: Wt
1475
- }, [C(e.$slots, "legend", { legend: Xn.value }, () => [P.value.show ? (b(), d(Fe, {
1476
- key: `legend_${Yt.value}`,
1477
- legendSet: Xn.value,
1478
- config: Zn.value,
1479
- isCursorPointer: rn.value,
1480
- onClickMarker: t[0] ||= ({ legend: e }) => Gn(e.uid)
1481
- }, ze({
1482
- item: T(({ legend: e }) => [m("div", {
1483
- onClick: (t) => e.segregate(),
1484
- style: y(`opacity:${Y.value.includes(e.uid) ? .5 : 1}`)
1485
- }, Je(e.display), 13, Ct)]),
1486
- legendToggle: T(() => [Xn.value.length > 2 && P.value.selectAllToggle.show && !w(on) ? (b(), d(Ae, {
1487
- key: 0,
1488
- backgroundColor: P.value.selectAllToggle.backgroundColor,
1489
- color: P.value.selectAllToggle.color,
1490
- fontSize: P.value.fontSize,
1491
- checked: Y.value.length > 0,
1492
- isCursorPointer: rn.value,
1493
- onToggle: Wn
1494
- }, null, 8, [
1495
- "backgroundColor",
1496
- "color",
1497
- "fontSize",
1498
- "checked",
1499
- "isCursorPointer"
1500
- ])) : f("", !0)]),
1501
- _: 2
1502
- }, [e.$slots.pattern ? {
1503
- name: "legend-pattern",
1504
- fn: T(({ legend: e, index: t }) => [Ve(Te, {
1505
- shape: e.shape,
1506
- radius: 30,
1507
- stroke: "none",
1508
- plot: {
1509
- x: 30,
1510
- y: 30
1511
- },
1512
- fill: `url(#pattern_${D.value}_${t})`
1513
- }, null, 8, ["shape", "fill"])]),
1514
- key: "0"
1515
- } : void 0]), 1032, [
1516
- "legendSet",
1517
- "config",
1518
- "isCursorPointer"
1519
- ])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
1520
- e.$slots.source ? (b(), p("div", {
1521
- key: 7,
1522
- ref_key: "source",
1523
- ref: Gt,
1524
- dir: "auto"
1525
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1526
- Ve(w(Et), {
1527
- teleportTo: N.value.teleportTo,
1528
- show: B.value.showTooltip && Bt.value && Y.value.length < E.dataset.length,
1529
- backgroundColor: N.value.backgroundColor,
1530
- color: N.value.color,
1531
- borderRadius: N.value.borderRadius,
1532
- borderColor: N.value.borderColor,
1533
- borderWidth: N.value.borderWidth,
1534
- backgroundOpacity: N.value.backgroundOpacity,
1535
- position: N.value.position,
1536
- offsetX: N.value.offsetX,
1537
- offsetY: N.value.offsetY,
1538
- parent: k.value,
1539
- content: Vt.value,
1540
- isCustom: N.value.customFormat && typeof N.value.customFormat == "function",
1541
- fontSize: N.value.fontSize,
1542
- isFullscreen: br.value,
1543
- smooth: N.value.smooth,
1544
- backdropFilter: N.value.backdropFilter,
1545
- smoothForce: N.value.smoothForce,
1546
- smoothSnapThreshold: N.value.smoothSnapThreshold,
1547
- isA11yMode: en.value === "keyboard",
1548
- a11yPosition: $t.value
1549
- }, {
1550
- "tooltip-before": T(() => [C(e.$slots, "tooltip-before", v(g({ ...Qn.value })), void 0, !0)]),
1551
- tooltip: T(() => [C(e.$slots, "tooltip", v(g({ ...Qn.value })), void 0, !0)]),
1552
- "tooltip-after": T(() => [C(e.$slots, "tooltip-after", v(g({ ...Qn.value })), void 0, !0)]),
1553
- _: 3
1554
- }, 8, [
1555
- "teleportTo",
1556
- "show",
1557
- "backgroundColor",
1558
- "color",
1559
- "borderRadius",
1560
- "borderColor",
1561
- "borderWidth",
1562
- "backgroundOpacity",
1563
- "position",
1564
- "offsetX",
1565
- "offsetY",
1566
- "parent",
1567
- "content",
1568
- "isCustom",
1569
- "fontSize",
1570
- "isFullscreen",
1571
- "smooth",
1572
- "backdropFilter",
1573
- "smoothForce",
1574
- "smoothSnapThreshold",
1575
- "isA11yMode",
1576
- "a11yPosition"
1577
- ]),
1578
- zt.value && M.value.buttons.table ? (b(), d(Ke(Dr.value.component), He({ key: 8 }, Dr.value.props, {
1579
- ref_key: "tableUnit",
1580
- ref: Zt,
1581
- onClose: Or
1582
- }), ze({
1583
- content: T(() => [(b(), d(w(Ot), {
1584
- key: `table_${Jt.value}`,
1585
- colNames: yr.value.colNames,
1586
- head: yr.value.head,
1587
- body: yr.value.body,
1588
- config: yr.value.config,
1589
- title: j.value.table.useDialog ? "" : Dr.value.title,
1590
- withCloseButton: !j.value.table.useDialog,
1591
- isCursorPointer: rn.value,
1592
- onClose: Or
1593
- }, {
1594
- th: T(({ th: e }) => [e === "__SUM__" ? (b(), p("div", wt, [Ve(w(Dt), {
1595
- name: "sigma",
1596
- stroke: yr.value.config.th.color,
1597
- size: 16
1598
- }, null, 8, ["stroke"])])) : (b(), p("div", Tt, Je(e), 1))]),
1599
- td: T(({ td: e }) => [Be(Je(e.name || e), 1)]),
1600
- _: 1
1601
- }, 8, [
1602
- "colNames",
1603
- "head",
1604
- "body",
1605
- "config",
1606
- "title",
1607
- "withCloseButton",
1608
- "isCursorPointer"
1609
- ]))]),
1610
- _: 2
1611
- }, [j.value.table.useDialog ? {
1612
- name: "title",
1613
- fn: T(() => [Be(Je(Dr.value.title), 1)]),
1614
- key: "0"
1615
- } : void 0, j.value.table.useDialog ? {
1616
- name: "actions",
1617
- fn: T(() => [m("button", {
1618
- tabindex: "0",
1619
- class: "vue-ui-user-options-button",
1620
- onClick: t[1] ||= (e) => vr(M.value.callbacks.csv),
1621
- style: y({ cursor: rn.value ? "pointer" : "default" })
1622
- }, [Ve(w(Dt), {
1623
- name: "fileCsv",
1624
- stroke: Dr.value.props.color
1625
- }, null, 8, ["stroke"])], 4)]),
1626
- key: "1"
1627
- } : void 0]), 1040)) : f("", !0),
1628
- C(e.$slots, "skeleton", {}, () => [w(on) ? (b(), d(ve, { key: 0 })) : f("", !0)], !0)
1629
- ], 46, $e));
1630
- }
1631
- }, [["__scopeId", "data-v-3cc0d931"]]);
1632
- //#endregion
1633
- export { Qe as n, Et as t };