vue-data-ui 3.19.9 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/package.json +120 -120
  2. package/dist/A11yDataTable-q2-8fSlJ.js +0 -45
  3. package/dist/Arrow-Cj6W6Xbi.js +0 -116
  4. package/dist/BaseDraggableDialog-DUUu2E2Q.js +0 -272
  5. package/dist/BaseIcon-DM1x8hQF.js +0 -502
  6. package/dist/BaseLegendToggle-CJTwLGXL.js +0 -56
  7. package/dist/BaseScanner-C7dmAref.js +0 -27
  8. package/dist/BaseZoomControls-BkajQ8q9.js +0 -111
  9. package/dist/ColorPicker-DTQeqKUV.js +0 -255
  10. package/dist/DataTable-DmE8Oo4i.js +0 -150
  11. package/dist/Legend-Gg5Q4Clb.js +0 -114
  12. package/dist/NonSvgPenAndPaper-tvWXeCsd.js +0 -577
  13. package/dist/PackageVersion-Dl9W5zJD.js +0 -11
  14. package/dist/PenAndPaper-DNgm6y3l.js +0 -461
  15. package/dist/RecursiveCircles-DPpLel6f.js +0 -117
  16. package/dist/RecursiveLabels-DBMJf_to.js +0 -56
  17. package/dist/RecursiveLinks-D06dBL4a.js +0 -78
  18. package/dist/Shape-DEGOZ6GG.js +0 -141
  19. package/dist/Slicer-CPWGgGSp.js +0 -1144
  20. package/dist/SlicerPreview-BU3ZeHjR.js +0 -1555
  21. package/dist/SparkTooltip-c2DL7gqD.js +0 -93
  22. package/dist/Title-__gWq2g6.js +0 -87
  23. package/dist/Tooltip-CuWEYGr3.js +0 -312
  24. package/dist/UserOptions-D7zR0tnR.js +0 -1411
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +0 -8
  26. package/dist/canvas-lib-DTaADQOK.js +0 -79
  27. package/dist/components/arrow.js +0 -2
  28. package/dist/components/vue-ui-3d-bar.js +0 -2
  29. package/dist/components/vue-ui-accordion.js +0 -2
  30. package/dist/components/vue-ui-age-pyramid.js +0 -2
  31. package/dist/components/vue-ui-annotator.js +0 -2
  32. package/dist/components/vue-ui-bullet.js +0 -2
  33. package/dist/components/vue-ui-bump.js +0 -2
  34. package/dist/components/vue-ui-candlestick.js +0 -2
  35. package/dist/components/vue-ui-carousel-table.js +0 -2
  36. package/dist/components/vue-ui-chestnut.js +0 -2
  37. package/dist/components/vue-ui-chord.js +0 -2
  38. package/dist/components/vue-ui-circle-pack.js +0 -2
  39. package/dist/components/vue-ui-cursor.js +0 -2
  40. package/dist/components/vue-ui-dag.js +0 -2
  41. package/dist/components/vue-ui-dashboard.js +0 -2
  42. package/dist/components/vue-ui-digits.js +0 -2
  43. package/dist/components/vue-ui-donut-evolution.js +0 -2
  44. package/dist/components/vue-ui-donut.js +0 -2
  45. package/dist/components/vue-ui-dumbbell.js +0 -2
  46. package/dist/components/vue-ui-flow.js +0 -2
  47. package/dist/components/vue-ui-funnel.js +0 -2
  48. package/dist/components/vue-ui-galaxy.js +0 -2
  49. package/dist/components/vue-ui-gauge.js +0 -2
  50. package/dist/components/vue-ui-geo.js +0 -2
  51. package/dist/components/vue-ui-gizmo.js +0 -2
  52. package/dist/components/vue-ui-heatmap.js +0 -2
  53. package/dist/components/vue-ui-history-plot.js +0 -2
  54. package/dist/components/vue-ui-horizontal-bar.js +0 -2
  55. package/dist/components/vue-ui-icon.js +0 -2
  56. package/dist/components/vue-ui-kpi.js +0 -2
  57. package/dist/components/vue-ui-mini-loader.js +0 -2
  58. package/dist/components/vue-ui-molecule.js +0 -2
  59. package/dist/components/vue-ui-mood-radar.js +0 -2
  60. package/dist/components/vue-ui-nested-donuts.js +0 -2
  61. package/dist/components/vue-ui-onion.js +0 -2
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
  63. package/dist/components/vue-ui-pattern-seed.js +0 -2
  64. package/dist/components/vue-ui-pattern.js +0 -2
  65. package/dist/components/vue-ui-quadrant.js +0 -2
  66. package/dist/components/vue-ui-quick-chart.js +0 -2
  67. package/dist/components/vue-ui-radar.js +0 -2
  68. package/dist/components/vue-ui-rating.js +0 -2
  69. package/dist/components/vue-ui-relation-circle.js +0 -2
  70. package/dist/components/vue-ui-ridgeline.js +0 -2
  71. package/dist/components/vue-ui-rings.js +0 -2
  72. package/dist/components/vue-ui-scatter.js +0 -2
  73. package/dist/components/vue-ui-skeleton.js +0 -2
  74. package/dist/components/vue-ui-smiley.js +0 -2
  75. package/dist/components/vue-ui-spark-trend.js +0 -2
  76. package/dist/components/vue-ui-sparkbar.js +0 -2
  77. package/dist/components/vue-ui-sparkgauge.js +0 -2
  78. package/dist/components/vue-ui-sparkhistogram.js +0 -2
  79. package/dist/components/vue-ui-sparkline.js +0 -2
  80. package/dist/components/vue-ui-sparkstackbar.js +0 -2
  81. package/dist/components/vue-ui-stackbar.js +0 -2
  82. package/dist/components/vue-ui-stackline.js +0 -2
  83. package/dist/components/vue-ui-strip-plot.js +0 -2
  84. package/dist/components/vue-ui-table-heatmap.js +0 -2
  85. package/dist/components/vue-ui-table-sparkline.js +0 -2
  86. package/dist/components/vue-ui-table.js +0 -2
  87. package/dist/components/vue-ui-thermometer.js +0 -2
  88. package/dist/components/vue-ui-timer.js +0 -2
  89. package/dist/components/vue-ui-tiremarks.js +0 -2
  90. package/dist/components/vue-ui-treemap.js +0 -2
  91. package/dist/components/vue-ui-vertical-bar.js +0 -2
  92. package/dist/components/vue-ui-waffle.js +0 -2
  93. package/dist/components/vue-ui-wheel.js +0 -2
  94. package/dist/components/vue-ui-word-cloud.js +0 -2
  95. package/dist/components/vue-ui-world.js +0 -2
  96. package/dist/components/vue-ui-xy-canvas.js +0 -2
  97. package/dist/components/vue-ui-xy.js +0 -2
  98. package/dist/dom-to-png-9WSt6hXe.js +0 -237
  99. package/dist/exposedLib-CwWU4zv-.js +0 -19
  100. package/dist/geoProjections-CQIkC70z.js +0 -146
  101. package/dist/img-BjOr008R.js +0 -74
  102. package/dist/labelUtils-Cr97N8E1.js +0 -19
  103. package/dist/lib-BkiwukKO.js +0 -1879
  104. package/dist/llms.txt +0 -232
  105. package/dist/patternUtils-B7BWu5bV.js +0 -258
  106. package/dist/pdf-DSXSFUnK.js +0 -90
  107. package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
  108. package/dist/style.css +0 -2
  109. package/dist/types/arrow.d.ts +0 -4
  110. package/dist/types/utils.d.ts +0 -551
  111. package/dist/types/vue-data-ui.d.ts +0 -15826
  112. package/dist/types/vue-ui-3d-bar.d.ts +0 -78
  113. package/dist/types/vue-ui-accordion.d.ts +0 -11
  114. package/dist/types/vue-ui-age-pyramid.d.ts +0 -95
  115. package/dist/types/vue-ui-annotator.d.ts +0 -12
  116. package/dist/types/vue-ui-bullet.d.ts +0 -72
  117. package/dist/types/vue-ui-bump.d.ts +0 -77
  118. package/dist/types/vue-ui-candlestick.d.ts +0 -93
  119. package/dist/types/vue-ui-carousel-table.d.ts +0 -46
  120. package/dist/types/vue-ui-chestnut.d.ts +0 -79
  121. package/dist/types/vue-ui-chord.d.ts +0 -91
  122. package/dist/types/vue-ui-circle-pack.d.ts +0 -111
  123. package/dist/types/vue-ui-cursor.d.ts +0 -9
  124. package/dist/types/vue-ui-dag.d.ts +0 -106
  125. package/dist/types/vue-ui-dashboard.d.ts +0 -53
  126. package/dist/types/vue-ui-digits.d.ts +0 -12
  127. package/dist/types/vue-ui-donut-evolution.d.ts +0 -81
  128. package/dist/types/vue-ui-donut.d.ts +0 -106
  129. package/dist/types/vue-ui-dumbbell.d.ts +0 -79
  130. package/dist/types/vue-ui-flow.d.ts +0 -93
  131. package/dist/types/vue-ui-funnel.d.ts +0 -66
  132. package/dist/types/vue-ui-galaxy.d.ts +0 -97
  133. package/dist/types/vue-ui-gauge.d.ts +0 -76
  134. package/dist/types/vue-ui-geo.d.ts +0 -81
  135. package/dist/types/vue-ui-gizmo.d.ts +0 -22
  136. package/dist/types/vue-ui-heatmap.d.ts +0 -86
  137. package/dist/types/vue-ui-history-plot.d.ts +0 -97
  138. package/dist/types/vue-ui-horizontal-bar.d.ts +0 -99
  139. package/dist/types/vue-ui-icon.d.ts +0 -15
  140. package/dist/types/vue-ui-kpi.d.ts +0 -25
  141. package/dist/types/vue-ui-mini-loader.d.ts +0 -15
  142. package/dist/types/vue-ui-molecule.d.ts +0 -97
  143. package/dist/types/vue-ui-mood-radar.d.ts +0 -79
  144. package/dist/types/vue-ui-nested-donuts.d.ts +0 -94
  145. package/dist/types/vue-ui-onion.d.ts +0 -91
  146. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -108
  147. package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
  148. package/dist/types/vue-ui-pattern.d.ts +0 -15
  149. package/dist/types/vue-ui-quadrant.d.ts +0 -102
  150. package/dist/types/vue-ui-quick-chart.d.ts +0 -89
  151. package/dist/types/vue-ui-radar.d.ts +0 -101
  152. package/dist/types/vue-ui-rating.d.ts +0 -31
  153. package/dist/types/vue-ui-relation-circle.d.ts +0 -79
  154. package/dist/types/vue-ui-ridgeline.d.ts +0 -85
  155. package/dist/types/vue-ui-rings.d.ts +0 -83
  156. package/dist/types/vue-ui-scatter.d.ts +0 -82
  157. package/dist/types/vue-ui-skeleton.d.ts +0 -11
  158. package/dist/types/vue-ui-smiley.d.ts +0 -12
  159. package/dist/types/vue-ui-spark-trend.d.ts +0 -19
  160. package/dist/types/vue-ui-sparkbar.d.ts +0 -36
  161. package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
  162. package/dist/types/vue-ui-sparkhistogram.d.ts +0 -33
  163. package/dist/types/vue-ui-sparkline.d.ts +0 -44
  164. package/dist/types/vue-ui-sparkstackbar.d.ts +0 -45
  165. package/dist/types/vue-ui-stackbar.d.ts +0 -97
  166. package/dist/types/vue-ui-stackline.d.ts +0 -93
  167. package/dist/types/vue-ui-strip-plot.d.ts +0 -81
  168. package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
  169. package/dist/types/vue-ui-table-sparkline.d.ts +0 -40
  170. package/dist/types/vue-ui-table.d.ts +0 -25
  171. package/dist/types/vue-ui-thermometer.d.ts +0 -57
  172. package/dist/types/vue-ui-timer.d.ts +0 -36
  173. package/dist/types/vue-ui-tiremarks.d.ts +0 -57
  174. package/dist/types/vue-ui-treemap.d.ts +0 -87
  175. package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
  176. package/dist/types/vue-ui-waffle.d.ts +0 -86
  177. package/dist/types/vue-ui-wheel.d.ts +0 -57
  178. package/dist/types/vue-ui-word-cloud.d.ts +0 -84
  179. package/dist/types/vue-ui-world.d.ts +0 -81
  180. package/dist/types/vue-ui-xy-canvas.d.ts +0 -84
  181. package/dist/types/vue-ui-xy.d.ts +0 -125
  182. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +0 -50
  183. package/dist/useChartAccessibility-Do37qcw2.js +0 -12
  184. package/dist/useConfig-ByaaSKhz.js +0 -7471
  185. package/dist/useFitSvgText-C-MEdAfe.js +0 -63
  186. package/dist/useNestedProp-Ck4hsrpu.js +0 -10
  187. package/dist/useObjectBindings-BR1sGimd.js +0 -189
  188. package/dist/usePanZoom-B-4M_gmY.js +0 -157
  189. package/dist/usePrefersMotion-BywLbIko.js +0 -15
  190. package/dist/usePrinter-X0yWOynH.js +0 -49
  191. package/dist/useResponsive-CrAInupd.js +0 -19
  192. package/dist/useStableElementSize-0I1IpHPl.js +0 -77
  193. package/dist/useSvgExport-Dtu973wa.js +0 -755
  194. package/dist/useTableResponsive-DrM1xqII.js +0 -24
  195. package/dist/useThemeCheck-rFK9Zlb_.js +0 -24
  196. package/dist/useTimeLabelCollider-Dm55Emzg.js +0 -57
  197. package/dist/useTimeLabels-C0x7zUXP.js +0 -272
  198. package/dist/useUserOptionState-CjPJPTg2.js +0 -15
  199. package/dist/utils.js +0 -28
  200. package/dist/vClickOutside-CbX_bC9A.js +0 -13
  201. package/dist/vue-data-ui-nsosW-n5.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-CTvvvgBE.js +0 -1757
  204. package/dist/vue-ui-accordion-BX9WL-QF.js +0 -81
  205. package/dist/vue-ui-age-pyramid-ckZtLlmH.js +0 -1238
  206. package/dist/vue-ui-annotator-Be3VpH8Z.js +0 -2899
  207. package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
  208. package/dist/vue-ui-bump-LQuPTOlm.js +0 -1249
  209. package/dist/vue-ui-candlestick-BeO06tlH.js +0 -1826
  210. package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
  211. package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
  212. package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
  213. package/dist/vue-ui-circle-pack-DyTYvEg3.js +0 -1608
  214. package/dist/vue-ui-cursor-C5_wkWul.js +0 -283
  215. package/dist/vue-ui-dag-mH0baWM3.js +0 -2909
  216. package/dist/vue-ui-dashboard-F7pEuJDh.js +0 -513
  217. package/dist/vue-ui-digits-BYBtwXy_.js +0 -209
  218. package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-C46h0gLy.js +0 -1510
  220. package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
  221. package/dist/vue-ui-flow-BYYyk5KL.js +0 -1235
  222. package/dist/vue-ui-funnel-BfY509t-.js +0 -777
  223. package/dist/vue-ui-galaxy-D061gTYS.js +0 -1077
  224. package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
  225. package/dist/vue-ui-geo-BwOMFUVr.js +0 -1516
  226. package/dist/vue-ui-gizmo-CQsP8Nd3.js +0 -225
  227. package/dist/vue-ui-heatmap-DOsulVoP.js +0 -1568
  228. package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
  229. package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
  230. package/dist/vue-ui-kpi-CE-JFZ1o.js +0 -96
  231. package/dist/vue-ui-mini-loader-DDJUya9e.js +0 -125
  232. package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
  233. package/dist/vue-ui-mood-radar-B29gVcTN.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
  235. package/dist/vue-ui-onion-MN-PjNJq.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-C9zU7MP5.js +0 -1421
  237. package/dist/vue-ui-pattern-Bj-IPFr2.js +0 -154
  238. package/dist/vue-ui-pattern-seed-abRweCDE.js +0 -61
  239. package/dist/vue-ui-quadrant-h-QFG9O4.js +0 -1978
  240. package/dist/vue-ui-quick-chart-PAVz4c9z.js +0 -2469
  241. package/dist/vue-ui-radar-D2pVd53z.js +0 -1229
  242. package/dist/vue-ui-rating-D_QR_A3V.js +0 -343
  243. package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
  244. package/dist/vue-ui-ridgeline-DamvqiyJ.js +0 -1622
  245. package/dist/vue-ui-rings-DkHS5dwd.js +0 -1246
  246. package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
  247. package/dist/vue-ui-skeleton-zhkS1cmh.js +0 -2556
  248. package/dist/vue-ui-smiley-rFdGxZK6.js +0 -356
  249. package/dist/vue-ui-spark-trend-fQ10-UvM.js +0 -438
  250. package/dist/vue-ui-sparkbar-D5toou8V.js +0 -393
  251. package/dist/vue-ui-sparkgauge-DRZcIPYf.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-YizEqFdN.js +0 -560
  253. package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
  255. package/dist/vue-ui-stackbar-BFLCEsRk.js +0 -2267
  256. package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
  257. package/dist/vue-ui-strip-plot-ByaDLFSL.js +0 -1340
  258. package/dist/vue-ui-table-DuA_CfGn.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-BFKyJTr1.js +0 -344
  260. package/dist/vue-ui-table-sparkline-Dfei_QrJ.js +0 -707
  261. package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
  262. package/dist/vue-ui-timer-9LNNDl4q.js +0 -439
  263. package/dist/vue-ui-tiremarks-kF0Baqia.js +0 -552
  264. package/dist/vue-ui-treemap-BexKMBhz.js +0 -1587
  265. package/dist/vue-ui-waffle-Dq50j_uw.js +0 -1362
  266. package/dist/vue-ui-wheel-BETHlWsO.js +0 -885
  267. package/dist/vue-ui-word-cloud-D1AQtzmT.js +0 -1656
  268. package/dist/vue-ui-world-CcgbuSp_.js +0 -14264
  269. package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
  270. package/dist/vue-ui-xy-canvas-4ABYnasj.js +0 -1786
  271. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +0 -185
  272. package/dist/vue_ui_age_pyramid-BON8QI6X.js +0 -301
  273. package/dist/vue_ui_bullet-CE5sFT7u.js +0 -186
  274. package/dist/vue_ui_bump-frnXaXul.js +0 -201
  275. package/dist/vue_ui_candlestick-sY6UtOop.js +0 -374
  276. package/dist/vue_ui_chestnut-BiUZFv40.js +0 -305
  277. package/dist/vue_ui_chord-DpyR_b9A.js +0 -275
  278. package/dist/vue_ui_circle_pack-FjH0ZQeb.js +0 -172
  279. package/dist/vue_ui_dag-Ci_MOnvd.js +0 -258
  280. package/dist/vue_ui_donut-Cx2_BGcQ.js +0 -358
  281. package/dist/vue_ui_donut_evolution-CAJefrHs.js +0 -717
  282. package/dist/vue_ui_dumbbell-CClzAZTN.js +0 -304
  283. package/dist/vue_ui_flow-CCHO1Lo9.js +0 -238
  284. package/dist/vue_ui_funnel-h8q2mRpC.js +0 -234
  285. package/dist/vue_ui_galaxy-70vtkEBw.js +0 -265
  286. package/dist/vue_ui_gauge-C17CgfzN.js +0 -178
  287. package/dist/vue_ui_geo-C0UbQ0Lc.js +0 -248
  288. package/dist/vue_ui_heatmap-BqPP3J4M.js +0 -319
  289. package/dist/vue_ui_history_plot-C5nytDHh.js +0 -413
  290. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +0 -341
  291. package/dist/vue_ui_molecule-Dka4JBOp.js +0 -231
  292. package/dist/vue_ui_mood_radar-Dg4ijm53.js +0 -281
  293. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +0 -273
  294. package/dist/vue_ui_onion-DTV9cup-.js +0 -293
  295. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +0 -278
  296. package/dist/vue_ui_quadrant-3kjYvxpj.js +0 -428
  297. package/dist/vue_ui_quick_chart--VaYQuM4.js +0 -139
  298. package/dist/vue_ui_radar-Dxx9GJmj.js +0 -306
  299. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +0 -98
  300. package/dist/vue_ui_ridgeline-CAtYca4b.js +0 -767
  301. package/dist/vue_ui_rings-DXC1VeX5.js +0 -320
  302. package/dist/vue_ui_scatter-D2S2j0ap.js +0 -479
  303. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +0 -82
  304. package/dist/vue_ui_sparkbar-BR6hbuDE.js +0 -64
  305. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +0 -90
  306. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +0 -123
  307. package/dist/vue_ui_sparkline-wgk7yO7E.js +0 -151
  308. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +0 -175
  309. package/dist/vue_ui_stackbar-BW_C3MXw.js +0 -412
  310. package/dist/vue_ui_stackline-DXxzibUd.js +0 -460
  311. package/dist/vue_ui_strip_plot-8ZelqC5b.js +0 -301
  312. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +0 -80
  313. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +0 -124
  314. package/dist/vue_ui_thermometer-CuN7Gpez.js +0 -123
  315. package/dist/vue_ui_tiremarks-A6UHC0c3.js +0 -122
  316. package/dist/vue_ui_treemap-BQp06q-g.js +0 -328
  317. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +0 -247
  318. package/dist/vue_ui_waffle-C_Ev4l7B.js +0 -292
  319. package/dist/vue_ui_wheel-DdkTPXJU.js +0 -133
  320. package/dist/vue_ui_word_cloud-B1PbsYPc.js +0 -254
  321. package/dist/vue_ui_xy-BYPqfYyx.js +0 -482
  322. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +0 -408
@@ -1,1362 +0,0 @@
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-BkiwukKO.js";
3
- import { t as de } from "./useConfig-ByaaSKhz.js";
4
- import { t as fe } from "./usePrinter-X0yWOynH.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-Ck4hsrpu.js";
8
- import { t as _e } from "./useThemeCheck-rFK9Zlb_.js";
9
- import { t as ve } from "./img-BjOr008R.js";
10
- import { n as ye } from "./Title-__gWq2g6.js";
11
- import { t as be } from "./Shape-DEGOZ6GG.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-CJTwLGXL.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-Cr97N8E1.js";
20
- import { t as ke } from "./Legend-Gg5Q4Clb.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-CuWEYGr3.js")), _t = g(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), vt = g(() => import("./DataTable-DmE8Oo4i.js")), yt = g(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), bt = g(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), xt = g(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), St = g(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Ct = g(() => import("./BaseDraggableDialog-DUUu2E2Q.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
- e.$slots["custom-menu-before"] ? {
1038
- name: "custom-menu-before",
1039
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1040
- key: "10"
1041
- } : void 0,
1042
- e.$slots["custom-menu-after"] ? {
1043
- name: "custom-menu-after",
1044
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1045
- key: "11"
1046
- } : void 0
1047
- ]), 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),
1048
- h("div", Xe, [(y(), m("svg", {
1049
- ref_key: "svgRef",
1050
- ref: P,
1051
- xmlns: w(se),
1052
- "aria-describedby": `chart-instructions-${D.value}`,
1053
- class: Le({
1054
- "vue-data-ui-fullscreen--on": $.value,
1055
- "vue-data-ui-fulscreen--off": !$.value
1056
- }),
1057
- tabindex: "0",
1058
- viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
1059
- style: Re(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
1060
- onFocus: cr,
1061
- onBlur: lr,
1062
- onKeydown: ur
1063
- }, [
1064
- Pe(w(St)),
1065
- h("defs", null, [(y(!0), m(u, null, x(W.value, (e, t) => (y(), m("radialGradient", {
1066
- cx: "50%",
1067
- cy: "50%",
1068
- r: "50%",
1069
- fx: "50%",
1070
- fy: "50%",
1071
- id: `gradient_${D.value}_${t}`
1072
- }, [h("stop", {
1073
- offset: "0%",
1074
- "stop-color": w(te)(w(a)(e.color, .05), 100 - M.value.style.chart.layout.rect.gradientIntensity)
1075
- }, null, 8, $e), h("stop", {
1076
- offset: "100%",
1077
- "stop-color": e.color
1078
- }, null, 8, et)], 8, Qe))), 256))]),
1079
- h("defs", null, [h("filter", {
1080
- id: `blur_${D.value}`,
1081
- x: "-50%",
1082
- y: "-50%",
1083
- width: "200%",
1084
- height: "200%"
1085
- }, [...t[4] ||= [h("feGaussianBlur", {
1086
- in: "SourceGraphic",
1087
- stdDeviation: 2
1088
- }, null, -1), h("feColorMatrix", {
1089
- type: "saturate",
1090
- values: "0"
1091
- }, null, -1)]], 8, tt)]),
1092
- M.value.useCustomCells && W.value.length && e.$slots.cell ? (y(!0), m(u, { key: 0 }, x(G.value, (t, n) => (y(), m("foreignObject", {
1093
- x: t.x,
1094
- y: t.y,
1095
- height: V.value <= 0 ? 1e-4 : V.value,
1096
- width: B.value <= 0 ? 1e-4 : B.value,
1097
- class: "vue-ui-waffle-custom-cell-foreignObject"
1098
- }, [S(e.$slots, "cell", Fe({ ref_for: !0 }, {
1099
- cell: {
1100
- ...t,
1101
- color: W.value[n].color,
1102
- height: Math.max(0, V.value),
1103
- width: Math.max(0, B.value),
1104
- ...W.value[n]
1105
- },
1106
- isSelected: [null, void 0].includes(O.value) ? !0 : W.value[n].serieIndex === O.value
1107
- }), void 0, !0)], 8, nt))), 256)) : p("", !0),
1108
- !W.value.length && !M.value.useCustomCells ? (y(), m("rect", {
1109
- key: 1,
1110
- x: 12,
1111
- y: 12,
1112
- height: z.value.height - 24,
1113
- width: z.value.width - 24,
1114
- rx: 3,
1115
- fill: "none",
1116
- stroke: "black"
1117
- }, null, 8, rt)) : W.value.length && !M.value.useCustomCells ? (y(), m(u, { key: 2 }, [
1118
- 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 }, {
1119
- seriesIndex: t.absoluteIndex,
1120
- patternId: `pattern_${D.value}_${t.absoluteIndex}`
1121
- }), void 0, !0)]))), 256))])) : p("", !0),
1122
- (y(!0), m(u, null, x(G.value, (e, t) => (y(), m("rect", {
1123
- rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
1124
- x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1125
- y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1126
- height: V.value <= 0 ? 1e-4 : V.value,
1127
- width: B.value <= 0 ? 1e-4 : B.value,
1128
- fill: "white",
1129
- stroke: M.value.style.chart.layout.rect.stroke,
1130
- "stroke-width": M.value.style.chart.layout.rect.strokeWidth,
1131
- filter: Hn(W.value[t].serieIndex)
1132
- }, null, 8, at))), 256)),
1133
- (y(!0), m(u, null, x(G.value, (e, t) => (y(), m("rect", {
1134
- rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
1135
- x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1136
- y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1137
- height: V.value <= 0 ? 1e-4 : V.value,
1138
- width: B.value <= 0 ? 1e-4 : B.value,
1139
- 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,
1140
- stroke: M.value.style.chart.layout.rect.stroke,
1141
- "stroke-width": M.value.style.chart.layout.rect.strokeWidth,
1142
- filter: Hn(W.value[t].serieIndex)
1143
- }, null, 8, ot))), 256)),
1144
- e.$slots.pattern ? (y(), m("g", st, [(y(!0), m(u, null, x(G.value, (e, t) => (y(), m("rect", {
1145
- rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
1146
- x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1147
- y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1148
- height: V.value <= 0 ? 1e-4 : V.value,
1149
- width: B.value <= 0 ? 1e-4 : B.value,
1150
- fill: `url(#pattern_${D.value}_${W.value[t].absoluteIndex})`,
1151
- stroke: "none",
1152
- filter: Hn(W.value[t].serieIndex)
1153
- }, null, 8, ct))), 256))])) : p("", !0)
1154
- ], 64)) : p("", !0),
1155
- 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 }, {
1156
- cell: {
1157
- ...t,
1158
- color: W.value[n].color,
1159
- height: Math.max(0, V.value),
1160
- width: Math.max(0, B.value),
1161
- ...W.value[n]
1162
- },
1163
- isSelected: [null, void 0].includes(O.value) ? !0 : W.value[n].serieIndex === O.value
1164
- }), void 0, !0)]))), 256)) : p("", !0),
1165
- (y(!0), m(u, null, x(G.value, (e, t) => (y(), m(u, null, [Un(t, e) ? (y(), m("text", {
1166
- key: `datalabel_${t}`,
1167
- textContent: C(Wn(t, e)),
1168
- x: e.x + M.value.style.chart.layout.labels.captions.offsetX + M.value.style.chart.layout.grid.spaceBetween / 2 + 6,
1169
- 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,
1170
- "font-size": M.value.style.chart.layout.labels.captions.fontSize,
1171
- fill: w(oe)(W.value[t].color),
1172
- filter: Hn(W.value[t].serieIndex)
1173
- }, null, 8, lt)) : p("", !0)], 64))), 256)),
1174
- (y(!0), m(u, null, x(G.value, (e, t) => (y(), m("rect", {
1175
- x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
1176
- y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
1177
- height: un.value,
1178
- width: ln.value,
1179
- fill: "transparent",
1180
- stroke: "none",
1181
- onMouseover: (e) => Bn(t),
1182
- onMouseleave: (e) => zn(t),
1183
- onClick: (e) => Rn(t)
1184
- }, null, 40, ut))), 256)),
1185
- S(e.$slots, "svg", { svg: {
1186
- ...R.value,
1187
- isPrintingImg: w(nn) || w(rn) || Ht.value,
1188
- isPrintingSvg: Ut.value
1189
- } }, void 0, !0)
1190
- ], 46, Ze)), e.$slots.hint ? (y(), m("div", dt, [S(e.$slots, "hint", v(_({
1191
- hint: M.value.a11y.translations.keyboardNavigation,
1192
- isVisible: Gt.value
1193
- })), void 0, !0)])) : p("", !0)]),
1194
- 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),
1195
- h("div", { id: `legend-bottom-${D.value}` }, null, 8, pt),
1196
- zt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (y(), f(je, {
1197
- key: 6,
1198
- to: M.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
1199
- }, [h("div", {
1200
- ref_key: "chartLegend",
1201
- ref: Nt
1202
- }, [S(e.$slots, "legend", { legend: J.value }, () => [M.value.style.chart.legend.show ? (y(), f(ke, {
1203
- key: `legend_${Rt.value}`,
1204
- legendSet: J.value,
1205
- config: Nn.value,
1206
- isCursorPointer: N.value,
1207
- onClickMarker: t[0] ||= ({ legend: e }) => q(e.uid)
1208
- }, Me({
1209
- item: T(({ legend: e }) => [h("div", {
1210
- onClick: (t) => e.segregate(),
1211
- style: Re(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
1212
- }, C(e.display), 13, mt)]),
1213
- legendToggle: T(() => [J.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !w(qt) ? (y(), f(we, {
1214
- key: 0,
1215
- backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
1216
- color: M.value.style.chart.legend.selectAllToggle.color,
1217
- fontSize: M.value.style.chart.legend.fontSize,
1218
- checked: K.value.length > 0,
1219
- isCursorPointer: N.value,
1220
- onToggle: On
1221
- }, null, 8, [
1222
- "backgroundColor",
1223
- "color",
1224
- "fontSize",
1225
- "checked",
1226
- "isCursorPointer"
1227
- ])) : p("", !0)]),
1228
- _: 2
1229
- }, [e.$slots.pattern ? {
1230
- name: "legend-pattern",
1231
- fn: T(({ legend: e, index: t }) => [Pe(be, {
1232
- shape: e.shape,
1233
- radius: 30,
1234
- stroke: "none",
1235
- plot: {
1236
- x: 30,
1237
- y: 30
1238
- },
1239
- fill: `url(#pattern_${D.value}_${t})`
1240
- }, null, 8, ["shape", "fill"])]),
1241
- key: "0"
1242
- } : void 0]), 1032, [
1243
- "legendSet",
1244
- "config",
1245
- "isCursorPointer"
1246
- ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1247
- e.$slots.source ? (y(), m("div", {
1248
- key: 7,
1249
- ref_key: "source",
1250
- ref: Pt,
1251
- dir: "auto"
1252
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1253
- Pe(w(gt), {
1254
- teleportTo: M.value.style.chart.tooltip.teleportTo,
1255
- show: L.value.showTooltip && kt.value && K.value.length < E.dataset.length,
1256
- backgroundColor: M.value.style.chart.tooltip.backgroundColor,
1257
- color: M.value.style.chart.tooltip.color,
1258
- borderRadius: M.value.style.chart.tooltip.borderRadius,
1259
- borderColor: M.value.style.chart.tooltip.borderColor,
1260
- borderWidth: M.value.style.chart.tooltip.borderWidth,
1261
- backgroundOpacity: M.value.style.chart.tooltip.backgroundOpacity,
1262
- position: M.value.style.chart.tooltip.position,
1263
- offsetX: M.value.style.chart.tooltip.offsetX,
1264
- offsetY: M.value.style.chart.tooltip.offsetY,
1265
- parent: k.value,
1266
- content: At.value,
1267
- isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
1268
- fontSize: M.value.style.chart.tooltip.fontSize,
1269
- isFullscreen: $.value,
1270
- smooth: M.value.style.chart.tooltip.smooth,
1271
- backdropFilter: M.value.style.chart.tooltip.backdropFilter,
1272
- smoothForce: M.value.style.chart.tooltip.smoothForce,
1273
- smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
1274
- isA11yMode: j.value === "keyboard",
1275
- a11yPosition: Wt.value
1276
- }, {
1277
- "tooltip-before": T(() => [S(e.$slots, "tooltip-before", v(_({ ...Pn.value })), void 0, !0)]),
1278
- tooltip: T(() => [S(e.$slots, "tooltip", v(_({ ...Pn.value })), void 0, !0)]),
1279
- "tooltip-after": T(() => [S(e.$slots, "tooltip-after", v(_({ ...Pn.value })), void 0, !0)]),
1280
- _: 3
1281
- }, 8, [
1282
- "teleportTo",
1283
- "show",
1284
- "backgroundColor",
1285
- "color",
1286
- "borderRadius",
1287
- "borderColor",
1288
- "borderWidth",
1289
- "backgroundOpacity",
1290
- "position",
1291
- "offsetX",
1292
- "offsetY",
1293
- "parent",
1294
- "content",
1295
- "isCustom",
1296
- "fontSize",
1297
- "isFullscreen",
1298
- "smooth",
1299
- "backdropFilter",
1300
- "smoothForce",
1301
- "smoothSnapThreshold",
1302
- "isA11yMode",
1303
- "a11yPosition"
1304
- ]),
1305
- Ot.value && M.value.userOptions.buttons.table ? (y(), f(Ve(Qn.value.component), Fe({ key: 8 }, Qn.value.props, {
1306
- ref_key: "tableUnit",
1307
- ref: Bt,
1308
- onClose: $n
1309
- }), Me({
1310
- content: T(() => [(y(), f(w(vt), {
1311
- key: `table_${Lt.value}`,
1312
- colNames: Q.value.colNames,
1313
- head: Q.value.head,
1314
- body: Q.value.body,
1315
- config: Q.value.config,
1316
- title: M.value.table.useDialog ? "" : Qn.value.title,
1317
- withCloseButton: !M.value.table.useDialog,
1318
- isCursorPointer: N.value,
1319
- onClose: $n
1320
- }, {
1321
- th: T(({ th: e }) => [h("div", {
1322
- innerHTML: e,
1323
- style: {
1324
- display: "flex",
1325
- "align-items": "center"
1326
- }
1327
- }, null, 8, ht)]),
1328
- td: T(({ td: e }) => [Ne(C(e.name || e), 1)]),
1329
- _: 1
1330
- }, 8, [
1331
- "colNames",
1332
- "head",
1333
- "body",
1334
- "config",
1335
- "title",
1336
- "withCloseButton",
1337
- "isCursorPointer"
1338
- ]))]),
1339
- _: 2
1340
- }, [M.value.table.useDialog ? {
1341
- name: "title",
1342
- fn: T(() => [Ne(C(Qn.value.title), 1)]),
1343
- key: "0"
1344
- } : void 0, M.value.table.useDialog ? {
1345
- name: "actions",
1346
- fn: T(() => [h("button", {
1347
- tabindex: "0",
1348
- class: "vue-ui-user-options-button",
1349
- onClick: t[1] ||= (e) => Gn(M.value.userOptions.callbacks.csv),
1350
- style: Re({ cursor: N.value ? "pointer" : "default" })
1351
- }, [Pe(w(_t), {
1352
- name: "fileCsv",
1353
- stroke: Qn.value.props.color
1354
- }, null, 8, ["stroke"])], 4)]),
1355
- key: "1"
1356
- } : void 0]), 1040)) : p("", !0),
1357
- S(e.$slots, "skeleton", {}, () => [w(qt) ? (y(), f(me, { key: 0 })) : p("", !0)], !0)
1358
- ], 46, qe));
1359
- }
1360
- }, [["__scopeId", "data-v-d885b96a"]]);
1361
- //#endregion
1362
- export { Ke as n, gt as t };