vue-data-ui 3.1.4 → 3.1.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 (92) hide show
  1. package/dist/{Arrow-COJRk3pc.js → Arrow-BFbcF5Sq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
  3. package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-BQQGRQ2U.js} +1 -1
  4. package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-d1kmGapq.js} +2 -2
  5. package/dist/{DataTable-CzO3oHys.js → DataTable-D6voeZvO.js} +2 -2
  6. package/dist/{Legend-BQqnf4BN.js → Legend-nPGcCxG_.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
  8. package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BeStrsPr.js} +1 -1
  9. package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-C6tiapdo.js} +3 -3
  10. package/dist/{Shape-BEVQVI0z.js → Shape-DBVq0fdK.js} +1 -1
  11. package/dist/Slicer-Duqm7KZK.js +597 -0
  12. package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-wNGmXZSx.js} +1 -1
  13. package/dist/{Title-nHtPyPd9.js → Title-ydtId0LC.js} +1 -1
  14. package/dist/Tooltip-oeu9knGI.js +200 -0
  15. package/dist/{UserOptions-D3pVnvAB.js → UserOptions-CnJxN2Vo.js} +2 -2
  16. package/dist/{dom-to-png-CcijTM69.js → dom-to-png-CMCYtLrX.js} +1 -1
  17. package/dist/{img-Bl0o2UAr.js → img-Neec0VVb.js} +1 -1
  18. package/dist/{index-INqbM37s.js → index-BkfuZCRT.js} +6 -2
  19. package/dist/{pdf-BeeAdG2m.js → pdf-CpQ-dqJh.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
  24. package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-BMzw9VUz.js} +1 -1
  25. package/dist/{usePrinter-9WO5mDzj.js → usePrinter-CEdg3j8S.js} +2 -2
  26. package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-D5B7a84o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
  29. package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
  31. package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
  32. package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-VPchh2r2.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
  34. package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
  35. package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
  36. package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-DVSBY9ou.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-BIuc6nds.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-C7xIcrvD.js} +67 -67
  40. package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
  41. package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-BApz1ho5.js} +52 -50
  42. package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
  44. package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-COtJRNLE.js} +40 -38
  45. package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
  47. package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-CFUA5ORH.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-DakytdCv.js} +68 -66
  50. package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
  51. package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-UmcKQftv.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
  53. package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-BZrmSVps.js} +63 -61
  54. package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
  56. package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-aHCc3r7L.js} +38 -36
  57. package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
  58. package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
  59. package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-CJ2Wdln9.js} +63 -61
  60. package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-Cgnooz7-.js} +121 -119
  61. package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-DF71ymNG.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
  64. package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-C4hKgrft.js} +162 -160
  65. package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
  66. package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
  67. package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
  74. package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
  75. package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
  76. package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-BItmKbvF.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
  80. package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-BIv2sfQA.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
  82. package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
  83. package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
  84. package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-CewP8k-W.js} +67 -65
  85. package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
  87. package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-CuwXMI3D.js} +11 -9
  88. package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
  89. package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
  90. package/package.json +1 -1
  91. package/dist/Slicer-Cmc94zkG.js +0 -604
  92. package/dist/Tooltip-RCWHeRDV.js +0 -161
@@ -1,604 +0,0 @@
1
- import { useCssVars as Oe, computed as v, ref as i, onMounted as he, onBeforeUnmount as te, watch as T, nextTick as le, onUpdated as Ze, createElementBlock as c, openBlock as m, createElementVNode as d, createCommentVNode as w, renderSlot as je, normalizeStyle as M, createVNode as Ge, withDirectives as ge, unref as U, Fragment as be, renderList as xe, normalizeClass as B, vModelText as ye, toDisplayString as ae } from "vue";
2
- import qe from "./BaseIcon-B5nQNkmd.js";
3
- import { t as we, u as Je } from "./useResponsive-DfdjqQps.js";
4
- import { c as Ke, V as pe, U as Se, X as Qe, F as ne } from "./index-INqbM37s.js";
5
- import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const _e = {
7
- class: "vue-data-ui-slicer-labels",
8
- style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
- }, et = {
10
- key: 0,
11
- style: { width: "100%", position: "relative" }
12
- }, tt = {
13
- key: 0,
14
- class: "minimap",
15
- style: { width: "100%" }
16
- }, lt = ["xmlns", "viewBox"], at = ["id"], nt = ["stop-color"], it = ["d", "stroke"], ut = ["x", "width", "height", "fill", "rx"], ot = ["d", "fill"], rt = ["x", "width", "height", "rx", "fill"], st = ["x", "width", "height", "fill", "rx"], vt = ["d", "fill"], dt = ["d", "stroke"], ct = ["cx", "cy", "stroke", "fill"], mt = ["cx", "cy", "stroke", "fill"], ft = ["x1", "x2", "y2", "stroke"], ht = ["x", "height", "width", "onMouseenter"], gt = ["min", "max"], bt = ["min", "max"], xt = {
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, Number],
33
- default: ""
34
- },
35
- labelRight: {
36
- type: [String, Number],
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(l, { expose: Ce, emit: ke }) {
126
- Oe((t) => ({
127
- "8b8144e4": Le.value,
128
- "5234e602": p.value,
129
- "300f69f3": Me.value,
130
- "326a2732": l.selectColor,
131
- "0cf3a8c0": Re.value
132
- }));
133
- const a = l, h = i(null), r = i(a.min), s = i(a.max), D = v(() => !!a.minimap.length), O = i(Ke()), V = i(0);
134
- he(() => {
135
- const t = () => {
136
- h.value && (V.value = h.value.getBoundingClientRect().width);
137
- };
138
- t();
139
- const e = we(t, 50);
140
- window.addEventListener("resize", e), te(() => {
141
- window.removeEventListener("resize", e);
142
- });
143
- });
144
- const $e = v(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), L = ke, g = v(() => {
145
- const t = a.max - a.min, e = (r.value - a.min) / t * 100, n = (s.value - a.min) / t * 100, o = (e + n) / 2, x = j.value ? `calc(${o}% - ${H.value.width}px)` : Z.value ? `calc(${o}%)` : `calc(${o}% - ${H.value.width / 2}px)`;
146
- return {
147
- left: `${e}%`,
148
- width: `${n - e}%`,
149
- background: a.selectColor,
150
- tooltipLeft: `calc(${e}% - ${Z.value ? 0 : ee.value / 2}px)`,
151
- tooltipRight: `calc(${n}% - ${j.value ? X.value : X.value / 2}px)`,
152
- tooltipCenter: x,
153
- arrowLeft: !Z.value,
154
- arrowRight: !j.value
155
- };
156
- }), Z = v(() => h.value ? h.value.getBoundingClientRect().width * ((r.value - a.min) / (a.max - a.min)) - ee.value / 2 < 0 : !1), j = v(() => h.value ? h.value.getBoundingClientRect().width * ((s.value - a.min) / (a.max - a.min)) + X.value / 2 > h.value.getBoundingClientRect().width : !1), Le = v(() => a.inputColor), Re = v(() => a.background), Me = v(() => `${a.selectColor}33`), p = v(() => a.borderColor), ie = v(() => {
157
- const t = [];
158
- for (let e = 0; e < a.minimap.length; e += 1)
159
- t.push(e);
160
- return t;
161
- });
162
- function ue() {
163
- L("reset");
164
- }
165
- function Ne() {
166
- Number(r.value) > Number(s.value) - 1 && (r.value = Number(s.value) - 1), L("update:start", Number(r.value));
167
- }
168
- function Ee() {
169
- Number(s.value) < Number(r.value) + 1 && (s.value = Number(r.value) + 1), L("update:end", Number(s.value));
170
- }
171
- T(
172
- () => a.min,
173
- (t) => {
174
- Number(r.value) < Number(t) && (r.value = Number(t)), Number(s.value) < Number(t) && (s.value = Number(t));
175
- }
176
- ), T(
177
- () => a.max,
178
- (t) => {
179
- Number(r.value) > Number(t) && (r.value = Number(t)), Number(s.value) > Number(t) && (s.value = Number(t));
180
- }
181
- );
182
- const G = i(null), u = i({
183
- width: 1,
184
- height: 1
185
- }), N = i(null);
186
- he(() => {
187
- if (D.value) {
188
- const t = we(() => {
189
- const { width: e, height: n } = Je({
190
- chart: G.value
191
- });
192
- u.value.width = e, u.value.height = n - 47;
193
- });
194
- N.value = new ResizeObserver(t), N.value.observe(G.value);
195
- }
196
- }), te(() => {
197
- N.value && N.value.disconnect();
198
- });
199
- const f = v(() => a.minimap.length ? u.value.width / a.minimap.length : 0), b = v(() => {
200
- if (!a.minimap.length) return [];
201
- const t = Math.max(...a.minimap), e = Math.min(...a.minimap) - 10, n = t - (e > 0 ? 0 : e), o = a.minimap.map((Ve, Xe) => {
202
- const Ue = Ve - e;
203
- return {
204
- x: u.value.width / a.minimap.length * Xe + f.value / 2,
205
- y: u.value.height - Ue / n * (u.value.height * 0.9)
206
- };
207
- }), x = a.smoothMinimap ? pe(o) : Se(o), W = [...o].slice(a.valueStart, a.valueEnd), We = a.smoothMinimap ? pe(W) : Se(W);
208
- return {
209
- fullSet: x,
210
- selectionSet: We,
211
- sliced: W,
212
- firstPlot: o[a.valueStart],
213
- lastPlot: o[a.valueEnd - 1]
214
- };
215
- }), y = v(() => ({
216
- x: f.value * r.value + f.value / 2,
217
- width: u.value.width * ((s.value - r.value) / a.max) - f.value
218
- })), z = i(a.minimapSelectedIndex);
219
- T(
220
- () => a.minimapSelectedIndex,
221
- (t) => {
222
- z.value = t + a.valueStart;
223
- },
224
- { immediate: !0 }
225
- );
226
- function Te(t) {
227
- z.value = t, t >= a.valueStart && t < a.valueEnd && L("trapMouse", t - a.valueStart);
228
- }
229
- const Be = i(0), q = i(null), J = i(null);
230
- function K(t) {
231
- r.value = t, q.value && (q.value.value = t), L("update:start", Number(r.value));
232
- }
233
- function Q(t) {
234
- s.value = t, J.value && (J.value.value = t), L("update:end", Number(s.value));
235
- }
236
- const Y = v(() => a.valueEnd - a.valueStart), I = i(!1);
237
- let _ = i(null);
238
- const De = v(() => (V.value - 48) / (a.max - a.min)), ze = v(() => (V.value - 48) / (a.max - a.min) * Y.value), Ie = i(2.5), oe = v(() => {
239
- const t = V.value - 48;
240
- return Math.ceil((a.max - a.min) / ((t - ze.value) / Ie.value));
241
- });
242
- let S = null, C = null, k = null, $ = null;
243
- const re = (t) => {
244
- if (R.value = !0, !a.enableSelectionDrag) return;
245
- const e = t.type === "touchstart";
246
- e || t.stopPropagation();
247
- const n = e && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, o = e ? n ? n.target : null : t.target;
248
- !o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle") || (I.value = !0, _.value = e ? n ? n.clientX : 0 : t.clientX, S = e ? "touchmove" : "mousemove", C = e ? "touchend" : "mouseup", k = e ? Ae : Pe, $ = e ? He : Fe, window.addEventListener(S, k, { passive: !1 }), window.addEventListener(C, $));
249
- };
250
- function Pe(t) {
251
- I.value && se(t.clientX);
252
- }
253
- function Ae(t) {
254
- if (!I.value || !h.value) return;
255
- const e = t.target;
256
- if (!(e instanceof Element) || !h.value.contains(e) || e.classList && e.classList.contains("range-handle")) return;
257
- t.preventDefault();
258
- const n = t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null;
259
- n && se(n.clientX);
260
- }
261
- function se(t) {
262
- if (!I.value) return;
263
- const e = t - _.value;
264
- if (Math.abs(e) > De.value) {
265
- if (e > 0) {
266
- if (Number(s.value) + 1 <= a.max) {
267
- const n = Math.min(a.max, Number(s.value) + oe.value);
268
- Q(n), K(n - Y.value);
269
- }
270
- } else if (Number(r.value) - 1 >= a.min) {
271
- const n = Math.max(a.min, Number(r.value) - oe.value);
272
- K(n), Q(n + Y.value);
273
- }
274
- _.value = t;
275
- }
276
- }
277
- function Fe() {
278
- ve();
279
- }
280
- function He() {
281
- ve();
282
- }
283
- function ve() {
284
- I.value = !1, S && k && window.removeEventListener(S, k), C && $ && window.removeEventListener(C, $), S = C = null, k = $ = null;
285
- }
286
- const E = i(!1), P = i(null), A = i(null), ee = i(1), X = i(1), R = i(!1);
287
- function de() {
288
- P.value && (ee.value = P.value.getBoundingClientRect().width);
289
- }
290
- function ce() {
291
- A.value && (X.value = A.value.getBoundingClientRect().width);
292
- }
293
- const me = i(0);
294
- function fe(t) {
295
- me.value = t === "start" ? 1 : 0;
296
- }
297
- const F = i(!1), H = i({
298
- width: 0,
299
- left: 0
300
- });
301
- return T([r, s], async () => {
302
- if (await le(), !P.value || !A.value) {
303
- F.value = !1, H.value = { width: 0, left: 0 };
304
- return;
305
- }
306
- const t = P.value.getBoundingClientRect(), e = A.value.getBoundingClientRect();
307
- F.value = t.x + t.width > e.x;
308
- const n = t.x + t.width / 2, o = e.x + e.width / 2, x = t.width + e.width, W = (n + o) / 2;
309
- H.value = {
310
- width: x,
311
- left: W - x / 2
312
- };
313
- }), Ze(() => {
314
- de(), ce();
315
- }), T(
316
- () => a.labelLeft,
317
- () => {
318
- le(de);
319
- },
320
- { deep: !0 }
321
- ), T(
322
- () => a.labelRight,
323
- () => {
324
- le(ce);
325
- },
326
- { deep: !0 }
327
- ), Ce({
328
- setStartValue: K,
329
- setEndValue: Q
330
- }), te(() => {
331
- N.value && N.value.disconnect(), S && k && window.removeEventListener(S, k), C && $ && window.removeEventListener(C, $), S = C = null, k = $ = null;
332
- }), (t, e) => (m(), c("div", {
333
- "data-dom-to-png-ignore": "",
334
- style: { padding: "0 24px" },
335
- class: "vue-data-ui-zoom",
336
- ref_key: "zoomWrapper",
337
- ref: h,
338
- onMousedown: re,
339
- onTouchstart: re,
340
- onTouchend: e[11] || (e[11] = (n) => R.value = !1)
341
- }, [
342
- d("div", _e, [
343
- l.valueStart !== l.refreshStartPoint || l.valueEnd !== $e.value ? (m(), c("div", et, [
344
- l.useResetSlot ? je(t.$slots, "reset-action", {
345
- key: 1,
346
- reset: ue
347
- }, void 0, !0) : (m(), c("button", {
348
- key: 0,
349
- tabindex: "0",
350
- role: "button",
351
- class: "vue-data-ui-refresh-button",
352
- style: M({
353
- top: D.value ? "36px" : "-16px",
354
- pointerEvents: "all !important"
355
- }),
356
- onClick: ue
357
- }, [
358
- Ge(qe, {
359
- name: "refresh",
360
- stroke: l.textColor
361
- }, null, 8, ["stroke"])
362
- ], 4))
363
- ])) : w("", !0)
364
- ]),
365
- d("div", {
366
- class: "double-range-slider",
367
- ref_key: "minimapWrapper",
368
- ref: G,
369
- style: { "z-index": "0" },
370
- onMouseenter: e[9] || (e[9] = (n) => R.value = !0),
371
- onMouseleave: e[10] || (e[10] = (n) => R.value = !1)
372
- }, [
373
- D.value ? (m(), c("div", tt, [
374
- (m(), c("svg", {
375
- xmlns: U(Qe),
376
- viewBox: `0 0 ${u.value.width < 0 ? 0 : u.value.width} ${u.value.height < 0 ? 0 : u.value.height}`
377
- }, [
378
- d("defs", null, [
379
- d("linearGradient", {
380
- id: O.value,
381
- x1: "0%",
382
- y1: "0%",
383
- x2: "0%",
384
- y2: "100%"
385
- }, [
386
- d("stop", {
387
- offset: "0%",
388
- "stop-color": `${l.minimapLineColor}50`
389
- }, null, 8, nt),
390
- e[12] || (e[12] = d("stop", {
391
- offset: "100%",
392
- "stop-color": "transparent"
393
- }, null, -1))
394
- ], 8, at)
395
- ]),
396
- d("path", {
397
- d: `M${b.value.fullSet}`,
398
- stroke: `${l.minimapLineColor}`,
399
- fill: "none",
400
- "stroke-width": "1",
401
- "stroke-linecap": "round",
402
- "stroke-linejoin": "round",
403
- style: { opacity: "1" }
404
- }, null, 8, it),
405
- d("rect", {
406
- x: y.value.x,
407
- width: y.value.width < 0 ? 0 : y.value.width,
408
- height: Math.max(u.value.height, 0),
409
- y: 0,
410
- fill: p.value,
411
- rx: l.minimapSelectionRadius,
412
- stroke: "none"
413
- }, null, 8, ut),
414
- d("path", {
415
- d: `M${f.value / 2},${Math.max(u.value.height, 0)} ${b.value.fullSet} L${u.value.width - f.value / 2},${Math.max(u.value.height, 0)}Z`,
416
- fill: `url(#${O.value})`,
417
- stroke: "none",
418
- style: { opacity: "1" }
419
- }, null, 8, ot),
420
- d("rect", {
421
- x: y.value.x,
422
- width: y.value.width < 0 ? 0 : y.value.width,
423
- height: Math.max(u.value.height, 0),
424
- y: 0,
425
- rx: l.minimapSelectionRadius,
426
- fill: p.value
427
- }, null, 8, rt),
428
- d("rect", {
429
- x: y.value.x,
430
- width: y.value.width < 0 ? 0 : y.value.width,
431
- height: Math.max(u.value.height, 0),
432
- y: 0,
433
- fill: l.minimapSelectedColor,
434
- rx: l.minimapSelectionRadius,
435
- style: M({
436
- opacity: l.minimapSelectedColorOpacity
437
- })
438
- }, null, 12, st),
439
- d("path", {
440
- d: `M${b.value.sliced[0].x},${Math.max(u.value.height, 0)} ${b.value.selectionSet} L${b.value.sliced.at(-1).x},${Math.max(u.value.height, 0)}Z`,
441
- fill: `url(#${O.value})`,
442
- stroke: "none",
443
- style: { opacity: "1" }
444
- }, null, 8, vt),
445
- d("path", {
446
- d: `M ${b.value.selectionSet}`,
447
- stroke: `${l.minimapLineColor}`,
448
- fill: "transparent",
449
- "stroke-width": "2",
450
- "stroke-linecap": "round",
451
- "stroke-linejoin": "round"
452
- }, null, 8, dt),
453
- d("circle", {
454
- cx: b.value.firstPlot.x,
455
- cy: b.value.firstPlot.y,
456
- "stroke-width": "0.5",
457
- stroke: p.value,
458
- r: "3",
459
- fill: l.minimapLineColor
460
- }, null, 8, ct),
461
- d("circle", {
462
- cx: b.value.lastPlot.x,
463
- cy: b.value.lastPlot.y,
464
- "stroke-width": "0.5",
465
- stroke: p.value,
466
- r: "3",
467
- fill: l.minimapLineColor
468
- }, null, 8, mt),
469
- z.value !== null ? (m(!0), c(be, { key: 0 }, xe(ie.value, (n, o) => (m(), c("g", null, [
470
- z.value === n && n >= l.valueStart && n < l.valueEnd ? (m(), c("line", {
471
- key: 0,
472
- x1: f.value * o + f.value / 2,
473
- x2: f.value * o + f.value / 2,
474
- y1: 0,
475
- y2: Math.max(u.value.height, 0),
476
- stroke: l.minimapIndicatorColor,
477
- "stroke-linecap": "round",
478
- "stroke-dasharray": "2",
479
- "stroke-width": "1"
480
- }, null, 8, ft)) : w("", !0)
481
- ]))), 256)) : w("", !0),
482
- (m(!0), c(be, null, xe(ie.value, (n, o) => (m(), c("rect", {
483
- x: f.value * o,
484
- y: 0,
485
- height: Math.max(u.value.height, 0),
486
- width: f.value < 0 ? 0 : f.value,
487
- fill: "transparent",
488
- style: M([{ "pointer-events": "all !important" }, {
489
- cursor: n >= l.valueStart && n < l.valueEnd && l.enableSelectionDrag ? E.value ? "grabbing" : "grab" : "default"
490
- }]),
491
- onMousedown: e[0] || (e[0] = (x) => E.value = !0),
492
- onMouseup: e[1] || (e[1] = (x) => E.value = !1),
493
- onMouseenter: (x) => Te(n),
494
- onMouseleave: e[2] || (e[2] = (x) => {
495
- z.value = null, L("trapMouse", null);
496
- })
497
- }, null, 44, ht))), 256))
498
- ], 8, lt))
499
- ])) : w("", !0),
500
- e[13] || (e[13] = d("div", { class: "slider-track" }, null, -1)),
501
- d("div", {
502
- class: B({
503
- "range-highlight": !0,
504
- move: l.enableSelectionDrag
505
- }),
506
- onMousedown: e[3] || (e[3] = (n) => E.value = !0),
507
- onMouseup: e[4] || (e[4] = (n) => E.value = !1),
508
- style: M({
509
- ...g.value,
510
- cursor: E.value ? "grabbing" : "grab"
511
- })
512
- }, null, 38),
513
- l.enableRangeHandles ? ge((m(), c("input", {
514
- ref_key: "rangeStart",
515
- ref: q,
516
- key: `range-min${Be.value}`,
517
- type: "range",
518
- class: B({ "range-left": !0, "range-handle": !0, "range-minimap": D.value && l.verticalHandles }),
519
- min: l.min,
520
- max: l.max,
521
- "onUpdate:modelValue": e[5] || (e[5] = (n) => r.value = n),
522
- onInput: Ne,
523
- onMouseenter: e[6] || (e[6] = (n) => fe("start"))
524
- }, null, 42, gt)), [
525
- [ye, r.value]
526
- ]) : w("", !0),
527
- l.enableRangeHandles ? ge((m(), c("input", {
528
- key: 2,
529
- ref_key: "rangeEnd",
530
- ref: J,
531
- type: "range",
532
- class: B({ "range-right": !0, "range-handle": !0, "range-minimap": D.value && l.verticalHandles }),
533
- min: l.min,
534
- max: l.max,
535
- "onUpdate:modelValue": e[7] || (e[7] = (n) => s.value = n),
536
- onInput: Ee,
537
- onMouseenter: e[8] || (e[8] = (n) => fe("end"))
538
- }, null, 42, bt)), [
539
- [ye, s.value]
540
- ]) : w("", !0),
541
- l.labelLeft ? (m(), c("div", {
542
- key: 3,
543
- ref_key: "tooltipLeft",
544
- ref: P,
545
- class: B({
546
- "range-tooltip": !0,
547
- "range-tooltip-visible": R.value,
548
- "range-tooltip-arrow": g.value.arrowLeft && !l.verticalHandles,
549
- "range-tooltip-arrow-left": !g.value.arrowLeft && !l.verticalHandles
550
- }),
551
- style: M({
552
- left: g.value.tooltipLeft,
553
- color: U(ne)(l.selectColor),
554
- backgroundColor: l.selectColor,
555
- border: `1px solid ${p.value}`,
556
- zIndex: `${me.value + 4}`,
557
- visibility: F.value || l.labelLeft === l.labelRight ? "hidden" : "visible"
558
- })
559
- }, ae(l.labelLeft), 7)) : w("", !0),
560
- (F.value || l.labelLeft === l.labelRight) && (l.labelLeft || l.labelRight) ? (m(), c("div", {
561
- key: 4,
562
- ref: "tooltipMerge",
563
- class: B({
564
- "range-tooltip": !0,
565
- "range-tooltip-visible": R.value,
566
- "range-tooltip-arrow": !0,
567
- "range-tooltip-arrow-left": !g.value.arrowLeft && !l.verticalHandles,
568
- "range-tooltip-arrow-right": !g.value.arrowRight && !l.verticalHandles
569
- }),
570
- style: M({
571
- left: g.value.tooltipCenter,
572
- width: H.value.width + "px",
573
- color: U(ne)(l.selectColor),
574
- backgroundColor: l.selectColor,
575
- border: `1px solid ${p.value}`,
576
- zIndex: "4"
577
- })
578
- }, ae(l.labelLeft === l.labelRight ? l.labelLeft : `${l.labelLeft} - ${l.labelRight}`), 7)) : w("", !0),
579
- l.labelRight ? (m(), c("div", {
580
- key: 5,
581
- ref_key: "tooltipRight",
582
- ref: A,
583
- class: B({
584
- "range-tooltip": !0,
585
- "range-tooltip-visible": R.value,
586
- "range-tooltip-arrow": g.value.arrowRight && !l.verticalHandles,
587
- "range-tooltip-arrow-right": !g.value.arrowRight && !l.verticalHandles
588
- }),
589
- style: M({
590
- left: g.value.tooltipRight,
591
- color: U(ne)(l.selectColor),
592
- backgroundColor: l.selectColor,
593
- border: `1px solid ${p.value}`,
594
- zIndex: "4",
595
- visibility: F.value || l.labelLeft === l.labelRight ? "hidden" : "visible"
596
- })
597
- }, ae(l.labelRight), 7)) : w("", !0)
598
- ], 544)
599
- ], 544));
600
- }
601
- }, kt = /* @__PURE__ */ Ye(xt, [["__scopeId", "data-v-84cedf10"]]);
602
- export {
603
- kt as S
604
- };