vue-data-ui 3.0.0-next.30 → 3.0.0-next.32

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 (91) hide show
  1. package/dist/{Arrow-gZkDqarC.js → Arrow-DiI9PrPS.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cx7MDUn7.js → BaseDraggableDialog-C0Kz_kZp.js} +2 -2
  3. package/dist/{BaseIcon-DEGIw8ne.js → BaseIcon-B_tGgA4H.js} +1 -1
  4. package/dist/{ColorPicker-dVo9qgIk.js → ColorPicker-CNsQt00F.js} +2 -2
  5. package/dist/{DataTable-DjL9vVfm.js → DataTable-Cm1oLidx.js} +2 -2
  6. package/dist/{Legend-DNs8ZSxL.js → Legend-DlUDcF1t.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-Bmu00306.js → NonSvgPenAndPaper-CLlxRJK1.js} +3 -3
  8. package/dist/{PackageVersion-SqC1iXfO.js → PackageVersion-DZMJZGOu.js} +1 -1
  9. package/dist/{PenAndPaper-C1bF0gIz.js → PenAndPaper-BDNLADWh.js} +3 -3
  10. package/dist/{Shape-CNmKltYG.js → Shape-Br_SZ_x0.js} +1 -1
  11. package/dist/Slicer-DMU3nifX.js +588 -0
  12. package/dist/{SparkTooltip-BuPeepCP.js → SparkTooltip-B6xp9zx_.js} +1 -1
  13. package/dist/{Title-B21jaJ0n.js → Title-B5lsq0cx.js} +1 -1
  14. package/dist/{Tooltip-C4HWh3fx.js → Tooltip-CrAURNKT.js} +23 -19
  15. package/dist/{UserOptions-DQDPN9YO.js → UserOptions-CksX2mn0.js} +2 -2
  16. package/dist/{dom-to-png-Z16yk8O6.js → dom-to-png-CIBDe8BB.js} +1 -1
  17. package/dist/{img-UQKhhbxb.js → img-CWXYkVMQ.js} +1 -1
  18. package/dist/{index-Bxh2efzz.js → index-DB4XIP_N.js} +16 -3
  19. package/dist/{pdf-D2K9GCDq.js → pdf-Dm-ieKMv.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +13 -1
  22. package/dist/types/vue-data-ui.d.ts +13 -1
  23. package/dist/{useNestedProp-BGEUK51b.js → useNestedProp-iTa19l34.js} +1 -1
  24. package/dist/{usePrinter-CfB_poc_.js → usePrinter-id381vkp.js} +2 -2
  25. package/dist/{vue-data-ui-Em_nyncZ.js → vue-data-ui-WdvK3lBL.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-KFXQhCpk.js → vue-ui-3d-bar-CtiAXSRA.js} +6 -6
  28. package/dist/{vue-ui-accordion-CXj3OfMj.js → vue-ui-accordion-DAT3uTMD.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-Bygd_6Lj.js → vue-ui-age-pyramid-LuljyG04.js} +11 -9
  30. package/dist/{vue-ui-annotator-CaxhGvw9.js → vue-ui-annotator-CzHa2GlG.js} +2 -2
  31. package/dist/{vue-ui-bullet-xsVzeIGY.js → vue-ui-bullet-BEzXYrWC.js} +7 -7
  32. package/dist/{vue-ui-candlestick-DT3NblSj.js → vue-ui-candlestick-DSaFw3wl.js} +12 -10
  33. package/dist/{vue-ui-carousel-table-Bj6Blcps.js → vue-ui-carousel-table-D1CLPWmk.js} +4 -4
  34. package/dist/{vue-ui-chestnut-Bzi7pvOQ.js → vue-ui-chestnut-D3FNLdep.js} +5 -5
  35. package/dist/{vue-ui-chord-SN0lkfJI.js → vue-ui-chord-CFT-LcE4.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-BwH7JGeH.js → vue-ui-circle-pack-Bl_cyLTg.js} +6 -6
  37. package/dist/{vue-ui-cursor-BLHqKKuQ.js → vue-ui-cursor-C2XYAY0n.js} +2 -2
  38. package/dist/{vue-ui-dashboard-C5ye3aO2.js → vue-ui-dashboard-4ZwAsn1N.js} +62 -62
  39. package/dist/{vue-ui-digits-fWW_yCiA.js → vue-ui-digits-Da5mTaOQ.js} +2 -2
  40. package/dist/{vue-ui-donut-VI_2cil0.js → vue-ui-donut-B6QlrBEH.js} +13 -11
  41. package/dist/{vue-ui-donut-evolution-BMDGbLPk.js → vue-ui-donut-evolution-Tv7oj7TE.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-DYVwpQdP.js → vue-ui-dumbbell-LNnnDec4.js} +7 -7
  43. package/dist/{vue-ui-flow-BP3lwS2c.js → vue-ui-flow-B618L2Da.js} +12 -10
  44. package/dist/{vue-ui-funnel-C2gKEJrg.js → vue-ui-funnel-DS_tcSnW.js} +6 -6
  45. package/dist/{vue-ui-galaxy-CHu9EpUI.js → vue-ui-galaxy-C5qk-fEV.js} +51 -49
  46. package/dist/{vue-ui-gauge-DXoBEk4e.js → vue-ui-gauge-C33XPj6b.js} +6 -6
  47. package/dist/{vue-ui-gizmo-DpWaeVxb.js → vue-ui-gizmo-Cr6zUxnq.js} +3 -3
  48. package/dist/{vue-ui-heatmap-C6Xh5fmd.js → vue-ui-heatmap-ksiw1nTI.js} +32 -30
  49. package/dist/{vue-ui-history-plot-CH4RJSqN.js → vue-ui-history-plot-DM_vTyiY.js} +12 -10
  50. package/dist/{vue-ui-kpi-DJrypxm5.js → vue-ui-kpi-BgFQSUVT.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-BMaEgYp1.js → vue-ui-mini-loader-BEpehl5X.js} +2 -2
  52. package/dist/{vue-ui-molecule-om_udncc.js → vue-ui-molecule-BIQFbPof.js} +35 -33
  53. package/dist/{vue-ui-mood-radar-BOd7BMa4.js → vue-ui-mood-radar-RShxk3Bz.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-B6krlgFx.js → vue-ui-nested-donuts-dMBxBBnZ.js} +62 -60
  55. package/dist/{vue-ui-onion-COQ1H7Ft.js → vue-ui-onion-ZVZ6wpNM.js} +46 -44
  56. package/dist/{vue-ui-parallel-coordinate-plot-CEKsfccd.js → vue-ui-parallel-coordinate-plot-1a3BGVsh.js} +69 -67
  57. package/dist/{vue-ui-quadrant-C88vkF8q.js → vue-ui-quadrant-XCnxKrJd.js} +59 -57
  58. package/dist/{vue-ui-quick-chart-CG2lY19C.js → vue-ui-quick-chart-BQJqdHxB.js} +11 -9
  59. package/dist/{vue-ui-radar-CUAYzxM4.js → vue-ui-radar-CeXlq2A-.js} +12 -10
  60. package/dist/{vue-ui-rating-DT0BLQ1G.js → vue-ui-rating-DTq-mZyU.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-Ek_uAHpF.js → vue-ui-relation-circle-k8viefM-.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-73OXSMcJ.js → vue-ui-ridgeline-B8oddwmZ.js} +8 -8
  63. package/dist/{vue-ui-rings-D1gK_JVs.js → vue-ui-rings-9XT1ePuY.js} +13 -11
  64. package/dist/{vue-ui-scatter-DCy4Vb84.js → vue-ui-scatter-oM-LVerf.js} +72 -70
  65. package/dist/{vue-ui-skeleton-DIb-2uan.js → vue-ui-skeleton-DDLBx4bb.js} +3 -3
  66. package/dist/{vue-ui-smiley-DiIu0kjQ.js → vue-ui-smiley-D5ybBkdY.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-BPczzwfH.js → vue-ui-spark-trend-Tl-sOjqa.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-B4LpToMU.js → vue-ui-sparkbar-Ce6dYcF4.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-D9KwmalJ.js → vue-ui-sparkgauge-DRHrbpSl.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-h7qmzAe1.js → vue-ui-sparkhistogram-DBtPWFim.js} +4 -4
  71. package/dist/{vue-ui-sparkline-DYYy38Fu.js → vue-ui-sparkline-DcF2ugGh.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-DIIyxzKM.js → vue-ui-sparkstackbar-C01iI0y3.js} +55 -53
  73. package/dist/{vue-ui-stackbar-BhPcAjIe.js → vue-ui-stackbar-BeCCgw_v.js} +196 -194
  74. package/dist/{vue-ui-strip-plot-9wxxXL3R.js → vue-ui-strip-plot-CsK2a1mH.js} +30 -28
  75. package/dist/{vue-ui-table-FAEiGW1W.js → vue-ui-table-COjBJDmq.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-Cwbw5Rqy.js → vue-ui-table-heatmap-DfxMcAr9.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-DnZ44NiP.js → vue-ui-table-sparkline-0BC6BxKt.js} +4 -4
  78. package/dist/{vue-ui-thermometer-CHFtR_VC.js → vue-ui-thermometer-Bf2_qGBi.js} +6 -6
  79. package/dist/{vue-ui-timer-DWzZTLxC.js → vue-ui-timer-BC9tH4qB.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-DTS-ZQRp.js → vue-ui-tiremarks-ya8ABi9I.js} +6 -6
  81. package/dist/{vue-ui-treemap-B5OdGgS-.js → vue-ui-treemap-BSHptMc8.js} +13 -11
  82. package/dist/{vue-ui-vertical-bar-CcjDg9Bc.js → vue-ui-vertical-bar-B_Oa-v87.js} +41 -39
  83. package/dist/{vue-ui-waffle-C1XVqncx.js → vue-ui-waffle-DHB8v3nh.js} +13 -11
  84. package/dist/{vue-ui-wheel-DEIJPpR4.js → vue-ui-wheel-Bi28_KVB.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-CUzU4JpO.js → vue-ui-word-cloud-BcQ2cfcu.js} +12 -10
  86. package/dist/{vue-ui-world-D0pONCg9.js → vue-ui-world-aLL9NUDQ.js} +11 -9
  87. package/dist/vue-ui-xy-BxonzF88.js +3710 -0
  88. package/dist/{vue-ui-xy-canvas-Do-IpmFr.js → vue-ui-xy-canvas-sUpmc7gl.js} +30 -28
  89. package/package.json +1 -1
  90. package/dist/Slicer-DYffOkSj.js +0 -577
  91. package/dist/vue-ui-xy-EoeoBLu2.js +0 -3027
@@ -0,0 +1,588 @@
1
+ import { useCssVars as We, computed as d, ref as i, onMounted as ce, onBeforeUnmount as me, watch as R, nextTick as Q, onUpdated as Ve, createElementBlock as c, openBlock as m, createElementVNode as v, createCommentVNode as p, renderSlot as Xe, normalizeStyle as k, createVNode as Ue, withDirectives as he, unref as F, Fragment as fe, renderList as ge, normalizeClass as L, vModelText as be, toDisplayString as Y } from "vue";
2
+ import Oe from "./BaseIcon-B_tGgA4H.js";
3
+ import { t as xe, u as Ze } from "./useResponsive-DfdjqQps.js";
4
+ import { c as je, V as pe, U as ye, X as Ge, F as _ } from "./index-DB4XIP_N.js";
5
+ import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const Je = {
7
+ class: "vue-data-ui-slicer-labels",
8
+ style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
+ }, Ke = {
10
+ key: 0,
11
+ style: { width: "100%", position: "relative" }
12
+ }, Qe = {
13
+ key: 0,
14
+ class: "minimap",
15
+ style: { width: "100%" }
16
+ }, Ye = ["xmlns", "viewBox"], _e = ["id"], et = ["stop-color"], tt = ["d", "stroke"], lt = ["x", "width", "height", "fill", "rx"], at = ["d", "fill"], nt = ["x", "width", "height", "rx", "fill"], it = ["x", "width", "height", "fill", "rx"], ot = ["d", "fill"], ut = ["d", "stroke"], rt = ["cx", "cy", "stroke", "fill"], st = ["cx", "cy", "stroke", "fill"], dt = ["x1", "x2", "y2", "stroke"], vt = ["x", "height", "width", "onMouseenter"], ct = ["min", "max"], mt = ["min", "max"], ht = {
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: we, emit: Se }) {
126
+ We((e) => ({
127
+ "0dbd4190": ke.value,
128
+ ddd230a8: w.value,
129
+ "4490041d": Re.value,
130
+ "714c28dc": l.selectColor,
131
+ "2248c56a": $e.value
132
+ }));
133
+ const a = l, y = i(null), u = i(a.min), r = i(a.max), N = d(() => !!a.minimap.length), H = i(je()), I = i(0);
134
+ ce(() => {
135
+ const e = () => {
136
+ I.value = y.value.getBoundingClientRect().width;
137
+ };
138
+ e();
139
+ const t = xe(e, 50);
140
+ window.addEventListener("resize", t), me(() => {
141
+ window.removeEventListener("resize", t);
142
+ });
143
+ });
144
+ const Ce = d(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), S = Se, g = d(() => {
145
+ const e = a.max - a.min, t = (u.value - a.min) / e * 100, n = (r.value - a.min) / e * 100, s = (t + n) / 2, f = V.value ? `calc(${s}% - ${T.value.width}px)` : W.value ? `calc(${s}%)` : `calc(${s}% - ${T.value.width / 2}px)`;
146
+ return {
147
+ left: `${t}%`,
148
+ width: `${n - t}%`,
149
+ background: a.selectColor,
150
+ tooltipLeft: `calc(${t}% - ${W.value ? 0 : K.value / 2}px)`,
151
+ tooltipRight: `calc(${n}% - ${V.value ? A.value : A.value / 2}px)`,
152
+ tooltipCenter: f,
153
+ arrowLeft: !W.value,
154
+ arrowRight: !V.value
155
+ };
156
+ }), W = d(() => y.value ? y.value.getBoundingClientRect().width * ((u.value - a.min) / (a.max - a.min)) - K.value / 2 < 0 : !1), V = d(() => y.value ? y.value.getBoundingClientRect().width * ((r.value - a.min) / (a.max - a.min)) + A.value / 2 > y.value.getBoundingClientRect().width : !1), ke = d(() => a.inputColor), $e = d(() => a.background), Re = d(() => `${a.selectColor}33`), w = d(() => a.borderColor), ee = d(() => {
157
+ let e = [];
158
+ for (let t = 0; t < a.minimap.length; t += 1)
159
+ e.push(t);
160
+ return e;
161
+ });
162
+ function te() {
163
+ S("reset");
164
+ }
165
+ function Le() {
166
+ Number(u.value) > Number(r.value) - 1 && (u.value = Number(r.value) - 1), S("update:start", Number(u.value));
167
+ }
168
+ function Ne() {
169
+ Number(r.value) < Number(u.value) + 1 && (r.value = Number(u.value) + 1), S("update:end", Number(r.value));
170
+ }
171
+ R(
172
+ () => a.min,
173
+ (e) => {
174
+ Number(u.value) < Number(e) && (u.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
175
+ }
176
+ ), R(
177
+ () => a.max,
178
+ (e) => {
179
+ Number(u.value) > Number(e) && (u.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
180
+ }
181
+ );
182
+ const X = i(null), o = i({
183
+ width: 1,
184
+ height: 1
185
+ }), P = i(null);
186
+ ce(() => {
187
+ if (N.value) {
188
+ const e = xe(() => {
189
+ const { width: t, height: n } = Ze({
190
+ chart: X.value
191
+ });
192
+ o.value.width = t, o.value.height = n - 47;
193
+ });
194
+ P.value = new ResizeObserver(e), P.value.observe(X.value);
195
+ }
196
+ }), me(() => {
197
+ P.value && P.value.disconnect();
198
+ });
199
+ const h = d(() => a.minimap.length ? o.value.width / a.minimap.length : 0), b = d(() => {
200
+ if (!a.minimap.length) return [];
201
+ const e = Math.max(...a.minimap), t = Math.min(...a.minimap) - 10, n = e - (t > 0 ? 0 : t), s = a.minimap.map((Ae, Fe) => {
202
+ const He = Ae - t;
203
+ return {
204
+ x: o.value.width / a.minimap.length * Fe + h.value / 2,
205
+ y: o.value.height - He / n * (o.value.height * 0.9)
206
+ };
207
+ }), f = a.smoothMinimap ? pe(s) : ye(s), z = [...s].slice(a.valueStart, a.valueEnd), Pe = a.smoothMinimap ? pe(z) : ye(z);
208
+ return {
209
+ fullSet: f,
210
+ selectionSet: Pe,
211
+ sliced: z,
212
+ firstPlot: s[a.valueStart],
213
+ lastPlot: s[a.valueEnd - 1]
214
+ };
215
+ }), x = d(() => ({
216
+ x: h.value * u.value + h.value / 2,
217
+ width: o.value.width * ((r.value - u.value) / a.max) - h.value
218
+ })), M = i(a.minimapSelectedIndex);
219
+ R(() => a.minimapSelectedIndex, (e) => {
220
+ M.value = e + a.valueStart;
221
+ }, { immediate: !0 });
222
+ function Me(e) {
223
+ M.value = e, e >= a.valueStart && e < a.valueEnd && S("trapMouse", e - a.valueStart);
224
+ }
225
+ const Ee = i(0), U = i(null), O = i(null);
226
+ function Z(e) {
227
+ u.value = e, U.value && (U.value.value = e), S("update:start", Number(u.value));
228
+ }
229
+ function j(e) {
230
+ r.value = e, O.value && (O.value.value = e), S("update:end", Number(r.value));
231
+ }
232
+ const G = d(() => a.valueEnd - a.valueStart), q = i(!1);
233
+ let J = i(null);
234
+ const Be = d(() => (I.value - 48) / (a.max - a.min)), De = d(() => (I.value - 48) / (a.max - a.min) * G.value), Te = i(2.5), le = d(() => {
235
+ const e = I.value - 48;
236
+ return Math.ceil(
237
+ (a.max - a.min) / ((e - De.value) / Te.value)
238
+ );
239
+ }), ae = (e) => {
240
+ if (C.value = !0, !a.enableSelectionDrag)
241
+ return;
242
+ const t = e.type === "touchstart";
243
+ if ((t ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
244
+ return;
245
+ q.value = !0, J.value = t ? e.targetTouches[0].clientX : e.clientX;
246
+ const s = t ? ze : ne, f = t ? Ie : oe;
247
+ window.addEventListener(t ? "touchmove" : "mousemove", s, { passive: !1 }), window.addEventListener(t ? "touchend" : "mouseup", f);
248
+ };
249
+ function ne(e) {
250
+ ie(e.clientX);
251
+ }
252
+ function ze(e) {
253
+ y.value.contains(e.target) && (e.target.classList.contains("range-handle") || (e.preventDefault(), ie(e.targetTouches[0].clientX)));
254
+ }
255
+ function ie(e) {
256
+ if (!q.value) return;
257
+ const t = e - J.value;
258
+ if (Math.abs(t) > Be.value) {
259
+ if (t > 0) {
260
+ if (Number(r.value) + 1 <= a.max) {
261
+ const n = Math.min(a.max, Number(r.value) + le.value);
262
+ j(n), Z(n - G.value);
263
+ }
264
+ } else if (Number(u.value) - 1 >= a.min) {
265
+ const n = Math.max(0, Number(u.value) - le.value);
266
+ Z(n), j(n + G.value);
267
+ }
268
+ J.value = e;
269
+ }
270
+ }
271
+ function oe() {
272
+ ue("mousemove", "mouseup");
273
+ }
274
+ function Ie() {
275
+ ue("touchmove", "touchend");
276
+ }
277
+ function ue(e, t) {
278
+ q.value = !1, window.removeEventListener(e, ne), window.removeEventListener(t, oe);
279
+ }
280
+ const $ = i(!1), E = i(null), B = i(null), K = i(1), A = i(1), C = i(!1);
281
+ function re() {
282
+ E.value && (K.value = E.value.getBoundingClientRect().width);
283
+ }
284
+ function se() {
285
+ B.value && (A.value = B.value.getBoundingClientRect().width);
286
+ }
287
+ const de = i(0);
288
+ function ve(e) {
289
+ de.value = e === "start" ? 1 : 0;
290
+ }
291
+ const D = i(!1), T = i({
292
+ width: 0,
293
+ left: 0
294
+ });
295
+ return R([u, r], async () => {
296
+ if (await Q(), !E.value || !B.value) {
297
+ D.value = !1, T.value = { width: 0, left: 0 };
298
+ return;
299
+ }
300
+ const e = E.value.getBoundingClientRect(), t = B.value.getBoundingClientRect();
301
+ D.value = e.x + e.width > t.x;
302
+ const n = e.x + e.width / 2, s = t.x + t.width / 2, f = e.width + t.width, z = (n + s) / 2;
303
+ T.value = {
304
+ width: f,
305
+ left: z - f / 2
306
+ };
307
+ }), Ve(() => {
308
+ re(), se();
309
+ }), R(() => a.labelLeft, () => {
310
+ Q(re);
311
+ }, { deep: !0 }), R(() => a.labelRight, () => {
312
+ Q(se);
313
+ }, { deep: !0 }), we({
314
+ setStartValue: Z,
315
+ setEndValue: j
316
+ }), (e, t) => (m(), c("div", {
317
+ "data-dom-to-png-ignore": "",
318
+ style: { padding: "0 24px" },
319
+ class: "vue-data-ui-zoom",
320
+ ref_key: "zoomWrapper",
321
+ ref: y,
322
+ onMousedown: ae,
323
+ onTouchstart: ae,
324
+ onTouchend: t[11] || (t[11] = (n) => C.value = !1)
325
+ }, [
326
+ v("div", Je, [
327
+ l.valueStart !== l.refreshStartPoint || l.valueEnd !== Ce.value ? (m(), c("div", Ke, [
328
+ l.useResetSlot ? Xe(e.$slots, "reset-action", {
329
+ key: 1,
330
+ reset: te
331
+ }, void 0, !0) : (m(), c("button", {
332
+ key: 0,
333
+ tabindex: "0",
334
+ role: "button",
335
+ class: "vue-data-ui-refresh-button",
336
+ style: k({
337
+ top: N.value ? "36px" : "-16px",
338
+ pointerEvents: "all !important"
339
+ }),
340
+ onClick: te
341
+ }, [
342
+ Ue(Oe, {
343
+ name: "refresh",
344
+ stroke: l.textColor
345
+ }, null, 8, ["stroke"])
346
+ ], 4))
347
+ ])) : p("", !0)
348
+ ]),
349
+ v("div", {
350
+ class: "double-range-slider",
351
+ ref_key: "minimapWrapper",
352
+ ref: X,
353
+ style: { "z-index": "0" },
354
+ onMouseenter: t[9] || (t[9] = (n) => C.value = !0),
355
+ onMouseleave: t[10] || (t[10] = (n) => C.value = !1)
356
+ }, [
357
+ N.value ? (m(), c("div", Qe, [
358
+ (m(), c("svg", {
359
+ xmlns: F(Ge),
360
+ viewBox: `0 0 ${o.value.width < 0 ? 0 : o.value.width} ${o.value.height < 0 ? 0 : o.value.height}`
361
+ }, [
362
+ v("defs", null, [
363
+ v("linearGradient", {
364
+ id: H.value,
365
+ x1: "0%",
366
+ y1: "0%",
367
+ x2: "0%",
368
+ y2: "100%"
369
+ }, [
370
+ v("stop", {
371
+ offset: "0%",
372
+ "stop-color": `${l.minimapLineColor}50`
373
+ }, null, 8, et),
374
+ t[12] || (t[12] = v("stop", {
375
+ offset: "100%",
376
+ "stop-color": "transparent"
377
+ }, null, -1))
378
+ ], 8, _e)
379
+ ]),
380
+ v("path", {
381
+ d: `M${b.value.fullSet}`,
382
+ stroke: `${l.minimapLineColor}`,
383
+ fill: "none",
384
+ "stroke-width": "1",
385
+ "stroke-linecap": "round",
386
+ "stroke-linejoin": "round",
387
+ style: { opacity: "1" }
388
+ }, null, 8, tt),
389
+ v("rect", {
390
+ x: x.value.x,
391
+ width: x.value.width < 0 ? 0 : x.value.width,
392
+ height: Math.max(o.value.height, 0),
393
+ y: 0,
394
+ fill: w.value,
395
+ rx: l.minimapSelectionRadius,
396
+ stroke: "none"
397
+ }, null, 8, lt),
398
+ v("path", {
399
+ d: `M${h.value / 2},${Math.max(o.value.height, 0)} ${b.value.fullSet} L${o.value.width - h.value / 2},${Math.max(o.value.height, 0)}Z`,
400
+ fill: `url(#${H.value})`,
401
+ stroke: "none",
402
+ style: { opacity: "1" }
403
+ }, null, 8, at),
404
+ v("rect", {
405
+ x: x.value.x,
406
+ width: x.value.width < 0 ? 0 : x.value.width,
407
+ height: Math.max(o.value.height, 0),
408
+ y: 0,
409
+ rx: l.minimapSelectionRadius,
410
+ fill: w.value
411
+ }, null, 8, nt),
412
+ v("rect", {
413
+ x: x.value.x,
414
+ width: x.value.width < 0 ? 0 : x.value.width,
415
+ height: Math.max(o.value.height, 0),
416
+ y: 0,
417
+ fill: l.minimapSelectedColor,
418
+ rx: l.minimapSelectionRadius,
419
+ style: k({
420
+ opacity: l.minimapSelectedColorOpacity
421
+ })
422
+ }, null, 12, it),
423
+ v("path", {
424
+ d: `M${b.value.sliced[0].x},${Math.max(o.value.height, 0)} ${b.value.selectionSet} L${b.value.sliced.at(-1).x},${Math.max(o.value.height, 0)}Z`,
425
+ fill: `url(#${H.value})`,
426
+ stroke: "none",
427
+ style: { opacity: "1" }
428
+ }, null, 8, ot),
429
+ v("path", {
430
+ d: `M ${b.value.selectionSet}`,
431
+ stroke: `${l.minimapLineColor}`,
432
+ fill: "transparent",
433
+ "stroke-width": "2",
434
+ "stroke-linecap": "round",
435
+ "stroke-linejoin": "round"
436
+ }, null, 8, ut),
437
+ v("circle", {
438
+ cx: b.value.firstPlot.x,
439
+ cy: b.value.firstPlot.y,
440
+ "stroke-width": "0.5",
441
+ stroke: w.value,
442
+ r: "3",
443
+ fill: l.minimapLineColor
444
+ }, null, 8, rt),
445
+ v("circle", {
446
+ cx: b.value.lastPlot.x,
447
+ cy: b.value.lastPlot.y,
448
+ "stroke-width": "0.5",
449
+ stroke: w.value,
450
+ r: "3",
451
+ fill: l.minimapLineColor
452
+ }, null, 8, st),
453
+ M.value !== null ? (m(!0), c(fe, { key: 0 }, ge(ee.value, (n, s) => (m(), c("g", null, [
454
+ M.value === n && n >= l.valueStart && n < l.valueEnd ? (m(), c("line", {
455
+ key: 0,
456
+ x1: h.value * s + h.value / 2,
457
+ x2: h.value * s + h.value / 2,
458
+ y1: 0,
459
+ y2: Math.max(o.value.height, 0),
460
+ stroke: l.minimapIndicatorColor,
461
+ "stroke-linecap": "round",
462
+ "stroke-dasharray": "2",
463
+ "stroke-width": "1"
464
+ }, null, 8, dt)) : p("", !0)
465
+ ]))), 256)) : p("", !0),
466
+ (m(!0), c(fe, null, ge(ee.value, (n, s) => (m(), c("rect", {
467
+ x: h.value * s,
468
+ y: 0,
469
+ height: Math.max(o.value.height, 0),
470
+ width: h.value < 0 ? 0 : h.value,
471
+ fill: "transparent",
472
+ style: k([{ "pointer-events": "all !important" }, {
473
+ cursor: n >= l.valueStart && n < l.valueEnd && l.enableSelectionDrag ? $.value ? "grabbing" : "grab" : "default"
474
+ }]),
475
+ onMousedown: t[0] || (t[0] = (f) => $.value = !0),
476
+ onMouseup: t[1] || (t[1] = (f) => $.value = !1),
477
+ onMouseenter: (f) => Me(n),
478
+ onMouseleave: t[2] || (t[2] = (f) => {
479
+ M.value = null, S("trapMouse", null);
480
+ })
481
+ }, null, 44, vt))), 256))
482
+ ], 8, Ye))
483
+ ])) : p("", !0),
484
+ t[13] || (t[13] = v("div", { class: "slider-track" }, null, -1)),
485
+ v("div", {
486
+ class: L({
487
+ "range-highlight": !0,
488
+ move: l.enableSelectionDrag
489
+ }),
490
+ onMousedown: t[3] || (t[3] = (n) => $.value = !0),
491
+ onMouseup: t[4] || (t[4] = (n) => $.value = !1),
492
+ style: k({
493
+ ...g.value,
494
+ cursor: $.value ? "grabbing" : "grab"
495
+ })
496
+ }, null, 38),
497
+ l.enableRangeHandles ? he((m(), c("input", {
498
+ ref_key: "rangeStart",
499
+ ref: U,
500
+ key: `range-min${Ee.value}`,
501
+ type: "range",
502
+ class: L({ "range-left": !0, "range-handle": !0, "range-minimap": N.value && l.verticalHandles }),
503
+ min: l.min,
504
+ max: l.max,
505
+ "onUpdate:modelValue": t[5] || (t[5] = (n) => u.value = n),
506
+ onInput: Le,
507
+ onMouseenter: t[6] || (t[6] = (n) => ve("start"))
508
+ }, null, 42, ct)), [
509
+ [be, u.value]
510
+ ]) : p("", !0),
511
+ l.enableRangeHandles ? he((m(), c("input", {
512
+ key: 2,
513
+ ref_key: "rangeEnd",
514
+ ref: O,
515
+ type: "range",
516
+ class: L({ "range-right": !0, "range-handle": !0, "range-minimap": N.value && l.verticalHandles }),
517
+ min: l.min,
518
+ max: l.max,
519
+ "onUpdate:modelValue": t[7] || (t[7] = (n) => r.value = n),
520
+ onInput: Ne,
521
+ onMouseenter: t[8] || (t[8] = (n) => ve("end"))
522
+ }, null, 42, mt)), [
523
+ [be, r.value]
524
+ ]) : p("", !0),
525
+ l.labelLeft ? (m(), c("div", {
526
+ key: 3,
527
+ ref_key: "tooltipLeft",
528
+ ref: E,
529
+ class: L({
530
+ "range-tooltip": !0,
531
+ "range-tooltip-visible": C.value,
532
+ "range-tooltip-arrow": g.value.arrowLeft && !l.verticalHandles,
533
+ "range-tooltip-arrow-left": !g.value.arrowLeft && !l.verticalHandles
534
+ }),
535
+ style: k({
536
+ left: g.value.tooltipLeft,
537
+ color: F(_)(l.selectColor),
538
+ backgroundColor: l.selectColor,
539
+ border: `1px solid ${w.value}`,
540
+ zIndex: `${de.value + 4}`,
541
+ visibility: D.value || l.labelLeft === l.labelRight ? "hidden" : "visible"
542
+ })
543
+ }, Y(l.labelLeft), 7)) : p("", !0),
544
+ D.value || l.labelLeft === l.labelRight ? (m(), c("div", {
545
+ key: 4,
546
+ ref: "tooltipMerge",
547
+ class: L({
548
+ "range-tooltip": !0,
549
+ "range-tooltip-visible": C.value,
550
+ "range-tooltip-arrow": !0,
551
+ "range-tooltip-arrow-left": !g.value.arrowLeft && !l.verticalHandles,
552
+ "range-tooltip-arrow-right": !g.value.arrowRight && !l.verticalHandles
553
+ }),
554
+ style: k({
555
+ left: g.value.tooltipCenter,
556
+ width: T.value.width + "px",
557
+ color: F(_)(l.selectColor),
558
+ backgroundColor: l.selectColor,
559
+ border: `1px solid ${w.value}`,
560
+ zIndex: "4"
561
+ })
562
+ }, Y(l.labelLeft === l.labelRight ? l.labelLeft : `${l.labelLeft} - ${l.labelRight}`), 7)) : p("", !0),
563
+ l.labelRight ? (m(), c("div", {
564
+ key: 5,
565
+ ref_key: "tooltipRight",
566
+ ref: B,
567
+ class: L({
568
+ "range-tooltip": !0,
569
+ "range-tooltip-visible": C.value,
570
+ "range-tooltip-arrow": g.value.arrowRight && !l.verticalHandles,
571
+ "range-tooltip-arrow-right": !g.value.arrowRight && !l.verticalHandles
572
+ }),
573
+ style: k({
574
+ left: g.value.tooltipRight,
575
+ color: F(_)(l.selectColor),
576
+ backgroundColor: l.selectColor,
577
+ border: `1px solid ${w.value}`,
578
+ zIndex: "4",
579
+ visibility: D.value || l.labelLeft === l.labelRight ? "hidden" : "visible"
580
+ })
581
+ }, Y(l.labelRight), 7)) : p("", !0)
582
+ ], 544)
583
+ ], 544));
584
+ }
585
+ }, yt = /* @__PURE__ */ qe(ht, [["__scopeId", "data-v-8e6acacb"]]);
586
+ export {
587
+ yt as S
588
+ };
@@ -1,5 +1,5 @@
1
1
  import { toRef as c, ref as a, computed as v, onMounted as m, watch as y, createElementBlock as b, openBlock as g, normalizeStyle as x, renderSlot as k, nextTick as S } from "vue";
2
- import { s as _, ap as i } from "./index-Bxh2efzz.js";
2
+ import { s as _, ap as i } from "./index-DB4XIP_N.js";
3
3
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const R = {
5
5
  __name: "SparkTooltip",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
2
- import { u as c } from "./useNestedProp-BGEUK51b.js";
2
+ import { u as c } from "./useNestedProp-iTa19l34.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {