vue-data-ui 3.0.0-next.33 → 3.0.0-next.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/{Arrow-VgHimrRb.js → Arrow-7o1zcGGd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-S80pCP_z.js → BaseDraggableDialog-fZ1Z5U4d.js} +2 -2
  3. package/dist/{BaseIcon-CVvwtj-w.js → BaseIcon-Cq9SmUOT.js} +1 -1
  4. package/dist/{ColorPicker-DhGMsdlx.js → ColorPicker-BNmC5tPY.js} +2 -2
  5. package/dist/{DataTable-CQqQt3fP.js → DataTable-DonNp9Tn.js} +2 -2
  6. package/dist/{Legend-DAN5L1lo.js → Legend-De_LcU2x.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-s0PFQNll.js → NonSvgPenAndPaper-DCCmvppN.js} +3 -3
  8. package/dist/{PackageVersion-DGlLBQOn.js → PackageVersion-F_KOshQ5.js} +1 -1
  9. package/dist/{PenAndPaper-hAK7vneq.js → PenAndPaper-BzsPyqiU.js} +3 -3
  10. package/dist/{Shape-CjeprST6.js → Shape-CJI8rA0G.js} +1 -1
  11. package/dist/{Slicer-8WIL9Cfq.js → Slicer-BCCGJwNV.js} +2 -2
  12. package/dist/{SparkTooltip-DeTWOnTg.js → SparkTooltip-ZSo6Sdhj.js} +1 -1
  13. package/dist/{Title-Bo-MVYcn.js → Title-CbfJu3Bz.js} +1 -1
  14. package/dist/{Tooltip-DD9Ly0Pw.js → Tooltip-BuuVsO8D.js} +1 -1
  15. package/dist/{UserOptions-dJLhbxrH.js → UserOptions-32osgWD2.js} +2 -2
  16. package/dist/{dom-to-png-CjNOdM-6.js → dom-to-png-B4iPnzPd.js} +1 -1
  17. package/dist/{img-59KgIaXp.js → img-Domj-5hZ.js} +1 -1
  18. package/dist/{index-h6tbqLot.js → index-BeBasrrG.js} +672 -660
  19. package/dist/{pdf-CVKcemYx.js → pdf-KclgkN6e.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +12 -7
  22. package/dist/types/vue-data-ui.d.ts +12 -7
  23. package/dist/{useNestedProp-D059IOwh.js → useNestedProp-BI69cynt.js} +1 -1
  24. package/dist/{usePrinter-BuJDNOzF.js → usePrinter-DpTBVYGM.js} +2 -2
  25. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  26. package/dist/{vue-data-ui-CnP-8qvV.js → vue-data-ui-DfOSI-cw.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-2BDo53CG.js → vue-ui-3d-bar-BFUcEqAl.js} +6 -6
  29. package/dist/{vue-ui-accordion-DyBJ-mad.js → vue-ui-accordion-BBZQktvS.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DlD9Y8xr.js → vue-ui-age-pyramid-C1fCszkG.js} +6 -6
  31. package/dist/{vue-ui-annotator-BoWAUlmS.js → vue-ui-annotator-BThZoiBl.js} +2 -2
  32. package/dist/{vue-ui-bullet-CfUFHtlX.js → vue-ui-bullet-D0-jL6aT.js} +7 -7
  33. package/dist/{vue-ui-candlestick-DDS8WYxh.js → vue-ui-candlestick-BKY_1NxQ.js} +163 -160
  34. package/dist/{vue-ui-carousel-table-D2xngvtB.js → vue-ui-carousel-table-RqYXqUym.js} +4 -4
  35. package/dist/{vue-ui-chestnut-D1pWQozg.js → vue-ui-chestnut-QLx875w4.js} +5 -5
  36. package/dist/{vue-ui-chord-DEK-Wk7B.js → vue-ui-chord-rUYoYkRO.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-CeykLpx8.js → vue-ui-circle-pack-DX5resGr.js} +6 -6
  38. package/dist/{vue-ui-cursor-D86Y-gg1.js → vue-ui-cursor-Day-0aL1.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CwWcub4O.js → vue-ui-dashboard-G0W4wq1U.js} +62 -62
  40. package/dist/{vue-ui-digits-CBD1fasp.js → vue-ui-digits-DFREi_Ky.js} +2 -2
  41. package/dist/{vue-ui-donut-DzM857Mw.js → vue-ui-donut-BdxnEUCr.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-BPTk5wKW.js → vue-ui-donut-evolution-DYeMgZMU.js} +215 -212
  43. package/dist/{vue-ui-dumbbell-Dqm2btrM.js → vue-ui-dumbbell-ajhNYekO.js} +7 -7
  44. package/dist/{vue-ui-flow-C-JgLHsh.js → vue-ui-flow-BOq3_apj.js} +7 -7
  45. package/dist/{vue-ui-funnel-Dm3aCwVL.js → vue-ui-funnel-1Tc-WWAK.js} +6 -6
  46. package/dist/{vue-ui-galaxy-siSx2yn6.js → vue-ui-galaxy-DRdIquCv.js} +5 -5
  47. package/dist/{vue-ui-gauge-BgIR1PlQ.js → vue-ui-gauge-B0a3J_d1.js} +6 -6
  48. package/dist/{vue-ui-gizmo-CPIlfu1s.js → vue-ui-gizmo-5G0uR26C.js} +3 -3
  49. package/dist/vue-ui-heatmap-BGYSmKC-.js +1084 -0
  50. package/dist/{vue-ui-history-plot-DOWu_0wY.js → vue-ui-history-plot-kHo6293P.js} +7 -7
  51. package/dist/{vue-ui-kpi-BqGvPVuE.js → vue-ui-kpi-6zONwNMN.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C3RV5-mc.js → vue-ui-mini-loader-XyVfmLch.js} +2 -2
  53. package/dist/{vue-ui-molecule-DsMfjmG0.js → vue-ui-molecule-BoQKd6NP.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-CRWVJjIb.js → vue-ui-mood-radar-DncLIzjX.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-D5gnJmVK.js → vue-ui-nested-donuts-DXMadqNK.js} +9 -9
  56. package/dist/{vue-ui-onion-D1qHQTBl.js → vue-ui-onion-CbtXXJHJ.js} +7 -7
  57. package/dist/{vue-ui-parallel-coordinate-plot-BnAveZOI.js → vue-ui-parallel-coordinate-plot-D-zLAqYN.js} +8 -8
  58. package/dist/{vue-ui-quadrant-B7Lqriri.js → vue-ui-quadrant-DqN9de-E.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-CvQRgbKq.js → vue-ui-quick-chart-fAHV8BFQ.js} +6 -6
  60. package/dist/{vue-ui-radar-D494eivm.js → vue-ui-radar-Dcr4Y35J.js} +7 -7
  61. package/dist/{vue-ui-rating-CTHYICJA.js → vue-ui-rating-Y_X6wrM8.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DMtH5ofd.js → vue-ui-relation-circle-CsjfP4w3.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-BiDnGLX5.js → vue-ui-ridgeline-COQZjWXD.js} +8 -8
  64. package/dist/{vue-ui-rings-DXGyAl3y.js → vue-ui-rings-IWHU4YHR.js} +8 -8
  65. package/dist/{vue-ui-scatter-Ds7sncxR.js → vue-ui-scatter-zG4nPspJ.js} +8 -8
  66. package/dist/{vue-ui-skeleton-DIJ5u0HF.js → vue-ui-skeleton-BLCAe0aL.js} +3 -3
  67. package/dist/{vue-ui-smiley-Dyhet6zb.js → vue-ui-smiley-CgMyaK6w.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-rhXFuApA.js → vue-ui-spark-trend-Dn2iTtuB.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-COfmi6KI.js → vue-ui-sparkbar-BA_s34xX.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DJOsuPG-.js → vue-ui-sparkgauge-CGoeUY4p.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DV3KR-q5.js → vue-ui-sparkhistogram-BuSn8iJi.js} +4 -4
  72. package/dist/{vue-ui-sparkline-kf86uahK.js → vue-ui-sparkline-CYJUhGaJ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DPpQkxUm.js → vue-ui-sparkstackbar-BDQWVxNP.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CASe4O-t.js → vue-ui-stackbar-B92-pzwh.js} +301 -298
  75. package/dist/{vue-ui-strip-plot-DRfNBQ9A.js → vue-ui-strip-plot-BLTjzATL.js} +7 -7
  76. package/dist/{vue-ui-table-Cg422ltc.js → vue-ui-table-Ba7Z_7OX.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BCDOpShn.js → vue-ui-table-heatmap-C29u3mfg.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-MtUkhn2K.js → vue-ui-table-sparkline-BLR9glHo.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Bz4qJzLC.js → vue-ui-thermometer-BAm6l97t.js} +6 -6
  80. package/dist/{vue-ui-timer-Da3hWBUk.js → vue-ui-timer-CqbbNnBk.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Bafaf_gE.js → vue-ui-tiremarks-BnZr2Vrp.js} +6 -6
  82. package/dist/{vue-ui-treemap-CSQjMeIP.js → vue-ui-treemap-J8OANLCg.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-tLYgt_Pg.js → vue-ui-vertical-bar-DdR3STYF.js} +9 -9
  84. package/dist/{vue-ui-waffle-ir_3LGj_.js → vue-ui-waffle-w5VJA7gR.js} +8 -8
  85. package/dist/{vue-ui-wheel-bDEJ_vBc.js → vue-ui-wheel-D5yea4oH.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BLQ-MfCc.js → vue-ui-word-cloud-OugLGxgB.js} +6 -6
  87. package/dist/{vue-ui-world-_IoWGh3p.js → vue-ui-world-BSptBo4h.js} +6 -6
  88. package/dist/{vue-ui-xy-dnlLx-v4.js → vue-ui-xy-DnYo2K58.js} +56 -54
  89. package/dist/{vue-ui-xy-canvas-DDRJMmPT.js → vue-ui-xy-canvas-Cmn0RWbG.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/useTimeLabelCollider-V7AOiPLB.js +0 -71
  92. package/dist/vue-ui-heatmap-D_8NEANa.js +0 -881
@@ -1,16 +1,16 @@
1
1
  import { useCssVars as qa, computed as k, ref as y, onMounted as yt, onBeforeUnmount as kt, watch as je, nextTick as Yl, onUpdated as Za, createElementBlock as i, openBlock as u, createElementVNode as p, createCommentVNode as f, renderSlot as J, normalizeStyle as I, createVNode as Wl, withDirectives as Rt, unref as v, Fragment as x, renderList as _, normalizeClass as ze, vModelText as ga, toDisplayString as te, defineAsyncComponent as fl, useSlots as Ja, getCurrentInstance as Ka, toRefs as Qa, watchEffect as ja, createBlock as Ye, createSlots as eo, withCtx as me, normalizeProps as sl, guardReactiveProps as gl, mergeProps as gt, vModelCheckbox as lo, createTextVNode as to } from "vue";
2
- import { c as pt, V as wt, U as St, X as ao, F as De, u as oo, e as Ot, A as uo, a5 as Ke, b as so, D as ut, ac as Cl, d as io, p as ro, ad as mt, aa as W, ae as no, v as H, af as ma, ag as xa, ah as co, ai as ba, aj as pa, i as ke, x as vo, y as ho, _ as ya, R as Qe, f as Pe, w as zl, s as Xe, a8 as j, L as fo, ak as xt, I as go, al as ml, C as He, t as mo, a as xo, o as ka, q as bo, r as po, E as Fl } from "./index-h6tbqLot.js";
3
- import { u as Nt } from "./useNestedProp-D059IOwh.js";
2
+ import { c as pt, V as wt, U as St, X as ao, F as De, u as oo, e as Ot, A as uo, a5 as Ke, b as so, D as ut, ac as Cl, d as io, p as ro, ad as mt, aa as W, ae as no, v as H, af as ma, ag as xa, ah as co, ai as ba, aj as pa, i as ke, x as vo, y as ho, _ as ya, R as Qe, f as Pe, w as zl, s as Xe, a8 as j, L as fo, ak as xt, I as go, al as ml, C as He, t as mo, a as xo, o as ka, q as bo, r as po, E as Fl } from "./index-BeBasrrG.js";
3
+ import { u as Nt } from "./useNestedProp-BI69cynt.js";
4
4
  import { u as wa } from "./useTimeLabels-DkzmKfZn.js";
5
- import { u as yo } from "./useTimeLabelCollider-V7AOiPLB.js";
6
- import { S as ko } from "./Slicer-8WIL9Cfq.js";
7
- import wo from "./BaseIcon-CVvwtj-w.js";
5
+ import { u as yo } from "./useTimeLabelCollider-CIsgDrl9.js";
6
+ import { S as ko } from "./Slicer-BCCGJwNV.js";
7
+ import wo from "./BaseIcon-Cq9SmUOT.js";
8
8
  import { t as Pt, u as So } from "./useResponsive-DfdjqQps.js";
9
9
  import { _ as Sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import $o from "./Title-Bo-MVYcn.js";
11
- import { _ as bt } from "./Shape-CjeprST6.js";
12
- import _o from "./img-59KgIaXp.js";
13
- import { u as Lo } from "./usePrinter-BuJDNOzF.js";
10
+ import $o from "./Title-CbfJu3Bz.js";
11
+ import { _ as bt } from "./Shape-CJI8rA0G.js";
12
+ import _o from "./img-Domj-5hZ.js";
13
+ import { u as Lo } from "./usePrinter-DpTBVYGM.js";
14
14
  import { u as Mo, B as Ao } from "./BaseScanner-DIK2NTdp.js";
15
15
  const Co = {
16
16
  class: "vue-data-ui-slicer-labels",
@@ -146,21 +146,21 @@ const Co = {
146
146
  "676992f6": M.selectColor,
147
147
  b37252da: wl.value
148
148
  }));
149
- const d = M, Ge = y(null), ue = y(d.min), se = y(d.max), xl = k(() => !!d.minimap.length), Xl = y(pt()), Il = y(0), bl = k({
149
+ const d = M, Ge = y(null), ue = y(d.min), re = y(d.max), xl = k(() => !!d.minimap.length), Xl = y(pt()), Il = y(0), bl = k({
150
150
  get() {
151
151
  return ue.value;
152
152
  },
153
153
  set(b) {
154
- const g = Math.min(b, se.value - 1);
154
+ const g = Math.min(b, re.value - 1);
155
155
  ue.value = g, $l.value && ($l.value.value = String(g)), he("futureStart", g);
156
156
  }
157
157
  }), pl = k({
158
158
  get() {
159
- return se.value;
159
+ return re.value;
160
160
  },
161
161
  set(b) {
162
162
  const g = Math.max(b, ue.value + 1);
163
- se.value = g, Ve.value && (Ve.value.value = String(g)), he("futureEnd", g);
163
+ re.value = g, Ve.value && (Ve.value.value = String(g)), he("futureEnd", g);
164
164
  }
165
165
  });
166
166
  yt(() => {
@@ -176,14 +176,14 @@ const Co = {
176
176
  let yl = null;
177
177
  function Dl() {
178
178
  clearTimeout(yl), yl = setTimeout(() => {
179
- he("update:start", Number(ue.value)), he("update:end", Number(se.value));
179
+ he("update:start", Number(ue.value)), he("update:end", Number(re.value));
180
180
  }, 150);
181
181
  }
182
182
  function Gl() {
183
- clearTimeout(yl), he("update:start", Number(ue.value)), he("update:end", Number(se.value));
183
+ clearTimeout(yl), he("update:start", Number(ue.value)), he("update:end", Number(re.value));
184
184
  }
185
185
  const Ul = k(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), he = _t, xe = k(() => {
186
- const b = d.max - d.min, g = (ue.value - d.min) / b * 100, h = (se.value - d.min) / b * 100, U = (g + h) / 2, we = Ue.value ? `calc(${U}% - ${tl.value.width}px)` : Le.value ? `calc(${U}%)` : `calc(${U}% - ${tl.value.width / 2}px)`;
186
+ const b = d.max - d.min, g = (ue.value - d.min) / b * 100, h = (re.value - d.min) / b * 100, U = (g + h) / 2, we = Ue.value ? `calc(${U}% - ${tl.value.width}px)` : Le.value ? `calc(${U}%)` : `calc(${U}% - ${tl.value.width / 2}px)`;
187
187
  return {
188
188
  left: `${g}%`,
189
189
  width: `${h - g}%`,
@@ -194,7 +194,7 @@ const Co = {
194
194
  arrowLeft: !Le.value,
195
195
  arrowRight: !Ue.value
196
196
  };
197
- }), Le = k(() => Ge.value ? Ge.value.getBoundingClientRect().width * ((ue.value - d.min) / (d.max - d.min)) - Jl.value / 2 < 0 : !1), Ue = k(() => Ge.value ? Ge.value.getBoundingClientRect().width * ((se.value - d.min) / (d.max - d.min)) + Vl.value / 2 > Ge.value.getBoundingClientRect().width : !1), kl = k(() => d.inputColor), wl = k(() => d.background), Lt = k(() => `${d.selectColor}33`), Ie = k(() => d.borderColor), Tl = k(() => {
197
+ }), Le = k(() => Ge.value ? Ge.value.getBoundingClientRect().width * ((ue.value - d.min) / (d.max - d.min)) - Jl.value / 2 < 0 : !1), Ue = k(() => Ge.value ? Ge.value.getBoundingClientRect().width * ((re.value - d.min) / (d.max - d.min)) + Vl.value / 2 > Ge.value.getBoundingClientRect().width : !1), kl = k(() => d.inputColor), wl = k(() => d.background), Lt = k(() => `${d.selectColor}33`), Ie = k(() => d.borderColor), Tl = k(() => {
198
198
  let b = [];
199
199
  for (let g = 0; g < d.minimap.length; g += 1)
200
200
  b.push(g);
@@ -205,16 +205,16 @@ const Co = {
205
205
  }
206
206
  y({
207
207
  start: ue.value,
208
- end: se.value
208
+ end: re.value
209
209
  }), je(
210
210
  () => d.min,
211
211
  (b) => {
212
- Number(ue.value) < Number(b) && (ue.value = Number(b)), Number(se.value) < Number(b) && (se.value = Number(b));
212
+ Number(ue.value) < Number(b) && (ue.value = Number(b)), Number(re.value) < Number(b) && (re.value = Number(b));
213
213
  }
214
214
  ), je(
215
215
  () => d.max,
216
216
  (b) => {
217
- Number(ue.value) > Number(b) && (ue.value = Number(b)), Number(se.value) > Number(b) && (se.value = Number(b));
217
+ Number(ue.value) > Number(b) && (ue.value = Number(b)), Number(re.value) > Number(b) && (re.value = Number(b));
218
218
  }
219
219
  );
220
220
  const Sl = y(null), Y = y({
@@ -252,20 +252,20 @@ const Co = {
252
252
  };
253
253
  }), Te = k(() => ({
254
254
  x: fe.value * ue.value + fe.value / 2,
255
- width: Y.value.width * ((se.value - ue.value) / d.max) - fe.value
256
- })), ie = y(d.minimapSelectedIndex);
255
+ width: Y.value.width * ((re.value - ue.value) / d.max) - fe.value
256
+ })), se = y(d.minimapSelectedIndex);
257
257
  je(() => d.minimapSelectedIndex, (b) => {
258
- ie.value = b + d.valueStart;
258
+ se.value = b + d.valueStart;
259
259
  }, { immediate: !0 });
260
- function re(b) {
261
- ie.value = b, b >= d.valueStart && b < d.valueEnd && he("trapMouse", b - d.valueStart);
260
+ function ie(b) {
261
+ se.value = b, b >= d.valueStart && b < d.valueEnd && he("trapMouse", b - d.valueStart);
262
262
  }
263
263
  const Ol = y(0), $l = y(null), Ve = y(null);
264
264
  function rl(b) {
265
265
  ue.value = b, $l.value && ($l.value.value = String(b)), he("futureStart", b), Dl();
266
266
  }
267
267
  function ll(b) {
268
- se.value = b, Ve.value && (Ve.value.value = b), he("futureEnd", b), Dl();
268
+ re.value = b, Ve.value && (Ve.value.value = b), he("futureEnd", b), Dl();
269
269
  }
270
270
  const Nl = k(() => d.valueEnd - d.valueStart), Ee = y(!1);
271
271
  let ae = y(null);
@@ -295,7 +295,7 @@ const Co = {
295
295
  const g = b - ae.value;
296
296
  if (Math.abs(g) > K.value) {
297
297
  if (g > 0) {
298
- const h = Math.min(d.max, se.value + ql.value);
298
+ const h = Math.min(d.max, re.value + ql.value);
299
299
  pl.value = h, bl.value = h - Nl.value;
300
300
  } else {
301
301
  const h = Math.max(d.min, ue.value - ql.value);
@@ -328,7 +328,7 @@ const Co = {
328
328
  width: 0,
329
329
  left: 0
330
330
  });
331
- je([ue, se], async () => {
331
+ je([ue, re], async () => {
332
332
  if (await Yl(), !qe.value || !S.value) {
333
333
  l.value = !1, tl.value = { width: 0, left: 0 };
334
334
  return;
@@ -348,7 +348,7 @@ const Co = {
348
348
  Yl(Me);
349
349
  }, { deep: !0 });
350
350
  const X = k(() => {
351
- const b = d.timeLabels.find((h) => h.absoluteIndex === ue.value), g = d.timeLabels.find((h) => h.absoluteIndex === se.value - 1);
351
+ const b = d.timeLabels.find((h) => h.absoluteIndex === ue.value), g = d.timeLabels.find((h) => h.absoluteIndex === re.value - 1);
352
352
  return {
353
353
  left: b ? b.text : "",
354
354
  right: g ? g.text : ""
@@ -493,8 +493,8 @@ const Co = {
493
493
  r: "3",
494
494
  fill: M.minimapLineColor
495
495
  }, null, 8, Yo),
496
- ie.value !== null ? (u(!0), i(x, { key: 0 }, _(Tl.value, (h, U) => (u(), i("g", null, [
497
- ie.value === h && h >= M.valueStart && h < M.valueEnd ? (u(), i("line", {
496
+ se.value !== null ? (u(!0), i(x, { key: 0 }, _(Tl.value, (h, U) => (u(), i("g", null, [
497
+ se.value === h && h >= M.valueStart && h < M.valueEnd ? (u(), i("line", {
498
498
  key: 0,
499
499
  x1: fe.value * U + fe.value / 2,
500
500
  x2: fe.value * U + fe.value / 2,
@@ -517,9 +517,9 @@ const Co = {
517
517
  }]),
518
518
  onMousedown: g[0] || (g[0] = (we) => pe.value = !0),
519
519
  onMouseup: g[1] || (g[1] = (we) => pe.value = !1),
520
- onMouseenter: (we) => re(h),
520
+ onMouseenter: (we) => ie(h),
521
521
  onMouseleave: g[2] || (g[2] = (we) => {
522
- ie.value = null, he("trapMouse", null);
522
+ se.value = null, he("trapMouse", null);
523
523
  })
524
524
  }, null, 44, Do))), 256))
525
525
  ], 8, To))
@@ -705,9 +705,9 @@ const Co = {
705
705
  },
706
706
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
707
707
  setup(M, { expose: $t, emit: _t }) {
708
- const d = M, Ge = fl(() => import("./DataTable-CQqQt3fP.js")), ue = fl(() => import("./Tooltip-DD9Ly0Pw.js")), se = fl(() => import("./UserOptions-dJLhbxrH.js")), xl = fl(() => import("./BaseIcon-CVvwtj-w.js")), Xl = fl(() => import("./vue-ui-table-sparkline-MtUkhn2K.js")), Il = fl(() => import("./vue-ui-accordion-DyBJ-mad.js")), bl = fl(() => import("./PackageVersion-DGlLBQOn.js")), pl = fl(() => import("./PenAndPaper-hAK7vneq.js")), yl = _t, Dl = Ja(), Gl = Ka(), { vue_ui_xy: Ul } = oo(), he = y(null), xe = y(null), Le = y(null), Ue = y(null), kl = y(null), wl = y(null), Lt = y(null), Ie = y(null), Tl = y(null), el = y(null), Sl = y(null), Y = y(null), il = y(null), fe = y(0), L = y(null), Te = y(!0), ie = y(600), re = y(1e3), Ol = y("0 0 1000 600"), $l = y({ x: 0, y: 0 }), Ve = y({ line: "line", bar: "bar", plot: "plot" }), rl = y(!1), ll = y(!1), Nl = y(!1), Ee = y(null), ae = y([]), K = y(pt()), st = y(0), it = y(0), ql = y(0), nl = y(!0), Rl = y(0), P = y(null), Zl = y(!1), Pl = y(!0), Hl = y(!0), be = y(null), pe = y({}), qe = y(null), S = y(null), Jl = k(() => ({
709
- height: ie.value,
710
- width: re.value
708
+ const d = M, Ge = fl(() => import("./DataTable-DonNp9Tn.js")), ue = fl(() => import("./Tooltip-BuuVsO8D.js")), re = fl(() => import("./UserOptions-32osgWD2.js")), xl = fl(() => import("./BaseIcon-Cq9SmUOT.js")), Xl = fl(() => import("./vue-ui-table-sparkline-BLR9glHo.js")), Il = fl(() => import("./vue-ui-accordion-BBZQktvS.js")), bl = fl(() => import("./PackageVersion-F_KOshQ5.js")), pl = fl(() => import("./PenAndPaper-BzsPyqiU.js")), yl = _t, Dl = Ja(), Gl = Ka(), { vue_ui_xy: Ul } = oo(), he = y(null), xe = y(null), Le = y(null), Ue = y(null), kl = y(null), wl = y(null), Lt = y(null), Ie = y(null), Tl = y(null), el = y(null), Sl = y(null), Y = y(null), il = y(null), fe = y(0), L = y(null), Te = y(!0), se = y(600), ie = y(1e3), Ol = y("0 0 1000 600"), $l = y({ x: 0, y: 0 }), Ve = y({ line: "line", bar: "bar", plot: "plot" }), rl = y(!1), ll = y(!1), Nl = y(!1), Ee = y(null), ae = y([]), K = y(pt()), st = y(0), it = y(0), ql = y(0), nl = y(!0), Rl = y(0), P = y(null), Zl = y(!1), Pl = y(!0), Hl = y(!0), be = y(null), pe = y({}), qe = y(null), S = y(null), Jl = k(() => ({
709
+ height: se.value,
710
+ width: ie.value
711
711
  })), Vl = d.config.downsample && d.config.downsample.threshold ? d.config.downsample.threshold : 500, m = y({
712
712
  dataLabels: { show: !0 },
713
713
  showTooltip: !0,
@@ -941,13 +941,13 @@ const Co = {
941
941
  const o = el.value.getBBox().x;
942
942
  o < 0 && (t += Math.abs(o));
943
943
  }
944
- const a = re.value - t - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : a / $.value / 2;
944
+ const a = ie.value - t - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : a / $.value / 2;
945
945
  return {
946
946
  top: l.value.chart.padding.top + e,
947
- right: re.value - s - l.value.chart.padding.right,
948
- bottom: ie.value - Et.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
947
+ right: ie.value - s - l.value.chart.padding.right,
948
+ bottom: se.value - Et.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
949
949
  left: t + l.value.chart.grid.labels.yAxis.crosshairSize - r + l.value.chart.padding.left,
950
- height: ie.value - Et.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
950
+ height: se.value - Et.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
951
951
  width: a,
952
952
  scaleLabelX: t,
953
953
  individualOffsetX: c
@@ -1729,37 +1729,37 @@ const Co = {
1729
1729
  return;
1730
1730
  }
1731
1731
  w.value.dataLabels = Fl({
1732
- relator: ie.value,
1732
+ relator: se.value,
1733
1733
  adjuster: 400,
1734
1734
  source: l.value.chart.grid.labels.fontSize,
1735
1735
  threshold: 10,
1736
1736
  fallback: 10
1737
1737
  }), w.value.yAxis = Fl({
1738
- relator: re.value,
1738
+ relator: ie.value,
1739
1739
  adjuster: 1e3,
1740
1740
  source: l.value.chart.grid.labels.axis.fontSize,
1741
1741
  threshold: 10,
1742
1742
  fallback: 10
1743
1743
  }), w.value.xAxis = Fl({
1744
- relator: re.value,
1744
+ relator: ie.value,
1745
1745
  adjuster: 1e3,
1746
1746
  source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1747
1747
  threshold: 10,
1748
1748
  fallback: 10
1749
1749
  }), w.value.plotLabels = Fl({
1750
- relator: re.value,
1750
+ relator: ie.value,
1751
1751
  adjuster: 800,
1752
1752
  source: l.value.chart.labels.fontSize,
1753
1753
  threshold: 10,
1754
1754
  fallback: 10
1755
1755
  }), Me.value.plot = Fl({
1756
- relator: re.value,
1756
+ relator: ie.value,
1757
1757
  adjuster: 800,
1758
1758
  source: l.value.plot.radius,
1759
1759
  threshold: 1,
1760
1760
  fallback: 1
1761
1761
  }), Me.value.line = Fl({
1762
- relator: re.value,
1762
+ relator: ie.value,
1763
1763
  adjuster: 800,
1764
1764
  source: l.value.line.radius,
1765
1765
  threshold: 1,
@@ -1809,16 +1809,16 @@ const Co = {
1809
1809
  let O = 0;
1810
1810
  kl.value && (O = kl.value.getBoundingClientRect().height);
1811
1811
  let q = 0;
1812
- wl.value && (q = wl.value.getBoundingClientRect().height), ie.value = s - o - C - D - O - q - t, re.value = a, Ol.value = `0 0 ${re.value < 0 ? 10 : re.value} ${ie.value < 0 ? 10 : ie.value}`, ha();
1812
+ wl.value && (q = wl.value.getBoundingClientRect().height), se.value = s - o - C - D - O - q - t, ie.value = a, Ol.value = `0 0 ${ie.value < 0 ? 10 : ie.value} ${se.value < 0 ? 10 : se.value}`, ha();
1813
1813
  const z = new ResizeObserver((V) => {
1814
1814
  for (const T of V)
1815
1815
  l.value.chart.title.show && xe.value ? o = xe.value.getBoundingClientRect().height : o = 0, Le.value && Le.value.$el ? D = Le.value.$el.getBoundingClientRect().height : D = 0, Ue.value ? C = Ue.value.getBoundingClientRect().height : C = 0, kl.value ? O = kl.value.getBoundingClientRect().height : O = 0, wl.value ? q = wl.value.getBoundingClientRect().height : q = 0, requestAnimationFrame(() => {
1816
- ie.value = T.contentRect.height - o - C - D - O - q - t, re.value = T.contentBoxSize[0].inlineSize, Ol.value = `0 0 ${re.value < 0 ? 10 : re.value} ${ie.value < 0 ? 10 : ie.value}`, ha();
1816
+ se.value = T.contentRect.height - o - C - D - O - q - t, ie.value = T.contentBoxSize[0].inlineSize, Ol.value = `0 0 ${ie.value < 0 ? 10 : ie.value} ${se.value < 0 ? 10 : se.value}`, ha();
1817
1817
  });
1818
1818
  });
1819
1819
  Y.value = z, il.value = e, z.observe(e);
1820
1820
  } else
1821
- ie.value = l.value.chart.height, re.value = l.value.chart.width, w.value.dataLabels = l.value.chart.grid.labels.fontSize, w.value.yAxis = l.value.chart.grid.labels.axis.fontSize, w.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, w.value.plotLabels = l.value.chart.labels.fontSize, Me.value.plot = l.value.plot.radius, Me.value.line = l.value.line.radius, Ol.value = `0 0 ${re.value} ${ie.value}`;
1821
+ se.value = l.value.chart.height, ie.value = l.value.chart.width, w.value.dataLabels = l.value.chart.grid.labels.fontSize, w.value.yAxis = l.value.chart.grid.labels.axis.fontSize, w.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, w.value.plotLabels = l.value.chart.labels.fontSize, Me.value.plot = l.value.plot.radius, Me.value.line = l.value.line.radius, Ol.value = `0 0 ${ie.value} ${se.value}`;
1822
1822
  }
1823
1823
  return yt(() => {
1824
1824
  fa(), Tt(), document.addEventListener("mousemove", (t) => {
@@ -1836,7 +1836,9 @@ const Co = {
1836
1836
  configRef: l,
1837
1837
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1838
1838
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
1839
- isAutoSize: $a
1839
+ isAutoSize: $a,
1840
+ height: se,
1841
+ width: ie
1840
1842
  }), je(() => d.dataset, (t) => {
1841
1843
  Array.isArray(t) && t.length > 0 && (b.value = !1), g.value = Math.max(...X.value.map((c) => Ke({
1842
1844
  data: c.series,
@@ -1922,7 +1924,7 @@ const Co = {
1922
1924
  }
1923
1925
  }, null, 8, ["config"]))
1924
1926
  ], 4)) : f("", !0),
1925
- l.value.chart.userOptions.show && (Pl.value || Hl.value) ? (u(), Ye(v(se), {
1927
+ l.value.chart.userOptions.show && (Pl.value || Hl.value) ? (u(), Ye(v(re), {
1926
1928
  ref: "defails",
1927
1929
  key: `user_options_${st.value}`,
1928
1930
  backgroundColor: l.value.chart.backgroundColor,
@@ -3100,8 +3102,8 @@ const Co = {
3100
3102
  ref_key: "xAxisLabel",
3101
3103
  ref: Ie,
3102
3104
  "text-anchor": "middle",
3103
- x: re.value / 2,
3104
- y: ie.value - 3,
3105
+ x: ie.value / 2,
3106
+ y: se.value - 3,
3105
3107
  "font-size": w.value.yAxis,
3106
3108
  fill: l.value.chart.grid.labels.color
3107
3109
  }, te(l.value.chart.grid.labels.axis.xLabel), 9, qs)) : f("", !0)
@@ -3733,7 +3735,7 @@ const Co = {
3733
3735
  v(tl) ? (u(), Ye(Ao, { key: 11 })) : f("", !0)
3734
3736
  ], 46, Jo));
3735
3737
  }
3736
- }, Wi = /* @__PURE__ */ Sa(Mi, [["__scopeId", "data-v-32b4494b"]]);
3738
+ }, Wi = /* @__PURE__ */ Sa(Mi, [["__scopeId", "data-v-d55281bc"]]);
3737
3739
  export {
3738
3740
  Wi as default
3739
3741
  };
@@ -1,15 +1,15 @@
1
1
  import { defineAsyncComponent as K, ref as d, computed as L, useSlots as Va, onMounted as ua, watch as D, nextTick as sa, shallowRef as ze, onBeforeUnmount as Ga, createElementBlock as se, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as X, createBlock as N, createElementVNode as ne, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
2
- import { u as Ka, c as Qa, t as el, p as V, a as al, C as ge, b as ll, D as $e, i as ee, f as ae, d as ia, a5 as tl, G as ol, ae as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ie, l as cl } from "./index-h6tbqLot.js";
2
+ import { u as Ka, c as Qa, t as el, p as V, a as al, C as ge, b as ll, D as $e, i as ee, f as ae, d as ia, a5 as tl, G as ol, ae as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ie, l as cl } from "./index-BeBasrrG.js";
3
3
  import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Ie, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
- import { u as ha } from "./useNestedProp-D059IOwh.js";
5
- import { u as gl } from "./usePrinter-BuJDNOzF.js";
4
+ import { u as ha } from "./useNestedProp-BI69cynt.js";
5
+ import { u as gl } from "./usePrinter-DpTBVYGM.js";
6
6
  import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
8
- import bl from "./Legend-DAN5L1lo.js";
9
- import xl from "./Title-Bo-MVYcn.js";
10
- import { S as Ll } from "./Slicer-8WIL9Cfq.js";
8
+ import bl from "./Legend-De_LcU2x.js";
9
+ import xl from "./Title-CbfJu3Bz.js";
10
+ import { S as Ll } from "./Slicer-BCCGJwNV.js";
11
11
  import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
- import Cl from "./img-59KgIaXp.js";
12
+ import Cl from "./img-Domj-5hZ.js";
13
13
  import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const Sl = ["id"], zl = ["onClick"], $l = {
15
15
  key: 2,
@@ -32,7 +32,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
32
32
  },
33
33
  emits: ["selectLegend"],
34
34
  setup(Me, { expose: ya, emit: fa }) {
35
- const ga = K(() => import("./vue-ui-accordion-DyBJ-mad.js")), pa = K(() => import("./DataTable-CQqQt3fP.js")), ma = K(() => import("./NonSvgPenAndPaper-s0PFQNll.js")), ba = K(() => import("./vue-ui-skeleton-DIJ5u0HF.js")), xa = K(() => import("./Tooltip-DD9Ly0Pw.js")), La = K(() => import("./UserOptions-dJLhbxrH.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
35
+ const ga = K(() => import("./vue-ui-accordion-BBZQktvS.js")), pa = K(() => import("./DataTable-DonNp9Tn.js")), ma = K(() => import("./NonSvgPenAndPaper-DCCmvppN.js")), ba = K(() => import("./vue-ui-skeleton-BLCAe0aL.js")), xa = K(() => import("./Tooltip-BuuVsO8D.js")), La = K(() => import("./UserOptions-32osgWD2.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
36
  ua(() => {
37
37
  wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
38
38
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.0.0-next.33",
4
+ "version": "3.0.0-next.34",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,71 +0,0 @@
1
- import { watch as L, nextTick as N } from "vue";
2
- function q({
3
- timeLabelsEls: y,
4
- timeLabels: T,
5
- slicer: v,
6
- configRef: u,
7
- rotationPath: i,
8
- autoRotatePath: C,
9
- isAutoSize: b,
10
- setViewBox: p,
11
- forceResizeObserver: h,
12
- callback: a
13
- }) {
14
- function l(s, n) {
15
- return n.reduce((e, t) => e && e[t], s);
16
- }
17
- function w(s, n, e) {
18
- n.slice(0, -1).reduce((t, o) => t[o], s)[n.slice(-1)] = e;
19
- }
20
- function g(s) {
21
- const n = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(s);
22
- return n ? {
23
- x: parseFloat(n[1]),
24
- y: parseFloat(n[2])
25
- } : { x: 0, y: 0 };
26
- }
27
- async function c() {
28
- await N();
29
- const s = y.value;
30
- if (!s) return;
31
- const e = Array.from(s.querySelectorAll(".vue-data-ui-time-label")).map((r) => ({
32
- ...g(r.getAttribute("transform")),
33
- width: r.getBBox().width
34
- }));
35
- let t = !1;
36
- const o = 4;
37
- for (let r = 0; r < e.length && !t; r += 1)
38
- for (let m = r + 1; m < e.length; m += 1) {
39
- const x = e[r], f = e[m];
40
- if (!(x.x + x.width + o < f.x || f.x + f.width + o < x.x)) {
41
- t = !0;
42
- break;
43
- }
44
- }
45
- const d = l(u.value, i);
46
- t && !d ? (w(u.value, i, -30.0001), a && a({ collision: t }), b.value && p && h && (p(), h())) : !t && d === -30.0001 && (w(u.value, i, 0), a && a({ collision: t }));
47
- }
48
- function A(s, n) {
49
- let e;
50
- return (...t) => {
51
- clearTimeout(e), e = setTimeout(() => s(...t), n);
52
- };
53
- }
54
- const F = A(c, 200);
55
- return L(
56
- [
57
- () => T.value,
58
- () => l(u.value, i),
59
- () => v.value.start,
60
- () => v.value.end
61
- ],
62
- async ([, , s, n], [, , e, t]) => {
63
- if (!l(u.value, C)) return;
64
- s !== e || n !== t ? F() : await c();
65
- },
66
- { immediate: !0 }
67
- ), { detectTimeLabelCollision: c };
68
- }
69
- export {
70
- q as u
71
- };