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,1421 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { B as t, G as n, H as r, I as i, It as a, J as o, Lt as ee, Rt as s, S as te, St as ne, Tt as re, X as ie, ct as ae, h as oe, i as se, k as ce, nt as le, ot as ue, pt as de, t as fe, x as pe, y as me, zt as he } from "./lib-BkiwukKO.js";
3
- import { t as ge } from "./useConfig-ByaaSKhz.js";
4
- import { t as _e } from "./usePrinter-X0yWOynH.js";
5
- import { n as ve, t as ye } from "./BaseScanner-C7dmAref.js";
6
- import { t as be } from "./useSvgExport-Dtu973wa.js";
7
- import { t as xe } from "./useNestedProp-Ck4hsrpu.js";
8
- import { t as Se } from "./useThemeCheck-rFK9Zlb_.js";
9
- import { t as Ce } from "./useTimeLabelCollider-Dm55Emzg.js";
10
- import { t as we } from "./img-BjOr008R.js";
11
- import { n as Te } from "./Title-__gWq2g6.js";
12
- import { t as Ee } from "./Shape-DEGOZ6GG.js";
13
- import { t as De } from "./_plugin-vue_export-helper-Dq1MygBL.js";
14
- import { c as Oe } from "./canvas-lib-DTaADQOK.js";
15
- import { t as ke } from "./useResponsive-CrAInupd.js";
16
- import { t as Ae } from "./BaseLegendToggle-CJTwLGXL.js";
17
- import { t as je } from "./A11yDataTable-q2-8fSlJ.js";
18
- import { t as Me } from "./useUserOptionState-CjPJPTg2.js";
19
- import { t as Ne } from "./useChartAccessibility-Do37qcw2.js";
20
- import { t as Pe } from "./Legend-Gg5Q4Clb.js";
21
- import { t as Fe } from "./vue_ui_parallel_coordinate_plot-CNWrDh96.js";
22
- import { Fragment as c, Teleport as Ie, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Be, nextTick as Ve, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as He, onMounted as Ue, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as C, toRefs as Ke, unref as w, watch as qe, watchEffect as Je, withCtx as T } from "vue";
23
- //#region src/components/vue-ui-parallel-coordinate-plot.vue
24
- var Ye = /* @__PURE__ */ e({ default: () => xt }), Xe = ["id"], Ze = ["id"], Qe = ["id"], $e = { style: { position: "relative" } }, et = [
25
- "xmlns",
26
- "aria-describedby",
27
- "viewBox"
28
- ], tt = [
29
- "x",
30
- "y",
31
- "width",
32
- "height"
33
- ], nt = { style: { "pointer-events": "none" } }, rt = [
34
- "x1",
35
- "x2",
36
- "y1",
37
- "y2",
38
- "stroke",
39
- "stroke-width"
40
- ], it = [
41
- "x1",
42
- "x2",
43
- "y1",
44
- "y2",
45
- "stroke",
46
- "stroke-width"
47
- ], at = { key: 0 }, ot = [
48
- "x",
49
- "y",
50
- "fill",
51
- "font-size",
52
- "font-weight"
53
- ], st = [
54
- "fill",
55
- "font-size",
56
- "font-weight",
57
- "text-anchor",
58
- "transform"
59
- ], ct = [
60
- "fill",
61
- "font-size",
62
- "font-weight",
63
- "text-anchor",
64
- "transform",
65
- "innerHTML"
66
- ], lt = { key: 0 }, ut = [
67
- "x",
68
- "y",
69
- "font-size",
70
- "fill"
71
- ], dt = [
72
- "width",
73
- "x",
74
- "y"
75
- ], ft = { style: { width: "100%" } }, pt = [
76
- "x",
77
- "y",
78
- "fill",
79
- "font-weight",
80
- "font-size",
81
- "onMouseenter",
82
- "onMouseleave",
83
- "onClick"
84
- ], mt = [
85
- "d",
86
- "stroke",
87
- "stroke-width",
88
- "onMouseenter",
89
- "onMouseleave",
90
- "onClick"
91
- ], ht = [
92
- "d",
93
- "onMouseenter",
94
- "onMouseleave",
95
- "onClick"
96
- ], gt = {
97
- key: 0,
98
- style: {
99
- position: "absolute",
100
- top: "100%",
101
- left: "0",
102
- width: "100%"
103
- },
104
- "data-dom-to-png-ignore": "",
105
- "aria-hidden": "true"
106
- }, _t = {
107
- key: 5,
108
- class: "vue-data-ui-watermark"
109
- }, vt = ["id"], yt = ["onClick"], bt = ["innerHTML"], xt = /* @__PURE__ */ De({
110
- __name: "vue-ui-parallel-coordinate-plot",
111
- props: {
112
- config: {
113
- type: Object,
114
- default() {
115
- return {};
116
- }
117
- },
118
- dataset: {
119
- type: Array,
120
- default() {
121
- return [];
122
- }
123
- }
124
- },
125
- emits: [
126
- "selectLegend",
127
- "selectDatapoint",
128
- "copyAlt"
129
- ],
130
- setup(e, { expose: De, emit: Ye }) {
131
- let xt = m(() => import("./Tooltip-CuWEYGr3.js")), St = m(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Ct = m(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), wt = m(() => import("./DataTable-DmE8Oo4i.js")), Tt = m(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Et = m(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Dt = m(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Ot = m(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_parallel_coordinate_plot: kt } = ge(), { isThemeValid: At, warnInvalidTheme: jt } = Se(), E = e, Mt = l({
132
- get() {
133
- return !!E.dataset && E.dataset.length;
134
- },
135
- set(e) {
136
- return e;
137
- }
138
- }), Nt = b(0), D = b(null), Pt = b(null), Ft = b(null), It = b(null), Lt = b(null), Rt = b(0), zt = b(0), Bt = b(0), Vt = b(!1), O = b(null), Ht = b(null), Ut = b(!1), Wt = b(!1), Gt = b(null), k = b(null), Kt = b({
139
- x: 0,
140
- y: 0
141
- }), qt = b("pointer"), Jt = b(!1), A = b(r()), j = b(!1);
142
- function Yt(e) {
143
- j.value = e, Nt.value += 1;
144
- }
145
- let M = b(nn()), N = l(() => M.value.userOptions.useCursorPointer), Xt = l(() => he({
146
- defaultConfig: {
147
- useCssAnimation: !1,
148
- userOptions: { show: !1 },
149
- table: { show: !1 },
150
- style: { chart: {
151
- backgroundColor: "#99999930",
152
- legend: {
153
- show: !0,
154
- backgroundColor: "transparent"
155
- },
156
- yAxis: {
157
- stroke: "#6A6A6A",
158
- labels: {
159
- showAxisNames: !1,
160
- axisNames: [],
161
- ticks: { color: "#6A6A6A" }
162
- }
163
- }
164
- } }
165
- },
166
- userConfig: M.value.skeletonConfig ?? {}
167
- })), { loading: P, FINAL_DATASET: Zt, manualLoading: Qt } = ve({
168
- ...Ke(E),
169
- FINAL_CONFIG: M,
170
- prepareConfig: nn,
171
- callback: () => {
172
- Promise.resolve().then(async () => {
173
- await Ve(), V.value.showTable = M.value.table.show;
174
- });
175
- },
176
- skeletonDataset: E.config?.skeletonDataset ?? [
177
- {
178
- name: "",
179
- shape: "circle",
180
- color: "transparent",
181
- series: [{
182
- name: "",
183
- values: [
184
- 1,
185
- 10,
186
- 100,
187
- 1e3
188
- ]
189
- }]
190
- },
191
- {
192
- name: "",
193
- shape: "circle",
194
- color: "#CACACA",
195
- series: [{
196
- name: "",
197
- values: [
198
- .2,
199
- 3,
200
- 50,
201
- 800
202
- ]
203
- }]
204
- },
205
- {
206
- name: "",
207
- shape: "circle",
208
- color: "transparent",
209
- series: [{
210
- name: "",
211
- values: [
212
- 0,
213
- 0,
214
- 0,
215
- 0
216
- ]
217
- }]
218
- }
219
- ],
220
- skeletonConfig: he({
221
- defaultConfig: M.value,
222
- userConfig: Xt.value
223
- })
224
- }), { userOptionsVisible: $t, setUserOptionsVisibility: en, keepUserOptionState: tn } = Me({ config: M.value }), { svgRef: F } = Ne({ config: M.value.style.chart.title });
225
- function nn() {
226
- let e = xe({
227
- userConfig: E.config,
228
- defaultConfig: kt
229
- }), t = e.theme;
230
- if (!t) return e;
231
- if (!At.value(e)) return jt(e), e;
232
- let n = xe({
233
- userConfig: Fe[t] || E.config,
234
- defaultConfig: e
235
- }), r = xe({
236
- userConfig: E.config,
237
- defaultConfig: n
238
- });
239
- return {
240
- ...r,
241
- customPalette: r.customPalette.length ? r.customPalette : ee[t] || re
242
- };
243
- }
244
- qe(() => E.config, (e) => {
245
- P.value || (M.value = nn()), $t.value = !M.value.userOptions.showOnChartHover, an(), Rt.value += 1, Bt.value += 1, zt.value += 1, V.value.dataLabels.show = M.value.style.chart.yAxis.labels.datapoints.show, V.value.showTable = M.value.table.show, V.value.showTooltip = M.value.style.chart.tooltip.show;
246
- }, { deep: !0 }), qe(() => E.dataset, (e) => {
247
- Array.isArray(e) && e.length > 0 && (Qt.value = !1);
248
- }, { deep: !0 });
249
- let I = Ge(null), L = Ge(null);
250
- Ue(() => {
251
- Vt.value = !0, an();
252
- });
253
- let rn = l(() => !!M.value.debug);
254
- function an() {
255
- if (ne(E.dataset) ? (ie({
256
- componentName: "VueUiParallelCoordinatePlot",
257
- type: "dataset",
258
- debug: rn.value
259
- }), Qt.value = !0) : E.dataset.forEach((e, t) => {
260
- ue({
261
- datasetObject: e,
262
- requiredAttributes: ["name", "series"]
263
- }).forEach((e) => {
264
- Mt.value = !1, ie({
265
- componentName: "VueUiParallelCoordinatePlot",
266
- type: "datasetSerieAttribute",
267
- property: e,
268
- index: t,
269
- debug: rn.value
270
- });
271
- });
272
- }), ne(E.dataset) || (Qt.value = M.value.loading), M.value.responsive) {
273
- let e = Oe(() => {
274
- let { width: e, height: t } = ke({
275
- chart: D.value,
276
- title: M.value.style.chart.title.text ? Pt.value : null,
277
- legend: M.value.style.chart.legend.show ? Ft.value : null,
278
- source: It.value,
279
- noTitle: Lt.value
280
- });
281
- requestAnimationFrame(() => {
282
- R.value.width = e, R.value.height = t - 12, M.value.responsiveProportionalSizing ? (R.value.plotSize = s({
283
- relator: Math.min(e, t),
284
- adjuster: 600,
285
- source: M.value.style.chart.plots.radius,
286
- threshold: 2,
287
- fallback: 2
288
- }), R.value.ticksFontSize = s({
289
- relator: Math.min(e, t),
290
- adjuster: 600,
291
- source: M.value.style.chart.yAxis.labels.ticks.fontSize,
292
- threshold: 10,
293
- fallback: 10
294
- }), R.value.datapointFontSize = s({
295
- relator: Math.min(e, t),
296
- adjuster: 600,
297
- source: M.value.style.chart.yAxis.labels.datapoints.fontSize,
298
- threshold: 10,
299
- fallback: 10
300
- }), R.value.axisNameFontSize = s({
301
- relator: Math.min(e, t),
302
- adjuster: 600,
303
- source: M.value.style.chart.yAxis.labels.axisNamesFontSize,
304
- threshold: 12,
305
- fallback: 12
306
- })) : (R.value.plotSize = M.value.style.chart.plots.radius, R.value.ticksFontSize = M.value.style.chart.yAxis.labels.ticks.fontSize, R.value.datapointFontSize = M.value.style.chart.yAxis.labels.datapoints.fontSize, R.value.axisNameFontSize = M.value.style.chart.yAxis.labels.axisNamesFontSize);
307
- });
308
- });
309
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = D.value.parentNode, I.value.observe(L.value);
310
- }
311
- }
312
- He(() => {
313
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
314
- });
315
- let { isPrinting: on, isImaging: sn, generatePdf: cn, generateImage: ln } = _e({
316
- elementId: `pcp_${A.value}`,
317
- fileName: M.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
318
- options: M.value.userOptions.print
319
- }), un = l(() => M.value.userOptions.show && !M.value.style.chart.title.text), R = b({
320
- height: M.value.style.chart.height,
321
- width: M.value.style.chart.width,
322
- plotSize: M.value.style.chart.plots.radius,
323
- ticksFontSize: M.value.style.chart.yAxis.labels.ticks.fontSize,
324
- datapointFontSize: M.value.style.chart.yAxis.labels.datapoints.fontSize,
325
- axisNameFontSize: M.value.style.chart.yAxis.labels.axisNamesFontSize
326
- }), dn = l(() => R.value.width), fn = l(() => R.value.height), z = b(0), pn = Oe((e) => {
327
- z.value = e;
328
- }, 100);
329
- Je((e) => {
330
- let t = Gt.value;
331
- if (!t) return;
332
- let n = new ResizeObserver((e) => {
333
- pn(e[0].contentRect.height);
334
- });
335
- n.observe(t), e(() => n.disconnect());
336
- });
337
- let B = l(() => {
338
- let { top: e, right: t, bottom: n, left: r } = M.value.style.chart.padding, i = fn.value, a = dn.value;
339
- return {
340
- chartHeight: Math.max(.001, i),
341
- chartWidth: Math.max(.001, a),
342
- height: Math.max(.001, i - e - n - z.value - R.value.datapointFontSize * 2),
343
- width: Math.max(.001, a - r - t),
344
- top: e + z.value + R.value.datapointFontSize,
345
- left: r,
346
- right: a - t,
347
- bottom: i - n - R.value.datapointFontSize
348
- };
349
- }), mn = l(() => pe(M.value.customPalette)), V = b({
350
- dataLabels: { show: M.value.style.chart.yAxis.labels.datapoints.show },
351
- showTable: M.value.table.show,
352
- showTooltip: M.value.style.chart.tooltip.show
353
- });
354
- qe(M, () => {
355
- V.value = {
356
- dataLabels: { show: M.value.style.chart.yAxis.labels.datapoints.show },
357
- showTable: M.value.table.show,
358
- showTooltip: M.value.style.chart.tooltip.show
359
- };
360
- }, { immediate: !0 });
361
- let H = b([]);
362
- function hn() {
363
- H.value.length ? H.value = [] : W.value.forEach((e) => {
364
- H.value.push(e.id);
365
- }), An("selectLegend", K.value);
366
- }
367
- function gn(e) {
368
- H.value.includes(e) ? H.value = H.value.filter((t) => t !== e) : H.value.push(e);
369
- }
370
- let U = l(() => Zt.value.map((e, t) => {
371
- let n = me(e.color) || mn.value[t] || re[t] || re[t % re.length];
372
- return {
373
- ...e,
374
- series: e.series.map((e) => ({
375
- ...e,
376
- id: r(),
377
- color: n
378
- })),
379
- seriesIndex: t,
380
- color: n,
381
- id: r(),
382
- shape: e.shape || "circle"
383
- };
384
- }));
385
- function _n(e) {
386
- return U.value.length ? U.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`), null) : (M.value.debug && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null);
387
- }
388
- function vn(e) {
389
- let t = _n(e);
390
- t !== null && H.value.includes(t.id) && gn(t.id);
391
- }
392
- function yn(e) {
393
- let t = _n(e);
394
- t !== null && (H.value.includes(t.id) || gn(t.id));
395
- }
396
- let W = l(() => U.value.map((e) => ({
397
- ...e,
398
- opacity: H.value.includes(e.id) ? .5 : 1,
399
- segregate: () => gn(e.id),
400
- isSegregated: H.value.includes(e.id),
401
- shape: e.shape || "circle"
402
- }))), bn = l(() => ({
403
- cy: "pcp-div-legend",
404
- backgroundColor: M.value.style.chart.legend.backgroundColor,
405
- color: M.value.style.chart.legend.color,
406
- fontSize: M.value.style.chart.legend.fontSize,
407
- paddingBottom: 12,
408
- fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
409
- })), xn = l(() => Math.max(...U.value.filter((e) => !H.value.includes(e.id)).map((e) => Math.max(...e.series.flatMap((e) => e.values.length))))), G = l(() => B.value.width / xn.value), K = l(() => U.value.filter((e) => !H.value.includes(e.id))), q = l(() => {
410
- let e = [];
411
- for (let t = 0; t < xn.value; t += 1) {
412
- let n = Math.min(...K.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), r = Math.max(...K.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), i = oe(r === n ? n / 4 : n, r === n ? r * 2 : r, M.value.style.chart.yAxis.scaleTicks), a = i.ticks.map((e, n) => {
413
- let r = i.min < 0 ? e + Math.abs(i.min) : e - Math.abs(i.min), a = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
414
- return {
415
- y: B.value.bottom - B.value.height * (r / a),
416
- x: B.value.left + G.value * t + G.value / 2,
417
- value: e
418
- };
419
- });
420
- e.push({
421
- scale: i,
422
- ticks: a,
423
- name: M.value.style.chart.yAxis.labels.axisNames[t] || `Y-${t + 1}`
424
- });
425
- }
426
- return e;
427
- }), J = l(() => K.value.map((e, t) => ({
428
- ...e,
429
- series: e.series.map((n, r) => ({
430
- ...n,
431
- datapoints: n.values.map((i, a) => {
432
- let o = q.value[a].scale.min < 0 ? (i || 0) + Math.abs(q.value[a].scale.min) : (i || 0) - Math.abs(q.value[a].scale.min), ee = q.value[a].scale.min < 0 ? q.value[a].scale.max + Math.abs(q.value[a].scale.min) : q.value[a].scale.max - Math.abs(q.value[a].scale.min);
433
- return {
434
- name: n.name,
435
- seriesName: e.name,
436
- axisIndex: a,
437
- datapointIndex: r,
438
- seriesIndex: t,
439
- value: i || 0,
440
- x: B.value.left + G.value * a + G.value / 2,
441
- y: B.value.bottom - B.value.height * (o / ee),
442
- comment: n.comments && n.comments[a] || ""
443
- };
444
- })
445
- }))
446
- })).map((e) => ({
447
- ...e,
448
- series: e.series.map((e) => {
449
- let t = i(e.datapoints), n = ce(e.datapoints, .12), r = ae(M.value.style.chart.lines.smooth ? `M ${n}` : `M ${t}`);
450
- return {
451
- ...e,
452
- smoothPath: n,
453
- straightPath: t,
454
- pathLength: r
455
- };
456
- })
457
- }))), Y = l(() => J.value.flatMap((e, t) => e.series.map((n, r) => ({
458
- shape: e.shape,
459
- serieName: e.name,
460
- serie: n,
461
- relativeIndex: r,
462
- seriesIndex: n.seriesIndex,
463
- S: t,
464
- key: `${t}_${r}`
465
- }))));
466
- function Sn({ value: e, index: t, datapoint: r }) {
467
- return se(M.value.style.chart.yAxis.labels.formatters[t] || null, e, n({
468
- p: M.value.style.chart.yAxis.labels.prefixes[t] || "",
469
- v: e,
470
- s: M.value.style.chart.yAxis.labels.suffixes[t] || "",
471
- r: M.value.style.chart.yAxis.labels.roundings[t] || 0
472
- }), {
473
- datapoint: r,
474
- seriesIndex: t
475
- });
476
- }
477
- let X = b(null), Cn = b(null), wn = b(!1), Tn = b("");
478
- function Z({ shape: e, serie: t, S: n }) {
479
- M.value.events.datapointLeave && M.value.events.datapointLeave({
480
- datapoint: {
481
- ...t,
482
- shape: e
483
- },
484
- seriesIndex: n
485
- });
486
- let r = k.value === null ? null : Y.value[k.value];
487
- qt.value === "keyboard" && r && r.serie.id === t.id || (X.value = null, wn.value = !1);
488
- }
489
- function En(e) {
490
- if (!F.value || !e?.datapoints?.length) return;
491
- let t = e.datapoints[Math.floor(e.datapoints.length / 2)];
492
- if (!t) return;
493
- let n = a(t.x, t.y, F.value);
494
- n && (Kt.value = n);
495
- }
496
- function Q({ shape: e, serieName: t, serie: r, relativeIndex: i, seriesIndex: a, S: o, triggerMode: ee = "pointer" }) {
497
- M.value.events.datapointEnter && M.value.events.datapointEnter({
498
- datapoint: {
499
- ...r,
500
- shape: e
501
- },
502
- seriesIndex: o
503
- }), qt.value = ee, Cn.value = {
504
- config: M.value,
505
- datapoint: r,
506
- serie: r,
507
- relativeIndex: i,
508
- seriesIndex: a,
509
- series: U.value,
510
- scales: q.value
511
- }, wn.value = !0, X.value = r.id;
512
- let s = "", te = M.value.style.chart.tooltip.customFormat;
513
- de(te) && le(() => te({
514
- serie: r,
515
- seriesIndex: r.seriesIndex,
516
- series: U.value,
517
- config: M.value,
518
- scales: q.value
519
- })) ? Tn.value = te({
520
- serie: r,
521
- seriesIndex: r.seriesIndex,
522
- series: U.value,
523
- config: M.value,
524
- scales: q.value
525
- }) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t ? t + " - " : ""}${r.name}</div>`, q.value.map((e) => e.name).forEach((e, t) => {
526
- s += `
527
- <div class="vue-ui-tooltip-item" style="text-align:left">
528
- <span>${e}: </span>
529
- <span>
530
- ${se(M.value.style.chart.yAxis.labels.formatters[t] || null, r.datapoints[t].value, n({
531
- p: M.value.style.chart.yAxis.labels.prefixes[t] || "",
532
- v: r.datapoints[t].value,
533
- s: M.value.style.chart.yAxis.labels.suffixes[t] || "",
534
- r: M.value.style.chart.yAxis.labels.roundings[t] || ""
535
- }), {
536
- datapoint: r.datapoints[t],
537
- seriesIndex: t
538
- })}
539
- </span>
540
- </div>
541
- `, M.value.style.chart.comments.showInTooltip && r.datapoints[t].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.datapoints[t].comment}</div>`);
542
- }), Tn.value = `<div>${s}</div>`), ee === "keyboard" && Ve(() => {
543
- En(r);
544
- });
545
- }
546
- function Dn() {
547
- return U.value;
548
- }
549
- let $ = l(() => {
550
- let e = [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(q.value.map((e) => e.name));
551
- return {
552
- body: J.value.flatMap((e, t) => e.series.map((t) => [e.name, t.name].concat(t.values))),
553
- head: e,
554
- config: {
555
- th: {
556
- backgroundColor: M.value.table.th.backgroundColor,
557
- color: M.value.table.th.color,
558
- outline: M.value.table.th.outline
559
- },
560
- td: {
561
- backgroundColor: M.value.table.td.backgroundColor,
562
- color: M.value.table.td.color,
563
- outline: M.value.table.td.outline
564
- },
565
- breakpoint: M.value.table.responsiveBreakpoint
566
- },
567
- colNames: [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(q.value.map((e) => e.name))
568
- };
569
- }), On = l(() => J.value.length === 0 ? {
570
- head: [],
571
- body: [],
572
- config: {},
573
- columnNames: []
574
- } : {
575
- head: $.value.head,
576
- body: $.value.body
577
- });
578
- function kn(e = null) {
579
- let t = [
580
- [M.value.style.chart.title.text],
581
- [M.value.style.chart.title.subtitle.text],
582
- [""]
583
- ], n = On.value.head, r = On.value.body, i = te(t.concat([n]).concat(r));
584
- e ? e(i) : o({
585
- csvContent: i,
586
- title: M.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
587
- });
588
- }
589
- let An = Ye;
590
- function jn({ serie: e, shape: t, S: n }) {
591
- M.value.events.datapointClick && M.value.events.datapointClick({
592
- datapoint: {
593
- ...e,
594
- shape: t
595
- },
596
- seriesIndex: n
597
- }), An("selectDatapoint", e);
598
- }
599
- function Mn(e) {
600
- An("selectLegend", K.value);
601
- }
602
- function Nn() {
603
- V.value.showTable = !V.value.showTable;
604
- }
605
- function Pn() {
606
- V.value.dataLabels.show = !V.value.dataLabels.show;
607
- }
608
- function Fn() {
609
- V.value.showTooltip = !V.value.showTooltip;
610
- }
611
- let In = b(!1);
612
- function Ln() {
613
- In.value = !In.value;
614
- }
615
- async function Rn({ scale: e = 2 } = {}) {
616
- if (!D.value) return;
617
- let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
618
- domElement: D.value,
619
- base64: !0,
620
- img: !0,
621
- scale: e
622
- });
623
- return {
624
- imageUri: i,
625
- base64: a,
626
- title: M.value.style.chart.title.text,
627
- width: t,
628
- height: n,
629
- aspectRatio: r
630
- };
631
- }
632
- let zn = b({
633
- start: 0,
634
- end: 1
635
- });
636
- Ce({
637
- timeLabelsEls: Gt,
638
- timeLabels: l(() => q.value.map((e) => e.name)),
639
- slicer: zn,
640
- configRef: M,
641
- rotationPath: [
642
- "style",
643
- "chart",
644
- "yAxis",
645
- "labels",
646
- "axisNamesRotation"
647
- ],
648
- autoRotatePath: [
649
- "style",
650
- "chart",
651
- "yAxis",
652
- "labels",
653
- "axisNamesAutoRotate",
654
- "enable"
655
- ],
656
- isAutoSize: !1,
657
- width: dn,
658
- height: fn,
659
- targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
660
- rotation: M.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
661
- });
662
- let Bn = l(() => {
663
- let e = M.value.table.useDialog && !M.value.table.show, t = V.value.showTable;
664
- return {
665
- component: e ? Ot : Ct,
666
- title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
667
- props: e ? {
668
- backgroundColor: M.value.table.th.backgroundColor,
669
- color: M.value.table.th.color,
670
- headerColor: M.value.table.th.color,
671
- headerBg: M.value.table.th.backgroundColor,
672
- isFullscreen: j.value,
673
- fullscreenParent: D.value,
674
- forcedWidth: Math.min(800, window.innerWidth * .8),
675
- isCursorPointer: N.value
676
- } : {
677
- hideDetails: !0,
678
- config: {
679
- open: t,
680
- maxHeight: 1e4,
681
- body: {
682
- backgroundColor: M.value.style.chart.backgroundColor,
683
- color: M.value.style.chart.color
684
- },
685
- head: {
686
- backgroundColor: M.value.style.chart.backgroundColor,
687
- color: M.value.style.chart.color
688
- }
689
- }
690
- }
691
- };
692
- });
693
- qe(() => V.value.showTable, (e) => {
694
- M.value.table.show || (e && M.value.table.useDialog && O.value ? O.value.open() : "close" in O.value && O.value.close());
695
- });
696
- function Vn() {
697
- V.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
698
- }
699
- let Hn = l(() => M.value.style.chart.backgroundColor), Un = l(() => M.value.style.chart.legend), { exportSvg: Wn, getSvg: Gn } = be({
700
- svg: F,
701
- title: l(() => M.value.style.chart.title),
702
- legend: Un,
703
- legendItems: W,
704
- backgroundColor: Hn
705
- });
706
- async function Kn({ isCb: e }) {
707
- Wt.value = !0, await Ve();
708
- try {
709
- if (e) {
710
- let { blob: e, url: t, text: n, dataUrl: r } = await Gn();
711
- await Promise.resolve(M.value.userOptions.callbacks.svg({
712
- blob: e,
713
- url: t,
714
- text: n,
715
- dataUrl: r
716
- }));
717
- } else await Promise.resolve(Wn());
718
- } finally {
719
- Wt.value = !1;
720
- }
721
- }
722
- function qn(e) {
723
- if (e?.stage === "start") {
724
- Ut.value = !0;
725
- return;
726
- }
727
- if (e?.stage === "end") {
728
- Ut.value = !1;
729
- return;
730
- }
731
- ln();
732
- }
733
- async function Jn() {
734
- if (An("copyAlt", {
735
- config: M.value,
736
- dataset: J.value
737
- }), !M.value.userOptions.callbacks.altCopy) {
738
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
739
- return;
740
- }
741
- await Promise.resolve(M.value.userOptions.callbacks.altCopy({
742
- config: M.value,
743
- dataset: J.value
744
- }));
745
- }
746
- function Yn(e) {
747
- let t = Y.value.length;
748
- return t ? (e % t + t) % t : null;
749
- }
750
- function Xn() {
751
- if (k.value !== null) {
752
- let e = Y.value[k.value];
753
- e && Z({
754
- shape: e.shape,
755
- serie: e.serie,
756
- S: e.S
757
- });
758
- }
759
- k.value = null, qt.value = "pointer", X.value = null, wn.value = !1;
760
- }
761
- function Zn() {
762
- k.value = null, Jt.value = !0;
763
- }
764
- function Qn() {
765
- Xn(), Jt.value = !1;
766
- }
767
- function $n(e) {
768
- if (!F.value || In.value || document.activeElement !== F.value || !Y.value.length) return;
769
- let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
770
- if (!t && !n && !r && !i) return;
771
- if (e.preventDefault(), e.stopPropagation(), i) {
772
- Xn();
773
- return;
774
- }
775
- if (r) {
776
- if (k.value === null) return;
777
- let e = Y.value[k.value];
778
- if (!e) return;
779
- jn({
780
- serie: e.serie,
781
- shape: e.shape,
782
- S: e.S
783
- });
784
- return;
785
- }
786
- let a = k.value;
787
- a = a === null ? n ? 0 : Y.value.length - 1 : Yn(a + (n ? 1 : -1));
788
- let o = Y.value[a];
789
- o && (k.value = a, Q({
790
- shape: o.shape,
791
- serieName: o.serieName,
792
- serie: o.serie,
793
- relativeIndex: o.relativeIndex,
794
- seriesIndex: o.seriesIndex,
795
- S: o.S,
796
- triggerMode: "keyboard"
797
- }));
798
- }
799
- let er = l(() => ({
800
- head: $.value.head,
801
- body: $.value.body.map((e) => [
802
- e[0] ?? "",
803
- e[1] ?? "",
804
- ...e.slice(2)
805
- ]),
806
- caption: M.value.a11y.translations.tableCaption,
807
- notice: M.value.a11y.translations.tableAvailable
808
- }));
809
- return De({
810
- getData: Dn,
811
- getImage: Rn,
812
- generateCsv: kn,
813
- generatePdf: cn,
814
- generateImage: ln,
815
- generateSvg: Kn,
816
- hideSeries: yn,
817
- showSeries: vn,
818
- toggleTable: Nn,
819
- toggleLabels: Pn,
820
- toggleTooltip: Fn,
821
- toggleAnnotator: Ln,
822
- toggleFullscreen: Yt,
823
- copyAlt: Jn
824
- }), (e, n) => (y(), f("div", {
825
- ref_key: "pcpChart",
826
- ref: D,
827
- class: g(`vue-data-ui-component vue-ui-pcp ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
828
- style: v(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height:100%" : ""}`),
829
- id: `pcp_${A.value}`,
830
- onMouseenter: n[2] ||= () => w(en)(!0),
831
- onMouseleave: n[3] ||= () => w(en)(!1)
832
- }, [
833
- p("div", {
834
- id: `chart-instructions-${A.value}`,
835
- class: "sr-only"
836
- }, [p("p", null, C(M.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
837
- er.value.body.length ? (y(), u(je, {
838
- key: 0,
839
- uid: A.value,
840
- head: er.value.head,
841
- body: er.value.body,
842
- caption: er.value.caption,
843
- notice: er.value.notice
844
- }, null, 8, [
845
- "uid",
846
- "head",
847
- "body",
848
- "caption",
849
- "notice"
850
- ])) : d("", !0),
851
- M.value.userOptions.buttons.annotator ? (y(), u(w(Tt), {
852
- key: 1,
853
- svgRef: w(F),
854
- backgroundColor: M.value.style.chart.backgroundColor,
855
- color: M.value.style.chart.color,
856
- active: In.value,
857
- isCursorPointer: N.value,
858
- onClose: Ln
859
- }, {
860
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
861
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
862
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
863
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
864
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
865
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
866
- _: 3
867
- }, 8, [
868
- "svgRef",
869
- "backgroundColor",
870
- "color",
871
- "active",
872
- "isCursorPointer"
873
- ])) : d("", !0),
874
- un.value ? (y(), f("div", {
875
- key: 2,
876
- ref_key: "noTitle",
877
- ref: Lt,
878
- class: "vue-data-ui-no-title-space",
879
- style: "height:36px; width: 100%;background:transparent"
880
- }, null, 512)) : d("", !0),
881
- M.value.style.chart.title.text ? (y(), f("div", {
882
- key: 3,
883
- ref_key: "chartTitle",
884
- ref: Pt,
885
- style: "width:100%;background:transparent;padding-bottom:24px"
886
- }, [(y(), u(Te, {
887
- key: `title_${Rt.value}`,
888
- config: {
889
- title: {
890
- cy: "pcp-div-title",
891
- ...M.value.style.chart.title
892
- },
893
- subtitle: {
894
- cy: "pcp-div-subtitle",
895
- ...M.value.style.chart.title.subtitle
896
- }
897
- }
898
- }, null, 8, ["config"]))], 512)) : d("", !0),
899
- p("div", { id: `legend-top-${A.value}` }, null, 8, Qe),
900
- M.value.userOptions.show && Mt.value && (w(tn) || w($t)) ? (y(), u(w(Et), {
901
- ref_key: "userOptionsRef",
902
- ref: Ht,
903
- key: `user_options_${Nt.value}`,
904
- backgroundColor: M.value.style.chart.backgroundColor,
905
- color: M.value.style.chart.color,
906
- isPrinting: w(on),
907
- isImaging: w(sn),
908
- uid: A.value,
909
- hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
910
- hasPdf: M.value.userOptions.buttons.pdf,
911
- hasXls: M.value.userOptions.buttons.csv,
912
- hasImg: M.value.userOptions.buttons.img,
913
- hasSvg: M.value.userOptions.buttons.svg,
914
- hasTable: M.value.userOptions.buttons.table,
915
- hasLabel: M.value.userOptions.buttons.labels,
916
- hasFullscreen: M.value.userOptions.buttons.fullscreen,
917
- hasAltCopy: M.value.userOptions.buttons.altCopy,
918
- isFullscreen: j.value,
919
- isTooltip: V.value.showTooltip,
920
- titles: { ...M.value.userOptions.buttonTitles },
921
- chartElement: D.value,
922
- position: M.value.userOptions.position,
923
- hasAnnotator: M.value.userOptions.buttons.annotator,
924
- isAnnotation: In.value,
925
- callbacks: M.value.userOptions.callbacks,
926
- printScale: M.value.userOptions.print.scale,
927
- tableDialog: M.value.table.useDialog,
928
- isCursorPointer: N.value,
929
- onToggleFullscreen: Yt,
930
- onGeneratePdf: w(cn),
931
- onGenerateCsv: kn,
932
- onGenerateImage: qn,
933
- onGenerateSvg: Kn,
934
- onToggleTable: Nn,
935
- onToggleLabels: Pn,
936
- onToggleTooltip: Fn,
937
- onToggleAnnotator: Ln,
938
- onCopyAlt: Jn,
939
- style: v({ visibility: w(tn) ? w($t) ? "visible" : "hidden" : "visible" })
940
- }, Le({ _: 2 }, [
941
- e.$slots.menuIcon ? {
942
- name: "menuIcon",
943
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
944
- isOpen: t,
945
- color: n
946
- })), void 0, !0)]),
947
- key: "0"
948
- } : void 0,
949
- e.$slots.optionTooltip ? {
950
- name: "optionTooltip",
951
- fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
952
- key: "1"
953
- } : void 0,
954
- e.$slots.optionPdf ? {
955
- name: "optionPdf",
956
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
957
- key: "2"
958
- } : void 0,
959
- e.$slots.optionCsv ? {
960
- name: "optionCsv",
961
- fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
962
- key: "3"
963
- } : void 0,
964
- e.$slots.optionImg ? {
965
- name: "optionImg",
966
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
967
- key: "4"
968
- } : void 0,
969
- e.$slots.optionSvg ? {
970
- name: "optionSvg",
971
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
972
- key: "5"
973
- } : void 0,
974
- e.$slots.optionTable ? {
975
- name: "optionTable",
976
- fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
977
- key: "6"
978
- } : void 0,
979
- e.$slots.optionLabels ? {
980
- name: "optionLabels",
981
- fn: T(() => [S(e.$slots, "optionLabels", {}, void 0, !0)]),
982
- key: "7"
983
- } : void 0,
984
- e.$slots.optionFullscreen ? {
985
- name: "optionFullscreen",
986
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
987
- toggleFullscreen: t,
988
- isFullscreen: n
989
- })), void 0, !0)]),
990
- key: "8"
991
- } : void 0,
992
- e.$slots.optionAnnotator ? {
993
- name: "optionAnnotator",
994
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
995
- toggleAnnotator: t,
996
- isAnnotator: n
997
- })), void 0, !0)]),
998
- key: "9"
999
- } : void 0,
1000
- e.$slots.optionAltCopy ? {
1001
- name: "optionAltCopy",
1002
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
1003
- key: "10"
1004
- } : void 0,
1005
- e.$slots["custom-menu-before"] ? {
1006
- name: "custom-menu-before",
1007
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1008
- key: "11"
1009
- } : void 0,
1010
- e.$slots["custom-menu-after"] ? {
1011
- name: "custom-menu-after",
1012
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1013
- key: "12"
1014
- } : void 0
1015
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
1016
- p("div", $e, [(y(), f("svg", {
1017
- ref_key: "svgRef",
1018
- ref: F,
1019
- xmlns: w(fe),
1020
- "aria-describedby": `chart-instructions-${A.value}`,
1021
- class: g({
1022
- "vue-data-ui-fullscreen--on": j.value,
1023
- "vue-data-ui-fulscreen--off": !j.value
1024
- }),
1025
- viewBox: `0 0 ${B.value.chartWidth <= 0 ? 10 : B.value.chartWidth} ${B.value.chartHeight <= 0 ? 10 : B.value.chartHeight}`,
1026
- style: v(`max-width:100%; overflow: visible; background:transparent;color:${M.value.style.chart.color}`),
1027
- tabindex: "0",
1028
- onFocus: Zn,
1029
- onBlur: Qn,
1030
- onKeydown: $n
1031
- }, [
1032
- ze(w(Dt)),
1033
- e.$slots["chart-background"] ? (y(), f("foreignObject", {
1034
- key: 0,
1035
- x: B.value.left,
1036
- y: B.value.top,
1037
- width: B.value.width,
1038
- height: B.value.height,
1039
- style: { pointerEvents: "none" }
1040
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : d("", !0),
1041
- (y(!0), f(c, null, x(q.value, (e, t) => (y(), f("g", nt, [p("line", {
1042
- x1: B.value.left + G.value * t + G.value / 2,
1043
- x2: B.value.left + G.value * t + G.value / 2,
1044
- y1: B.value.top,
1045
- y2: B.value.bottom,
1046
- stroke: M.value.style.chart.yAxis.stroke,
1047
- "stroke-width": M.value.style.chart.yAxis.strokeWidth
1048
- }, null, 8, rt), M.value.style.chart.yAxis.labels.ticks.show ? (y(), f(c, { key: 0 }, [(y(!0), f(c, null, x(e.ticks, (e) => (y(), f("line", {
1049
- x1: e.x,
1050
- x2: e.x - 10,
1051
- y1: e.y,
1052
- y2: e.y,
1053
- stroke: M.value.style.chart.yAxis.stroke,
1054
- "stroke-width": M.value.style.chart.yAxis.strokeWidth,
1055
- style: v(`opacity:${X.value && !V.value.showTooltip ? .2 : 1}`)
1056
- }, null, 12, it))), 256)), w(P) ? d("", !0) : (y(), f("g", at, [(y(!0), f(c, null, x(e.ticks, (e) => (y(), f("text", {
1057
- x: e.x - 12 + M.value.style.chart.yAxis.labels.ticks.offsetX,
1058
- y: e.y + M.value.style.chart.yAxis.labels.ticks.offsetY + R.value.ticksFontSize / 3,
1059
- fill: M.value.style.chart.yAxis.labels.ticks.color,
1060
- "text-anchor": "end",
1061
- "font-size": R.value.ticksFontSize,
1062
- "font-weight": M.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
1063
- style: v(`opacity:${X.value && !V.value.showTooltip ? .2 : 1}`)
1064
- }, C(Sn({
1065
- value: e.value,
1066
- index: t,
1067
- datapoint: e
1068
- })), 13, ot))), 256))]))], 64)) : d("", !0)]))), 256)),
1069
- M.value.style.chart.yAxis.labels.showAxisNames ? (y(), f("g", {
1070
- key: 1,
1071
- ref_key: "xAxisLabels",
1072
- ref: Gt
1073
- }, [(y(!0), f(c, null, x(q.value, (e, n) => (y(), f(c, null, [String(e.name).includes("\n") ? (y(), f("text", {
1074
- key: 1,
1075
- class: "vue-ui-parallel-coordinate-plot-x-label",
1076
- fill: M.value.style.chart.yAxis.labels.axisNamesColor,
1077
- "font-size": R.value.axisNameFontSize,
1078
- "font-weight": M.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
1079
- "text-anchor": M.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : M.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
1080
- transform: `translate(${B.value.left + G.value * n + G.value / 2}, ${z.value - R.value.axisNameFontSize}), rotate(${M.value.style.chart.yAxis.labels.axisNamesRotation})`,
1081
- innerHTML: w(t)({
1082
- content: String(e.name),
1083
- fontSize: R.value.axisNameFontSize,
1084
- fill: M.value.style.chart.yAxis.labels.axisNamesColor,
1085
- x: 0,
1086
- y: 0
1087
- })
1088
- }, null, 8, ct)) : (y(), f("text", {
1089
- key: 0,
1090
- class: "vue-ui-parallel-coordinate-plot-x-label",
1091
- fill: M.value.style.chart.yAxis.labels.axisNamesColor,
1092
- "font-size": R.value.axisNameFontSize,
1093
- "font-weight": M.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
1094
- "text-anchor": M.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : M.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
1095
- transform: `translate(${B.value.left + G.value * n + G.value / 2}, ${z.value - R.value.axisNameFontSize}), rotate(${M.value.style.chart.yAxis.labels.axisNamesRotation})`
1096
- }, C(e.name), 9, st))], 64))), 256))], 512)) : d("", !0),
1097
- (y(!0), f(c, null, x(J.value, (t, n) => (y(), f("g", null, [(y(!0), f(c, null, x(t.series, (r, i) => (y(), f("g", null, [
1098
- M.value.style.chart.plots.show ? (y(), f("g", lt, [
1099
- (y(!0), f(c, null, x(r.datapoints, (e, a) => (y(), u(Ee, {
1100
- plot: {
1101
- x: e.x,
1102
- y: e.y
1103
- },
1104
- color: t.color,
1105
- shape: t.shape,
1106
- radius: t.shape === "triangle" ? R.value.plotSize * 1.2 : R.value.plotSize,
1107
- stroke: M.value.style.chart.backgroundColor,
1108
- strokeWidth: .5,
1109
- onMouseenter: (e) => Q({
1110
- shape: t.shape,
1111
- serieName: t.name,
1112
- serie: r,
1113
- relativeIndex: i,
1114
- seriesIndex: r.seriesIndex,
1115
- S: n,
1116
- triggerMode: "pointer"
1117
- }),
1118
- onMouseleave: (e) => Z({
1119
- serie: r,
1120
- shape: t.shape,
1121
- S: n
1122
- }),
1123
- style: v(`opacity:${X.value ? X.value === r.id ? M.value.style.chart.plots.opacity : .2 : M.value.style.chart.plots.opacity}`),
1124
- onClick: () => jn({
1125
- serie: r,
1126
- shape: t.shape,
1127
- S: n
1128
- })
1129
- }, null, 8, [
1130
- "plot",
1131
- "color",
1132
- "shape",
1133
- "radius",
1134
- "stroke",
1135
- "onMouseenter",
1136
- "onMouseleave",
1137
- "style",
1138
- "onClick"
1139
- ]))), 256)),
1140
- V.value.showTooltip ? d("", !0) : (y(), f(c, { key: 0 }, [X.value && X.value === r.id && r.datapoints.length ? (y(), f("text", {
1141
- key: 0,
1142
- x: r.datapoints[0].x - R.value.ticksFontSize,
1143
- y: r.datapoints[0].y + R.value.ticksFontSize / 3,
1144
- "text-anchor": "end",
1145
- "font-size": R.value.ticksFontSize,
1146
- fill: t.color,
1147
- "font-weight": "bold"
1148
- }, C(r.name), 9, ut)) : d("", !0)], 64)),
1149
- M.value.style.chart.comments.show ? (y(!0), f(c, { key: 1 }, x(r.datapoints, (n) => (y(), f("g", null, [n.comment ? (y(), f("foreignObject", {
1150
- key: 0,
1151
- style: { overflow: "visible" },
1152
- height: "12",
1153
- width: M.value.style.chart.comments.width,
1154
- x: n.x - M.value.style.chart.comments.width / 2 + M.value.style.chart.comments.offsetX,
1155
- y: n.y + M.value.style.chart.comments.offsetY + 6
1156
- }, [p("div", ft, [S(e.$slots, "plot-comment", { plot: {
1157
- ...n,
1158
- color: t.color
1159
- } }, void 0, !0)])], 8, dt)) : d("", !0)]))), 256)) : d("", !0)
1160
- ])) : d("", !0),
1161
- !w(P) && (V.value.dataLabels.show || X.value && X.value === r.id) ? (y(!0), f(c, { key: 1 }, x(r.datapoints, (e, a) => (y(), f("text", {
1162
- x: e.x + 12 + M.value.style.chart.yAxis.labels.datapoints.offsetX,
1163
- y: e.y + M.value.style.chart.yAxis.labels.datapoints.offsetY + R.value.datapointFontSize / 3,
1164
- fill: M.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : M.value.style.chart.yAxis.labels.datapoints.color,
1165
- "text-anchor": "start",
1166
- "font-weight": M.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
1167
- class: g({
1168
- "vue-ui-pcp-animated": !1,
1169
- "vue-ui-pcp-transition": !w(P)
1170
- }),
1171
- "font-size": R.value.datapointFontSize,
1172
- onMouseenter: (e) => Q({
1173
- shape: t.shape,
1174
- serieName: t.name,
1175
- serie: r,
1176
- relativeIndex: i,
1177
- seriesIndex: r.seriesIndex,
1178
- S: n,
1179
- triggerMode: "pointer"
1180
- }),
1181
- onMouseleave: (e) => Z({
1182
- serie: r,
1183
- shape: t.shape,
1184
- S: n
1185
- }),
1186
- onClick: () => jn({
1187
- serie: r,
1188
- shape: t.shape,
1189
- S: n
1190
- }),
1191
- style: v(`opacity:${X.value ? X.value === r.id ? 1 : .2 : 1}`)
1192
- }, C(Sn({
1193
- value: e.value,
1194
- index: a,
1195
- datapoint: e
1196
- })), 47, pt))), 256)) : d("", !0),
1197
- p("path", {
1198
- d: `M${M.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
1199
- stroke: t.color,
1200
- "stroke-width": M.value.style.chart.lines.strokeWidth,
1201
- fill: "none",
1202
- class: g({
1203
- "vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
1204
- "vue-ui-pcp-transition": !w(P)
1205
- }),
1206
- onMouseenter: (e) => Q({
1207
- shape: t.shape,
1208
- serieName: t.name,
1209
- serie: r,
1210
- relativeIndex: i,
1211
- seriesIndex: r.seriesIndex,
1212
- S: n,
1213
- triggerMode: "pointer"
1214
- }),
1215
- onMouseleave: (e) => Z({
1216
- serie: r,
1217
- shape: t.shape,
1218
- S: n
1219
- }),
1220
- onClick: () => jn({
1221
- serie: r,
1222
- shape: t.shape,
1223
- S: n
1224
- }),
1225
- style: v(`opacity:${X.value ? X.value === r.id ? M.value.style.chart.lines.opacity : .2 : M.value.style.chart.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${M.value.useCssAnimation ? r.pathLength : 0}`)
1226
- }, null, 46, mt),
1227
- V.value.showTooltip ? (y(), f("path", {
1228
- key: 2,
1229
- d: `M${M.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
1230
- stroke: "transparent",
1231
- "stroke-width": 12,
1232
- fill: "none",
1233
- class: g({
1234
- "vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
1235
- "vue-ui-pcp-transition": !w(P)
1236
- }),
1237
- onMouseenter: (e) => Q({
1238
- shape: t.shape,
1239
- serieName: t.name,
1240
- serie: r,
1241
- relativeIndex: i,
1242
- seriesIndex: r.seriesIndex,
1243
- S: n,
1244
- triggerMode: "pointer"
1245
- }),
1246
- onMouseleave: (e) => Z({
1247
- serie: r,
1248
- shape: t.shape,
1249
- S: n
1250
- }),
1251
- onClick: () => jn({
1252
- serie: r,
1253
- shape: t.shape,
1254
- S: n
1255
- }),
1256
- style: { opacity: "0" }
1257
- }, null, 42, ht)) : d("", !0)
1258
- ]))), 256))]))), 256)),
1259
- S(e.$slots, "svg", { svg: {
1260
- ...B.value,
1261
- isPrintingImg: w(on) || w(sn) || Ut.value,
1262
- isPrintingSvg: Wt.value
1263
- } }, void 0, !0)
1264
- ], 46, et)), e.$slots.hint ? (y(), f("div", gt, [S(e.$slots, "hint", _(h({
1265
- hint: M.value.a11y.translations.keyboardNavigation,
1266
- isVisible: Jt.value
1267
- })), void 0, !0)])) : d("", !0)]),
1268
- e.$slots.watermark ? (y(), f("div", _t, [S(e.$slots, "watermark", _(h({ isPrinting: w(on) || w(sn) || Ut.value || Wt.value })), void 0, !0)])) : d("", !0),
1269
- p("div", { id: `legend-bottom-${A.value}` }, null, 8, vt),
1270
- Vt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Ie, {
1271
- key: 6,
1272
- to: M.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1273
- }, [p("div", {
1274
- ref_key: "chartLegend",
1275
- ref: Ft
1276
- }, [S(e.$slots, "legend", { legend: W.value }, () => [M.value.style.chart.legend.show && Mt.value ? (y(), u(Pe, {
1277
- key: `legend_${zt.value}`,
1278
- legendSet: W.value,
1279
- config: bn.value,
1280
- isCursorPointer: N.value,
1281
- onClickMarker: n[0] ||= ({ legend: e }) => {
1282
- gn(e.id), Mn(e);
1283
- }
1284
- }, {
1285
- item: T(({ legend: e, index: t }) => [p("div", {
1286
- onClick: (t) => {
1287
- e.segregate(), Mn(e);
1288
- },
1289
- style: v(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
1290
- }, C(e.name), 13, yt)]),
1291
- legendToggle: T(() => [W.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !w(P) ? (y(), u(Ae, {
1292
- key: 0,
1293
- backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
1294
- color: M.value.style.chart.legend.selectAllToggle.color,
1295
- fontSize: M.value.style.chart.legend.fontSize,
1296
- checked: H.value.length > 0,
1297
- isCursorPointer: N.value,
1298
- onToggle: hn
1299
- }, null, 8, [
1300
- "backgroundColor",
1301
- "color",
1302
- "fontSize",
1303
- "checked",
1304
- "isCursorPointer"
1305
- ])) : d("", !0)]),
1306
- _: 1
1307
- }, 8, [
1308
- "legendSet",
1309
- "config",
1310
- "isCursorPointer"
1311
- ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1312
- e.$slots.source ? (y(), f("div", {
1313
- key: 7,
1314
- ref_key: "source",
1315
- ref: It,
1316
- dir: "auto"
1317
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1318
- ze(w(xt), {
1319
- teleportTo: M.value.style.chart.tooltip.teleportTo,
1320
- show: V.value.showTooltip && wn.value,
1321
- backgroundColor: M.value.style.chart.tooltip.backgroundColor,
1322
- color: M.value.style.chart.tooltip.color,
1323
- fontSize: M.value.style.chart.tooltip.fontSize,
1324
- borderRadius: M.value.style.chart.tooltip.borderRadius,
1325
- borderColor: M.value.style.chart.tooltip.borderColor,
1326
- borderWidth: M.value.style.chart.tooltip.borderWidth,
1327
- backgroundOpacity: M.value.style.chart.tooltip.backgroundOpacity,
1328
- position: M.value.style.chart.tooltip.position,
1329
- offsetX: M.value.style.chart.tooltip.offsetX,
1330
- offsetY: M.value.style.chart.tooltip.offsetY,
1331
- parent: D.value,
1332
- content: Tn.value,
1333
- isFullscreen: j.value,
1334
- isCustom: w(de)(M.value.style.chart.tooltip.customFormat),
1335
- smooth: M.value.style.chart.tooltip.smooth,
1336
- backdropFilter: M.value.style.chart.tooltip.backdropFilter,
1337
- smoothForce: M.value.style.chart.tooltip.smoothForce,
1338
- smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
1339
- isA11yMode: qt.value === "keyboard",
1340
- a11yPosition: Kt.value
1341
- }, {
1342
- "tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...Cn.value })), void 0, !0)]),
1343
- tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...Cn.value })), void 0, !0)]),
1344
- "tooltip-after": T(() => [S(e.$slots, "tooltip-after", _(h({ ...Cn.value })), void 0, !0)]),
1345
- _: 3
1346
- }, 8, [
1347
- "teleportTo",
1348
- "show",
1349
- "backgroundColor",
1350
- "color",
1351
- "fontSize",
1352
- "borderRadius",
1353
- "borderColor",
1354
- "borderWidth",
1355
- "backgroundOpacity",
1356
- "position",
1357
- "offsetX",
1358
- "offsetY",
1359
- "parent",
1360
- "content",
1361
- "isFullscreen",
1362
- "isCustom",
1363
- "smooth",
1364
- "backdropFilter",
1365
- "smoothForce",
1366
- "smoothSnapThreshold",
1367
- "isA11yMode",
1368
- "a11yPosition"
1369
- ]),
1370
- Mt.value && M.value.userOptions.buttons.table ? (y(), u(We(Bn.value.component), Be({ key: 8 }, Bn.value.props, {
1371
- ref_key: "tableUnit",
1372
- ref: O,
1373
- onClose: Vn
1374
- }), Le({
1375
- content: T(() => [(y(), u(w(wt), {
1376
- key: `table_${Bt.value}`,
1377
- colNames: $.value.colNames,
1378
- head: $.value.head,
1379
- body: $.value.body,
1380
- config: $.value.config,
1381
- title: M.value.table.useDialog ? "" : Bn.value.title,
1382
- withCloseButton: !M.value.table.useDialog,
1383
- isCursorPointer: N.value,
1384
- onClose: Vn
1385
- }, {
1386
- th: T(({ th: e }) => [p("div", { innerHTML: e }, null, 8, bt)]),
1387
- td: T(({ td: e }) => [Re(C(e), 1)]),
1388
- _: 1
1389
- }, 8, [
1390
- "colNames",
1391
- "head",
1392
- "body",
1393
- "config",
1394
- "title",
1395
- "withCloseButton",
1396
- "isCursorPointer"
1397
- ]))]),
1398
- _: 2
1399
- }, [M.value.table.useDialog ? {
1400
- name: "title",
1401
- fn: T(() => [Re(C(Bn.value.title), 1)]),
1402
- key: "0"
1403
- } : void 0, M.value.table.useDialog ? {
1404
- name: "actions",
1405
- fn: T(() => [p("button", {
1406
- tabindex: "0",
1407
- class: "vue-ui-user-options-button",
1408
- onClick: n[1] ||= (e) => kn(M.value.userOptions.callbacks.csv),
1409
- style: v({ cursor: N.value ? "pointer" : "default" })
1410
- }, [ze(w(St), {
1411
- name: "fileCsv",
1412
- stroke: Bn.value.props.color
1413
- }, null, 8, ["stroke"])], 4)]),
1414
- key: "1"
1415
- } : void 0]), 1040)) : d("", !0),
1416
- S(e.$slots, "skeleton", {}, () => [w(P) ? (y(), u(ye, { key: 0 })) : d("", !0)], !0)
1417
- ], 46, Xe));
1418
- }
1419
- }, [["__scopeId", "data-v-b86a949a"]]);
1420
- //#endregion
1421
- export { Ye as n, xt as t };