vue-data-ui 2.13.4 → 2.13.5-beta.1

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-Cv5RKI2K.js → Arrow-C3OUEgpB.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CbNaTai1.js → BaseDraggableDialog-DnNYonqn.js} +2 -2
  3. package/dist/{BaseIcon-B90jg7Eo.js → BaseIcon-BXqxz5Sj.js} +1 -1
  4. package/dist/{ColorPicker-DrHXo6NB.js → ColorPicker-DoIZhU9b.js} +2 -2
  5. package/dist/{DataTable-DOdmEVBM.js → DataTable-Bj6Ydy9P.js} +2 -2
  6. package/dist/{Legend-D7As_VVi.js → Legend-t1_8zs04.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-Qe1IsvyR.js → NonSvgPenAndPaper-BpsI9iLs.js} +3 -3
  8. package/dist/{PackageVersion-CJ0MHPau.js → PackageVersion-BEHb0q4B.js} +2 -2
  9. package/dist/{PenAndPaper-CsV9xVqP.js → PenAndPaper-X98t5VLX.js} +3 -3
  10. package/dist/{Shape-CMT3DgWJ.js → Shape-CFhc5s4r.js} +1 -1
  11. package/dist/{Slicer-kZ-UNW0I.js → Slicer-CUzPIV_Q.js} +161 -161
  12. package/dist/{SparkTooltip-DgaaFrSC.js → SparkTooltip-DPOcU4g7.js} +1 -1
  13. package/dist/{Title-Cuxd1Hw4.js → Title-DflHEZT5.js} +1 -1
  14. package/dist/{Tooltip-nm6v9SvD.js → Tooltip-C3ynHP3c.js} +1 -1
  15. package/dist/{UserOptions-B4olqrwb.js → UserOptions-C1T-b-S9.js} +2 -2
  16. package/dist/{dom-to-png-JxvpNdgk.js → dom-to-png-RHCXezBI.js} +1 -1
  17. package/dist/{img-BrSPXg54.js → img-D0AKqn5i.js} +1 -1
  18. package/dist/{index-DXfqC_CG.js → index-BEMxBoT7.js} +702 -683
  19. package/dist/{pdf-CRNRsa97.js → pdf-BMzqplSX.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-CUF1PWxQ.js → useNestedProp-B6UPnf4L.js} +1 -1
  24. package/dist/{usePrinter-DGQh_spY.js → usePrinter-DWaS917G.js} +2 -2
  25. package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
  26. package/dist/{vue-data-ui-tkhMq-bw.js → vue-data-ui-BfIuGUYs.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Dwdfdqch.js → vue-ui-3d-bar-D0q_qgNm.js} +5 -5
  29. package/dist/{vue-ui-accordion-D-tjbzQS.js → vue-ui-accordion-C7e5Xia0.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BZmYWVrS.js → vue-ui-age-pyramid-BsfkR8jg.js} +5 -5
  31. package/dist/{vue-ui-annotator-DBrXod-O.js → vue-ui-annotator-CW9fvw1T.js} +2 -2
  32. package/dist/{vue-ui-bullet-ur-PTrPw.js → vue-ui-bullet-DJHysSYg.js} +6 -6
  33. package/dist/{vue-ui-candlestick-72UivaQY.js → vue-ui-candlestick-CNMTAz8d.js} +96 -96
  34. package/dist/{vue-ui-carousel-table-CApme8lg.js → vue-ui-carousel-table-BWfzU6Qx.js} +4 -4
  35. package/dist/{vue-ui-chestnut-jcZZ8cOw.js → vue-ui-chestnut-cCfLknDI.js} +4 -4
  36. package/dist/{vue-ui-chord-A9jGFNM2.js → vue-ui-chord-DVg1z3y3.js} +7 -7
  37. package/dist/{vue-ui-circle-pack-DPnOBq40.js → vue-ui-circle-pack-0HQSE9cp.js} +5 -5
  38. package/dist/{vue-ui-cursor-Cby6-Vrh.js → vue-ui-cursor-ChpHp2H0.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BGzORkrX.js → vue-ui-dashboard-F6_kHI3r.js} +62 -62
  40. package/dist/{vue-ui-digits-Dhxd38mc.js → vue-ui-digits-ShTxYTC8.js} +2 -2
  41. package/dist/{vue-ui-donut-DsFBb3Cl.js → vue-ui-donut-DP9WtSxW.js} +7 -7
  42. package/dist/{vue-ui-donut-evolution-B-Bo4b4Y.js → vue-ui-donut-evolution-YT5ZJW2Y.js} +320 -313
  43. package/dist/{vue-ui-dumbbell-EVSJdr9V.js → vue-ui-dumbbell-Bb4XqYRY.js} +6 -6
  44. package/dist/{vue-ui-flow-Cr1-ETyc.js → vue-ui-flow-C2SPlvhP.js} +6 -6
  45. package/dist/{vue-ui-funnel-BQ0LckzE.js → vue-ui-funnel-BhrXceny.js} +83 -83
  46. package/dist/{vue-ui-galaxy-_fwGK1PY.js → vue-ui-galaxy-C0PPYSd-.js} +4 -4
  47. package/dist/{vue-ui-gauge-BrnOoF9C.js → vue-ui-gauge-D6sNadFY.js} +5 -5
  48. package/dist/{vue-ui-gizmo-tgjSYkeV.js → vue-ui-gizmo-BC-o1DHn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CamaTaei.js → vue-ui-heatmap-B8x1W-nI.js} +6 -6
  50. package/dist/{vue-ui-history-plot-DSBQu-9Y.js → vue-ui-history-plot-BAyk-3CM.js} +103 -103
  51. package/dist/{vue-ui-kpi-OCtgONK3.js → vue-ui-kpi-DIE6vcpv.js} +3 -3
  52. package/dist/{vue-ui-mini-loader--xzmMUNI.js → vue-ui-mini-loader-Cj071PI3.js} +2 -2
  53. package/dist/{vue-ui-molecule-DnkENzdw.js → vue-ui-molecule-DQO5BDp6.js} +4 -4
  54. package/dist/{vue-ui-mood-radar-DKP1rjSd.js → vue-ui-mood-radar-BYPd51VJ.js} +6 -6
  55. package/dist/{vue-ui-nested-donuts-CHwTDQ9J.js → vue-ui-nested-donuts-DTT__aTf.js} +6 -6
  56. package/dist/{vue-ui-onion-BxaynRPn.js → vue-ui-onion-DoUZQqBZ.js} +6 -6
  57. package/dist/{vue-ui-parallel-coordinate-plot-ohCDDK1Q.js → vue-ui-parallel-coordinate-plot-CjrOQscm.js} +175 -175
  58. package/dist/{vue-ui-quadrant-DXZsVWe3.js → vue-ui-quadrant-BXLvofYH.js} +7 -7
  59. package/dist/{vue-ui-quick-chart-C_ofgdSY.js → vue-ui-quick-chart-BWTN2358.js} +464 -457
  60. package/dist/{vue-ui-radar-CLa2PHHK.js → vue-ui-radar-Dv0eQPcW.js} +6 -6
  61. package/dist/{vue-ui-rating-GiRUw1Wv.js → vue-ui-rating-zyFM93Tp.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJ1M2Pnc.js → vue-ui-relation-circle-DIBkxk5e.js} +96 -96
  63. package/dist/{vue-ui-ridgeline-E_7xjHTY.js → vue-ui-ridgeline-B9z-ORep.js} +320 -311
  64. package/dist/{vue-ui-rings-BiOAND3T.js → vue-ui-rings-jtf8ll5F.js} +7 -7
  65. package/dist/{vue-ui-scatter-Bai9QSqI.js → vue-ui-scatter-CmvCQImE.js} +7 -7
  66. package/dist/{vue-ui-skeleton-B2N_3mr0.js → vue-ui-skeleton-7wen4XQb.js} +3 -3
  67. package/dist/{vue-ui-smiley-DAvm3IGu.js → vue-ui-smiley-DaGSvGIY.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-D4EwvdX0.js → vue-ui-spark-trend-DRTxC8eE.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DM_2iDVI.js → vue-ui-sparkbar-gfE4GIbG.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-UW6sVQdV.js → vue-ui-sparkgauge-B4kyaulL.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CF0JPKYB.js → vue-ui-sparkhistogram-BPPiIjWx.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Dg8j2KTF.js → vue-ui-sparkline-BSs_4MC7.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CqT_oEk7.js → vue-ui-sparkstackbar-DhJKC48a.js} +3 -3
  74. package/dist/vue-ui-stackbar-Bk7fp_vq.js +1130 -0
  75. package/dist/{vue-ui-strip-plot-BR66rY0G.js → vue-ui-strip-plot-CiVt2kbg.js} +73 -73
  76. package/dist/{vue-ui-table-Dk0eXTU9.js → vue-ui-table-fpLjUzPK.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Brldpa0g.js → vue-ui-table-heatmap-H_ryeweZ.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DxQrZBCR.js → vue-ui-table-sparkline-C1ma6_Ar.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B_OrqIjE.js → vue-ui-thermometer-Ky-qjFCz.js} +5 -5
  80. package/dist/{vue-ui-timer-Cz0J-s5D.js → vue-ui-timer-BHYQNvLq.js} +8 -8
  81. package/dist/{vue-ui-tiremarks-B1B3h-Vi.js → vue-ui-tiremarks-ZvPq6eN_.js} +5 -5
  82. package/dist/{vue-ui-treemap-CMm6fSIO.js → vue-ui-treemap-NDD1qpZr.js} +7 -7
  83. package/dist/{vue-ui-vertical-bar-DA2Xpx46.js → vue-ui-vertical-bar-HdSfwFxS.js} +8 -8
  84. package/dist/{vue-ui-waffle-U3NxGQ3l.js → vue-ui-waffle-CDwAOcMT.js} +7 -7
  85. package/dist/{vue-ui-wheel-WNOVLYp8.js → vue-ui-wheel-B6kqjg11.js} +5 -5
  86. package/dist/{vue-ui-word-cloud-_TBCcmAV.js → vue-ui-word-cloud-BTMR_Fap.js} +5 -5
  87. package/dist/{vue-ui-world-DREkLtrD.js → vue-ui-world-CJ85QHjo.js} +5 -5
  88. package/dist/{vue-ui-xy-CIiqKrxF.js → vue-ui-xy-BlRRpP-g.js} +680 -668
  89. package/dist/{vue-ui-xy-canvas-ClHv-Wlu.js → vue-ui-xy-canvas-C6my3Rhf.js} +398 -390
  90. package/package.json +1 -1
  91. package/dist/vue-ui-stackbar-By7DVfJV.js +0 -1132
@@ -1,7 +1,7 @@
1
- import { useCssVars as ze, computed as d, ref as i, watch as T, onMounted as Ae, onBeforeUnmount as He, watchEffect as Fe, nextTick as Y, onUpdated as Ve, createElementBlock as c, openBlock as m, createElementVNode as v, createCommentVNode as y, renderSlot as We, normalizeStyle as $, createVNode as Xe, withDirectives as me, unref as H, Fragment as he, renderList as fe, normalizeClass as N, vModelText as ge, toDisplayString as _ } from "vue";
2
- import Ue from "./BaseIcon-B90jg7Eo.js";
1
+ import { useCssVars as ze, computed as d, ref as i, watch as T, onMounted as Ae, onBeforeUnmount as He, watchEffect as Fe, nextTick as Y, onUpdated as Ve, createElementBlock as c, openBlock as m, createElementVNode as v, createCommentVNode as p, renderSlot as We, normalizeStyle as $, createVNode as Xe, withDirectives as me, unref as H, Fragment as he, renderList as fe, normalizeClass as L, vModelText as ge, toDisplayString as _ } from "vue";
2
+ import Ue from "./BaseIcon-BXqxz5Sj.js";
3
3
  import { t as Oe, u as Ze } from "./useResponsive-JZ9xq-JV.js";
4
- import { c as je, U as pe, T as be, X as Ge, G as ee } from "./index-DXfqC_CG.js";
4
+ import { c as je, U as be, T as xe, X as Ge, G as ee } from "./index-BEMxBoT7.js";
5
5
  import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Je = {
7
7
  class: "vue-data-ui-slicer-labels",
@@ -29,11 +29,11 @@ const Je = {
29
29
  default: 14
30
30
  },
31
31
  labelLeft: {
32
- type: String,
32
+ type: [String, Number],
33
33
  default: ""
34
34
  },
35
35
  labelRight: {
36
- type: String,
36
+ type: [String, Number],
37
37
  default: ""
38
38
  },
39
39
  textColor: {
@@ -122,30 +122,30 @@ const Je = {
122
122
  }
123
123
  },
124
124
  emits: ["update:start", "update:end", "reset", "trapMouse"],
125
- setup(a, { expose: xe, emit: ye }) {
125
+ setup(t, { expose: ye, emit: pe }) {
126
126
  ze((e) => ({
127
- "4a4fd8c2": Se.value,
128
- "3b753d94": w.value,
129
- "5d48a3b2": ke.value,
130
- "7b0abb34": a.selectColor,
131
- "45a92c18": Ce.value
127
+ "4d0617d2": Se.value,
128
+ "71727c8b": w.value,
129
+ "637a35bc": ke.value,
130
+ "51a7bdbb": t.selectColor,
131
+ e1fe5a6e: Ce.value
132
132
  }));
133
- const t = a, g = i(null), u = i(t.min), r = i(t.max), L = d(() => !!t.minimap.length), F = i(je()), we = d(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), S = ye, p = d(() => {
134
- const e = t.max - t.min, l = (u.value - t.min) / e * 100, n = (r.value - t.min) / e * 100, s = (l + n) / 2, h = W.value ? `calc(${s}% - ${A.value.width}px)` : V.value ? `calc(${s}%)` : `calc(${s}% - ${A.value.width / 2}px)`;
133
+ const l = t, g = i(null), u = i(l.min), r = i(l.max), M = d(() => !!l.minimap.length), F = i(je()), we = d(() => l.refreshEndPoint === null ? l.max : l.refreshEndPoint), S = pe, b = d(() => {
134
+ const e = l.max - l.min, a = (u.value - l.min) / e * 100, n = (r.value - l.min) / e * 100, s = (a + n) / 2, h = W.value ? `calc(${s}% - ${A.value.width}px)` : V.value ? `calc(${s}%)` : `calc(${s}% - ${A.value.width / 2}px)`;
135
135
  return {
136
- left: `${l}%`,
137
- width: `${n - l}%`,
138
- background: t.selectColor,
139
- tooltipLeft: `calc(${l}% - ${V.value ? 0 : K.value / 2}px)`,
136
+ left: `${a}%`,
137
+ width: `${n - a}%`,
138
+ background: l.selectColor,
139
+ tooltipLeft: `calc(${a}% - ${V.value ? 0 : K.value / 2}px)`,
140
140
  tooltipRight: `calc(${n}% - ${W.value ? z.value : z.value / 2}px)`,
141
141
  tooltipCenter: h,
142
142
  arrowLeft: !V.value,
143
143
  arrowRight: !W.value
144
144
  };
145
- }), V = d(() => g.value ? g.value.getBoundingClientRect().width * ((u.value - t.min) / (t.max - t.min)) - K.value / 2 < 0 : !1), W = d(() => g.value ? g.value.getBoundingClientRect().width * ((r.value - t.min) / (t.max - t.min)) + z.value / 2 > g.value.getBoundingClientRect().width : !1), Se = d(() => t.inputColor), Ce = d(() => t.background), ke = d(() => `${t.selectColor}33`), w = d(() => t.borderColor), te = d(() => {
145
+ }), V = d(() => g.value ? g.value.getBoundingClientRect().width * ((u.value - l.min) / (l.max - l.min)) - K.value / 2 < 0 : !1), W = d(() => g.value ? g.value.getBoundingClientRect().width * ((r.value - l.min) / (l.max - l.min)) + z.value / 2 > g.value.getBoundingClientRect().width : !1), Se = d(() => l.inputColor), Ce = d(() => l.background), ke = d(() => `${l.selectColor}33`), w = d(() => l.borderColor), te = d(() => {
146
146
  let e = [];
147
- for (let l = 0; l < t.minimap.length; l += 1)
148
- e.push(l);
147
+ for (let a = 0; a < l.minimap.length; a += 1)
148
+ e.push(a);
149
149
  return e;
150
150
  });
151
151
  function le() {
@@ -158,12 +158,12 @@ const Je = {
158
158
  Number(r.value) < Number(u.value) + 1 && (r.value = Number(u.value) + 1), S("update:end", Number(r.value));
159
159
  }
160
160
  T(
161
- () => t.min,
161
+ () => l.min,
162
162
  (e) => {
163
163
  Number(u.value) < Number(e) && (u.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
164
164
  }
165
165
  ), T(
166
- () => t.max,
166
+ () => l.max,
167
167
  (e) => {
168
168
  Number(u.value) > Number(e) && (u.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
169
169
  }
@@ -173,65 +173,65 @@ const Je = {
173
173
  height: 1
174
174
  }), D = i(null);
175
175
  Ae(() => {
176
- if (L.value) {
176
+ if (M.value) {
177
177
  const e = Oe(() => {
178
- const { width: l, height: n } = Ze({
178
+ const { width: a, height: n } = Ze({
179
179
  chart: X.value
180
180
  });
181
- o.value.width = l, o.value.height = n - 47;
181
+ o.value.width = a, o.value.height = n - 47;
182
182
  });
183
183
  D.value = new ResizeObserver(e), D.value.observe(X.value);
184
184
  }
185
185
  }), He(() => {
186
186
  D.value && D.value.disconnect();
187
187
  });
188
- const f = d(() => t.minimap.length ? o.value.width / t.minimap.length : 0), b = d(() => {
189
- if (!t.minimap.length) return [];
190
- const e = Math.max(...t.minimap), l = Math.min(...t.minimap) - 10, n = e - (l > 0 ? 0 : l), s = t.minimap.map((Q, Ie) => {
191
- const Pe = Q - l;
188
+ const f = d(() => l.minimap.length ? o.value.width / l.minimap.length : 0), x = d(() => {
189
+ if (!l.minimap.length) return [];
190
+ const e = Math.max(...l.minimap), a = Math.min(...l.minimap) - 10, n = e - (a > 0 ? 0 : a), s = l.minimap.map((Q, Ie) => {
191
+ const Pe = Q - a;
192
192
  return {
193
- x: o.value.width / t.minimap.length * Ie + f.value / 2,
193
+ x: o.value.width / l.minimap.length * Ie + f.value / 2,
194
194
  y: o.value.height - Pe / n * (o.value.height * 0.9)
195
195
  };
196
- }), h = t.smoothMinimap ? pe(s) : be(s), k = [...s].slice(t.valueStart, t.valueEnd), M = t.smoothMinimap ? pe(k) : be(k);
196
+ }), h = l.smoothMinimap ? be(s) : xe(s), k = [...s].slice(l.valueStart, l.valueEnd), N = l.smoothMinimap ? be(k) : xe(k);
197
197
  return {
198
198
  fullSet: h,
199
- selectionSet: M,
199
+ selectionSet: N,
200
200
  sliced: k,
201
- firstPlot: s[t.valueStart],
202
- lastPlot: s[t.valueEnd - 1]
201
+ firstPlot: s[l.valueStart],
202
+ lastPlot: s[l.valueEnd - 1]
203
203
  };
204
- }), x = d(() => ({
204
+ }), y = d(() => ({
205
205
  x: f.value * u.value + f.value / 2,
206
- width: o.value.width * ((r.value - u.value) / t.max) - f.value
207
- })), E = i(t.minimapSelectedIndex);
208
- T(() => t.minimapSelectedIndex, (e) => {
209
- E.value = e + t.valueStart;
206
+ width: o.value.width * ((r.value - u.value) / l.max) - f.value
207
+ })), E = i(l.minimapSelectedIndex);
208
+ T(() => l.minimapSelectedIndex, (e) => {
209
+ E.value = e + l.valueStart;
210
210
  }, { immediate: !0 });
211
- function Me(e) {
212
- E.value = e, e >= t.valueStart && e < t.valueEnd && S("trapMouse", e - t.valueStart);
211
+ function Ne(e) {
212
+ E.value = e, e >= l.valueStart && e < l.valueEnd && S("trapMouse", e - l.valueStart);
213
213
  }
214
- const Ne = i(0), U = i(null), O = i(null);
214
+ const Le = i(0), U = i(null), O = i(null);
215
215
  function Z(e) {
216
216
  u.value = e, U.value && (U.value.value = e), S("update:start", Number(u.value));
217
217
  }
218
218
  function j(e) {
219
219
  r.value = e, O.value && (O.value.value = e), S("update:end", Number(r.value));
220
220
  }
221
- const G = d(() => t.valueEnd - t.valueStart), q = i(!1);
221
+ const G = d(() => l.valueEnd - l.valueStart), q = i(!1);
222
222
  let J = i(null);
223
- const Le = d(() => g.value ? (g.value.getBoundingClientRect().width - 48) / (t.max - t.min) : 20), Ee = d(() => (g.value.getBoundingClientRect().width - 48) / (t.max - t.min) * G.value), Be = i(2.5), ae = d(() => {
223
+ const Me = d(() => g.value ? (g.value.getBoundingClientRect().width - 48) / (l.max - l.min) : 20), Ee = d(() => (g.value.getBoundingClientRect().width - 48) / (l.max - l.min) * G.value), Be = i(2.5), ae = d(() => {
224
224
  const e = g.value.getBoundingClientRect().width - 48;
225
- return Math.ceil((t.max - t.min) / ((e - Ee.value) / Be.value));
225
+ return Math.ceil((l.max - l.min) / ((e - Ee.value) / Be.value));
226
226
  }), ne = (e) => {
227
- if (C.value = !0, !t.enableSelectionDrag)
227
+ if (C.value = !0, !l.enableSelectionDrag)
228
228
  return;
229
- const l = e.type === "touchstart";
230
- if ((l ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
229
+ const a = e.type === "touchstart";
230
+ if ((a ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
231
231
  return;
232
- q.value = !0, J.value = l ? e.targetTouches[0].clientX : e.clientX;
233
- const s = l ? Te : ie, h = l ? De : ue;
234
- window.addEventListener(l ? "touchmove" : "mousemove", s, { passive: !1 }), window.addEventListener(l ? "touchend" : "mouseup", h);
232
+ q.value = !0, J.value = a ? e.targetTouches[0].clientX : e.clientX;
233
+ const s = a ? Te : ie, h = a ? De : ue;
234
+ window.addEventListener(a ? "touchmove" : "mousemove", s, { passive: !1 }), window.addEventListener(a ? "touchend" : "mouseup", h);
235
235
  };
236
236
  function ie(e) {
237
237
  oe(e.clientX);
@@ -241,14 +241,14 @@ const Je = {
241
241
  }
242
242
  function oe(e) {
243
243
  if (!q.value) return;
244
- const l = e - J.value;
245
- if (Math.abs(l) > Le.value) {
246
- if (l > 0) {
247
- if (Number(r.value) + 1 <= t.max) {
248
- const n = Math.min(t.max, Number(r.value) + ae.value);
244
+ const a = e - J.value;
245
+ if (Math.abs(a) > Me.value) {
246
+ if (a > 0) {
247
+ if (Number(r.value) + 1 <= l.max) {
248
+ const n = Math.min(l.max, Number(r.value) + ae.value);
249
249
  j(n), Z(n - G.value);
250
250
  }
251
- } else if (Number(u.value) - 1 >= t.min) {
251
+ } else if (Number(u.value) - 1 >= l.min) {
252
252
  const n = Math.max(0, Number(u.value) - ae.value);
253
253
  Z(n), j(n + G.value);
254
254
  }
@@ -261,8 +261,8 @@ const Je = {
261
261
  function De() {
262
262
  re("touchmove", "touchend");
263
263
  }
264
- function re(e, l) {
265
- q.value = !1, window.removeEventListener(e, ie), window.removeEventListener(l, ue);
264
+ function re(e, a) {
265
+ q.value = !1, window.removeEventListener(e, ie), window.removeEventListener(a, ue);
266
266
  }
267
267
  const R = i(!1), I = i(null), P = i(null), K = i(1), z = i(1), C = i(!1);
268
268
  function se() {
@@ -280,29 +280,29 @@ const Je = {
280
280
  left: 0
281
281
  });
282
282
  return Fe(async () => {
283
- const e = I.value, l = P.value;
283
+ const e = I.value, a = P.value;
284
284
  u.value, r.value;
285
285
  const n = g.value;
286
- if (!e || !l || !n) {
286
+ if (!e || !a || !n) {
287
287
  B.value = !1;
288
288
  return;
289
289
  }
290
290
  await Y();
291
- const { x: s, width: h } = e.getBoundingClientRect(), { x: k, width: M } = l.getBoundingClientRect(), Q = k + M / 2 - (k + M / 2 - (s + h / 2));
291
+ const { x: s, width: h } = e.getBoundingClientRect(), { x: k, width: N } = a.getBoundingClientRect(), Q = k + N / 2 - (k + N / 2 - (s + h / 2));
292
292
  B.value = s + h > k, A.value = {
293
- width: h + M,
294
- left: Q - (h + M / 2)
293
+ width: h + N,
294
+ left: Q - (h + N / 2)
295
295
  };
296
296
  }), Ve(() => {
297
297
  se(), de();
298
- }), T(() => t.labelLeft, () => {
298
+ }), T(() => l.labelLeft, () => {
299
299
  Y(se);
300
- }, { deep: !0 }), T(() => t.labelRight, () => {
300
+ }, { deep: !0 }), T(() => l.labelRight, () => {
301
301
  Y(de);
302
- }, { deep: !0 }), xe({
302
+ }, { deep: !0 }), ye({
303
303
  setStartValue: Z,
304
304
  setEndValue: j
305
- }), (e, l) => (m(), c("div", {
305
+ }), (e, a) => (m(), c("div", {
306
306
  "data-dom-to-png-ignore": "",
307
307
  style: { padding: "0 24px" },
308
308
  class: "vue-data-ui-zoom",
@@ -310,11 +310,11 @@ const Je = {
310
310
  ref: g,
311
311
  onMousedown: ne,
312
312
  onTouchstart: ne,
313
- onTouchend: l[11] || (l[11] = (n) => C.value = !1)
313
+ onTouchend: a[11] || (a[11] = (n) => C.value = !1)
314
314
  }, [
315
315
  v("div", Je, [
316
- a.valueStart !== a.refreshStartPoint || a.valueEnd !== we.value ? (m(), c("div", Ke, [
317
- a.useResetSlot ? We(e.$slots, "reset-action", {
316
+ t.valueStart !== t.refreshStartPoint || t.valueEnd !== we.value ? (m(), c("div", Ke, [
317
+ t.useResetSlot ? We(e.$slots, "reset-action", {
318
318
  key: 1,
319
319
  reset: le
320
320
  }, void 0, !0) : (m(), c("button", {
@@ -323,27 +323,27 @@ const Je = {
323
323
  role: "button",
324
324
  class: "vue-data-ui-refresh-button",
325
325
  style: $({
326
- top: L.value ? "36px" : "-16px",
326
+ top: M.value ? "36px" : "-16px",
327
327
  pointerEvents: "all !important"
328
328
  }),
329
329
  onClick: le
330
330
  }, [
331
331
  Xe(Ue, {
332
332
  name: "refresh",
333
- stroke: a.textColor
333
+ stroke: t.textColor
334
334
  }, null, 8, ["stroke"])
335
335
  ], 4))
336
- ])) : y("", !0)
336
+ ])) : p("", !0)
337
337
  ]),
338
338
  v("div", {
339
339
  class: "double-range-slider",
340
340
  ref_key: "minimapWrapper",
341
341
  ref: X,
342
342
  style: { "z-index": "0" },
343
- onMouseenter: l[9] || (l[9] = (n) => C.value = !0),
344
- onMouseleave: l[10] || (l[10] = (n) => C.value = !1)
343
+ onMouseenter: a[9] || (a[9] = (n) => C.value = !0),
344
+ onMouseleave: a[10] || (a[10] = (n) => C.value = !1)
345
345
  }, [
346
- L.value ? (m(), c("div", Qe, [
346
+ M.value ? (m(), c("div", Qe, [
347
347
  (m(), c("svg", {
348
348
  xmlns: H(Ge),
349
349
  viewBox: `0 0 ${o.value.width < 0 ? 0 : o.value.width} ${o.value.height < 0 ? 0 : o.value.height}`
@@ -358,17 +358,17 @@ const Je = {
358
358
  }, [
359
359
  v("stop", {
360
360
  offset: "0%",
361
- "stop-color": `${a.minimapLineColor}50`
361
+ "stop-color": `${t.minimapLineColor}50`
362
362
  }, null, 8, et),
363
- l[12] || (l[12] = v("stop", {
363
+ a[12] || (a[12] = v("stop", {
364
364
  offset: "100%",
365
365
  "stop-color": "transparent"
366
366
  }, null, -1))
367
367
  ], 8, _e)
368
368
  ]),
369
369
  v("path", {
370
- d: `M${b.value.fullSet}`,
371
- stroke: `${a.minimapLineColor}`,
370
+ d: `M${x.value.fullSet}`,
371
+ stroke: `${t.minimapLineColor}`,
372
372
  fill: "none",
373
373
  "stroke-width": "1",
374
374
  "stroke-linecap": "round",
@@ -376,82 +376,82 @@ const Je = {
376
376
  style: { opacity: "1" }
377
377
  }, null, 8, tt),
378
378
  v("rect", {
379
- x: x.value.x,
380
- width: x.value.width < 0 ? 0 : x.value.width,
379
+ x: y.value.x,
380
+ width: y.value.width < 0 ? 0 : y.value.width,
381
381
  height: Math.max(o.value.height, 0),
382
382
  y: 0,
383
383
  fill: w.value,
384
- rx: a.minimapSelectionRadius,
384
+ rx: t.minimapSelectionRadius,
385
385
  stroke: "none"
386
386
  }, null, 8, lt),
387
387
  v("path", {
388
- d: `M${f.value / 2},${Math.max(o.value.height, 0)} ${b.value.fullSet} L${o.value.width - f.value / 2},${Math.max(o.value.height, 0)}Z`,
388
+ d: `M${f.value / 2},${Math.max(o.value.height, 0)} ${x.value.fullSet} L${o.value.width - f.value / 2},${Math.max(o.value.height, 0)}Z`,
389
389
  fill: `url(#${F.value})`,
390
390
  stroke: "none",
391
391
  style: { opacity: "1" }
392
392
  }, null, 8, at),
393
393
  v("rect", {
394
- x: x.value.x,
395
- width: x.value.width < 0 ? 0 : x.value.width,
394
+ x: y.value.x,
395
+ width: y.value.width < 0 ? 0 : y.value.width,
396
396
  height: Math.max(o.value.height, 0),
397
397
  y: 0,
398
- rx: a.minimapSelectionRadius,
398
+ rx: t.minimapSelectionRadius,
399
399
  fill: w.value
400
400
  }, null, 8, nt),
401
401
  v("rect", {
402
- x: x.value.x,
403
- width: x.value.width < 0 ? 0 : x.value.width,
402
+ x: y.value.x,
403
+ width: y.value.width < 0 ? 0 : y.value.width,
404
404
  height: Math.max(o.value.height, 0),
405
405
  y: 0,
406
- fill: a.minimapSelectedColor,
407
- rx: a.minimapSelectionRadius,
406
+ fill: t.minimapSelectedColor,
407
+ rx: t.minimapSelectionRadius,
408
408
  style: $({
409
- opacity: a.minimapSelectedColorOpacity
409
+ opacity: t.minimapSelectedColorOpacity
410
410
  })
411
411
  }, null, 12, it),
412
412
  v("path", {
413
- 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`,
413
+ d: `M${x.value.sliced[0].x},${Math.max(o.value.height, 0)} ${x.value.selectionSet} L${x.value.sliced.at(-1).x},${Math.max(o.value.height, 0)}Z`,
414
414
  fill: `url(#${F.value})`,
415
415
  stroke: "none",
416
416
  style: { opacity: "1" }
417
417
  }, null, 8, ot),
418
418
  v("path", {
419
- d: `M ${b.value.selectionSet}`,
420
- stroke: `${a.minimapLineColor}`,
419
+ d: `M ${x.value.selectionSet}`,
420
+ stroke: `${t.minimapLineColor}`,
421
421
  fill: "transparent",
422
422
  "stroke-width": "2",
423
423
  "stroke-linecap": "round",
424
424
  "stroke-linejoin": "round"
425
425
  }, null, 8, ut),
426
426
  v("circle", {
427
- cx: b.value.firstPlot.x,
428
- cy: b.value.firstPlot.y,
427
+ cx: x.value.firstPlot.x,
428
+ cy: x.value.firstPlot.y,
429
429
  "stroke-width": "0.5",
430
430
  stroke: w.value,
431
431
  r: "3",
432
- fill: a.minimapLineColor
432
+ fill: t.minimapLineColor
433
433
  }, null, 8, rt),
434
434
  v("circle", {
435
- cx: b.value.lastPlot.x,
436
- cy: b.value.lastPlot.y,
435
+ cx: x.value.lastPlot.x,
436
+ cy: x.value.lastPlot.y,
437
437
  "stroke-width": "0.5",
438
438
  stroke: w.value,
439
439
  r: "3",
440
- fill: a.minimapLineColor
440
+ fill: t.minimapLineColor
441
441
  }, null, 8, st),
442
442
  E.value !== null ? (m(!0), c(he, { key: 0 }, fe(te.value, (n, s) => (m(), c("g", null, [
443
- E.value === n && n >= a.valueStart && n < a.valueEnd ? (m(), c("line", {
443
+ E.value === n && n >= t.valueStart && n < t.valueEnd ? (m(), c("line", {
444
444
  key: 0,
445
445
  x1: f.value * s + f.value / 2,
446
446
  x2: f.value * s + f.value / 2,
447
447
  y1: 0,
448
448
  y2: Math.max(o.value.height, 0),
449
- stroke: a.minimapIndicatorColor,
449
+ stroke: t.minimapIndicatorColor,
450
450
  "stroke-linecap": "round",
451
451
  "stroke-dasharray": "2",
452
452
  "stroke-width": "1"
453
- }, null, 8, dt)) : y("", !0)
454
- ]))), 256)) : y("", !0),
453
+ }, null, 8, dt)) : p("", !0)
454
+ ]))), 256)) : p("", !0),
455
455
  (m(!0), c(he, null, fe(te.value, (n, s) => (m(), c("rect", {
456
456
  x: f.value * s,
457
457
  y: 0,
@@ -459,119 +459,119 @@ const Je = {
459
459
  width: f.value < 0 ? 0 : f.value,
460
460
  fill: "transparent",
461
461
  style: $([{ "pointer-events": "all !important" }, {
462
- cursor: n >= a.valueStart && n < a.valueEnd && a.enableSelectionDrag ? R.value ? "grabbing" : "grab" : "default"
462
+ cursor: n >= t.valueStart && n < t.valueEnd && t.enableSelectionDrag ? R.value ? "grabbing" : "grab" : "default"
463
463
  }]),
464
- onMousedown: l[0] || (l[0] = (h) => R.value = !0),
465
- onMouseup: l[1] || (l[1] = (h) => R.value = !1),
466
- onMouseenter: (h) => Me(n),
467
- onMouseleave: l[2] || (l[2] = (h) => {
464
+ onMousedown: a[0] || (a[0] = (h) => R.value = !0),
465
+ onMouseup: a[1] || (a[1] = (h) => R.value = !1),
466
+ onMouseenter: (h) => Ne(n),
467
+ onMouseleave: a[2] || (a[2] = (h) => {
468
468
  E.value = null, S("trapMouse", null);
469
469
  })
470
470
  }, null, 44, vt))), 256))
471
471
  ], 8, Ye))
472
- ])) : y("", !0),
473
- l[13] || (l[13] = v("div", { class: "slider-track" }, null, -1)),
472
+ ])) : p("", !0),
473
+ a[13] || (a[13] = v("div", { class: "slider-track" }, null, -1)),
474
474
  v("div", {
475
- class: N({
475
+ class: L({
476
476
  "range-highlight": !0,
477
- move: a.enableSelectionDrag
477
+ move: t.enableSelectionDrag
478
478
  }),
479
- onMousedown: l[3] || (l[3] = (n) => R.value = !0),
480
- onMouseup: l[4] || (l[4] = (n) => R.value = !1),
479
+ onMousedown: a[3] || (a[3] = (n) => R.value = !0),
480
+ onMouseup: a[4] || (a[4] = (n) => R.value = !1),
481
481
  style: $({
482
- ...p.value,
482
+ ...b.value,
483
483
  cursor: R.value ? "grabbing" : "grab"
484
484
  })
485
485
  }, null, 38),
486
- a.enableRangeHandles ? me((m(), c("input", {
486
+ t.enableRangeHandles ? me((m(), c("input", {
487
487
  ref_key: "rangeStart",
488
488
  ref: U,
489
- key: `range-min${Ne.value}`,
489
+ key: `range-min${Le.value}`,
490
490
  type: "range",
491
- class: N({ "range-left": !0, "range-handle": !0, "range-minimap": L.value && a.verticalHandles }),
492
- min: a.min,
493
- max: a.max,
494
- "onUpdate:modelValue": l[5] || (l[5] = (n) => u.value = n),
491
+ class: L({ "range-left": !0, "range-handle": !0, "range-minimap": M.value && t.verticalHandles }),
492
+ min: t.min,
493
+ max: t.max,
494
+ "onUpdate:modelValue": a[5] || (a[5] = (n) => u.value = n),
495
495
  onInput: $e,
496
- onMouseenter: l[6] || (l[6] = (n) => ce("start"))
496
+ onMouseenter: a[6] || (a[6] = (n) => ce("start"))
497
497
  }, null, 42, ct)), [
498
498
  [ge, u.value]
499
- ]) : y("", !0),
500
- a.enableRangeHandles ? me((m(), c("input", {
499
+ ]) : p("", !0),
500
+ t.enableRangeHandles ? me((m(), c("input", {
501
501
  key: 2,
502
502
  ref_key: "rangeEnd",
503
503
  ref: O,
504
504
  type: "range",
505
- class: N({ "range-right": !0, "range-handle": !0, "range-minimap": L.value && a.verticalHandles }),
506
- min: a.min,
507
- max: a.max,
508
- "onUpdate:modelValue": l[7] || (l[7] = (n) => r.value = n),
505
+ class: L({ "range-right": !0, "range-handle": !0, "range-minimap": M.value && t.verticalHandles }),
506
+ min: t.min,
507
+ max: t.max,
508
+ "onUpdate:modelValue": a[7] || (a[7] = (n) => r.value = n),
509
509
  onInput: Re,
510
- onMouseenter: l[8] || (l[8] = (n) => ce("end"))
510
+ onMouseenter: a[8] || (a[8] = (n) => ce("end"))
511
511
  }, null, 42, mt)), [
512
512
  [ge, r.value]
513
- ]) : y("", !0),
514
- a.labelLeft ? (m(), c("div", {
513
+ ]) : p("", !0),
514
+ t.labelLeft ? (m(), c("div", {
515
515
  key: 3,
516
516
  ref_key: "tooltipLeft",
517
517
  ref: I,
518
- class: N({
518
+ class: L({
519
519
  "range-tooltip": !0,
520
520
  "range-tooltip-visible": C.value,
521
- "range-tooltip-arrow": p.value.arrowLeft && !a.verticalHandles,
522
- "range-tooltip-arrow-left": !p.value.arrowLeft && !a.verticalHandles
521
+ "range-tooltip-arrow": b.value.arrowLeft && !t.verticalHandles,
522
+ "range-tooltip-arrow-left": !b.value.arrowLeft && !t.verticalHandles
523
523
  }),
524
524
  style: $({
525
- left: p.value.tooltipLeft,
526
- color: H(ee)(a.selectColor),
527
- backgroundColor: a.selectColor,
525
+ left: b.value.tooltipLeft,
526
+ color: H(ee)(t.selectColor),
527
+ backgroundColor: t.selectColor,
528
528
  border: `1px solid ${w.value}`,
529
529
  zIndex: `${ve.value + 4}`,
530
- visibility: B.value ? "hidden" : "visible"
530
+ visibility: B.value || t.labelLeft === t.labelRight ? "hidden" : "visible"
531
531
  })
532
- }, _(a.labelLeft), 7)) : y("", !0),
533
- B.value ? (m(), c("div", {
532
+ }, _(t.labelLeft), 7)) : p("", !0),
533
+ B.value || t.labelLeft === t.labelRight ? (m(), c("div", {
534
534
  key: 4,
535
535
  ref: "tooltipMerge",
536
- class: N({
536
+ class: L({
537
537
  "range-tooltip": !0,
538
538
  "range-tooltip-visible": C.value,
539
539
  "range-tooltip-arrow": !0,
540
- "range-tooltip-arrow-left": !p.value.arrowLeft && !a.verticalHandles,
541
- "range-tooltip-arrow-right": !p.value.arrowRight && !a.verticalHandles
540
+ "range-tooltip-arrow-left": !b.value.arrowLeft && !t.verticalHandles,
541
+ "range-tooltip-arrow-right": !b.value.arrowRight && !t.verticalHandles
542
542
  }),
543
543
  style: $({
544
- left: p.value.tooltipCenter,
544
+ left: b.value.tooltipCenter,
545
545
  width: A.value.width + "px",
546
- color: H(ee)(a.selectColor),
547
- backgroundColor: a.selectColor,
546
+ color: H(ee)(t.selectColor),
547
+ backgroundColor: t.selectColor,
548
548
  border: `1px solid ${w.value}`,
549
549
  zIndex: "4"
550
550
  })
551
- }, _(a.labelLeft === a.labelRight ? a.labelLeft : `${a.labelLeft} - ${a.labelRight}`), 7)) : y("", !0),
552
- a.labelRight ? (m(), c("div", {
551
+ }, _(t.labelLeft === t.labelRight ? t.labelLeft : `${t.labelLeft} - ${t.labelRight}`), 7)) : p("", !0),
552
+ t.labelRight ? (m(), c("div", {
553
553
  key: 5,
554
554
  ref_key: "tooltipRight",
555
555
  ref: P,
556
- class: N({
556
+ class: L({
557
557
  "range-tooltip": !0,
558
558
  "range-tooltip-visible": C.value,
559
- "range-tooltip-arrow": p.value.arrowRight && !a.verticalHandles,
560
- "range-tooltip-arrow-right": !p.value.arrowRight && !a.verticalHandles
559
+ "range-tooltip-arrow": b.value.arrowRight && !t.verticalHandles,
560
+ "range-tooltip-arrow-right": !b.value.arrowRight && !t.verticalHandles
561
561
  }),
562
562
  style: $({
563
- left: p.value.tooltipRight,
564
- color: H(ee)(a.selectColor),
565
- backgroundColor: a.selectColor,
563
+ left: b.value.tooltipRight,
564
+ color: H(ee)(t.selectColor),
565
+ backgroundColor: t.selectColor,
566
566
  border: `1px solid ${w.value}`,
567
567
  zIndex: "4",
568
- visibility: B.value ? "hidden" : "visible"
568
+ visibility: B.value || t.labelLeft === t.labelRight ? "hidden" : "visible"
569
569
  })
570
- }, _(a.labelRight), 7)) : y("", !0)
570
+ }, _(t.labelRight), 7)) : p("", !0)
571
571
  ], 544)
572
572
  ], 544));
573
573
  }
574
- }, yt = /* @__PURE__ */ qe(ht, [["__scopeId", "data-v-715ed53c"]]);
574
+ }, pt = /* @__PURE__ */ qe(ht, [["__scopeId", "data-v-9dbe0987"]]);
575
575
  export {
576
- yt as S
576
+ pt as S
577
577
  };
@@ -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 _, am as i } from "./index-DXfqC_CG.js";
2
+ import { s as _, am as i } from "./index-BEMxBoT7.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-CUF1PWxQ.js";
2
+ import { u as c } from "./useNestedProp-B6UPnf4L.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { ref as m, watch as p, nextTick as g, onUnmounted as S, computed as x, createBlock as k, openBlock as h, Teleport as $, createElementBlock as C, createCommentVNode as F, normalizeStyle as B, normalizeClass as N, renderSlot as v, createElementVNode as w } from "vue";
2
2
  import { u as z } from "./useMouse-AicQS8Vf.js";
3
- import { s as T } from "./index-DXfqC_CG.js";
3
+ import { s as T } from "./index-BEMxBoT7.js";
4
4
  function Y({ tooltip: t, chart: n, clientPosition: l, positionPreference: s = "center", defaultOffsetY: d = 24, blockShiftY: u = !1 }) {
5
5
  const e = m(0), i = m(d);
6
6
  if (t && n) {
@@ -1,7 +1,7 @@
1
1
  import { ref as m, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as Y, createElementBlock as s, openBlock as t, normalizeStyle as v, createElementVNode as X, withKeys as Z, withModifiers as p, renderSlot as k, normalizeProps as A, guardReactiveProps as _, createVNode as ee, normalizeClass as d, createCommentVNode as a, Fragment as h, createBlock as f, toDisplayString as y, mergeProps as F, unref as te } from "vue";
2
2
  import { v as oe } from "./vClickOutside-C6WiFswA.js";
3
- import r from "./BaseIcon-B90jg7Eo.js";
4
- import ne from "./img-BrSPXg54.js";
3
+ import r from "./BaseIcon-BXqxz5Sj.js";
4
+ import ne from "./img-D0AKqn5i.js";
5
5
  import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const ie = ["title"], se = ["data-open"], ae = {
7
7
  __name: "UserOptions",