vue-data-ui 3.0.0-next.7 → 3.0.0-next.70

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 (136) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
  11. package/dist/Slicer-D8a4Wv1q.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
  19. package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +600 -22
  22. package/dist/types/vue-data-ui.d.ts +600 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-DtUATNAU.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
  37. package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
  38. package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
  41. package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
  48. package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
  49. package/dist/vue-ui-flow-B1AOqk14.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
  51. package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
  52. package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
  53. package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
  54. package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
  55. package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
  59. package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
  60. package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
  61. package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
  65. package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
  67. package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
  68. package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
  69. package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
  70. package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
  73. package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
  74. package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
  75. package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
  77. package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
  79. package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
  80. package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
  81. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
  82. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
  84. package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
  86. package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
  87. package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
  89. package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
  90. package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
  91. package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
  93. package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  109. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  110. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  111. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  112. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  113. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  114. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  115. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  116. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  117. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  118. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  119. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  120. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  121. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  122. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  123. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  124. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  125. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  126. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  127. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  128. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  129. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  130. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  131. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  132. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  133. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  134. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  135. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  136. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -0,0 +1,602 @@
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-BnbvQjs5.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-CnY41r21.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
+ "612d7222": Le.value,
128
+ "0dba0ad4": p.value,
129
+ "038e80f2": Me.value,
130
+ "4d4f8874": l.selectColor,
131
+ a2455958: 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", n = e && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, o = e ? n ? n.target : null : t.target;
246
+ !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, $));
247
+ };
248
+ function Pe(t) {
249
+ I.value && se(t.clientX);
250
+ }
251
+ function Ae(t) {
252
+ if (!I.value || !h.value) return;
253
+ const e = t.target;
254
+ if (!(e instanceof Element) || !h.value.contains(e) || e.classList && e.classList.contains("range-handle")) return;
255
+ t.preventDefault();
256
+ const n = t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null;
257
+ n && se(n.clientX);
258
+ }
259
+ function se(t) {
260
+ if (!I.value) return;
261
+ const e = t - _.value;
262
+ if (Math.abs(e) > De.value) {
263
+ if (e > 0) {
264
+ if (Number(s.value) + 1 <= a.max) {
265
+ const n = Math.min(a.max, Number(s.value) + oe.value);
266
+ Q(n), K(n - Y.value);
267
+ }
268
+ } else if (Number(r.value) - 1 >= a.min) {
269
+ const n = Math.max(a.min, Number(r.value) - oe.value);
270
+ K(n), Q(n + Y.value);
271
+ }
272
+ _.value = t;
273
+ }
274
+ }
275
+ function Fe() {
276
+ ve();
277
+ }
278
+ function He() {
279
+ ve();
280
+ }
281
+ function ve() {
282
+ I.value = !1, S && k && window.removeEventListener(S, k), C && $ && window.removeEventListener(C, $), S = C = null, k = $ = null;
283
+ }
284
+ const E = i(!1), P = i(null), A = i(null), ee = i(1), X = i(1), R = i(!1);
285
+ function de() {
286
+ P.value && (ee.value = P.value.getBoundingClientRect().width);
287
+ }
288
+ function ce() {
289
+ A.value && (X.value = A.value.getBoundingClientRect().width);
290
+ }
291
+ const me = i(0);
292
+ function fe(t) {
293
+ me.value = t === "start" ? 1 : 0;
294
+ }
295
+ const F = i(!1), H = i({
296
+ width: 0,
297
+ left: 0
298
+ });
299
+ return T([r, s], async () => {
300
+ if (await le(), !P.value || !A.value) {
301
+ F.value = !1, H.value = { width: 0, left: 0 };
302
+ return;
303
+ }
304
+ const t = P.value.getBoundingClientRect(), e = A.value.getBoundingClientRect();
305
+ F.value = t.x + t.width > e.x;
306
+ const n = t.x + t.width / 2, o = e.x + e.width / 2, x = t.width + e.width, W = (n + o) / 2;
307
+ H.value = {
308
+ width: x,
309
+ left: W - x / 2
310
+ };
311
+ }), Ze(() => {
312
+ de(), ce();
313
+ }), T(
314
+ () => a.labelLeft,
315
+ () => {
316
+ le(de);
317
+ },
318
+ { deep: !0 }
319
+ ), T(
320
+ () => a.labelRight,
321
+ () => {
322
+ le(ce);
323
+ },
324
+ { deep: !0 }
325
+ ), Ce({
326
+ setStartValue: K,
327
+ setEndValue: Q
328
+ }), te(() => {
329
+ N.value && N.value.disconnect(), S && k && window.removeEventListener(S, k), C && $ && window.removeEventListener(C, $), S = C = null, k = $ = null;
330
+ }), (t, e) => (m(), c("div", {
331
+ "data-dom-to-png-ignore": "",
332
+ style: { padding: "0 24px" },
333
+ class: "vue-data-ui-zoom",
334
+ ref_key: "zoomWrapper",
335
+ ref: h,
336
+ onMousedown: re,
337
+ onTouchstart: re,
338
+ onTouchend: e[11] || (e[11] = (n) => R.value = !1)
339
+ }, [
340
+ d("div", _e, [
341
+ l.valueStart !== l.refreshStartPoint || l.valueEnd !== $e.value ? (m(), c("div", et, [
342
+ l.useResetSlot ? je(t.$slots, "reset-action", {
343
+ key: 1,
344
+ reset: ue
345
+ }, void 0, !0) : (m(), c("button", {
346
+ key: 0,
347
+ tabindex: "0",
348
+ role: "button",
349
+ class: "vue-data-ui-refresh-button",
350
+ style: M({
351
+ top: D.value ? "36px" : "-16px",
352
+ pointerEvents: "all !important"
353
+ }),
354
+ onClick: ue
355
+ }, [
356
+ Ge(qe, {
357
+ name: "refresh",
358
+ stroke: l.textColor
359
+ }, null, 8, ["stroke"])
360
+ ], 4))
361
+ ])) : w("", !0)
362
+ ]),
363
+ d("div", {
364
+ class: "double-range-slider",
365
+ ref_key: "minimapWrapper",
366
+ ref: G,
367
+ style: { "z-index": "0" },
368
+ onMouseenter: e[9] || (e[9] = (n) => R.value = !0),
369
+ onMouseleave: e[10] || (e[10] = (n) => R.value = !1)
370
+ }, [
371
+ D.value ? (m(), c("div", tt, [
372
+ (m(), c("svg", {
373
+ xmlns: U(Qe),
374
+ viewBox: `0 0 ${u.value.width < 0 ? 0 : u.value.width} ${u.value.height < 0 ? 0 : u.value.height}`
375
+ }, [
376
+ d("defs", null, [
377
+ d("linearGradient", {
378
+ id: O.value,
379
+ x1: "0%",
380
+ y1: "0%",
381
+ x2: "0%",
382
+ y2: "100%"
383
+ }, [
384
+ d("stop", {
385
+ offset: "0%",
386
+ "stop-color": `${l.minimapLineColor}50`
387
+ }, null, 8, nt),
388
+ e[12] || (e[12] = d("stop", {
389
+ offset: "100%",
390
+ "stop-color": "transparent"
391
+ }, null, -1))
392
+ ], 8, at)
393
+ ]),
394
+ d("path", {
395
+ d: `M${b.value.fullSet}`,
396
+ stroke: `${l.minimapLineColor}`,
397
+ fill: "none",
398
+ "stroke-width": "1",
399
+ "stroke-linecap": "round",
400
+ "stroke-linejoin": "round",
401
+ style: { opacity: "1" }
402
+ }, null, 8, it),
403
+ d("rect", {
404
+ x: y.value.x,
405
+ width: y.value.width < 0 ? 0 : y.value.width,
406
+ height: Math.max(u.value.height, 0),
407
+ y: 0,
408
+ fill: p.value,
409
+ rx: l.minimapSelectionRadius,
410
+ stroke: "none"
411
+ }, null, 8, ut),
412
+ d("path", {
413
+ 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`,
414
+ fill: `url(#${O.value})`,
415
+ stroke: "none",
416
+ style: { opacity: "1" }
417
+ }, null, 8, ot),
418
+ d("rect", {
419
+ x: y.value.x,
420
+ width: y.value.width < 0 ? 0 : y.value.width,
421
+ height: Math.max(u.value.height, 0),
422
+ y: 0,
423
+ rx: l.minimapSelectionRadius,
424
+ fill: p.value
425
+ }, null, 8, rt),
426
+ d("rect", {
427
+ x: y.value.x,
428
+ width: y.value.width < 0 ? 0 : y.value.width,
429
+ height: Math.max(u.value.height, 0),
430
+ y: 0,
431
+ fill: l.minimapSelectedColor,
432
+ rx: l.minimapSelectionRadius,
433
+ style: M({
434
+ opacity: l.minimapSelectedColorOpacity
435
+ })
436
+ }, null, 12, st),
437
+ d("path", {
438
+ 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`,
439
+ fill: `url(#${O.value})`,
440
+ stroke: "none",
441
+ style: { opacity: "1" }
442
+ }, null, 8, vt),
443
+ d("path", {
444
+ d: `M ${b.value.selectionSet}`,
445
+ stroke: `${l.minimapLineColor}`,
446
+ fill: "transparent",
447
+ "stroke-width": "2",
448
+ "stroke-linecap": "round",
449
+ "stroke-linejoin": "round"
450
+ }, null, 8, dt),
451
+ d("circle", {
452
+ cx: b.value.firstPlot.x,
453
+ cy: b.value.firstPlot.y,
454
+ "stroke-width": "0.5",
455
+ stroke: p.value,
456
+ r: "3",
457
+ fill: l.minimapLineColor
458
+ }, null, 8, ct),
459
+ d("circle", {
460
+ cx: b.value.lastPlot.x,
461
+ cy: b.value.lastPlot.y,
462
+ "stroke-width": "0.5",
463
+ stroke: p.value,
464
+ r: "3",
465
+ fill: l.minimapLineColor
466
+ }, null, 8, mt),
467
+ z.value !== null ? (m(!0), c(be, { key: 0 }, xe(ie.value, (n, o) => (m(), c("g", null, [
468
+ z.value === n && n >= l.valueStart && n < l.valueEnd ? (m(), c("line", {
469
+ key: 0,
470
+ x1: f.value * o + f.value / 2,
471
+ x2: f.value * o + f.value / 2,
472
+ y1: 0,
473
+ y2: Math.max(u.value.height, 0),
474
+ stroke: l.minimapIndicatorColor,
475
+ "stroke-linecap": "round",
476
+ "stroke-dasharray": "2",
477
+ "stroke-width": "1"
478
+ }, null, 8, ft)) : w("", !0)
479
+ ]))), 256)) : w("", !0),
480
+ (m(!0), c(be, null, xe(ie.value, (n, o) => (m(), c("rect", {
481
+ x: f.value * o,
482
+ y: 0,
483
+ height: Math.max(u.value.height, 0),
484
+ width: f.value < 0 ? 0 : f.value,
485
+ fill: "transparent",
486
+ style: M([{ "pointer-events": "all !important" }, {
487
+ cursor: n >= l.valueStart && n < l.valueEnd && l.enableSelectionDrag ? E.value ? "grabbing" : "grab" : "default"
488
+ }]),
489
+ onMousedown: e[0] || (e[0] = (x) => E.value = !0),
490
+ onMouseup: e[1] || (e[1] = (x) => E.value = !1),
491
+ onMouseenter: (x) => Te(n),
492
+ onMouseleave: e[2] || (e[2] = (x) => {
493
+ z.value = null, L("trapMouse", null);
494
+ })
495
+ }, null, 44, ht))), 256))
496
+ ], 8, lt))
497
+ ])) : w("", !0),
498
+ e[13] || (e[13] = d("div", { class: "slider-track" }, null, -1)),
499
+ d("div", {
500
+ class: B({
501
+ "range-highlight": !0,
502
+ move: l.enableSelectionDrag
503
+ }),
504
+ onMousedown: e[3] || (e[3] = (n) => E.value = !0),
505
+ onMouseup: e[4] || (e[4] = (n) => E.value = !1),
506
+ style: M({
507
+ ...g.value,
508
+ cursor: E.value ? "grabbing" : "grab"
509
+ })
510
+ }, null, 38),
511
+ l.enableRangeHandles ? ge((m(), c("input", {
512
+ ref_key: "rangeStart",
513
+ ref: q,
514
+ key: `range-min${Be.value}`,
515
+ type: "range",
516
+ class: B({ "range-left": !0, "range-handle": !0, "range-minimap": D.value && l.verticalHandles }),
517
+ min: l.min,
518
+ max: l.max,
519
+ "onUpdate:modelValue": e[5] || (e[5] = (n) => r.value = n),
520
+ onInput: Ne,
521
+ onMouseenter: e[6] || (e[6] = (n) => fe("start"))
522
+ }, null, 42, gt)), [
523
+ [ye, r.value]
524
+ ]) : w("", !0),
525
+ l.enableRangeHandles ? ge((m(), c("input", {
526
+ key: 2,
527
+ ref_key: "rangeEnd",
528
+ ref: J,
529
+ type: "range",
530
+ class: B({ "range-right": !0, "range-handle": !0, "range-minimap": D.value && l.verticalHandles }),
531
+ min: l.min,
532
+ max: l.max,
533
+ "onUpdate:modelValue": e[7] || (e[7] = (n) => s.value = n),
534
+ onInput: Ee,
535
+ onMouseenter: e[8] || (e[8] = (n) => fe("end"))
536
+ }, null, 42, bt)), [
537
+ [ye, s.value]
538
+ ]) : w("", !0),
539
+ l.labelLeft ? (m(), c("div", {
540
+ key: 3,
541
+ ref_key: "tooltipLeft",
542
+ ref: P,
543
+ class: B({
544
+ "range-tooltip": !0,
545
+ "range-tooltip-visible": R.value,
546
+ "range-tooltip-arrow": g.value.arrowLeft && !l.verticalHandles,
547
+ "range-tooltip-arrow-left": !g.value.arrowLeft && !l.verticalHandles
548
+ }),
549
+ style: M({
550
+ left: g.value.tooltipLeft,
551
+ color: U(ne)(l.selectColor),
552
+ backgroundColor: l.selectColor,
553
+ border: `1px solid ${p.value}`,
554
+ zIndex: `${me.value + 4}`,
555
+ visibility: F.value || l.labelLeft === l.labelRight ? "hidden" : "visible"
556
+ })
557
+ }, ae(l.labelLeft), 7)) : w("", !0),
558
+ (F.value || l.labelLeft === l.labelRight) && (l.labelLeft || l.labelRight) ? (m(), c("div", {
559
+ key: 4,
560
+ ref: "tooltipMerge",
561
+ class: B({
562
+ "range-tooltip": !0,
563
+ "range-tooltip-visible": R.value,
564
+ "range-tooltip-arrow": !0,
565
+ "range-tooltip-arrow-left": !g.value.arrowLeft && !l.verticalHandles,
566
+ "range-tooltip-arrow-right": !g.value.arrowRight && !l.verticalHandles
567
+ }),
568
+ style: M({
569
+ left: g.value.tooltipCenter,
570
+ width: H.value.width + "px",
571
+ color: U(ne)(l.selectColor),
572
+ backgroundColor: l.selectColor,
573
+ border: `1px solid ${p.value}`,
574
+ zIndex: "4"
575
+ })
576
+ }, ae(l.labelLeft === l.labelRight ? l.labelLeft : `${l.labelLeft} - ${l.labelRight}`), 7)) : w("", !0),
577
+ l.labelRight ? (m(), c("div", {
578
+ key: 5,
579
+ ref_key: "tooltipRight",
580
+ ref: A,
581
+ class: B({
582
+ "range-tooltip": !0,
583
+ "range-tooltip-visible": R.value,
584
+ "range-tooltip-arrow": g.value.arrowRight && !l.verticalHandles,
585
+ "range-tooltip-arrow-right": !g.value.arrowRight && !l.verticalHandles
586
+ }),
587
+ style: M({
588
+ left: g.value.tooltipRight,
589
+ color: U(ne)(l.selectColor),
590
+ backgroundColor: l.selectColor,
591
+ border: `1px solid ${p.value}`,
592
+ zIndex: "4",
593
+ visibility: F.value || l.labelLeft === l.labelRight ? "hidden" : "visible"
594
+ })
595
+ }, ae(l.labelRight), 7)) : w("", !0)
596
+ ], 544)
597
+ ], 544));
598
+ }
599
+ }, kt = /* @__PURE__ */ Ye(xt, [["__scopeId", "data-v-b6997053"]]);
600
+ export {
601
+ kt as S
602
+ };
@@ -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 _, ao as i } from "./index-Cg-RjxqH.js";
2
+ import { s as _, aq as i } from "./index-CnY41r21.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-C_G5E08Y.js";
2
+ import { u as c } from "./useNestedProp-DtUATNAU.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {