vue-data-ui 3.13.4 → 3.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-C1Ia4Osa.js → PackageVersion-BYDNrIJ0.js} +1 -1
- package/dist/{SlicerPreview-BciDdnXB.js → SlicerPreview-CAXiPRIZ.js} +86 -84
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-CXMubDkQ.js → vue-data-ui-DEonIBk7.js} +59 -59
- package/dist/vue-data-ui.js +60 -60
- package/dist/{vue-ui-3d-bar-DuIllDhC.js → vue-ui-3d-bar-DmauGDLu.js} +1 -1
- package/dist/{vue-ui-age-pyramid-F277LP_p.js → vue-ui-age-pyramid-TSnnYEzp.js} +1 -1
- package/dist/{vue-ui-bullet-DGiNmsY5.js → vue-ui-bullet-Cz4-9xYi.js} +1 -1
- package/dist/{vue-ui-bump-BVx3pyWE.js → vue-ui-bump-DrF-1ejM.js} +1 -1
- package/dist/{vue-ui-candlestick-q20Az_vC.js → vue-ui-candlestick-p6U7VX1_.js} +2 -2
- package/dist/{vue-ui-carousel-table-paln_xSL.js → vue-ui-carousel-table-DbiEcq_S.js} +1 -1
- package/dist/{vue-ui-chestnut-BUQVCplK.js → vue-ui-chestnut-ZjMZwtDK.js} +1 -1
- package/dist/{vue-ui-chord-Ce3Ac3OA.js → vue-ui-chord-NyD1OwDE.js} +1 -1
- package/dist/{vue-ui-circle-pack-DjjvjEaN.js → vue-ui-circle-pack-BSRVqhXA.js} +1 -1
- package/dist/{vue-ui-cursor-xJGQfL6H.js → vue-ui-cursor-DeV-nS05.js} +1 -1
- package/dist/{vue-ui-dag-BcTqF3b0.js → vue-ui-dag-B9Ebegl2.js} +1 -1
- package/dist/{vue-ui-dashboard-Dq3WouX5.js → vue-ui-dashboard-CB0X7yfF.js} +55 -55
- package/dist/{vue-ui-donut-evolution-BtuKKVDh.js → vue-ui-donut-evolution-DVEsQ4Lx.js} +1 -1
- package/dist/{vue-ui-donut-BZ84Pw3F.js → vue-ui-donut-i6TEoD55.js} +1 -1
- package/dist/{vue-ui-dumbbell-C7sKuu8m.js → vue-ui-dumbbell-B-K82IW8.js} +1 -1
- package/dist/{vue-ui-flow-Bkx_4KR7.js → vue-ui-flow-BIHwn1Z7.js} +1 -1
- package/dist/{vue-ui-funnel-C0Sqt3pg.js → vue-ui-funnel-0pJMV7B1.js} +1 -1
- package/dist/{vue-ui-galaxy-C6ByAwPf.js → vue-ui-galaxy-BMHeuRhE.js} +1 -1
- package/dist/{vue-ui-gauge-DjtuUa1j.js → vue-ui-gauge-CKalbSHd.js} +1 -1
- package/dist/{vue-ui-geo-ClwaBRr4.js → vue-ui-geo-DEmC5006.js} +1 -1
- package/dist/{vue-ui-gizmo-DYwoPoKw.js → vue-ui-gizmo-DzdC5Pm_.js} +1 -1
- package/dist/{vue-ui-heatmap-B2cjprkn.js → vue-ui-heatmap-DoUiU6Em.js} +1 -1
- package/dist/{vue-ui-history-plot-DovDgs7d.js → vue-ui-history-plot-RPYjpGJ_.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-DRMphY-v.js → vue-ui-horizontal-bar-DmqFpAJh.js} +1 -1
- package/dist/{vue-ui-molecule-C7mCNWSS.js → vue-ui-molecule-CpSJ37rE.js} +1 -1
- package/dist/{vue-ui-mood-radar-DHKPV6u3.js → vue-ui-mood-radar-BEx4yaPo.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Bqn7bXhu.js → vue-ui-nested-donuts-BkRKIcB3.js} +1 -1
- package/dist/{vue-ui-onion-HjD5re6K.js → vue-ui-onion-C6OkQlk7.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-C6c1w_tp.js → vue-ui-parallel-coordinate-plot-Clk9WiGY.js} +1 -1
- package/dist/{vue-ui-quadrant-CS6dfVYx.js → vue-ui-quadrant-BZDBg78b.js} +1 -1
- package/dist/{vue-ui-quick-chart-Bb0NyRBA.js → vue-ui-quick-chart-CTbV3Ctk.js} +1 -1
- package/dist/{vue-ui-radar-B6bvhvKt.js → vue-ui-radar-CQ_Xsu__.js} +1 -1
- package/dist/{vue-ui-relation-circle-Cr_mR_Es.js → vue-ui-relation-circle-D85v4dnK.js} +1 -1
- package/dist/{vue-ui-ridgeline-BUJV2OdA.js → vue-ui-ridgeline-SPSj--J7.js} +1 -1
- package/dist/{vue-ui-rings-T3n2Cf5q.js → vue-ui-rings-Ew1XmGsJ.js} +1 -1
- package/dist/{vue-ui-scatter-4FqvwLM6.js → vue-ui-scatter-CO4x0Ksy.js} +1 -1
- package/dist/{vue-ui-skeleton-CUTTNN7A.js → vue-ui-skeleton-BfxCPNZS.js} +1 -1
- package/dist/{vue-ui-spark-trend-C0HTcNoj.js → vue-ui-spark-trend-BGSGCTuW.js} +1 -1
- package/dist/{vue-ui-sparkbar-uLJAjJXH.js → vue-ui-sparkbar-DVEuuU-p.js} +1 -1
- package/dist/{vue-ui-sparkgauge-DDDXxyYQ.js → vue-ui-sparkgauge-C-Wgybx4.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cv8MPWe7.js → vue-ui-sparkhistogram-BrfVX4ew.js} +1 -1
- package/dist/{vue-ui-sparkline-D5ghw08L.js → vue-ui-sparkline-DwnGNR86.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CPA_xyx9.js → vue-ui-sparkstackbar-D9SpoFNl.js} +1 -1
- package/dist/{vue-ui-stackbar-C3FQP-xJ.js → vue-ui-stackbar-DDrKag2j.js} +2 -2
- package/dist/{vue-ui-stackline-BxyretmG.js → vue-ui-stackline-Cn877DAG.js} +2 -2
- package/dist/{vue-ui-strip-plot-BZ9iOWqO.js → vue-ui-strip-plot-DIRz8EFk.js} +1 -1
- package/dist/{vue-ui-table-NIg7DLgl.js → vue-ui-table-BaS061aS.js} +2 -2
- package/dist/{vue-ui-table-sparkline-dGPa0o9F.js → vue-ui-table-sparkline-Cr6EasBm.js} +1 -1
- package/dist/{vue-ui-thermometer-CaaunlPx.js → vue-ui-thermometer-D0Rf71T7.js} +1 -1
- package/dist/{vue-ui-timer-D2APjrbL.js → vue-ui-timer-CuNUpGqt.js} +1 -1
- package/dist/{vue-ui-tiremarks-BiFzeEgA.js → vue-ui-tiremarks-Lv_TpVvo.js} +1 -1
- package/dist/{vue-ui-treemap-B_2upayj.js → vue-ui-treemap-8y9jYpzY.js} +1 -1
- package/dist/{vue-ui-waffle-BX6WCDgf.js → vue-ui-waffle-B9VIRghx.js} +1 -1
- package/dist/{vue-ui-wheel-DCPU0Kts.js → vue-ui-wheel-CRDHjnVL.js} +1 -1
- package/dist/{vue-ui-word-cloud-BNVXwbj3.js → vue-ui-word-cloud-CWYVKDb7.js} +1 -1
- package/dist/{vue-ui-world-BGdgyGOZ.js → vue-ui-world-CrsR8WIb.js} +1 -1
- package/dist/{vue-ui-xy-un6b4oO0.js → vue-ui-xy-CFV3jsGX.js} +2 -2
- package/dist/{vue-ui-xy-canvas-CQtgYpEg.js → vue-ui-xy-canvas-C_oxgAjU.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as r } from "vue";
|
|
2
|
-
const n = "3.13.
|
|
2
|
+
const n = "3.13.5", a = { "aria-hidden": "true" }, p = {
|
|
3
3
|
__name: "PackageVersion",
|
|
4
4
|
setup(s) {
|
|
5
5
|
return (c, i) => (t(), e("desc", a, "Composed with Vue Data UI " + o(r(n)), 1));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useCssVars as rl, computed as s, ref as
|
|
1
|
+
import { useCssVars as rl, computed as s, ref as h, watch as Q, onMounted as ol, onBeforeUnmount as De, onUpdated as ht, nextTick as xe, createElementBlock as i, openBlock as u, normalizeStyle as L, createElementVNode as F, createCommentVNode as v, renderSlot as ft, createVNode as sl, withDirectives as gt, unref as pe, Fragment as y, renderList as S, normalizeProps as yt, mergeProps as xt, normalizeClass as _, withKeys as pt, vModelText as bt, toDisplayString as We } from "vue";
|
|
2
2
|
import { c as cl, y as vl, X as ml, x as ze, z as Mt, A as kt, B as wt, C as St, D as Ct } from "./lib-BrVUf7jz.js";
|
|
3
|
-
import { t as Xe, d as
|
|
4
|
-
import
|
|
3
|
+
import { t as Xe, d as dl, u as hl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import fl from "./BaseIcon-CJ7mD4nD.js";
|
|
5
5
|
import { _ as gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const yl = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -198,13 +198,13 @@ const yl = {
|
|
|
198
198
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
199
199
|
setup(r, { expose: Nt, emit: Pt }) {
|
|
200
200
|
rl((e) => ({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
v5ad43abe: Lt.value,
|
|
202
|
+
v6a8b6b15: g.value,
|
|
203
|
+
v8c76d674: Rt.value,
|
|
204
|
+
v4ac0ac45: r.selectColor,
|
|
205
|
+
v5d8b6c53: Ft.value
|
|
206
206
|
}));
|
|
207
|
-
const a = r, N =
|
|
207
|
+
const a = r, N = h(null), x = h(a.min), b = h(a.max), k = s(() => !!a.allMinimaps.length), be = h(cl()), H = h(!1), U = s(() => k.value && a.minimapCompact), Ze = h(0), Me = Xe((e) => E("futureStart", e), 0), ke = Xe((e) => E("futureEnd", e), 0), ee = s({
|
|
208
208
|
get: () => x.value,
|
|
209
209
|
set(e) {
|
|
210
210
|
const l = Math.min(e, b.value - 1);
|
|
@@ -224,14 +224,14 @@ const yl = {
|
|
|
224
224
|
const $t = s(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), E = Pt, me = s(() => {
|
|
225
225
|
if (U.value) {
|
|
226
226
|
const l = Math.max(1, Y.value - 1);
|
|
227
|
-
return
|
|
227
|
+
return he.value / l * 100;
|
|
228
228
|
}
|
|
229
229
|
const e = Math.max(1, a.max - a.min);
|
|
230
230
|
return (x.value - a.min) / e * 100;
|
|
231
231
|
}), we = s(() => {
|
|
232
232
|
if (U.value) {
|
|
233
233
|
const l = Math.max(1, Y.value - 1);
|
|
234
|
-
return
|
|
234
|
+
return fe.value / l * 100;
|
|
235
235
|
}
|
|
236
236
|
const e = Math.max(1, a.max - a.min);
|
|
237
237
|
return (b.value - a.min) / e * 100;
|
|
@@ -275,18 +275,18 @@ const yl = {
|
|
|
275
275
|
Number(x.value) > Number(e) && (x.value = Number(e)), Number(b.value) > Number(e) && (b.value = Number(e));
|
|
276
276
|
}
|
|
277
277
|
);
|
|
278
|
-
const
|
|
278
|
+
const de = h(null), f = h({
|
|
279
279
|
width: 1,
|
|
280
280
|
height: 1
|
|
281
|
-
}), K =
|
|
281
|
+
}), K = h(null);
|
|
282
282
|
ol(() => {
|
|
283
283
|
if (k.value) {
|
|
284
284
|
const e = Xe(() => {
|
|
285
|
-
if (!
|
|
286
|
-
const { width: l, height: t } =
|
|
287
|
-
(n !==
|
|
285
|
+
if (!de.value) return;
|
|
286
|
+
const { width: l, height: t } = hl({ chart: de.value }), n = Math.max(0, Math.round(l)), o = Math.max(0, Math.round(t - 47));
|
|
287
|
+
(n !== f.value.width || o !== f.value.height) && (f.value.width = n, f.value.height = o);
|
|
288
288
|
}, 0);
|
|
289
|
-
K.value = new ResizeObserver(e), K.value.observe(
|
|
289
|
+
K.value = new ResizeObserver(e), K.value.observe(de.value);
|
|
290
290
|
}
|
|
291
291
|
}), De(() => {
|
|
292
292
|
K.value && K.value.disconnect();
|
|
@@ -302,7 +302,7 @@ const yl = {
|
|
|
302
302
|
}
|
|
303
303
|
const Z = s(() => Ye(x.value)), j = s(() => At(b.value)), Pe = s(() => Math.max(...a.allMinimaps.map((e) => e.series.length))), M = s(() => {
|
|
304
304
|
const e = Math.max(1, Pe.value - (a.minimapCompact ? 1 : 0));
|
|
305
|
-
return
|
|
305
|
+
return f.value.width / e;
|
|
306
306
|
}), je = s(() => a.allMinimaps.length ? a.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), $e = s(() => M.value / (je.value || 1) * 0.8);
|
|
307
307
|
function qe(e, l, t) {
|
|
308
308
|
const n = $e.value, o = Math.max(1, je.value), c = Pe.value - 1;
|
|
@@ -330,7 +330,7 @@ const yl = {
|
|
|
330
330
|
let o, c;
|
|
331
331
|
return t !== null && n !== null ? (o = Math.min(t, e), c = Math.max(n, l)) : (o = t !== null ? t : e, c = n !== null ? n : l), Number.isFinite(o) || (o = 0), Number.isFinite(c) || (c = 1), o === c ? c = o + 1 : o > c && ([o, c] = [c, o]), { min: o, max: c };
|
|
332
332
|
}), q = s(() => _e.value.min), le = s(() => _e.value.max), Bt = s(() => q.value < 0 && le.value > 0 || le.value <= 0 ? q.value : 0), Tt = (e) => {
|
|
333
|
-
const l = Math.max(1,
|
|
333
|
+
const l = Math.max(1, f.value.height);
|
|
334
334
|
return et(
|
|
335
335
|
q.value,
|
|
336
336
|
le.value,
|
|
@@ -339,21 +339,21 @@ const yl = {
|
|
|
339
339
|
)(e);
|
|
340
340
|
}, Fe = s(() => Tt(0));
|
|
341
341
|
function et(e, l, t, n = !1) {
|
|
342
|
-
const o = (
|
|
342
|
+
const o = (d, C, $) => Math.max(C, Math.min($, d)), B = Math.max(1e-9, l - e);
|
|
343
343
|
if (n)
|
|
344
|
-
return (
|
|
345
|
-
const C = (
|
|
344
|
+
return (d) => {
|
|
345
|
+
const C = (d - e) / B;
|
|
346
346
|
return t - C * t;
|
|
347
347
|
};
|
|
348
348
|
if (l <= 0) {
|
|
349
|
-
const
|
|
350
|
-
return (C) => t - (C - e) /
|
|
349
|
+
const d = Math.max(1e-9, 0 - e);
|
|
350
|
+
return (C) => t - (C - e) / d * t;
|
|
351
351
|
} else if (e >= 0) {
|
|
352
|
-
const
|
|
353
|
-
return (C) => t - (C - 0) /
|
|
352
|
+
const d = Math.max(1e-9, l - 0);
|
|
353
|
+
return (C) => t - (C - 0) / d * t;
|
|
354
354
|
} else {
|
|
355
|
-
const
|
|
356
|
-
return (C) => (1 - (o(C /
|
|
355
|
+
const d = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
|
|
356
|
+
return (C) => (1 - (o(C / d, -1, 1) + 1) / 2) * t;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function tt(e, l = !1) {
|
|
@@ -370,25 +370,25 @@ const yl = {
|
|
|
370
370
|
fullMarkers: [],
|
|
371
371
|
selectionMarkers: []
|
|
372
372
|
};
|
|
373
|
-
const t = Math.max(1,
|
|
374
|
-
const ve = p,
|
|
373
|
+
const t = Math.max(1, f.value.height), n = et(q.value, le.value, t, Le.value), o = e.length, c = Math.min(Math.max(0, Z.value), Math.max(0, o - 1)), B = Math.min(o, Math.max(c + 1, j.value)), d = e.map((p, mt) => {
|
|
374
|
+
const ve = p, dt = Number.isFinite(ve), el = M.value * mt + (a.minimapCompact ? 0 : M.value / 2), tl = (nl, il, ul) => Math.max(il, Math.min(ul, nl)), ll = Le.value ? tl(0, q.value, le.value) : 0, al = n(ll);
|
|
375
375
|
return {
|
|
376
376
|
x: el,
|
|
377
|
-
y:
|
|
377
|
+
y: dt ? n(ve) : NaN,
|
|
378
378
|
v: ve,
|
|
379
|
-
value: ve == null ? null :
|
|
379
|
+
value: ve == null ? null : dt ? ve : null,
|
|
380
380
|
y0: al,
|
|
381
381
|
i: mt
|
|
382
382
|
};
|
|
383
|
-
}), C = (p) => p >= 0 && p <
|
|
383
|
+
}), C = (p) => p >= 0 && p < d.length && Number.isFinite(d[p]?.value), $ = d.filter((p) => Number.isFinite(p.value) && !C(p.i - 1) && !C(p.i + 1)), ye = $.filter((p) => p.i >= c && p.i < B), O = d.slice(c, B), Qt = d.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? Mt(d) : kt(d.filter((p) => p.value != null)) : a.cutNullValues ? wt(d) : St(d.filter((p) => p.value != null)) : "", _t = O.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? Mt(O) : kt(O.filter((p) => p.value != null)) : a.cutNullValues ? wt(O) : St(O.filter((p) => p.value != null)) : "";
|
|
384
384
|
return {
|
|
385
385
|
fullSet: Qt,
|
|
386
|
-
points:
|
|
386
|
+
points: d,
|
|
387
387
|
selectionSet: _t,
|
|
388
388
|
sliced: O,
|
|
389
|
-
firstPlot:
|
|
390
|
-
lastPlot:
|
|
391
|
-
hasFull:
|
|
389
|
+
firstPlot: d[c] || null,
|
|
390
|
+
lastPlot: d[Math.max(0, B - 1)] || null,
|
|
391
|
+
hasFull: d.length >= 2,
|
|
392
392
|
hasSelection: O.length >= 2,
|
|
393
393
|
fullMarkers: $,
|
|
394
394
|
selectionMarkers: ye
|
|
@@ -409,7 +409,7 @@ const yl = {
|
|
|
409
409
|
x: M.value * e + (a.minimapCompact ? 0 : M.value / 2),
|
|
410
410
|
width: M.value * (l - e) - M.value
|
|
411
411
|
};
|
|
412
|
-
}), V =
|
|
412
|
+
}), V = h(a.minimapSelectedIndex), lt = (e) => Math.round(a.min + e), he = s({
|
|
413
413
|
get() {
|
|
414
414
|
return U.value ? Z.value : Number(ee.value);
|
|
415
415
|
},
|
|
@@ -423,7 +423,7 @@ const yl = {
|
|
|
423
423
|
ae.value && (ae.value.valueAsNumber = n), Ae(n);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
}),
|
|
426
|
+
}), fe = s({
|
|
427
427
|
get() {
|
|
428
428
|
return U.value ? Math.max(Z.value, j.value - 1) : Number(te.value);
|
|
429
429
|
},
|
|
@@ -441,7 +441,7 @@ const yl = {
|
|
|
441
441
|
function Vt(e) {
|
|
442
442
|
V.value = Ye(a.valueStart) + e;
|
|
443
443
|
}
|
|
444
|
-
const It =
|
|
444
|
+
const It = dl(Vt, 60);
|
|
445
445
|
Q(() => a.minimapSelectedIndex, (e, l) => {
|
|
446
446
|
if ([null, void 0].includes(e)) {
|
|
447
447
|
V.value = null;
|
|
@@ -454,7 +454,7 @@ const yl = {
|
|
|
454
454
|
const l = Z.value, t = j.value;
|
|
455
455
|
e >= l && e < t && !X.value && E("trapMouse", e - l);
|
|
456
456
|
}
|
|
457
|
-
const ae =
|
|
457
|
+
const ae = h(null), ne = h(null);
|
|
458
458
|
function at(e) {
|
|
459
459
|
if (typeof e == "object" && e && "target" in e) {
|
|
460
460
|
const t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
|
|
@@ -482,15 +482,15 @@ const yl = {
|
|
|
482
482
|
De(() => {
|
|
483
483
|
cancelAnimationFrame(Re), cancelAnimationFrame(Ee);
|
|
484
484
|
});
|
|
485
|
-
const ie = s(() => a.valueEnd - a.valueStart), Wt = s(() => ie.value < a.max - a.min), G =
|
|
486
|
-
let zt =
|
|
487
|
-
const Xt = s(() => (Ze.value - 48) / (a.max - a.min) * ie.value), Ht = s(() => Math.max(1, Ze.value - He - Xt.value)), Zt = s(() => Math.max(1, a.max - a.min - ie.value)), Ot = s(() => Zt.value / Ht.value), nt =
|
|
485
|
+
const ie = s(() => a.valueEnd - a.valueStart), Wt = s(() => ie.value < a.max - a.min), G = h(!1);
|
|
486
|
+
let zt = h(null);
|
|
487
|
+
const Xt = s(() => (Ze.value - 48) / (a.max - a.min) * ie.value), Ht = s(() => Math.max(1, Ze.value - He - Xt.value)), Zt = s(() => Math.max(1, a.max - a.min - ie.value)), Ot = s(() => Zt.value / Ht.value), nt = h(0), it = h(0), Ut = h(0), Kt = h(0);
|
|
488
488
|
let I = null, D = null, W = null, z = null;
|
|
489
|
-
const ut =
|
|
489
|
+
const ut = h(a.min);
|
|
490
490
|
function Te(e) {
|
|
491
491
|
if (!N.value) return a.min;
|
|
492
|
-
const l = N.value.getBoundingClientRect(), t = l.left + He / 2, n = l.right - He / 2, o = Math.max(1, n - t), B = (Math.max(t, Math.min(e, n)) - t) / o,
|
|
493
|
-
return Math.round(a.min + B *
|
|
492
|
+
const l = N.value.getBoundingClientRect(), t = l.left + He / 2, n = l.right - He / 2, o = Math.max(1, n - t), B = (Math.max(t, Math.min(e, n)) - t) / o, d = Math.max(1, a.max - a.min);
|
|
493
|
+
return Math.round(a.min + B * d);
|
|
494
494
|
}
|
|
495
495
|
const rt = async (e) => {
|
|
496
496
|
if (H.value = !0, J.value = !0, !a.enableSelectionDrag) return;
|
|
@@ -502,10 +502,10 @@ const yl = {
|
|
|
502
502
|
const o = l ? t ? t.clientX : 0 : e.clientX;
|
|
503
503
|
if (zt.value = o, nt.value = o, a.focusOnDrag && !Wt.value && N.value) {
|
|
504
504
|
ut.value = Te(o);
|
|
505
|
-
const c = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)), B = a.max - a.min,
|
|
505
|
+
const c = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)), B = a.max - a.min, d = Math.max(1, Math.round(B * c)), C = Math.floor(d / 2);
|
|
506
506
|
let $ = ut.value - C;
|
|
507
|
-
$ = Math.max(a.min, Math.min($, a.max -
|
|
508
|
-
const ye = Math.min(a.max, $ +
|
|
507
|
+
$ = Math.max(a.min, Math.min($, a.max - d));
|
|
508
|
+
const ye = Math.min(a.max, $ + d);
|
|
509
509
|
ee.value = $, te.value = ye, Me($), ke(ye), Ct(N.value, "mouseup"), await xe(), Ct(N.value, "mousedown", { clientX: o });
|
|
510
510
|
}
|
|
511
511
|
it.value = x.value, Ut.value = b.value, Kt.value = Ot.value, I = l ? "touchmove" : "mousemove", D = l ? "touchend" : "mouseup", W = l ? jt : Yt, z = l ? Gt : qt, window.addEventListener(I, W, { passive: !1 }), window.addEventListener(D, z);
|
|
@@ -538,7 +538,7 @@ const yl = {
|
|
|
538
538
|
function st() {
|
|
539
539
|
G.value = !1, I && W && window.removeEventListener(I, W), D && z && window.removeEventListener(D, z), I = D = null, W = z = null, A();
|
|
540
540
|
}
|
|
541
|
-
const X =
|
|
541
|
+
const X = h(!1), ue = h(null), re = h(null), ge = h(1), oe = h(1), J = h(!1);
|
|
542
542
|
function Ve() {
|
|
543
543
|
if (ue.value) {
|
|
544
544
|
const e = Math.round(ue.value.getBoundingClientRect().width);
|
|
@@ -551,14 +551,14 @@ const yl = {
|
|
|
551
551
|
e !== oe.value && (oe.value = e);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
ht(() => {
|
|
555
555
|
Ve(), Ie();
|
|
556
556
|
});
|
|
557
|
-
const ct =
|
|
557
|
+
const ct = h(0);
|
|
558
558
|
function vt(e) {
|
|
559
559
|
ct.value = e === "start" ? 1 : 0;
|
|
560
560
|
}
|
|
561
|
-
const se =
|
|
561
|
+
const se = h(!1), ce = h({
|
|
562
562
|
width: 0,
|
|
563
563
|
left: 0
|
|
564
564
|
});
|
|
@@ -574,7 +574,7 @@ const yl = {
|
|
|
574
574
|
width: o,
|
|
575
575
|
left: c - o / 2
|
|
576
576
|
};
|
|
577
|
-
}),
|
|
577
|
+
}), ht(() => {
|
|
578
578
|
Ve(), Ie();
|
|
579
579
|
}), Q(() => a.labelLeft, () => {
|
|
580
580
|
xe(Ve);
|
|
@@ -589,12 +589,14 @@ const yl = {
|
|
|
589
589
|
absoluteIndex: x.value,
|
|
590
590
|
seriesIndex: x.value,
|
|
591
591
|
datapoint: a.selectedSeries,
|
|
592
|
-
timeLabel: a.preciseLabels[x.value]
|
|
592
|
+
timeLabel: a.preciseLabels[x.value],
|
|
593
|
+
side: "left"
|
|
593
594
|
}), o = a.customFormat({
|
|
594
595
|
absoluteIndex: b.value - 1,
|
|
595
596
|
seriesIndex: -1,
|
|
596
597
|
datapoint: a.selectedSeries,
|
|
597
|
-
timeLabel: a.preciseLabels[b.value - 1]
|
|
598
|
+
timeLabel: a.preciseLabels[b.value - 1],
|
|
599
|
+
side: "right"
|
|
598
600
|
});
|
|
599
601
|
typeof n == "string" && typeof o == "string" && (e = n, l = o, t = !0);
|
|
600
602
|
} catch {
|
|
@@ -617,7 +619,7 @@ const yl = {
|
|
|
617
619
|
x1: M.value * e + (a.minimapCompact ? 0 : M.value / 2),
|
|
618
620
|
x2: M.value * e + (a.minimapCompact ? 0 : M.value / 2),
|
|
619
621
|
y1: 0,
|
|
620
|
-
y2: Math.max(
|
|
622
|
+
y2: Math.max(f.value.height, 0),
|
|
621
623
|
stroke: a.minimapIndicatorColor,
|
|
622
624
|
"stroke-linecap": "round",
|
|
623
625
|
"stroke-dasharray": 2,
|
|
@@ -643,7 +645,7 @@ const yl = {
|
|
|
643
645
|
}, [
|
|
644
646
|
F("div", yl, [
|
|
645
647
|
r.valueStart !== r.refreshStartPoint || r.valueEnd !== $t.value ? (u(), i("div", xl, [
|
|
646
|
-
r.useResetSlot ?
|
|
648
|
+
r.useResetSlot ? ft(e.$slots, "reset-action", {
|
|
647
649
|
key: 1,
|
|
648
650
|
reset: Ke
|
|
649
651
|
}, void 0, !0) : (u(), i("button", {
|
|
@@ -657,7 +659,7 @@ const yl = {
|
|
|
657
659
|
}),
|
|
658
660
|
onClick: Ke
|
|
659
661
|
}, [
|
|
660
|
-
sl(
|
|
662
|
+
sl(fl, {
|
|
661
663
|
name: "refresh",
|
|
662
664
|
stroke: r.textColor
|
|
663
665
|
}, null, 8, ["stroke"])
|
|
@@ -667,7 +669,7 @@ const yl = {
|
|
|
667
669
|
F("div", {
|
|
668
670
|
class: "double-range-slider",
|
|
669
671
|
ref_key: "minimapWrapper",
|
|
670
|
-
ref:
|
|
672
|
+
ref: de,
|
|
671
673
|
style: { "z-index": "0" },
|
|
672
674
|
onMouseenter: l[11] || (l[11] = (t) => J.value = !0),
|
|
673
675
|
onMouseleave: l[12] || (l[12] = (t) => J.value = !1)
|
|
@@ -676,7 +678,7 @@ const yl = {
|
|
|
676
678
|
(u(), i("svg", {
|
|
677
679
|
key: `mm-${r.minimapMerged ? "merged" : "split"}-${r.minimapCompact ? "compact" : "normal"}`,
|
|
678
680
|
xmlns: pe(ml),
|
|
679
|
-
viewBox: `0 0 ${Math.max(0,
|
|
681
|
+
viewBox: `0 0 ${Math.max(0, f.value.width)} ${Math.max(0, f.value.height)}`
|
|
680
682
|
}, [
|
|
681
683
|
F("defs", null, [
|
|
682
684
|
F("linearGradient", {
|
|
@@ -701,8 +703,8 @@ const yl = {
|
|
|
701
703
|
class: "vue-ui-zoom-minimap-frame",
|
|
702
704
|
x: 0,
|
|
703
705
|
y: 0,
|
|
704
|
-
width:
|
|
705
|
-
height:
|
|
706
|
+
width: f.value.width,
|
|
707
|
+
height: f.value.height,
|
|
706
708
|
fill: "none",
|
|
707
709
|
stroke: r.minimapFrameColor,
|
|
708
710
|
rx: 3
|
|
@@ -720,7 +722,7 @@ const yl = {
|
|
|
720
722
|
}, null, 8, Sl)) : v("", !0),
|
|
721
723
|
r.minimapMerged && !r.minimapCompact ? (u(), i("path", {
|
|
722
724
|
key: 1,
|
|
723
|
-
d: `M${M.value / 2},${Math.max(
|
|
725
|
+
d: `M${M.value / 2},${Math.max(f.value.height, 0)} ${m.value.fullSet} L${f.value.width - M.value / 2},${Math.max(f.value.height, 0)}Z`,
|
|
724
726
|
fill: `url(#${be.value})`,
|
|
725
727
|
stroke: "none",
|
|
726
728
|
style: { opacity: "0.6" }
|
|
@@ -777,7 +779,7 @@ const yl = {
|
|
|
777
779
|
x: P.value.x,
|
|
778
780
|
y: 0,
|
|
779
781
|
width: Math.max(0, P.value.width),
|
|
780
|
-
height: Math.max(
|
|
782
|
+
height: Math.max(f.value.height, 0),
|
|
781
783
|
fill: g.value,
|
|
782
784
|
rx: r.minimapSelectionRadius,
|
|
783
785
|
stroke: "none"
|
|
@@ -786,7 +788,7 @@ const yl = {
|
|
|
786
788
|
x: P.value.x,
|
|
787
789
|
y: 0,
|
|
788
790
|
width: P.value.width < 0 ? 0 : P.value.width,
|
|
789
|
-
height: Math.max(
|
|
791
|
+
height: Math.max(f.value.height, 0),
|
|
790
792
|
rx: r.minimapSelectionRadius,
|
|
791
793
|
fill: g.value,
|
|
792
794
|
style: L({ opacity: G.value || H.value ? 0 : 1 })
|
|
@@ -795,7 +797,7 @@ const yl = {
|
|
|
795
797
|
x: P.value.x,
|
|
796
798
|
y: 0,
|
|
797
799
|
width: P.value.width < 0 ? 0 : P.value.width,
|
|
798
|
-
height: Math.max(
|
|
800
|
+
height: Math.max(f.value.height, 0),
|
|
799
801
|
fill: r.minimapSelectedColor,
|
|
800
802
|
rx: r.minimapSelectionRadius,
|
|
801
803
|
style: L({ opacity: r.minimapSelectedColorOpacity })
|
|
@@ -804,7 +806,7 @@ const yl = {
|
|
|
804
806
|
key: 2,
|
|
805
807
|
class: "slicer-minimap-zero-line",
|
|
806
808
|
x1: 0,
|
|
807
|
-
x2:
|
|
809
|
+
x2: f.value.width,
|
|
808
810
|
y1: Fe.value,
|
|
809
811
|
y2: Fe.value,
|
|
810
812
|
stroke: r.minimapFrameColor,
|
|
@@ -815,7 +817,7 @@ const yl = {
|
|
|
815
817
|
m.value && m.value.sliced && m.value.sliced.length ? (u(), i(y, { key: 0 }, [
|
|
816
818
|
m.value.selectionSet ? (u(), i("path", {
|
|
817
819
|
key: 0,
|
|
818
|
-
d: `M${m.value.sliced[0].x},${Math.max(
|
|
820
|
+
d: `M${m.value.sliced[0].x},${Math.max(f.value.height, 0)} ${m.value.selectionSet} L${m.value.sliced[m.value.sliced.length - 1].x},${Math.max(f.value.height, 0)}Z`,
|
|
819
821
|
fill: `url(#${be.value})`,
|
|
820
822
|
stroke: "none",
|
|
821
823
|
style: { opacity: "1" }
|
|
@@ -893,9 +895,9 @@ const yl = {
|
|
|
893
895
|
]))), 128))
|
|
894
896
|
]))
|
|
895
897
|
], 64)),
|
|
896
|
-
e.$slots.slotMap ?
|
|
897
|
-
width: Math.max(0,
|
|
898
|
-
height: Math.max(0,
|
|
898
|
+
e.$slots.slotMap ? ft(e.$slots, "slotMap", yt(xt({ key: 4 }, {
|
|
899
|
+
width: Math.max(0, f.value.width),
|
|
900
|
+
height: Math.max(0, f.value.height),
|
|
899
901
|
zeroY: Fe.value,
|
|
900
902
|
unitW: Math.max(0, M.value)
|
|
901
903
|
})), void 0, !0) : v("", !0),
|
|
@@ -905,7 +907,7 @@ const yl = {
|
|
|
905
907
|
x: P.value.x - 8,
|
|
906
908
|
y: 0,
|
|
907
909
|
width: 8,
|
|
908
|
-
height:
|
|
910
|
+
height: f.value.height,
|
|
909
911
|
fill: g.value,
|
|
910
912
|
stroke: r.textColor,
|
|
911
913
|
rx: 3
|
|
@@ -916,7 +918,7 @@ const yl = {
|
|
|
916
918
|
x: P.value.x + P.value.width,
|
|
917
919
|
y: 0,
|
|
918
920
|
width: 8,
|
|
919
|
-
height:
|
|
921
|
+
height: f.value.height,
|
|
920
922
|
fill: g.value,
|
|
921
923
|
stroke: r.textColor,
|
|
922
924
|
rx: 3
|
|
@@ -1031,7 +1033,7 @@ const yl = {
|
|
|
1031
1033
|
(u(!0), i(y, null, S(Ue.value, (t, n) => (u(), i("rect", {
|
|
1032
1034
|
x: M.value * n - (r.minimapCompact ? M.value / 2 : 0),
|
|
1033
1035
|
y: 0,
|
|
1034
|
-
height: Math.max(
|
|
1036
|
+
height: Math.max(f.value.height, 0),
|
|
1035
1037
|
width: M.value < 0 ? 0 : M.value,
|
|
1036
1038
|
fill: "transparent",
|
|
1037
1039
|
style: L([{ "pointer-events": "all !important" }, { cursor: t >= Z.value && t < j.value && r.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
|
|
@@ -1071,8 +1073,8 @@ const yl = {
|
|
|
1071
1073
|
}),
|
|
1072
1074
|
min: r.min,
|
|
1073
1075
|
max: r.minimapCompact && k.value ? Math.max(0, Y.value - 1) : r.max,
|
|
1074
|
-
"onUpdate:modelValue": l[5] || (l[5] = (t) =>
|
|
1075
|
-
onInput: l[6] || (l[6] = (t) =>
|
|
1076
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => he.value = t),
|
|
1077
|
+
onInput: l[6] || (l[6] = (t) => he.value = t.target.valueAsNumber),
|
|
1076
1078
|
onChange: A,
|
|
1077
1079
|
onKeyup: pt(A, ["enter"]),
|
|
1078
1080
|
onBlur: A,
|
|
@@ -1081,7 +1083,7 @@ const yl = {
|
|
|
1081
1083
|
}, null, 42, ia)), [
|
|
1082
1084
|
[
|
|
1083
1085
|
bt,
|
|
1084
|
-
|
|
1086
|
+
he.value,
|
|
1085
1087
|
void 0,
|
|
1086
1088
|
{ number: !0 }
|
|
1087
1089
|
]
|
|
@@ -1099,8 +1101,8 @@ const yl = {
|
|
|
1099
1101
|
}),
|
|
1100
1102
|
min: r.min,
|
|
1101
1103
|
max: r.minimapCompact && k.value ? Math.max(0, Y.value - 1) : r.max,
|
|
1102
|
-
"onUpdate:modelValue": l[8] || (l[8] = (t) =>
|
|
1103
|
-
onInput: l[9] || (l[9] = (t) =>
|
|
1104
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => fe.value = t),
|
|
1105
|
+
onInput: l[9] || (l[9] = (t) => fe.value = t.target.valueAsNumber),
|
|
1104
1106
|
onChange: A,
|
|
1105
1107
|
onKeyup: pt(A, ["enter"]),
|
|
1106
1108
|
onBlur: A,
|
|
@@ -1109,7 +1111,7 @@ const yl = {
|
|
|
1109
1111
|
}, null, 42, ua)), [
|
|
1110
1112
|
[
|
|
1111
1113
|
bt,
|
|
1112
|
-
|
|
1114
|
+
fe.value,
|
|
1113
1115
|
void 0,
|
|
1114
1116
|
{ number: !0 }
|
|
1115
1117
|
]
|
|
@@ -1177,7 +1179,7 @@ const yl = {
|
|
|
1177
1179
|
], 544)
|
|
1178
1180
|
], 36));
|
|
1179
1181
|
}
|
|
1180
|
-
},
|
|
1182
|
+
}, da = /* @__PURE__ */ gl(ra, [["__scopeId", "data-v-4abe6ae6"]]);
|
|
1181
1183
|
export {
|
|
1182
|
-
|
|
1184
|
+
da as S
|
|
1183
1185
|
};
|