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,2267 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { B as t, Ft as n, G as r, H as a, It as o, J as s, Lt as c, S as l, St as u, Tt as d, V as ee, X as f, et as p, g as te, h as ne, i as m, nt as re, ot as ie, pt as ae, r as oe, s as se, t as ce, x as le, y as ue, yt as de, zt as fe } from "./lib-BkiwukKO.js";
3
- import { n as pe, r as me, t as he } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as ge } from "./useConfig-ByaaSKhz.js";
5
- import { t as _e } from "./usePrinter-X0yWOynH.js";
6
- import { n as ve, t as ye } from "./BaseScanner-C7dmAref.js";
7
- import { t as be } from "./useSvgExport-Dtu973wa.js";
8
- import { t as xe } from "./useNestedProp-Ck4hsrpu.js";
9
- import { t as Se } from "./useThemeCheck-rFK9Zlb_.js";
10
- import { t as Ce } from "./useStableElementSize-0I1IpHPl.js";
11
- import { t as we } from "./useTimeLabelCollider-Dm55Emzg.js";
12
- import { t as Te } from "./img-BjOr008R.js";
13
- import { n as Ee } from "./Title-__gWq2g6.js";
14
- import { t as De } from "./Shape-DEGOZ6GG.js";
15
- import { t as Oe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
16
- import { c as ke } from "./canvas-lib-DTaADQOK.js";
17
- import { t as Ae } from "./useResponsive-CrAInupd.js";
18
- import { t as je } from "./SlicerPreview-BU3ZeHjR.js";
19
- import { t as Me } from "./BaseLegendToggle-CJTwLGXL.js";
20
- import { t as Ne } from "./A11yDataTable-q2-8fSlJ.js";
21
- import { t as Pe } from "./useUserOptionState-CjPJPTg2.js";
22
- import { t as Fe } from "./useChartAccessibility-Do37qcw2.js";
23
- import { t as Ie } from "./Legend-Gg5Q4Clb.js";
24
- import { t as Le } from "./vue_ui_stackbar-BW_C3MXw.js";
25
- import { Fragment as h, Teleport as Re, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as x, guardReactiveProps as S, mergeProps as He, nextTick as Ue, normalizeClass as We, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ge, onMounted as Ke, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as k, toRefs as Ye, unref as A, useSlots as Xe, watch as Ze, watchEffect as Qe, withCtx as j } from "vue";
26
- //#region src/components/vue-ui-stackbar.vue
27
- var $e = /* @__PURE__ */ e({ default: () => Qt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
28
- "xmlns",
29
- "aria-describedby",
30
- "viewBox"
31
- ], at = [
32
- "x",
33
- "y",
34
- "width",
35
- "height"
36
- ], ot = { key: 1 }, st = ["id"], ct = ["stop-color"], lt = ["stop-color"], ut = ["stop-color"], dt = [
37
- "x",
38
- "y",
39
- "width",
40
- "height",
41
- "stroke",
42
- "stroke-width",
43
- "stroke-linecap",
44
- "stroke-linejoin",
45
- "stroke-dasharray"
46
- ], ft = [
47
- "x1",
48
- "x2",
49
- "y1",
50
- "y2",
51
- "stroke",
52
- "stroke-width",
53
- "stroke-dasharray"
54
- ], pt = [
55
- "x1",
56
- "x2",
57
- "y1",
58
- "y2",
59
- "stroke",
60
- "stroke-width",
61
- "stroke-dasharray"
62
- ], mt = [
63
- "x1",
64
- "x2",
65
- "y1",
66
- "y2",
67
- "stroke",
68
- "stroke-width",
69
- "stroke-dasharray"
70
- ], ht = [
71
- "x1",
72
- "x2",
73
- "y1",
74
- "y2",
75
- "stroke",
76
- "stroke-width",
77
- "stroke-dasharray"
78
- ], gt = { key: 0 }, _t = [
79
- "x",
80
- "y",
81
- "height",
82
- "rx",
83
- "width",
84
- "fill",
85
- "stroke",
86
- "stroke-width"
87
- ], vt = { key: 0 }, yt = [
88
- "x",
89
- "y",
90
- "height",
91
- "rx",
92
- "width",
93
- "fill",
94
- "stroke",
95
- "stroke-width"
96
- ], bt = [
97
- "x",
98
- "y",
99
- "width",
100
- "rx",
101
- "height",
102
- "fill",
103
- "stroke",
104
- "stroke-width"
105
- ], xt = { key: 0 }, St = [
106
- "x",
107
- "y",
108
- "width",
109
- "rx",
110
- "height",
111
- "fill",
112
- "stroke",
113
- "stroke-width"
114
- ], Ct = [
115
- "x1",
116
- "x2",
117
- "y1",
118
- "y2",
119
- "stroke",
120
- "stroke-width"
121
- ], wt = [
122
- "x1",
123
- "x2",
124
- "y1",
125
- "y2",
126
- "stroke",
127
- "stroke-width"
128
- ], Tt = [
129
- "x",
130
- "y",
131
- "font-size",
132
- "fill",
133
- "font-weight"
134
- ], Et = [
135
- "transform",
136
- "font-size",
137
- "fill",
138
- "font-weight"
139
- ], Dt = [
140
- "x",
141
- "y",
142
- "font-size",
143
- "fill",
144
- "font-weight"
145
- ], Ot = [
146
- "x",
147
- "y",
148
- "font-size",
149
- "font-weight",
150
- "fill"
151
- ], kt = [
152
- "x",
153
- "y",
154
- "font-size",
155
- "fill",
156
- "font-weight"
157
- ], At = [
158
- "x",
159
- "y",
160
- "font-size",
161
- "font-weight",
162
- "fill"
163
- ], jt = [
164
- "x1",
165
- "x2",
166
- "y1",
167
- "y2",
168
- "stroke"
169
- ], Mt = [
170
- "x",
171
- "y",
172
- "font-size",
173
- "font-weight",
174
- "fill",
175
- "text-anchor"
176
- ], Nt = [
177
- "x1",
178
- "x2",
179
- "y1",
180
- "y2",
181
- "stroke"
182
- ], Pt = [
183
- "font-size",
184
- "font-weight",
185
- "fill",
186
- "text-anchor",
187
- "transform"
188
- ], Ft = { key: 0 }, It = { key: 1 }, Lt = [
189
- "text-anchor",
190
- "font-size",
191
- "font-weight",
192
- "fill",
193
- "transform",
194
- "onClick"
195
- ], Rt = [
196
- "text-anchor",
197
- "font-size",
198
- "fill",
199
- "transform",
200
- "innerHTML",
201
- "onClick"
202
- ], zt = { key: 0 }, Bt = { key: 1 }, Vt = [
203
- "font-size",
204
- "font-weight",
205
- "fill",
206
- "x",
207
- "y",
208
- "onClick"
209
- ], Ht = [
210
- "font-size",
211
- "font-weight",
212
- "fill",
213
- "x",
214
- "y",
215
- "onClick",
216
- "innerHTML"
217
- ], Ut = [
218
- "x",
219
- "y",
220
- "width",
221
- "height",
222
- "onClick",
223
- "onMouseenter",
224
- "onMouseleave",
225
- "fill"
226
- ], Wt = [
227
- "x",
228
- "y",
229
- "width",
230
- "height",
231
- "onClick",
232
- "onMouseenter",
233
- "onMouseleave",
234
- "fill"
235
- ], Gt = ["data-start", "data-end"], Kt = {
236
- key: 0,
237
- style: {
238
- position: "absolute",
239
- top: "100%",
240
- left: "0",
241
- width: "100%"
242
- },
243
- "data-dom-to-png-ignore": "",
244
- "aria-hidden": "true"
245
- }, qt = {
246
- key: 4,
247
- class: "vue-data-ui-watermark"
248
- }, Jt = [
249
- "x",
250
- "y",
251
- "height",
252
- "width",
253
- "fill",
254
- "stroke"
255
- ], Yt = ["id"], Xt = ["onClick"], Zt = ["innerHTML"], Qt = /* @__PURE__ */ Oe({
256
- __name: "vue-ui-stackbar",
257
- props: {
258
- config: {
259
- type: Object,
260
- default() {
261
- return {};
262
- }
263
- },
264
- dataset: {
265
- type: Array,
266
- default() {
267
- return [];
268
- }
269
- },
270
- selectedXIndex: {
271
- type: Number,
272
- default: void 0
273
- }
274
- },
275
- emits: [
276
- "selectDatapoint",
277
- "selectLegend",
278
- "selectTimeLabel",
279
- "selectX",
280
- "copyAlt"
281
- ],
282
- setup(e, { expose: Oe, emit: $e }) {
283
- let Qt = x(() => import("./Tooltip-CuWEYGr3.js")), $t = x(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), en = x(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), tn = x(() => import("./DataTable-DmE8Oo4i.js")), nn = x(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), rn = x(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), an = x(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), on = x(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_stackbar: sn } = ge(), { isThemeValid: cn, warnInvalidTheme: ln } = Se(), un = Xe(), M = e, N = $e, dn = g({
284
- get() {
285
- return !!M.dataset && M.dataset.length;
286
- },
287
- set(e) {
288
- return e;
289
- }
290
- }), P = E(null), F = E(a()), fn = E(!1), pn = E(null), mn = E(""), I = E([]), hn = E(0), gn = E(null), _n = E(null), vn = E(null), yn = E(null), bn = E(!1), L = E(null), xn = E(!1), Sn = E(0), Cn = E(0), wn = E(0), Tn = E(!1), En = E(null), Dn = E(null), On = E(!1), kn = E(!1), An = E(null), jn = E(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = E(null), In = Je(null), Ln = E(!1), Rn = E(0), zn = E(0), R = E(null), Bn = E({
291
- x: 0,
292
- y: 0
293
- }), Vn = E("pointer"), Hn = Ce({
294
- elementRef: In,
295
- minimumWidth: 2,
296
- minimumHeight: 2,
297
- stableFramesRequired: 2,
298
- once: !1,
299
- onSizeAccepted: () => {
300
- Gn();
301
- }
302
- });
303
- function Un() {
304
- In.value = P.value?.parentNode ?? null;
305
- }
306
- function Wn() {
307
- return new Promise((e) => {
308
- requestAnimationFrame(() => {
309
- requestAnimationFrame(e);
310
- });
311
- });
312
- }
313
- async function Gn() {
314
- let e = ++zn.value;
315
- Ln.value = !1, await Ue(), await Wn(), await Wn(), e === zn.value && (Rn.value += 1, Ln.value = !0);
316
- }
317
- let Kn = E(null);
318
- Ke(() => {
319
- Tn.value = !0, Un(), Hn.start(), mr();
320
- });
321
- let z = E(rr()), B = g(() => z.value.userOptions.useCursorPointer), qn = g(() => fe({
322
- defaultConfig: {
323
- userOptions: { show: !1 },
324
- useCssAnimation: !1,
325
- table: { show: !1 },
326
- tooltip: { show: !1 },
327
- style: { chart: {
328
- backgroundColor: "#99999930",
329
- bars: {
330
- totalValues: { show: !1 },
331
- dataLabels: { show: !1 }
332
- },
333
- grid: {
334
- frame: { stroke: "#6A6A6A" },
335
- scale: {
336
- scaleMin: 0,
337
- scaleMax: 40
338
- },
339
- x: {
340
- axisColor: "#6A6A6A",
341
- linesColor: "#6A6A6A",
342
- axisName: { show: !1 },
343
- timeLabels: { show: !1 }
344
- },
345
- y: {
346
- axisColor: "#6A6A6A",
347
- linesColor: "#6A6A6A",
348
- axisName: { show: !1 },
349
- axisLabels: { show: !1 }
350
- }
351
- },
352
- legend: { backgroundColor: "transparent" },
353
- padding: {
354
- left: 24,
355
- right: 24,
356
- bottom: 12
357
- },
358
- zoom: {
359
- show: !1,
360
- startIndex: null,
361
- endIndex: null
362
- }
363
- } }
364
- },
365
- userConfig: z.value.skeletonConfig ?? {}
366
- })), { loading: Jn, FINAL_DATASET: Yn, manualLoading: Xn } = ve({
367
- ...Ye(M),
368
- FINAL_CONFIG: z,
369
- prepareConfig: rr,
370
- callback: () => {
371
- Promise.resolve().then(async () => {
372
- (!z.value.style.chart.zoom.keepState || !Li.value || J.value.start === 0 && J.value.end === 0) && await Ri();
373
- });
374
- },
375
- skeletonDataset: M.config?.skeletonDataset ?? [{
376
- name: "",
377
- series: [
378
- 2,
379
- 3,
380
- 5,
381
- 8,
382
- 13,
383
- 21
384
- ],
385
- color: "#BABABA"
386
- }, {
387
- name: "",
388
- series: [
389
- 1,
390
- 2,
391
- 3,
392
- 5,
393
- 8,
394
- 13
395
- ],
396
- color: "#CACACA"
397
- }],
398
- skeletonConfig: fe({
399
- defaultConfig: z.value,
400
- userConfig: qn.value
401
- })
402
- }), { userOptionsVisible: Zn, setUserOptionsVisibility: Qn, keepUserOptionState: $n } = Pe({ config: z.value }), { svgRef: er } = Fe({ config: z.value.style.chart.title });
403
- function tr() {
404
- Qn(!0);
405
- }
406
- function nr() {
407
- Qn(!1), N("selectX", {
408
- seriesIndex: null,
409
- datapoint: null
410
- }), L.value = null, R.value = null, fn.value = !1;
411
- }
412
- function rr() {
413
- let e = xe({
414
- userConfig: M.config,
415
- defaultConfig: sn
416
- }), t = {}, n = e.theme;
417
- if (n) if (!cn.value(e)) ln(e), t = e;
418
- else {
419
- let r = xe({
420
- userConfig: Le[n] || M.config,
421
- defaultConfig: e
422
- });
423
- t = {
424
- ...xe({
425
- userConfig: M.config,
426
- defaultConfig: r
427
- }),
428
- customPalette: e.customPalette.length ? e.customPalette : c[n] || d
429
- };
430
- }
431
- else t = e;
432
- return t;
433
- }
434
- let ir = g(() => z.value.style.chart.bars.dataLabels.hideUnderValue != null), ar = g(() => z.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
435
- Ze(() => M.config, (e) => {
436
- Jn.value || (z.value = rr()), Zn.value = !z.value.userOptions.showOnChartHover, mr({ resetSlicer: !z.value.style.chart.zoom.keepState }), Sn.value += 1, Cn.value += 1, wn.value += 1, V.value.dataLabels.show = z.value.style.chart.bars.dataLabels.show, V.value.showTable = z.value.table.show, V.value.showTooltip = z.value.style.chart.tooltip.show, Un(), !z.value.style.chart.zoom.keepState || !Li.value || J.value.start === 0 && J.value.end === 0 ? Ri() : kr();
437
- }, { deep: !0 }), Ze(() => M.dataset, (e) => {
438
- Array.isArray(e) && e.length > 0 && (Xn.value = !1), Un(), z.value.style.chart.zoom.keepState ? kr() : Mr();
439
- }, { deep: !0 });
440
- let V = E({
441
- dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
442
- showTable: z.value.table.show,
443
- showTooltip: z.value.style.chart.tooltip.show
444
- });
445
- Ze(z, () => {
446
- V.value = {
447
- dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
448
- showTable: z.value.table.show,
449
- showTooltip: z.value.style.chart.tooltip.show
450
- };
451
- }, { immediate: !0 });
452
- let { isPrinting: or, isImaging: sr, generatePdf: cr, generateImage: lr } = _e({
453
- elementId: `stackbar_${F.value}`,
454
- fileName: z.value.style.chart.title.text || "vue-ui-stackbar",
455
- options: z.value.userOptions.print
456
- }), H = E({
457
- width: z.value.style.chart.width,
458
- height: z.value.style.chart.height,
459
- paddingRatio: {
460
- top: z.value.style.chart.padding.top / z.value.style.chart.height,
461
- right: z.value.style.chart.padding.right / z.value.style.chart.width,
462
- bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
463
- left: z.value.style.chart.padding.left / z.value.style.chart.width
464
- }
465
- }), ur = g(() => le(z.value.customPalette)), U = Je(null), dr = Je(null), fr = E(null), pr = g(() => !!z.value.debug);
466
- function mr({ resetSlicer: e = !0 } = {}) {
467
- if (u(M.dataset) ? (f({
468
- componentName: "VueUiStackbar",
469
- type: "dataset",
470
- debug: pr.value
471
- }), Xn.value = !0) : M.dataset.forEach((e, t) => {
472
- ie({
473
- datasetObject: e,
474
- requiredAttributes: ["name", "series"]
475
- }).forEach((e) => {
476
- dn.value = !1, f({
477
- componentName: "VueUiStackbar",
478
- type: "datasetSerieAttribute",
479
- property: e,
480
- index: t,
481
- debug: pr.value
482
- }), Xn.value = !0;
483
- });
484
- }), u(M.dataset) || (Xn.value = z.value.loading), setTimeout(() => {
485
- xn.value = !0;
486
- }, 10), z.value.responsive) {
487
- let e = ke(() => {
488
- xn.value = !1;
489
- let { width: e, height: t } = Ae({
490
- chart: P.value,
491
- title: z.value.style.chart.title.text ? gn.value : null,
492
- legend: z.value.style.chart.legend.show ? _n.value : null,
493
- slicer: z.value.style.chart.zoom.show && q.value > 6 ? vn.value.$el : null,
494
- source: yn.value
495
- });
496
- requestAnimationFrame(() => {
497
- H.value.width = e, H.value.height = t - 12, clearTimeout(fr.value), fr.value = setTimeout(() => {
498
- xn.value = !0;
499
- }, 10);
500
- });
501
- });
502
- U.value && (dr.value && U.value.unobserve(dr.value), U.value.disconnect()), U.value = new ResizeObserver(e), dr.value = P.value.parentNode, U.value.observe(dr.value);
503
- }
504
- Gn(), e && Ri();
505
- }
506
- Ge(() => {
507
- Hn.stop(), U.value && (dr.value && U.value.unobserve(dr.value), U.value.disconnect());
508
- });
509
- let W = g(() => z.value.style.chart.grid.y.position === "right");
510
- function hr() {
511
- let e = 0;
512
- z.value.orientation === "vertical" && Mn.value && (e = Array.from(Mn.value.querySelectorAll("text")).reduce((e, t) => {
513
- let n = t.getComputedTextLength();
514
- return n > e ? n : e;
515
- }, 0)), z.value.orientation === "horizontal" && Nn.value && (e = Array.from(Nn.value.querySelectorAll("text")).reduce((e, t) => {
516
- let n = t.getComputedTextLength();
517
- return n > e ? n : e;
518
- }, 0));
519
- let t = jn.value ? jn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
520
- return {
521
- left: W.value ? 0 : e + t,
522
- right: W.value ? e + t : 0,
523
- scaleLabelsWidth: e,
524
- yAxisLabelWidth: t
525
- };
526
- }
527
- let gr = E(0), _r = E(0), vr = ke((e) => {
528
- _r.value = e + z.value.style.chart.bars.totalValues.fontSize;
529
- }, 100);
530
- function yr() {
531
- if (z.value.orientation !== "horizontal") return 0;
532
- let e = Fn.value;
533
- if (!e) return 0;
534
- let t = Array.from(e.querySelectorAll("text"));
535
- if (!t.length) return 0;
536
- let n = -Infinity;
537
- for (let e of t) try {
538
- let t = e.getBBox(), r = t.x + t.width;
539
- r > n && (n = r);
540
- } catch {}
541
- return Math.max(0, n - (G.value?.right ?? 0));
542
- }
543
- Qe((e) => {
544
- if (z.value.orientation !== "horizontal") return;
545
- let t = Fn.value;
546
- if (!t) return;
547
- let n = () => {
548
- vr(yr());
549
- };
550
- n();
551
- let r = new ResizeObserver(n);
552
- r.observe(t);
553
- let a = new MutationObserver(n);
554
- a.observe(t, {
555
- childList: !0,
556
- subtree: !0,
557
- characterData: !0
558
- }), e(() => {
559
- r.disconnect(), a.disconnect();
560
- });
561
- }), Ge(() => {
562
- gr.value = 0, _r.value = 0;
563
- });
564
- let br = E(0), xr = E(0);
565
- function Sr() {
566
- let e = z.value.orientation === "vertical" ? Nn.value : Mn.value;
567
- if (!e) {
568
- br.value = 0;
569
- return;
570
- }
571
- try {
572
- let t = e.getBBox();
573
- br.value = Number.isFinite(t?.height) ? t.height : 0;
574
- } catch {
575
- br.value = 0;
576
- }
577
- }
578
- function Cr() {
579
- xr.value && cancelAnimationFrame(xr.value), xr.value = requestAnimationFrame(() => {
580
- requestAnimationFrame(() => {
581
- Sr();
582
- });
583
- });
584
- }
585
- Ge(() => {
586
- xr.value && cancelAnimationFrame(xr.value);
587
- });
588
- let wr = g(() => {
589
- let e = 0;
590
- if (An.value) try {
591
- e = An.value.getBBox().height;
592
- } catch {
593
- e = 0;
594
- }
595
- let t = z.value.style.chart.grid.x.timeLabels.show ? br.value : 0;
596
- return e + t;
597
- }), G = g(() => {
598
- Rn.value;
599
- let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = z.value.style.chart.bars.totalValues.show && M.dataset && M.dataset.length > 1 ? z.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
600
- if (z.value.style.chart.grid.y.axisLabels.show) {
601
- let e = hr();
602
- a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
603
- }
604
- let l = z.value.style.chart.padding.top + r, u = t - t * n - _r.value - o, d = e - z.value.style.chart.padding.bottom - wr.value - r, ee = z.value.style.chart.padding.left + a, f = t - ee - t * n - _r.value - o, p = e - l - z.value.style.chart.padding.bottom - wr.value - r;
605
- return {
606
- chartHeight: e,
607
- chartWidth: t,
608
- top: l,
609
- right: u,
610
- bottom: d,
611
- left: ee,
612
- width: Math.max(0, f),
613
- height: Math.max(0, p),
614
- offsetLeft: a,
615
- offsetRightAxis: o,
616
- scaleLabelsWidth: s,
617
- yAxisLabelWidth: c
618
- };
619
- }), Tr = g(() => {
620
- let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
621
- fill: z.value.style.chart.zoom.preview.fill,
622
- stroke: z.value.style.chart.zoom.preview.stroke,
623
- "stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
624
- "stroke-dasharray": z.value.style.chart.zoom.preview.strokeDasharray,
625
- "stroke-linecap": "round",
626
- "stroke-linejoin": "round",
627
- style: {
628
- pointerEvents: "none",
629
- transition: "none !important",
630
- animation: "none !important"
631
- }
632
- };
633
- if (z.value.orientation === "horizontal") {
634
- let a = r / s;
635
- return {
636
- x: e,
637
- y: t + c * a,
638
- width: n,
639
- height: u * a,
640
- ...d
641
- };
642
- } else {
643
- let a = n / s;
644
- return {
645
- x: e + c * a,
646
- y: t,
647
- width: u * a,
648
- height: r,
649
- ...d
650
- };
651
- }
652
- }), K = g(() => Yn.value.map((e, t) => {
653
- let n = `stackbar_serie_${t}`, r = ue(e.color) || ur.value[t] || d[t] || d[t % d.length];
654
- return {
655
- ...e,
656
- series: JSON.parse(JSON.stringify(e.series)).map((e) => z.value.style.chart.bars.distributed ? Math.abs(e) : e),
657
- signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
658
- absoluteIndex: t,
659
- id: n,
660
- color: r
661
- };
662
- })), q = g(() => {
663
- let e = Math.max(...K.value.filter((e) => !I.value.includes(e.id)).map((e) => e.series.length));
664
- return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
665
- });
666
- function Er(e) {
667
- Kn.value = e;
668
- }
669
- let J = E({
670
- start: 0,
671
- end: Math.max(...Yn.value.map((e) => e.series.length))
672
- }), Y = E({
673
- start: 0,
674
- end: Math.max(...Yn.value.map((e) => e.series.length))
675
- }), Dr = g(() => z.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
676
- function Or(e, t) {
677
- Y.value[e] = t;
678
- }
679
- function kr() {
680
- let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
681
- (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, vn.value && (vn.value.setStartValue(t), vn.value.setEndValue(n));
682
- }
683
- let Ar = E(null);
684
- function jr() {
685
- return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
686
- }
687
- Ge(() => {
688
- Ar.value && cancelAnimationFrame(Ar.value);
689
- });
690
- async function Mr({ force: e = !1 } = {}) {
691
- if (z.value.style.chart.zoom.keepState && !e && Li.value && !(J.value.start === 0 && J.value.end === 0)) {
692
- kr();
693
- return;
694
- }
695
- Ri(), await Ue(), Ar.value && cancelAnimationFrame(Ar.value), Ar.value = requestAnimationFrame(async () => {
696
- await jr(), Ri();
697
- });
698
- }
699
- let X = g(() => {
700
- let e;
701
- return e = z.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
702
- }), Nr = g(() => n(K.value.filter((e) => !I.value.includes(e.id))).slice(J.value.start, J.value.end)), Pr = g(() => I.value.length === K.value.length), Fr = g(() => z.value.style.chart.zoom.minimap.show ? n(K.value.map((e) => ({
703
- ...e,
704
- series: e.series.map((e) => e ?? 0)
705
- })).filter((e) => Pr.value ? !0 : !I.value.includes(e.id))) : []), Ir = g(() => z.value.style.chart.zoom.minimap.show ? [{
706
- name: "",
707
- series: Fr.value,
708
- color: "#000000",
709
- isVisible: !0
710
- }] : []), Lr = g(() => n(K.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
711
- ...e,
712
- series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
713
- }))).slice(J.value.start, J.value.end)), Rr = g(() => {
714
- let e = K.value.filter((e) => !I.value.includes(e.id));
715
- return {
716
- positive: n(e.map((e) => ({
717
- ...e,
718
- series: e.series.slice(J.value.start, J.value.end).map((e) => e >= 0 ? e : 0)
719
- }))),
720
- negative: n(e.map((e) => ({
721
- ...e,
722
- series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
723
- })))
724
- };
725
- }), Z = g(() => {
726
- let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...Rr.value.positive), t = Math.min(...Rr.value.negative), n = z.value.style.chart.grid.scale.scaleMin !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMin : [
727
- -Infinity,
728
- Infinity,
729
- NaN,
730
- void 0,
731
- null
732
- ].includes(t) ? 0 : t, r = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? te(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks) : ne(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks);
733
- return r.ticks.map((e) => ({
734
- zero: G.value.bottom - G.value.height * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
735
- y: G.value.bottom - G.value.height * ((e + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
736
- x: W.value ? G.value.right + 8 : G.value.left - 8,
737
- horizontal_zero: G.value.left + G.value.width * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
738
- horizontal_x: G.value.left + G.value.width * ((e + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
739
- horizontal_y: G.value.bottom - 8,
740
- value: e
741
- }));
742
- }), Q = E([]), zr = E([]), Br = 0;
743
- Qe(() => {
744
- let e = ++Br;
745
- (async () => {
746
- let t = await he({
747
- values: z.value.style.chart.grid.x.timeLabels.values,
748
- maxDatapoints: q.value,
749
- formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
750
- start: J.value.start,
751
- end: J.value.end
752
- });
753
- e === Br && (Q.value = t);
754
- })();
755
- });
756
- let Vr = 0;
757
- Qe(() => {
758
- let e = ++Vr;
759
- (async () => {
760
- let t = await he({
761
- values: z.value.style.chart.grid.x.timeLabels.values,
762
- maxDatapoints: q.value,
763
- formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
764
- start: 0,
765
- end: q.value
766
- });
767
- e === Vr && (zr.value = t);
768
- })();
769
- });
770
- let Hr = g(() => {
771
- let e = z.value.style.chart.grid.x.timeLabels.modulo;
772
- return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
773
- }), Ur = g(() => {
774
- let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = zr.value || [], r = J.value.start ?? 0, a = L.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? "");
775
- return se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), s, c, r, a, o);
776
- });
777
- Qe(() => {
778
- z.value.orientation, z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, Ur.value?.map((e) => e?.text ?? "").join("|"), Z.value?.map((e) => e?.value ?? "").join("|"), H.value.width, H.value.height, Nn.value, Mn.value, An.value, Cr();
779
- }, { flush: "post" });
780
- let Wr = E({
781
- months: [],
782
- shortMonths: [],
783
- days: [],
784
- shortDays: []
785
- }), Gr = 0;
786
- Qe(() => {
787
- let e = ++Gr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
788
- (async () => {
789
- let n = await me(t.locale).catch(() => me("en"));
790
- e === Gr && (Wr.value = n.data);
791
- })();
792
- });
793
- let Kr = g(() => {
794
- let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
795
- useUTC: e.useUTC,
796
- locale: Wr.value,
797
- januaryAsYear: e.januaryAsYear
798
- });
799
- return (e, n) => {
800
- let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
801
- return r == null ? "" : t.formatDate(new Date(r), n);
802
- };
803
- }), qr = g(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
804
- text: Kr.value(t, z.value.style.chart.zoom.timeFormat),
805
- absoluteIndex: t
806
- }))), Jr = g(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
807
- text: Kr.value(t, z.value.style.chart.tooltip.timeFormat),
808
- absoluteIndex: t
809
- }))), $ = g(() => {
810
- if (!dn.value && !Jn.value) return [];
811
- let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Rr.value.positive) || 0, o = Math.min(...Rr.value.negative), s = [
812
- -Infinity,
813
- Infinity,
814
- NaN,
815
- void 0,
816
- null
817
- ].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? te(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : ne(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, ee = G.value.width, f = Z.value[0] ? Z.value[0].zero : G.value.bottom, p = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, m = Array(Fr.value.length).fill(0), re = Array(Fr.value.length).fill(0);
818
- return K.value.filter((e) => !I.value.includes(e.id)).map((a) => {
819
- let o = a.series.slice(), s = o.map((e, t) => m[t]), c = o.map((e, t) => re[t]);
820
- o.forEach((e, t) => {
821
- (Number(e) || 0) >= 0 ? m[t] += Number(e) || 0 : re[t] += Math.abs(Number(e) || 0);
822
- });
823
- let l = a.series.slice(J.value.start, J.value.end), te = a.signedSeries.slice(J.value.start, J.value.end), ne = l.map((e, t) => G.value.left + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), ie = (Fr.value || []).filter(Number.isFinite), ae = ie.length ? Math.max(...ie) : 0, oe = ie.length ? Math.min(...ie) : 0;
824
- function se({ minimapH: e }) {
825
- let t = 1e-9, n = ae > 0;
826
- if (n && oe < 0) {
827
- let n = Math.max(ae, Math.abs(oe)) || t;
828
- return {
829
- pxPerUnit: e / 2 / n,
830
- zero: e / 2
831
- };
832
- }
833
- return n ? {
834
- pxPerUnit: e / Math.max(t, ae),
835
- zero: e
836
- } : {
837
- pxPerUnit: e / Math.max(t, Math.abs(oe)),
838
- zero: 0
839
- };
840
- }
841
- let ce = ({ left: e, unitW: t }) => {
842
- let n = t * (z.value.style.chart.bars.gapRatio / 4);
843
- return o.map((r, a) => e + t * a + n);
844
- }, le = l.map((e, t) => G.value.top + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), ue = l.map((t, r) => {
845
- let a = z.value.style.chart.bars.distributed ? (t || 0) / Nr.value[r] : (t || 0) / u, o, s;
846
- return t > 0 ? (s = d * a, o = f - s - e[r], e[r] += s) : (s = d * a, o = f + n[r], n[r] += Math.abs(s)), o;
847
- }), de = ({ minimapH: e }) => {
848
- if (z.value.style.chart.bars.distributed) return o.map((t, n) => {
849
- let r = Math.abs(Number(t) || 0), a = Math.abs(Fr.value?.[n] || 0) || 1e-9;
850
- return e - (s[n] + r) / a * e;
851
- });
852
- let { pxPerUnit: t, zero: n } = se({ minimapH: e });
853
- return o.map((e, r) => {
854
- let a = Number(e) || 0;
855
- return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
856
- });
857
- }, fe = l.map((e, n) => {
858
- let a = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[n] : (e || 0) / u, o, s;
859
- return e > 0 ? (s = ee * a, o = p + t[n], t[n] += s) : (s = ee * a, o = p - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
860
- }), pe = l.map((e, t) => {
861
- let n = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / u;
862
- return e > 0 ? d * n : d * Math.abs(n);
863
- }), me = ({ minimapH: e }) => {
864
- if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Fr.value?.[n] || 0) || 1e-9) * e);
865
- let { pxPerUnit: t } = se({ minimapH: e });
866
- return o.map((e) => Math.abs(Number(e) || 0) * t);
867
- }, he = l.map((e, t) => {
868
- let n = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / u;
869
- return e > 0 ? ee * n : ee * Math.abs(n);
870
- }), ge = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
871
- return {
872
- ...a,
873
- proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / ge),
874
- series: l,
875
- signedSeries: te,
876
- x: ne,
877
- y: ue,
878
- height: pe,
879
- horizontal_width: he,
880
- horizontal_y: le,
881
- horizontal_x: fe,
882
- xMinimap: ce,
883
- yMinimap: de,
884
- heightMinimap: me
885
- };
886
- });
887
- }), Yr = g(() => Lr.value.map((e, t) => ({
888
- value: e,
889
- sign: e >= 0 ? 1 : -1
890
- })));
891
- function Xr(e, t, n, a, o) {
892
- let s = o === -1 && e >= 0 ? -e : e;
893
- return m(z.value.style.chart.bars.dataLabels.formatter, s, r({
894
- p: z.value.style.chart.bars.dataLabels.prefix,
895
- v: s,
896
- s: z.value.style.chart.bars.dataLabels.suffix,
897
- r: z.value.style.chart.bars.dataLabels.rounding
898
- }), {
899
- datapoint: t,
900
- seriesIndex: n,
901
- datapointIndex: a
902
- });
903
- }
904
- function Zr(e, t, n, a) {
905
- return m(z.value.style.chart.bars.dataLabels.formatter, e, r({
906
- v: isNaN(e) ? 0 : e,
907
- s: "%",
908
- r: z.value.style.chart.bars.dataLabels.rounding
909
- }), {
910
- datapoint: t,
911
- seriesIndex: n,
912
- datapointIndex: a
913
- });
914
- }
915
- function Qr(e) {
916
- let t = JSON.parse(JSON.stringify($.value)).map((t) => ({
917
- name: t.name,
918
- value: t.series[e] === 0 ? 0 : t.series[e] || null,
919
- proportion: t.proportions[e] || null,
920
- color: t.color,
921
- id: t.id
922
- }));
923
- z.value.events.datapointClick && z.value.events.datapointClick({
924
- datapoint: t,
925
- seriesIndex: e + J.value.start
926
- }), N("selectDatapoint", {
927
- datapoint: t,
928
- period: Q.value[e]
929
- });
930
- }
931
- function $r(e) {
932
- return JSON.parse(JSON.stringify($.value)).map((t) => ({
933
- name: t.name,
934
- absoluteIndex: t.absoluteIndex,
935
- value: t.series[e] === 0 ? 0 : (t.signedSeries[e] === -1 && t.series[e] >= 0 ? -t.series[e] : t.series[e]) || null,
936
- proportion: t.proportions[e] || null,
937
- color: t.color,
938
- id: t.id,
939
- timeLabel: zr.value[e]
940
- }));
941
- }
942
- function ei(e) {
943
- if (z.value.events.datapointLeave) {
944
- let t = $r(e);
945
- z.value.events.datapointLeave({
946
- datapoint: t,
947
- seriesIndex: e + J.value.start
948
- });
949
- }
950
- fn.value = !1, L.value = null, R.value === e && (R.value = null);
951
- }
952
- let ti = g(() => Array(q.value).fill(0).map((e, t) => $r(t)));
953
- Ze(() => M.selectedXIndex, (e) => {
954
- if ([null, void 0].includes(M.selectedXIndex)) {
955
- L.value = null;
956
- return;
957
- }
958
- let t = e - J.value.start;
959
- t < 0 || e >= J.value.end ? L.value = null : L.value = t ?? null;
960
- }, { immediate: !0 });
961
- function ni(e) {
962
- if (!z.value.style.chart.tooltip.showTimeLabel) return null;
963
- let t = Q.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
964
- return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
965
- }
966
- function ri(e, t = "pointer") {
967
- if (Pr.value) return;
968
- Vn.value = t, R.value = e, L.value = e, fn.value = !0;
969
- let n = z.value.style.chart.tooltip.customFormat, a = $r(e);
970
- Hi({
971
- seriesIndex: e,
972
- datapoint: a
973
- }), z.value.events.datapointEnter && z.value.events.datapointEnter({
974
- datapoint: a,
975
- seriesIndex: e + J.value.start
976
- }), pn.value = {
977
- timeLabel: ni(e),
978
- datapoint: a,
979
- seriesIndex: e,
980
- config: z.value,
981
- series: $.value
982
- };
983
- let o = a.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), s = a.map((e) => p(e.value)).reduce((e, t) => e + t, 0);
984
- if (ae(n) && re(() => n({
985
- seriesIndex: e,
986
- datapoint: a,
987
- series: $.value,
988
- config: z.value
989
- }))) mn.value = n({
990
- seriesIndex: e,
991
- datapoint: a,
992
- series: $.value,
993
- config: z.value
994
- });
995
- else {
996
- let { showValue: t, showTotal: n, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage: ee } = z.value.style.chart.tooltip, f = "", p = ni(e);
997
- p && (f += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${p}</div>`), n && (f += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
998
- <span>${c}:</span>
999
- <span>
1000
- ${m(z.value.style.chart.bars.dataLabels.formatter, s, r({
1001
- p: z.value.style.chart.bars.dataLabels.prefix,
1002
- v: s,
1003
- s: z.value.style.chart.bars.dataLabels.suffix,
1004
- r: d
1005
- }), { datapoint: {
1006
- name: c,
1007
- value: s
1008
- } })}
1009
- </span>
1010
- </div>`);
1011
- let te = [t && l ? "(" : "", t && l ? ")" : ""];
1012
- a.reverse().forEach((e) => {
1013
- f += `
1014
- <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1015
- <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${un.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${F.value}_${e.absoluteIndex})"/>` : ""}</svg>
1016
- ${e.name}${t || l ? ":" : ""} ${t ? m(z.value.style.chart.bars.dataLabels.formatter, e.value, r({
1017
- p: z.value.style.chart.bars.dataLabels.prefix,
1018
- v: e.value,
1019
- s: z.value.style.chart.bars.dataLabels.suffix,
1020
- r: d
1021
- }, { datapoint: e })) : ""} ${te[0]}${l ? r({
1022
- v: isNaN(e.value / o) ? 0 : Math.abs(e.value) / o * 100,
1023
- s: "%",
1024
- r: ee
1025
- }) : ""}${te[1]}
1026
- </div>
1027
- `;
1028
- }), mn.value = `<div>${f}</div>`;
1029
- }
1030
- }
1031
- let ii = g(() => H.value.width), ai = g(() => H.value.height);
1032
- we({
1033
- timeLabelsEls: z.value.orientation === "vertical" ? Nn : Mn,
1034
- timeLabels: Q,
1035
- slicer: J,
1036
- configRef: z,
1037
- rotationPath: [
1038
- "style",
1039
- "chart",
1040
- "grid",
1041
- "x",
1042
- "timeLabels",
1043
- "rotation"
1044
- ],
1045
- autoRotatePath: [
1046
- "style",
1047
- "chart",
1048
- "grid",
1049
- "x",
1050
- "timeLabels",
1051
- "autoRotate",
1052
- "enable"
1053
- ],
1054
- isAutoSize: !1,
1055
- width: ii,
1056
- height: ai,
1057
- rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
1058
- });
1059
- function oi(e) {
1060
- bn.value = e, hn.value += 1;
1061
- }
1062
- function si() {
1063
- V.value.showTable = !V.value.showTable;
1064
- }
1065
- function ci() {
1066
- V.value.dataLabels.show = !V.value.dataLabels.show;
1067
- }
1068
- function li() {
1069
- V.value.showTooltip = !V.value.showTooltip;
1070
- }
1071
- function ui() {
1072
- return $.value;
1073
- }
1074
- let di = g(() => {
1075
- if ($.value.length === 0) return {
1076
- head: [],
1077
- body: [],
1078
- config: {},
1079
- columnNames: []
1080
- };
1081
- let e = $.value.map(({ name: e, color: t }) => ({
1082
- label: e,
1083
- color: t
1084
- })), t = [];
1085
- return Q.value.forEach((e) => {
1086
- let n = [z.value.style.chart.grid.x.timeLabels.values[e.absoluteIndex] ? e.text : i + 1];
1087
- K.value.forEach((t) => {
1088
- n.push(Number((t.series[e.absoluteIndex] || 0).toFixed(z.value.table.td.roundingValue)));
1089
- }), t.push(n);
1090
- }), {
1091
- head: e,
1092
- body: t
1093
- };
1094
- });
1095
- function fi(e = null) {
1096
- let t = [
1097
- [z.value.style.chart.title.text],
1098
- [z.value.style.chart.title.subtitle.text],
1099
- [""]
1100
- ], n = ["", ...di.value.head.map((e) => e.label)], r = di.value.body, a = l(t.concat([n]).concat(r));
1101
- e ? e(a) : s({
1102
- csvContent: a,
1103
- title: z.value.style.chart.title.text || "vue-ui-stackbar"
1104
- });
1105
- }
1106
- let pi = g(() => {
1107
- let e = [""].concat($.value.map((e) => e.name), " <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>"), t = [], n = J.value.end - J.value.start;
1108
- for (let e = 0; e < n; e += 1) {
1109
- let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
1110
- t.push([z.value.style.chart.grid.x.timeLabels.values[n] && Q.value[e]?.text || n + 1].concat($.value.map((t) => (t.series[e] ?? 0).toFixed(z.value.table.td.roundingValue)), (r ?? 0).toFixed(z.value.table.td.roundingValue)));
1111
- }
1112
- let r = {
1113
- th: {
1114
- backgroundColor: z.value.table.th.backgroundColor,
1115
- color: z.value.table.th.color,
1116
- outline: z.value.table.th.outline
1117
- },
1118
- td: {
1119
- backgroundColor: z.value.table.td.backgroundColor,
1120
- color: z.value.table.td.color,
1121
- outline: z.value.table.td.outline
1122
- },
1123
- breakpoint: z.value.table.responsiveBreakpoint
1124
- }, a = [z.value.table.columnNames.period].concat($.value.map((e) => e.name), z.value.table.columnNames.total);
1125
- return {
1126
- head: e,
1127
- body: t.slice(0, J.value.end - J.value.start),
1128
- config: r,
1129
- colNames: a
1130
- };
1131
- });
1132
- function mi() {
1133
- I.value.length ? I.value = [] : yi.value.forEach((e) => {
1134
- I.value.push(e.id);
1135
- }), N("selectLegend", $.value);
1136
- }
1137
- function hi(e) {
1138
- if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
1139
- else {
1140
- if (I.value.length === K.value.length - 1) return;
1141
- I.value.push(e.id);
1142
- }
1143
- N("selectLegend", $.value);
1144
- }
1145
- function gi(e) {
1146
- return K.value.length ? K.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiStackbar - There are no series to show."), null);
1147
- }
1148
- function _i(e) {
1149
- let t = gi(e);
1150
- t !== null && I.value.includes(t.id) && hi({ id: t.id });
1151
- }
1152
- function vi(e) {
1153
- let t = gi(e);
1154
- t !== null && (I.value.includes(t.id) || hi({ id: t.id }));
1155
- }
1156
- let yi = g(() => K.value.map((e, t) => ({
1157
- ...e,
1158
- shape: "square"
1159
- })).map((e) => ({
1160
- ...e,
1161
- opacity: I.value.includes(e.id) ? .5 : 1,
1162
- segregate: () => hi(e),
1163
- isSegregated: I.value.includes(e.id)
1164
- }))), bi = g(() => ({
1165
- cy: "stackbar-legend",
1166
- backgroundColor: z.value.style.chart.legend.backgroundColor,
1167
- color: z.value.style.chart.legend.color,
1168
- fontSize: z.value.style.chart.legend.fontSize,
1169
- paddingBottom: 12,
1170
- fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
1171
- })), xi = E(!1);
1172
- function Si() {
1173
- xi.value = !xi.value;
1174
- }
1175
- function Ci(e, t) {
1176
- N("selectTimeLabel", {
1177
- datapoint: JSON.parse(JSON.stringify($.value)).map((e) => ({
1178
- name: e.name,
1179
- value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
1180
- proportion: e.proportions[t] || null,
1181
- color: e.color,
1182
- id: e.id
1183
- })),
1184
- absoluteIndex: e.absoluteIndex,
1185
- label: e.text
1186
- });
1187
- }
1188
- let wi = g(() => Math.max(...$.value.flatMap((e) => e.series)));
1189
- function Ti(e, t) {
1190
- return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ar.value ? t * 100 >= z.value.style.chart.bars.dataLabels.hideUnderPercentage : z.value.style.chart.bars.dataLabels.hideEmptyPercentages ? t > 0 : !0 : ar.value ? (ir.value && pr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > wi.value * z.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ir.value ? Math.abs(e) >= z.value.style.chart.bars.dataLabels.hideUnderValue : z.value.style.chart.bars.dataLabels.hideEmptyValues ? e !== 0 : !0;
1191
- }
1192
- async function Ei({ scale: e = 2 } = {}) {
1193
- if (!P.value) return;
1194
- let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: a, base64: o } = await Te({
1195
- domElement: P.value,
1196
- base64: !0,
1197
- img: !0,
1198
- scale: e
1199
- });
1200
- return {
1201
- imageUri: a,
1202
- base64: o,
1203
- title: z.value.style.chart.title.text,
1204
- width: t,
1205
- height: n,
1206
- aspectRatio: r
1207
- };
1208
- }
1209
- let Di = g(() => {
1210
- let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
1211
- return {
1212
- component: e ? on : en,
1213
- title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
1214
- props: e ? {
1215
- backgroundColor: z.value.table.th.backgroundColor,
1216
- color: z.value.table.th.color,
1217
- headerColor: z.value.table.th.color,
1218
- headerBg: z.value.table.th.backgroundColor,
1219
- isFullscreen: bn.value,
1220
- fullscreenParent: P.value,
1221
- forcedWidth: Math.min(800, window.innerWidth * .8),
1222
- isCursorPointer: B.value
1223
- } : {
1224
- hideDetails: !0,
1225
- config: {
1226
- open: t,
1227
- maxHeight: 1e4,
1228
- body: {
1229
- backgroundColor: z.value.style.chart.backgroundColor,
1230
- color: z.value.style.chart.color
1231
- },
1232
- head: {
1233
- backgroundColor: z.value.style.chart.backgroundColor,
1234
- color: z.value.style.chart.color
1235
- }
1236
- }
1237
- }
1238
- };
1239
- });
1240
- Ze(() => V.value.showTable, (e) => {
1241
- z.value.table.show || (e && z.value.table.useDialog && En.value ? En.value.open() : "close" in En.value && En.value.close());
1242
- });
1243
- function Oi() {
1244
- V.value.showTable = !1, Dn.value && Dn.value.setTableIconState(!1);
1245
- }
1246
- let ki = g(() => z.value.style.chart.backgroundColor), Ai = g(() => z.value.style.chart.legend), { exportSvg: ji, getSvg: Mi } = be({
1247
- svg: er,
1248
- title: g(() => z.value.style.chart.title),
1249
- legend: Ai,
1250
- legendItems: yi,
1251
- backgroundColor: ki
1252
- });
1253
- async function Ni({ isCb: e }) {
1254
- kn.value = !0, await Ue();
1255
- try {
1256
- if (e) {
1257
- let { blob: e, url: t, text: n, dataUrl: r } = await Mi();
1258
- await Promise.resolve(z.value.userOptions.callbacks.svg({
1259
- blob: e,
1260
- url: t,
1261
- text: n,
1262
- dataUrl: r
1263
- }));
1264
- } else await Promise.resolve(ji());
1265
- } finally {
1266
- kn.value = !1;
1267
- }
1268
- }
1269
- function Pi(e) {
1270
- if (e?.stage === "start") {
1271
- On.value = !0;
1272
- return;
1273
- }
1274
- if (e?.stage === "end") {
1275
- On.value = !1;
1276
- return;
1277
- }
1278
- lr();
1279
- }
1280
- function Fi(e) {
1281
- let t = q.value;
1282
- return e > t ? t : e < 0 || e < J.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
1283
- }
1284
- let Ii = E(!1), Li = E(!1);
1285
- function Ri() {
1286
- if (!Ii.value) {
1287
- Ii.value = !0;
1288
- try {
1289
- let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, q.value) : q.value;
1290
- if (n && r <= 0) return;
1291
- let a = e ?? 0, o = t == null ? r : Math.min(Fi(t + 1), r);
1292
- zi.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, kr(), Li.value = !0;
1293
- } finally {
1294
- queueMicrotask(() => {
1295
- zi.value = !1;
1296
- }), Ii.value = !1;
1297
- }
1298
- }
1299
- }
1300
- let zi = E(!1);
1301
- function Bi(e) {
1302
- Ii.value || zi.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, kr());
1303
- }
1304
- function Vi(e) {
1305
- if (Ii.value || zi.value) return;
1306
- let t = Fi(e);
1307
- t !== J.value.end && (J.value.end = t, Y.value.end = t, kr());
1308
- }
1309
- function Hi({ seriesIndex: e, datapoint: t }) {
1310
- let n = J.value.start + e;
1311
- N("selectX", {
1312
- dataset: t,
1313
- index: n,
1314
- indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
1315
- });
1316
- }
1317
- function Ui() {
1318
- return { y0: Z.value?.[0]?.zero ?? G.value.bottom };
1319
- }
1320
- function Wi(e) {
1321
- let { y0: t } = Ui(), n = z.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
1322
- for (let t of $.value || []) {
1323
- let n = t?.series?.[e] ?? 0, r = t?.height?.[e] ?? 0, s = t?.y?.[e];
1324
- n > 0 && r > 0 && Number.isFinite(s) && (o = !0, s < a && (a = s));
1325
- }
1326
- let s = (o && Number.isFinite(a) ? a : t) - r;
1327
- return Math.min(Math.max(s, 0), G.value.bottom);
1328
- }
1329
- function Gi(e) {
1330
- let { x0: t } = Ui(), n = Math.max(2, z.value.style.chart.bars.totalValues.fontSize * .3 + z.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
1331
- for (let t of $.value || []) {
1332
- let n = t?.series?.[e] ?? 0, o = t?.horizontal_x?.[e], s = t?.horizontal_width?.[e], c = Number.isFinite(s) ? Math.max(0, s) : 0;
1333
- Number.isFinite(o) && n > 0 && c > 0 && (a = !0, r = Math.max(r, o + c));
1334
- }
1335
- return (a && Number.isFinite(r) ? r : t) + n;
1336
- }
1337
- async function Ki() {
1338
- if (N("copyAlt", {
1339
- config: z.value,
1340
- dataset: $.value
1341
- }), !z.value.userOptions.callbacks.altCopy) {
1342
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1343
- return;
1344
- }
1345
- await Promise.resolve(z.value.userOptions.callbacks.altCopy({
1346
- config: z.value,
1347
- dataset: $.value
1348
- }));
1349
- }
1350
- let qi = E(!1);
1351
- function Ji() {
1352
- R.value = null, qi.value = !0;
1353
- }
1354
- function Yi() {
1355
- R.value = null, fn.value = !1, L.value = null, N("selectX", {
1356
- seriesIndex: null,
1357
- datapoint: null
1358
- }), qi.value = !1;
1359
- }
1360
- function Xi(e) {
1361
- if (!er.value || xi.value || document.activeElement !== er.value || Pr.value || !J.value.end && J.value.end !== 0) return;
1362
- let t = z.value.orientation === "vertical", n = z.value.orientation === "horizontal", r = t && e.key === "ArrowLeft" || n && e.key === "ArrowUp", a = t && e.key === "ArrowRight" || n && e.key === "ArrowDown", o = e.key === "Enter" || e.key === " ", s = e.key === "Escape";
1363
- if (!r && !a && !o && !s) return;
1364
- let c = J.value.end - J.value.start;
1365
- if (c <= 0) return;
1366
- if (e.preventDefault(), e.stopPropagation(), s) {
1367
- R.value = null, fn.value = !1, L.value = null, N("selectX", {
1368
- seriesIndex: null,
1369
- datapoint: null
1370
- });
1371
- return;
1372
- }
1373
- if (o) {
1374
- if (R.value === null) return;
1375
- Qr(R.value);
1376
- return;
1377
- }
1378
- let l = R.value, u = L.value;
1379
- l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, R.value = l, Zi(l), ri(l, "keyboard");
1380
- }
1381
- function Zi(e) {
1382
- if (!Number.isFinite(e)) return;
1383
- let t, n;
1384
- z.value.orientation === "vertical" ? (t = G.value.left + e * X.value + X.value / 2, n = G.value.top + G.value.height / 2) : (t = G.value.left + G.value.width / 2, n = G.value.top + e * X.value + X.value / 2);
1385
- let r = o(t, n, er.value);
1386
- r && (Bn.value = r);
1387
- }
1388
- let Qi = g(() => ({
1389
- headers: pi.value?.colNames ?? [],
1390
- rows: pi.value?.body ?? []
1391
- }));
1392
- return Oe({
1393
- getData: ui,
1394
- getImage: Ei,
1395
- generatePdf: cr,
1396
- generateCsv: fi,
1397
- generateImage: lr,
1398
- generateSvg: Ni,
1399
- hideSeries: vi,
1400
- showSeries: _i,
1401
- toggleTable: si,
1402
- toggleLabels: ci,
1403
- toggleTooltip: li,
1404
- toggleAnnotator: Si,
1405
- toggleFullscreen: oi,
1406
- copyAlt: Ki
1407
- }), (n, a) => (T(), y("div", {
1408
- id: `stackbar_${F.value}`,
1409
- ref_key: "stackbarChart",
1410
- ref: P,
1411
- class: We({
1412
- "vue-data-ui-component": !0,
1413
- "vue-ui-stackbar": !0,
1414
- "vue-data-ui-wrapper-fullscreen": bn.value
1415
- }),
1416
- style: w(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
1417
- onMouseenter: tr,
1418
- onMouseleave: nr
1419
- }, [
1420
- b("div", {
1421
- id: `chart-instructions-${F.value}`,
1422
- class: "sr-only"
1423
- }, [b("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
1424
- Qi.value?.rows?.length ? (T(), _(Ne, {
1425
- key: 0,
1426
- uid: F.value,
1427
- head: Qi.value.headers,
1428
- body: Qi.value.rows,
1429
- notice: z.value.a11y.translations.tableAvailable,
1430
- caption: z.value.a11y.translations.tableCaption
1431
- }, null, 8, [
1432
- "uid",
1433
- "head",
1434
- "body",
1435
- "notice",
1436
- "caption"
1437
- ])) : v("", !0),
1438
- z.value.userOptions.buttons.annotator ? (T(), _(A(nn), {
1439
- key: 1,
1440
- svgRef: A(er),
1441
- backgroundColor: z.value.style.chart.backgroundColor,
1442
- color: z.value.style.chart.color,
1443
- active: xi.value,
1444
- isCursorPointer: B.value,
1445
- onClose: Si
1446
- }, {
1447
- "annotator-action-close": j(() => [O(n.$slots, "annotator-action-close", {}, void 0, !0)]),
1448
- "annotator-action-color": j(({ color: e }) => [O(n.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
1449
- "annotator-action-draw": j(({ mode: e }) => [O(n.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
1450
- "annotator-action-undo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
1451
- "annotator-action-redo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
1452
- "annotator-action-delete": j(({ disabled: e }) => [O(n.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
1453
- _: 3
1454
- }, 8, [
1455
- "svgRef",
1456
- "backgroundColor",
1457
- "color",
1458
- "active",
1459
- "isCursorPointer"
1460
- ])) : v("", !0),
1461
- O(n.$slots, "userConfig", {}, void 0, !0),
1462
- z.value.style.chart.title.text ? (T(), y("div", {
1463
- key: 2,
1464
- ref_key: "chartTitle",
1465
- ref: gn,
1466
- style: "width:100%;background:transparent;padding-bottom:24px"
1467
- }, [(T(), _(Ee, {
1468
- key: `title_${Sn.value}`,
1469
- config: {
1470
- title: {
1471
- cy: "stackbar-title",
1472
- ...z.value.style.chart.title
1473
- },
1474
- subtitle: {
1475
- cy: "stackbar-subtitle",
1476
- ...z.value.style.chart.title.subtitle
1477
- }
1478
- }
1479
- }, null, 8, ["config"]))], 512)) : v("", !0),
1480
- b("div", { id: `legend-top-${F.value}` }, null, 8, nt),
1481
- z.value.userOptions.show && dn.value && (A($n) || A(Zn)) ? (T(), _(A(rn), {
1482
- ref_key: "userOptionsRef",
1483
- ref: Dn,
1484
- key: `user_option_${hn.value}`,
1485
- backgroundColor: z.value.style.chart.backgroundColor,
1486
- color: z.value.style.chart.color,
1487
- isPrinting: A(or),
1488
- isImaging: A(sr),
1489
- uid: F.value,
1490
- hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
1491
- hasPdf: z.value.userOptions.buttons.pdf,
1492
- hasImg: z.value.userOptions.buttons.img,
1493
- hasSvg: z.value.userOptions.buttons.svg,
1494
- hasXls: z.value.userOptions.buttons.csv,
1495
- hasTable: z.value.userOptions.buttons.table,
1496
- hasLabel: z.value.userOptions.buttons.labels,
1497
- hasFullscreen: z.value.userOptions.buttons.fullscreen,
1498
- hasAltCopy: z.value.userOptions.buttons.altCopy,
1499
- isFullscreen: bn.value,
1500
- chartElement: P.value,
1501
- position: z.value.userOptions.position,
1502
- isTooltip: V.value.showTooltip,
1503
- titles: { ...z.value.userOptions.buttonTitles },
1504
- hasAnnotator: z.value.userOptions.buttons.annotator,
1505
- isAnnotation: xi.value,
1506
- callbacks: z.value.userOptions.callbacks,
1507
- printScale: z.value.userOptions.print.scale,
1508
- tableDialog: z.value.table.useDialog,
1509
- isCursorPointer: B.value,
1510
- onToggleFullscreen: oi,
1511
- onGeneratePdf: A(cr),
1512
- onGenerateCsv: fi,
1513
- onGenerateImage: Pi,
1514
- onGenerateSvg: Ni,
1515
- onToggleTable: si,
1516
- onToggleLabels: ci,
1517
- onToggleTooltip: li,
1518
- onToggleAnnotator: Si,
1519
- onCopyAlt: Ki,
1520
- style: w({ visibility: A($n) ? A(Zn) ? "visible" : "hidden" : "visible" })
1521
- }, ze({ _: 2 }, [
1522
- n.$slots.menuIcon ? {
1523
- name: "menuIcon",
1524
- fn: j(({ isOpen: e, color: t }) => [O(n.$slots, "menuIcon", C(S({
1525
- isOpen: e,
1526
- color: t
1527
- })), void 0, !0)]),
1528
- key: "0"
1529
- } : void 0,
1530
- n.$slots.optionTooltip ? {
1531
- name: "optionTooltip",
1532
- fn: j(() => [O(n.$slots, "optionTooltip", {}, void 0, !0)]),
1533
- key: "1"
1534
- } : void 0,
1535
- n.$slots.optionPdf ? {
1536
- name: "optionPdf",
1537
- fn: j(() => [O(n.$slots, "optionPdf", {}, void 0, !0)]),
1538
- key: "2"
1539
- } : void 0,
1540
- n.$slots.optionCsv ? {
1541
- name: "optionCsv",
1542
- fn: j(() => [O(n.$slots, "optionCsv", {}, void 0, !0)]),
1543
- key: "3"
1544
- } : void 0,
1545
- n.$slots.optionImg ? {
1546
- name: "optionImg",
1547
- fn: j(() => [O(n.$slots, "optionImg", {}, void 0, !0)]),
1548
- key: "4"
1549
- } : void 0,
1550
- n.$slots.optionSvg ? {
1551
- name: "optionSvg",
1552
- fn: j(() => [O(n.$slots, "optionSvg", {}, void 0, !0)]),
1553
- key: "5"
1554
- } : void 0,
1555
- n.$slots.optionTable ? {
1556
- name: "optionTable",
1557
- fn: j(() => [O(n.$slots, "optionTable", {}, void 0, !0)]),
1558
- key: "6"
1559
- } : void 0,
1560
- n.$slots.optionLabels ? {
1561
- name: "optionLabels",
1562
- fn: j(() => [O(n.$slots, "optionLabels", {}, void 0, !0)]),
1563
- key: "7"
1564
- } : void 0,
1565
- n.$slots.optionFullscreen ? {
1566
- name: "optionFullscreen",
1567
- fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [O(n.$slots, "optionFullscreen", C(S({
1568
- toggleFullscreen: e,
1569
- isFullscreen: t
1570
- })), void 0, !0)]),
1571
- key: "8"
1572
- } : void 0,
1573
- n.$slots.optionAnnotator ? {
1574
- name: "optionAnnotator",
1575
- fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [O(n.$slots, "optionAnnotator", C(S({
1576
- toggleAnnotator: e,
1577
- isAnnotator: t
1578
- })), void 0, !0)]),
1579
- key: "9"
1580
- } : void 0,
1581
- n.$slots.optionAltCopy ? {
1582
- name: "optionAltCopy",
1583
- fn: j(({ altCopy: e }) => [O(n.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
1584
- key: "10"
1585
- } : void 0,
1586
- n.$slots["custom-menu-before"] ? {
1587
- name: "custom-menu-before",
1588
- fn: j(() => [O(n.$slots, "custom-menu-before", {}, void 0, !0)]),
1589
- key: "11"
1590
- } : void 0,
1591
- n.$slots["custom-menu-after"] ? {
1592
- name: "custom-menu-after",
1593
- fn: j(() => [O(n.$slots, "custom-menu-after", {}, void 0, !0)]),
1594
- key: "12"
1595
- } : void 0
1596
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : v("", !0),
1597
- b("div", rt, [(T(), y("svg", {
1598
- ref_key: "svgRef",
1599
- ref: er,
1600
- xmlns: A(ce),
1601
- "aria-describedby": `chart-instructions-${F.value}`,
1602
- viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
1603
- class: We({ "vue-data-ui-loading": A(Jn) }),
1604
- style: w(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
1605
- tabindex: "0",
1606
- onFocus: Ji,
1607
- onBlur: Yi,
1608
- onKeydown: Xi
1609
- }, [
1610
- Ve(A(an)),
1611
- n.$slots["chart-background"] ? (T(), y("foreignObject", {
1612
- key: 0,
1613
- x: G.value.left,
1614
- y: G.value.top,
1615
- width: G.value.width <= 0 ? 10 : G.value.width,
1616
- height: G.value.height <= 0 ? 10 : G.value.height,
1617
- style: { pointerEvents: "none" }
1618
- }, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, at)) : v("", !0),
1619
- z.value.style.chart.bars.gradient.show ? (T(), y("defs", ot, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("linearGradient", {
1620
- id: `gradient_${e.id}`,
1621
- x1: "0%",
1622
- y1: "0%",
1623
- x2: "0%",
1624
- y2: "100%"
1625
- }, [
1626
- b("stop", {
1627
- offset: "0%",
1628
- "stop-color": e.color
1629
- }, null, 8, ct),
1630
- b("stop", {
1631
- offset: "61.8%",
1632
- "stop-color": A(de)(e.color, z.value.style.chart.bars.gradient.intensity / 100)
1633
- }, null, 8, lt),
1634
- b("stop", {
1635
- offset: "100%",
1636
- "stop-color": e.color
1637
- }, null, 8, ut)
1638
- ], 8, st))), 256))])) : v("", !0),
1639
- z.value.style.chart.grid.frame.show ? (T(), y("rect", {
1640
- key: 2,
1641
- style: {
1642
- pointerEvents: "none",
1643
- transition: "none",
1644
- animation: "none !important"
1645
- },
1646
- x: Math.max(0, G.value.left),
1647
- y: Math.max(0, G.value.top),
1648
- width: Math.max(0, G.value.width),
1649
- height: Math.max(0, G.value.height),
1650
- fill: "transparent",
1651
- stroke: z.value.style.chart.grid.frame.stroke,
1652
- "stroke-width": z.value.style.chart.grid.frame.strokeWidth,
1653
- "stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
1654
- "stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
1655
- "stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
1656
- }, null, 8, dt)) : v("", !0),
1657
- z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 3 }, D(Z.value, (e, t) => (T(), y("line", {
1658
- x1: G.value.left,
1659
- x2: G.value.right,
1660
- y1: e.y,
1661
- y2: e.y,
1662
- stroke: z.value.style.chart.grid.x.linesColor,
1663
- "stroke-width": z.value.style.chart.grid.x.linesThickness,
1664
- "stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
1665
- "stroke-linecap": "round"
1666
- }, null, 8, ft))), 256)) : v("", !0),
1667
- z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 4 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), y("line", {
1668
- x1: G.value.left,
1669
- x2: G.value.right,
1670
- y1: G.value.top + X.value * t,
1671
- y2: G.value.top + X.value * t,
1672
- stroke: z.value.style.chart.grid.x.linesColor,
1673
- "stroke-width": z.value.style.chart.grid.x.linesThickness,
1674
- "stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
1675
- "stroke-linecap": "round"
1676
- }, null, 8, pt))), 256)) : v("", !0),
1677
- z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 5 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), y("line", {
1678
- x1: G.value.left + X.value * t,
1679
- x2: G.value.left + X.value * t,
1680
- y1: G.value.top,
1681
- y2: G.value.bottom,
1682
- stroke: z.value.style.chart.grid.y.linesColor,
1683
- "stroke-width": z.value.style.chart.grid.y.linesThickness,
1684
- "stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
1685
- "stroke-linecap": "round"
1686
- }, null, 8, mt))), 256)) : v("", !0),
1687
- z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 6 }, D(Z.value, (e, t) => (T(), y("line", {
1688
- x1: e.horizontal_x,
1689
- x2: e.horizontal_x,
1690
- y1: G.value.top,
1691
- y2: G.value.bottom,
1692
- stroke: z.value.style.chart.grid.y.linesColor,
1693
- "stroke-width": z.value.style.chart.grid.y.linesThickness,
1694
- "stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
1695
- "stroke-linecap": "round"
1696
- }, null, 8, ht))), 256)) : v("", !0),
1697
- (T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", null, [n.$slots.pattern ? (T(), y("defs", gt, [O(n.$slots, "pattern", He({ ref_for: !0 }, {
1698
- seriesIndex: e.absoluteIndex,
1699
- patternId: `pattern_${F.value}_${e.absoluteIndex}`
1700
- }), void 0, !0)])) : v("", !0), z.value.orientation === "vertical" ? (T(), y(h, { key: 1 }, [(T(!0), y(h, null, D(e.x, (t, n) => (T(), y("rect", {
1701
- x: t,
1702
- y: A(p)(e.y[n]),
1703
- height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
1704
- rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1705
- width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
1706
- fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
1707
- stroke: z.value.style.chart.backgroundColor,
1708
- "stroke-width": z.value.style.chart.bars.strokeWidth,
1709
- "stroke-linecap": "round",
1710
- "stroke-linejoin": "round",
1711
- class: We({
1712
- "vue-data-ui-bar-animated": z.value.useCssAnimation,
1713
- "vue-data-ui-bar-transition": xn.value
1714
- })
1715
- }, null, 10, _t))), 256)), n.$slots.pattern ? (T(), y("g", vt, [(T(!0), y(h, null, D(e.x, (t, n) => (T(), y("rect", {
1716
- x: t,
1717
- y: A(p)(e.y[n]),
1718
- height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
1719
- rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1720
- width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
1721
- fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
1722
- stroke: z.value.style.chart.backgroundColor,
1723
- "stroke-width": z.value.style.chart.bars.strokeWidth,
1724
- "stroke-linecap": "round",
1725
- "stroke-linejoin": "round",
1726
- class: We({
1727
- "vue-data-ui-bar-animated": z.value.useCssAnimation,
1728
- "vue-data-ui-bar-transition": xn.value
1729
- })
1730
- }, null, 10, yt))), 256))])) : v("", !0)], 64)) : (T(), y(h, { key: 2 }, [(T(!0), y(h, null, D(e.horizontal_x, (t, n) => (T(), y("rect", {
1731
- x: A(p)(t, G.value.left),
1732
- y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
1733
- width: A(p)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1734
- rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1735
- height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
1736
- fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
1737
- stroke: z.value.style.chart.backgroundColor,
1738
- "stroke-width": z.value.style.chart.bars.strokeWidth,
1739
- "stroke-linecap": "round",
1740
- "stroke-linejoin": "round",
1741
- class: We({
1742
- "vue-data-ui-bar-animated": z.value.useCssAnimation,
1743
- "vue-data-ui-bar-transition": xn.value
1744
- })
1745
- }, null, 10, bt))), 256)), n.$slots.pattern ? (T(), y("g", xt, [(T(!0), y(h, null, D(e.horizontal_x, (t, n) => (T(), y("rect", {
1746
- x: A(p)(t, G.value.left),
1747
- y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
1748
- width: A(p)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1749
- rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1750
- height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
1751
- fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
1752
- stroke: z.value.style.chart.backgroundColor,
1753
- "stroke-width": z.value.style.chart.bars.strokeWidth,
1754
- "stroke-linecap": "round",
1755
- "stroke-linejoin": "round",
1756
- class: We({
1757
- "vue-data-ui-bar-animated": z.value.useCssAnimation,
1758
- "vue-data-ui-bar-transition": xn.value
1759
- })
1760
- }, null, 10, St))), 256))])) : v("", !0)], 64))]))), 256)),
1761
- z.value.style.chart.grid.x.showAxis ? (T(), y("line", {
1762
- key: 7,
1763
- x1: G.value.left,
1764
- x2: G.value.right,
1765
- y1: G.value.bottom,
1766
- y2: G.value.bottom,
1767
- stroke: z.value.style.chart.grid.x.axisColor,
1768
- "stroke-width": z.value.style.chart.grid.x.axisThickness,
1769
- "stroke-linecap": "round",
1770
- "stroke-linejoin": "round"
1771
- }, null, 8, Ct)) : v("", !0),
1772
- z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (T(), y("line", {
1773
- key: 8,
1774
- x1: W.value ? G.value.right : G.value.left,
1775
- x2: W.value ? G.value.right : G.value.left,
1776
- y1: G.value.top,
1777
- y2: G.value.bottom,
1778
- stroke: z.value.style.chart.grid.y.axisColor,
1779
- "stroke-width": z.value.style.chart.grid.y.axisThickness,
1780
- "stroke-linecap": "round",
1781
- "stroke-linejoin": "round"
1782
- }, null, 8, wt)) : v("", !0),
1783
- z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (T(), y("text", {
1784
- key: 9,
1785
- ref_key: "xAxisLabel",
1786
- ref: An,
1787
- x: G.value.left + G.value.width / 2,
1788
- y: G.value.chartHeight - 3,
1789
- "font-size": z.value.style.chart.grid.x.axisName.fontSize,
1790
- fill: z.value.style.chart.grid.x.axisName.color,
1791
- "font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1792
- "text-anchor": "middle"
1793
- }, k(z.value.style.chart.grid.x.axisName.text), 9, Tt)) : v("", !0),
1794
- z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (T(), y("text", {
1795
- key: 10,
1796
- ref_key: "yAxisLabel",
1797
- ref: jn,
1798
- transform: `translate(${W.value ? H.value.width - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
1799
- "font-size": z.value.style.chart.grid.y.axisName.fontSize,
1800
- fill: z.value.style.chart.grid.y.axisName.color,
1801
- "font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1802
- "text-anchor": "middle"
1803
- }, k(z.value.style.chart.grid.y.axisName.text), 9, Et)) : v("", !0),
1804
- V.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), y(h, { key: 11 }, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", null, [(T(!0), y(h, null, D(e.x, (n, r) => (T(), y(h, null, [Ti(e.series[r], e.proportions[r]) ? (T(), y("text", {
1805
- key: 0,
1806
- x: n + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2,
1807
- y: e.y[r] + e.height[r] / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
1808
- "font-size": z.value.style.chart.bars.dataLabels.fontSize,
1809
- fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(oe)(e.color) : z.value.style.chart.bars.dataLabels.color,
1810
- "font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1811
- "text-anchor": "middle"
1812
- }, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? Zr(e.proportions[r] * 100, e, t, r) : Xr(e.series[r], e, t, r, e.signedSeries[r])), 9, Dt)) : v("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), y("g", {
1813
- key: 0,
1814
- ref_key: "sumTop",
1815
- ref: Pn
1816
- }, [(T(!0), y(h, null, D(Yr.value, (e, t) => (T(), y(h, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), y("text", {
1817
- key: 0,
1818
- x: G.value.left + X.value * t + X.value / 2,
1819
- y: Wi(t),
1820
- "text-anchor": "middle",
1821
- "font-size": z.value.style.chart.bars.totalValues.fontSize,
1822
- "font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1823
- fill: z.value.style.chart.bars.totalValues.color
1824
- }, k(Xr(e.value, e, t, e.sign)), 9, Ot)) : v("", !0)], 64))), 256))], 512)) : v("", !0)], 64)) : v("", !0),
1825
- V.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), y(h, { key: 12 }, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", null, [(T(!0), y(h, null, D(e.horizontal_x, (n, r) => (T(), y(h, null, [Ti(e.series[r], e.proportions[r]) ? (T(), y("text", {
1826
- key: 0,
1827
- x: n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2,
1828
- y: e.horizontal_y[r] + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
1829
- "font-size": z.value.style.chart.bars.dataLabels.fontSize,
1830
- fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(oe)(e.color) : z.value.style.chart.bars.dataLabels.color,
1831
- "font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1832
- "text-anchor": "middle"
1833
- }, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? Zr(e.proportions[r] * 100, e, t, r) : Xr(e.series[r], e, t, r, e.signedSeries[r])), 9, kt)) : v("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), y("g", {
1834
- key: 0,
1835
- ref_key: "sumRight",
1836
- ref: Fn
1837
- }, [(T(!0), y(h, null, D(Yr.value, (e, t) => (T(), y(h, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), y("text", {
1838
- key: 0,
1839
- x: Gi(t),
1840
- y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.bars.totalValues.fontSize / 3,
1841
- "text-anchor": "start",
1842
- "font-size": z.value.style.chart.bars.totalValues.fontSize,
1843
- "font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1844
- fill: z.value.style.chart.bars.totalValues.color
1845
- }, k(Xr(e.value, e, t, e.sign)), 9, At)) : v("", !0)], 64))), 256))], 512)) : v("", !0)], 64)) : v("", !0),
1846
- z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (T(), y("g", {
1847
- key: 13,
1848
- ref_key: "scaleLabels",
1849
- ref: Mn
1850
- }, [(T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("line", {
1851
- x1: W.value ? G.value.right : G.value.left,
1852
- x2: W.value ? G.value.right + 6 : G.value.left - 6,
1853
- y1: e.y,
1854
- y2: e.y,
1855
- stroke: z.value.style.chart.grid.x.axisColor,
1856
- "stroke-width": 1
1857
- }, null, 8, jt))), 256)), (T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("text", {
1858
- x: e.x,
1859
- y: e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
1860
- "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
1861
- "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1862
- fill: z.value.style.chart.grid.y.axisLabels.color,
1863
- "text-anchor": W.value ? "start" : "end"
1864
- }, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(r)({
1865
- p: z.value.style.chart.bars.dataLabels.prefix,
1866
- v: e.value,
1867
- s: z.value.style.chart.bars.dataLabels.suffix,
1868
- r: z.value.style.chart.grid.y.axisLabels.rounding
1869
- }), { datapoint: e })), 9, Mt))), 256))], 512)) : v("", !0),
1870
- z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (T(), y("g", {
1871
- key: 14,
1872
- ref_key: "scaleLabels",
1873
- ref: Mn
1874
- }, [(T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("line", {
1875
- x1: e.horizontal_x,
1876
- x2: e.horizontal_x,
1877
- y1: G.value.bottom,
1878
- y2: G.value.bottom + 6,
1879
- stroke: z.value.style.chart.grid.x.axisColor,
1880
- "stroke-width": 1,
1881
- "stroke-linecap": "round"
1882
- }, null, 8, Nt))), 256)), (T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("text", {
1883
- class: "vue-data-ui-time-label",
1884
- "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
1885
- "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1886
- fill: z.value.style.chart.grid.y.axisLabels.color,
1887
- "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1888
- transform: `translate(${e.horizontal_x}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`
1889
- }, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(r)({
1890
- p: z.value.style.chart.bars.dataLabels.prefix,
1891
- v: e.value,
1892
- s: z.value.style.chart.bars.dataLabels.suffix,
1893
- r: z.value.style.chart.grid.y.axisLabels.rounding
1894
- }), { datapoint: e })), 9, Pt))), 256))], 512)) : v("", !0),
1895
- z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (T(), y("g", {
1896
- key: 15,
1897
- ref_key: "timeLabelsEls",
1898
- ref: Nn
1899
- }, [n.$slots["time-label"] ? (T(), y("g", Ft, [(T(!0), y(h, null, D(Ur.value, (e, t) => (T(), y("g", null, [O(n.$slots, "time-label", He({ ref_for: !0 }, {
1900
- x: G.value.left + X.value * t + X.value / 2,
1901
- y: G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
1902
- fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
1903
- fill: z.value.style.chart.grid.x.timeLabels.color,
1904
- transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
1905
- absoluteIndex: e.absoluteIndex,
1906
- content: e.text,
1907
- textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1908
- show: !0
1909
- }), void 0, !0)]))), 256))])) : (T(), y("g", It, [(T(!0), y(h, null, D(Ur.value, (e, n) => (T(), y("g", null, [String(e.text).includes("\n") ? (T(), y("text", {
1910
- key: n + "-multi",
1911
- "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1912
- "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
1913
- fill: z.value.style.chart.grid.x.timeLabels.color,
1914
- transform: `
1915
- translate(
1916
- ${G.value.left + X.value * n + X.value / 2},
1917
- ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
1918
- ),
1919
- rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
1920
- `,
1921
- style: w({ cursor: B.value ? "pointer" : "default" }),
1922
- innerHTML: A(t)({
1923
- content: String(e.text),
1924
- fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
1925
- fill: z.value.style.chart.grid.x.timeLabels.color,
1926
- x: 0,
1927
- y: 0
1928
- }),
1929
- onClick: () => Ci(e, n)
1930
- }, null, 12, Rt)) : (T(), y("text", {
1931
- class: "vue-data-ui-time-label",
1932
- key: n,
1933
- "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1934
- "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
1935
- "font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1936
- fill: z.value.style.chart.grid.x.timeLabels.color,
1937
- transform: `translate(${G.value.left + X.value * n + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
1938
- style: w({ cursor: B.value ? "pointer" : "default" }),
1939
- onClick: () => Ci(e, n)
1940
- }, k(e.text), 13, Lt))]))), 256))]))], 512)) : v("", !0),
1941
- z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (T(), y("g", {
1942
- key: 16,
1943
- ref_key: "timeLabelsEls",
1944
- ref: Nn
1945
- }, [n.$slots["time-label"] ? (T(), y("g", zt, [(T(!0), y(h, null, D(Q.value, (e, t) => (T(), y("g", null, [O(n.$slots, "time-label", He({ ref_for: !0 }, {
1946
- x: G.value.left - 8,
1947
- y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
1948
- fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
1949
- fill: z.value.style.chart.grid.x.timeLabels.color,
1950
- transform: null,
1951
- absoluteIndex: e.absoluteIndex,
1952
- content: e.text,
1953
- textAnchor: "end",
1954
- show: !0
1955
- }), void 0, !0)]))), 256))])) : (T(), y("g", Bt, [(T(!0), y(h, null, D(Q.value, (e, t) => (T(), y("g", null, [String(e.text).includes("\n") ? (T(), y("text", {
1956
- key: 1,
1957
- "text-anchor": "end",
1958
- "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
1959
- "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1960
- fill: z.value.style.chart.grid.y.axisLabels.color,
1961
- x: G.value.left - 8,
1962
- y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
1963
- style: w({ cursor: B.value ? "pointer" : "default" }),
1964
- onClick: () => Ci(e, t),
1965
- innerHTML: A(ee)({
1966
- content: String(e.text),
1967
- fontSize: z.value.style.chart.grid.y.axisLabels.fontSize,
1968
- fill: z.value.style.chart.grid.y.axisLabels.color,
1969
- x: G.value.left - 8,
1970
- y: 0
1971
- })
1972
- }, null, 12, Ht)) : (T(), y("text", {
1973
- key: 0,
1974
- "text-anchor": "end",
1975
- "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
1976
- "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1977
- fill: z.value.style.chart.grid.y.axisLabels.color,
1978
- x: G.value.left - 8,
1979
- y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
1980
- style: w({ cursor: B.value ? "pointer" : "default" }),
1981
- onClick: () => Ci(e, t)
1982
- }, k(e.text), 13, Vt))]))), 256))]))], 512)) : v("", !0),
1983
- V.value.showTooltip && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 17 }, D(J.value.end - J.value.start, (e, t) => (T(), y("rect", {
1984
- x: G.value.left + t * X.value,
1985
- y: G.value.top,
1986
- width: X.value,
1987
- height: G.value.height < 0 ? 0 : G.value.height,
1988
- onClick: () => Qr(t),
1989
- onMouseenter: () => ri(t, "pointer"),
1990
- onMouseleave: () => ei(t),
1991
- fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
1992
- style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
1993
- }, null, 44, Ut))), 256)) : v("", !0),
1994
- V.value.showTooltip && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 18 }, D(J.value.end - J.value.start, (e, t) => (T(), y("rect", {
1995
- x: G.value.left,
1996
- y: G.value.top + t * X.value,
1997
- width: G.value.width < 0 ? 0 : G.value.width,
1998
- height: X.value,
1999
- onClick: () => Qr(t),
2000
- onMouseenter: () => ri(t, "pointer"),
2001
- onMouseleave: () => ei(t),
2002
- fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
2003
- style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
2004
- }, null, 44, Wt))), 256)) : v("", !0),
2005
- Dr.value ? (T(), y("rect", He({ key: 19 }, Tr.value, {
2006
- "data-start": J.value.start,
2007
- "data-end": J.value.end
2008
- }), null, 16, Gt)) : v("", !0),
2009
- O(n.$slots, "svg", { svg: {
2010
- drawingArea: G.value,
2011
- data: $.value,
2012
- isPrintingImg: A(or) || A(sr) || On.value,
2013
- isPrintingSvg: kn.value
2014
- } }, void 0, !0)
2015
- ], 46, it)), n.$slots.hint ? (T(), y("div", Kt, [O(n.$slots, "hint", C(S({
2016
- hint: z.value.a11y.translations.keyboardNavigation,
2017
- isVisible: qi.value
2018
- })), void 0, !0)])) : v("", !0)]),
2019
- n.$slots.watermark ? (T(), y("div", qt, [O(n.$slots, "watermark", C(S({ isPrinting: A(or) || A(sr) || On.value || kn.value })), void 0, !0)])) : v("", !0),
2020
- z.value.style.chart.zoom.show && dn.value && Li.value && q.value > 6 ? (T(), _(je, {
2021
- key: 5,
2022
- ref_key: "chartSlicer",
2023
- ref: vn,
2024
- allMinimaps: Ir.value,
2025
- background: z.value.style.chart.zoom.color,
2026
- borderColor: z.value.style.chart.backgroundColor,
2027
- customFormat: z.value.style.chart.zoom.customFormat,
2028
- cutNullValues: !1,
2029
- forceZeroCenter: !0,
2030
- enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
2031
- enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
2032
- end: J.value.end,
2033
- focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
2034
- focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
2035
- fontSize: z.value.style.chart.zoom.fontSize,
2036
- immediate: !z.value.style.chart.zoom.preview.enable,
2037
- inputColor: z.value.style.chart.zoom.color,
2038
- isPreview: Dr.value,
2039
- labelLeft: z.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Q.value?.[0]?.text ?? "" : "",
2040
- labelRight: z.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Q.value?.at(-1)?.text ?? "" : "",
2041
- max: Math.max(...e.dataset.map((e) => e.series.length)),
2042
- min: 0,
2043
- minimap: Fr.value,
2044
- minimapCompact: z.value.style.chart.zoom.minimap.compact,
2045
- minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
2046
- minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
2047
- minimapMerged: !1,
2048
- minimapSelectedColor: z.value.style.chart.zoom.minimap.selectedColor,
2049
- minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
2050
- minimapSelectedIndex: L.value,
2051
- minimapSelectionRadius: 1,
2052
- preciseLabels: qr.value.length ? qr.value : zr.value,
2053
- refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
2054
- refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
2055
- selectColor: z.value.style.chart.zoom.highlightColor,
2056
- selectedSeries: ti.value,
2057
- smoothMinimap: !1,
2058
- start: J.value.start,
2059
- textColor: z.value.style.chart.color,
2060
- timeLabels: zr.value,
2061
- usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
2062
- valueEnd: J.value.end,
2063
- valueStart: J.value.start,
2064
- verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
2065
- maxWidth: z.value.style.chart.zoom.maxWidth,
2066
- isCursorPointer: B.value,
2067
- additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
2068
- handleType: z.value.style.chart.zoom.minimap.handleType,
2069
- handleIconColor: z.value.style.chart.zoom.minimap.handleIconColor,
2070
- handleBorderWidth: z.value.style.chart.zoom.minimap.handleBorderWidth,
2071
- handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
2072
- handleFill: z.value.style.chart.zoom.minimap.handleFill,
2073
- handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
2074
- "onUpdate:end": Vi,
2075
- "onUpdate:start": Bi,
2076
- onTrapMouse: Er,
2077
- onReset: a[0] ||= () => Mr({ force: !0 }),
2078
- onFutureEnd: a[1] ||= (e) => Or("end", e),
2079
- onFutureStart: a[2] ||= (e) => Or("start", e)
2080
- }, {
2081
- "reset-action": j(({ reset: e }) => [O(n.$slots, "reset-action", C(S({ reset: e })), void 0, !0)]),
2082
- slotMap: j(({ width: e, height: t, unitW: n }) => [(T(!0), y(h, null, D($.value, (e) => (T(), y("g", { key: e.id }, [(T(!0), y(h, null, D(e.xMinimap({
2083
- left: 0,
2084
- unitW: n
2085
- }), (r, a) => (T(), y("rect", {
2086
- key: a,
2087
- x: a === 0 ? r - n * (z.value.style.chart.bars.gapRatio / 4) : r - n / 2,
2088
- y: Math.max(0, Math.min(t, e.yMinimap({ minimapH: t })[a])),
2089
- height: e.heightMinimap({ minimapH: t })[a],
2090
- width: [0, q.value - 1].includes(a) ? n * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 : n * (1 - z.value.style.chart.bars.gapRatio / 2),
2091
- fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
2092
- stroke: z.value.style.chart.backgroundColor,
2093
- "stroke-width": .5,
2094
- rx: "0",
2095
- "stroke-linecap": "round",
2096
- "stroke-linejoin": "round",
2097
- style: w({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
2098
- }, null, 12, Jt))), 128))]))), 128))]),
2099
- _: 3
2100
- }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : v("", !0),
2101
- Ve(A(Qt), {
2102
- teleportTo: z.value.style.chart.tooltip.teleportTo,
2103
- show: V.value.showTooltip && fn.value,
2104
- backgroundColor: z.value.style.chart.tooltip.backgroundColor,
2105
- color: z.value.style.chart.tooltip.color,
2106
- fontSize: z.value.style.chart.tooltip.fontSize,
2107
- borderRadius: z.value.style.chart.tooltip.borderRadius,
2108
- borderColor: z.value.style.chart.tooltip.borderColor,
2109
- borderWidth: z.value.style.chart.tooltip.borderWidth,
2110
- backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
2111
- position: z.value.style.chart.tooltip.position,
2112
- offsetX: z.value.style.chart.tooltip.offsetX,
2113
- offsetY: z.value.style.chart.tooltip.offsetY,
2114
- parent: P.value,
2115
- content: mn.value,
2116
- isFullscreen: bn.value,
2117
- isCustom: A(ae)(z.value.style.chart.tooltip.customFormat),
2118
- smooth: z.value.style.chart.tooltip.smooth,
2119
- backdropFilter: z.value.style.chart.tooltip.backdropFilter,
2120
- smoothForce: z.value.style.chart.tooltip.smoothForce,
2121
- smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
2122
- isA11yMode: Vn.value === "keyboard",
2123
- a11yPosition: Bn.value
2124
- }, {
2125
- "tooltip-before": j(() => [O(n.$slots, "tooltip-before", C(S({ ...pn.value })), void 0, !0)]),
2126
- tooltip: j(() => [O(n.$slots, "tooltip", C(S({ ...pn.value })), void 0, !0)]),
2127
- "tooltip-after": j(() => [O(n.$slots, "tooltip-after", C(S({ ...pn.value })), void 0, !0)]),
2128
- _: 3
2129
- }, 8, [
2130
- "teleportTo",
2131
- "show",
2132
- "backgroundColor",
2133
- "color",
2134
- "fontSize",
2135
- "borderRadius",
2136
- "borderColor",
2137
- "borderWidth",
2138
- "backgroundOpacity",
2139
- "position",
2140
- "offsetX",
2141
- "offsetY",
2142
- "parent",
2143
- "content",
2144
- "isFullscreen",
2145
- "isCustom",
2146
- "smooth",
2147
- "backdropFilter",
2148
- "smoothForce",
2149
- "smoothSnapThreshold",
2150
- "isA11yMode",
2151
- "a11yPosition"
2152
- ]),
2153
- b("div", { id: `legend-bottom-${F.value}` }, null, 8, Yt),
2154
- Tn.value && (z.value.style.chart.legend.show || n.$slots.legend) ? (T(), _(Re, {
2155
- key: 6,
2156
- to: z.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
2157
- }, [b("div", {
2158
- ref_key: "chartLegend",
2159
- ref: _n
2160
- }, [O(n.$slots, "legend", { legend: yi.value }, () => [z.value.style.chart.legend.show ? (T(), _(Ie, {
2161
- key: 0,
2162
- legendSet: yi.value,
2163
- config: bi.value,
2164
- isCursorPointer: B.value,
2165
- onClickMarker: a[3] ||= ({ legend: e }) => e.segregate()
2166
- }, ze({
2167
- item: j(({ legend: e }) => [A(Jn) ? v("", !0) : (T(), y("div", {
2168
- key: 0,
2169
- onClick: (t) => e.segregate(),
2170
- style: w(`opacity:${I.value.includes(e.id) ? .5 : 1}`)
2171
- }, k(e.name), 13, Xt))]),
2172
- legendToggle: j(() => [yi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !A(Jn) ? (T(), _(Me, {
2173
- key: 0,
2174
- backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
2175
- color: z.value.style.chart.legend.selectAllToggle.color,
2176
- fontSize: z.value.style.chart.legend.fontSize,
2177
- checked: I.value.length > 0,
2178
- isCursorPointer: B.value,
2179
- onToggle: mi
2180
- }, null, 8, [
2181
- "backgroundColor",
2182
- "color",
2183
- "fontSize",
2184
- "checked",
2185
- "isCursorPointer"
2186
- ])) : v("", !0)]),
2187
- _: 2
2188
- }, [n.$slots.pattern ? {
2189
- name: "legend-pattern",
2190
- fn: j(({ legend: e, index: t }) => [Ve(De, {
2191
- shape: e.shape,
2192
- radius: 30,
2193
- stroke: "none",
2194
- plot: {
2195
- x: 30,
2196
- y: 30
2197
- },
2198
- fill: `url(#pattern_${F.value}_${t})`
2199
- }, null, 8, ["shape", "fill"])]),
2200
- key: "0"
2201
- } : void 0]), 1032, [
2202
- "legendSet",
2203
- "config",
2204
- "isCursorPointer"
2205
- ])) : v("", !0)], !0)], 512)], 8, ["to"])) : v("", !0),
2206
- n.$slots.source ? (T(), y("div", {
2207
- key: 7,
2208
- ref_key: "source",
2209
- ref: yn,
2210
- dir: "auto"
2211
- }, [O(n.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
2212
- dn.value && z.value.userOptions.buttons.table ? (T(), _(qe(Di.value.component), He({ key: 8 }, Di.value.props, {
2213
- ref_key: "tableUnit",
2214
- ref: En,
2215
- onClose: Oi
2216
- }), ze({
2217
- content: j(() => [Ve(A(tn), {
2218
- colNames: pi.value.colNames,
2219
- head: pi.value.head,
2220
- body: pi.value.body,
2221
- config: pi.value.config,
2222
- title: z.value.table.useDialog ? "" : Di.value.title,
2223
- withCloseButton: !z.value.table.useDialog,
2224
- isCursorPointer: B.value,
2225
- onClose: Oi
2226
- }, {
2227
- th: j(({ th: e }) => [b("div", { innerHTML: e }, null, 8, Zt)]),
2228
- td: j(({ td: e }) => [Be(k(isNaN(Number(e)) ? e : A(r)({
2229
- p: z.value.style.chart.bars.dataLabels.prefix,
2230
- v: e,
2231
- s: z.value.style.chart.bars.dataLabels.suffix,
2232
- r: z.value.table.td.roundingValue
2233
- })), 1)]),
2234
- _: 1
2235
- }, 8, [
2236
- "colNames",
2237
- "head",
2238
- "body",
2239
- "config",
2240
- "title",
2241
- "withCloseButton",
2242
- "isCursorPointer"
2243
- ])]),
2244
- _: 2
2245
- }, [z.value.table.useDialog ? {
2246
- name: "title",
2247
- fn: j(() => [Be(k(Di.value.title), 1)]),
2248
- key: "0"
2249
- } : void 0, z.value.table.useDialog ? {
2250
- name: "actions",
2251
- fn: j(() => [b("button", {
2252
- tabindex: "0",
2253
- class: "vue-ui-user-options-button",
2254
- onClick: a[4] ||= (e) => fi(z.value.userOptions.callbacks.csv),
2255
- style: w({ cursor: B.value ? "pointer" : "default" })
2256
- }, [Ve(A($t), {
2257
- name: "fileCsv",
2258
- stroke: Di.value.props.color
2259
- }, null, 8, ["stroke"])], 4)]),
2260
- key: "1"
2261
- } : void 0]), 1040)) : v("", !0),
2262
- O(n.$slots, "skeleton", {}, () => [A(Jn) ? (T(), _(ye, { key: 0 })) : v("", !0)], !0)
2263
- ], 46, et));
2264
- }
2265
- }, [["__scopeId", "data-v-46c5b91f"]]);
2266
- //#endregion
2267
- export { $e as n, Qt as t };