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,1681 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { B as t, G as n, H as r, It as i, J as a, Lt as o, Mt as s, S as ee, St as te, Tt as c, X as ne, at as re, dt as ie, i as ae, jt as oe, nt as se, pt as ce, t as le, v as l, x as ue, y as de, zt as fe } from "./lib-BkiwukKO.js";
3
- import { t as pe } from "./useConfig-ByaaSKhz.js";
4
- import { t as me } from "./usePrinter-X0yWOynH.js";
5
- import { n as he, t as ge } from "./BaseScanner-C7dmAref.js";
6
- import { t as _e } from "./useSvgExport-Dtu973wa.js";
7
- import { t as ve } from "./useNestedProp-Ck4hsrpu.js";
8
- import { t as ye } from "./useThemeCheck-rFK9Zlb_.js";
9
- import { t as be } from "./img-BjOr008R.js";
10
- import { n as xe } from "./Title-__gWq2g6.js";
11
- import { t as Se } from "./Shape-DEGOZ6GG.js";
12
- import { t as Ce } from "./_plugin-vue_export-helper-Dq1MygBL.js";
13
- import { c as we } from "./canvas-lib-DTaADQOK.js";
14
- import { t as Te } from "./useResponsive-CrAInupd.js";
15
- import { t as Ee } from "./vue-ui-accordion-BX9WL-QF.js";
16
- import { t as De } from "./BaseLegendToggle-CJTwLGXL.js";
17
- import { t as Oe } from "./A11yDataTable-q2-8fSlJ.js";
18
- import { t as ke } from "./useUserOptionState-CjPJPTg2.js";
19
- import { t as Ae } from "./useChartAccessibility-Do37qcw2.js";
20
- import { t as je } from "./useTableResponsive-DrM1xqII.js";
21
- import { t as Me } from "./Legend-Gg5Q4Clb.js";
22
- import { t as Ne } from "./vue_ui_horizontal_bar-Bqxorkc_.js";
23
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as Le, guardReactiveProps as g, mergeProps as Re, nextTick as ze, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, onMounted as Ve, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as He, toDisplayString as w, toRefs as Ue, unref as T, useCssVars as We, useSlots as Ge, watch as Ke, withCtx as E, withKeys as qe } from "vue";
24
- //#region src/components/vue-ui-horizontal-bar.vue
25
- var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze = ["onClick"], Qe = { style: { position: "relative" } }, $e = [
26
- "xmlns",
27
- "viewBox",
28
- "aria-describedby"
29
- ], et = ["width", "height"], tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = { key: 1 }, at = [
30
- "y",
31
- "width",
32
- "height",
33
- "fill",
34
- "rx"
35
- ], ot = [
36
- "x",
37
- "y",
38
- "width",
39
- "height",
40
- "fill",
41
- "rx"
42
- ], st = [
43
- "x",
44
- "y",
45
- "width",
46
- "height",
47
- "fill",
48
- "rx",
49
- "stroke",
50
- "stroke-width"
51
- ], ct = [
52
- "x",
53
- "y",
54
- "width",
55
- "height",
56
- "fill",
57
- "rx",
58
- "stroke",
59
- "stroke-width"
60
- ], lt = [
61
- "x1",
62
- "x2",
63
- "y1",
64
- "y2",
65
- "stroke",
66
- "stroke-width"
67
- ], ut = [
68
- "x1",
69
- "x2",
70
- "y1",
71
- "y2",
72
- "stroke",
73
- "stroke-width"
74
- ], dt = { class: "vue-ui-horizontal-bar-parent-label" }, ft = [
75
- "y",
76
- "height",
77
- "width",
78
- "fill"
79
- ], pt = [
80
- "y",
81
- "font-size",
82
- "fill",
83
- "x",
84
- "font-weight",
85
- "innerHTML"
86
- ], mt = [
87
- "y",
88
- "font-size",
89
- "fill",
90
- "x",
91
- "font-weight"
92
- ], ht = { class: "vue-ui-horizontal-bar-child-label" }, gt = [
93
- "x",
94
- "y",
95
- "font-size",
96
- "font-weight",
97
- "innerHTML"
98
- ], _t = { class: "vue-ui-horizontal-bar-child-label" }, vt = [
99
- "x",
100
- "y",
101
- "font-size",
102
- "fill",
103
- "font-weight",
104
- "innerHTML"
105
- ], yt = { class: "vue-ui-horizontal-bar-child-label" }, bt = [
106
- "x",
107
- "y",
108
- "text-anchor",
109
- "font-size",
110
- "fill",
111
- "font-weight"
112
- ], xt = [
113
- "y",
114
- "width",
115
- "height",
116
- "fill",
117
- "onMouseenter",
118
- "onMouseleave",
119
- "onClick"
120
- ], St = {
121
- key: 0,
122
- style: {
123
- position: "absolute",
124
- top: "100%",
125
- left: "0",
126
- width: "100%"
127
- },
128
- "data-dom-to-png-ignore": "",
129
- "aria-hidden": "true"
130
- }, Ct = {
131
- key: 6,
132
- class: "vue-data-ui-watermark"
133
- }, wt = ["onClick"], Tt = { style: "width:100%;padding-top: 36px;position:relative" }, Et = { class: "vue-ui-data-table" }, Dt = { key: 0 }, Ot = { style: { width: "100%" } }, kt = ["data-cell"], At = { style: {
134
- display: "flex",
135
- "align-items": "center",
136
- gap: "5px",
137
- "justify-content": "flex-end",
138
- width: "100%",
139
- "padding-right": "3px"
140
- } }, jt = ["data-cell"], Mt = { style: {
141
- display: "flex",
142
- "align-items": "center",
143
- gap: "5px",
144
- "justify-content": "flex-end",
145
- width: "100%",
146
- "padding-right": "3px"
147
- } }, Nt = ["data-cell"], Pt = { style: {
148
- display: "flex",
149
- "align-items": "center",
150
- gap: "5px",
151
- "justify-content": "flex-end",
152
- width: "100%",
153
- "padding-right": "3px"
154
- } }, Ft = ["data-cell"], It = { style: {
155
- display: "flex",
156
- "align-items": "center",
157
- gap: "5px",
158
- "justify-content": "flex-end",
159
- width: "100%",
160
- "padding-right": "3px"
161
- } }, Lt = ["data-cell"], Rt = { style: {
162
- display: "flex",
163
- "align-items": "center",
164
- gap: "5px",
165
- "justify-content": "flex-end",
166
- width: "100%",
167
- "padding-right": "3px"
168
- } }, zt = ["data-cell"], Bt = { style: {
169
- display: "flex",
170
- "align-items": "center",
171
- gap: "5px",
172
- "justify-content": "flex-end",
173
- width: "100%",
174
- "padding-right": "3px"
175
- } }, Vt = ["data-cell"], Ht = { style: {
176
- display: "flex",
177
- "align-items": "center",
178
- gap: "5px",
179
- "justify-content": "flex-end",
180
- width: "100%",
181
- "padding-right": "3px"
182
- } }, Ut = /* @__PURE__ */ Ce({
183
- __name: "vue-ui-horizontal-bar",
184
- props: {
185
- config: {
186
- type: Object,
187
- default() {
188
- return {};
189
- }
190
- },
191
- dataset: {
192
- type: Array,
193
- default() {
194
- return [];
195
- }
196
- }
197
- },
198
- emits: [
199
- "selectLegend",
200
- "copyAlt",
201
- "selectDatapoint"
202
- ],
203
- setup(e, { expose: Ce, emit: Je }) {
204
- We((e) => ({ v36bdb0b9: e.tdo }));
205
- let Ut = Le(() => import("./Tooltip-CuWEYGr3.js")), Wt = Le(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Gt = Le(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Kt = Le(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), qt = Le(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Jt = Le(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_vertical_bar: Yt } = pe(), { isThemeValid: Xt, warnInvalidTheme: Zt } = ye(), Qt = Ge(), D = e, $t = d({
206
- get() {
207
- return !!D.dataset && D.dataset.length;
208
- },
209
- set(e) {
210
- return e;
211
- }
212
- }), O = x(r()), en = x(!1), tn = x(""), nn = x(null), rn = x(0), k = x(null), an = x(null), on = x(null), sn = x(null), cn = x(null), ln = x(0), un = x(0), dn = x(null), fn = x(null), pn = x(null), mn = x(null), hn = x(null), A = x([]), gn = x({
213
- none: 0,
214
- asc: 1,
215
- desc: 2
216
- }), j = x(0), _n = x(!1), vn = x(0), yn = x(0), bn = x(null), xn = x(!1), Sn = x(!1), M = x(null), Cn = x({
217
- x: 0,
218
- y: 0
219
- }), wn = x("pointer"), Tn = Je, N = x(Fn()), P = d(() => N.value.userOptions.useCursorPointer), En = d(() => D.config?.skeletonDataset ?? [
220
- {
221
- name: "",
222
- value: 6,
223
- color: "#d9d9d9"
224
- },
225
- {
226
- name: "",
227
- value: 5,
228
- color: "#d9d9d9"
229
- },
230
- {
231
- name: "",
232
- value: 4,
233
- color: "#d9d9d9"
234
- },
235
- {
236
- name: "",
237
- value: 3,
238
- color: "#d9d9d9"
239
- },
240
- {
241
- name: "",
242
- value: 2,
243
- color: "#d9d9d9"
244
- },
245
- {
246
- name: "",
247
- value: 1,
248
- color: "#d9d9d9"
249
- }
250
- ]), Dn = d(() => fe({
251
- defaultConfig: {
252
- useCssAnimation: !1,
253
- userOptions: { show: !1 },
254
- table: { show: !1 },
255
- style: { chart: {
256
- backgroundColor: "#99999930",
257
- layout: {
258
- bars: {
259
- offsetX: 110,
260
- dataLabels: {
261
- color: "transparent",
262
- value: {
263
- prefix: "",
264
- suffix: "",
265
- formatter: null
266
- }
267
- },
268
- nameLabels: { color: "transparent" }
269
- },
270
- separators: { color: "#7A7A7A" }
271
- },
272
- legend: {
273
- show: !0,
274
- backgroundColor: "transparent",
275
- color: "transparent",
276
- prefix: "",
277
- suffix: "",
278
- formatter: null
279
- },
280
- title: {
281
- color: "#1A1A1A",
282
- subtitle: { color: "#5A5A5A" }
283
- }
284
- } }
285
- },
286
- userConfig: N.value.skeletonConfig ?? {}
287
- })), { loading: On, FINAL_DATASET: kn, manualLoading: An } = he({
288
- ...Ue(D),
289
- FINAL_CONFIG: N,
290
- prepareConfig: Fn,
291
- callback: () => {
292
- Promise.resolve().then(async () => {
293
- B.value.showTable = N.value.table.show, Kn();
294
- });
295
- },
296
- skeletonDataset: En.value,
297
- skeletonConfig: fe({
298
- defaultConfig: N.value,
299
- userConfig: Dn.value
300
- })
301
- }), { userOptionsVisible: jn, setUserOptionsVisibility: Mn, keepUserOptionState: Nn } = ke({ config: N.value }), { svgRef: Pn } = Ae({ config: N.value.style.chart.title });
302
- function Fn() {
303
- let e = ve({
304
- userConfig: D.config,
305
- defaultConfig: Yt
306
- }), t = {}, n = e.theme;
307
- if (n) if (!Xt.value(e)) Zt(e), t = e;
308
- else {
309
- let r = ve({
310
- userConfig: Ne[n] || D.config,
311
- defaultConfig: e
312
- });
313
- t = {
314
- ...ve({
315
- userConfig: D.config,
316
- defaultConfig: r
317
- }),
318
- customPalette: e.customPalette.length ? e.customPalette : o[n] || c
319
- };
320
- }
321
- else t = e;
322
- return D.config && ie(D.config, "events.datapointEnter") ? t.events.datapointEnter = D.config.events.datapointEnter : t.events.datapointEnter = null, D.config && ie(D.config, "events.datapointLeave") ? t.events.datapointLeave = D.config.events.datapointLeave : t.events.datapointLeave = null, D.config && ie(D.config, "events.datapointClick") ? t.events.datapointClick = D.config.events.datapointClick : t.events.datapointClick = null, t;
323
- }
324
- let F = x(N.value.style.chart.width), I = x(N.value.style.chart.height), L = x(N.value.style.chart.layout.bars.gap);
325
- Ke(() => D.config, (e) => {
326
- On.value || (N.value = Fn()), jn.value = !N.value.userOptions.showOnChartHover, ln.value += 1, un.value += 1, B.value.showTable = N.value.table.show, B.value.sortDesc = N.value.style.chart.layout.bars.sort === "desc", B.value.showTooltip = N.value.style.chart.tooltip.show, F.value = N.value.style.chart.width, I.value = N.value.style.chart.height, L.value = N.value.style.chart.layout.bars.gap;
327
- }, { deep: !0 }), Ke(() => D.dataset, (e) => {
328
- Array.isArray(e) && e.length > 0 && (An.value = !1);
329
- }, { deep: !0 });
330
- let { isPrinting: In, isImaging: Ln, generatePdf: Rn, generateImage: zn } = me({
331
- elementId: `vue-ui-vertical-bar_${O.value}`,
332
- fileName: N.value.style.chart.title.text || "vue-ui-vertical-bar",
333
- options: N.value.userOptions.print
334
- }), Bn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Vn = d(() => ue(N.value.customPalette)), Hn = x(null), Un = d(() => N.value.table.responsiveBreakpoint), Wn = d(() => !!N.value.debug), Gn = x(0), R = x(null), z = x(null);
335
- function Kn() {
336
- if (k.value && (te(D.dataset) && (ne({
337
- componentName: "VueUiVerticalBar",
338
- type: "dataset",
339
- debug: Wn.value
340
- }), $t.value = !1, An.value = !0), te(D.dataset) || (An.value = N.value.loading), N.value.responsive)) {
341
- let e = we(() => {
342
- let { width: e, height: t } = Te({
343
- chart: k.value,
344
- title: N.value.style.chart.title.text ? an.value : null,
345
- legend: N.value.style.chart.legend.show ? on.value : null,
346
- source: sn.value,
347
- noTitle: cn.value
348
- });
349
- Gn.value = t / 3, requestAnimationFrame(async () => {
350
- I.value = t, F.value = e;
351
- });
352
- });
353
- R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), ze(() => {
354
- z.value = k.value?.parentNode, z.value && R.value.observe(z.value);
355
- });
356
- }
357
- }
358
- Be(() => {
359
- R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
360
- });
361
- let B = x({
362
- showTable: N.value.table.show,
363
- sortDesc: N.value.style.chart.layout.bars.sort === "desc",
364
- showTooltip: N.value.style.chart.tooltip.show
365
- }), qn = d(() => B.value.sortDesc), V = d(() => (kn.value.forEach((e, t) => {
366
- !e.value && !e.children && ne({
367
- componentName: "VueUiVerticalBar",
368
- type: "datasetAttributeEmpty",
369
- property: `value (index ${t})`,
370
- debug: Wn.value
371
- }), e.children && (te(e.children) ? ne({
372
- componentName: "VueUiVerticalBar",
373
- type: "datasetAttributeEmpty",
374
- property: `children (index ${t})`,
375
- debug: Wn.value
376
- }) : e.children.forEach((e, t) => {
377
- [null, void 0].includes(e.name) && ne({
378
- componentName: "VueUiVerticalBar",
379
- type: "datasetSerieAttribute",
380
- property: "name",
381
- key: "children",
382
- index: t,
383
- debug: Wn.value
384
- });
385
- }));
386
- }), kn.value.map((e, t) => {
387
- let n = `vertical_parent_${t}_${O.value}`, r = e.children && e.children.length > 0, i = l(e.value ? e.value : r ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), a = i >= 0 ? 1 : -1;
388
- return {
389
- ...e,
390
- id: n,
391
- absoluteIndex: t,
392
- shape: "square",
393
- opacity: A.value.includes(n) ? .5 : 1,
394
- value: Math.abs(i),
395
- sign: a,
396
- hasChildren: r,
397
- isChild: !1,
398
- segregate: () => Y(n),
399
- isSegregated: A.value.includes(n),
400
- color: de(e.color) || Vn.value[t] || c[t] || c[t % c.length],
401
- children: !e.children || !e.children.length ? [] : e.children.toSorted(_n.value ? () => 0 : (e, t) => qn.value ? t.value - e.value : e.value - t.value).map((r, o) => ({
402
- ...r,
403
- value: l(Math.abs(r.value)),
404
- absoluteIndex: t,
405
- sign: r.value >= 0 ? 1 : -1,
406
- isChild: !0,
407
- parentId: n,
408
- parentName: e.name,
409
- parentValue: i,
410
- parentSign: a,
411
- id: `vertical_child_${t}_${o}_${O.value}`,
412
- childIndex: o,
413
- color: de(r.color) || de(e.color) || Vn.value[t] || c[t] || c[t % c.length]
414
- })).map((t, n) => ({
415
- ...t,
416
- isFirstChild: n === 0,
417
- isLastChild: n === e.children.length - 1
418
- }))
419
- };
420
- }).toSorted(_n.value ? () => 0 : (e, t) => qn.value ? t.value - e.value : e.value - t.value))), H = d(() => V.value.filter((e) => !A.value.includes(e.id))), U = d(() => H.value.flatMap((e) => e.hasChildren ? e.children : e)), Jn = d(() => V.value.flatMap((e) => e.hasChildren ? e.children : e)), Yn = d(() => H.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Xn = d(() => ({
421
- cy: "vertical-bar-div-legend",
422
- backgroundColor: N.value.style.chart.legend.backgroundColor,
423
- color: N.value.style.chart.legend.color,
424
- fontSize: N.value.style.chart.legend.fontSize,
425
- paddingBottom: 12,
426
- fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
427
- })), W = d(() => N.value.style.chart.layout.bars.parentLabels.show ? N.value.style.chart.layout.bars.parentLabels.fontSize * 3 + N.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), G = d(() => {
428
- let e = [], t = 0;
429
- return U.value.forEach((n, r) => {
430
- n.isChild && n.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show && (t += 1), e[r] = t;
431
- }), e;
432
- }), K = d(() => {
433
- let e = Math.max(0, ...G.value) * W.value;
434
- return (I.value - 24 - (Yn.value - 1) * L.value - e) / Yn.value;
435
- }), q = d(() => ({
436
- width: F.value,
437
- height: I.value,
438
- padding: {
439
- top: 12,
440
- left: 128 + N.value.style.chart.layout.bars.offsetX,
441
- right: 64 + N.value.style.chart.layout.bars.paddingRight,
442
- bottom: 12
443
- }
444
- })), Zn = x(0);
445
- function Qn() {
446
- ze(() => {
447
- if (!hn.value) {
448
- Zn.value = 0;
449
- return;
450
- }
451
- Zn.value = Array.from(hn.value.querySelectorAll("text")).reduce((e, t) => {
452
- let n = t.getBBox?.().width ?? t.getComputedTextLength();
453
- return n > e ? n : e;
454
- }, 0) + 12;
455
- });
456
- }
457
- Ke(() => [
458
- U.value,
459
- F.value,
460
- I.value,
461
- N.value.style.chart.layout.bars.nameLabels,
462
- N.value.style.chart.layout.bars.offsetX
463
- ], () => Qn(), { deep: !0 }), Ve(() => {
464
- Qn();
465
- });
466
- function $n() {
467
- ze(() => {
468
- vn.value = 0, yn.value = 0, requestAnimationFrame(() => {
469
- if (!bn.value) {
470
- vn.value = 0, yn.value = 0;
471
- return;
472
- }
473
- let e = Array.from(bn.value.querySelectorAll("text"));
474
- if (!e.length) {
475
- vn.value = 0, yn.value = 0;
476
- return;
477
- }
478
- let t = Infinity, n = 0;
479
- e.forEach((e) => {
480
- let r = e.getBBox(), i = r.x, a = r.x + r.width;
481
- i < t && (t = i), a > n && (n = a);
482
- });
483
- let r = F.value, i = Math.max(0, 0 - t + 24), a = Math.max(0, n - r + 24);
484
- yn.value = i, vn.value = a;
485
- });
486
- });
487
- }
488
- Ke(A, () => $n(), { deep: !0 }), Ke(() => [
489
- U.value,
490
- F.value,
491
- I.value
492
- ], () => $n(), { deep: !0 }), Ve(() => $n());
493
- let J = d(() => {
494
- let e = Zn.value + Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX) + yn.value + N.value.style.chart.layout.bars.offsetX, t = q.value.width - q.value.padding.right, n = Math.max(0, t - e - vn.value - yn.value - N.value.style.chart.layout.bars.offsetX);
495
- return {
496
- top: q.value.padding.top,
497
- bottom: q.value.padding.top + q.value.height,
498
- left: e,
499
- right: t,
500
- width: n,
501
- fullHeight: q.value.padding.top + q.value.padding.bottom + q.value.height
502
- };
503
- });
504
- function er() {
505
- A.value.length ? A.value = [] : V.value.forEach((e) => {
506
- A.value.push(e.id);
507
- }), $n(), Tn("selectLegend", H.value);
508
- }
509
- async function Y(e) {
510
- if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e);
511
- else {
512
- if (A.value.length === V.value.length - 1) return;
513
- A.value.push(e);
514
- }
515
- Tn("selectLegend", H.value), $n();
516
- }
517
- function tr(e) {
518
- return V.value.length ? V.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null);
519
- }
520
- function nr(e) {
521
- let t = tr(e);
522
- t !== null && A.value.includes(t.id) && Y(t.id);
523
- }
524
- function rr(e) {
525
- let t = tr(e);
526
- t !== null && (A.value.includes(t.id) || Y(t.id));
527
- }
528
- let X = d(() => H.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
529
- function ir(e, t = !1, r = 0) {
530
- return t ? n({
531
- v: l(Math.abs(e) / X.value * 100),
532
- s: "%",
533
- r
534
- }) : Math.abs(e) / X.value;
535
- }
536
- let Z = d(() => U.value.map((e) => e.sign).includes(-1)), ar = d(() => Math.max(...H.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
537
- function Q(e) {
538
- let t = e / ar.value;
539
- return l(J.value.width / (Z.value ? 2 : 1) * t);
540
- }
541
- function or(e) {
542
- return Q(e) + J.value.left;
543
- }
544
- function sr(e, t) {
545
- let n = H.value.find((t) => t.id === e.parentId);
546
- return {
547
- y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value - W.value + N.value.style.chart.layout.bars.parentLabels.fontSize,
548
- name: n.name,
549
- value: [
550
- void 0,
551
- NaN,
552
- null
553
- ].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
554
- percentageToTotal: isNaN(n.value / X.value) ? "" : ir(n.value, !0, N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
555
- sign: n.sign
556
- };
557
- }
558
- function cr() {
559
- return H.value;
560
- }
561
- function lr(e, t) {
562
- return sr(e, t).name;
563
- }
564
- function ur(e, t) {
565
- let n = sr(e, t);
566
- return gr(n.value, n, t, e.parentSign || e.sign);
567
- }
568
- let dr = x(null), fr = x(null);
569
- function pr({ datapoint: e, seriesIndex: t }) {
570
- Tn("selectDatapoint", e), N.value.events.datapointClick && N.value.events.datapointClick({
571
- datapoint: e,
572
- seriesIndex: t
573
- });
574
- }
575
- function mr({ datapoint: e, seriesIndex: t }) {
576
- N.value.events.datapointLeave && N.value.events.datapointLeave({
577
- datapoint: e,
578
- seriesIndex: t
579
- }), nn.value = null, en.value = !1, dr.value = null, M.value === t && (M.value = null);
580
- }
581
- function hr(e, t, r = "pointer") {
582
- wn.value = r, N.value.events.datapointEnter && N.value.events.datapointEnter({
583
- datpoint: e,
584
- seriesIndex: t
585
- }), M.value = t, nn.value = e, fr.value = {
586
- datapoint: e,
587
- seriesIndex: t,
588
- series: V.value,
589
- config: N.value
590
- }, en.value = !0, dr.value = e.id;
591
- let i = "", a = e.isChild ? e.parentName : e.name, o = e.isChild ? e.name : "", s = N.value.style.chart.tooltip.customFormat;
592
- ce(s) && se(() => s({
593
- datapoint: e,
594
- series: V.value,
595
- config: N.value,
596
- seriesIndex: t
597
- })) ? tn.value = s({
598
- datapoint: e,
599
- series: V.value,
600
- config: N.value,
601
- seriesIndex: t
602
- }) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
603
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${e.color}"/>${Qt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${O.value}_${e.absoluteIndex})"/>` : ""}</svg> ${a}</div>
604
- ${o ? `<div>${o}</div>` : ""}
605
- </div>`, N.value.style.chart.tooltip.showValue && (i += `<div>${N.value.translations.value}: <b>${ae(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, n({
606
- p: N.value.style.chart.tooltip.prefix,
607
- v: e.sign === 1 ? e.value : -e.value,
608
- s: N.value.style.chart.tooltip.suffix,
609
- r: N.value.style.chart.tooltip.roundingValue
610
- }), {
611
- datapoint: e,
612
- seriesIndex: t
613
- })}</b></div>`), N.value.style.chart.tooltip.showPercentage && (i += `<div>${N.value.translations.percentageToTotal} : <b>${n({
614
- v: Math.abs(e.value) / X.value * 100,
615
- s: "%",
616
- r: N.value.style.chart.tooltip.roundingPercentage
617
- })}</b></div>`, e.isChild && (i += `<div>${N.value.translations.percentageToSerie}: <b>${n({
618
- v: Math.abs(e.value) / Math.abs(e.parentValue) * 100,
619
- s: "%",
620
- r: N.value.style.chart.tooltip.roundingPercentage
621
- })}</b></div>`)), tn.value = `<div style="text-align:left">${i}</div>`);
622
- }
623
- function gr(e, t, r, i) {
624
- if (!N.value.style.chart.layout.bars.dataLabels.value.show) return "";
625
- let a = ae(N.value.style.chart.layout.bars.dataLabels.value.formatter, l(i === -1 && e >= 0 ? -e : e), n({
626
- p: N.value.style.chart.layout.bars.dataLabels.value.prefix,
627
- v: l(i === -1 && e >= 0 ? -e : e),
628
- s: N.value.style.chart.layout.bars.dataLabels.value.suffix,
629
- r: N.value.style.chart.layout.bars.dataLabels.value.roundingValue
630
- }), {
631
- datapoint: t,
632
- seriesIndex: r
633
- }), o = `(${ir(e, !0, N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
634
- return `${a}${N.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${o}` : ""}`;
635
- }
636
- let $ = d(() => ({
637
- head: [
638
- N.value.translations.parentName,
639
- N.value.translations.value,
640
- N.value.translations.percentageToTotal,
641
- N.value.translations.childName,
642
- N.value.translations.value,
643
- N.value.translations.percentageToSerie,
644
- N.value.translations.percentageToTotal
645
- ],
646
- body: U.value.map((e) => e.isChild ? e.isFirstChild ? {
647
- color: e.color,
648
- parentName: e.parentName,
649
- parentValue: e.parentValue,
650
- percentageToTotal: e.parentValue / X.value,
651
- childName: e.name,
652
- childValue: e.sign === 1 ? e.value : -e.value,
653
- childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
654
- childPercentageToTotal: Math.abs(e.value) / X.value
655
- } : {
656
- color: "",
657
- parentName: "",
658
- parentValue: "",
659
- percentageToTotal: "",
660
- childName: e.name,
661
- childValue: e.sign === 1 ? e.value : -e.value,
662
- childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
663
- childPercentageToTotal: Math.abs(e.value) / X.value
664
- } : {
665
- color: e.color,
666
- parentName: e.name,
667
- parentValue: e.sign === 1 ? e.value : -e.value,
668
- percentageToTotal: Math.abs(e.value) / X.value,
669
- childName: "",
670
- childValue: "",
671
- childPercentageToParent: "",
672
- childPercentageToTotal: ""
673
- })
674
- }));
675
- function _r(e = null) {
676
- let t = [
677
- [N.value.style.chart.title.text],
678
- [N.value.style.chart.title.subtitle.text],
679
- [""]
680
- ], n = $.value.head, r = $.value.body.map((e) => [
681
- e.parentName,
682
- e.parentValue,
683
- e.percentageToTotal,
684
- e.childName,
685
- e.childValue,
686
- e.childPercentageToParent,
687
- e.childPercentageToTotal
688
- ]), i = ee(t.concat([n]).concat(r));
689
- e ? e(i) : a({
690
- csvContent: i,
691
- title: N.value.style.chart.title.text || "vue-ui-vertical-bar"
692
- });
693
- }
694
- let vr = x(!1);
695
- function yr(e) {
696
- vr.value = e, rn.value += 1;
697
- }
698
- function br() {
699
- B.value.showTable = !B.value.showTable;
700
- }
701
- Ve(() => {
702
- [
703
- "none",
704
- "asc",
705
- "desc"
706
- ].includes(N.value.style.chart.layout.bars.sort) || ne({
707
- componentName: "VueUiVerticalBar",
708
- type: "attributeWrongValue",
709
- property: "style.chart.layout.bars.sort",
710
- key: N.value.style.chart.layout.bars.sort
711
- }), j.value = gn.value[N.value.style.chart.layout.bars.sort], B.value.sortDesc = j.value === 2, _n.value = j.value === 0;
712
- });
713
- function xr() {
714
- j.value += 1, j.value > 2 && (j.value = 0);
715
- }
716
- function Sr() {
717
- xr(), B.value.sortDesc = j.value === 2, _n.value = j.value === 0;
718
- }
719
- function Cr() {
720
- B.value.showTooltip = !B.value.showTooltip;
721
- }
722
- let wr = x(!1);
723
- function Tr() {
724
- wr.value = !wr.value;
725
- }
726
- async function Er({ scale: e = 2 } = {}) {
727
- if (!k.value) return;
728
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
729
- domElement: k.value,
730
- base64: !0,
731
- img: !0,
732
- scale: e
733
- });
734
- return {
735
- imageUri: i,
736
- base64: a,
737
- title: N.value.style.chart.title.text,
738
- width: t,
739
- height: n,
740
- aspectRatio: r
741
- };
742
- }
743
- let Dr = d(() => {
744
- let e = N.value.table.useDialog && !N.value.table.show, t = B.value.showTable;
745
- return {
746
- component: e ? Jt : Ee,
747
- title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
748
- props: e ? {
749
- backgroundColor: N.value.table.th.backgroundColor,
750
- color: N.value.table.th.color,
751
- headerColor: N.value.table.th.color,
752
- headerBg: N.value.table.th.backgroundColor,
753
- isFullscreen: vr.value,
754
- fullscreenParent: k.value,
755
- forcedWidth: Math.min(800, window.innerWidth * .8),
756
- isCursorPointer: P.value
757
- } : {
758
- hideDetails: !0,
759
- config: {
760
- open: t,
761
- maxHeight: 1e4,
762
- body: {
763
- backgroundColor: N.value.style.chart.backgroundColor,
764
- color: N.value.style.chart.color
765
- },
766
- head: {
767
- backgroundColor: N.value.style.chart.backgroundColor,
768
- color: N.value.style.chart.color
769
- }
770
- }
771
- }
772
- };
773
- });
774
- Ke(() => B.value.showTable, (e) => {
775
- N.value.table.show || (e && N.value.table.useDialog && fn.value ? fn.value.open() : "close" in fn.value && fn.value.close());
776
- });
777
- let { isResponsive: Or } = je(Hn, Un);
778
- function kr() {
779
- B.value.showTable = !1, pn.value && pn.value.setTableIconState(!1);
780
- }
781
- let Ar = d(() => V.value.map((e, t) => ({
782
- ...e,
783
- shape: "square",
784
- display: `${e.name}: ${ae(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, n({
785
- p: N.value.style.chart.legend.prefix,
786
- v: e.value,
787
- s: N.value.style.chart.legend.suffix,
788
- r: N.value.style.chart.legend.roundingValue
789
- }), {
790
- datapoint: e,
791
- seriesIndex: t
792
- })}`
793
- }))), jr = d(() => N.value.style.chart.backgroundColor), Mr = d(() => N.value.style.chart.legend), { exportSvg: Nr, getSvg: Pr } = _e({
794
- svg: Pn,
795
- title: d(() => N.value.style.chart.title),
796
- legend: Mr,
797
- legendItems: d(() => Ar.value.map((e) => ({
798
- ...e,
799
- name: e.display
800
- }))),
801
- backgroundColor: jr
802
- });
803
- async function Fr({ isCb: e }) {
804
- Sn.value = !0, await ze();
805
- try {
806
- if (e) {
807
- let { blob: e, url: t, text: n, dataUrl: r } = await Pr();
808
- await Promise.resolve(N.value.userOptions.callbacks.svg({
809
- blob: e,
810
- url: t,
811
- text: n,
812
- dataUrl: r
813
- }));
814
- } else await Promise.resolve(Nr());
815
- } finally {
816
- Sn.value = !1;
817
- }
818
- }
819
- function Ir(e) {
820
- if (e?.stage === "start") {
821
- xn.value = !0;
822
- return;
823
- }
824
- if (e?.stage === "end") {
825
- xn.value = !1;
826
- return;
827
- }
828
- zn();
829
- }
830
- function Lr() {
831
- console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
832
- }
833
- async function Rr() {
834
- if (Tn("copyAlt", {
835
- config: N.value,
836
- dataset: H.value
837
- }), !N.value.userOptions.callbacks.altCopy) {
838
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
839
- return;
840
- }
841
- await Promise.resolve(N.value.userOptions.callbacks.altCopy({
842
- config: N.value,
843
- dataset: H.value
844
- }));
845
- }
846
- let zr = x(!1);
847
- function Br() {
848
- M.value = null, zr.value = !0;
849
- }
850
- function Vr() {
851
- M.value = null, en.value = !1, zr.value = !1;
852
- }
853
- function Hr() {
854
- if (M.value === null) return;
855
- let e = U.value[M.value];
856
- e && mr({
857
- datapoint: e,
858
- seriesIndex: M.value
859
- }), M.value = null, wn.value = "pointer";
860
- }
861
- function Ur(e) {
862
- if (!Pn.value || wr.value || document.activeElement !== Pn.value) return;
863
- let t = e.key === "ArrowRight" || e.key === "ArrowDown", n = e.key === "ArrowLeft" || e.key === "ArrowUp", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
864
- if (!t && !n && !r && !i) return;
865
- let a = U.value.length;
866
- if (!a) return;
867
- if (e.preventDefault(), e.stopPropagation(), i) {
868
- Hr();
869
- return;
870
- }
871
- if (r) {
872
- if (M.value === null) return;
873
- let e = U.value[M.value];
874
- if (!e) return;
875
- pr({
876
- datapoint: e,
877
- seriesIndex: M.value
878
- });
879
- return;
880
- }
881
- let o = M.value, s = nn.value ? U.value.findIndex((e) => e.id === nn.value.id) : null;
882
- o !== null && o >= 0 && o < a ? t ? (o += 1, o >= a && (o = 0)) : n && (--o, o < 0 && (o = a - 1)) : s !== null && s >= 0 && s < a ? (o = t ? s + 1 : s - 1, o >= a && (o = 0), o < 0 && (o = a - 1)) : o = t ? 0 : a - 1;
883
- let ee = U.value[o];
884
- ee && (M.value = o, Wr(ee), hr(ee, o, "keyboard"));
885
- }
886
- function Wr(e) {
887
- if (!e) return;
888
- let t = J.value.right, n = J.value.top + (L.value + K.value) * e.absoluteIndex + G.value[e.absoluteIndex] * W.value;
889
- if (!Number.isFinite(t) || !Number.isFinite(n)) return;
890
- let r = i(t, n, Pn.value);
891
- r && (Cn.value = r);
892
- }
893
- let Gr = d(() => ({
894
- head: $.value.head,
895
- body: $.value.body.map((e) => [
896
- e.parentName,
897
- e.parentValue === "" ? "" : n({
898
- v: e.parentValue,
899
- r: N.value.style.chart.layout.bars.dataLabels.value.roundingValue,
900
- p: N.value.style.chart.layout.bars.dataLabels.prefix,
901
- s: N.value.style.chart.layout.bars.dataLabels.suffix
902
- }),
903
- e.percentageToTotal === "" ? "" : n({
904
- v: e.percentageToTotal * 100,
905
- r: N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
906
- s: "%"
907
- }),
908
- e.childName,
909
- e.childValue === "" ? "" : n({
910
- v: e.childValue,
911
- r: N.value.style.chart.layout.bars.dataLabels.value.roundingValue,
912
- p: N.value.style.chart.layout.bars.dataLabels.prefix,
913
- s: N.value.style.chart.layout.bars.dataLabels.suffix
914
- }),
915
- e.childPercentageToParent === "" ? "" : n({
916
- v: e.childPercentageToParent * 100,
917
- r: N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
918
- s: "%"
919
- }),
920
- e.childPercentageToTotal === "" ? "" : n({
921
- v: e.childPercentageToTotal * 100,
922
- r: N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
923
- s: "%"
924
- })
925
- ]),
926
- caption: N.value.a11y.translations.tableCaption,
927
- notice: N.value.a11y.translations.tableAvailable
928
- }));
929
- return Ce({
930
- autoSize: Lr,
931
- getData: cr,
932
- getImage: Er,
933
- generatePdf: Rn,
934
- generateCsv: _r,
935
- generateImage: zn,
936
- generateSvg: Fr,
937
- hideSeries: rr,
938
- showSeries: nr,
939
- toggleTable: br,
940
- toggleSort: Sr,
941
- toggleTooltip: Cr,
942
- toggleAnnotator: Tr,
943
- toggleFullscreen: yr,
944
- copyAlt: Rr
945
- }), (e, r) => (b(), m("div", {
946
- class: _(`vue-data-ui-component vue-ui-vertical-bar ${vr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"} ${N.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
947
- ref_key: "verticalBarChart",
948
- ref: k,
949
- id: `vue-ui-vertical-bar_${O.value}`,
950
- style: y(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};height:100%`),
951
- onMouseenter: r[3] ||= () => T(Mn)(!0),
952
- onMouseleave: r[4] ||= () => T(Mn)(!1)
953
- }, [
954
- h("p", {
955
- id: `chart-instructions-${O.value}`,
956
- class: "sr-only"
957
- }, w(N.value.a11y.translations.keyboardNavigation), 9, Xe),
958
- Gr.value.body.length ? (b(), f(Oe, {
959
- key: 0,
960
- uid: O.value,
961
- head: Gr.value.head,
962
- body: Gr.value.body,
963
- caption: Gr.value.caption,
964
- notice: Gr.value.notice
965
- }, null, 8, [
966
- "uid",
967
- "head",
968
- "body",
969
- "caption",
970
- "notice"
971
- ])) : p("", !0),
972
- N.value.userOptions.buttons.annotator ? (b(), f(T(Gt), {
973
- key: 1,
974
- svgRef: T(Pn),
975
- backgroundColor: N.value.style.chart.backgroundColor,
976
- color: N.value.style.chart.color,
977
- active: wr.value,
978
- isCursorPointer: P.value,
979
- onClose: Tr
980
- }, {
981
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
982
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
983
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
984
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
985
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
986
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
987
- _: 3
988
- }, 8, [
989
- "svgRef",
990
- "backgroundColor",
991
- "color",
992
- "active",
993
- "isCursorPointer"
994
- ])) : p("", !0),
995
- Bn.value ? (b(), m("div", {
996
- key: 2,
997
- ref_key: "noTitle",
998
- ref: cn,
999
- class: "vue-data-ui-no-title-space",
1000
- style: "height:36px; width: 100%;background:transparent"
1001
- }, null, 512)) : p("", !0),
1002
- N.value.style.chart.title.text ? (b(), m("div", {
1003
- key: 3,
1004
- ref_key: "chartTitle",
1005
- ref: an,
1006
- style: "width:100%;background:transparent;padding-bottom:12px"
1007
- }, [(b(), f(xe, {
1008
- key: `title_${ln.value}`,
1009
- config: {
1010
- title: {
1011
- cy: "vertical-bar-div-title",
1012
- ...N.value.style.chart.title
1013
- },
1014
- subtitle: {
1015
- cy: "vertical-bar-div-subtitle",
1016
- ...N.value.style.chart.title.subtitle
1017
- }
1018
- }
1019
- }, null, 8, ["config"]))], 512)) : p("", !0),
1020
- N.value.userOptions.show && $t.value && (T(Nn) || T(jn)) ? (b(), f(T(Kt), {
1021
- ref_key: "userOptionsRef",
1022
- ref: pn,
1023
- backgroundColor: N.value.style.chart.backgroundColor,
1024
- color: N.value.style.chart.color,
1025
- key: `user_options_${rn.value}`,
1026
- isImaging: T(Ln),
1027
- isPrinting: T(In),
1028
- uid: O.value,
1029
- hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
1030
- hasPdf: N.value.userOptions.buttons.pdf,
1031
- hasImg: N.value.userOptions.buttons.img,
1032
- hasSvg: N.value.userOptions.buttons.svg,
1033
- hasXls: N.value.userOptions.buttons.csv,
1034
- hasTable: N.value.userOptions.buttons.table,
1035
- hasSort: N.value.userOptions.buttons.sort,
1036
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
1037
- hasAltCopy: N.value.userOptions.buttons.altCopy,
1038
- isFullscreen: vr.value,
1039
- isTooltip: B.value.showTooltip,
1040
- titles: { ...N.value.userOptions.buttonTitles },
1041
- chartElement: k.value,
1042
- position: N.value.userOptions.position,
1043
- hasAnnotator: N.value.userOptions.buttons.annotator,
1044
- isAnnotation: wr.value,
1045
- callbacks: N.value.userOptions.callbacks,
1046
- printScale: N.value.userOptions.print.scale,
1047
- tableDialog: N.value.table.useDialog,
1048
- isCursorPointer: P.value,
1049
- onToggleFullscreen: yr,
1050
- onGeneratePdf: T(Rn),
1051
- onGenerateCsv: _r,
1052
- onGenerateImage: Ir,
1053
- onGenerateSvg: Fr,
1054
- onToggleTable: br,
1055
- onToggleSort: Sr,
1056
- onToggleTooltip: Cr,
1057
- onToggleAnnotator: Tr,
1058
- onCopyAlt: Rr,
1059
- style: y({ visibility: T(Nn) ? T(jn) ? "visible" : "hidden" : "visible" })
1060
- }, Pe({ _: 2 }, [
1061
- e.$slots.menuIcon ? {
1062
- name: "menuIcon",
1063
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
1064
- isOpen: t,
1065
- color: n
1066
- })), void 0, !0)]),
1067
- key: "0"
1068
- } : void 0,
1069
- e.$slots.optionTooltip ? {
1070
- name: "optionTooltip",
1071
- fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1072
- key: "1"
1073
- } : void 0,
1074
- e.$slots.optionPdf ? {
1075
- name: "optionPdf",
1076
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1077
- key: "2"
1078
- } : void 0,
1079
- e.$slots.optionCsv ? {
1080
- name: "optionCsv",
1081
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1082
- key: "3"
1083
- } : void 0,
1084
- e.$slots.optionImg ? {
1085
- name: "optionImg",
1086
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1087
- key: "4"
1088
- } : void 0,
1089
- e.$slots.optionSvg ? {
1090
- name: "optionSvg",
1091
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1092
- key: "5"
1093
- } : void 0,
1094
- e.$slots.optionTable ? {
1095
- name: "optionTable",
1096
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1097
- key: "6"
1098
- } : void 0,
1099
- e.$slots.optionLabels ? {
1100
- name: "optionLabels",
1101
- fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
1102
- key: "7"
1103
- } : void 0,
1104
- e.$slots.optionSort ? {
1105
- name: "optionSort",
1106
- fn: E(() => [C(e.$slots, "optionSort", {}, void 0, !0)]),
1107
- key: "8"
1108
- } : void 0,
1109
- e.$slots.optionFullscreen ? {
1110
- name: "optionFullscreen",
1111
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
1112
- toggleFullscreen: t,
1113
- isFullscreen: n
1114
- })), void 0, !0)]),
1115
- key: "9"
1116
- } : void 0,
1117
- e.$slots.optionAnnotator ? {
1118
- name: "optionAnnotator",
1119
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
1120
- toggleAnnotator: t,
1121
- isAnnotator: n
1122
- })), void 0, !0)]),
1123
- key: "10"
1124
- } : void 0,
1125
- e.$slots.optionAltCopy ? {
1126
- name: "optionAltCopy",
1127
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
1128
- key: "11"
1129
- } : void 0,
1130
- e.$slots["custom-menu-before"] ? {
1131
- name: "custom-menu-before",
1132
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1133
- key: "12"
1134
- } : void 0,
1135
- e.$slots["custom-menu-after"] ? {
1136
- name: "custom-menu-after",
1137
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1138
- key: "13"
1139
- } : void 0
1140
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasSort.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
1141
- N.value.style.chart.legend.show && N.value.style.chart.legend.position === "top" ? (b(), m("div", {
1142
- key: 5,
1143
- ref_key: "chartLegend",
1144
- ref: on
1145
- }, [(b(), f(Me, {
1146
- key: `legend_top_${un.value}`,
1147
- legendSet: V.value,
1148
- config: Xn.value,
1149
- onClickMarker: r[0] ||= ({ legend: e }) => Y(e.id)
1150
- }, Pe({
1151
- item: E(({ legend: e, index: t }) => [h("div", {
1152
- onClick: (t) => Y(e.id),
1153
- style: y(`opacity:${A.value.includes(e.id) ? .5 : 1}`)
1154
- }, w(e.name) + ": " + w(T(ae)(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, T(n)({
1155
- p: N.value.style.chart.legend.prefix,
1156
- v: e.value,
1157
- s: N.value.style.chart.legend.suffix,
1158
- r: N.value.style.chart.legend.roundingValue
1159
- }), {
1160
- datapoint: e,
1161
- seriesIndex: t
1162
- })), 13, Ze)]),
1163
- legendToggle: E(() => [V.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !T(On) ? (b(), f(De, {
1164
- key: 0,
1165
- backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1166
- color: N.value.style.chart.legend.selectAllToggle.color,
1167
- fontSize: N.value.style.chart.legend.fontSize,
1168
- checked: A.value.length > 0,
1169
- onToggle: er
1170
- }, null, 8, [
1171
- "backgroundColor",
1172
- "color",
1173
- "fontSize",
1174
- "checked"
1175
- ])) : p("", !0)]),
1176
- _: 2
1177
- }, [e.$slots.pattern ? {
1178
- name: "legend-pattern",
1179
- fn: E(({ legend: e, index: t }) => [Ie(Se, {
1180
- shape: e.shape,
1181
- radius: 30,
1182
- stroke: "none",
1183
- plot: {
1184
- x: 30,
1185
- y: 30
1186
- },
1187
- fill: `url(#pattern_${O.value}_${t})`
1188
- }, null, 8, ["shape", "fill"])]),
1189
- key: "0"
1190
- } : void 0]), 1032, ["legendSet", "config"]))], 512)) : p("", !0),
1191
- h("div", Qe, [(b(), m("svg", {
1192
- ref_key: "svgRef",
1193
- ref: Pn,
1194
- xmlns: T(le),
1195
- class: _({
1196
- "vue-data-ui-fullscreen--on": vr.value,
1197
- "vue-data-ui-fulscreen--off": !vr.value
1198
- }),
1199
- viewBox: `0 0 ${F.value} ${I.value}`,
1200
- style: y(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
1201
- tabindex: "0",
1202
- "aria-describedby": `chart-instructions-${O.value}`,
1203
- onFocus: Br,
1204
- onBlur: Vr,
1205
- onKeydown: Ur
1206
- }, [h("g", {
1207
- ref_key: "G",
1208
- ref: dn,
1209
- class: "vue-data-ui-g"
1210
- }, [
1211
- Ie(T(qt)),
1212
- e.$slots["chart-background"] ? (b(), m("foreignObject", {
1213
- key: 0,
1214
- x: 0,
1215
- y: 0,
1216
- width: F.value,
1217
- height: I.value,
1218
- style: { pointerEvents: "none" }
1219
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : p("", !0),
1220
- (b(!0), m(u, null, S(U.value, (e, t) => (b(), m("linearGradient", {
1221
- x1: "0%",
1222
- y1: "0%",
1223
- x2: "100%",
1224
- y2: "0%",
1225
- id: `vertical_bar_gradient_${O.value}_${t}`
1226
- }, [h("stop", {
1227
- offset: "0%",
1228
- "stop-color": e.color
1229
- }, null, 8, nt), h("stop", {
1230
- offset: "100%",
1231
- "stop-color": T(oe)(T(s)(e.color, .03), 100 - N.value.style.chart.layout.bars.gradientIntensity)
1232
- }, null, 8, rt)], 8, tt))), 256)),
1233
- e.$slots.pattern ? (b(), m("g", it, [(b(!0), m(u, null, S(U.value, (t) => (b(), m("defs", null, [C(e.$slots, "pattern", Re({ ref_for: !0 }, {
1234
- seriesIndex: t.absoluteIndex,
1235
- patternId: `pattern_${O.value}_${t.absoluteIndex}`
1236
- }), void 0, !0)]))), 256))])) : p("", !0),
1237
- N.value.style.chart.layout.bars.rowColor ? (b(!0), m(u, { key: 2 }, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
1238
- x: 0,
1239
- y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value,
1240
- width: F.value,
1241
- height: K.value <= 0 ? 1e-4 : K.value,
1242
- fill: N.value.style.chart.layout.bars.rowColor,
1243
- rx: N.value.style.chart.layout.bars.rowRadius,
1244
- style: { pointerEvents: "none" }
1245
- }, null, 8, at)]))), 256)) : p("", !0),
1246
- (b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
1247
- x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (e.sign === 1 ? 0 : Q(e.value) <= 0 ? 1e-4 : Q(e.value)) : J.value.left),
1248
- y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value,
1249
- width: T(l)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
1250
- height: K.value <= 0 ? 1e-4 : K.value,
1251
- fill: N.value.style.chart.layout.bars.underlayerColor,
1252
- rx: N.value.style.chart.layout.bars.borderRadius,
1253
- class: _({ animated: N.value.useCssAnimation })
1254
- }, null, 10, ot)]))), 256)),
1255
- (b(!0), m(u, null, S(U.value, (t, n) => (b(), m("g", null, [
1256
- h("rect", {
1257
- x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : J.value.left),
1258
- y: J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
1259
- width: T(l)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
1260
- height: K.value <= 0 ? 1e-4 : K.value,
1261
- fill: N.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${O.value}_${n})` : T(oe)(t.color, N.value.style.chart.layout.bars.fillOpacity),
1262
- rx: N.value.style.chart.layout.bars.borderRadius,
1263
- stroke: N.value.style.chart.layout.bars.useStroke ? t.color : "none",
1264
- "stroke-width": N.value.style.chart.layout.bars.useStroke ? N.value.style.chart.layout.bars.strokeWidth : 0,
1265
- class: _({ animated: N.value.useCssAnimation })
1266
- }, null, 10, st),
1267
- e.$slots.pattern ? (b(), m("rect", {
1268
- key: 0,
1269
- x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : J.value.left),
1270
- y: J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
1271
- width: T(l)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
1272
- height: K.value <= 0 ? 1e-4 : K.value,
1273
- fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
1274
- rx: N.value.style.chart.layout.bars.borderRadius,
1275
- stroke: N.value.style.chart.layout.bars.useStroke ? t.color : "none",
1276
- "stroke-width": N.value.style.chart.layout.bars.useStroke ? N.value.style.chart.layout.bars.strokeWidth : 0,
1277
- class: _({ animated: N.value.useCssAnimation })
1278
- }, null, 10, ct)) : p("", !0),
1279
- (!t.isChild || t.isLastChild) && N.value.style.chart.layout.separators.show && n !== U.value.length - 1 ? (b(), m("line", {
1280
- key: 1,
1281
- x1: F.value,
1282
- x2: N.value.style.chart.layout.separators.fullWidth ? 0 : J.value.left,
1283
- y1: K.value + L.value / 2 + J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
1284
- y2: K.value + L.value / 2 + J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
1285
- stroke: N.value.style.chart.layout.separators.color,
1286
- "stroke-width": N.value.style.chart.layout.separators.strokeWidth,
1287
- "stroke-linecap": "round",
1288
- style: {
1289
- transition: "none !important",
1290
- animation: "none !important"
1291
- }
1292
- }, null, 8, lt)) : p("", !0),
1293
- Z.value && N.value.style.chart.layout.separators.show ? (b(), m("line", {
1294
- key: 2,
1295
- x1: J.value.left + J.value.width / 2,
1296
- x2: J.value.left + J.value.width / 2,
1297
- y1: J.value.top,
1298
- y2: J.value.bottom,
1299
- stroke: N.value.style.chart.layout.separators.color,
1300
- "stroke-width": N.value.style.chart.layout.separators.strokeWidth,
1301
- "stroke-linecap": "round"
1302
- }, null, 8, ut)) : p("", !0)
1303
- ]))), 256)),
1304
- h("g", {
1305
- ref_key: "parentLabels",
1306
- ref: mn
1307
- }, [(b(!0), m(u, null, S(U.value, (e, n) => (b(), m("g", dt, [
1308
- e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("rect", {
1309
- key: 0,
1310
- class: "vue-ui-horizontal-bar-parent-marker",
1311
- x: 2,
1312
- y: sr(e, n).y - N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1313
- height: N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1314
- width: N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
1315
- rx: 1,
1316
- fill: e.color,
1317
- style: {
1318
- animation: "none !important",
1319
- transition: "none !important"
1320
- }
1321
- }, null, 8, ft)) : p("", !0),
1322
- e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("text", {
1323
- key: 1,
1324
- y: sr(e, n).y,
1325
- "font-size": N.value.style.chart.layout.bars.parentLabels.fontSize,
1326
- fill: N.value.style.chart.layout.bars.parentLabels.color,
1327
- x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
1328
- "font-weight": N.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
1329
- "text-anchor": "start",
1330
- innerHTML: T(t)({
1331
- content: `${lr(e, n)}`,
1332
- fontSize: N.value.style.chart.layout.bars.parentLabels.fontSize,
1333
- fill: N.value.style.chart.layout.bars.parentLabels.color,
1334
- x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
1335
- y: sr(e, n).y,
1336
- translateY: !1
1337
- })
1338
- }, null, 8, pt)) : p("", !0),
1339
- e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("text", {
1340
- key: 2,
1341
- y: sr(e, n).y + T(re)(lr(e, n)) * N.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
1342
- "font-size": N.value.style.chart.layout.bars.parentLabels.fontSize,
1343
- fill: N.value.style.chart.layout.bars.parentLabels.color,
1344
- x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
1345
- "font-weight": N.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
1346
- "text-anchor": "start"
1347
- }, w(ur(e, n)), 9, mt)) : p("", !0)
1348
- ]))), 256))], 512),
1349
- h("g", {
1350
- ref_key: "childLabels",
1351
- ref: hn
1352
- }, [(b(!0), m(u, null, S(Jn.value, (e, n) => (b(), m("g", ht, [(e.isChild || !e.hasChildren) && N.value.style.chart.layout.bars.nameLabels.show ? (b(), m("text", {
1353
- key: 0,
1354
- "text-anchor": "start",
1355
- x: Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX),
1356
- y: T(l)(J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 2 + G.value[n] * W.value),
1357
- "font-size": N.value.style.chart.layout.bars.nameLabels.fontSize,
1358
- fill: "transparent",
1359
- "font-weight": N.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
1360
- style: { "user-select": "none" },
1361
- innerHTML: T(t)({
1362
- content: e.name,
1363
- fontSize: N.value.style.chart.layout.bars.nameLabels.fontSize,
1364
- fill: "transparent",
1365
- x: Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX),
1366
- y: T(l)(J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 2 + G.value[n] * W.value),
1367
- translateY: !0
1368
- })
1369
- }, null, 8, gt)) : p("", !0)]))), 256))], 512),
1370
- h("g", null, [(b(!0), m(u, null, S(U.value, (e, n) => (b(), m("g", _t, [(e.isChild || !e.hasChildren) && N.value.style.chart.layout.bars.nameLabels.show ? (b(), m("text", {
1371
- key: 0,
1372
- "text-anchor": "end",
1373
- x: J.value.left + N.value.style.chart.layout.bars.nameLabels.offsetX - 6,
1374
- y: J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 3 + G.value[n] * W.value,
1375
- "font-size": N.value.style.chart.layout.bars.nameLabels.fontSize,
1376
- fill: N.value.style.chart.layout.bars.nameLabels.color,
1377
- "font-weight": N.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
1378
- innerHTML: T(t)({
1379
- content: e.name,
1380
- fontSize: N.value.style.chart.layout.bars.nameLabels.fontSize,
1381
- fill: N.value.style.chart.layout.bars.nameLabels.color,
1382
- x: J.value.left + N.value.style.chart.layout.bars.nameLabels.offsetX - 6,
1383
- y: J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 3 + G.value[n] * W.value,
1384
- translateY: !0
1385
- })
1386
- }, null, 8, vt)) : p("", !0)]))), 256))]),
1387
- h("g", {
1388
- ref_key: "dataLabels",
1389
- ref: bn
1390
- }, [(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", yt, [h("text", {
1391
- x: Z.value ? J.value.left + J.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -N.value.style.chart.layout.bars.dataLabels.offsetX : N.value.style.chart.layout.bars.dataLabels.offsetX) : Math.min(or(e.value) + 3 + N.value.style.chart.layout.bars.dataLabels.offsetX, J.value.right - 2),
1392
- y: J.value.top + (L.value + K.value) * t + K.value / 2 + G.value[t] * W.value + N.value.style.chart.layout.bars.dataLabels.fontSize / 3,
1393
- "text-anchor": !Z.value || e.sign === -1 ? "start" : "end",
1394
- "font-size": N.value.style.chart.layout.bars.dataLabels.fontSize,
1395
- fill: N.value.style.chart.layout.bars.dataLabels.color,
1396
- "font-weight": N.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
1397
- }, w(gr(e.value, e, t, e.sign)), 9, bt)]))), 256))], 512),
1398
- (b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
1399
- x: 0,
1400
- y: J.value.top + (L.value + K.value) * t - L.value / 2 + G.value[t] * W.value,
1401
- width: F.value,
1402
- height: K.value + L.value <= 0 ? 1e-4 : K.value + L.value,
1403
- fill: dr.value === e.id ? T(oe)(N.value.style.chart.layout.highlighter.color, N.value.style.chart.layout.highlighter.opacity) : "transparent",
1404
- onMouseenter: (n) => hr(e, t, "pointer"),
1405
- onMouseleave: (n) => mr({
1406
- datapoint: e,
1407
- seriesIndex: t
1408
- }),
1409
- onClick: (n) => pr({
1410
- datapoint: e,
1411
- seriesIndex: t
1412
- })
1413
- }, null, 40, xt)]))), 256)),
1414
- C(e.$slots, "svg", { svg: {
1415
- ...q.value,
1416
- drawingArea: J.value,
1417
- isPrintingImg: T(In) || T(Ln) || xn.value,
1418
- isPrintingSvg: Sn.value
1419
- } }, void 0, !0)
1420
- ], 512)], 46, $e)), e.$slots.hint ? (b(), m("div", St, [C(e.$slots, "hint", v(g({
1421
- hint: N.value.a11y.translations.keyboardNavigation,
1422
- isVisible: zr.value
1423
- })), void 0, !0)])) : p("", !0)]),
1424
- e.$slots.watermark ? (b(), m("div", Ct, [C(e.$slots, "watermark", v(g({ isPrinting: T(In) || T(Ln) || xn.value || Sn.value })), void 0, !0)])) : p("", !0),
1425
- N.value.style.chart.legend.show && N.value.style.chart.legend.position === "bottom" ? (b(), m("div", {
1426
- key: 7,
1427
- ref_key: "chartLegend",
1428
- ref: on
1429
- }, [(b(), f(Me, {
1430
- key: `legend_bottom_${un.value}`,
1431
- legendSet: V.value,
1432
- config: Xn.value,
1433
- isCursorPointer: P.value,
1434
- onClickMarker: r[1] ||= ({ legend: e }) => Y(e.id)
1435
- }, Pe({
1436
- item: E(({ legend: e, index: t }) => [h("div", {
1437
- onClick: (t) => Y(e.id),
1438
- style: y(`opacity:${A.value.includes(e.id) ? .5 : 1}`)
1439
- }, w(e.name) + ": " + w(T(ae)(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, T(n)({
1440
- p: N.value.style.chart.legend.prefix,
1441
- v: e.value,
1442
- s: N.value.style.chart.legend.suffix,
1443
- r: N.value.style.chart.legend.roundingValue
1444
- }), {
1445
- datapoint: e,
1446
- seriesIndex: t
1447
- })), 13, wt)]),
1448
- legendToggle: E(() => [V.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !T(On) ? (b(), f(De, {
1449
- key: 0,
1450
- backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1451
- color: N.value.style.chart.legend.selectAllToggle.color,
1452
- fontSize: N.value.style.chart.legend.fontSize,
1453
- checked: A.value.length > 0,
1454
- isCursorPointer: P.value,
1455
- onToggle: er
1456
- }, null, 8, [
1457
- "backgroundColor",
1458
- "color",
1459
- "fontSize",
1460
- "checked",
1461
- "isCursorPointer"
1462
- ])) : p("", !0)]),
1463
- _: 2
1464
- }, [e.$slots.pattern ? {
1465
- name: "legend-pattern",
1466
- fn: E(({ legend: e, index: t }) => [Ie(Se, {
1467
- shape: e.shape,
1468
- radius: 30,
1469
- stroke: "none",
1470
- plot: {
1471
- x: 30,
1472
- y: 30
1473
- },
1474
- fill: `url(#pattern_${O.value}_${t})`
1475
- }, null, 8, ["shape", "fill"])]),
1476
- key: "0"
1477
- } : void 0]), 1032, [
1478
- "legendSet",
1479
- "config",
1480
- "isCursorPointer"
1481
- ]))], 512)) : p("", !0),
1482
- C(e.$slots, "legend", { legend: V.value }, void 0, !0),
1483
- e.$slots.source ? (b(), m("div", {
1484
- key: 8,
1485
- ref_key: "source",
1486
- ref: sn,
1487
- dir: "auto"
1488
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1489
- Ie(T(Ut), {
1490
- teleportTo: N.value.style.chart.tooltip.teleportTo,
1491
- show: B.value.showTooltip && en.value && A.value.length < D.dataset.length,
1492
- backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1493
- color: N.value.style.chart.tooltip.color,
1494
- borderRadius: N.value.style.chart.tooltip.borderRadius,
1495
- borderColor: N.value.style.chart.tooltip.borderColor,
1496
- borderWidth: N.value.style.chart.tooltip.borderWidth,
1497
- fontSize: N.value.style.chart.tooltip.fontSize,
1498
- backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1499
- position: N.value.style.chart.tooltip.position,
1500
- offsetX: N.value.style.chart.tooltip.offsetX,
1501
- offsetY: N.value.style.chart.tooltip.offsetY,
1502
- parent: k.value,
1503
- content: tn.value,
1504
- isFullscreen: vr.value,
1505
- isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
1506
- smooth: N.value.style.chart.tooltip.smooth,
1507
- backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1508
- smoothForce: N.value.style.chart.tooltip.smoothForce,
1509
- smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1510
- isA11yMode: wn.value === "keyboard",
1511
- a11yPosition: Cn.value
1512
- }, {
1513
- "tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...fr.value })), void 0, !0)]),
1514
- tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...fr.value })), void 0, !0)]),
1515
- "tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...fr.value })), void 0, !0)]),
1516
- _: 3
1517
- }, 8, [
1518
- "teleportTo",
1519
- "show",
1520
- "backgroundColor",
1521
- "color",
1522
- "borderRadius",
1523
- "borderColor",
1524
- "borderWidth",
1525
- "fontSize",
1526
- "backgroundOpacity",
1527
- "position",
1528
- "offsetX",
1529
- "offsetY",
1530
- "parent",
1531
- "content",
1532
- "isFullscreen",
1533
- "isCustom",
1534
- "smooth",
1535
- "backdropFilter",
1536
- "smoothForce",
1537
- "smoothSnapThreshold",
1538
- "isA11yMode",
1539
- "a11yPosition"
1540
- ]),
1541
- $t.value && N.value.userOptions.buttons.table ? (b(), f(He(Dr.value.component), Re({ key: 9 }, Dr.value.props, {
1542
- ref_key: "tableUnit",
1543
- ref: fn,
1544
- onClose: kr
1545
- }), Pe({
1546
- content: E(() => [h("div", {
1547
- ref_key: "tableContainer",
1548
- ref: Hn,
1549
- class: "vue-ui-vertical-bar-table atom-data-table",
1550
- style: y(`${N.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
1551
- }, [h("div", Tt, [N.value.table.useDialog ? p("", !0) : (b(), m("div", {
1552
- key: 0,
1553
- role: "button",
1554
- tabindex: "0",
1555
- style: y(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${P.value ? "pointer" : "default"}; background:${N.value.table.th.backgroundColor};`),
1556
- onClick: kr,
1557
- onKeypress: qe(kr, ["enter"])
1558
- }, [Ie(T(Wt), {
1559
- name: "close",
1560
- stroke: N.value.table.th.color,
1561
- "stroke-width": 2
1562
- }, null, 8, ["stroke"])], 36)), h("div", {
1563
- style: {
1564
- width: "100%",
1565
- "container-type": "inline-size"
1566
- },
1567
- class: _({ "vue-ui-responsive": T(Or) })
1568
- }, [h("table", Et, [
1569
- N.value.table.useDialog ? p("", !0) : (b(), m("caption", {
1570
- key: 0,
1571
- style: y({
1572
- backgroundColor: N.value.table.th.backgroundColor,
1573
- color: N.value.table.th.color,
1574
- outline: N.value.table.th.outline
1575
- }),
1576
- class: "vue-ui-data-table__caption"
1577
- }, [Fe(w(N.value.style.chart.title.text) + " ", 1), N.value.style.chart.title.subtitle.text ? (b(), m("span", Dt, w(N.value.style.chart.title.subtitle.text), 1)) : p("", !0)], 4)),
1578
- h("thead", null, [h("tr", {
1579
- role: "row",
1580
- style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color}`)
1581
- }, [(b(!0), m(u, null, S($.value.head, (e) => (b(), m("th", { style: y(`outline:${N.value.table.th.outline}`) }, [h("div", Ot, w(e), 1)], 4))), 256))], 4), h("tr", null, [
1582
- h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
1583
- h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + w(N.value.table.td.prefix) + w(isNaN(X.value) ? "" : X.value.toFixed(N.value.table.td.roundingValue)) + w(N.value.table.td.suffix), 5),
1584
- h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
1585
- h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
1586
- h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
1587
- h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
1588
- h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4)
1589
- ])]),
1590
- h("tbody", null, [(b(!0), m(u, null, S($.value.body, (e, t) => (b(), m("tr", {
1591
- class: _({
1592
- "vue-ui-data-table__tbody__row": !0,
1593
- "vue-ui-data-table__tbody__row-even": t % 2 == 0,
1594
- "vue-ui-data-table__tbody__row-odd": t % 2 != 0
1595
- }),
1596
- style: y(`background:${N.value.table.td.backgroundColor};color:${N.value.table.td.color}`)
1597
- }, [
1598
- h("td", {
1599
- class: "vue-ui-data-table__tbody__td",
1600
- style: y(`outline:${N.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1601
- "data-cell": $.value.head[0] ?? ""
1602
- }, [h("div", At, [e.color ? (b(), m("span", {
1603
- key: 0,
1604
- style: y(`color:${e.color};margin-right:3px`)
1605
- }, "⬤", 4)) : p("", !0), h("span", null, w(e.parentName), 1)])], 12, kt),
1606
- h("td", {
1607
- class: "vue-ui-data-table__tbody__td",
1608
- style: y(`outline:${N.value.table.td.outline}`),
1609
- "data-cell": $.value.head[1] ?? ""
1610
- }, [h("div", Mt, w(N.value.table.td.prefix) + w([
1611
- "",
1612
- NaN,
1613
- void 0
1614
- ].includes(e.parentValue) ? "" : e.parentValue.toFixed(N.value.table.td.roundingValue)) + w(N.value.table.td.suffix), 1)], 12, jt),
1615
- h("td", {
1616
- class: "vue-ui-data-table__tbody__td",
1617
- style: y(`outline:${N.value.table.td.outline}`),
1618
- "data-cell": $.value.head[2] ?? ""
1619
- }, [h("div", Pt, w([
1620
- "",
1621
- NaN,
1622
- void 0
1623
- ].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(N.value.table.td.roundingPercentage)}%`), 1)], 12, Nt),
1624
- h("td", {
1625
- class: "vue-ui-data-table__tbody__td",
1626
- style: y(`outline:${N.value.table.td.outline}`),
1627
- "data-cell": $.value.head[3] ?? ""
1628
- }, [h("div", It, w(e.childName), 1)], 12, Ft),
1629
- h("td", {
1630
- class: "vue-ui-data-table__tbody__td",
1631
- style: y(`outline:${N.value.table.td.outline}`),
1632
- "data-cell": $.value.head[4] ?? ""
1633
- }, [h("div", Rt, w(N.value.table.td.prefix) + w([
1634
- "",
1635
- NaN,
1636
- void 0
1637
- ].includes(e.childValue) ? "" : e.childValue.toFixed(N.value.table.td.roundingValue)) + w(N.value.table.td.suffix), 1)], 12, Lt),
1638
- h("td", {
1639
- class: "vue-ui-data-table__tbody__td",
1640
- style: y(`outline:${N.value.table.td.outline}`),
1641
- "data-cell": $.value.head[5] ?? ""
1642
- }, [h("div", Bt, w([
1643
- "",
1644
- NaN,
1645
- void 0
1646
- ].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(N.value.table.td.roundingPercentage)}%`), 1)], 12, zt),
1647
- h("td", {
1648
- class: "vue-ui-data-table__tbody__td",
1649
- style: y(`outline:${N.value.table.td.outline}`),
1650
- "data-cell": $.value.head[6] ?? ""
1651
- }, [h("div", Ht, w([
1652
- "",
1653
- NaN,
1654
- void 0
1655
- ].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(N.value.table.td.roundingPercentage)}%`), 1)], 12, Vt)
1656
- ], 6))), 256))])
1657
- ])], 2)])], 4)]),
1658
- _: 2
1659
- }, [N.value.table.useDialog ? {
1660
- name: "title",
1661
- fn: E(() => [Fe(w(Dr.value.title), 1)]),
1662
- key: "0"
1663
- } : void 0, N.value.table.useDialog ? {
1664
- name: "actions",
1665
- fn: E(() => [h("button", {
1666
- tabindex: "0",
1667
- class: "vue-ui-user-options-button",
1668
- onClick: r[2] ||= (e) => _r(N.value.userOptions.callbacks.csv),
1669
- style: y({ cursor: P.value ? "pointer" : "default" })
1670
- }, [Ie(T(Wt), {
1671
- name: "fileCsv",
1672
- stroke: Dr.value.props.color
1673
- }, null, 8, ["stroke"])], 4)]),
1674
- key: "1"
1675
- } : void 0]), 1040)) : p("", !0),
1676
- C(e.$slots, "skeleton", {}, () => [T(On) ? (b(), f(ge, { key: 0 })) : p("", !0)], !0)
1677
- ], 46, Ye));
1678
- }
1679
- }, [["__scopeId", "data-v-ce41ffa2"]]);
1680
- //#endregion
1681
- export { Je as n, Ut as t };