vue-data-ui 3.22.3 → 3.22.5

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 (202) hide show
  1. package/dist/{Arrow-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
  3. package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
  4. package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
  5. package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
  6. package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
  7. package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
  8. package/dist/Legend-DXOzbXb-.js +156 -0
  9. package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
  10. package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-CqE8ssFu.js} +1 -1
  11. package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
  12. package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
  13. package/dist/Slicer-hEvKOLw3.js +1145 -0
  14. package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
  15. package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
  16. package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
  17. package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
  18. package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
  89. package/dist/exposedLib-C2U48XK7.js +19 -0
  90. package/dist/img-B29J8tV5.js +129 -0
  91. package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
  92. package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
  93. package/dist/{package-KQdsc0if.js → package-YOcaZtwF.js} +1 -1
  94. package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
  95. package/dist/{render-common-BUbY65H0.js → render-common-B80rr2N_.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +60 -2
  101. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
  103. package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
  104. package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
  105. package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
  106. package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
  107. package/dist/utils.js +14 -14
  108. package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-mqURXOql.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-BZ1Slxfu.js +1757 -0
  111. package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-uUVFZo8M.js} +289 -289
  113. package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
  114. package/dist/vue-ui-bullet-RGCGF_cO.js +710 -0
  115. package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-CiUmHi6k.js} +259 -259
  116. package/dist/vue-ui-candlestick-BJUk5fMm.js +1826 -0
  117. package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-BksIDurC.js} +122 -122
  118. package/dist/vue-ui-chestnut-B3OHA5rg.js +2010 -0
  119. package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-DETV2viY.js} +53 -53
  120. package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-DddaioRm.js} +46 -46
  121. package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-D2-hWt_G.js} +4 -4
  122. package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-Dp7pV6Ps.js} +49 -49
  123. package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-D91C5cXo.js} +70 -70
  124. package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-CMA3U4ZS.js} +4 -4
  125. package/dist/vue-ui-donut-DObpw5zP.js +2410 -0
  126. package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-DpiS28CQ.js} +193 -193
  127. package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-2B61hvv2.js} +419 -419
  128. package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cmr65TNE.js} +341 -341
  129. package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-7Yfsu6AY.js} +72 -72
  130. package/dist/vue-ui-funnel-BLRBDW1a.js +777 -0
  131. package/dist/vue-ui-galaxy-B9cxOcoE.js +1077 -0
  132. package/dist/vue-ui-gauge-yo4G5HMt.js +920 -0
  133. package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-BOHI6oMZ.js} +18 -18
  134. package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DI-35oK-.js} +62 -62
  135. package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-DBVM90VE.js} +293 -293
  136. package/dist/vue-ui-history-plot-BiWpOHKE.js +1715 -0
  137. package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-XBrvSxtJ.js} +75 -75
  138. package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-55wwhSBh.js} +12 -12
  139. package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
  140. package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-DB3rmTw1.js} +213 -213
  141. package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-izcbwGOc.js} +40 -40
  142. package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DRJ1QT2n.js} +255 -255
  143. package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-xTZOmmtb.js} +293 -293
  144. package/dist/vue-ui-parallel-coordinate-plot-BxQ7D2_o.js +1416 -0
  145. package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-BvAmtyAE.js} +57 -57
  146. package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CJ1xQgYc.js} +654 -654
  147. package/dist/vue-ui-radar-C26C6p7e.js +1281 -0
  148. package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
  149. package/dist/vue-ui-relation-circle-Dl1aWFAI.js +924 -0
  150. package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-BbJa5C-d.js} +468 -468
  151. package/dist/vue-ui-rings-CyrvskTi.js +1246 -0
  152. package/dist/vue-ui-scatter-D9Iw5xlb.js +2413 -0
  153. package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-C4D0i9ho.js} +22 -22
  154. package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
  155. package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-CMb7UI2t.js} +24 -24
  156. package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-DEawjWhg.js} +35 -35
  157. package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-mubHGQF_.js} +56 -56
  158. package/dist/vue-ui-sparkhistogram-D8N-jNBt.js +560 -0
  159. package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-D4p0PS3-.js} +200 -200
  160. package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-DnrZkIIc.js} +126 -126
  161. package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-BzHSHKqe.js} +147 -147
  162. package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-CWSvsW1n.js} +417 -417
  163. package/dist/vue-ui-strip-plot-pPiVqFYo.js +1729 -0
  164. package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-BzqQKuL-.js} +64 -64
  165. package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
  166. package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-BnavmY2R.js} +19 -19
  167. package/dist/vue-ui-thermometer-ePIxpTuE.js +763 -0
  168. package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-BQZxD91f.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-CDOlCWS8.js} +10 -10
  170. package/dist/vue-ui-treemap-DrZlX_7n.js +1587 -0
  171. package/dist/vue-ui-waffle-BpZrFfUb.js +1362 -0
  172. package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-DRfyK9q9.js} +29 -29
  173. package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-D0JUA9I9.js} +28 -28
  174. package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-Dx-41fUM.js} +127 -127
  175. package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-BLSGO4Lm.js} +760 -760
  176. package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-DpRqQ09J.js} +410 -410
  177. package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
  178. package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
  179. package/package.json +1 -1
  180. package/dist/Legend--t7Mbp9Z.js +0 -115
  181. package/dist/Slicer-CpBaahpI.js +0 -1144
  182. package/dist/exposedLib-BkRxoSB9.js +0 -19
  183. package/dist/img-CyjhDDaM.js +0 -74
  184. package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
  185. package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
  186. package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
  187. package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
  188. package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
  189. package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
  190. package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
  191. package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
  192. package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
  193. package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
  194. package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
  195. package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
  196. package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
  197. package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
  198. package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
  199. package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
  200. package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
  201. package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
  202. package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
@@ -0,0 +1,1145 @@
1
+ import { Kt as e, N as t, R as n, W as r, j as i, r as a, t as o, z as ee } from "./lib-CuwHGt1j.js";
2
+ import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { c, r as te } from "./canvas-lib-BOP_HS11.js";
4
+ import { t as l } from "./useResponsive-BfnK0KxU.js";
5
+ import { t as ne } from "./BaseIcon-xBuW2jjI.js";
6
+ import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as re, mergeProps as ie, nextTick as ae, normalizeClass as h, normalizeProps as oe, normalizeStyle as g, onBeforeUnmount as se, onMounted as ce, onUpdated as le, openBlock as _, ref as v, renderList as y, renderSlot as ue, toDisplayString as de, unref as fe, useCssVars as pe, vModelText as me, watch as b, withDirectives as he } from "vue";
7
+ //#region src/atoms/Slicer.vue
8
+ var ge = ["data-minimap"], _e = {
9
+ class: "vue-data-ui-slicer-labels",
10
+ style: {
11
+ position: "relative",
12
+ "z-index": "1",
13
+ "pointer-events": "none"
14
+ }
15
+ }, ve = {
16
+ key: 0,
17
+ style: {
18
+ width: "100%",
19
+ position: "relative",
20
+ "pointer-events": "all"
21
+ }
22
+ }, ye = {
23
+ key: 0,
24
+ class: "minimap",
25
+ style: { width: "100%" }
26
+ }, be = ["xmlns", "viewBox"], xe = ["id"], Se = ["stop-color"], Ce = [
27
+ "width",
28
+ "height",
29
+ "stroke"
30
+ ], we = ["d", "stroke"], Te = [
31
+ "x",
32
+ "width",
33
+ "y",
34
+ "height",
35
+ "fill"
36
+ ], Ee = ["d", "stroke"], De = [
37
+ "cx",
38
+ "cy",
39
+ "fill",
40
+ "stroke"
41
+ ], Oe = [
42
+ "x",
43
+ "width",
44
+ "height",
45
+ "fill",
46
+ "rx"
47
+ ], ke = [
48
+ "x",
49
+ "width",
50
+ "height",
51
+ "rx",
52
+ "fill"
53
+ ], Ae = [
54
+ "x",
55
+ "width",
56
+ "height",
57
+ "fill",
58
+ "rx"
59
+ ], je = [
60
+ "x2",
61
+ "y1",
62
+ "y2",
63
+ "stroke"
64
+ ], Me = ["d", "fill"], Ne = ["d", "stroke"], Pe = { key: 6 }, Fe = [
65
+ "x",
66
+ "width",
67
+ "y",
68
+ "height",
69
+ "fill"
70
+ ], Ie = ["d", "stroke"], Le = [
71
+ "x",
72
+ "width",
73
+ "height",
74
+ "fill",
75
+ "stroke",
76
+ "stroke-width"
77
+ ], Re = [
78
+ "x",
79
+ "width",
80
+ "height"
81
+ ], ze = ["fill", "stroke"], Be = ["stroke"], Ve = ["fill"], He = [
82
+ "x",
83
+ "width",
84
+ "height",
85
+ "fill",
86
+ "stroke",
87
+ "stroke-width"
88
+ ], Ue = [
89
+ "x",
90
+ "width",
91
+ "height"
92
+ ], We = ["fill", "stroke"], Ge = ["stroke"], Ke = ["fill"], qe = [
93
+ "cx",
94
+ "cy",
95
+ "stroke",
96
+ "fill"
97
+ ], Je = [
98
+ "cx",
99
+ "cy",
100
+ "fill"
101
+ ], Ye = [
102
+ "cx",
103
+ "cy",
104
+ "stroke",
105
+ "fill"
106
+ ], Xe = [
107
+ "cx",
108
+ "cy",
109
+ "fill"
110
+ ], Ze = { key: 12 }, Qe = [
111
+ "cx",
112
+ "cy",
113
+ "fill",
114
+ "stroke"
115
+ ], $e = [
116
+ "cx",
117
+ "cy",
118
+ "stroke",
119
+ "fill"
120
+ ], et = [
121
+ "cx",
122
+ "cy",
123
+ "fill"
124
+ ], tt = [
125
+ "cx",
126
+ "cy",
127
+ "stroke",
128
+ "fill"
129
+ ], nt = [
130
+ "cx",
131
+ "cy",
132
+ "fill"
133
+ ], rt = [
134
+ "height",
135
+ "x",
136
+ "width",
137
+ "onMouseenter"
138
+ ], it = ["min", "max"], at = ["min", "max"], ot = 48, st = /*#__PURE__*/ s({
139
+ __name: "Slicer",
140
+ props: {
141
+ background: {
142
+ type: String,
143
+ default: "#FFFFFF"
144
+ },
145
+ borderColor: {
146
+ type: String,
147
+ default: "#FFFFFF"
148
+ },
149
+ fontSize: {
150
+ type: Number,
151
+ default: 14
152
+ },
153
+ labelLeft: {
154
+ type: [String, Number],
155
+ default: ""
156
+ },
157
+ labelRight: {
158
+ type: [String, Number],
159
+ default: ""
160
+ },
161
+ textColor: {
162
+ type: String,
163
+ default: "#1A1A1A"
164
+ },
165
+ inputColor: {
166
+ type: String,
167
+ default: "#1A1A1A"
168
+ },
169
+ max: {
170
+ type: Number,
171
+ default: 0
172
+ },
173
+ min: {
174
+ type: Number,
175
+ default: 0
176
+ },
177
+ selectColor: {
178
+ type: String,
179
+ default: "#4A4A4A"
180
+ },
181
+ useResetSlot: {
182
+ type: Boolean,
183
+ default: !1
184
+ },
185
+ valueStart: {
186
+ type: [Number, String],
187
+ default: 0
188
+ },
189
+ valueEnd: {
190
+ type: [Number, String],
191
+ default: 0
192
+ },
193
+ minimap: {
194
+ type: Array,
195
+ default: []
196
+ },
197
+ smoothMinimap: {
198
+ type: Boolean,
199
+ default: !1
200
+ },
201
+ minimapSelectedColor: {
202
+ type: String,
203
+ default: "#1f77b4"
204
+ },
205
+ minimapSelectionRadius: {
206
+ type: Number,
207
+ default: 12
208
+ },
209
+ minimapLineColor: {
210
+ type: String,
211
+ default: "#2D353C"
212
+ },
213
+ minimapSelectedColorOpacity: {
214
+ type: Number,
215
+ default: .2
216
+ },
217
+ minimapSelectedIndex: {
218
+ type: Number,
219
+ default: null
220
+ },
221
+ minimapIndicatorColor: {
222
+ type: String,
223
+ default: "#2D353C"
224
+ },
225
+ refreshStartPoint: {
226
+ type: Number,
227
+ default: 0
228
+ },
229
+ refreshEndPoint: {
230
+ type: Number,
231
+ default: null
232
+ },
233
+ enableRangeHandles: {
234
+ type: Boolean,
235
+ default: !1
236
+ },
237
+ enableSelectionDrag: {
238
+ type: Boolean,
239
+ default: !0
240
+ },
241
+ verticalHandles: {
242
+ type: Boolean,
243
+ default: !1
244
+ },
245
+ minimapCompact: {
246
+ type: Boolean,
247
+ default: !1
248
+ },
249
+ allMinimaps: {
250
+ type: Array,
251
+ default() {
252
+ return [];
253
+ }
254
+ },
255
+ minimapMerged: {
256
+ type: Boolean,
257
+ default: !1
258
+ },
259
+ minimapFrameColor: {
260
+ type: String,
261
+ default: "#e1e5e8"
262
+ },
263
+ cutNullValues: {
264
+ type: Boolean,
265
+ default: !1
266
+ },
267
+ focusOnDrag: {
268
+ type: Boolean,
269
+ default: !1
270
+ },
271
+ focusRangeRatio: {
272
+ type: Number,
273
+ default: .1
274
+ },
275
+ maxWidth: {
276
+ type: Number,
277
+ default: null
278
+ },
279
+ isCursorPointer: {
280
+ type: Boolean,
281
+ default: !1
282
+ },
283
+ additionalMinimapHeight: {
284
+ type: Number,
285
+ default: 0
286
+ },
287
+ handleType: {
288
+ type: String,
289
+ default: ""
290
+ },
291
+ handleWidth: {
292
+ type: Number,
293
+ default: 20
294
+ },
295
+ handleBorderWidth: {
296
+ type: Number,
297
+ default: 1
298
+ },
299
+ handleIconColor: {
300
+ type: String,
301
+ default: null
302
+ },
303
+ handleBorderColor: {
304
+ type: String,
305
+ default: null
306
+ },
307
+ handleFill: {
308
+ type: String,
309
+ default: null
310
+ }
311
+ },
312
+ emits: [
313
+ "update:start",
314
+ "update:end",
315
+ "reset",
316
+ "trapMouse"
317
+ ],
318
+ setup(s, { expose: st, emit: ct }) {
319
+ pe((e) => ({
320
+ e4f226d4: wt.value,
321
+ v257c750a: A.value,
322
+ v746192fb: Et.value,
323
+ v05b1b63a: s.selectColor,
324
+ v77671870: Tt.value
325
+ }));
326
+ let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), lt = v(r()), E = d(() => T.value && x.minimapCompact), ut = v(0);
327
+ ce(() => {
328
+ let e = () => {
329
+ S.value && (ut.value = S.value.getBoundingClientRect().width);
330
+ };
331
+ e();
332
+ let t = c(e, 50);
333
+ window.addEventListener("resize", t), se(() => {
334
+ window.removeEventListener("resize", t);
335
+ });
336
+ });
337
+ let dt = d(() => x.refreshEndPoint === null ? x.max : x.refreshEndPoint), D = ct, O = d(() => {
338
+ if (E.value) {
339
+ let e = Math.max(1, Sn.value - 1);
340
+ return St.value / e * 100;
341
+ }
342
+ let e = Math.max(1, x.max - x.min);
343
+ return (C.value - x.min) / e * 100;
344
+ }), ft = d(() => {
345
+ if (E.value) {
346
+ let e = Math.max(1, Sn.value - 1);
347
+ return Ct.value / e * 100;
348
+ }
349
+ let e = Math.max(1, x.max - x.min);
350
+ return (w.value - x.min) / e * 100;
351
+ }), pt = d(() => (O.value + ft.value) / 2), mt = d(() => {
352
+ if (!S.value) return !1;
353
+ let e = S.value.getBoundingClientRect().width;
354
+ return O.value / 100 * e - hn.value / 2 < 0;
355
+ }), ht = d(() => {
356
+ if (!S.value) return !1;
357
+ let e = S.value.getBoundingClientRect().width;
358
+ return ft.value / 100 * e + gn.value / 2 > e;
359
+ }), k = d(() => {
360
+ let e = ht.value ? `calc(${pt.value}% - ${xn.value.width}px)` : mt.value ? `calc(${pt.value}% - 8px)` : `calc(${pt.value}% - ${xn.value.width / 2}px)`;
361
+ return {
362
+ left: `${O.value}%`,
363
+ width: `${Math.max(0, ft.value - O.value)}%`,
364
+ background: x.selectColor,
365
+ tooltipLeft: `calc(${O.value}% - ${mt.value ? 9 : hn.value / 2}px)`,
366
+ tooltipRight: `calc(${ft.value}% - ${ht.value ? gn.value - 9 : gn.value / 2}px)`,
367
+ tooltipCenter: e,
368
+ arrowLeft: !mt.value,
369
+ arrowRight: !ht.value
370
+ };
371
+ }), gt = d(() => Math.max(0, (N.value || 1) - 1)), _t = d(() => Math.max(0, (Sn.value || 1) - 1));
372
+ function vt(e) {
373
+ return _t.value === 0 ? 0 : Math.round(e / _t.value * gt.value);
374
+ }
375
+ function yt(e) {
376
+ return gt.value === 0 ? 0 : Math.round(e / gt.value * _t.value);
377
+ }
378
+ let bt = (e) => Math.floor(x.min + e), xt = (e) => Math.ceil(x.min + e), St = d({
379
+ get() {
380
+ return E.value ? vt(Q.value) : Number(C.value);
381
+ },
382
+ set(e) {
383
+ if (E.value) {
384
+ let t = Math.round(+e || 0), n = Math.max(0, vt(Math.max(0, $.value - 1)));
385
+ B(bt(yt(Math.min(Math.max(0, t), n))));
386
+ } else {
387
+ let t = Math.round(+e || 0), n = Number(w.value) - 1;
388
+ B(Math.min(Math.max(x.min, t), n));
389
+ }
390
+ }
391
+ }), Ct = d({
392
+ get() {
393
+ return E.value ? vt(Math.max(Q.value, $.value - 1)) : Number(w.value);
394
+ },
395
+ set(e) {
396
+ if (E.value) {
397
+ let t = Math.round(+e || 0), n = vt(Q.value);
398
+ V(xt(yt(Math.max(t, n)) + 1));
399
+ } else {
400
+ let t = Math.round(+e || 0), n = Number(C.value) + 1;
401
+ V(Math.max(n, Math.min(t, x.max)));
402
+ }
403
+ }
404
+ }), wt = d(() => x.inputColor), Tt = d(() => x.background), Et = d(() => `${x.selectColor}33`), A = d(() => x.borderColor), Dt = d(() => {
405
+ let e = [];
406
+ for (let t = 0; t < x.max; t += 1) e.push(t);
407
+ return e;
408
+ });
409
+ function Ot() {
410
+ D("reset");
411
+ }
412
+ b(() => x.min, (e) => {
413
+ Number(C.value) < Number(e) && (C.value = Number(e)), Number(w.value) < Number(e) && (w.value = Number(e));
414
+ }), b(() => x.max, (e) => {
415
+ Number(C.value) > Number(e) && (C.value = Number(e)), Number(w.value) > Number(e) && (w.value = Number(e));
416
+ });
417
+ let kt = v(null), j = v({
418
+ width: 1,
419
+ height: 1
420
+ }), M = v(null);
421
+ ce(() => {
422
+ if (T.value) {
423
+ let e = c(() => {
424
+ let { width: e, height: t } = l({ chart: kt.value });
425
+ j.value.width = e, j.value.height = t - 47;
426
+ });
427
+ M.value = new ResizeObserver(e), M.value.observe(kt.value);
428
+ }
429
+ }), se(() => {
430
+ M.value && M.value.disconnect();
431
+ });
432
+ let N = d(() => Math.max(...x.allMinimaps.map((e) => e.series.length), x.minimap.length || 0)), P = d(() => {
433
+ if (!N.value) return 0;
434
+ let e = Math.max(1, N.value - +!!x.minimapCompact);
435
+ return j.value.width / e;
436
+ }), At = d(() => {
437
+ let e = [];
438
+ 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));
439
+ return e.length ? {
440
+ min: Math.min(...e),
441
+ max: Math.max(...e)
442
+ } : {
443
+ min: 0,
444
+ max: 1
445
+ };
446
+ }), F = d(() => At.value.min), I = d(() => At.value.max), jt = d(() => F.value < 0 && I.value > 0 || I.value <= 0 ? F.value : 0), Mt = d(() => Math.max(1e-9, Math.max(Math.abs(F.value), Math.abs(I.value)))), Nt = d(() => F.value < 0 && I.value > 0), Pt = (e) => {
447
+ let t = Math.max(1, j.value.height);
448
+ if (Nt.value) {
449
+ let n = Mt.value;
450
+ return (1 - (Math.max(-1, Math.min(1, e / n)) + 1) / 2) * t;
451
+ } else {
452
+ let n = Math.min(0, F.value), r = Math.max(0, I.value);
453
+ return t - (e - n) / Math.max(1e-9, r - n) * t;
454
+ }
455
+ }, Ft = d(() => Pt(0)), It = d(() => x.allMinimaps.length ? x.allMinimaps.filter((e) => e.type === "bar").length : 0), Lt = d(() => P.value / (It.value || 1) * .8);
456
+ function Rt(e, t, n) {
457
+ let r = Lt.value, i = Math.max(1, It.value), a = N.value - 1;
458
+ return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
459
+ }
460
+ function zt(e, t) {
461
+ return [0, N.value - 1].includes(t) ? Lt.value / 2 : Lt.value;
462
+ }
463
+ function Bt(e, t, n) {
464
+ let r = (e, t, n) => Math.max(t, Math.min(n, e)), i = 1e-9;
465
+ if (t <= 0) {
466
+ let t = Math.max(i, 0 - e);
467
+ return (r) => n - (r - e) / t * n;
468
+ }
469
+ if (e >= 0) {
470
+ let e = Math.max(i, t - 0);
471
+ return (t) => n - (t - 0) / e * n;
472
+ }
473
+ let a = Math.max(i, Math.max(Math.abs(e), Math.abs(t)));
474
+ return (e) => (1 - (r(e / a, -1, 1) + 1) / 2) * n;
475
+ }
476
+ function Vt(e, r = !1) {
477
+ if (!e || !e.length) return {
478
+ fullSet: "",
479
+ points: [],
480
+ selectionSet: "",
481
+ sliced: [],
482
+ firstPlot: null,
483
+ lastPlot: null,
484
+ hasFull: !1,
485
+ hasSelection: !1,
486
+ fullMarkers: [],
487
+ selectionMarkers: []
488
+ };
489
+ let a = Math.max(1, j.value.height), o = Bt(F.value, I.value, a), s = e.length, c = Math.min(Math.max(0, Q.value), Math.max(0, s - 1)), te = Math.min(s, Math.max(c + 1, $.value)), l = e.map((e, t) => {
490
+ let n = e, r = Number.isFinite(n), i = P.value * t + (x.minimapCompact ? 0 : P.value / 2), a = o(0);
491
+ return {
492
+ x: i,
493
+ y: r ? o(n) : NaN,
494
+ v: n,
495
+ value: n == null ? null : r ? n : null,
496
+ y0: a,
497
+ i: t
498
+ };
499
+ }), ne = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value), u = l.filter((e) => Number.isFinite(e.value) && !ne(e.i - 1) && !ne(e.i + 1)), d = u.filter((e) => e.i >= c && e.i < te), f = l.slice(c, te);
500
+ return {
501
+ fullSet: l.length >= 2 ? x.smoothMinimap || r ? x.cutNullValues ? t(l) : i(l.filter((e) => e.value != null)) : x.cutNullValues ? ee(l) : n(l.filter((e) => e.value != null)) : "",
502
+ points: l,
503
+ selectionSet: f.length >= 2 ? x.smoothMinimap || r ? x.cutNullValues ? t(f) : i(f.filter((e) => e.value != null)) : x.cutNullValues ? ee(f) : n(f.filter((e) => e.value != null)) : "",
504
+ sliced: f,
505
+ firstPlot: l[c] || null,
506
+ lastPlot: l[Math.max(0, te - 1)] || null,
507
+ hasFull: l.length >= 2,
508
+ hasSelection: f.length >= 2,
509
+ fullMarkers: u,
510
+ selectionMarkers: d
511
+ };
512
+ }
513
+ let L = d(() => x.minimap.length ? Vt(x.minimap) : {
514
+ fullSet: "",
515
+ selectionSet: "",
516
+ sliced: [],
517
+ firstPlot: null,
518
+ lastPlot: null,
519
+ hasFull: !1,
520
+ hasSelection: !1
521
+ }), Ht = d(() => x.allMinimaps.length ? x.allMinimaps.map((e, t) => {
522
+ let n = Vt(e?.series || [], !!e.smooth), r = e?.id ?? e?.name ?? t;
523
+ return {
524
+ key: typeof r == "object" ? JSON.stringify(r) : String(r),
525
+ color: e?.color,
526
+ ...n,
527
+ isVisible: e.isVisible,
528
+ type: e.type || "line"
529
+ };
530
+ }) : []), R = d(() => {
531
+ let e = Q.value, t = Math.max(e + 1, $.value);
532
+ return {
533
+ x: P.value * e + (x.minimapCompact ? 0 : P.value / 2),
534
+ width: P.value * (t - e) - P.value
535
+ };
536
+ }), z = v(x.minimapSelectedIndex);
537
+ function Ut(e) {
538
+ z.value = Cn(x.valueStart) + e;
539
+ }
540
+ let Wt = te(Ut, 60);
541
+ b(() => x.minimapSelectedIndex, (e, t) => {
542
+ if ([null, void 0].includes(e)) {
543
+ z.value = null;
544
+ return;
545
+ }
546
+ e !== t && Wt(e);
547
+ }, { immediate: !0 });
548
+ function Gt(e) {
549
+ z.value = e;
550
+ let t = Q.value, n = $.value;
551
+ e >= t && e < n && !q.value && D("trapMouse", e - t);
552
+ }
553
+ let Kt = v(null), qt = v(null);
554
+ function B(e) {
555
+ C.value = e, Kt.value && (Kt.value.value = e), D("update:start", Number(C.value));
556
+ }
557
+ function V(e) {
558
+ w.value = e, qt.value && (qt.value.value = e), D("update:end", Number(w.value));
559
+ }
560
+ let Jt = d(() => x.valueEnd - x.valueStart), Yt = d(() => Jt.value < x.max - x.min), H = v(!1), Xt = v(null), Zt = d(() => (ut.value - 48) / (x.max - x.min) * Jt.value), Qt = d(() => Math.max(1, ut.value - ot - Zt.value)), $t = d(() => Math.max(1, x.max - x.min - Jt.value)), en = d(() => $t.value / Qt.value), tn = v(0), nn = v(0), rn = v(0), an = v(0), U = null, W = null, G = null, K = null, on = v(x.min);
561
+ function sn(e) {
562
+ if (!S.value) return x.min;
563
+ let t = S.value.getBoundingClientRect(), n = t.left + ot / 2, r = t.right - ot / 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);
564
+ return Math.round(x.min + a * o);
565
+ }
566
+ let cn = async (t) => {
567
+ if (X.value = !0, !x.enableSelectionDrag) return;
568
+ let n = t.type === "touchstart";
569
+ n || t.stopPropagation();
570
+ let r = n && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, i = n ? r ? r.target : null : t.target;
571
+ if (!i || !(i instanceof Element) || i.classList && i.classList.contains("range-handle")) return;
572
+ H.value = !0;
573
+ let a = n ? r ? r.clientX : 0 : t.clientX;
574
+ if (Xt.value = a, tn.value = a, x.focusOnDrag && !Yt.value && S.value) {
575
+ on.value = sn(a);
576
+ 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 = on.value - i;
577
+ o = Math.max(x.min, Math.min(o, x.max - r));
578
+ let ee = Math.min(x.max, o + r);
579
+ B(o), V(ee), e(S.value, "mouseup"), await ae(), e(S.value, "mousedown", { clientX: a });
580
+ }
581
+ nn.value = Number(C.value), rn.value = Number(w.value), an.value = en.value, U = n ? "touchmove" : "mousemove", W = n ? "touchend" : "mouseup", G = n ? un : ln, K = n ? pn : fn, window.addEventListener(U, G, { passive: !1 }), window.addEventListener(W, K);
582
+ };
583
+ function ln(e) {
584
+ H.value && dn(e.clientX);
585
+ }
586
+ function un(e) {
587
+ if (!H.value || !S.value) return;
588
+ let t = e.target;
589
+ if (!(t instanceof Element) || !S.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
590
+ e.preventDefault();
591
+ let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
592
+ n && dn(n.clientX);
593
+ }
594
+ function dn(e) {
595
+ if (!H.value) return;
596
+ let t = sn(tn.value), n = sn(e) - t, r = Math.max(1, rn.value - nn.value), i = Math.round(nn.value + n), a = x.min, o = x.max - r;
597
+ i < a && (i = a), i > o && (i = o);
598
+ let ee = i + r;
599
+ B(i), V(ee);
600
+ }
601
+ function fn() {
602
+ mn();
603
+ }
604
+ function pn() {
605
+ mn();
606
+ }
607
+ function mn() {
608
+ H.value = !1, U && G && window.removeEventListener(U, G), W && K && window.removeEventListener(W, K), U = W = null, G = K = null;
609
+ }
610
+ let q = v(!1), J = v(null), Y = v(null), hn = v(1), gn = v(1), X = v(!1);
611
+ function _n() {
612
+ J.value && (hn.value = J.value.getBoundingClientRect().width);
613
+ }
614
+ function vn() {
615
+ Y.value && (gn.value = Y.value.getBoundingClientRect().width);
616
+ }
617
+ let yn = v(0);
618
+ function bn(e) {
619
+ yn.value = +(e === "start");
620
+ }
621
+ let Z = v(!1), xn = v({
622
+ width: 0,
623
+ left: 0
624
+ });
625
+ b([C, w], async () => {
626
+ if (await ae(), !J.value || !Y.value) {
627
+ Z.value = !1, xn.value = {
628
+ width: 0,
629
+ left: 0
630
+ };
631
+ return;
632
+ }
633
+ let e = J.value.getBoundingClientRect(), t = Y.value.getBoundingClientRect();
634
+ Z.value = e.x + e.width > t.x;
635
+ let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
636
+ xn.value = {
637
+ width: i,
638
+ left: (n + r) / 2 - i / 2
639
+ };
640
+ }), le(() => {
641
+ _n(), vn();
642
+ }), b(() => x.labelLeft, () => {
643
+ ae(_n);
644
+ }, { deep: !0 }), b(() => x.labelRight, () => {
645
+ ae(vn);
646
+ }, { deep: !0 }), st({
647
+ setStartValue: B,
648
+ setEndValue: V
649
+ }), se(() => {
650
+ M.value && M.value.disconnect(), U && G && window.removeEventListener(U, G), W && K && window.removeEventListener(W, K), U = W = null, G = K = null;
651
+ });
652
+ let Sn = d(() => Math.max(1, x.max - x.min));
653
+ function Cn(e) {
654
+ let t = Math.floor(e - x.min);
655
+ return Math.min(Math.max(0, t), Sn.value);
656
+ }
657
+ function wn(e) {
658
+ let t = Math.ceil(e - x.min);
659
+ return Math.min(Math.max(0, t), Sn.value);
660
+ }
661
+ let Q = d(() => Cn(C.value)), $ = d(() => wn(w.value)), Tn = d(() => {
662
+ if (!Dt.value.length) return null;
663
+ if (z.value >= Q.value && z.value < $.value) {
664
+ let e = z.value;
665
+ return {
666
+ x1: P.value * e + (x.minimapCompact ? 0 : P.value / 2),
667
+ x2: P.value * e + (x.minimapCompact ? 0 : P.value / 2),
668
+ y1: 0,
669
+ y2: Math.max(j.value.height, 0),
670
+ stroke: x.minimapIndicatorColor,
671
+ "stroke-linecap": "round",
672
+ "stroke-dasharray": 2,
673
+ "stroke-width": 1
674
+ };
675
+ } else return null;
676
+ });
677
+ return (e, t) => (_(), p("div", {
678
+ "data-minimap": T.value,
679
+ "data-dom-to-png-ignore": "",
680
+ "data-dom-to-png-ignore-layout": "",
681
+ style: g([{ padding: "0 48px" }, {
682
+ maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
683
+ margin: s.maxWidth ? "0 auto" : void 0
684
+ }]),
685
+ class: "vue-data-ui-zoom",
686
+ ref_key: "zoomWrapper",
687
+ ref: S,
688
+ onMousedown: cn,
689
+ onTouchstart: cn,
690
+ onTouchend: t[11] ||= (e) => X.value = !1
691
+ }, [m("div", _e, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== dt.value ? (_(), p("div", ve, [ue(e.$slots, "reset-action", { reset: Ot }, () => [m("button", {
692
+ tabindex: "0",
693
+ role: "button",
694
+ class: "vue-data-ui-refresh-button",
695
+ style: g({
696
+ top: T.value ? "36px" : "-16px",
697
+ cursor: s.isCursorPointer ? "pointer" : "default"
698
+ }),
699
+ onClick: Ot
700
+ }, [re(ne, {
701
+ name: "refresh",
702
+ stroke: s.textColor
703
+ }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0)]), m("div", {
704
+ class: "double-range-slider",
705
+ ref_key: "minimapWrapper",
706
+ ref: kt,
707
+ style: g([{ "z-index": "0" }, T.value ? {
708
+ "--minimap-unit-px": P.value + "px",
709
+ "--minimap-offset-px": (s.minimapCompact ? 0 : P.value / 2) + "px"
710
+ } : void 0]),
711
+ onMouseenter: t[9] ||= (e) => X.value = !0,
712
+ onMouseleave: t[10] ||= (e) => X.value = !1
713
+ }, [
714
+ T.value ? (_(), p("div", ye, [(_(), p("svg", {
715
+ key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
716
+ xmlns: fe(o),
717
+ viewBox: `0 0 ${Math.max(0, j.value.width)} ${Math.max(0, j.value.height)}`
718
+ }, [
719
+ m("defs", null, [m("linearGradient", {
720
+ id: lt.value,
721
+ x1: "0%",
722
+ y1: "0%",
723
+ x2: "0%",
724
+ y2: "100%"
725
+ }, [m("stop", {
726
+ offset: "0%",
727
+ "stop-color": `${s.minimapLineColor}50`
728
+ }, null, 8, Se), t[12] ||= m("stop", {
729
+ offset: "100%",
730
+ "stop-color": "transparent"
731
+ }, null, -1)], 8, xe)]),
732
+ s.minimapCompact ? (_(), p("rect", {
733
+ key: 0,
734
+ class: "vue-ui-zoom-minimap-frame",
735
+ x: 0,
736
+ y: 0,
737
+ width: j.value.width,
738
+ height: j.value.height,
739
+ fill: "none",
740
+ stroke: s.minimapFrameColor,
741
+ rx: 3
742
+ }, null, 8, Ce)) : f("", !0),
743
+ s.minimapMerged ? (_(), p("path", {
744
+ key: 1,
745
+ d: `M${L.value.fullSet}`,
746
+ stroke: `${s.minimapLineColor}`,
747
+ fill: "none",
748
+ "stroke-width": "1",
749
+ "stroke-linecap": "round",
750
+ "stroke-linejoin": "round",
751
+ style: { opacity: "0.6" }
752
+ }, null, 8, we)) : (_(), p(u, { key: 2 }, [(_(!0), p(u, null, y(Ht.value.filter((e) => e.type === "bar"), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e.isVisible && !isNaN(n.y) ? (_(), p("rect", {
753
+ key: 0,
754
+ x: Rt(n.x, t, r),
755
+ width: zt(t, r),
756
+ y: n.v >= 0 ? n.y : n.y0,
757
+ height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
758
+ fill: e.color,
759
+ style: { opacity: "0.6" }
760
+ }, null, 8, Te)) : f("", !0)], 64))), 256))]))), 256)), (_(!0), p(u, null, y(Ht.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [e.isVisible ? (_(), p("path", {
761
+ key: 0,
762
+ d: `M ${e.fullSet}`,
763
+ fill: "none",
764
+ stroke: e.color,
765
+ style: { opacity: "0.6" }
766
+ }, null, 8, Ee)) : f("", !0), e.isVisible ? (_(!0), p(u, { key: 1 }, y(e.fullMarkers, (t) => (_(), p("circle", {
767
+ key: `sel-dot-under-${e.key}-${t.i}`,
768
+ cx: t.x,
769
+ cy: t.y,
770
+ r: "2",
771
+ fill: e.color,
772
+ stroke: A.value,
773
+ "stroke-width": "0.5",
774
+ style: { opacity: "0.6" }
775
+ }, null, 8, De))), 128)) : f("", !0)]))), 128))], 64)),
776
+ m("rect", {
777
+ x: R.value.x,
778
+ width: R.value.width < 0 ? 0 : R.value.width,
779
+ height: Math.max(j.value.height, 0),
780
+ y: 0,
781
+ fill: A.value,
782
+ rx: s.minimapSelectionRadius,
783
+ stroke: "none"
784
+ }, null, 8, Oe),
785
+ m("rect", {
786
+ x: R.value.x,
787
+ width: R.value.width < 0 ? 0 : R.value.width,
788
+ height: Math.max(j.value.height, 0),
789
+ y: 0,
790
+ rx: s.minimapSelectionRadius,
791
+ fill: A.value
792
+ }, null, 8, ke),
793
+ m("rect", {
794
+ x: R.value.x,
795
+ width: R.value.width < 0 ? 0 : R.value.width,
796
+ height: Math.max(j.value.height, 0),
797
+ y: 0,
798
+ fill: s.minimapSelectedColor,
799
+ rx: s.minimapSelectionRadius,
800
+ style: g({ opacity: s.minimapSelectedColorOpacity })
801
+ }, null, 12, Ae),
802
+ z.value !== null && !q.value ? (_(), p("line", oe(ie({ key: 3 }, Tn.value)), null, 16)) : f("", !0),
803
+ !s.minimapMerged && jt.value < 0 ? (_(), p("line", {
804
+ key: 4,
805
+ class: "slicer-minimap-zero-line",
806
+ x1: 0,
807
+ x2: j.value.width,
808
+ y1: Ft.value,
809
+ y2: Ft.value,
810
+ stroke: s.minimapFrameColor,
811
+ "stroke-width": "0.5"
812
+ }, null, 8, je)) : f("", !0),
813
+ s.minimapMerged ? (_(), p(u, { key: 5 }, [L.value && L.value.sliced && L.value.sliced.length ? (_(), p(u, { key: 0 }, [L.value.selectionSet ? (_(), p("path", {
814
+ key: 0,
815
+ d: `M${L.value.sliced[0].x},${Math.max(j.value.height, 0)} ${L.value.selectionSet} L${L.value.sliced[L.value.sliced.length - 1].x},${Math.max(j.value.height, 0)}Z`,
816
+ fill: `url(#${lt.value})`,
817
+ stroke: "none",
818
+ style: { opacity: "1" }
819
+ }, null, 8, Me)) : f("", !0), L.value.selectionSet ? (_(), p("path", {
820
+ key: 1,
821
+ d: `M ${L.value.selectionSet}`,
822
+ stroke: `${s.minimapLineColor}`,
823
+ fill: "transparent",
824
+ "stroke-width": "2",
825
+ "stroke-linecap": "round",
826
+ "stroke-linejoin": "round"
827
+ }, null, 8, Ne)) : f("", !0)], 64)) : f("", !0)], 64)) : (_(), p("g", Pe, [(_(!0), p(u, null, y(Ht.value.filter((e) => e.type === "bar"), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e.isVisible && !isNaN(n.y) ? (_(), p("rect", {
828
+ key: 0,
829
+ x: Rt(n.x, t, r),
830
+ width: zt(t, r),
831
+ y: n.v >= 0 ? n.y : n.y0,
832
+ height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
833
+ fill: e.color,
834
+ style: g({ opacity: +(r >= s.valueStart && r <= s.valueEnd - 1) })
835
+ }, null, 12, Fe)) : f("", !0)], 64))), 256))]))), 256)), (_(!0), p(u, null, y(Ht.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
836
+ key: 0,
837
+ d: `M ${e.selectionSet}`,
838
+ stroke: e.color,
839
+ fill: "transparent",
840
+ "stroke-width": "2",
841
+ "stroke-linecap": "round",
842
+ "stroke-linejoin": "round"
843
+ }, null, 8, Ie)) : f("", !0)]))), 128))])),
844
+ T.value && s.minimapCompact ? (_(), p("rect", {
845
+ key: 7,
846
+ class: "vue-ui-zoom-compact-minimap-handle",
847
+ x: R.value.x - Math.min(40, Math.max(20, s.handleWidth)),
848
+ y: 0,
849
+ width: Math.min(40, Math.max(20, s.handleWidth)),
850
+ height: j.value.height,
851
+ fill: s.handleFill || A.value,
852
+ stroke: s.handleBorderColor || s.textColor,
853
+ "stroke-width": s.handleBorderWidth,
854
+ rx: 3
855
+ }, null, 8, Le)) : f("", !0),
856
+ s.handleType && s.handleType !== "empty" ? (_(), p("svg", {
857
+ key: 8,
858
+ x: R.value.x - Math.min(40, Math.max(20, s.handleWidth)),
859
+ y: 0,
860
+ width: Math.min(40, Math.max(20, s.handleWidth)),
861
+ height: j.value.height,
862
+ viewBox: "0 0 20 20"
863
+ }, [s.handleType === "arrow" ? (_(), p("path", {
864
+ key: 0,
865
+ 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",
866
+ fill: A.value,
867
+ stroke: s.handleIconColor || s.textColor,
868
+ "stroke-width": .618,
869
+ "stroke-linejoin": "round",
870
+ "stroke-linecap": "round"
871
+ }, null, 8, ze)) : s.handleType === "chevron" ? (_(), p("path", {
872
+ key: 1,
873
+ d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
874
+ fill: "none",
875
+ stroke: s.handleIconColor || s.textColor,
876
+ "stroke-width": .618,
877
+ "stroke-linejoin": "round",
878
+ "stroke-linecap": "round"
879
+ }, null, 8, Be)) : s.handleType === "grab" ? (_(), p("path", {
880
+ key: 2,
881
+ 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",
882
+ fill: s.handleIconColor || s.textColor,
883
+ stroke: "none",
884
+ opacity: "0.6"
885
+ }, null, 8, Ve)) : f("", !0)], 8, Re)) : f("", !0),
886
+ T.value && s.minimapCompact ? (_(), p("rect", {
887
+ key: 9,
888
+ class: "vue-ui-zoom-compact-minimap-handle",
889
+ x: R.value.x + R.value.width,
890
+ y: 0,
891
+ width: Math.min(40, Math.max(20, s.handleWidth)),
892
+ height: j.value.height,
893
+ fill: s.handleFill || A.value,
894
+ stroke: s.handleBorderColor || s.textColor,
895
+ "stroke-width": s.handleBorderWidth,
896
+ rx: 3
897
+ }, null, 8, He)) : f("", !0),
898
+ s.handleType && s.handleType !== "empty" ? (_(), p("svg", {
899
+ key: 10,
900
+ x: R.value.x + R.value.width,
901
+ y: 0,
902
+ width: Math.min(40, Math.max(20, s.handleWidth)),
903
+ height: j.value.height,
904
+ viewBox: "0 0 20 20"
905
+ }, [s.handleType === "arrow" ? (_(), p("path", {
906
+ key: 0,
907
+ 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",
908
+ fill: A.value,
909
+ stroke: s.handleIconColor || s.textColor,
910
+ "stroke-width": .618,
911
+ "stroke-linejoin": "round",
912
+ "stroke-linecap": "round"
913
+ }, null, 8, We)) : s.handleType === "chevron" ? (_(), p("path", {
914
+ key: 1,
915
+ d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
916
+ fill: "none",
917
+ stroke: s.handleIconColor || s.textColor,
918
+ "stroke-width": .618,
919
+ "stroke-linejoin": "round",
920
+ "stroke-linecap": "round"
921
+ }, null, 8, Ge)) : s.handleType === "grab" ? (_(), p("path", {
922
+ key: 2,
923
+ 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",
924
+ fill: s.handleIconColor || s.textColor,
925
+ stroke: "none",
926
+ opacity: "0.6"
927
+ }, null, 8, Ke)) : f("", !0)], 8, Ue)) : f("", !0),
928
+ s.minimapMerged ? (_(), p(u, { key: 11 }, [
929
+ L.value && L.value.firstPlot && L.value.firstPlot.value !== null ? (_(), p("circle", {
930
+ key: 0,
931
+ cx: L.value.firstPlot.x,
932
+ cy: L.value.firstPlot.y,
933
+ "stroke-width": "0.5",
934
+ stroke: A.value,
935
+ r: "4",
936
+ fill: s.minimapLineColor
937
+ }, null, 8, qe)) : f("", !0),
938
+ L.value && L.value.firstPlot && L.value.firstPlot.value !== null ? (_(), p("circle", {
939
+ key: 1,
940
+ cx: L.value.firstPlot.x,
941
+ cy: L.value.firstPlot.y,
942
+ r: "2",
943
+ fill: A.value
944
+ }, null, 8, Je)) : f("", !0),
945
+ L.value && L.value.lastPlot && L.value.lastPlot.value !== null ? (_(), p("circle", {
946
+ key: 2,
947
+ cx: L.value.lastPlot.x,
948
+ cy: L.value.lastPlot.y,
949
+ "stroke-width": "0.5",
950
+ stroke: A.value,
951
+ r: "4",
952
+ fill: s.minimapLineColor
953
+ }, null, 8, Ye)) : f("", !0),
954
+ L.value && L.value.lastPlot && L.value.lastPlot.value !== null ? (_(), p("circle", {
955
+ key: 3,
956
+ cx: L.value.lastPlot.x,
957
+ cy: L.value.lastPlot.y,
958
+ r: "2",
959
+ fill: A.value
960
+ }, null, 8, Xe)) : f("", !0)
961
+ ], 64)) : (_(), p("g", Ze, [(_(!0), p(u, null, y(Ht.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [
962
+ e.isVisible ? (_(!0), p(u, { key: 0 }, y(e.selectionMarkers, (t) => (_(), p("circle", {
963
+ key: `sel-dot-${e.key}-${t.i}`,
964
+ cx: t.x,
965
+ cy: t.y,
966
+ r: "2.5",
967
+ fill: e.color,
968
+ stroke: A.value,
969
+ "stroke-width": "0.5"
970
+ }, null, 8, Qe))), 128)) : f("", !0),
971
+ e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
972
+ key: 1,
973
+ cx: e.firstPlot.x,
974
+ cy: e.firstPlot.y,
975
+ "stroke-width": "0.5",
976
+ stroke: A.value,
977
+ r: "4",
978
+ fill: e.color
979
+ }, null, 8, $e)) : f("", !0),
980
+ e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
981
+ key: 2,
982
+ cx: e.firstPlot.x,
983
+ cy: e.firstPlot.y,
984
+ r: "2",
985
+ fill: A.value
986
+ }, null, 8, et)) : f("", !0),
987
+ e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
988
+ key: 3,
989
+ cx: e.lastPlot.x,
990
+ cy: e.lastPlot.y,
991
+ "stroke-width": "0.5",
992
+ stroke: A.value,
993
+ r: "4",
994
+ fill: e.color
995
+ }, null, 8, tt)) : f("", !0),
996
+ e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
997
+ key: 4,
998
+ cx: e.lastPlot.x,
999
+ cy: e.lastPlot.y,
1000
+ r: "2",
1001
+ fill: A.value
1002
+ }, null, 8, nt)) : f("", !0)
1003
+ ]))), 128))])),
1004
+ (_(!0), p(u, null, y(Dt.value, (e, n) => (_(), p("rect", {
1005
+ key: `trap-${n}`,
1006
+ y: 0,
1007
+ height: Math.max(j.value.height, 0),
1008
+ fill: "transparent",
1009
+ style: g([{ "pointer-events": "all !important" }, { cursor: e >= Q.value && e < $.value && s.enableSelectionDrag ? q.value ? "grabbing" : "grab" : "default" }]),
1010
+ x: P.value * n - (s.minimapCompact ? P.value / 2 : 0),
1011
+ width: P.value < 0 ? 0 : P.value,
1012
+ onMousedown: t[0] ||= (e) => q.value = !0,
1013
+ onMouseup: t[1] ||= (e) => q.value = !1,
1014
+ onMouseenter: (t) => Gt(e),
1015
+ onMouseleave: t[2] ||= (e) => {
1016
+ z.value = null, D("trapMouse", null);
1017
+ }
1018
+ }, null, 44, rt))), 128))
1019
+ ], 8, be))])) : f("", !0),
1020
+ m("div", {
1021
+ class: "slider-track",
1022
+ style: g({ visibility: T.value && s.minimapCompact ? "hidden" : "visible" })
1023
+ }, null, 4),
1024
+ m("div", {
1025
+ class: h({
1026
+ "range-highlight": !0,
1027
+ move: s.enableSelectionDrag
1028
+ }),
1029
+ onMousedown: t[3] ||= (e) => q.value = !0,
1030
+ onMouseup: t[4] ||= (e) => q.value = !1,
1031
+ style: g({
1032
+ ...k.value,
1033
+ cursor: q.value ? "grabbing" : "grab",
1034
+ visibility: T.value && s.minimapCompact ? "hidden" : "visible"
1035
+ })
1036
+ }, null, 38),
1037
+ s.enableRangeHandles ? he((_(), p("input", {
1038
+ key: 1,
1039
+ ref_key: "rangeStart",
1040
+ ref: Kt,
1041
+ type: "range",
1042
+ class: h({
1043
+ "range-left": !0,
1044
+ "range-handle": !0,
1045
+ "range-minimap": T.value && s.verticalHandles,
1046
+ "range-invisible": T.value && s.minimapCompact
1047
+ }),
1048
+ min: s.min,
1049
+ max: E.value && s.minimapCompact ? gt.value : s.max,
1050
+ step: 1,
1051
+ "onUpdate:modelValue": t[5] ||= (e) => St.value = e,
1052
+ onMouseenter: t[6] ||= (e) => bn("start")
1053
+ }, null, 42, it)), [[
1054
+ me,
1055
+ St.value,
1056
+ void 0,
1057
+ { number: !0 }
1058
+ ]]) : f("", !0),
1059
+ s.enableRangeHandles ? he((_(), p("input", {
1060
+ key: 2,
1061
+ ref_key: "rangeEnd",
1062
+ ref: qt,
1063
+ type: "range",
1064
+ class: h({
1065
+ "range-right": !0,
1066
+ "range-handle": !0,
1067
+ "range-minimap": T.value && s.verticalHandles,
1068
+ "range-invisible": T.value && s.minimapCompact
1069
+ }),
1070
+ min: s.min,
1071
+ max: E.value && s.minimapCompact ? gt.value : s.max,
1072
+ step: 1,
1073
+ "onUpdate:modelValue": t[7] ||= (e) => Ct.value = e,
1074
+ onMouseenter: t[8] ||= (e) => bn("end")
1075
+ }, null, 42, at)), [[
1076
+ me,
1077
+ Ct.value,
1078
+ void 0,
1079
+ { number: !0 }
1080
+ ]]) : f("", !0),
1081
+ s.labelLeft ? (_(), p("div", {
1082
+ key: 3,
1083
+ ref_key: "tooltipLeft",
1084
+ ref: J,
1085
+ class: h({
1086
+ "range-tooltip": !0,
1087
+ "range-tooltip-visible": X.value,
1088
+ "range-tooltip-arrow": k.value.arrowLeft && !s.verticalHandles,
1089
+ "range-tooltip-arrow-left": !k.value.arrowLeft && !s.verticalHandles
1090
+ }),
1091
+ style: g({
1092
+ left: k.value.tooltipLeft,
1093
+ color: fe(a)(s.selectColor),
1094
+ backgroundColor: s.selectColor,
1095
+ border: `1px solid ${A.value}`,
1096
+ zIndex: `${yn.value + 4}`,
1097
+ visibility: Z.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
1098
+ top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1099
+ })
1100
+ }, de(s.labelLeft), 7)) : f("", !0),
1101
+ (Z.value || s.labelLeft === s.labelRight) && (s.labelLeft || s.labelRight) ? (_(), p("div", {
1102
+ key: 4,
1103
+ ref: "tooltipMerge",
1104
+ class: h({
1105
+ "range-tooltip": !0,
1106
+ "range-tooltip-visible": X.value,
1107
+ "range-tooltip-arrow": !0,
1108
+ "range-tooltip-arrow-left": !k.value.arrowLeft && !s.verticalHandles,
1109
+ "range-tooltip-arrow-right": !k.value.arrowRight && !s.verticalHandles
1110
+ }),
1111
+ style: g({
1112
+ left: k.value.tooltipCenter,
1113
+ width: xn.value.width + "px",
1114
+ color: fe(a)(s.selectColor),
1115
+ backgroundColor: s.selectColor,
1116
+ border: `1px solid ${A.value}`,
1117
+ zIndex: "4",
1118
+ top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1119
+ })
1120
+ }, de(s.labelLeft === s.labelRight ? s.labelLeft : `${s.labelLeft} - ${s.labelRight}`), 7)) : f("", !0),
1121
+ s.labelRight ? (_(), p("div", {
1122
+ key: 5,
1123
+ ref_key: "tooltipRight",
1124
+ ref: Y,
1125
+ class: h({
1126
+ "range-tooltip": !0,
1127
+ "range-tooltip-visible": X.value,
1128
+ "range-tooltip-arrow": k.value.arrowRight && !s.verticalHandles,
1129
+ "range-tooltip-arrow-right": !k.value.arrowRight && !s.verticalHandles
1130
+ }),
1131
+ style: g({
1132
+ left: k.value.tooltipRight,
1133
+ color: fe(a)(s.selectColor),
1134
+ backgroundColor: s.selectColor,
1135
+ border: `1px solid ${A.value}`,
1136
+ zIndex: "4",
1137
+ visibility: Z.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
1138
+ top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1139
+ })
1140
+ }, de(s.labelRight), 7)) : f("", !0)
1141
+ ], 36)], 44, ge));
1142
+ }
1143
+ }, [["__scopeId", "data-v-8da21d29"]]);
1144
+ //#endregion
1145
+ export { st as t };