vue-data-ui 3.11.0 → 3.11.2

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 (142) hide show
  1. package/README.md +2 -2
  2. package/dist/{BaseDraggableDialog-Ca6iTqi8.js → BaseDraggableDialog-SswGoxlj.js} +1 -1
  3. package/dist/{BaseIcon-DlnfQOPC.js → BaseIcon-CYSJuCRd.js} +6 -3
  4. package/dist/{BaseZoomControls-Cap5wn8s.js → BaseZoomControls-C6oe8vvf.js} +1 -1
  5. package/dist/{ColorPicker-DI0ilgcp.js → ColorPicker-Cb8oPDuF.js} +1 -1
  6. package/dist/{DataTable-KIMqDIJv.js → DataTable-DiaJI04f.js} +1 -1
  7. package/dist/{NonSvgPenAndPaper-C1xyAC8W.js → NonSvgPenAndPaper-CEPPMuvv.js} +2 -2
  8. package/dist/{PackageVersion-CeU7wfkb.js → PackageVersion-DLxnBD7g.js} +1 -1
  9. package/dist/{PenAndPaper-BrX5Qp19.js → PenAndPaper-B26d81vz.js} +2 -2
  10. package/dist/{Slicer-BGnCg0Vk.js → Slicer-DbgiQkoS.js} +1 -1
  11. package/dist/SlicerPreview-lQoYQ0EQ.js +1170 -0
  12. package/dist/{UserOptions-DToFtFUD.js → UserOptions-CZTaqf79.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-donut-evolution.js +1 -1
  28. package/dist/components/vue-ui-donut.js +1 -1
  29. package/dist/components/vue-ui-dumbbell.js +1 -1
  30. package/dist/components/vue-ui-flow.js +1 -1
  31. package/dist/components/vue-ui-funnel.js +1 -1
  32. package/dist/components/vue-ui-galaxy.js +1 -1
  33. package/dist/components/vue-ui-gauge.js +1 -1
  34. package/dist/components/vue-ui-geo.js +1 -1
  35. package/dist/components/vue-ui-gizmo.js +1 -1
  36. package/dist/components/vue-ui-heatmap.js +1 -1
  37. package/dist/components/vue-ui-history-plot.js +1 -1
  38. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  39. package/dist/components/vue-ui-icon.js +1 -1
  40. package/dist/components/vue-ui-molecule.js +1 -1
  41. package/dist/components/vue-ui-mood-radar.js +1 -1
  42. package/dist/components/vue-ui-nested-donuts.js +1 -1
  43. package/dist/components/vue-ui-onion.js +1 -1
  44. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  45. package/dist/components/vue-ui-quadrant.js +1 -1
  46. package/dist/components/vue-ui-quick-chart.js +1 -1
  47. package/dist/components/vue-ui-radar.js +1 -1
  48. package/dist/components/vue-ui-relation-circle.js +1 -1
  49. package/dist/components/vue-ui-ridgeline.js +1 -1
  50. package/dist/components/vue-ui-rings.js +1 -1
  51. package/dist/components/vue-ui-scatter.js +1 -1
  52. package/dist/components/vue-ui-skeleton.js +1 -1
  53. package/dist/components/vue-ui-spark-trend.js +1 -1
  54. package/dist/components/vue-ui-sparkbar.js +1 -1
  55. package/dist/components/vue-ui-sparkgauge.js +1 -1
  56. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  57. package/dist/components/vue-ui-sparkline.js +1 -1
  58. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  59. package/dist/components/vue-ui-stackbar.js +1 -1
  60. package/dist/components/vue-ui-stackline.js +1 -1
  61. package/dist/components/vue-ui-strip-plot.js +1 -1
  62. package/dist/components/vue-ui-table-heatmap.js +1 -1
  63. package/dist/components/vue-ui-table-sparkline.js +1 -1
  64. package/dist/components/vue-ui-table.js +1 -1
  65. package/dist/components/vue-ui-thermometer.js +1 -1
  66. package/dist/components/vue-ui-timer.js +1 -1
  67. package/dist/components/vue-ui-tiremarks.js +1 -1
  68. package/dist/components/vue-ui-treemap.js +1 -1
  69. package/dist/components/vue-ui-vertical-bar.js +1 -1
  70. package/dist/components/vue-ui-waffle.js +1 -1
  71. package/dist/components/vue-ui-wheel.js +1 -1
  72. package/dist/components/vue-ui-word-cloud.js +1 -1
  73. package/dist/components/vue-ui-world.js +1 -1
  74. package/dist/components/vue-ui-xy-canvas.js +1 -1
  75. package/dist/components/vue-ui-xy.js +1 -1
  76. package/dist/style.css +1 -1
  77. package/dist/types/vue-data-ui.d.ts +4 -0
  78. package/dist/{vue-data-ui-BGVCuqpQ.js → vue-data-ui-DmXXjgzH.js} +63 -63
  79. package/dist/vue-data-ui.js +65 -65
  80. package/dist/{vue-ui-3d-bar-D5V7OTy6.js → vue-ui-3d-bar-BlSnB7WZ.js} +1 -1
  81. package/dist/{vue-ui-accordion-bYZsb7Wp.js → vue-ui-accordion-D9NWWdmm.js} +1 -1
  82. package/dist/{vue-ui-age-pyramid-DU6S6j3t.js → vue-ui-age-pyramid-HMWJtx9j.js} +1 -1
  83. package/dist/{vue-ui-annotator-Rg1nfT2x.js → vue-ui-annotator-C32PJed6.js} +3 -3
  84. package/dist/{vue-ui-bullet-53zY2KH_.js → vue-ui-bullet-DctD4loO.js} +1 -1
  85. package/dist/{vue-ui-bump-WL7u9LH8.js → vue-ui-bump-BsfpeqfE.js} +2 -2
  86. package/dist/{vue-ui-candlestick-axcfwfzv.js → vue-ui-candlestick-DP73OFZm.js} +6 -4
  87. package/dist/{vue-ui-carousel-table-BwVI9q5l.js → vue-ui-carousel-table-CgCQaK5U.js} +1 -1
  88. package/dist/{vue-ui-chestnut-BWc1L3Zp.js → vue-ui-chestnut-Bm6wE4LM.js} +1 -1
  89. package/dist/{vue-ui-chord-C__n2WRw.js → vue-ui-chord-BFt2sCpi.js} +1 -1
  90. package/dist/{vue-ui-circle-pack-EFD74yni.js → vue-ui-circle-pack-tfi4NlOn.js} +1 -1
  91. package/dist/{vue-ui-cursor-Bo2mzfdU.js → vue-ui-cursor-zV1qbWXc.js} +1 -1
  92. package/dist/{vue-ui-dag-BOH1qkhM.js → vue-ui-dag-CsDTgOl7.js} +2 -2
  93. package/dist/{vue-ui-dashboard-Devvdb8N.js → vue-ui-dashboard-DyBKvorl.js} +60 -60
  94. package/dist/{vue-ui-donut-D4dQZZnH.js → vue-ui-donut-DoAtemvr.js} +1 -1
  95. package/dist/{vue-ui-donut-evolution-Bb6pNSl2.js → vue-ui-donut-evolution-D6_zWcpG.js} +2 -2
  96. package/dist/{vue-ui-dumbbell-BSLXEtpa.js → vue-ui-dumbbell-NiyEPHg8.js} +1 -1
  97. package/dist/{vue-ui-flow-C_K8v9-T.js → vue-ui-flow-CqcSUcbU.js} +1 -1
  98. package/dist/{vue-ui-funnel-BlJX4I86.js → vue-ui-funnel-D0maBsJP.js} +1 -1
  99. package/dist/{vue-ui-galaxy-Dnt7eTvj.js → vue-ui-galaxy-6tbnIjjx.js} +1 -1
  100. package/dist/{vue-ui-gauge-DU3L-c2d.js → vue-ui-gauge-c0JcmUri.js} +1 -1
  101. package/dist/{vue-ui-geo-Cb3OcIOH.js → vue-ui-geo-BXLLXqWf.js} +2 -2
  102. package/dist/{vue-ui-gizmo-Bd4TUwgC.js → vue-ui-gizmo-B32eurdz.js} +1 -1
  103. package/dist/{vue-ui-heatmap-C3sJRXrr.js → vue-ui-heatmap-CHWt3Hkh.js} +2 -2
  104. package/dist/{vue-ui-history-plot-C0mRo1Xh.js → vue-ui-history-plot-C060n7-2.js} +1 -1
  105. package/dist/{vue-ui-horizontal-bar-Bezsc-fA.js → vue-ui-horizontal-bar-Dc8-sPyq.js} +6 -6
  106. package/dist/{vue-ui-molecule-CNTjty7x.js → vue-ui-molecule-CpLNW_Kd.js} +1 -1
  107. package/dist/{vue-ui-mood-radar-CUZNpZVO.js → vue-ui-mood-radar-Cn8_SAxS.js} +1 -1
  108. package/dist/{vue-ui-nested-donuts-B2efHRHL.js → vue-ui-nested-donuts-bbuXuYbx.js} +1 -1
  109. package/dist/{vue-ui-onion-DftdWrmN.js → vue-ui-onion-CJ4ZHa0G.js} +1 -1
  110. package/dist/{vue-ui-parallel-coordinate-plot-avk0nC2O.js → vue-ui-parallel-coordinate-plot-D1uTKG_a.js} +1 -1
  111. package/dist/{vue-ui-quadrant-CcES0yJX.js → vue-ui-quadrant-DoWhAe1X.js} +251 -240
  112. package/dist/{vue-ui-quick-chart-Lhko6jZO.js → vue-ui-quick-chart-WTQa0nss.js} +2 -2
  113. package/dist/{vue-ui-radar-CZzLTV82.js → vue-ui-radar-CjWeEjX0.js} +1 -1
  114. package/dist/{vue-ui-relation-circle-DKsYPxga.js → vue-ui-relation-circle-DF1BVyZF.js} +1 -1
  115. package/dist/{vue-ui-ridgeline-CG4vAPEc.js → vue-ui-ridgeline-DpoDX2q8.js} +1 -1
  116. package/dist/{vue-ui-rings-Bib2u3Iy.js → vue-ui-rings-CgNlzDLR.js} +1 -1
  117. package/dist/{vue-ui-scatter-Ck1GlFtJ.js → vue-ui-scatter-B6Ionwp7.js} +1 -1
  118. package/dist/{vue-ui-skeleton-DoVdtkN0.js → vue-ui-skeleton-Bs52mnO6.js} +1 -1
  119. package/dist/{vue-ui-spark-trend-BugjXnUh.js → vue-ui-spark-trend-cPrrXnGa.js} +1 -1
  120. package/dist/{vue-ui-sparkbar-D3VgwOnn.js → vue-ui-sparkbar-B0ml1xny.js} +1 -1
  121. package/dist/{vue-ui-sparkgauge-CLJ-JREV.js → vue-ui-sparkgauge-CCI8ih4a.js} +1 -1
  122. package/dist/{vue-ui-sparkhistogram-D_P8dpNb.js → vue-ui-sparkhistogram-DAyFha1F.js} +1 -1
  123. package/dist/{vue-ui-sparkline-Cq90PKWK.js → vue-ui-sparkline-D-WamO7n.js} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-CxtZQvtK.js → vue-ui-sparkstackbar-B1RGKSeg.js} +1 -1
  125. package/dist/{vue-ui-stackbar-D-iHtRc0.js → vue-ui-stackbar-CYcDJfOF.js} +2 -2
  126. package/dist/{vue-ui-stackline-DvgRG0E5.js → vue-ui-stackline-D6cEQ1JM.js} +2 -2
  127. package/dist/{vue-ui-strip-plot-Bk78cTIb.js → vue-ui-strip-plot-CjDvkGTC.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-_SbbUYwq.js → vue-ui-table-heatmap-CYn_-4-k.js} +1 -1
  129. package/dist/{vue-ui-table-sparkline-DnNcAKYJ.js → vue-ui-table-sparkline-P9_eeIHb.js} +1 -1
  130. package/dist/{vue-ui-table-CjOh09D-.js → vue-ui-table-y4cdpBq-.js} +3 -3
  131. package/dist/{vue-ui-thermometer-CdEv5Xfv.js → vue-ui-thermometer-BiDFcqPp.js} +1 -1
  132. package/dist/{vue-ui-timer-CyD-GmM7.js → vue-ui-timer-BzptMLtZ.js} +2 -2
  133. package/dist/{vue-ui-tiremarks-BRI09NAS.js → vue-ui-tiremarks-BDB8GyYb.js} +1 -1
  134. package/dist/{vue-ui-treemap-BfgB8BTQ.js → vue-ui-treemap-BjvbnrKs.js} +2 -2
  135. package/dist/{vue-ui-waffle-Ba0-xqsn.js → vue-ui-waffle-BPQZh-J1.js} +1 -1
  136. package/dist/{vue-ui-wheel-BDCbjnoD.js → vue-ui-wheel-eUoARbR9.js} +1 -1
  137. package/dist/{vue-ui-word-cloud-CsCvZYqx.js → vue-ui-word-cloud-gmnqy9BO.js} +2 -2
  138. package/dist/{vue-ui-world-CfwVv-9P.js → vue-ui-world-LURvLgLU.js} +1 -1
  139. package/dist/{vue-ui-xy-C9qRqR1C.js → vue-ui-xy-B9MWqIQh.js} +858 -823
  140. package/dist/{vue-ui-xy-canvas-B0ua74yH.js → vue-ui-xy-canvas-BQse8x4G.js} +4 -4
  141. package/package.json +1 -1
  142. package/dist/SlicerPreview-BPmM6icl.js +0 -1148
@@ -0,0 +1,1170 @@
1
+ import { useCssVars as ol, computed as s, ref as d, watch as Q, onMounted as rl, onBeforeUnmount as De, onUpdated as dt, nextTick as xe, createElementBlock as i, openBlock as u, createElementVNode as L, createCommentVNode as v, renderSlot as ft, normalizeStyle as R, createVNode as sl, withDirectives as gt, unref as pe, Fragment as y, renderList as S, normalizeProps as yt, mergeProps as xt, normalizeClass as _, withKeys as pt, vModelText as bt, toDisplayString as ze } from "vue";
2
+ import { c as cl, y as vl, X as ml, x as We, z as Mt, A as kt, B as wt, C as St, D as Ct } from "./lib-CVHM9FhP.js";
3
+ import { t as Xe, d as hl, u as dl } from "./useResponsive-DfdjqQps.js";
4
+ import fl from "./BaseIcon-CYSJuCRd.js";
5
+ import { _ as gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const yl = {
7
+ class: "vue-data-ui-slicer-labels",
8
+ style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
+ }, xl = {
10
+ key: 0,
11
+ style: { width: "100%", position: "relative" }
12
+ }, pl = {
13
+ key: 0,
14
+ class: "minimap",
15
+ style: { width: "100%" }
16
+ }, bl = ["xmlns", "viewBox"], Ml = ["id"], kl = ["stop-color"], wl = ["width", "height", "stroke"], Sl = ["d", "stroke"], Cl = ["d", "fill"], Nl = ["x", "y", "width", "height", "fill"], Pl = ["d", "stroke"], $l = ["cx", "cy", "fill", "stroke"], Ll = ["cx", "cy", "fill", "stroke"], Fl = ["x", "width", "height", "fill", "rx"], Rl = ["x", "width", "height", "rx", "fill"], Al = ["x", "width", "height", "fill", "rx"], El = ["x2", "y1", "y2", "stroke"], Tl = { key: "merged-tree" }, Vl = ["d", "fill"], Bl = ["d", "stroke"], Il = ["cx", "cy", "stroke", "fill"], Dl = ["cx", "cy", "stroke", "fill"], zl = { key: "split-tree" }, Wl = ["x", "y", "width", "height", "fill"], Xl = ["d", "stroke"], Hl = ["cx", "cy", "fill", "stroke"], Ol = ["x", "height", "fill", "stroke"], Zl = ["x", "height", "fill", "stroke"], Ul = { key: "merged-tree" }, Kl = ["cx", "cy", "stroke", "fill"], Yl = ["cx", "cy", "fill"], jl = ["cx", "cy", "stroke", "fill"], ql = ["cx", "cy", "fill"], Gl = { key: 1 }, Jl = ["d", "stroke"], Ql = ["cx", "cy", "fill", "stroke"], _l = ["cx", "cy", "stroke", "fill"], ea = ["cx", "cy", "fill"], ta = ["cx", "cy", "stroke", "fill"], la = ["cx", "cy", "fill"], aa = ["cx", "cy", "fill", "stroke"], na = ["x", "height", "width", "onMouseenter"], ia = ["min", "max"], ua = ["min", "max"], He = 48, oa = {
17
+ __name: "SlicerPreview",
18
+ props: {
19
+ immediate: {
20
+ type: Boolean,
21
+ default: !0
22
+ },
23
+ background: {
24
+ type: String,
25
+ default: "#FFFFFF"
26
+ },
27
+ borderColor: {
28
+ type: String,
29
+ default: "#FFFFFF"
30
+ },
31
+ fontSize: {
32
+ type: Number,
33
+ default: 14
34
+ },
35
+ labelLeft: {
36
+ type: [String, Number],
37
+ default: ""
38
+ },
39
+ labelRight: {
40
+ type: [String, Number],
41
+ default: ""
42
+ },
43
+ textColor: {
44
+ type: String,
45
+ default: "#1A1A1A"
46
+ },
47
+ inputColor: {
48
+ type: String,
49
+ default: "#1A1A1A"
50
+ },
51
+ max: {
52
+ type: Number,
53
+ default: 0
54
+ },
55
+ min: {
56
+ type: Number,
57
+ default: 0
58
+ },
59
+ selectColor: {
60
+ type: String,
61
+ default: "#4A4A4A"
62
+ },
63
+ useResetSlot: {
64
+ type: Boolean,
65
+ default: !1
66
+ },
67
+ valueStart: {
68
+ type: [Number, String],
69
+ default: 0
70
+ },
71
+ valueEnd: {
72
+ type: [Number, String],
73
+ default: 0
74
+ },
75
+ minimap: {
76
+ type: Array,
77
+ default: []
78
+ },
79
+ smoothMinimap: {
80
+ type: Boolean,
81
+ default: !1
82
+ },
83
+ minimapSelectedColor: {
84
+ type: String,
85
+ default: "#1f77b4"
86
+ },
87
+ minimapSelectionRadius: {
88
+ type: Number,
89
+ default: 12
90
+ },
91
+ minimapLineColor: {
92
+ type: String,
93
+ default: "#2D353C"
94
+ },
95
+ minimapSelectedColorOpacity: {
96
+ type: Number,
97
+ default: 0.2
98
+ },
99
+ minimapSelectedIndex: {
100
+ type: Number,
101
+ default: null
102
+ },
103
+ minimapIndicatorColor: {
104
+ type: String,
105
+ default: "#2D353C"
106
+ },
107
+ refreshStartPoint: {
108
+ type: Number,
109
+ default: 0
110
+ },
111
+ refreshEndPoint: {
112
+ type: Number,
113
+ default: null
114
+ },
115
+ enableRangeHandles: {
116
+ type: Boolean,
117
+ default: !1
118
+ },
119
+ enableSelectionDrag: {
120
+ type: Boolean,
121
+ default: !0
122
+ },
123
+ verticalHandles: {
124
+ type: Boolean,
125
+ default: !1
126
+ },
127
+ timeLabels: {
128
+ type: Array
129
+ },
130
+ isPreview: {
131
+ type: Boolean,
132
+ default: !1
133
+ },
134
+ preciseLabels: {
135
+ type: Array,
136
+ default() {
137
+ return [];
138
+ }
139
+ },
140
+ usePreciseLabels: {
141
+ type: Boolean,
142
+ default: !1
143
+ },
144
+ selectedSeries: {
145
+ type: Object
146
+ },
147
+ customFormat: {
148
+ type: [Function, null]
149
+ },
150
+ minimapCompact: {
151
+ type: Boolean,
152
+ default: !1
153
+ },
154
+ allMinimaps: {
155
+ type: Array,
156
+ default() {
157
+ return [];
158
+ }
159
+ },
160
+ minimapMerged: {
161
+ type: Boolean,
162
+ default: !1
163
+ },
164
+ minimapFrameColor: {
165
+ type: String,
166
+ default: "#e1e5e8"
167
+ },
168
+ cutNullValues: {
169
+ type: Boolean,
170
+ default: !1
171
+ },
172
+ focusOnDrag: {
173
+ type: Boolean,
174
+ default: !1
175
+ },
176
+ focusRangeRatio: {
177
+ type: Number,
178
+ default: 0.1
179
+ },
180
+ minScale: {
181
+ type: Number,
182
+ default: null
183
+ },
184
+ maxScale: {
185
+ type: Number,
186
+ default: null
187
+ }
188
+ },
189
+ emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
190
+ setup(o, { expose: Nt, emit: Pt }) {
191
+ ol((e) => ({
192
+ v68e35d19: Lt.value,
193
+ v00d8e58d: g.value,
194
+ v267a553e: Rt.value,
195
+ v3de3b286: o.selectColor,
196
+ v79b22a6a: Ft.value
197
+ }));
198
+ const a = o, N = d(null), x = d(a.min), b = d(a.max), k = s(() => !!a.minimap.length), be = d(cl()), H = d(!1), U = s(() => k.value && a.minimapCompact), Oe = d(0), Me = Xe((e) => E("futureStart", e), 0), ke = Xe((e) => E("futureEnd", e), 0), ee = s({
199
+ get: () => x.value,
200
+ set(e) {
201
+ const l = Math.min(e, b.value - 1);
202
+ l !== x.value && (x.value = l, ae.value && (ae.value.value = String(l)), a.immediate ? E("update:start", Number(l)) : H.value && Me(l));
203
+ }
204
+ }), te = s({
205
+ get: () => b.value,
206
+ set(e) {
207
+ const l = Math.max(e, x.value + 1);
208
+ l !== b.value && (b.value = l, ne.value && (ne.value.value = String(l)), a.immediate ? E("update:end", Number(l)) : H.value && ke(l));
209
+ }
210
+ });
211
+ let Ze = null;
212
+ function A() {
213
+ clearTimeout(Ze), a.immediate || (E("update:start", Number(x.value)), E("update:end", Number(b.value))), H.value = !1;
214
+ }
215
+ const $t = s(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), E = Pt, me = s(() => {
216
+ if (U.value) {
217
+ const l = Math.max(1, Y.value - 1);
218
+ return de.value / l * 100;
219
+ }
220
+ const e = Math.max(1, a.max - a.min);
221
+ return (x.value - a.min) / e * 100;
222
+ }), we = s(() => {
223
+ if (U.value) {
224
+ const l = Math.max(1, Y.value - 1);
225
+ return fe.value / l * 100;
226
+ }
227
+ const e = Math.max(1, a.max - a.min);
228
+ return (b.value - a.min) / e * 100;
229
+ }), Se = s(() => (me.value + we.value) / 2), Ce = s(() => {
230
+ if (!N.value) return !1;
231
+ const e = Math.max(1, a.max - a.min);
232
+ return N.value.getBoundingClientRect().width * ((x.value - a.min) / e) - ge.value / 2 < 0;
233
+ }), Ne = s(() => {
234
+ if (!N.value) return !1;
235
+ const e = Math.max(1, a.max - a.min), l = N.value.getBoundingClientRect().width;
236
+ return l * ((b.value - a.min) / e) + re.value / 2 > l;
237
+ }), F = s(() => {
238
+ const e = Ne.value ? `calc(${Se.value}% - ${ce.value.width}px - 2px)` : Ce.value ? `calc(${Se.value}% - 8px)` : `calc(${Se.value}% - ${ce.value.width / 2}px - 4px)`;
239
+ return {
240
+ left: `${me.value}%`,
241
+ width: `${Math.max(0, we.value - me.value)}%`,
242
+ background: a.selectColor,
243
+ tooltipLeft: `calc(${me.value}% - ${Ce.value ? 9 : ge.value / 2 + 3.5}px)`,
244
+ tooltipRight: `calc(${we.value}% - ${Ne.value ? re.value - 9 : re.value / 2 - 3.5}px)`,
245
+ tooltipCenter: e,
246
+ arrowLeft: !Ce.value,
247
+ arrowRight: !Ne.value
248
+ };
249
+ }), Lt = s(() => a.inputColor), Ft = s(() => a.background), Rt = s(() => `${a.selectColor}33`), g = s(() => a.borderColor), Ue = s(() => {
250
+ let e = [];
251
+ for (let l = 0; l < a.max; l += 1)
252
+ e.push(l);
253
+ return e;
254
+ });
255
+ function Ke() {
256
+ E("reset");
257
+ }
258
+ Q(
259
+ () => a.min,
260
+ (e) => {
261
+ Number(x.value) < Number(e) && (x.value = Number(e)), Number(b.value) < Number(e) && (b.value = Number(e));
262
+ }
263
+ ), Q(
264
+ () => a.max,
265
+ (e) => {
266
+ Number(x.value) > Number(e) && (x.value = Number(e)), Number(b.value) > Number(e) && (b.value = Number(e));
267
+ }
268
+ );
269
+ const he = d(null), f = d({
270
+ width: 1,
271
+ height: 1
272
+ }), K = d(null);
273
+ rl(() => {
274
+ if (k.value) {
275
+ const e = Xe(() => {
276
+ if (!he.value) return;
277
+ const { width: l, height: t } = dl({ chart: he.value }), n = Math.max(0, Math.round(l)), r = Math.max(0, Math.round(t - 47));
278
+ (n !== f.value.width || r !== f.value.height) && (f.value.width = n, f.value.height = r);
279
+ }, 0);
280
+ K.value = new ResizeObserver(e), K.value.observe(he.value);
281
+ }
282
+ }), De(() => {
283
+ K.value && K.value.disconnect();
284
+ });
285
+ const Y = s(() => Math.max(1, a.max - a.min));
286
+ function Ye(e) {
287
+ const l = Math.floor(e - a.min);
288
+ return Math.min(Math.max(0, l), Y.value);
289
+ }
290
+ function At(e) {
291
+ const l = Math.ceil(e - a.min);
292
+ return Math.min(Math.max(0, l), Y.value);
293
+ }
294
+ const O = s(() => Ye(x.value)), j = s(() => At(b.value)), Pe = s(() => Math.max(...a.allMinimaps.map((e) => e.series.length))), M = s(() => {
295
+ if (!a.minimap.length) return 0;
296
+ const e = Math.max(1, Pe.value - (a.minimapCompact ? 1 : 0));
297
+ return f.value.width / e;
298
+ }), je = s(() => a.allMinimaps.length ? a.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), $e = s(() => M.value / (je.value || 1) * 0.8);
299
+ function qe(e, l, t) {
300
+ const n = $e.value, r = Math.max(1, je.value), c = Pe.value - 1;
301
+ return t === 0 ? e + n / 2 * l : t === c ? e - n / 2 * (r - l) : e - r * n / 2 + l * n;
302
+ }
303
+ function Ge(e, l) {
304
+ return [0, Pe.value - 1].includes(l) ? $e.value / 2 : $e.value;
305
+ }
306
+ const Et = s(() => {
307
+ const e = [];
308
+ if (Array.isArray(a.minimap) && a.minimap.length && a.minimapMerged && e.push(...a.minimap.filter(Number.isFinite)), Array.isArray(a.allMinimaps) && a.allMinimaps.length)
309
+ for (const l of a.allMinimaps)
310
+ l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
311
+ return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
312
+ }), Je = s(() => {
313
+ const e = Number(a.minScale);
314
+ return Number.isFinite(e) ? e : null;
315
+ }), Qe = s(() => {
316
+ const e = Number(a.maxScale);
317
+ return Number.isFinite(e) ? e : null;
318
+ }), Le = s(() => Je.value !== null && Qe.value !== null), _e = s(() => {
319
+ const { min: e, max: l } = Et.value, t = Je.value, n = Qe.value;
320
+ let r, c;
321
+ return t !== null && n !== null ? (r = Math.min(t, e), c = Math.max(n, l)) : (r = t !== null ? t : e, c = n !== null ? n : l), Number.isFinite(r) || (r = 0), Number.isFinite(c) || (c = 1), r === c ? c = r + 1 : r > c && ([r, c] = [c, r]), { min: r, max: c };
322
+ }), q = s(() => _e.value.min), le = s(() => _e.value.max), Tt = s(() => q.value < 0 && le.value > 0 || le.value <= 0 ? q.value : 0), Vt = (e) => {
323
+ const l = Math.max(1, f.value.height);
324
+ return et(
325
+ q.value,
326
+ le.value,
327
+ l,
328
+ Le.value
329
+ )(e);
330
+ }, Fe = s(() => Vt(0));
331
+ function et(e, l, t, n = !1) {
332
+ const r = (h, C, $) => Math.max(C, Math.min($, h)), T = Math.max(1e-9, l - e);
333
+ if (n)
334
+ return (h) => {
335
+ const C = (h - e) / T;
336
+ return t - C * t;
337
+ };
338
+ if (l <= 0) {
339
+ const h = Math.max(1e-9, 0 - e);
340
+ return (C) => t - (C - e) / h * t;
341
+ } else if (e >= 0) {
342
+ const h = Math.max(1e-9, l - 0);
343
+ return (C) => t - (C - 0) / h * t;
344
+ } else {
345
+ const h = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
346
+ return (C) => (1 - (r(C / h, -1, 1) + 1) / 2) * t;
347
+ }
348
+ }
349
+ function tt(e, l = !1) {
350
+ if (!e || !e.length)
351
+ return {
352
+ fullSet: "",
353
+ points: [],
354
+ selectionSet: "",
355
+ sliced: [],
356
+ firstPlot: null,
357
+ lastPlot: null,
358
+ hasFull: !1,
359
+ hasSelection: !1,
360
+ fullMarkers: [],
361
+ selectionMarkers: []
362
+ };
363
+ const t = Math.max(1, f.value.height), n = et(q.value, le.value, t, Le.value), r = e.length, c = Math.min(Math.max(0, O.value), Math.max(0, r - 1)), T = Math.min(r, Math.max(c + 1, j.value)), h = e.map((p, mt) => {
364
+ const ve = p, ht = Number.isFinite(ve), el = M.value * mt + (a.minimapCompact ? 0 : M.value / 2), tl = (nl, il, ul) => Math.max(il, Math.min(ul, nl)), ll = Le.value ? tl(0, q.value, le.value) : 0, al = n(ll);
365
+ return {
366
+ x: el,
367
+ y: ht ? n(ve) : NaN,
368
+ v: ve,
369
+ value: ve == null ? null : ht ? ve : null,
370
+ y0: al,
371
+ i: mt
372
+ };
373
+ }), C = (p) => p >= 0 && p < h.length && Number.isFinite(h[p]?.value), $ = h.filter((p) => Number.isFinite(p.value) && !C(p.i - 1) && !C(p.i + 1)), ye = $.filter((p) => p.i >= c && p.i < T), Z = h.slice(c, T), Qt = h.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? Mt(h) : kt(h.filter((p) => p.value != null)) : a.cutNullValues ? wt(h) : St(h.filter((p) => p.value != null)) : "", _t = Z.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? Mt(Z) : kt(Z.filter((p) => p.value != null)) : a.cutNullValues ? wt(Z) : St(Z.filter((p) => p.value != null)) : "";
374
+ return {
375
+ fullSet: Qt,
376
+ points: h,
377
+ selectionSet: _t,
378
+ sliced: Z,
379
+ firstPlot: h[c] || null,
380
+ lastPlot: h[Math.max(0, T - 1)] || null,
381
+ hasFull: h.length >= 2,
382
+ hasSelection: Z.length >= 2,
383
+ fullMarkers: $,
384
+ selectionMarkers: ye
385
+ };
386
+ }
387
+ const m = s(() => a.minimap.length ? tt(a.minimap) : []), V = s(() => a.allMinimaps.length ? a.allMinimaps.map((e, l) => {
388
+ const t = tt(e?.series || [], !!e.smooth), n = e?.id ?? e?.name ?? l;
389
+ return {
390
+ key: typeof n == "object" ? JSON.stringify(n) : String(n),
391
+ color: e?.color,
392
+ ...t,
393
+ isVisible: e.isVisible,
394
+ type: e.type || "line"
395
+ };
396
+ }) : []), P = s(() => {
397
+ const e = O.value, l = Math.max(e + 1, j.value);
398
+ return {
399
+ x: M.value * e + (a.minimapCompact ? 0 : M.value / 2),
400
+ width: M.value * (l - e) - M.value
401
+ };
402
+ }), B = d(a.minimapSelectedIndex), lt = (e) => Math.round(a.min + e), de = s({
403
+ get() {
404
+ return U.value ? O.value : Number(ee.value);
405
+ },
406
+ set(e) {
407
+ if (U.value) {
408
+ const l = Math.round(+e || 0);
409
+ Ae(lt(l));
410
+ } else {
411
+ let l = Math.round(+e || 0);
412
+ const t = Number(b.value) - 1, n = Math.min(Math.max(a.min, l), t);
413
+ ae.value && (ae.value.valueAsNumber = n), Ae(n);
414
+ }
415
+ }
416
+ }), fe = s({
417
+ get() {
418
+ return U.value ? Math.max(O.value, j.value - 1) : Number(te.value);
419
+ },
420
+ set(e) {
421
+ if (U.value) {
422
+ const l = Math.round(+e || 0);
423
+ Te(lt(l + 1));
424
+ } else {
425
+ let l = Math.round(+e || 0);
426
+ const t = Number(x.value) + 1, n = Math.max(t, Math.min(l, a.max));
427
+ ne.value && (ne.value.valueAsNumber = n), Te(n);
428
+ }
429
+ }
430
+ });
431
+ function Bt(e) {
432
+ B.value = Ye(a.valueStart) + e;
433
+ }
434
+ const It = hl(Bt, 60);
435
+ Q(() => a.minimapSelectedIndex, (e, l) => {
436
+ if ([null, void 0].includes(e)) {
437
+ B.value = null;
438
+ return;
439
+ }
440
+ e !== l && It(e);
441
+ }, { immediate: !0 });
442
+ function Dt(e) {
443
+ B.value = e;
444
+ const l = O.value, t = j.value;
445
+ e >= l && e < t && !X.value && E("trapMouse", e - l);
446
+ }
447
+ const ae = d(null), ne = d(null);
448
+ function at(e) {
449
+ if (typeof e == "object" && e && "target" in e) {
450
+ const t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
451
+ return Number.isFinite(n) ? n : NaN;
452
+ }
453
+ const l = +e;
454
+ return Number.isFinite(l) ? l : NaN;
455
+ }
456
+ let Re = 0;
457
+ function Ae(e) {
458
+ H.value = !0;
459
+ const l = at(e);
460
+ Number.isFinite(l) && (cancelAnimationFrame(Re), Re = requestAnimationFrame(() => {
461
+ ee.value = l;
462
+ }));
463
+ }
464
+ let Ee = 0;
465
+ function Te(e) {
466
+ H.value = !0;
467
+ const l = at(e);
468
+ Number.isFinite(l) && (cancelAnimationFrame(Ee), Ee = requestAnimationFrame(() => {
469
+ te.value = l;
470
+ }));
471
+ }
472
+ De(() => {
473
+ cancelAnimationFrame(Re), cancelAnimationFrame(Ee);
474
+ });
475
+ const ie = s(() => a.valueEnd - a.valueStart), zt = s(() => ie.value < a.max - a.min), G = d(!1);
476
+ let Wt = d(null);
477
+ const Xt = s(() => (Oe.value - 48) / (a.max - a.min) * ie.value), Ht = s(() => Math.max(1, Oe.value - He - Xt.value)), Ot = s(() => Math.max(1, a.max - a.min - ie.value)), Zt = s(() => Ot.value / Ht.value), nt = d(0), it = d(0), Ut = d(0), Kt = d(0);
478
+ let I = null, D = null, z = null, W = null;
479
+ const ut = d(a.min);
480
+ function Ve(e) {
481
+ if (!N.value) return a.min;
482
+ const l = N.value.getBoundingClientRect(), t = l.left + He / 2, n = l.right - He / 2, r = Math.max(1, n - t), T = (Math.max(t, Math.min(e, n)) - t) / r, h = Math.max(1, a.max - a.min);
483
+ return Math.round(a.min + T * h);
484
+ }
485
+ const ot = async (e) => {
486
+ if (H.value = !0, J.value = !0, !a.enableSelectionDrag) return;
487
+ const l = e.type === "touchstart";
488
+ l || e.stopPropagation();
489
+ const t = l && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, n = l ? t ? t.target : null : e.target;
490
+ if (!n || !(n instanceof Element) || n.classList && n.classList.contains("range-handle")) return;
491
+ G.value = !0;
492
+ const r = l ? t ? t.clientX : 0 : e.clientX;
493
+ if (Wt.value = r, nt.value = r, a.focusOnDrag && !zt.value && N.value) {
494
+ ut.value = Ve(r);
495
+ const c = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)), T = a.max - a.min, h = Math.max(1, Math.round(T * c)), C = Math.floor(h / 2);
496
+ let $ = ut.value - C;
497
+ $ = Math.max(a.min, Math.min($, a.max - h));
498
+ const ye = Math.min(a.max, $ + h);
499
+ ee.value = $, te.value = ye, Me($), ke(ye), Ct(N.value, "mouseup"), await xe(), Ct(N.value, "mousedown", { clientX: r });
500
+ }
501
+ it.value = x.value, Ut.value = b.value, Kt.value = Zt.value, I = l ? "touchmove" : "mousemove", D = l ? "touchend" : "mouseup", z = l ? jt : Yt, W = l ? Gt : qt, window.addEventListener(I, z, { passive: !1 }), window.addEventListener(D, W);
502
+ };
503
+ function Yt(e) {
504
+ G.value && rt(e.clientX);
505
+ }
506
+ function jt(e) {
507
+ if (!G.value || !N.value) return;
508
+ const l = e.target;
509
+ if (!(l instanceof Element) || !N.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
510
+ e.preventDefault();
511
+ const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
512
+ t && rt(t.clientX);
513
+ }
514
+ function rt(e) {
515
+ if (!G.value) return;
516
+ const l = Ve(nt.value), n = Ve(e) - l;
517
+ let r = Math.round(it.value + n);
518
+ r = Math.max(a.min, Math.min(r, a.max - ie.value));
519
+ const c = r + ie.value;
520
+ ee.value = r, te.value = c, Me(r), ke(c);
521
+ }
522
+ function qt() {
523
+ st();
524
+ }
525
+ function Gt() {
526
+ st();
527
+ }
528
+ function st() {
529
+ G.value = !1, I && z && window.removeEventListener(I, z), D && W && window.removeEventListener(D, W), I = D = null, z = W = null, A();
530
+ }
531
+ const X = d(!1), ue = d(null), oe = d(null), ge = d(1), re = d(1), J = d(!1);
532
+ function Be() {
533
+ if (ue.value) {
534
+ const e = Math.round(ue.value.getBoundingClientRect().width);
535
+ e !== ge.value && (ge.value = e);
536
+ }
537
+ }
538
+ function Ie() {
539
+ if (oe.value) {
540
+ const e = Math.round(oe.value.getBoundingClientRect().width);
541
+ e !== re.value && (re.value = e);
542
+ }
543
+ }
544
+ dt(() => {
545
+ Be(), Ie();
546
+ });
547
+ const ct = d(0);
548
+ function vt(e) {
549
+ ct.value = e === "start" ? 1 : 0;
550
+ }
551
+ const se = d(!1), ce = d({
552
+ width: 0,
553
+ left: 0
554
+ });
555
+ Q([x, b], async () => {
556
+ if (await xe(), !ue.value || !oe.value) {
557
+ se.value = !1, ce.value = { width: 0, left: 0 };
558
+ return;
559
+ }
560
+ const e = ue.value.getBoundingClientRect(), l = oe.value.getBoundingClientRect();
561
+ se.value = e.x + e.width > l.x;
562
+ const t = e.x + e.width / 2, n = l.x + l.width / 2, r = e.width + l.width, c = (t + n) / 2;
563
+ ce.value = {
564
+ width: r,
565
+ left: c - r / 2
566
+ };
567
+ }), dt(() => {
568
+ Be(), Ie();
569
+ }), Q(() => a.labelLeft, () => {
570
+ xe(Be);
571
+ }, { deep: !0 }), Q(() => a.labelRight, () => {
572
+ xe(Ie);
573
+ }, { deep: !0 });
574
+ const w = s(() => {
575
+ let e = "", l = "", t = !1;
576
+ if (vl(a.customFormat))
577
+ try {
578
+ const n = a.customFormat({
579
+ absoluteIndex: x.value,
580
+ seriesIndex: x.value,
581
+ datapoint: a.selectedSeries,
582
+ timeLabel: a.preciseLabels[x.value]
583
+ }), r = a.customFormat({
584
+ absoluteIndex: b.value - 1,
585
+ seriesIndex: -1,
586
+ datapoint: a.selectedSeries,
587
+ timeLabel: a.preciseLabels[b.value - 1]
588
+ });
589
+ typeof n == "string" && typeof r == "string" && (e = n, l = r, t = !0);
590
+ } catch {
591
+ t = !1;
592
+ }
593
+ if (!t) {
594
+ const n = a.usePreciseLabels ? a.preciseLabels.find((c) => c.absoluteIndex === x.value) : a.timeLabels.find((c) => c.absoluteIndex === x.value), r = a.usePreciseLabels ? a.preciseLabels.find((c) => c.absoluteIndex === b.value - 1) : a.timeLabels.find((c) => c.absoluteIndex === b.value - 1);
595
+ e = n ? n.text : "", l = r ? r.text : "";
596
+ }
597
+ return { left: e, right: l };
598
+ });
599
+ De(() => {
600
+ K.value && K.value.disconnect(), I && z && window.removeEventListener(I, z), D && W && window.removeEventListener(D, W), I = D = null, z = W = null, clearTimeout(Ze);
601
+ });
602
+ const Jt = s(() => {
603
+ if (!Ue.value.length) return null;
604
+ if (B.value >= O.value && B.value < j.value) {
605
+ const e = B.value;
606
+ return {
607
+ x1: M.value * e + (a.minimapCompact ? 0 : M.value / 2),
608
+ x2: M.value * e + (a.minimapCompact ? 0 : M.value / 2),
609
+ y1: 0,
610
+ y2: Math.max(f.value.height, 0),
611
+ stroke: a.minimapIndicatorColor,
612
+ "stroke-linecap": "round",
613
+ "stroke-dasharray": 2,
614
+ "stroke-width": 1
615
+ };
616
+ } else
617
+ return null;
618
+ });
619
+ return Nt({
620
+ setStartValue: Ae,
621
+ setEndValue: Te
622
+ }), (e, l) => (u(), i("div", {
623
+ "data-dom-to-png-ignore": "",
624
+ style: { padding: "0 24px" },
625
+ class: "vue-data-ui-zoom",
626
+ ref_key: "zoomWrapper",
627
+ ref: N,
628
+ onMousedown: ot,
629
+ onTouchstart: ot
630
+ }, [
631
+ L("div", yl, [
632
+ o.valueStart !== o.refreshStartPoint || o.valueEnd !== $t.value ? (u(), i("div", xl, [
633
+ o.useResetSlot ? ft(e.$slots, "reset-action", {
634
+ key: 1,
635
+ reset: Ke
636
+ }, void 0, !0) : (u(), i("button", {
637
+ key: 0,
638
+ tabindex: "0",
639
+ role: "button",
640
+ class: "vue-data-ui-refresh-button",
641
+ style: R({
642
+ top: k.value ? "36px" : "-16px",
643
+ pointerEvents: "all !important"
644
+ }),
645
+ onClick: Ke
646
+ }, [
647
+ sl(fl, {
648
+ name: "refresh",
649
+ stroke: o.textColor
650
+ }, null, 8, ["stroke"])
651
+ ], 4))
652
+ ])) : v("", !0)
653
+ ]),
654
+ L("div", {
655
+ class: "double-range-slider",
656
+ ref_key: "minimapWrapper",
657
+ ref: he,
658
+ style: { "z-index": "0" },
659
+ onMouseenter: l[11] || (l[11] = (t) => J.value = !0),
660
+ onMouseleave: l[12] || (l[12] = (t) => J.value = !1)
661
+ }, [
662
+ k.value ? (u(), i("div", pl, [
663
+ (u(), i("svg", {
664
+ key: `mm-${o.minimapMerged ? "merged" : "split"}-${o.minimapCompact ? "compact" : "normal"}`,
665
+ xmlns: pe(ml),
666
+ viewBox: `0 0 ${Math.max(0, f.value.width)} ${Math.max(0, f.value.height)}`
667
+ }, [
668
+ L("defs", null, [
669
+ L("linearGradient", {
670
+ id: be.value,
671
+ x1: "0%",
672
+ y1: "0%",
673
+ x2: "0%",
674
+ y2: "100%"
675
+ }, [
676
+ L("stop", {
677
+ offset: "0%",
678
+ "stop-color": `${o.minimapLineColor}50`
679
+ }, null, 8, kl),
680
+ l[13] || (l[13] = L("stop", {
681
+ offset: "100%",
682
+ "stop-color": "transparent"
683
+ }, null, -1))
684
+ ], 8, Ml)
685
+ ]),
686
+ o.minimapCompact ? (u(), i("rect", {
687
+ key: 0,
688
+ class: "vue-ui-zoom-minimap-frame",
689
+ x: 0,
690
+ y: 0,
691
+ width: f.value.width,
692
+ height: f.value.height,
693
+ fill: "none",
694
+ stroke: o.minimapFrameColor,
695
+ rx: 3
696
+ }, null, 8, wl)) : v("", !0),
697
+ e.$slots.slotMap ? v("", !0) : (u(), i(y, { key: 1 }, [
698
+ o.minimapMerged ? (u(), i("path", {
699
+ key: 0,
700
+ d: `M${m.value.fullSet}`,
701
+ stroke: `${o.minimapLineColor}`,
702
+ fill: "none",
703
+ "stroke-width": "1",
704
+ "stroke-linecap": "round",
705
+ "stroke-linejoin": "round",
706
+ style: { opacity: "0.6" }
707
+ }, null, 8, Sl)) : v("", !0),
708
+ o.minimapMerged && !o.minimapCompact ? (u(), i("path", {
709
+ key: 1,
710
+ d: `M${M.value / 2},${Math.max(f.value.height, 0)} ${m.value.fullSet} L${f.value.width - M.value / 2},${Math.max(f.value.height, 0)}Z`,
711
+ fill: `url(#${be.value})`,
712
+ stroke: "none",
713
+ style: { opacity: "0.6" }
714
+ }, null, 8, Cl)) : o.minimapMerged ? v("", !0) : (u(), i(y, { key: 2 }, [
715
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "bar" && t.isVisible), (t, n) => (u(), i("g", null, [
716
+ (u(!0), i(y, null, S(t.points, (r, c) => (u(), i(y, null, [
717
+ t && !isNaN(r.y) ? (u(), i("rect", {
718
+ key: 0,
719
+ x: qe(r.x, n, c),
720
+ y: r.v >= 0 ? r.y : r.y0,
721
+ width: Ge(n, c),
722
+ height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
723
+ fill: t.color,
724
+ style: { opacity: 0.6 }
725
+ }, null, 8, Nl)) : v("", !0)
726
+ ], 64))), 256))
727
+ ]))), 256)),
728
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "line"), (t) => (u(), i("g", null, [
729
+ t.isVisible ? (u(), i("path", {
730
+ key: 0,
731
+ d: `M ${t.fullSet}`,
732
+ fill: "none",
733
+ stroke: t.color,
734
+ style: { opacity: "0.6" }
735
+ }, null, 8, Pl)) : v("", !0),
736
+ t.isVisible && o.cutNullValues ? (u(!0), i(y, { key: 1 }, S(t.fullMarkers, (n) => (u(), i("circle", {
737
+ key: `sel-dot-under-${t.key}-${n.i}`,
738
+ cx: n.x,
739
+ cy: n.y,
740
+ r: "2",
741
+ fill: t.color,
742
+ stroke: g.value,
743
+ "stroke-width": "0.5",
744
+ style: { opacity: "0.6" }
745
+ }, null, 8, $l))), 128)) : v("", !0)
746
+ ]))), 256)),
747
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "plot"), (t) => (u(), i("g", null, [
748
+ (u(!0), i(y, null, S(t.points, (n) => (u(), i("g", null, [
749
+ t.isVisible && n.value !== null ? (u(), i("circle", {
750
+ key: `sel-plot-under-${t.key}-${n.i}`,
751
+ cx: n.x,
752
+ cy: n.y,
753
+ r: "2",
754
+ fill: t.color,
755
+ stroke: g.value,
756
+ "stroke-width": "0.5",
757
+ style: { opacity: "0.6" }
758
+ }, null, 8, Ll)) : v("", !0)
759
+ ]))), 256))
760
+ ]))), 256))
761
+ ], 64))
762
+ ], 64)),
763
+ L("rect", {
764
+ x: P.value.x,
765
+ y: 0,
766
+ width: Math.max(0, P.value.width),
767
+ height: Math.max(f.value.height, 0),
768
+ fill: g.value,
769
+ rx: o.minimapSelectionRadius,
770
+ stroke: "none"
771
+ }, null, 8, Fl),
772
+ L("rect", {
773
+ x: P.value.x,
774
+ y: 0,
775
+ width: P.value.width < 0 ? 0 : P.value.width,
776
+ height: Math.max(f.value.height, 0),
777
+ rx: o.minimapSelectionRadius,
778
+ fill: g.value,
779
+ style: R({ opacity: G.value || H.value ? 0 : 1 })
780
+ }, null, 12, Rl),
781
+ L("rect", {
782
+ x: P.value.x,
783
+ y: 0,
784
+ width: P.value.width < 0 ? 0 : P.value.width,
785
+ height: Math.max(f.value.height, 0),
786
+ fill: o.minimapSelectedColor,
787
+ rx: o.minimapSelectionRadius,
788
+ style: R({ opacity: o.minimapSelectedColorOpacity })
789
+ }, null, 12, Al),
790
+ !o.minimapMerged && Tt.value < 0 ? (u(), i("line", {
791
+ key: 2,
792
+ class: "slicer-minimap-zero-line",
793
+ x1: 0,
794
+ x2: f.value.width,
795
+ y1: Fe.value,
796
+ y2: Fe.value,
797
+ stroke: o.minimapFrameColor,
798
+ "stroke-width": "0.5"
799
+ }, null, 8, El)) : v("", !0),
800
+ e.$slots.slotMap ? v("", !0) : (u(), i(y, { key: 3 }, [
801
+ o.minimapMerged ? (u(), i("g", Tl, [
802
+ m.value && m.value.sliced && m.value.sliced.length ? (u(), i(y, { key: 0 }, [
803
+ m.value.selectionSet ? (u(), i("path", {
804
+ key: 0,
805
+ d: `M${m.value.sliced[0].x},${Math.max(f.value.height, 0)} ${m.value.selectionSet} L${m.value.sliced[m.value.sliced.length - 1].x},${Math.max(f.value.height, 0)}Z`,
806
+ fill: `url(#${be.value})`,
807
+ stroke: "none",
808
+ style: { opacity: "1" }
809
+ }, null, 8, Vl)) : v("", !0),
810
+ m.value.selectionSet ? (u(), i("path", {
811
+ key: 1,
812
+ d: `M ${m.value.selectionSet}`,
813
+ stroke: `${o.minimapLineColor}`,
814
+ fill: "transparent",
815
+ "stroke-width": "2",
816
+ "stroke-linecap": "round",
817
+ "stroke-linejoin": "round"
818
+ }, null, 8, Bl)) : v("", !0)
819
+ ], 64)) : v("", !0),
820
+ m.value && m.value.firstPlot ? (u(), i("circle", {
821
+ key: 1,
822
+ cx: m.value.firstPlot.x,
823
+ cy: m.value.firstPlot.y,
824
+ "stroke-width": "0.5",
825
+ stroke: g.value,
826
+ r: "3",
827
+ fill: o.minimapLineColor
828
+ }, null, 8, Il)) : v("", !0),
829
+ m.value && m.value.lastPlot ? (u(), i("circle", {
830
+ key: 2,
831
+ cx: m.value.lastPlot.x,
832
+ cy: m.value.lastPlot.y,
833
+ "stroke-width": "0.5",
834
+ stroke: g.value,
835
+ r: "3",
836
+ fill: o.minimapLineColor
837
+ }, null, 8, Dl)) : v("", !0)
838
+ ])) : (u(), i("g", zl, [
839
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "bar" && t.isVisible), (t, n) => (u(), i("g", null, [
840
+ (u(!0), i(y, null, S(t.points, (r, c) => (u(), i(y, null, [
841
+ t && !isNaN(r.y) ? (u(), i("rect", {
842
+ key: 0,
843
+ x: qe(r.x, n, c),
844
+ y: r.v >= 0 ? r.y : r.y0,
845
+ width: Ge(n, c),
846
+ height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
847
+ fill: t.color,
848
+ style: R({ opacity: c >= ee.value && c < te.value ? 1 : 0 })
849
+ }, null, 12, Wl)) : v("", !0)
850
+ ], 64))), 256))
851
+ ]))), 256)),
852
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
853
+ key: String(t.key)
854
+ }, [
855
+ t && t.hasSelection && t.selectionSet && t.isVisible ? (u(), i("path", {
856
+ key: 0,
857
+ d: `M ${t.selectionSet}`,
858
+ stroke: t.color,
859
+ fill: "transparent",
860
+ "stroke-width": "2",
861
+ "stroke-linecap": "round",
862
+ "stroke-linejoin": "round"
863
+ }, null, 8, Xl)) : v("", !0)
864
+ ]))), 128)),
865
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "plot"), (t) => (u(), i("g", {
866
+ key: String(t.key)
867
+ }, [
868
+ (u(!0), i(y, null, S(t.points, (n) => (u(), i("g", null, [
869
+ t.isVisible && n.value !== null ? (u(), i("circle", {
870
+ key: 0,
871
+ cx: n.x,
872
+ cy: n.y,
873
+ r: "2",
874
+ fill: t.color,
875
+ stroke: g.value,
876
+ "stroke-width": "0.5",
877
+ style: { opacity: "0.6" }
878
+ }, null, 8, Hl)) : v("", !0)
879
+ ]))), 256))
880
+ ]))), 128))
881
+ ]))
882
+ ], 64)),
883
+ e.$slots.slotMap ? ft(e.$slots, "slotMap", yt(xt({ key: 4 }, {
884
+ width: Math.max(0, f.value.width),
885
+ height: Math.max(0, f.value.height),
886
+ zeroY: Fe.value,
887
+ unitW: Math.max(0, M.value)
888
+ })), void 0, !0) : v("", !0),
889
+ k.value && o.minimapCompact ? (u(), i("rect", {
890
+ key: 5,
891
+ class: "vue-ui-zoom-compact-minimap-handle",
892
+ x: P.value.x - 8,
893
+ y: 0,
894
+ width: 8,
895
+ height: f.value.height,
896
+ fill: g.value,
897
+ stroke: o.textColor,
898
+ rx: 3
899
+ }, null, 8, Ol)) : v("", !0),
900
+ k.value && o.minimapCompact ? (u(), i("rect", {
901
+ key: 6,
902
+ class: "vue-ui-zoom-compact-minimap-handle",
903
+ x: P.value.x + P.value.width,
904
+ y: 0,
905
+ width: 8,
906
+ height: f.value.height,
907
+ fill: g.value,
908
+ stroke: o.textColor,
909
+ rx: 3
910
+ }, null, 8, Zl)) : v("", !0),
911
+ B.value !== null && !X.value ? (u(), i("line", yt(xt({ key: 7 }, Jt.value)), null, 16)) : v("", !0),
912
+ e.$slots.slotMap ? v("", !0) : (u(), i(y, { key: 8 }, [
913
+ o.minimapMerged ? (u(), i("g", Ul, [
914
+ m.value && m.value.firstPlot && m.value.firstPlot.value !== null ? (u(), i("circle", {
915
+ key: 0,
916
+ cx: m.value.firstPlot.x,
917
+ cy: m.value.firstPlot.y,
918
+ "stroke-width": "0.5",
919
+ stroke: g.value,
920
+ r: "4",
921
+ fill: o.minimapLineColor
922
+ }, null, 8, Kl)) : v("", !0),
923
+ m.value && m.value.firstPlot && m.value.firstPlot.value !== null ? (u(), i("circle", {
924
+ key: 1,
925
+ cx: m.value.firstPlot.x,
926
+ cy: m.value.firstPlot.y,
927
+ r: 2,
928
+ fill: g.value
929
+ }, null, 8, Yl)) : v("", !0),
930
+ m.value && m.value.lastPlot && m.value.lastPlot.value !== null ? (u(), i("circle", {
931
+ key: 2,
932
+ cx: m.value.lastPlot.x,
933
+ cy: m.value.lastPlot.y,
934
+ "stroke-width": "0.5",
935
+ stroke: g.value,
936
+ r: "4",
937
+ fill: o.minimapLineColor
938
+ }, null, 8, jl)) : v("", !0),
939
+ m.value && m.value.lastPlot && m.value.lastPlot.value !== null ? (u(), i("circle", {
940
+ key: 3,
941
+ cx: m.value.lastPlot.x,
942
+ cy: m.value.lastPlot.y,
943
+ r: "2",
944
+ fill: g.value
945
+ }, null, 8, ql)) : v("", !0)
946
+ ])) : (u(), i("g", Gl, [
947
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
948
+ key: String(t.key)
949
+ }, [
950
+ t && t.hasSelection && t.selectionSet && t.isVisible ? (u(), i("path", {
951
+ key: 0,
952
+ d: `M ${t.selectionSet}`,
953
+ stroke: t.color,
954
+ fill: "transparent",
955
+ "stroke-width": "2",
956
+ "stroke-linecap": "round",
957
+ "stroke-linejoin": "round"
958
+ }, null, 8, Jl)) : v("", !0),
959
+ t.isVisible && o.cutNullValues ? (u(!0), i(y, { key: 1 }, S(t.selectionMarkers, (n) => (u(), i("circle", {
960
+ key: `sel-dot-${t.key}-${n.i}`,
961
+ cx: n.x,
962
+ cy: n.y,
963
+ r: "2.5",
964
+ fill: t.color,
965
+ stroke: g.value,
966
+ "stroke-width": "0.5"
967
+ }, null, 8, Ql))), 128)) : v("", !0),
968
+ t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
969
+ key: 2,
970
+ cx: t.firstPlot.x,
971
+ cy: t.firstPlot.y,
972
+ "stroke-width": "0.5",
973
+ stroke: g.value,
974
+ r: "4",
975
+ fill: t.color
976
+ }, null, 8, _l)) : v("", !0),
977
+ t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
978
+ key: 3,
979
+ cx: t.firstPlot.x,
980
+ cy: t.firstPlot.y,
981
+ r: "2",
982
+ fill: g.value
983
+ }, null, 8, ea)) : v("", !0),
984
+ t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
985
+ key: 4,
986
+ cx: t.lastPlot.x,
987
+ cy: t.lastPlot.y,
988
+ "stroke-width": "0.5",
989
+ stroke: g.value,
990
+ r: "4",
991
+ fill: t.color
992
+ }, null, 8, ta)) : v("", !0),
993
+ t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
994
+ key: 5,
995
+ cx: t.lastPlot.x,
996
+ cy: t.lastPlot.y,
997
+ r: "2",
998
+ fill: g.value
999
+ }, null, 8, la)) : v("", !0)
1000
+ ]))), 128)),
1001
+ (u(!0), i(y, null, S(V.value.filter((t) => t.type === "plot"), (t) => (u(), i("g", {
1002
+ key: String(t.key)
1003
+ }, [
1004
+ (u(!0), i(y, null, S(t.points, (n) => (u(), i("g", null, [
1005
+ t.isVisible && o.cutNullValues && n.value !== null ? (u(), i("circle", {
1006
+ key: `sel-plot-${t.key}-${n.i}`,
1007
+ cx: n.x,
1008
+ cy: n.y,
1009
+ r: "2.5",
1010
+ fill: t.color,
1011
+ stroke: g.value,
1012
+ "stroke-width": "0.5"
1013
+ }, null, 8, aa)) : v("", !0)
1014
+ ]))), 256))
1015
+ ]))), 128))
1016
+ ]))
1017
+ ], 64)),
1018
+ (u(!0), i(y, null, S(Ue.value, (t, n) => (u(), i("rect", {
1019
+ x: M.value * n - (o.minimapCompact ? M.value / 2 : 0),
1020
+ y: 0,
1021
+ height: Math.max(f.value.height, 0),
1022
+ width: M.value < 0 ? 0 : M.value,
1023
+ fill: "transparent",
1024
+ style: R([{ "pointer-events": "all !important" }, { cursor: t >= O.value && t < j.value && o.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
1025
+ onMousedown: l[0] || (l[0] = (r) => X.value = !0),
1026
+ onMouseup: l[1] || (l[1] = (r) => X.value = !1),
1027
+ onMouseenter: (r) => Dt(t),
1028
+ onMouseleave: l[2] || (l[2] = (r) => {
1029
+ B.value = null, E("trapMouse", null);
1030
+ })
1031
+ }, null, 44, na))), 256))
1032
+ ], 8, bl))
1033
+ ])) : v("", !0),
1034
+ L("div", {
1035
+ class: "slider-track",
1036
+ style: R({ visibility: k.value && o.minimapCompact ? "hidden" : "visible" })
1037
+ }, null, 4),
1038
+ L("div", {
1039
+ class: _({ "range-highlight": !0, move: o.enableSelectionDrag }),
1040
+ onMousedown: l[3] || (l[3] = (t) => X.value = !0),
1041
+ onMouseup: l[4] || (l[4] = (t) => X.value = !1),
1042
+ style: R({
1043
+ ...F.value,
1044
+ cursor: X.value ? "grabbing" : "grab",
1045
+ visibility: k.value && o.minimapCompact ? "hidden" : "visible"
1046
+ })
1047
+ }, null, 38),
1048
+ o.enableRangeHandles ? gt((u(), i("input", {
1049
+ key: 1,
1050
+ ref_key: "rangeStart",
1051
+ ref: ae,
1052
+ type: "range",
1053
+ class: _({
1054
+ "range-left": !0,
1055
+ "range-handle": !0,
1056
+ "range-minimap": k.value && o.verticalHandles,
1057
+ "range-invisible": k.value && o.minimapCompact
1058
+ }),
1059
+ min: o.min,
1060
+ max: o.minimapCompact && k.value ? Math.max(0, Y.value - 1) : o.max,
1061
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => de.value = t),
1062
+ onInput: l[6] || (l[6] = (t) => de.value = t.target.valueAsNumber),
1063
+ onChange: A,
1064
+ onKeyup: pt(A, ["enter"]),
1065
+ onBlur: A,
1066
+ onMouseenter: l[7] || (l[7] = (t) => vt("start")),
1067
+ onPointerup: A
1068
+ }, null, 42, ia)), [
1069
+ [
1070
+ bt,
1071
+ de.value,
1072
+ void 0,
1073
+ { number: !0 }
1074
+ ]
1075
+ ]) : v("", !0),
1076
+ o.enableRangeHandles ? gt((u(), i("input", {
1077
+ key: 2,
1078
+ ref_key: "rangeEnd",
1079
+ ref: ne,
1080
+ type: "range",
1081
+ class: _({
1082
+ "range-right": !0,
1083
+ "range-handle": !0,
1084
+ "range-minimap": k.value && o.verticalHandles,
1085
+ "range-invisible": k.value && o.minimapCompact
1086
+ }),
1087
+ min: o.min,
1088
+ max: o.minimapCompact && k.value ? Math.max(0, Y.value - 1) : o.max,
1089
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => fe.value = t),
1090
+ onInput: l[9] || (l[9] = (t) => fe.value = t.target.valueAsNumber),
1091
+ onChange: A,
1092
+ onKeyup: pt(A, ["enter"]),
1093
+ onBlur: A,
1094
+ onMouseenter: l[10] || (l[10] = (t) => vt("end")),
1095
+ onPointerup: A
1096
+ }, null, 42, ua)), [
1097
+ [
1098
+ bt,
1099
+ fe.value,
1100
+ void 0,
1101
+ { number: !0 }
1102
+ ]
1103
+ ]) : v("", !0),
1104
+ w.value.left ? (u(), i("div", {
1105
+ key: 3,
1106
+ ref_key: "tooltipLeft",
1107
+ ref: ue,
1108
+ class: _({
1109
+ "range-tooltip": !0,
1110
+ "range-tooltip-visible": J.value,
1111
+ "range-tooltip-arrow": F.value.arrowLeft && !o.verticalHandles,
1112
+ "range-tooltip-arrow-left": !F.value.arrowLeft && !o.verticalHandles
1113
+ }),
1114
+ style: R({
1115
+ left: F.value.tooltipLeft,
1116
+ color: pe(We)(o.selectColor),
1117
+ backgroundColor: o.selectColor,
1118
+ border: `1px solid ${g.value}`,
1119
+ zIndex: `${ct.value + 4}`,
1120
+ visibility: se.value || w.value.left === w.value.right ? "hidden" : "visible",
1121
+ top: k.value && o.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1122
+ })
1123
+ }, ze(w.value.left), 7)) : v("", !0),
1124
+ (se.value || w.value.left === w.value.right) && (w.value.left || w.value.right) ? (u(), i("div", {
1125
+ key: 4,
1126
+ ref: "tooltipMerge",
1127
+ class: _({
1128
+ "range-tooltip": !0,
1129
+ "range-tooltip-visible": J.value,
1130
+ "range-tooltip-arrow": !0,
1131
+ "range-tooltip-arrow-left": !F.value.arrowLeft && !o.verticalHandles,
1132
+ "range-tooltip-arrow-right": !F.value.arrowRight && !o.verticalHandles
1133
+ }),
1134
+ style: R({
1135
+ left: F.value.tooltipCenter,
1136
+ width: ce.value.width + "px",
1137
+ color: pe(We)(o.selectColor),
1138
+ backgroundColor: o.selectColor,
1139
+ border: `1px solid ${g.value}`,
1140
+ zIndex: "4",
1141
+ top: k.value && o.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1142
+ })
1143
+ }, ze(w.value.left === w.value.right ? w.value.left : `${w.value.left} - ${w.value.right}`), 7)) : v("", !0),
1144
+ w.value.right ? (u(), i("div", {
1145
+ key: 5,
1146
+ ref_key: "tooltipRight",
1147
+ ref: oe,
1148
+ class: _({
1149
+ "range-tooltip": !0,
1150
+ "range-tooltip-visible": J.value,
1151
+ "range-tooltip-arrow": F.value.arrowRight && !o.verticalHandles,
1152
+ "range-tooltip-arrow-right": !F.value.arrowRight && !o.verticalHandles
1153
+ }),
1154
+ style: R({
1155
+ left: F.value.tooltipRight,
1156
+ color: pe(We)(o.selectColor),
1157
+ backgroundColor: o.selectColor,
1158
+ border: `1px solid ${g.value}`,
1159
+ zIndex: "4",
1160
+ visibility: se.value || w.value.left === w.value.right ? "hidden" : "visible",
1161
+ top: k.value && o.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1162
+ })
1163
+ }, ze(w.value.right), 7)) : v("", !0)
1164
+ ], 544)
1165
+ ], 544));
1166
+ }
1167
+ }, ha = /* @__PURE__ */ gl(oa, [["__scopeId", "data-v-f0e48c2b"]]);
1168
+ export {
1169
+ ha as S
1170
+ };