evui 3.8.2 → 3.9.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.
- package/dist/index.js +22 -6
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2655,7 +2655,13 @@ function si(e, { min: t, max: n, step: i }) {
|
|
|
2655
2655
|
return c;
|
|
2656
2656
|
}
|
|
2657
2657
|
function Th() {
|
|
2658
|
-
const { props: e, emit: t } = Ie(), n = se(e.modelValue), i = se(e.modelValue), s = (c) =>
|
|
2658
|
+
const { props: e, emit: t } = Ie(), n = se(e.modelValue), i = se(e.modelValue), s = (c) => {
|
|
2659
|
+
if (e.precision && (c || c === 0)) {
|
|
2660
|
+
const d = Number(c).toFixed(e.precision);
|
|
2661
|
+
return e.trimTrailingZero ? String(parseFloat(d)) : d;
|
|
2662
|
+
}
|
|
2663
|
+
return c;
|
|
2664
|
+
}, o = (c) => {
|
|
2659
2665
|
let d = c;
|
|
2660
2666
|
!c && c !== 0 ? d = e.stepStrictly ? i.value : null : isNaN(c) ? d = i.value : e.stepStrictly ? (e.min === -1 / 0 && (e.min = 0), d = si(c, {
|
|
2661
2667
|
min: e.min,
|
|
@@ -2752,6 +2758,10 @@ const Oh = {
|
|
|
2752
2758
|
type: Number,
|
|
2753
2759
|
default: 0,
|
|
2754
2760
|
validator: (e) => e >= 0 && e <= 100 && e === parseInt(e, 10)
|
|
2761
|
+
},
|
|
2762
|
+
trimTrailingZero: {
|
|
2763
|
+
type: Boolean,
|
|
2764
|
+
default: !1
|
|
2755
2765
|
}
|
|
2756
2766
|
},
|
|
2757
2767
|
emits: ["update:modelValue", "focus", "blur", "input", "change"],
|
|
@@ -17434,7 +17444,7 @@ const KS = {
|
|
|
17434
17444
|
var d, u, h, g, m, f, y, v;
|
|
17435
17445
|
const o = ((u = (d = this.tooltipDOM) == null ? void 0 : d.style) == null ? void 0 : u.display) === "block", l = this.tooltipBodyDOM || ((h = this.tooltipDOM) == null ? void 0 : h.querySelector(this.options.tooltip.htmlScrollTarget));
|
|
17436
17446
|
if (o && l) {
|
|
17437
|
-
const { scrollTop: p, scrollHeight: w, clientHeight: I } = l, M = p <= 0, T = p + I >= w, _ = s.deltaY < 0, b = s.deltaY > 0;
|
|
17447
|
+
const { scrollTop: p, scrollHeight: w, clientHeight: I } = l, M = p <= 0, T = Math.ceil(p) + I >= w, _ = s.deltaY < 0, b = s.deltaY > 0;
|
|
17438
17448
|
if (!(M && _ || T && b)) return;
|
|
17439
17449
|
}
|
|
17440
17450
|
s.preventDefault();
|
|
@@ -17794,9 +17804,15 @@ const oC = {
|
|
|
17794
17804
|
const { dragSelection: o, type: l } = this.options;
|
|
17795
17805
|
o.use && (l === "scatter" || l === "line" || l === "heatMap") && (this.removeSelectionArea(), this.dragStart(s, l));
|
|
17796
17806
|
}, this.onWheel = (s) => {
|
|
17797
|
-
var
|
|
17798
|
-
|
|
17799
|
-
|
|
17807
|
+
var m, f, y;
|
|
17808
|
+
if (!(((f = (m = this.tooltipDOM) == null ? void 0 : m.style) == null ? void 0 : f.display) === "block")) return;
|
|
17809
|
+
const l = ((y = this.tooltipDOM) == null ? void 0 : y.querySelector(this.options.tooltip.htmlScrollTarget)) || this.tooltipBodyDOM;
|
|
17810
|
+
if (!l || l.scrollHeight <= l.clientHeight) {
|
|
17811
|
+
this.hideTooltipDOM();
|
|
17812
|
+
return;
|
|
17813
|
+
}
|
|
17814
|
+
const { scrollTop: a, scrollHeight: r, clientHeight: c } = l, d = a <= 0, u = Math.ceil(a) + c >= r, h = s.deltaY < 0, g = s.deltaY > 0;
|
|
17815
|
+
s.preventDefault(), !(d && h) && !(u && g) && (l.scrollTop += s.deltaY);
|
|
17800
17816
|
}, (t = (e = this.options) == null ? void 0 : e.tooltip) != null && t.useScrollbar && this.overlayCanvas.addEventListener("wheel", this.onWheel, { passive: !1 }), (i = (n = this.options) == null ? void 0 : n.tooltip) != null && i.throttledMove && (this.onMouseMove = sC(this.onMouseMove, 30)), this.overlayCanvas.addEventListener("mousemove", this.onMouseMove), this.overlayCanvas.addEventListener("mouseleave", this.onMouseLeave), this.overlayCanvas.addEventListener("dblclick", this.onDblClick), this.overlayCanvas.addEventListener("click", this.onClick), this.overlayCanvas.addEventListener("mousedown", this.onMouseDown), this.dragTouchSelectionEvent = (s) => this.dragTouchSelectionDestroy(s), window.addEventListener("click", this.dragTouchSelectionEvent);
|
|
17801
17817
|
},
|
|
17802
17818
|
/**
|
|
@@ -23552,7 +23568,7 @@ const ws = /* @__PURE__ */ we(p1, [["render", S1]]);
|
|
|
23552
23568
|
ws.install = (e) => {
|
|
23553
23569
|
e.component(ws.name, ws);
|
|
23554
23570
|
};
|
|
23555
|
-
const C1 = "3.
|
|
23571
|
+
const C1 = "3.9.0", w1 = [
|
|
23556
23572
|
qi,
|
|
23557
23573
|
Ki,
|
|
23558
23574
|
ai,
|