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,1555 +0,0 @@
1
- import { Bt as e, F as t, H as n, I as r, L as i, j as a, k as o, pt as ee, r as te, t as ne } from "./lib-BkiwukKO.js";
2
- import { t as s } from "./_plugin-vue_export-helper-Dq1MygBL.js";
3
- import { c, r as re } from "./canvas-lib-DTaADQOK.js";
4
- import { t as l } from "./useResponsive-CrAInupd.js";
5
- import { t as ie } from "./BaseIcon-DM1x8hQF.js";
6
- import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as ae, mergeProps as oe, nextTick as se, normalizeClass as h, normalizeProps as ce, normalizeStyle as g, onBeforeUnmount as le, onMounted as ue, onUpdated as de, openBlock as _, ref as v, renderList as y, renderSlot as fe, toDisplayString as pe, unref as me, useCssVars as he, vModelText as ge, watch as b, withDirectives as _e, withKeys as ve, withModifiers as ye } from "vue";
7
- //#region src/atoms/SlicerPreview.vue
8
- var be = ["data-minimap"], xe = {
9
- class: "vue-data-ui-slicer-labels",
10
- style: {
11
- position: "relative",
12
- "z-index": "1",
13
- "pointer-events": "none"
14
- }
15
- }, Se = {
16
- key: 0,
17
- style: {
18
- width: "100%",
19
- position: "relative",
20
- "pointer-events": "all"
21
- }
22
- }, Ce = {
23
- key: 0,
24
- class: "minimap",
25
- style: { width: "100%" }
26
- }, we = ["xmlns", "viewBox"], Te = ["id"], Ee = ["stop-color"], De = [
27
- "width",
28
- "height",
29
- "stroke"
30
- ], Oe = ["d", "stroke"], ke = ["d", "fill"], Ae = [
31
- "x",
32
- "y",
33
- "width",
34
- "height",
35
- "fill"
36
- ], je = [
37
- "d",
38
- "stroke",
39
- "stroke-dasharray"
40
- ], Me = [
41
- "cx",
42
- "cy",
43
- "fill",
44
- "stroke"
45
- ], Ne = [
46
- "cx",
47
- "cy",
48
- "fill",
49
- "stroke"
50
- ], Pe = [
51
- "x",
52
- "width",
53
- "height",
54
- "fill",
55
- "rx"
56
- ], Fe = [
57
- "x",
58
- "width",
59
- "height",
60
- "rx",
61
- "fill"
62
- ], Ie = [
63
- "x",
64
- "width",
65
- "height",
66
- "fill",
67
- "rx",
68
- "aria-valuemin",
69
- "aria-valuemax",
70
- "aria-valuenow",
71
- "aria-valuetext"
72
- ], Le = [
73
- "x2",
74
- "y1",
75
- "y2",
76
- "stroke"
77
- ], Re = { key: "merged-tree" }, ze = ["d", "fill"], Be = ["d", "stroke"], Ve = [
78
- "cx",
79
- "cy",
80
- "stroke",
81
- "fill"
82
- ], He = [
83
- "cx",
84
- "cy",
85
- "stroke",
86
- "fill"
87
- ], Ue = { key: "split-tree" }, We = [
88
- "x",
89
- "y",
90
- "width",
91
- "height",
92
- "fill"
93
- ], Ge = [
94
- "d",
95
- "stroke",
96
- "stroke-dasharray"
97
- ], Ke = [
98
- "cx",
99
- "cy",
100
- "fill",
101
- "stroke"
102
- ], qe = ["width", "height"], Je = [
103
- "x",
104
- "width",
105
- "height",
106
- "fill",
107
- "stroke",
108
- "stroke-width"
109
- ], Ye = ["transform"], Xe = ["width", "height"], Ze = ["fill", "stroke"], Qe = ["stroke"], $e = ["fill"], et = [
110
- "x",
111
- "width",
112
- "height",
113
- "fill",
114
- "stroke",
115
- "stroke-width"
116
- ], tt = ["transform"], nt = ["width", "height"], rt = ["fill", "stroke"], it = ["stroke"], at = ["fill"], ot = {
117
- key: "merged-tree",
118
- style: { "pointer-events": "none" }
119
- }, st = [
120
- "cx",
121
- "cy",
122
- "stroke",
123
- "fill"
124
- ], ct = [
125
- "cx",
126
- "cy",
127
- "fill"
128
- ], lt = [
129
- "cx",
130
- "cy",
131
- "stroke",
132
- "fill"
133
- ], ut = [
134
- "cx",
135
- "cy",
136
- "fill"
137
- ], dt = {
138
- key: 1,
139
- style: { "pointer-events": "none" }
140
- }, ft = [
141
- "d",
142
- "stroke",
143
- "stroke-dasharray"
144
- ], pt = [
145
- "cx",
146
- "cy",
147
- "fill",
148
- "stroke"
149
- ], mt = [
150
- "cx",
151
- "cy",
152
- "stroke",
153
- "fill"
154
- ], ht = [
155
- "cx",
156
- "cy",
157
- "fill"
158
- ], gt = [
159
- "cx",
160
- "cy",
161
- "stroke",
162
- "fill"
163
- ], _t = [
164
- "cx",
165
- "cy",
166
- "fill"
167
- ], vt = [
168
- "cx",
169
- "cy",
170
- "fill",
171
- "stroke"
172
- ], yt = [
173
- "min",
174
- "max",
175
- "tabindex"
176
- ], bt = [
177
- "min",
178
- "max",
179
- "tabindex"
180
- ], xt = {
181
- key: 3,
182
- class: "minimap-handle-overlay"
183
- }, St = ["xmlns", "viewBox"], Ct = [
184
- "x",
185
- "width",
186
- "height"
187
- ], wt = [
188
- "x",
189
- "width",
190
- "height"
191
- ], Tt = 48, Et = /* @__PURE__ */ s({
192
- __name: "SlicerPreview",
193
- props: {
194
- uuid: {
195
- type: String,
196
- default: ""
197
- },
198
- immediate: {
199
- type: Boolean,
200
- default: !0
201
- },
202
- background: {
203
- type: String,
204
- default: "#FFFFFF"
205
- },
206
- borderColor: {
207
- type: String,
208
- default: "#FFFFFF"
209
- },
210
- fontSize: {
211
- type: Number,
212
- default: 14
213
- },
214
- labelLeft: {
215
- type: [String, Number],
216
- default: ""
217
- },
218
- labelRight: {
219
- type: [String, Number],
220
- default: ""
221
- },
222
- textColor: {
223
- type: String,
224
- default: "#1A1A1A"
225
- },
226
- inputColor: {
227
- type: String,
228
- default: "#1A1A1A"
229
- },
230
- max: {
231
- type: Number,
232
- default: 0
233
- },
234
- min: {
235
- type: Number,
236
- default: 0
237
- },
238
- selectColor: {
239
- type: String,
240
- default: "#4A4A4A"
241
- },
242
- useResetSlot: {
243
- type: Boolean,
244
- default: !1
245
- },
246
- valueStart: {
247
- type: [Number, String],
248
- default: 0
249
- },
250
- valueEnd: {
251
- type: [Number, String],
252
- default: 0
253
- },
254
- minimap: {
255
- type: Array,
256
- default: []
257
- },
258
- smoothMinimap: {
259
- type: Boolean,
260
- default: !1
261
- },
262
- minimapSelectedColor: {
263
- type: String,
264
- default: "#1f77b4"
265
- },
266
- minimapSelectionRadius: {
267
- type: Number,
268
- default: 12
269
- },
270
- minimapLineColor: {
271
- type: String,
272
- default: "#2D353C"
273
- },
274
- minimapSelectedColorOpacity: {
275
- type: Number,
276
- default: .2
277
- },
278
- minimapSelectedIndex: {
279
- type: Number,
280
- default: null
281
- },
282
- minimapIndicatorColor: {
283
- type: String,
284
- default: "#2D353C"
285
- },
286
- refreshStartPoint: {
287
- type: Number,
288
- default: 0
289
- },
290
- refreshEndPoint: {
291
- type: Number,
292
- default: null
293
- },
294
- enableRangeHandles: {
295
- type: Boolean,
296
- default: !1
297
- },
298
- enableSelectionDrag: {
299
- type: Boolean,
300
- default: !0
301
- },
302
- verticalHandles: {
303
- type: Boolean,
304
- default: !1
305
- },
306
- timeLabels: { type: Array },
307
- isPreview: {
308
- type: Boolean,
309
- default: !1
310
- },
311
- preciseLabels: {
312
- type: Array,
313
- default() {
314
- return [];
315
- }
316
- },
317
- usePreciseLabels: {
318
- type: Boolean,
319
- default: !1
320
- },
321
- selectedSeries: { type: Object },
322
- customFormat: { type: [Function, null] },
323
- minimapCompact: {
324
- type: Boolean,
325
- default: !1
326
- },
327
- allMinimaps: {
328
- type: Array,
329
- default() {
330
- return [];
331
- }
332
- },
333
- minimapMerged: {
334
- type: Boolean,
335
- default: !1
336
- },
337
- minimapFrameColor: {
338
- type: String,
339
- default: "#e1e5e8"
340
- },
341
- cutNullValues: {
342
- type: Boolean,
343
- default: !1
344
- },
345
- focusOnDrag: {
346
- type: Boolean,
347
- default: !1
348
- },
349
- focusRangeRatio: {
350
- type: Number,
351
- default: .1
352
- },
353
- minScale: {
354
- type: Number,
355
- default: null
356
- },
357
- maxScale: {
358
- type: Number,
359
- default: null
360
- },
361
- forceZeroCenter: {
362
- type: Boolean,
363
- default: !1
364
- },
365
- maxWidth: {
366
- type: Number,
367
- default: null
368
- },
369
- isCursorPointer: {
370
- type: Boolean,
371
- default: !1
372
- },
373
- additionalMinimapHeight: {
374
- type: Number,
375
- default: 0
376
- },
377
- handleType: {
378
- type: String,
379
- default: ""
380
- },
381
- handleWidth: {
382
- type: Number,
383
- default: 20
384
- },
385
- handleBorderWidth: {
386
- type: Number,
387
- default: 1
388
- },
389
- handleIconColor: {
390
- type: String,
391
- default: null
392
- },
393
- handleBorderColor: {
394
- type: String,
395
- default: null
396
- },
397
- handleFill: {
398
- type: String,
399
- default: null
400
- }
401
- },
402
- emits: [
403
- "futureStart",
404
- "futureEnd",
405
- "update:start",
406
- "update:end",
407
- "reset",
408
- "trapMouse"
409
- ],
410
- setup(s, { expose: Et, emit: Dt }) {
411
- he((e) => ({
412
- v21f311c4: Ut.value,
413
- v8c2ecb90: P.value,
414
- v6086c4ae: Gt.value,
415
- cbc44930: s.selectColor,
416
- v4ea651f6: Wt.value,
417
- v186c5d28: x.additionalMinimapHeight
418
- }));
419
- let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), Ot = v(n()), E = v(!1), D = d(() => T.value && x.minimapCompact), O = v(null), kt = v(!1), At = v(0), jt = v(0), Mt = v(null), Nt = d(() => Math.min(40, Math.max(20, x.handleWidth))), Pt = v(0), Ft = c((e) => M("futureStart", e), 0), It = c((e) => M("futureEnd", e), 0), k = d({
420
- get: () => C.value,
421
- set(e) {
422
- let t = Math.min(e, w.value - 1);
423
- t !== C.value && (C.value = t, wn.value && (wn.value.value = String(t)), x.immediate ? M("update:start", Number(t)) : E.value && Ft(t));
424
- }
425
- }), A = d({
426
- get: () => w.value,
427
- set(e) {
428
- let t = Math.max(e, C.value + 1);
429
- t !== w.value && (w.value = t, Tn.value && (Tn.value.value = String(t)), x.immediate ? M("update:end", Number(t)) : E.value && It(t));
430
- }
431
- });
432
- function j() {
433
- clearTimeout(null), x.immediate || (M("update:start", Number(C.value)), M("update:end", Number(w.value))), E.value = !1;
434
- }
435
- let Lt = d(() => x.refreshEndPoint === null ? x.max : x.refreshEndPoint), M = Dt, Rt = d(() => {
436
- if (D.value) {
437
- let e = Math.max(1, R.value - 1);
438
- return _n.value / e * 100;
439
- }
440
- let e = Math.max(1, x.max - x.min);
441
- return (C.value - x.min) / e * 100;
442
- }), zt = d(() => {
443
- if (D.value) {
444
- let e = Math.max(1, R.value - 1);
445
- return vn.value / e * 100;
446
- }
447
- let e = Math.max(1, x.max - x.min);
448
- return (w.value - x.min) / e * 100;
449
- }), Bt = d(() => (Rt.value + zt.value) / 2), Vt = d(() => {
450
- if (!S.value) return !1;
451
- let e = Math.max(1, x.max - x.min);
452
- return S.value.getBoundingClientRect().width * ((C.value - x.min) / e) - er.value / 2 < 0;
453
- }), Ht = d(() => {
454
- if (!S.value) return !1;
455
- let e = Math.max(1, x.max - x.min), t = S.value.getBoundingClientRect().width;
456
- return t * ((w.value - x.min) / e) + tr.value / 2 > t;
457
- }), N = d(() => {
458
- let e = Ht.value ? `calc(${Bt.value}% - ${sr.value.width}px)` : Vt.value ? `calc(${Bt.value}% - 8px)` : `calc(${Bt.value}% - ${sr.value.width / 2}px)`;
459
- return {
460
- left: `${Rt.value}%`,
461
- width: `${Math.max(0, zt.value - Rt.value)}%`,
462
- background: x.selectColor,
463
- tooltipLeft: `calc(${Rt.value}% - ${Vt.value ? 9 : er.value / 2}px)`,
464
- tooltipRight: `calc(${zt.value}% - ${Ht.value ? tr.value - 9 : tr.value / 2}px)`,
465
- tooltipCenter: e,
466
- arrowLeft: !Vt.value,
467
- arrowRight: !Ht.value
468
- };
469
- }), Ut = d(() => x.inputColor), Wt = d(() => x.background), Gt = d(() => `${x.selectColor}33`), P = d(() => x.borderColor), Kt = d(() => Number(x.max) > Number(x.min));
470
- function qt() {
471
- M("reset");
472
- }
473
- b(() => x.min, (e) => {
474
- Number(C.value) < Number(e) && (C.value = Number(e)), Number(w.value) < Number(e) && (w.value = Number(e));
475
- }), b(() => x.max, (e) => {
476
- Number(C.value) > Number(e) && (C.value = Number(e)), Number(w.value) > Number(e) && (w.value = Number(e));
477
- });
478
- let F = v(null), I = v({
479
- width: 1,
480
- height: 1
481
- }), L = v(null);
482
- ue(() => {
483
- if (T.value) {
484
- let e = c(() => {
485
- if (!F.value) return;
486
- let { width: e, height: t } = l({ chart: F.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
487
- (n !== I.value.width || r !== I.value.height) && (I.value.width = n, I.value.height = r + x.additionalMinimapHeight);
488
- }, 0);
489
- L.value = new ResizeObserver(e), L.value.observe(F.value);
490
- }
491
- }), le(() => {
492
- L.value && L.value.disconnect();
493
- });
494
- let R = d(() => Math.max(1, x.max - x.min));
495
- function Jt(e) {
496
- let t = Math.floor(e - x.min);
497
- return Math.min(Math.max(0, t), R.value);
498
- }
499
- function Yt(e) {
500
- let t = Math.ceil(e - x.min);
501
- return Math.min(Math.max(0, t), R.value);
502
- }
503
- let z = d(() => Jt(C.value)), B = d(() => Yt(w.value)), Xt = d(() => Math.max(...x.allMinimaps.map((e) => e.series.length))), Zt = d(() => T.value && x.minimapCompact ? 40 : 0), Qt = d(() => Zt.value / 2);
504
- d(() => Math.max(1, I.value.width - Qt.value * 2));
505
- let V = d(() => {
506
- let e = Math.max(1, Xt.value - +!!x.minimapCompact);
507
- return I.value.width / e;
508
- }), $t = d(() => x.allMinimaps.length ? x.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), en = d(() => V.value / ($t.value || 1) * .8);
509
- function tn(e, t, n) {
510
- let r = en.value, i = Math.max(1, $t.value), a = Xt.value - 1;
511
- return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
512
- }
513
- function nn(e, t) {
514
- return [0, Xt.value - 1].includes(t) ? en.value / 2 : en.value;
515
- }
516
- let rn = d(() => {
517
- let e = [];
518
- if (Array.isArray(x.minimap) && x.minimap.length && x.minimapMerged && e.push(...x.minimap.filter(Number.isFinite)), Array.isArray(x.allMinimaps) && x.allMinimaps.length) for (let t of x.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.filter(Number.isFinite));
519
- return e.length ? {
520
- min: Math.min(...e),
521
- max: Math.max(...e)
522
- } : {
523
- min: 0,
524
- max: 1
525
- };
526
- }), an = d(() => {
527
- if (x.minScale == null && x.forceZeroCenter) return null;
528
- let e = Number(x.minScale);
529
- return Number.isFinite(e) ? e : null;
530
- }), on = d(() => {
531
- if (x.maxScale == null && x.forceZeroCenter) return null;
532
- let e = Number(x.maxScale);
533
- return Number.isFinite(e) ? e : null;
534
- }), sn = d(() => an.value !== null && on.value !== null), cn = d(() => {
535
- let { min: e, max: t } = rn.value, n = an.value, r = on.value, i, a;
536
- return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
537
- min: i,
538
- max: a
539
- };
540
- }), ln = d(() => cn.value.min), un = d(() => cn.value.max), dn = d(() => ln.value < 0 && un.value > 0 || un.value <= 0 ? ln.value : 0), fn = (e) => {
541
- let t = Math.max(1, I.value.height);
542
- return mn(ln.value, un.value, t, sn.value)(e);
543
- }, pn = d(() => fn(0));
544
- function mn(e, t, n, r = !1) {
545
- let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
546
- if (r) return (t) => n - (t - e) / o * n;
547
- if (t <= 0) {
548
- let t = Math.max(a, 0 - e);
549
- return (r) => n - (r - e) / t * n;
550
- } else if (e >= 0) {
551
- let e = Math.max(a, t - 0);
552
- return (t) => n - (t - 0) / e * n;
553
- } else {
554
- let r = Math.max(a, Math.max(Math.abs(e), Math.abs(t)));
555
- return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
556
- }
557
- }
558
- function hn(e, n = !1, ee = !1) {
559
- if (!e || !e.length) return {
560
- fullSet: "",
561
- points: [],
562
- selectionSet: "",
563
- sliced: [],
564
- firstPlot: null,
565
- lastPlot: null,
566
- hasFull: !1,
567
- hasSelection: !1,
568
- fullMarkers: [],
569
- selectionMarkers: [],
570
- dashed: !1
571
- };
572
- let te = Math.max(1, I.value.height), ne = mn(ln.value, un.value, te, sn.value), s = e.length, c = Math.min(Math.max(0, z.value), Math.max(0, s - 1)), re = Math.min(s, Math.max(c + 1, B.value)), l = e.map((e, t) => {
573
- let n = e, r = Number.isFinite(n), i = V.value * t + (x.minimapCompact ? 0 : V.value / 2), a = ne(sn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, ln.value, un.value) : 0);
574
- return {
575
- x: i,
576
- y: r ? ne(n) : NaN,
577
- v: n,
578
- value: n == null ? null : r ? n : null,
579
- y0: a,
580
- i: t
581
- };
582
- }), ie = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value), u = l.filter((e) => Number.isFinite(e.value) && !ie(e.i - 1) && !ie(e.i + 1)), d = u.filter((e) => e.i >= c && e.i < re), f = l.slice(c, re);
583
- return {
584
- fullSet: l.length >= 2 ? ee ? t(x.cutNullValues ? l : l.filter((e) => e.value != null)) : x.smoothMinimap || n ? x.cutNullValues ? a(l) : o(l.filter((e) => e.value != null)) : x.cutNullValues ? i(l) : r(l.filter((e) => e.value != null)) : "",
585
- points: l,
586
- selectionSet: f.length >= 2 ? ee ? t(x.cutNullValues ? f : f.filter((e) => e.value != null)) : x.smoothMinimap || n ? x.cutNullValues ? a(f) : o(f.filter((e) => e.value != null)) : x.cutNullValues ? i(f) : r(f.filter((e) => e.value != null)) : "",
587
- sliced: f,
588
- firstPlot: l[c] || null,
589
- lastPlot: l[Math.max(0, re - 1)] || null,
590
- hasFull: l.length >= 2,
591
- hasSelection: f.length >= 2,
592
- fullMarkers: u,
593
- selectionMarkers: d
594
- };
595
- }
596
- let H = d(() => x.minimap.length ? hn(x.minimap) : []), U = d(() => x.allMinimaps.length ? x.allMinimaps.map((e, t) => {
597
- let n = hn(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
598
- return {
599
- key: typeof r == "object" ? JSON.stringify(r) : String(r),
600
- color: e?.color,
601
- ...n,
602
- temperatureColors: e?.temperatureColors ?? null,
603
- isVisible: e.isVisible,
604
- type: e.type || void 0,
605
- dashed: e.dashed ?? !1,
606
- useStepper: !!e.useStepper
607
- };
608
- }) : []), W = d(() => {
609
- let e = z.value, t = Math.max(e + 1, B.value);
610
- return {
611
- x: V.value * e + (x.minimapCompact ? 0 : V.value / 2),
612
- width: V.value * (t - e) - V.value
613
- };
614
- }), G = v(x.minimapSelectedIndex), gn = (e) => Math.round(x.min + e), _n = d({
615
- get() {
616
- return D.value ? z.value : Number(k.value);
617
- },
618
- set(e) {
619
- if (D.value) On(gn(Math.round(+e || 0)));
620
- else {
621
- let t = Math.round(+e || 0), n = Number(w.value) - 1, r = Math.min(Math.max(x.min, t), n);
622
- wn.value && (wn.value.valueAsNumber = r), On(r);
623
- }
624
- }
625
- }), vn = d({
626
- get() {
627
- return D.value ? Math.max(z.value, B.value - 1) : Number(A.value);
628
- },
629
- set(e) {
630
- if (D.value) An(gn(Math.round(+e || 0) + 1));
631
- else {
632
- let t = Math.round(+e || 0), n = Number(C.value) + 1, r = Math.max(n, Math.min(t, x.max));
633
- Tn.value && (Tn.value.valueAsNumber = r), An(r);
634
- }
635
- }
636
- });
637
- function yn(e) {
638
- G.value = Jt(x.valueStart) + e;
639
- }
640
- let bn = re(yn, 60);
641
- b(() => x.minimapSelectedIndex, (e, t) => {
642
- if ([null, void 0].includes(e)) {
643
- G.value = null;
644
- return;
645
- }
646
- e !== t && bn(e);
647
- }, { immediate: !0 });
648
- function xn(e) {
649
- G.value = e;
650
- let t = z.value, n = B.value;
651
- e >= t && e < n && !X.value && M("trapMouse", e - t);
652
- }
653
- function Sn(e) {
654
- Kt.value && xn(wr(Cr(e.clientX)));
655
- }
656
- function Cn() {
657
- G.value = null, M("trapMouse", null);
658
- }
659
- let wn = v(null), Tn = v(null);
660
- function En(e) {
661
- if (typeof e == "object" && e && "target" in e) {
662
- let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
663
- return Number.isFinite(n) ? n : NaN;
664
- }
665
- let t = +e;
666
- return Number.isFinite(t) ? t : NaN;
667
- }
668
- let Dn = 0;
669
- function On(e) {
670
- E.value = !0;
671
- let t = En(e);
672
- Number.isFinite(t) && (cancelAnimationFrame(Dn), Dn = requestAnimationFrame(() => {
673
- k.value = t;
674
- }));
675
- }
676
- let kn = 0;
677
- function An(e) {
678
- E.value = !0;
679
- let t = En(e);
680
- Number.isFinite(t) && (cancelAnimationFrame(kn), kn = requestAnimationFrame(() => {
681
- A.value = t;
682
- }));
683
- }
684
- le(() => {
685
- cancelAnimationFrame(Dn), cancelAnimationFrame(kn);
686
- });
687
- let jn = d(() => x.valueEnd - x.valueStart), Mn = d(() => jn.value < x.max - x.min), Nn = v(!1), Pn = v(null), Fn = d(() => (Pt.value - 48) / (x.max - x.min) * jn.value), In = d(() => Math.max(1, Pt.value - Tt - Fn.value)), Ln = d(() => Math.max(1, x.max - x.min - jn.value)), Rn = d(() => Ln.value / In.value), zn = v(0), Bn = v(0), Vn = v(0), Hn = v(0), K = null, q = null, J = null, Y = null, Un = v(x.min);
688
- function Wn(e) {
689
- if (!S.value) return x.min;
690
- let t = S.value.getBoundingClientRect(), n = t.left + Tt / 2, r = t.right - Tt / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, x.max - x.min);
691
- return Math.round(x.min + a * o);
692
- }
693
- let Gn = async (t) => {
694
- if (E.value = !0, Z.value = !0, !x.enableSelectionDrag) return;
695
- let n = t.type === "touchstart";
696
- n || t.stopPropagation();
697
- let r = n && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, i = n ? r ? r.target : null : t.target;
698
- if (!i || !(i instanceof Element) || i.classList?.contains("range-handle") || i.classList?.contains("vue-ui-zoom-compact-minimap-handle") || i.closest(".vue-ui-zoom-compact-minimap-handle")) return;
699
- Nn.value = !0;
700
- let a = n ? r ? r.clientX : 0 : t.clientX;
701
- if (Pn.value = a, zn.value = a, x.focusOnDrag && !Mn.value && S.value) {
702
- Un.value = Wn(a);
703
- let t = Math.min(.95, Math.max(.05, x.focusRangeRatio)), n = x.max - x.min, r = Math.max(1, Math.round(n * t)), i = Math.floor(r / 2), o = Un.value - i;
704
- o = Math.max(x.min, Math.min(o, x.max - r));
705
- let ee = Math.min(x.max, o + r);
706
- k.value = o, A.value = ee, Ft(o), It(ee), e(S.value, "mouseup"), await se(), e(S.value, "mousedown", { clientX: a });
707
- }
708
- Bn.value = C.value, Vn.value = w.value, Hn.value = Rn.value, K = n ? "touchmove" : "mousemove", q = n ? "touchend" : "mouseup", J = n ? qn : Kn, Y = n ? Xn : Yn, window.addEventListener(K, J, { passive: !1 }), window.addEventListener(q, Y);
709
- };
710
- function Kn(e) {
711
- Nn.value && Jn(e.clientX);
712
- }
713
- function qn(e) {
714
- if (!Nn.value || !S.value) return;
715
- let t = e.target;
716
- if (!(t instanceof Element) || !S.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
717
- e.preventDefault();
718
- let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
719
- n && Jn(n.clientX);
720
- }
721
- function Jn(e) {
722
- if (!Nn.value) return;
723
- let t = Wn(zn.value), n = Wn(e) - t, r = Math.round(Bn.value + n);
724
- r = Math.max(x.min, Math.min(r, x.max - jn.value));
725
- let i = r + jn.value;
726
- k.value = r, A.value = i, Ft(r), It(i);
727
- }
728
- function Yn() {
729
- Zn();
730
- }
731
- function Xn() {
732
- Zn();
733
- }
734
- function Zn() {
735
- Nn.value = !1, K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, j();
736
- }
737
- let X = v(!1), Qn = v(null), $n = v(null), er = v(1), tr = v(1), Z = v(!1);
738
- function nr() {
739
- if (Qn.value) {
740
- let e = Math.round(Qn.value.getBoundingClientRect().width);
741
- e !== er.value && (er.value = e);
742
- }
743
- }
744
- function rr() {
745
- if ($n.value) {
746
- let e = Math.round($n.value.getBoundingClientRect().width);
747
- e !== tr.value && (tr.value = e);
748
- }
749
- }
750
- de(() => {
751
- nr(), rr();
752
- });
753
- let ir = v(0);
754
- function ar(e) {
755
- ir.value = +(e === "start");
756
- }
757
- let or = v(!1), sr = v({
758
- width: 0,
759
- left: 0
760
- });
761
- b([C, w], async () => {
762
- if (await se(), !Qn.value || !$n.value) {
763
- or.value = !1, sr.value = {
764
- width: 0,
765
- left: 0
766
- };
767
- return;
768
- }
769
- let e = Qn.value.getBoundingClientRect(), t = $n.value.getBoundingClientRect();
770
- or.value = e.x + e.width > t.x;
771
- let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
772
- sr.value = {
773
- width: i,
774
- left: (n + r) / 2 - i / 2
775
- };
776
- }), de(() => {
777
- nr(), rr();
778
- }), b(() => x.labelLeft, () => {
779
- se(nr);
780
- }, { deep: !0 }), b(() => x.labelRight, () => {
781
- se(rr);
782
- }, { deep: !0 });
783
- let Q = d(() => {
784
- let e = "", t = "", n = !1;
785
- if (ee(x.customFormat)) try {
786
- let r = x.customFormat({
787
- absoluteIndex: C.value,
788
- seriesIndex: C.value,
789
- datapoint: x.selectedSeries,
790
- timeLabel: x.preciseLabels[C.value],
791
- side: "left"
792
- }), i = x.customFormat({
793
- absoluteIndex: w.value - 1,
794
- seriesIndex: -1,
795
- datapoint: x.selectedSeries,
796
- timeLabel: x.preciseLabels[w.value - 1],
797
- side: "right"
798
- });
799
- typeof r == "string" && typeof i == "string" && (e = r, t = i, n = !0);
800
- } catch {
801
- n = !1;
802
- }
803
- if (!n) {
804
- let n = x.usePreciseLabels ? x.preciseLabels.find((e) => e.absoluteIndex === C.value) : x.timeLabels.find((e) => e.absoluteIndex === C.value), r = x.usePreciseLabels ? x.preciseLabels.find((e) => e.absoluteIndex === w.value - 1) : x.timeLabels.find((e) => e.absoluteIndex === w.value - 1);
805
- e = n ? n.text : "", t = r ? r.text : "";
806
- }
807
- return {
808
- left: e,
809
- right: t
810
- };
811
- });
812
- le(() => {
813
- L.value && L.value.disconnect(), K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, clearTimeout(null);
814
- });
815
- let cr = d(() => {
816
- if (!Kt.value) return null;
817
- if (G.value >= z.value && G.value < B.value) {
818
- let e = G.value, t = V.value * e + (x.minimapCompact ? 0 : V.value / 2);
819
- return {
820
- x1: t,
821
- x2: t,
822
- y1: 0,
823
- y2: Math.max(I.value.height, 0),
824
- stroke: x.minimapIndicatorColor,
825
- "stroke-linecap": "round",
826
- "stroke-dasharray": 2,
827
- "stroke-width": 1
828
- };
829
- }
830
- return null;
831
- }), lr = d(() => Number(C.value) < Number(w.value) - 1), ur = d(() => Number(C.value) > Number(x.min)), dr = d(() => Number(w.value) < Number(x.max)), fr = d(() => Number(w.value) > Number(C.value) + 1);
832
- function pr(e) {
833
- let t = Number(C.value) + e;
834
- e > 0 && !lr.value || e < 0 && !ur.value || (E.value = !0, k.value = t, j());
835
- }
836
- function mr(e) {
837
- let t = Number(w.value) + e;
838
- e > 0 && !dr.value || e < 0 && !fr.value || (E.value = !0, A.value = t, j());
839
- }
840
- let hr = {
841
- plus: () => pr(1),
842
- minus: () => pr(-1),
843
- canPlus: lr,
844
- canMinus: ur
845
- }, gr = {
846
- plus: () => mr(1),
847
- minus: () => mr(-1),
848
- canPlus: dr,
849
- canMinus: fr
850
- };
851
- function _r(e) {
852
- if (!e || vr(e.target)) return;
853
- let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
854
- !n && !r || (e.preventDefault(), e.stopPropagation(), r ? (hr.plus(), gr.plus()) : (hr.minus(), gr.minus()));
855
- }
856
- function vr(e) {
857
- return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
858
- }
859
- function yr(e) {
860
- if (!T.value || !x.minimapCompact) return;
861
- let t = S.value;
862
- if (!t) return;
863
- let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
864
- r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
865
- }
866
- function br(e, t) {
867
- if (!t || vr(t.target)) return;
868
- let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
869
- !r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? hr.plus() : hr.minus() : i ? gr.plus() : gr.minus(), se(() => yr(e)));
870
- }
871
- let xr = d(() => ({
872
- tabindex: 0,
873
- role: "slider",
874
- "aria-label": "Range start",
875
- "aria-valuemin": Number(x.min),
876
- "aria-valuemax": Math.max(Number(x.min), Number(w.value) - 1),
877
- "aria-valuenow": Number(C.value)
878
- })), Sr = d(() => ({
879
- tabindex: 0,
880
- role: "slider",
881
- "aria-label": "Range end",
882
- "aria-valuemin": Math.min(Number(x.max), Number(C.value) + 1),
883
- "aria-valuemax": Number(x.max),
884
- "aria-valuenow": Number(w.value)
885
- }));
886
- function Cr(e) {
887
- if (!Mt.value) return 0;
888
- let t = Mt.value.getBoundingClientRect();
889
- return t.width ? (e - t.left) / t.width * I.value.width : 0;
890
- }
891
- function wr(e) {
892
- let t = (e - (x.minimapCompact ? 0 : V.value / 2)) / Math.max(1, V.value);
893
- return Math.max(0, Math.min(Math.max(0, R.value - 1), Math.round(t)));
894
- }
895
- function Tr(e) {
896
- let t = wr(e);
897
- if (O.value === "start") {
898
- let e = Math.min(x.min + t, Number(w.value) - 1);
899
- k.value = e, Ft(e);
900
- return;
901
- }
902
- if (O.value === "end") {
903
- let e = Math.max(Number(C.value) + 1, x.min + t + 1), n = Math.min(x.max, e);
904
- A.value = n, It(n);
905
- }
906
- }
907
- function Er(e) {
908
- if (!O.value || !F.value) return;
909
- let t = e.clientX - At.value;
910
- if (!kt.value) {
911
- if (Math.abs(t) < 4) return;
912
- kt.value = !0, E.value = !0, Z.value = !0;
913
- }
914
- let n = Cr(e.clientX) - jt.value;
915
- Tr(O.value === "start" ? n + Nt.value : n);
916
- }
917
- function Dr() {
918
- if (!O.value) return;
919
- window.removeEventListener("mousemove", Er, !0), window.removeEventListener("mouseup", Dr, !0);
920
- let e = kt.value;
921
- O.value = null, kt.value = !1, At.value = 0, jt.value = 0, e && j();
922
- }
923
- function Or(e, t) {
924
- if (!T.value || !x.minimapCompact || !F.value) return;
925
- t.preventDefault(), t.stopPropagation();
926
- let n = Cr(t.clientX), r = e === "start" ? W.value.x - Nt.value : W.value.x + W.value.width;
927
- O.value = e, kt.value = !1, At.value = t.clientX, jt.value = n - r, window.addEventListener("mousemove", Er, !0), window.addEventListener("mouseup", Dr, !0);
928
- }
929
- let kr = d(() => z.value), Ar = d(() => Math.max(z.value, B.value - 1));
930
- d(() => {
931
- if (!T.value || !x.minimapCompact || !x.allMinimaps.length) return [];
932
- let e = kr.value, t = Ar.value;
933
- return U.value.flatMap((n) => {
934
- if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
935
- let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
936
- return i && r.push({
937
- key: `${n.key}-left-${i.i}`,
938
- x: i.x,
939
- y: i.y,
940
- color: n.color
941
- }), a && t !== e && r.push({
942
- key: `${n.key}-right-${a.i}`,
943
- x: a.x,
944
- y: a.y,
945
- color: n.color
946
- }), r;
947
- });
948
- });
949
- let $ = d(() => Math.min(40, Math.max(20, x.handleWidth))), jr = d(() => W.value.x - $.value), Mr = d(() => W.value.x + W.value.width);
950
- return Et({
951
- setStartValue: On,
952
- setEndValue: An
953
- }), (e, t) => (_(), p("div", {
954
- "data-minimap": T.value,
955
- "data-dom-to-png-ignore": "",
956
- style: g([{ padding: "0 48px" }, {
957
- maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
958
- margin: s.maxWidth ? "0 auto" : void 0
959
- }]),
960
- class: "vue-data-ui-zoom",
961
- ref_key: "zoomWrapper",
962
- ref: S,
963
- onMousedown: Gn,
964
- onTouchstart: Gn
965
- }, [m("div", xe, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Lt.value ? (_(), p("div", Se, [fe(e.$slots, "reset-action", { reset: qt }, () => [m("button", {
966
- tabindex: "0",
967
- role: "button",
968
- class: "vue-data-ui-refresh-button",
969
- style: g({
970
- top: T.value ? "36px" : "-16px",
971
- cursor: s.isCursorPointer ? "pointer" : "default"
972
- }),
973
- onClick: qt
974
- }, [ae(ie, {
975
- name: "refresh",
976
- stroke: s.textColor
977
- }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0)]), m("div", {
978
- class: "double-range-slider",
979
- ref_key: "minimapWrapper",
980
- ref: F,
981
- style: g([{ "z-index": "0" }, T.value ? {
982
- "--minimap-unit-px": V.value + "px",
983
- "--minimap-offset-px": (s.minimapCompact ? 0 : V.value / 2) + "px"
984
- } : void 0]),
985
- onMouseenter: t[18] ||= (e) => Z.value = !0,
986
- onMouseleave: t[19] ||= (e) => Z.value = !1
987
- }, [
988
- T.value ? (_(), p("div", Ce, [(_(), p("svg", {
989
- ref_key: "minimapSvg",
990
- ref: Mt,
991
- key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
992
- xmlns: me(ne),
993
- viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height)}`,
994
- preserveAspectRatio: "none"
995
- }, [
996
- m("defs", null, [m("linearGradient", {
997
- id: Ot.value,
998
- x1: "0%",
999
- y1: "0%",
1000
- x2: "0%",
1001
- y2: "100%"
1002
- }, [m("stop", {
1003
- offset: "0%",
1004
- "stop-color": `${s.minimapLineColor}50`
1005
- }, null, 8, Ee), t[20] ||= m("stop", {
1006
- offset: "100%",
1007
- "stop-color": "transparent"
1008
- }, null, -1)], 8, Te)]),
1009
- s.minimapCompact ? (_(), p("rect", {
1010
- key: 0,
1011
- class: "vue-ui-zoom-minimap-frame",
1012
- x: 0,
1013
- y: 0,
1014
- width: I.value.width,
1015
- height: I.value.height,
1016
- fill: "none",
1017
- stroke: s.minimapFrameColor,
1018
- rx: 3
1019
- }, null, 8, De)) : f("", !0),
1020
- e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 1 }, [s.minimapMerged ? (_(), p("path", {
1021
- key: 0,
1022
- d: `M${H.value.fullSet}`,
1023
- stroke: `${s.minimapLineColor}`,
1024
- fill: "none",
1025
- "stroke-width": "1",
1026
- "stroke-linecap": "round",
1027
- "stroke-linejoin": "round",
1028
- style: { opacity: "0.6" }
1029
- }, null, 8, Oe)) : f("", !0), s.minimapMerged && !s.minimapCompact ? (_(), p("path", {
1030
- key: 1,
1031
- d: `M${V.value / 2},${Math.max(I.value.height, 0)} ${H.value.fullSet} L${I.value.width - V.value / 2},${Math.max(I.value.height, 0)}Z`,
1032
- fill: `url(#${Ot.value})`,
1033
- stroke: "none",
1034
- style: { opacity: "0.6" }
1035
- }, null, 8, ke)) : s.minimapMerged ? f("", !0) : (_(), p(u, { key: 2 }, [
1036
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
1037
- key: 0,
1038
- x: tn(n.x, t, r),
1039
- y: n.v >= 0 ? n.y : n.y0,
1040
- width: nn(t, r),
1041
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
1042
- fill: e.color,
1043
- style: { opacity: .6 }
1044
- }, null, 8, Ae)) : f("", !0)], 64))), 256))]))), 256)),
1045
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e) => (_(), p("g", null, [e.isVisible ? (_(), p("path", {
1046
- key: 0,
1047
- d: `M ${e.fullSet}`,
1048
- fill: "none",
1049
- stroke: e.color,
1050
- style: { opacity: "0.6" },
1051
- "stroke-dasharray": e.dashed ? "2 4" : 0
1052
- }, null, 8, je)) : f("", !0), e.isVisible && s.cutNullValues ? (_(!0), p(u, { key: 1 }, y(e.fullMarkers, (t) => (_(), p("circle", {
1053
- key: `sel-dot-under-${e.key}-${t.i}`,
1054
- cx: t.x,
1055
- cy: t.y,
1056
- r: "2",
1057
- fill: e.color,
1058
- stroke: P.value,
1059
- "stroke-width": "0.5",
1060
- style: { opacity: "0.6" }
1061
- }, null, 8, Me))), 128)) : f("", !0)]))), 256)),
1062
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && t.value !== null ? (_(), p("circle", {
1063
- key: `sel-plot-under-${e.key}-${t.i}`,
1064
- cx: t.x,
1065
- cy: t.y,
1066
- r: "2",
1067
- fill: e.color,
1068
- stroke: P.value,
1069
- "stroke-width": "0.5",
1070
- style: { opacity: "0.6" }
1071
- }, null, 8, Ne)) : f("", !0)]))), 256))]))), 256))
1072
- ], 64))], 64)),
1073
- m("rect", {
1074
- x: W.value.x,
1075
- y: 0,
1076
- width: Math.max(0, W.value.width),
1077
- height: Math.max(I.value.height, 0),
1078
- fill: P.value,
1079
- rx: s.minimapSelectionRadius,
1080
- stroke: "none"
1081
- }, null, 8, Pe),
1082
- m("rect", {
1083
- x: W.value.x,
1084
- y: 0,
1085
- width: W.value.width < 0 ? 0 : W.value.width,
1086
- height: Math.max(I.value.height, 0),
1087
- rx: s.minimapSelectionRadius,
1088
- fill: P.value,
1089
- style: g({ opacity: Nn.value || E.value ? 0 : 1 })
1090
- }, null, 12, Fe),
1091
- m("rect", {
1092
- x: W.value.x,
1093
- y: 0,
1094
- width: W.value.width < 0 ? 0 : W.value.width,
1095
- height: Math.max(I.value.height, 0),
1096
- fill: s.minimapSelectedColor,
1097
- rx: s.minimapSelectionRadius,
1098
- style: g({ opacity: s.minimapSelectedColorOpacity }),
1099
- tabindex: "0",
1100
- role: "slider",
1101
- "aria-label": "Selected range",
1102
- "aria-valuemin": Number(x.min),
1103
- "aria-valuemax": Number(x.max),
1104
- "aria-valuenow": Number(C.value),
1105
- "aria-valuetext": Q.value.left && Q.value.right ? `${Q.value.left} – ${Q.value.right}` : void 0,
1106
- onKeydown: _r
1107
- }, null, 44, Ie),
1108
- !s.minimapMerged && dn.value < 0 ? (_(), p("line", {
1109
- key: 2,
1110
- class: "slicer-minimap-zero-line",
1111
- x1: 0,
1112
- x2: I.value.width,
1113
- y1: pn.value,
1114
- y2: pn.value,
1115
- stroke: s.minimapFrameColor,
1116
- "stroke-width": "0.5"
1117
- }, null, 8, Le)) : f("", !0),
1118
- e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 3 }, [s.minimapMerged ? (_(), p("g", Re, [
1119
- H.value && H.value.sliced && H.value.sliced.length ? (_(), p(u, { key: 0 }, [H.value.selectionSet ? (_(), p("path", {
1120
- key: 0,
1121
- d: `M${H.value.sliced[0].x},${Math.max(I.value.height, 0)} ${H.value.selectionSet} L${H.value.sliced[H.value.sliced.length - 1].x},${Math.max(I.value.height, 0)}Z`,
1122
- fill: `url(#${Ot.value})`,
1123
- stroke: "none",
1124
- style: { opacity: "1" }
1125
- }, null, 8, ze)) : f("", !0), H.value.selectionSet ? (_(), p("path", {
1126
- key: 1,
1127
- d: `M ${H.value.selectionSet}`,
1128
- stroke: `${s.minimapLineColor}`,
1129
- fill: "transparent",
1130
- "stroke-width": "2",
1131
- "stroke-linecap": "round",
1132
- "stroke-linejoin": "round"
1133
- }, null, 8, Be)) : f("", !0)], 64)) : f("", !0),
1134
- H.value && H.value.firstPlot ? (_(), p("circle", {
1135
- key: 1,
1136
- cx: H.value.firstPlot.x,
1137
- cy: H.value.firstPlot.y,
1138
- "stroke-width": "0.5",
1139
- stroke: P.value,
1140
- r: "3",
1141
- fill: s.minimapLineColor
1142
- }, null, 8, Ve)) : f("", !0),
1143
- H.value && H.value.lastPlot ? (_(), p("circle", {
1144
- key: 2,
1145
- cx: H.value.lastPlot.x,
1146
- cy: H.value.lastPlot.y,
1147
- "stroke-width": "0.5",
1148
- stroke: P.value,
1149
- r: "3",
1150
- fill: s.minimapLineColor
1151
- }, null, 8, He)) : f("", !0)
1152
- ])) : (_(), p("g", Ue, [
1153
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
1154
- key: 0,
1155
- x: tn(n.x, t, r),
1156
- y: n.v >= 0 ? n.y : n.y0,
1157
- width: nn(t, r),
1158
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
1159
- fill: e.color,
1160
- style: g({ opacity: +(r >= k.value && r < A.value) })
1161
- }, null, 12, We)) : f("", !0)], 64))), 256))]))), 256)),
1162
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), p("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
1163
- key: 0,
1164
- d: `M ${e.selectionSet}`,
1165
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
1166
- fill: "transparent",
1167
- "stroke-width": "2",
1168
- "stroke-linecap": "round",
1169
- "stroke-linejoin": "round",
1170
- "stroke-dasharray": e.dashed ? "2 4" : 0
1171
- }, null, 8, Ge)) : f("", !0)]))), 128)),
1172
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", { key: String(e.key) }, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && t.value !== null ? (_(), p("circle", {
1173
- key: 0,
1174
- cx: t.x,
1175
- cy: t.y,
1176
- r: "2",
1177
- fill: e.color,
1178
- stroke: P.value,
1179
- "stroke-width": "0.5",
1180
- style: { opacity: "0.6" }
1181
- }, null, 8, Ke)) : f("", !0)]))), 256))]))), 128))
1182
- ]))], 64)),
1183
- e.$slots.slotMap ? fe(e.$slots, "slotMap", ce(oe({ key: 4 }, {
1184
- width: Math.max(0, I.value.width),
1185
- height: Math.max(0, I.value.height),
1186
- zeroY: pn.value,
1187
- unitW: Math.max(0, V.value)
1188
- })), void 0, !0) : f("", !0),
1189
- G.value !== null && !X.value ? (_(), p("line", ce(oe({ key: 5 }, cr.value)), null, 16)) : f("", !0),
1190
- m("rect", {
1191
- x: 0,
1192
- y: 0,
1193
- width: Math.max(0, I.value.width),
1194
- height: Math.max(0, I.value.height),
1195
- fill: "transparent",
1196
- style: g([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
1197
- onMousedown: t[0] ||= (e) => X.value = !0,
1198
- onMouseup: t[1] ||= (e) => X.value = !1,
1199
- onMousemove: Sn,
1200
- onMouseleave: Cn
1201
- }, null, 44, qe),
1202
- T.value && s.minimapCompact ? (_(), p(u, { key: 6 }, [
1203
- m("rect", {
1204
- class: "vue-ui-zoom-compact-minimap-handle",
1205
- x: jr.value,
1206
- y: 0,
1207
- width: $.value,
1208
- height: I.value.height,
1209
- fill: s.handleFill || P.value,
1210
- stroke: s.handleBorderColor || s.textColor,
1211
- "stroke-width": s.handleBorderWidth,
1212
- rx: 3
1213
- }, null, 8, Je),
1214
- s.handleType && s.handleType !== "empty" ? (_(), p("g", {
1215
- key: 0,
1216
- class: "compact-handle-icon",
1217
- transform: `translate(${jr.value}, 0)`,
1218
- style: { "pointer-events": "none" }
1219
- }, [(_(), p("svg", {
1220
- width: $.value,
1221
- height: I.value.height,
1222
- viewBox: "0 0 20 20",
1223
- preserveAspectRatio: "xMidYMid meet"
1224
- }, [s.handleType === "arrow" ? (_(), p("path", {
1225
- key: 0,
1226
- d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
1227
- fill: P.value,
1228
- stroke: s.handleIconColor || s.textColor,
1229
- "stroke-width": .618,
1230
- "stroke-linejoin": "round",
1231
- "stroke-linecap": "round"
1232
- }, null, 8, Ze)) : s.handleType === "chevron" ? (_(), p("path", {
1233
- key: 1,
1234
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
1235
- fill: "none",
1236
- stroke: s.handleIconColor || s.textColor,
1237
- "stroke-width": .618,
1238
- "stroke-linejoin": "round",
1239
- "stroke-linecap": "round"
1240
- }, null, 8, Qe)) : s.handleType === "grab" ? (_(), p("path", {
1241
- key: 2,
1242
- d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
1243
- fill: s.handleIconColor || s.textColor,
1244
- stroke: "none",
1245
- opacity: "0.6"
1246
- }, null, 8, $e)) : f("", !0)], 8, Xe))], 8, Ye)) : f("", !0),
1247
- m("rect", {
1248
- class: "vue-ui-zoom-compact-minimap-handle",
1249
- x: Mr.value,
1250
- y: 0,
1251
- width: $.value,
1252
- height: I.value.height,
1253
- fill: s.handleFill || P.value,
1254
- stroke: s.handleBorderColor || s.textColor,
1255
- "stroke-width": s.handleBorderWidth,
1256
- rx: 3
1257
- }, null, 8, et),
1258
- s.handleType && s.handleType !== "empty" ? (_(), p("g", {
1259
- key: 1,
1260
- class: "compact-handle-icon",
1261
- transform: `translate(${Mr.value}, 0)`,
1262
- style: { "pointer-events": "none" }
1263
- }, [(_(), p("svg", {
1264
- width: $.value,
1265
- height: I.value.height,
1266
- viewBox: "0 0 20 20",
1267
- preserveAspectRatio: "xMidYMid meet"
1268
- }, [s.handleType === "arrow" ? (_(), p("path", {
1269
- key: 0,
1270
- d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
1271
- fill: P.value,
1272
- stroke: s.handleIconColor || s.textColor,
1273
- "stroke-width": .618,
1274
- "stroke-linejoin": "round",
1275
- "stroke-linecap": "round"
1276
- }, null, 8, rt)) : s.handleType === "chevron" ? (_(), p("path", {
1277
- key: 1,
1278
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
1279
- fill: "none",
1280
- stroke: s.handleIconColor || s.textColor,
1281
- "stroke-width": .618,
1282
- "stroke-linejoin": "round",
1283
- "stroke-linecap": "round"
1284
- }, null, 8, it)) : s.handleType === "grab" ? (_(), p("path", {
1285
- key: 2,
1286
- d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
1287
- fill: s.handleIconColor || s.textColor,
1288
- stroke: "none",
1289
- opacity: "0.6"
1290
- }, null, 8, at)) : f("", !0)], 8, nt))], 8, tt)) : f("", !0)
1291
- ], 64)) : f("", !0),
1292
- e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 7 }, [s.minimapMerged ? (_(), p("g", ot, [
1293
- H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), p("circle", {
1294
- key: 0,
1295
- cx: H.value.firstPlot.x,
1296
- cy: H.value.firstPlot.y,
1297
- "stroke-width": "0.5",
1298
- stroke: P.value,
1299
- r: "4",
1300
- fill: s.minimapLineColor
1301
- }, null, 8, st)) : f("", !0),
1302
- H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), p("circle", {
1303
- key: 1,
1304
- cx: H.value.firstPlot.x,
1305
- cy: H.value.firstPlot.y,
1306
- r: 2,
1307
- fill: P.value
1308
- }, null, 8, ct)) : f("", !0),
1309
- H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), p("circle", {
1310
- key: 2,
1311
- cx: H.value.lastPlot.x,
1312
- cy: H.value.lastPlot.y,
1313
- "stroke-width": "0.5",
1314
- stroke: P.value,
1315
- r: "4",
1316
- fill: s.minimapLineColor
1317
- }, null, 8, lt)) : f("", !0),
1318
- H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), p("circle", {
1319
- key: 3,
1320
- cx: H.value.lastPlot.x,
1321
- cy: H.value.lastPlot.y,
1322
- r: "2",
1323
- fill: P.value
1324
- }, null, 8, ut)) : f("", !0)
1325
- ])) : (_(), p("g", dt, [(_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), p("g", { key: String(e.key) }, [
1326
- e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
1327
- key: 0,
1328
- d: `M ${e.selectionSet}`,
1329
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
1330
- fill: "transparent",
1331
- "stroke-width": "2",
1332
- "stroke-linecap": "round",
1333
- "stroke-linejoin": "round",
1334
- "stroke-dasharray": e.dashed ? "2 4" : 0
1335
- }, null, 8, ft)) : f("", !0),
1336
- e.isVisible && s.cutNullValues ? (_(!0), p(u, { key: 1 }, y(e.selectionMarkers, (t) => (_(), p("circle", {
1337
- key: `sel-dot-${e.key}-${t.i}`,
1338
- cx: t.x,
1339
- cy: t.y,
1340
- r: "2.5",
1341
- fill: e.color,
1342
- stroke: P.value,
1343
- "stroke-width": "0.5"
1344
- }, null, 8, pt))), 128)) : f("", !0),
1345
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
1346
- key: 2,
1347
- cx: e.firstPlot.x,
1348
- cy: e.firstPlot.y,
1349
- "stroke-width": "0.5",
1350
- stroke: P.value,
1351
- r: "4",
1352
- fill: e.color
1353
- }, null, 8, mt)) : f("", !0),
1354
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
1355
- key: 3,
1356
- cx: e.firstPlot.x,
1357
- cy: e.firstPlot.y,
1358
- r: "2",
1359
- fill: P.value
1360
- }, null, 8, ht)) : f("", !0),
1361
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
1362
- key: 4,
1363
- cx: e.lastPlot.x,
1364
- cy: e.lastPlot.y,
1365
- "stroke-width": "0.5",
1366
- stroke: P.value,
1367
- r: "4",
1368
- fill: e.color
1369
- }, null, 8, gt)) : f("", !0),
1370
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
1371
- key: 5,
1372
- cx: e.lastPlot.x,
1373
- cy: e.lastPlot.y,
1374
- r: "2",
1375
- fill: P.value
1376
- }, null, 8, _t)) : f("", !0)
1377
- ]))), 128)), (_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", { key: String(e.key) }, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && s.cutNullValues && t.value !== null ? (_(), p("circle", {
1378
- key: `sel-plot-${e.key}-${t.i}`,
1379
- cx: t.x,
1380
- cy: t.y,
1381
- r: "2.5",
1382
- fill: e.color,
1383
- stroke: P.value,
1384
- "stroke-width": "0.5"
1385
- }, null, 8, vt)) : f("", !0)]))), 256))]))), 128))]))], 64))
1386
- ], 8, we))])) : f("", !0),
1387
- m("div", {
1388
- class: "slider-track",
1389
- style: g({ visibility: T.value && s.minimapCompact ? "hidden" : "visible" })
1390
- }, null, 4),
1391
- m("div", {
1392
- class: h({
1393
- "range-highlight": !0,
1394
- move: s.enableSelectionDrag
1395
- }),
1396
- onMousedown: t[2] ||= (e) => X.value = !0,
1397
- onMouseup: t[3] ||= (e) => X.value = !1,
1398
- style: g({
1399
- ...N.value,
1400
- cursor: X.value ? "grabbing" : "grab",
1401
- visibility: T.value && s.minimapCompact ? "hidden" : "visible"
1402
- })
1403
- }, null, 38),
1404
- s.enableRangeHandles ? _e((_(), p("input", {
1405
- key: 1,
1406
- "aria-label": "range-handle-left",
1407
- ref_key: "rangeStart",
1408
- ref: wn,
1409
- type: "range",
1410
- class: h({
1411
- "range-left": !0,
1412
- "range-handle": !0,
1413
- "range-minimap": T.value && s.verticalHandles,
1414
- "range-invisible": T.value && s.minimapCompact
1415
- }),
1416
- min: s.min,
1417
- max: s.minimapCompact && T.value ? Math.max(0, R.value - 1) : s.max,
1418
- tabindex: T.value ? -1 : 0,
1419
- "onUpdate:modelValue": t[4] ||= (e) => _n.value = e,
1420
- onFocus: t[5] ||= (e) => T.value && e.target.blur(),
1421
- onInput: t[6] ||= (e) => _n.value = e.target.valueAsNumber,
1422
- onChange: j,
1423
- onKeyup: ve(j, ["enter"]),
1424
- onBlur: j,
1425
- onMouseenter: t[7] ||= (e) => ar("start"),
1426
- onPointerup: j
1427
- }, null, 42, yt)), [[
1428
- ge,
1429
- _n.value,
1430
- void 0,
1431
- { number: !0 }
1432
- ]]) : f("", !0),
1433
- s.enableRangeHandles ? _e((_(), p("input", {
1434
- key: 2,
1435
- "aria-label": "range-handle-right",
1436
- ref_key: "rangeEnd",
1437
- ref: Tn,
1438
- type: "range",
1439
- class: h({
1440
- "range-right": !0,
1441
- "range-handle": !0,
1442
- "range-minimap": T.value && s.verticalHandles,
1443
- "range-invisible": T.value && s.minimapCompact
1444
- }),
1445
- min: s.min,
1446
- max: s.minimapCompact && T.value ? Math.max(0, R.value - 1) : s.max,
1447
- tabindex: T.value ? -1 : 0,
1448
- onFocus: t[8] ||= (e) => T.value && e.target.blur(),
1449
- "onUpdate:modelValue": t[9] ||= (e) => vn.value = e,
1450
- onInput: t[10] ||= (e) => vn.value = e.target.valueAsNumber,
1451
- onChange: j,
1452
- onKeyup: ve(j, ["enter"]),
1453
- onBlur: j,
1454
- onMouseenter: t[11] ||= (e) => ar("end"),
1455
- onPointerup: j
1456
- }, null, 42, bt)), [[
1457
- ge,
1458
- vn.value,
1459
- void 0,
1460
- { number: !0 }
1461
- ]]) : f("", !0),
1462
- T.value && s.minimapCompact ? (_(), p("div", xt, [(_(), p("svg", {
1463
- xmlns: me(ne),
1464
- viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height + 1)}`
1465
- }, [m("rect", oe({
1466
- class: "vue-ui-zoom-compact-minimap-handle",
1467
- x: jr.value,
1468
- y: 0,
1469
- width: $.value,
1470
- height: I.value.height,
1471
- fill: "transparent",
1472
- stroke: "none"
1473
- }, xr.value, {
1474
- onKeydown: t[12] ||= (e) => br("start", e),
1475
- onMousedown: t[13] ||= ye((e) => Or("start", e), ["stop", "prevent"]),
1476
- onClick: t[14] ||= ye(() => {}, ["stop", "prevent"])
1477
- }), null, 16, Ct), m("rect", oe({
1478
- class: "vue-ui-zoom-compact-minimap-handle",
1479
- x: Mr.value,
1480
- y: 0,
1481
- width: $.value,
1482
- height: I.value.height,
1483
- fill: "transparent",
1484
- stroke: "none",
1485
- rx: 3
1486
- }, Sr.value, {
1487
- onKeydown: t[15] ||= (e) => br("end", e),
1488
- onMousedown: t[16] ||= ye((e) => Or("end", e), ["stop", "prevent"]),
1489
- onClick: t[17] ||= ye(() => {}, ["stop", "prevent"])
1490
- }), null, 16, wt)], 8, St))])) : f("", !0),
1491
- Q.value.left ? (_(), p("div", {
1492
- key: 4,
1493
- ref_key: "tooltipLeft",
1494
- ref: Qn,
1495
- class: h({
1496
- "range-tooltip": !0,
1497
- "range-tooltip-visible": Z.value,
1498
- "range-tooltip-arrow": N.value.arrowLeft && !s.verticalHandles,
1499
- "range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles
1500
- }),
1501
- style: g({
1502
- left: N.value.tooltipLeft,
1503
- color: me(te)(s.selectColor),
1504
- backgroundColor: s.selectColor,
1505
- border: `1px solid ${P.value}`,
1506
- zIndex: `${ir.value + 4}`,
1507
- visibility: or.value || Q.value.left === Q.value.right ? "hidden" : "visible",
1508
- top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1509
- })
1510
- }, pe(Q.value.left), 7)) : f("", !0),
1511
- (or.value || Q.value.left === Q.value.right) && (Q.value.left || Q.value.right) ? (_(), p("div", {
1512
- key: 5,
1513
- ref: "tooltipMerge",
1514
- class: h({
1515
- "range-tooltip": !0,
1516
- "range-tooltip-visible": Z.value,
1517
- "range-tooltip-arrow": !0,
1518
- "range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles,
1519
- "range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
1520
- }),
1521
- style: g({
1522
- left: N.value.tooltipCenter,
1523
- width: sr.value.width + "px",
1524
- color: me(te)(s.selectColor),
1525
- backgroundColor: s.selectColor,
1526
- border: `1px solid ${P.value}`,
1527
- zIndex: "4",
1528
- top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1529
- })
1530
- }, pe(Q.value.left === Q.value.right ? Q.value.left : `${Q.value.left} - ${Q.value.right}`), 7)) : f("", !0),
1531
- Q.value.right ? (_(), p("div", {
1532
- key: 6,
1533
- ref_key: "tooltipRight",
1534
- ref: $n,
1535
- class: h({
1536
- "range-tooltip": !0,
1537
- "range-tooltip-visible": Z.value,
1538
- "range-tooltip-arrow": N.value.arrowRight && !s.verticalHandles,
1539
- "range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
1540
- }),
1541
- style: g({
1542
- left: N.value.tooltipRight,
1543
- color: me(te)(s.selectColor),
1544
- backgroundColor: s.selectColor,
1545
- border: `1px solid ${P.value}`,
1546
- zIndex: "4",
1547
- visibility: or.value || Q.value.left === Q.value.right ? "hidden" : "visible",
1548
- top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1549
- })
1550
- }, pe(Q.value.right), 7)) : f("", !0)
1551
- ], 36)], 44, be));
1552
- }
1553
- }, [["__scopeId", "data-v-8456127b"]]);
1554
- //#endregion
1555
- export { Et as t };