vue-data-ui 2.13.3 → 2.13.5-beta.0

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 (92) hide show
  1. package/dist/{Arrow-BE9mfJkL.js → Arrow-nJWOreP4.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B9pXvCsc.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
  3. package/dist/{BaseIcon-5s68maMg.js → BaseIcon-lwpKi6Wa.js} +1 -1
  4. package/dist/{ColorPicker-BGBMbOup.js → ColorPicker-D8TZj-R5.js} +2 -2
  5. package/dist/{DataTable-C8F2aovs.js → DataTable-CuFlXUxm.js} +2 -2
  6. package/dist/{Legend-CoAmfx-7.js → Legend-DwNuhYnG.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DqqOehOr.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
  8. package/dist/{PackageVersion-BP504Bvs.js → PackageVersion-1psmmuzo.js} +2 -2
  9. package/dist/{PenAndPaper-CXfm6LDW.js → PenAndPaper-DgUkj01g.js} +3 -3
  10. package/dist/{Shape-CbwWTjj8.js → Shape-CmlBrd-F.js} +1 -1
  11. package/dist/Slicer-B-5jXhhw.js +577 -0
  12. package/dist/{SparkTooltip-HSZVAB1L.js → SparkTooltip-BGjRXPbu.js} +1 -1
  13. package/dist/{Title-VtPtUhFq.js → Title-BoKeR6i0.js} +1 -1
  14. package/dist/{Tooltip-Buu8aWuU.js → Tooltip-Df2iF7bv.js} +1 -1
  15. package/dist/{UserOptions-7VcV_QUc.js → UserOptions-NrArsCuC.js} +2 -2
  16. package/dist/{dom-to-png-BjOvlJis.js → dom-to-png-DK9TIQio.js} +1 -1
  17. package/dist/{img-ClKzlGeA.js → img-CqqmkwDl.js} +1 -1
  18. package/dist/{index-edeP1M3x.js → index-C137VZkI.js} +675 -656
  19. package/dist/{pdf-2Tyxymwm.js → pdf-DTB7aasS.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useNestedProp-RNi-Fxfm.js → useNestedProp-ZNu8JrRX.js} +1 -1
  24. package/dist/{usePrinter-B3nKJKAm.js → usePrinter-B63T3abI.js} +2 -2
  25. package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
  26. package/dist/{vue-data-ui-BfYXPWao.js → vue-data-ui-CBTXw5iV.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-4eGejORW.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
  29. package/dist/{vue-ui-accordion-C4DquMtU.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Dvrd6Gun.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
  31. package/dist/{vue-ui-annotator-Db5OBDjC.js → vue-ui-annotator-BokgyAXW.js} +2 -2
  32. package/dist/{vue-ui-bullet-BlT3571K.js → vue-ui-bullet-D5TWFElT.js} +6 -6
  33. package/dist/{vue-ui-candlestick-0aDroQCS.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
  34. package/dist/{vue-ui-carousel-table-Dav_41vI.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CosLSi7b.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
  36. package/dist/{vue-ui-chord-BxHp31c3.js → vue-ui-chord-Drxbeh2P.js} +7 -7
  37. package/dist/{vue-ui-circle-pack-BVbRVfDq.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
  38. package/dist/{vue-ui-cursor-ByPGYWlO.js → vue-ui-cursor-DaT20eFb.js} +2 -2
  39. package/dist/{vue-ui-dashboard-cC6brbws.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
  40. package/dist/{vue-ui-digits-Bb-6Adj7.js → vue-ui-digits-D6kq38s9.js} +2 -2
  41. package/dist/{vue-ui-donut-B3WltwRF.js → vue-ui-donut-_kVdFrZR.js} +7 -7
  42. package/dist/{vue-ui-donut-evolution-21zgSmm1.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
  43. package/dist/{vue-ui-dumbbell-BRRWW41S.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
  44. package/dist/{vue-ui-flow-1nJK3SOO.js → vue-ui-flow-DTx267Ka.js} +6 -6
  45. package/dist/{vue-ui-funnel-Bo78n4pQ.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
  46. package/dist/{vue-ui-galaxy-DViqZ_WR.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
  47. package/dist/{vue-ui-gauge-B_8skcc5.js → vue-ui-gauge-CAKj45DE.js} +5 -5
  48. package/dist/{vue-ui-gizmo-B06tu-EV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
  49. package/dist/{vue-ui-heatmap-9cZQCsYz.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
  50. package/dist/{vue-ui-history-plot-q9GGP9lk.js → vue-ui-history-plot-DfduurUS.js} +103 -103
  51. package/dist/{vue-ui-kpi-D6hwxL-7.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-5K1b5iwf.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
  53. package/dist/{vue-ui-molecule-CZJZM3v3.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
  54. package/dist/{vue-ui-mood-radar-B4ysiT_U.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
  55. package/dist/{vue-ui-nested-donuts-Bp4pT3D5.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
  56. package/dist/{vue-ui-onion-BnCFgrkZ.js → vue-ui-onion-BV3A2JCN.js} +6 -6
  57. package/dist/{vue-ui-parallel-coordinate-plot-B_BhXrKI.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
  58. package/dist/{vue-ui-quadrant-GclnmYO6.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
  59. package/dist/{vue-ui-quick-chart-CFaBCkfP.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
  60. package/dist/{vue-ui-radar-BA45g7F0.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
  61. package/dist/{vue-ui-rating-hTWz-pBq.js → vue-ui-rating-FuSmmUE8.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CkOaN_CX.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
  63. package/dist/{vue-ui-ridgeline-B2BIUDB-.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
  64. package/dist/{vue-ui-rings-CSO7Zd_g.js → vue-ui-rings-DMx8sMKa.js} +7 -7
  65. package/dist/{vue-ui-scatter-17gG4jRb.js → vue-ui-scatter-DX42tHz8.js} +7 -7
  66. package/dist/{vue-ui-skeleton-EoGn9JbB.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
  67. package/dist/{vue-ui-smiley-C_HkNW2f.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-AXaOXuBl.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DWZCWNKx.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-BZVcBexd.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-BrCxiefW.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CFwBsRfj.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-bwY9BxUo.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
  74. package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
  75. package/dist/{vue-ui-strip-plot-C02lCys6.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
  76. package/dist/{vue-ui-table-C04CtiEi.js → vue-ui-table-Cfb6eIU4.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-IERP9tp0.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CgXchDEY.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
  79. package/dist/{vue-ui-thermometer-lf9mJ8LP.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
  80. package/dist/{vue-ui-timer-BZLtxymy.js → vue-ui-timer-By6_kV9k.js} +8 -8
  81. package/dist/{vue-ui-tiremarks-Cu1TXwev.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
  82. package/dist/{vue-ui-treemap-BVyxf-77.js → vue-ui-treemap-DivJblJW.js} +7 -7
  83. package/dist/{vue-ui-vertical-bar-C_euYHER.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
  84. package/dist/{vue-ui-waffle-BW6LSfBe.js → vue-ui-waffle-DSzMjANd.js} +7 -7
  85. package/dist/{vue-ui-wheel-DoARpgpJ.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
  86. package/dist/{vue-ui-word-cloud-BVmpg5X_.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
  87. package/dist/{vue-ui-world-DzbMOJbm.js → vue-ui-world-BhGGmeGq.js} +5 -5
  88. package/dist/{vue-ui-xy-DD5417b2.js → vue-ui-xy-CZpcKEkV.js} +680 -668
  89. package/dist/{vue-ui-xy-canvas-9m7qMGHS.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
  90. package/package.json +1 -1
  91. package/dist/Slicer-BNnP0Y2C.js +0 -537
  92. package/dist/vue-ui-stackbar-Bgc7lS0v.js +0 -1132
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.13.3",
4
+ "version": "2.13.5-beta.0",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,537 +0,0 @@
1
- import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
2
- import Ve from "./BaseIcon-5s68maMg.js";
3
- import { t as We, u as Xe } from "./useResponsive-JZ9xq-JV.js";
4
- import { c as Ue, U as me, T as ce, X as Oe, G as he } from "./index-edeP1M3x.js";
5
- import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const Ge = {
7
- class: "vue-data-ui-slicer-labels",
8
- style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
- }, je = {
10
- key: 0,
11
- style: { width: "100%", position: "relative" }
12
- }, qe = {
13
- key: 0,
14
- class: "minimap",
15
- style: { width: "100%" }
16
- }, Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"], Ye = ["d", "stroke"], _e = ["x", "width", "height", "fill", "rx"], et = ["d", "fill"], tt = ["x", "width", "height", "rx", "fill"], lt = ["x", "width", "height", "fill", "rx"], at = ["d", "fill"], nt = ["d", "stroke"], it = ["cx", "cy", "stroke", "fill"], ut = ["cx", "cy", "stroke", "fill"], ot = ["x1", "x2", "y2", "stroke"], rt = ["x", "height", "width", "onMouseenter"], st = ["min", "max"], dt = ["min", "max"], vt = {
17
- __name: "Slicer",
18
- props: {
19
- background: {
20
- type: String,
21
- default: "#FFFFFF"
22
- },
23
- borderColor: {
24
- type: String,
25
- default: "#FFFFFF"
26
- },
27
- fontSize: {
28
- type: Number,
29
- default: 14
30
- },
31
- labelLeft: {
32
- type: String,
33
- default: ""
34
- },
35
- labelRight: {
36
- type: String,
37
- default: ""
38
- },
39
- textColor: {
40
- type: String,
41
- default: "#1A1A1A"
42
- },
43
- inputColor: {
44
- type: String,
45
- default: "#1A1A1A"
46
- },
47
- max: {
48
- type: Number,
49
- default: 0
50
- },
51
- min: {
52
- type: Number,
53
- default: 0
54
- },
55
- selectColor: {
56
- type: String,
57
- default: "#4A4A4A"
58
- },
59
- useResetSlot: {
60
- type: Boolean,
61
- default: !1
62
- },
63
- valueStart: {
64
- type: [Number, String],
65
- default: 0
66
- },
67
- valueEnd: {
68
- type: [Number, String],
69
- default: 0
70
- },
71
- minimap: {
72
- type: Array,
73
- default: []
74
- },
75
- smoothMinimap: {
76
- type: Boolean,
77
- default: !1
78
- },
79
- minimapSelectedColor: {
80
- type: String,
81
- default: "#1f77b4"
82
- },
83
- minimapSelectionRadius: {
84
- type: Number,
85
- default: 12
86
- },
87
- minimapLineColor: {
88
- type: String,
89
- default: "#2D353C"
90
- },
91
- minimapSelectedColorOpacity: {
92
- type: Number,
93
- default: 0.2
94
- },
95
- minimapSelectedIndex: {
96
- type: Number,
97
- default: null
98
- },
99
- minimapIndicatorColor: {
100
- type: String,
101
- default: "#2D353C"
102
- },
103
- refreshStartPoint: {
104
- type: Number,
105
- default: 0
106
- },
107
- refreshEndPoint: {
108
- type: Number,
109
- default: null
110
- },
111
- enableRangeHandles: {
112
- type: Boolean,
113
- default: !1
114
- },
115
- enableSelectionDrag: {
116
- type: Boolean,
117
- default: !0
118
- },
119
- verticalHandles: {
120
- type: Boolean,
121
- default: !1
122
- }
123
- },
124
- emits: ["update:start", "update:end", "reset", "trapMouse"],
125
- setup(a, { expose: fe, emit: ge }) {
126
- Ie((e) => ({
127
- "16e75640": xe.value,
128
- e6fc4558: w.value,
129
- d373c876: ye.value,
130
- "6cb71e84": a.selectColor,
131
- "431eb1dc": be.value
132
- }));
133
- const t = a, f = u(null), o = u(t.min), r = u(t.max), M = s(() => !!t.minimap.length), D = u(Ue()), pe = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), b = ge, y = s(() => {
134
- const e = t.max - t.min, l = (o.value - t.min) / e * 100, n = (r.value - t.min) / e * 100;
135
- return {
136
- left: `${l}%`,
137
- width: `${n - l}%`,
138
- background: t.selectColor,
139
- tooltipLeft: `calc(${l}% - ${G.value ? 0 : U.value / 2}px)`,
140
- tooltipRight: `calc(${n}% - ${j.value ? B.value : B.value / 2}px)`,
141
- arrowLeft: !G.value,
142
- arrowRight: !j.value
143
- };
144
- }), G = s(() => f.value ? f.value.getBoundingClientRect().width * ((o.value - t.min) / (t.max - t.min)) - U.value / 2 < 0 : !1), j = s(() => f.value ? f.value.getBoundingClientRect().width * ((r.value - t.min) / (t.max - t.min)) + B.value / 2 > f.value.getBoundingClientRect().width : !1), xe = s(() => t.inputColor), be = s(() => t.background), ye = s(() => `${t.selectColor}33`), w = s(() => t.borderColor), q = s(() => {
145
- let e = [];
146
- for (let l = 0; l < t.minimap.length; l += 1)
147
- e.push(l);
148
- return e;
149
- });
150
- function J() {
151
- b("reset");
152
- }
153
- function we() {
154
- Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), b("update:start", Number(o.value));
155
- }
156
- function Se() {
157
- Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), b("update:end", Number(r.value));
158
- }
159
- R(
160
- () => t.min,
161
- (e) => {
162
- Number(o.value) < Number(e) && (o.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
163
- }
164
- ), R(
165
- () => t.max,
166
- (e) => {
167
- Number(o.value) > Number(e) && (o.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
168
- }
169
- );
170
- const T = u(null), i = u({
171
- width: 1,
172
- height: 1
173
- }), E = u(null);
174
- Pe(() => {
175
- if (M.value) {
176
- const e = We(() => {
177
- const { width: l, height: n } = Xe({
178
- chart: T.value
179
- });
180
- i.value.width = l, i.value.height = n - 47;
181
- });
182
- E.value = new ResizeObserver(e), E.value.observe(T.value);
183
- }
184
- }), ze(() => {
185
- E.value && E.value.disconnect();
186
- });
187
- const c = s(() => t.minimap.length ? i.value.width / t.minimap.length : 0), g = s(() => {
188
- if (!t.minimap.length) return [];
189
- const e = Math.max(...t.minimap), l = Math.min(...t.minimap) - 10, n = e - (l > 0 ? 0 : l), h = t.minimap.map((Be, De) => {
190
- const Te = Be - l;
191
- return {
192
- x: i.value.width / t.minimap.length * De + c.value / 2,
193
- y: i.value.height - Te / n * (i.value.height * 0.9)
194
- };
195
- }), S = t.smoothMinimap ? me(h) : ce(h), O = [...h].slice(t.valueStart, t.valueEnd), Ee = t.smoothMinimap ? me(O) : ce(O);
196
- return {
197
- fullSet: S,
198
- selectionSet: Ee,
199
- sliced: O,
200
- firstPlot: h[t.valueStart],
201
- lastPlot: h[t.valueEnd - 1]
202
- };
203
- }), p = s(() => ({
204
- x: c.value * o.value + c.value / 2,
205
- width: i.value.width * ((r.value - o.value) / t.max) - c.value
206
- })), N = u(t.minimapSelectedIndex);
207
- R(() => t.minimapSelectedIndex, (e) => {
208
- N.value = e + t.valueStart;
209
- }, { immediate: !0 });
210
- function ke(e) {
211
- N.value = e, e >= t.valueStart && e < t.valueEnd && b("trapMouse", e - t.valueStart);
212
- }
213
- const Ce = u(0), I = u(null), P = u(null);
214
- function z(e) {
215
- o.value = e, I.value && (I.value.value = e), b("update:start", Number(o.value));
216
- }
217
- function A(e) {
218
- r.value = e, P.value && (P.value.value = e), b("update:end", Number(r.value));
219
- }
220
- const F = s(() => t.valueEnd - t.valueStart), H = u(!1);
221
- let V = u(null);
222
- const $e = s(() => f.value ? (f.value.getBoundingClientRect().width - 48) / (t.max - t.min) : 20), Me = s(() => (f.value.getBoundingClientRect().width - 48) / (t.max - t.min) * F.value), Ne = u(2.5), K = s(() => {
223
- const e = f.value.getBoundingClientRect().width - 48;
224
- return Math.ceil((t.max - t.min) / ((e - Me.value) / Ne.value));
225
- }), Q = (e) => {
226
- if (C.value = !0, !t.enableSelectionDrag)
227
- return;
228
- const l = e.type === "touchstart";
229
- if ((l ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
230
- return;
231
- H.value = !0, V.value = l ? e.targetTouches[0].clientX : e.clientX;
232
- const h = l ? Re : Y, S = l ? Le : ee;
233
- window.addEventListener(l ? "touchmove" : "mousemove", h, { passive: !1 }), window.addEventListener(l ? "touchend" : "mouseup", S);
234
- };
235
- function Y(e) {
236
- _(e.clientX);
237
- }
238
- function Re(e) {
239
- f.value.contains(e.target) && (e.target.classList.contains("range-handle") || (e.preventDefault(), _(e.targetTouches[0].clientX)));
240
- }
241
- function _(e) {
242
- if (!H.value) return;
243
- const l = e - V.value;
244
- if (Math.abs(l) > $e.value) {
245
- if (l > 0) {
246
- if (Number(r.value) + 1 <= t.max) {
247
- const n = Math.min(t.max, Number(r.value) + K.value);
248
- A(n), z(n - F.value);
249
- }
250
- } else if (Number(o.value) - 1 >= t.min) {
251
- const n = Math.max(0, Number(o.value) - K.value);
252
- z(n), A(n + F.value);
253
- }
254
- V.value = e;
255
- }
256
- }
257
- function ee() {
258
- te("mousemove", "mouseup");
259
- }
260
- function Le() {
261
- te("touchmove", "touchend");
262
- }
263
- function te(e, l) {
264
- H.value = !1, window.removeEventListener(e, Y), window.removeEventListener(l, ee);
265
- }
266
- const k = u(!1), W = u(null), X = u(null), U = u(1), B = u(1), C = u(!1);
267
- function le() {
268
- W.value && (U.value = W.value.getBoundingClientRect().width);
269
- }
270
- function ae() {
271
- X.value && (B.value = X.value.getBoundingClientRect().width);
272
- }
273
- const ne = u(0);
274
- function ie(e) {
275
- ne.value = e === "start" ? 1 : 0;
276
- }
277
- return Ae(() => {
278
- le(), ae();
279
- }), R(() => t.labelLeft, () => {
280
- ue(le);
281
- }, { deep: !0 }), R(() => t.labelRight, () => {
282
- ue(ae);
283
- }, { deep: !0 }), fe({
284
- setStartValue: z,
285
- setEndValue: A
286
- }), (e, l) => (m(), v("div", {
287
- "data-dom-to-png-ignore": "",
288
- style: { padding: "0 24px" },
289
- class: "vue-data-ui-zoom",
290
- ref_key: "zoomWrapper",
291
- ref: f,
292
- onMousedown: Q,
293
- onTouchstart: Q,
294
- onTouchend: l[11] || (l[11] = (n) => C.value = !1)
295
- }, [
296
- d("div", Ge, [
297
- a.valueStart !== a.refreshStartPoint || a.valueEnd !== pe.value ? (m(), v("div", je, [
298
- a.useResetSlot ? Fe(e.$slots, "reset-action", {
299
- key: 1,
300
- reset: J
301
- }, void 0, !0) : (m(), v("button", {
302
- key: 0,
303
- tabindex: "0",
304
- role: "button",
305
- class: "vue-data-ui-refresh-button",
306
- style: $({
307
- top: M.value ? "36px" : "-16px",
308
- pointerEvents: "all !important"
309
- }),
310
- onClick: J
311
- }, [
312
- He(Ve, {
313
- name: "refresh",
314
- stroke: a.textColor
315
- }, null, 8, ["stroke"])
316
- ], 4))
317
- ])) : x("", !0)
318
- ]),
319
- d("div", {
320
- class: "double-range-slider",
321
- ref_key: "minimapWrapper",
322
- ref: T,
323
- style: { "z-index": "0" },
324
- onMouseenter: l[9] || (l[9] = (n) => C.value = !0),
325
- onMouseleave: l[10] || (l[10] = (n) => C.value = !1)
326
- }, [
327
- M.value ? (m(), v("div", qe, [
328
- (m(), v("svg", {
329
- xmlns: Z(Oe),
330
- viewBox: `0 0 ${i.value.width < 0 ? 0 : i.value.width} ${i.value.height < 0 ? 0 : i.value.height}`
331
- }, [
332
- d("defs", null, [
333
- d("linearGradient", {
334
- id: D.value,
335
- x1: "0%",
336
- y1: "0%",
337
- x2: "0%",
338
- y2: "100%"
339
- }, [
340
- d("stop", {
341
- offset: "0%",
342
- "stop-color": `${a.minimapLineColor}50`
343
- }, null, 8, Qe),
344
- l[12] || (l[12] = d("stop", {
345
- offset: "100%",
346
- "stop-color": "transparent"
347
- }, null, -1))
348
- ], 8, Ke)
349
- ]),
350
- d("path", {
351
- d: `M${g.value.fullSet}`,
352
- stroke: `${a.minimapLineColor}`,
353
- fill: "none",
354
- "stroke-width": "1",
355
- "stroke-linecap": "round",
356
- "stroke-linejoin": "round",
357
- style: { opacity: "1" }
358
- }, null, 8, Ye),
359
- d("rect", {
360
- x: p.value.x,
361
- width: p.value.width < 0 ? 0 : p.value.width,
362
- height: Math.max(i.value.height, 0),
363
- y: 0,
364
- fill: w.value,
365
- rx: a.minimapSelectionRadius,
366
- stroke: "none"
367
- }, null, 8, _e),
368
- d("path", {
369
- d: `M${c.value / 2},${Math.max(i.value.height, 0)} ${g.value.fullSet} L${i.value.width - c.value / 2},${Math.max(i.value.height, 0)}Z`,
370
- fill: `url(#${D.value})`,
371
- stroke: "none",
372
- style: { opacity: "1" }
373
- }, null, 8, et),
374
- d("rect", {
375
- x: p.value.x,
376
- width: p.value.width < 0 ? 0 : p.value.width,
377
- height: Math.max(i.value.height, 0),
378
- y: 0,
379
- rx: a.minimapSelectionRadius,
380
- fill: w.value
381
- }, null, 8, tt),
382
- d("rect", {
383
- x: p.value.x,
384
- width: p.value.width < 0 ? 0 : p.value.width,
385
- height: Math.max(i.value.height, 0),
386
- y: 0,
387
- fill: a.minimapSelectedColor,
388
- rx: a.minimapSelectionRadius,
389
- style: $({
390
- opacity: a.minimapSelectedColorOpacity
391
- })
392
- }, null, 12, lt),
393
- d("path", {
394
- d: `M${g.value.sliced[0].x},${Math.max(i.value.height, 0)} ${g.value.selectionSet} L${g.value.sliced.at(-1).x},${Math.max(i.value.height, 0)}Z`,
395
- fill: `url(#${D.value})`,
396
- stroke: "none",
397
- style: { opacity: "1" }
398
- }, null, 8, at),
399
- d("path", {
400
- d: `M ${g.value.selectionSet}`,
401
- stroke: `${a.minimapLineColor}`,
402
- fill: "transparent",
403
- "stroke-width": "2",
404
- "stroke-linecap": "round",
405
- "stroke-linejoin": "round"
406
- }, null, 8, nt),
407
- d("circle", {
408
- cx: g.value.firstPlot.x,
409
- cy: g.value.firstPlot.y,
410
- "stroke-width": "0.5",
411
- stroke: w.value,
412
- r: "3",
413
- fill: a.minimapLineColor
414
- }, null, 8, it),
415
- d("circle", {
416
- cx: g.value.lastPlot.x,
417
- cy: g.value.lastPlot.y,
418
- "stroke-width": "0.5",
419
- stroke: w.value,
420
- r: "3",
421
- fill: a.minimapLineColor
422
- }, null, 8, ut),
423
- N.value !== null ? (m(!0), v(re, { key: 0 }, se(q.value, (n, h) => (m(), v("g", null, [
424
- N.value === n && n >= a.valueStart && n < a.valueEnd ? (m(), v("line", {
425
- key: 0,
426
- x1: c.value * h + c.value / 2,
427
- x2: c.value * h + c.value / 2,
428
- y1: 0,
429
- y2: Math.max(i.value.height, 0),
430
- stroke: a.minimapIndicatorColor,
431
- "stroke-linecap": "round",
432
- "stroke-dasharray": "2",
433
- "stroke-width": "1"
434
- }, null, 8, ot)) : x("", !0)
435
- ]))), 256)) : x("", !0),
436
- (m(!0), v(re, null, se(q.value, (n, h) => (m(), v("rect", {
437
- x: c.value * h,
438
- y: 0,
439
- height: Math.max(i.value.height, 0),
440
- width: c.value < 0 ? 0 : c.value,
441
- fill: "transparent",
442
- style: $([{ "pointer-events": "all !important" }, {
443
- cursor: n >= a.valueStart && n < a.valueEnd && a.enableSelectionDrag ? k.value ? "grabbing" : "grab" : "default"
444
- }]),
445
- onMousedown: l[0] || (l[0] = (S) => k.value = !0),
446
- onMouseup: l[1] || (l[1] = (S) => k.value = !1),
447
- onMouseenter: (S) => ke(n),
448
- onMouseleave: l[2] || (l[2] = (S) => {
449
- N.value = null, b("trapMouse", null);
450
- })
451
- }, null, 44, rt))), 256))
452
- ], 8, Je))
453
- ])) : x("", !0),
454
- l[13] || (l[13] = d("div", { class: "slider-track" }, null, -1)),
455
- d("div", {
456
- class: L({
457
- "range-highlight": !0,
458
- move: a.enableSelectionDrag
459
- }),
460
- onMousedown: l[3] || (l[3] = (n) => k.value = !0),
461
- onMouseup: l[4] || (l[4] = (n) => k.value = !1),
462
- style: $({
463
- ...y.value,
464
- cursor: k.value ? "grabbing" : "grab"
465
- })
466
- }, null, 38),
467
- a.enableRangeHandles ? oe((m(), v("input", {
468
- ref_key: "rangeStart",
469
- ref: I,
470
- key: `range-min${Ce.value}`,
471
- type: "range",
472
- class: L({ "range-left": !0, "range-handle": !0, "range-minimap": M.value && a.verticalHandles }),
473
- min: a.min,
474
- max: a.max,
475
- "onUpdate:modelValue": l[5] || (l[5] = (n) => o.value = n),
476
- onInput: we,
477
- onMouseenter: l[6] || (l[6] = (n) => ie("start"))
478
- }, null, 42, st)), [
479
- [de, o.value]
480
- ]) : x("", !0),
481
- a.enableRangeHandles ? oe((m(), v("input", {
482
- key: 2,
483
- ref_key: "rangeEnd",
484
- ref: P,
485
- type: "range",
486
- class: L({ "range-right": !0, "range-handle": !0, "range-minimap": M.value && a.verticalHandles }),
487
- min: a.min,
488
- max: a.max,
489
- "onUpdate:modelValue": l[7] || (l[7] = (n) => r.value = n),
490
- onInput: Se,
491
- onMouseenter: l[8] || (l[8] = (n) => ie("end"))
492
- }, null, 42, dt)), [
493
- [de, r.value]
494
- ]) : x("", !0),
495
- a.labelLeft ? (m(), v("div", {
496
- key: 3,
497
- ref_key: "tooltipLeft",
498
- ref: W,
499
- class: L({
500
- "range-tooltip": !0,
501
- "range-tooltip-visible": C.value,
502
- "range-tooltip-arrow": y.value.arrowLeft && !a.verticalHandles,
503
- "range-tooltip-arrow-left": !y.value.arrowLeft && !a.verticalHandles
504
- }),
505
- style: $({
506
- left: y.value.tooltipLeft,
507
- color: Z(he)(a.selectColor),
508
- backgroundColor: a.selectColor,
509
- border: `1px solid ${w.value}`,
510
- zIndex: `${ne.value + 4}`
511
- })
512
- }, ve(a.labelLeft), 7)) : x("", !0),
513
- a.labelRight ? (m(), v("div", {
514
- key: 4,
515
- ref_key: "tooltipRight",
516
- ref: X,
517
- class: L({
518
- "range-tooltip": !0,
519
- "range-tooltip-visible": C.value,
520
- "range-tooltip-arrow": y.value.arrowRight && !a.verticalHandles,
521
- "range-tooltip-arrow-right": !y.value.arrowRight && !a.verticalHandles
522
- }),
523
- style: $({
524
- left: y.value.tooltipRight,
525
- color: Z(he)(a.selectColor),
526
- backgroundColor: a.selectColor,
527
- border: `1px solid ${w.value}`,
528
- zIndex: "4"
529
- })
530
- }, ve(a.labelRight), 7)) : x("", !0)
531
- ], 544)
532
- ], 544));
533
- }
534
- }, pt = /* @__PURE__ */ Ze(vt, [["__scopeId", "data-v-7cdc1124"]]);
535
- export {
536
- pt as S
537
- };