@milaboratories/uikit 2.2.29 → 2.2.30
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/CHANGELOG.md +6 -0
- package/dist/pl-uikit.js +135 -133
- package/dist/pl-uikit.umd.cjs +3 -3
- package/dist/src/components/PlDropdownLine/PlDropdownLine.vue.d.ts +2 -2
- package/dist/src/components/PlDropdownLine/ResizableInput.vue.d.ts +0 -3
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/PlDropdownLine/PlDropdownLine.vue +4 -2
- package/src/components/PlDropdownLine/ResizableInput.vue +3 -5
package/dist/pl-uikit.js
CHANGED
|
@@ -1531,9 +1531,9 @@ const Gr = /* @__PURE__ */ N({
|
|
|
1531
1531
|
if (!Y)
|
|
1532
1532
|
return;
|
|
1533
1533
|
_.code === "Enter" && V((x = A.find((L) => L.index === S)) == null ? void 0 : x.value);
|
|
1534
|
-
const
|
|
1534
|
+
const R = A.findIndex((L) => L.index === S) ?? -1, U = _.code === "ArrowDown" ? 1 : _.code === "ArrowUp" ? -1 : 0, O = Math.abs(R + U + Y) % Y;
|
|
1535
1535
|
c.activeIndex = C.value[O].index ?? -1;
|
|
1536
|
-
},
|
|
1536
|
+
}, P = (_) => {
|
|
1537
1537
|
var S, A;
|
|
1538
1538
|
const h = _.relatedTarget;
|
|
1539
1539
|
!((S = i.value) != null && S.contains(h)) && !((A = l.value) != null && A.contains(h)) && (c.open = !1);
|
|
@@ -1542,7 +1542,7 @@ const Gr = /* @__PURE__ */ N({
|
|
|
1542
1542
|
ref_key: "root",
|
|
1543
1543
|
ref: i,
|
|
1544
1544
|
class: E([{ disabled: _.disabled || D.value, loading: D.value }, "pl-btn-split d-flex"]),
|
|
1545
|
-
onFocusout:
|
|
1545
|
+
onFocusout: P,
|
|
1546
1546
|
onKeydown: B
|
|
1547
1547
|
}, [
|
|
1548
1548
|
v("div", {
|
|
@@ -2243,42 +2243,42 @@ const jl = /* @__PURE__ */ N({
|
|
|
2243
2243
|
get() {
|
|
2244
2244
|
return l.cached ? l.cached.value : t.value === void 0 || t.value === null ? "" : String(t.value);
|
|
2245
2245
|
},
|
|
2246
|
-
set(
|
|
2246
|
+
set(P) {
|
|
2247
2247
|
if (l.cached = void 0, s.parse)
|
|
2248
2248
|
try {
|
|
2249
|
-
t.value = s.parse(
|
|
2249
|
+
t.value = s.parse(P);
|
|
2250
2250
|
} catch (_) {
|
|
2251
2251
|
l.cached = {
|
|
2252
2252
|
error: _ instanceof Error ? _.message : String(_),
|
|
2253
|
-
value:
|
|
2253
|
+
value: P
|
|
2254
2254
|
};
|
|
2255
2255
|
}
|
|
2256
2256
|
else
|
|
2257
|
-
t.value =
|
|
2257
|
+
t.value = P;
|
|
2258
2258
|
}
|
|
2259
2259
|
}), d = g(() => s.type && s.type === "password" ? i.value ? "text" : s.type : "text"), c = g(() => i.value ? "view-show" : "view-hide"), m = () => {
|
|
2260
2260
|
s.clearable && (l.cached = void 0, t.value = s.clearable === !0 ? "" : s.clearable());
|
|
2261
2261
|
}, k = co(a, s.rules || []), w = g(() => s.clearable ? s.clearable === !0 ? t.value === "" : t.value === s.clearable() : t.value === ""), C = g(() => !w.value), D = g(() => {
|
|
2262
|
-
const
|
|
2263
|
-
return s.error &&
|
|
2262
|
+
const P = [];
|
|
2263
|
+
return s.error && P.push(s.error), l.cached && P.push(l.cached.error), k.value.isValid || P.push(...k.value.errors), P;
|
|
2264
2264
|
}), I = g(() => D.value.length > 0), V = g(() => s.clearable && C.value && s.type !== "password" && !s.disabled), q = () => i.value = !i.value, B = () => {
|
|
2265
2265
|
l.cached = void 0;
|
|
2266
2266
|
};
|
|
2267
|
-
return Ke(o), (
|
|
2267
|
+
return Ke(o), (P, _) => (u(), p("div", Kl, [
|
|
2268
2268
|
v("div", {
|
|
2269
2269
|
ref_key: "rootRef",
|
|
2270
2270
|
ref: o,
|
|
2271
2271
|
class: E(["pl-text-field", {
|
|
2272
2272
|
error: I.value,
|
|
2273
|
-
disabled:
|
|
2274
|
-
dashed:
|
|
2273
|
+
disabled: P.disabled,
|
|
2274
|
+
dashed: P.dashed,
|
|
2275
2275
|
nonEmpty: C.value
|
|
2276
2276
|
}])
|
|
2277
2277
|
}, [
|
|
2278
|
-
|
|
2279
|
-
|
|
2278
|
+
P.label ? (u(), p("label", Yl, [
|
|
2279
|
+
P.required ? (u(), p("i", Gl)) : $("", !0),
|
|
2280
2280
|
_[1] || (_[1] = f()),
|
|
2281
|
-
v("span", null, M(
|
|
2281
|
+
v("span", null, M(P.label), 1),
|
|
2282
2282
|
_[2] || (_[2] = f()),
|
|
2283
2283
|
y(e).tooltip ? (u(), Z(y(ke), {
|
|
2284
2284
|
key: 1,
|
|
@@ -2286,20 +2286,20 @@ const jl = /* @__PURE__ */ N({
|
|
|
2286
2286
|
position: "top"
|
|
2287
2287
|
}, {
|
|
2288
2288
|
tooltip: Q(() => [
|
|
2289
|
-
W(
|
|
2289
|
+
W(P.$slots, "tooltip")
|
|
2290
2290
|
]),
|
|
2291
2291
|
_: 3
|
|
2292
2292
|
})) : $("", !0)
|
|
2293
2293
|
], 512)) : $("", !0),
|
|
2294
2294
|
_[5] || (_[5] = f()),
|
|
2295
|
-
|
|
2295
|
+
P.prefix ? (u(), p("div", Xl, M(P.prefix), 1)) : $("", !0),
|
|
2296
2296
|
_[6] || (_[6] = f()),
|
|
2297
2297
|
be(v("input", {
|
|
2298
2298
|
ref_key: "inputRef",
|
|
2299
2299
|
ref: r,
|
|
2300
2300
|
"onUpdate:modelValue": _[0] || (_[0] = (h) => a.value = h),
|
|
2301
|
-
disabled:
|
|
2302
|
-
placeholder:
|
|
2301
|
+
disabled: P.disabled,
|
|
2302
|
+
placeholder: P.placeholder || "...",
|
|
2303
2303
|
type: d.value,
|
|
2304
2304
|
spellcheck: "false",
|
|
2305
2305
|
onFocusout: B
|
|
@@ -2315,20 +2315,20 @@ const jl = /* @__PURE__ */ N({
|
|
|
2315
2315
|
onClick: m
|
|
2316
2316
|
})) : $("", !0),
|
|
2317
2317
|
_[3] || (_[3] = f()),
|
|
2318
|
-
|
|
2318
|
+
P.type === "password" ? (u(), Z(y(De), {
|
|
2319
2319
|
key: 1,
|
|
2320
2320
|
name: c.value,
|
|
2321
2321
|
style: { cursor: "pointer" },
|
|
2322
2322
|
onClick: q
|
|
2323
2323
|
}, null, 8, ["name"])) : $("", !0),
|
|
2324
2324
|
_[4] || (_[4] = f()),
|
|
2325
|
-
W(
|
|
2325
|
+
W(P.$slots, "append")
|
|
2326
2326
|
]),
|
|
2327
2327
|
_[8] || (_[8] = f()),
|
|
2328
2328
|
J(qe, { class: "pl-text-field__contour" })
|
|
2329
2329
|
], 2),
|
|
2330
2330
|
_[9] || (_[9] = f()),
|
|
2331
|
-
I.value ? (u(), p("div", ei, M(D.value.join(" ")), 1)) :
|
|
2331
|
+
I.value ? (u(), p("div", ei, M(D.value.join(" ")), 1)) : P.helper ? (u(), p("div", ti, M(P.helper), 1)) : $("", !0)
|
|
2332
2332
|
]));
|
|
2333
2333
|
}
|
|
2334
2334
|
}), oi = /* @__PURE__ */ N({
|
|
@@ -2682,13 +2682,13 @@ const vo = /* @__PURE__ */ N({
|
|
|
2682
2682
|
const x = a.search.toLowerCase();
|
|
2683
2683
|
return b.label.toLowerCase().includes(x) || b.description && b.description.toLowerCase().includes(x) ? !0 : typeof b.value == "string" ? b.value.toLowerCase().includes(x) : b.value === a.search;
|
|
2684
2684
|
}) : O;
|
|
2685
|
-
}),
|
|
2685
|
+
}), P = g(() => k.value ? void 0 : "0"), _ = (O) => {
|
|
2686
2686
|
var b;
|
|
2687
2687
|
t("update:modelValue", O), a.search = "", a.open = !1, (b = r == null ? void 0 : r.value) == null || b.focus();
|
|
2688
2688
|
}, h = () => t("update:modelValue", void 0), S = () => {
|
|
2689
2689
|
var O;
|
|
2690
2690
|
return (O = i.value) == null ? void 0 : O.focus();
|
|
2691
|
-
}, A = () => a.open = !a.open, Y = () => a.open = !0,
|
|
2691
|
+
}, A = () => a.open = !a.open, Y = () => a.open = !0, R = (O) => {
|
|
2692
2692
|
var x, L, j;
|
|
2693
2693
|
const b = O.relatedTarget;
|
|
2694
2694
|
!((x = r.value) != null && x.contains(b)) && !((j = (L = l.value) == null ? void 0 : L.listRef) != null && j.contains(b)) && (a.search = "", a.open = !1);
|
|
@@ -2724,10 +2724,10 @@ const vo = /* @__PURE__ */ N({
|
|
|
2724
2724
|
v("div", {
|
|
2725
2725
|
ref_key: "rootRef",
|
|
2726
2726
|
ref: r,
|
|
2727
|
-
tabindex:
|
|
2727
|
+
tabindex: P.value,
|
|
2728
2728
|
class: E(["pl-dropdown", { open: a.open, error: O.error, disabled: k.value }]),
|
|
2729
2729
|
onKeydown: U,
|
|
2730
|
-
onFocusout:
|
|
2730
|
+
onFocusout: R
|
|
2731
2731
|
}, [
|
|
2732
2732
|
v("div", Vi, [
|
|
2733
2733
|
v("div", Si, [
|
|
@@ -2883,23 +2883,21 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
2883
2883
|
props: {
|
|
2884
2884
|
modelValue: {},
|
|
2885
2885
|
placeholder: {},
|
|
2886
|
-
value: {},
|
|
2887
2886
|
disabled: { type: Boolean },
|
|
2888
2887
|
maxWidth: {},
|
|
2889
2888
|
width: {}
|
|
2890
2889
|
},
|
|
2891
|
-
emits: ["
|
|
2890
|
+
emits: ["update:modelValue"],
|
|
2892
2891
|
setup(n, { emit: e }) {
|
|
2893
2892
|
const t = n, s = e, o = g(() => {
|
|
2894
2893
|
var l;
|
|
2895
|
-
return t.placeholder ? t.placeholder : (l = t.modelValue
|
|
2894
|
+
return t.placeholder ? t.placeholder : (l = t.modelValue) == null ? void 0 : l.replace('"', "");
|
|
2896
2895
|
}), r = g(() => {
|
|
2897
2896
|
const l = {};
|
|
2898
2897
|
return t.width && (l.width = t.width), t.maxWidth && (l.maxWidth = t.maxWidth), l;
|
|
2899
2898
|
});
|
|
2900
2899
|
function i(l) {
|
|
2901
|
-
|
|
2902
|
-
s("update:modelValue", a);
|
|
2900
|
+
s("update:modelValue", l.target.value);
|
|
2903
2901
|
}
|
|
2904
2902
|
return (l, a) => (u(), p("div", Fi, [
|
|
2905
2903
|
v("span", {
|
|
@@ -2959,30 +2957,34 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
2959
2957
|
activeOption: -1,
|
|
2960
2958
|
optionsHeight: 0
|
|
2961
2959
|
}), r = F(), i = F(), l = g(() => {
|
|
2962
|
-
const
|
|
2963
|
-
return o.isOpen &&
|
|
2960
|
+
const R = [];
|
|
2961
|
+
return o.isOpen && R.push("open"), s.disabled && R.push("disabled"), R.join(" ");
|
|
2964
2962
|
}), a = F(""), d = Li(It(s, "options"), a), c = g(() => !!(s.clearable && o.isOpen && s.modelValue && m.value)), m = g(() => {
|
|
2965
2963
|
if (s.modelValue) {
|
|
2966
|
-
const
|
|
2967
|
-
if (
|
|
2968
|
-
const U = Qe(s.options)[
|
|
2964
|
+
const R = C();
|
|
2965
|
+
if (R !== -1) {
|
|
2966
|
+
const U = Qe(s.options)[R];
|
|
2969
2967
|
return typeof U.label == "object" ? U.label.title : U.label;
|
|
2970
2968
|
}
|
|
2971
2969
|
}
|
|
2972
2970
|
return "";
|
|
2973
|
-
}), k = F(m.value)
|
|
2971
|
+
}), k = F(m.value);
|
|
2972
|
+
ie(m, (R) => {
|
|
2973
|
+
k.value = R;
|
|
2974
|
+
});
|
|
2975
|
+
const w = g(() => o.isOpen && a.value && a.value.length >= m.value.length - 1 ? a.value : m.value ?? "...");
|
|
2974
2976
|
Sn(r, () => {
|
|
2975
2977
|
s.mode === "list" && (o.isOpen = !1);
|
|
2976
2978
|
}), ie(
|
|
2977
2979
|
() => k.value,
|
|
2978
|
-
(
|
|
2979
|
-
m.value !==
|
|
2980
|
+
(R) => {
|
|
2981
|
+
m.value !== R ? a.value = R : a.value = "";
|
|
2980
2982
|
}
|
|
2981
2983
|
), ie(
|
|
2982
2984
|
() => o.isOpen,
|
|
2983
|
-
(
|
|
2985
|
+
(R) => {
|
|
2984
2986
|
var U;
|
|
2985
|
-
|
|
2987
|
+
R && r.value && ((U = r.value.querySelector("input")) == null || U.focus(), Ne(() => S()));
|
|
2986
2988
|
}
|
|
2987
2989
|
), ie(
|
|
2988
2990
|
() => s.modelValue,
|
|
@@ -2990,13 +2992,13 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
2990
2992
|
{ immediate: !0 }
|
|
2991
2993
|
);
|
|
2992
2994
|
function C() {
|
|
2993
|
-
return s.options.findIndex((
|
|
2995
|
+
return s.options.findIndex((R) => xe(R.value, s.modelValue));
|
|
2994
2996
|
}
|
|
2995
2997
|
function D() {
|
|
2996
2998
|
o.activeOption = Ft(
|
|
2997
|
-
d.value.findIndex((
|
|
2998
|
-
(
|
|
2999
|
-
)
|
|
2999
|
+
d.value.findIndex((R) => xe(R.value, s.modelValue)),
|
|
3000
|
+
(R) => R < 0 ? 0 : R
|
|
3001
|
+
);
|
|
3000
3002
|
}
|
|
3001
3003
|
function I() {
|
|
3002
3004
|
a.value = "";
|
|
@@ -3009,34 +3011,34 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3009
3011
|
function q() {
|
|
3010
3012
|
s.mode === "list" && (o.isOpen = !1);
|
|
3011
3013
|
}
|
|
3012
|
-
function B(
|
|
3013
|
-
|
|
3014
|
+
function B(R) {
|
|
3015
|
+
R && (t("update:modelValue", R.value), q(), I());
|
|
3014
3016
|
}
|
|
3015
|
-
function R
|
|
3016
|
-
return xe(
|
|
3017
|
+
function P(R) {
|
|
3018
|
+
return xe(R.value, s.modelValue);
|
|
3017
3019
|
}
|
|
3018
|
-
const _ = (
|
|
3020
|
+
const _ = (R) => {
|
|
3019
3021
|
var O, b;
|
|
3020
|
-
const U =
|
|
3022
|
+
const U = R.relatedTarget;
|
|
3021
3023
|
!((O = r.value) != null && O.contains(U)) && !((b = i.value) != null && b.contains(U)) && (a.value = "", o.isOpen = !1);
|
|
3022
3024
|
};
|
|
3023
|
-
function h(
|
|
3025
|
+
function h(R) {
|
|
3024
3026
|
const { activeOption: U } = o;
|
|
3025
|
-
if (!o.isOpen &&
|
|
3027
|
+
if (!o.isOpen && R.code === "Enter") {
|
|
3026
3028
|
o.isOpen = !0;
|
|
3027
3029
|
return;
|
|
3028
3030
|
}
|
|
3029
3031
|
const { length: O } = d.value;
|
|
3030
3032
|
if (!O)
|
|
3031
3033
|
return;
|
|
3032
|
-
["ArrowDown", "ArrowUp", "Enter"].includes(
|
|
3033
|
-
const b =
|
|
3034
|
+
["ArrowDown", "ArrowUp", "Enter"].includes(R.code) && R.preventDefault(), R.code === "Enter" && B(d.value[U]);
|
|
3035
|
+
const b = R.code === "ArrowDown" ? 1 : R.code === "ArrowUp" ? -1 : 0;
|
|
3034
3036
|
o.activeOption = Math.abs(U + b + O) % O, requestAnimationFrame(S);
|
|
3035
3037
|
}
|
|
3036
3038
|
function S() {
|
|
3037
|
-
const
|
|
3038
|
-
|
|
3039
|
-
s.mode === "list" ? En(
|
|
3039
|
+
const R = i.value;
|
|
3040
|
+
R && ve(R.querySelector(".hovered-item"), (U) => {
|
|
3041
|
+
s.mode === "list" ? En(R, U) : U.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
3040
3042
|
});
|
|
3041
3043
|
}
|
|
3042
3044
|
function A() {
|
|
@@ -3046,15 +3048,15 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3046
3048
|
top: "0px",
|
|
3047
3049
|
left: "0px"
|
|
3048
3050
|
});
|
|
3049
|
-
return ie(i, (
|
|
3050
|
-
if (
|
|
3051
|
-
const U =
|
|
3051
|
+
return ie(i, (R) => {
|
|
3052
|
+
if (R) {
|
|
3053
|
+
const U = R.getBoundingClientRect();
|
|
3052
3054
|
o.optionsHeight = U.height, window.dispatchEvent(new CustomEvent("adjust"));
|
|
3053
3055
|
}
|
|
3054
|
-
}), en(r, (
|
|
3055
|
-
const O =
|
|
3056
|
-
O + o.optionsHeight >
|
|
3057
|
-
}), (
|
|
3056
|
+
}), en(r, (R) => {
|
|
3057
|
+
const O = R.top + R.height + 2;
|
|
3058
|
+
O + o.optionsHeight > R.clientHeight ? Y.top = R.top - o.optionsHeight - 2 + "px" : Y.top = O + "px", Y.left = R.left + "px";
|
|
3059
|
+
}), (R, U) => (u(), p("div", {
|
|
3058
3060
|
ref_key: "container",
|
|
3059
3061
|
ref: r,
|
|
3060
3062
|
tabindex: "0",
|
|
@@ -3099,18 +3101,18 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3099
3101
|
class: "pl-line-dropdown__items",
|
|
3100
3102
|
onFocusout: _
|
|
3101
3103
|
}, [
|
|
3102
|
-
(u(!0), p(ae, null, ce(y(d), (O, b) => W(
|
|
3104
|
+
(u(!0), p(ae, null, ce(y(d), (O, b) => W(R.$slots, "item", {
|
|
3103
3105
|
key: b,
|
|
3104
3106
|
item: O,
|
|
3105
3107
|
textItem: "text",
|
|
3106
|
-
isSelected:
|
|
3108
|
+
isSelected: P(O),
|
|
3107
3109
|
isHovered: o.activeOption == b,
|
|
3108
3110
|
onClick: se((x) => B(O), ["stop"])
|
|
3109
3111
|
}, () => [
|
|
3110
3112
|
J(Lt, {
|
|
3111
3113
|
option: O,
|
|
3112
3114
|
"text-item": "text",
|
|
3113
|
-
"is-selected":
|
|
3115
|
+
"is-selected": P(O),
|
|
3114
3116
|
"is-hovered": o.activeOption == b,
|
|
3115
3117
|
size: "medium",
|
|
3116
3118
|
onClick: se((x) => B(O), ["stop"])
|
|
@@ -3129,16 +3131,16 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3129
3131
|
class: "pl-line-dropdown__items-tabs",
|
|
3130
3132
|
onFocusout: _
|
|
3131
3133
|
}, [
|
|
3132
|
-
(u(!0), p(ae, null, ce(y(d), (O, b) => W(
|
|
3134
|
+
(u(!0), p(ae, null, ce(y(d), (O, b) => W(R.$slots, "item", {
|
|
3133
3135
|
key: b,
|
|
3134
3136
|
item: O,
|
|
3135
|
-
isSelected:
|
|
3137
|
+
isSelected: P(O),
|
|
3136
3138
|
isHovered: o.activeOption == b,
|
|
3137
3139
|
onClick: se((x) => B(O), ["stop"])
|
|
3138
3140
|
}, () => [
|
|
3139
3141
|
J(Hi, {
|
|
3140
3142
|
option: O,
|
|
3141
|
-
"is-selected":
|
|
3143
|
+
"is-selected": P(O),
|
|
3142
3144
|
"is-hovered": o.activeOption == b,
|
|
3143
3145
|
onClick: se((x) => B(O), ["stop"])
|
|
3144
3146
|
}, null, 8, ["option", "is-selected", "is-hovered", "onClick"])
|
|
@@ -3217,13 +3219,13 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3217
3219
|
const L = a.search.toLowerCase();
|
|
3218
3220
|
return x.label.toLowerCase().includes(L) || x.description && x.description.toLowerCase().includes(L) ? !0 : typeof x.value == "string" ? x.value.toLowerCase().includes(L) : x.value === a.search;
|
|
3219
3221
|
}) : b;
|
|
3220
|
-
}),
|
|
3222
|
+
}), P = g(() => k.value ? void 0 : "0"), _ = (b) => {
|
|
3221
3223
|
var x;
|
|
3222
3224
|
t("update:modelValue", b), a.search = "", a.open = !1, (x = r == null ? void 0 : r.value) == null || x.focus();
|
|
3223
3225
|
}, h = () => t("update:modelValue", void 0), S = () => {
|
|
3224
3226
|
var b;
|
|
3225
3227
|
return (b = l.value) == null ? void 0 : b.focus();
|
|
3226
|
-
}, A = () => a.open = !a.open, Y = () => a.open = !0,
|
|
3228
|
+
}, A = () => a.open = !a.open, Y = () => a.open = !0, R = (b) => {
|
|
3227
3229
|
var x;
|
|
3228
3230
|
(x = r == null ? void 0 : r.value) != null && x.contains(b.relatedTarget) || (a.search = "", a.open = !1);
|
|
3229
3231
|
}, U = () => {
|
|
@@ -3262,10 +3264,10 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3262
3264
|
v("div", {
|
|
3263
3265
|
ref_key: "root",
|
|
3264
3266
|
ref: r,
|
|
3265
|
-
tabindex:
|
|
3267
|
+
tabindex: P.value,
|
|
3266
3268
|
class: E(["ui-dropdown", { open: a.open, error: b.error, disabled: k.value }]),
|
|
3267
3269
|
onKeydown: O,
|
|
3268
|
-
onFocusout:
|
|
3270
|
+
onFocusout: R
|
|
3269
3271
|
}, [
|
|
3270
3272
|
v("div", Xi, [
|
|
3271
3273
|
v("div", Ji, [
|
|
@@ -3640,10 +3642,10 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3640
3642
|
}, V = (h) => s(y(c).filter((S) => !xe(S, h))), q = () => {
|
|
3641
3643
|
var h;
|
|
3642
3644
|
return (h = l.value) == null ? void 0 : h.focus();
|
|
3643
|
-
}, B = () => d.open = !d.open,
|
|
3644
|
-
var A, Y,
|
|
3645
|
+
}, B = () => d.open = !d.open, P = (h) => {
|
|
3646
|
+
var A, Y, R, U;
|
|
3645
3647
|
const S = h.relatedTarget;
|
|
3646
|
-
console.log(">>>> overlay.value?.$el", (A = a.value) == null ? void 0 : A.$el), !((Y = i.value) != null && Y.contains(S)) && !((U = (
|
|
3648
|
+
console.log(">>>> overlay.value?.$el", (A = a.value) == null ? void 0 : A.$el), !((Y = i.value) != null && Y.contains(S)) && !((U = (R = a.value) == null ? void 0 : R.listRef) != null && U.contains(S)) && (d.search = "", d.open = !1);
|
|
3647
3649
|
}, _ = (h) => {
|
|
3648
3650
|
var O;
|
|
3649
3651
|
const { open: S, activeOption: A } = d;
|
|
@@ -3652,12 +3654,12 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3652
3654
|
return;
|
|
3653
3655
|
}
|
|
3654
3656
|
h.code === "Escape" && (d.open = !1, (O = i.value) == null || O.focus());
|
|
3655
|
-
const Y = y(w), { length:
|
|
3656
|
-
if (!
|
|
3657
|
+
const Y = y(w), { length: R } = Y;
|
|
3658
|
+
if (!R)
|
|
3657
3659
|
return;
|
|
3658
3660
|
["ArrowDown", "ArrowUp", "Enter"].includes(h.code) && h.preventDefault(), h.code === "Enter" && I(Y[A].value);
|
|
3659
3661
|
const U = h.code === "ArrowDown" ? 1 : h.code === "ArrowUp" ? -1 : 0;
|
|
3660
|
-
d.activeOption = Math.abs(A + U +
|
|
3662
|
+
d.activeOption = Math.abs(A + U + R) % R, requestAnimationFrame(() => {
|
|
3661
3663
|
var b;
|
|
3662
3664
|
return (b = a.value) == null ? void 0 : b.scrollIntoActive();
|
|
3663
3665
|
});
|
|
@@ -3676,7 +3678,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3676
3678
|
tabindex: C.value,
|
|
3677
3679
|
class: E(["pl-multi-dropdown", { open: d.open, error: h.error, disabled: h.disabled }]),
|
|
3678
3680
|
onKeydown: _,
|
|
3679
|
-
onFocusout:
|
|
3681
|
+
onFocusout: P
|
|
3680
3682
|
}, [
|
|
3681
3683
|
v("div", wa, [
|
|
3682
3684
|
v("div", ka, [
|
|
@@ -3704,8 +3706,8 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3704
3706
|
key: Y,
|
|
3705
3707
|
closeable: "",
|
|
3706
3708
|
small: "",
|
|
3707
|
-
onClick: S[2] || (S[2] = se((
|
|
3708
|
-
onClose: (
|
|
3709
|
+
onClick: S[2] || (S[2] = se((R) => d.open = !0, ["stop"])),
|
|
3710
|
+
onClose: (R) => V(A.value)
|
|
3709
3711
|
}, {
|
|
3710
3712
|
default: Q(() => [
|
|
3711
3713
|
f(M(A.label || A.value), 1)
|
|
@@ -3749,7 +3751,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3749
3751
|
class: "pl-multi-dropdown__options",
|
|
3750
3752
|
gap: 3,
|
|
3751
3753
|
tabindex: "-1",
|
|
3752
|
-
onFocusout:
|
|
3754
|
+
onFocusout: P
|
|
3753
3755
|
}, {
|
|
3754
3756
|
default: Q(() => [
|
|
3755
3757
|
v("div", Sa, [
|
|
@@ -3757,7 +3759,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3757
3759
|
key: Y,
|
|
3758
3760
|
closeable: "",
|
|
3759
3761
|
small: "",
|
|
3760
|
-
onClose: (
|
|
3762
|
+
onClose: (R) => V(A.value)
|
|
3761
3763
|
}, {
|
|
3762
3764
|
default: Q(() => [
|
|
3763
3765
|
f(M(A.label || A.value), 1)
|
|
@@ -3774,7 +3776,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3774
3776
|
"is-hovered": d.activeOption == Y,
|
|
3775
3777
|
size: "medium",
|
|
3776
3778
|
"use-checkbox": "",
|
|
3777
|
-
onClick: se((
|
|
3779
|
+
onClick: se((R) => I(A.value), ["stop"])
|
|
3778
3780
|
}, null, 8, ["option", "is-selected", "is-hovered", "onClick"]))), 128)),
|
|
3779
3781
|
S[9] || (S[9] = f()),
|
|
3780
3782
|
w.value.length ? $("", !0) : (u(), p("div", Ta, "Nothing found"))
|
|
@@ -4630,19 +4632,19 @@ const eu = ["title", "onClick"], tu = {
|
|
|
4630
4632
|
}, I = (_, h) => {
|
|
4631
4633
|
const { shiftKey: S } = _, A = t(_), { lastSelected: Y } = o;
|
|
4632
4634
|
if (_.preventDefault(), h.canBeSelected) {
|
|
4633
|
-
if (s.multi || o.items.forEach((
|
|
4635
|
+
if (s.multi || o.items.forEach((R) => R.selected = !1), h.selected = !h.selected, !s.multi)
|
|
4634
4636
|
return;
|
|
4635
|
-
!A && !S && o.items.forEach((
|
|
4636
|
-
|
|
4637
|
-
}), S && Y !== void 0 && o.items.forEach((
|
|
4638
|
-
Ho(
|
|
4637
|
+
!A && !S && o.items.forEach((R) => {
|
|
4638
|
+
R.id !== h.id && (R.selected = !1);
|
|
4639
|
+
}), S && Y !== void 0 && o.items.forEach((R) => {
|
|
4640
|
+
Ho(R.id, Y, h.id) && (R.selected = !0);
|
|
4639
4641
|
}), h.selected && (o.lastSelected = h.id);
|
|
4640
4642
|
}
|
|
4641
4643
|
}, V = (_) => {
|
|
4642
4644
|
_ && !s.multi || o.items.filter((h) => h.canBeSelected).forEach((h) => {
|
|
4643
4645
|
h.selected = _;
|
|
4644
4646
|
});
|
|
4645
|
-
}, q = () => V(!0), B = () => V(!1),
|
|
4647
|
+
}, q = () => V(!0), B = () => V(!1), P = () => {
|
|
4646
4648
|
if (r(), B(), !window.platforma) {
|
|
4647
4649
|
console.warn("platforma API is not found");
|
|
4648
4650
|
return;
|
|
@@ -4667,7 +4669,7 @@ const eu = ["title", "onClick"], tu = {
|
|
|
4667
4669
|
}), ie(
|
|
4668
4670
|
() => s.modelValue,
|
|
4669
4671
|
(_) => {
|
|
4670
|
-
_ ?
|
|
4672
|
+
_ ? P() : Object.assign(o, Hn());
|
|
4671
4673
|
},
|
|
4672
4674
|
{ immediate: !0 }
|
|
4673
4675
|
), fe(document, "keydown", (_) => {
|
|
@@ -4678,7 +4680,7 @@ const eu = ["title", "onClick"], tu = {
|
|
|
4678
4680
|
}), e({
|
|
4679
4681
|
isReady: w,
|
|
4680
4682
|
getFilesToImport: C
|
|
4681
|
-
}), he(
|
|
4683
|
+
}), he(P), (_, h) => (u(), p("div", {
|
|
4682
4684
|
class: E(y(pe).remote),
|
|
4683
4685
|
onClick: se(B, ["stop"])
|
|
4684
4686
|
}, [
|
|
@@ -7906,21 +7908,21 @@ const _c = {
|
|
|
7906
7908
|
const t = de({
|
|
7907
7909
|
fileDialogOpen: !1,
|
|
7908
7910
|
error: ""
|
|
7909
|
-
}), s = _e(), o = e, r = n, i = (B,
|
|
7911
|
+
}), s = _e(), o = e, r = n, i = (B, P) => {
|
|
7910
7912
|
if (B)
|
|
7911
7913
|
try {
|
|
7912
|
-
return
|
|
7914
|
+
return P(B);
|
|
7913
7915
|
} catch (_) {
|
|
7914
7916
|
return t.error = _ instanceof Error ? _.message : String(_), B;
|
|
7915
7917
|
}
|
|
7916
7918
|
}, l = g(() => i(r.modelValue, gc)), a = g(() => i(r.modelValue, Bo)), d = g(() => r.progress && !r.progress.done), c = g(() => r.progress && r.progress.done), m = g(() => t.error ?? r.error), k = g(() => !!m.value), w = g(() => {
|
|
7917
|
-
const { status: B, done:
|
|
7918
|
-
return !B || !B.bytesTotal ? "" : B.bytesProcessed && !
|
|
7919
|
+
const { status: B, done: P } = r.progress ?? {};
|
|
7920
|
+
return !B || !B.bytesTotal ? "" : B.bytesProcessed && !P ? rn(B.bytesProcessed, {}) + " / " + rn(B.bytesTotal, {}) : rn(B.bytesTotal, {});
|
|
7919
7921
|
}), C = g(() => {
|
|
7920
|
-
var
|
|
7922
|
+
var P;
|
|
7921
7923
|
const { progress: B } = r;
|
|
7922
7924
|
return B ? {
|
|
7923
|
-
width: B.done ? "100%" : Math.round((((
|
|
7925
|
+
width: B.done ? "100%" : Math.round((((P = B.status) == null ? void 0 : P.progress) ?? 0) * 100) + "%"
|
|
7924
7926
|
} : {};
|
|
7925
7927
|
}), D = () => {
|
|
7926
7928
|
t.fileDialogOpen = !0;
|
|
@@ -7935,7 +7937,7 @@ const _c = {
|
|
|
7935
7937
|
{ immediate: !0 }
|
|
7936
7938
|
);
|
|
7937
7939
|
const q = F();
|
|
7938
|
-
return r.cellStyle || Ke(q), (B,
|
|
7940
|
+
return r.cellStyle || Ke(q), (B, P) => (u(), p(ae, null, [
|
|
7939
7941
|
v("div", {
|
|
7940
7942
|
class: E([{ "pl-file-input__cell-style": !!B.cellStyle, "has-file": !!l.value }, "pl-file-input__envelope"])
|
|
7941
7943
|
}, [
|
|
@@ -7951,12 +7953,12 @@ const _c = {
|
|
|
7951
7953
|
class: "pl-file-input__progress",
|
|
7952
7954
|
style: oe(C.value)
|
|
7953
7955
|
}, null, 4),
|
|
7954
|
-
|
|
7956
|
+
P[3] || (P[3] = f()),
|
|
7955
7957
|
!B.cellStyle && B.label ? (u(), p("label", _c, [
|
|
7956
7958
|
B.required ? (u(), p("i", bc)) : $("", !0),
|
|
7957
|
-
|
|
7959
|
+
P[1] || (P[1] = f()),
|
|
7958
7960
|
v("span", null, M(B.label), 1),
|
|
7959
|
-
|
|
7961
|
+
P[2] || (P[2] = f()),
|
|
7960
7962
|
y(s).tooltip || a.value ? (u(), Z(y(ke), {
|
|
7961
7963
|
key: 1,
|
|
7962
7964
|
class: "info",
|
|
@@ -7970,7 +7972,7 @@ const _c = {
|
|
|
7970
7972
|
_: 3
|
|
7971
7973
|
})) : $("", !0)
|
|
7972
7974
|
], 512)) : $("", !0),
|
|
7973
|
-
|
|
7975
|
+
P[4] || (P[4] = f()),
|
|
7974
7976
|
k.value ? (u(), Z(y(De), {
|
|
7975
7977
|
key: 1,
|
|
7976
7978
|
name: "restart"
|
|
@@ -7984,29 +7986,29 @@ const _c = {
|
|
|
7984
7986
|
key: 4,
|
|
7985
7987
|
name: "paper-clip"
|
|
7986
7988
|
})),
|
|
7987
|
-
|
|
7989
|
+
P[5] || (P[5] = f()),
|
|
7988
7990
|
v("div", {
|
|
7989
7991
|
"data-placeholder": B.placeholder ?? "Choose file",
|
|
7990
7992
|
class: "pl-file-input__filename"
|
|
7991
7993
|
}, M(l.value), 9, wc),
|
|
7992
|
-
|
|
7994
|
+
P[6] || (P[6] = f()),
|
|
7993
7995
|
w.value ? (u(), p("div", kc, M(w.value), 1)) : $("", !0),
|
|
7994
|
-
|
|
7996
|
+
P[7] || (P[7] = f()),
|
|
7995
7997
|
B.modelValue ? (u(), Z(y(De), {
|
|
7996
7998
|
key: 6,
|
|
7997
7999
|
name: "close",
|
|
7998
8000
|
onClick: se(V, ["stop"])
|
|
7999
8001
|
})) : $("", !0),
|
|
8000
|
-
|
|
8002
|
+
P[8] || (P[8] = f()),
|
|
8001
8003
|
J(qe, { class: "pl-file-input__contour" })
|
|
8002
8004
|
], 34),
|
|
8003
|
-
|
|
8005
|
+
P[9] || (P[9] = f()),
|
|
8004
8006
|
k.value ? (u(), p("div", xc, M(m.value), 1)) : B.helper ? (u(), p("div", $c, M(B.helper), 1)) : $("", !0)
|
|
8005
8007
|
], 2),
|
|
8006
|
-
|
|
8008
|
+
P[10] || (P[10] = f()),
|
|
8007
8009
|
J(y(uu), {
|
|
8008
8010
|
modelValue: t.fileDialogOpen,
|
|
8009
|
-
"onUpdate:modelValue":
|
|
8011
|
+
"onUpdate:modelValue": P[0] || (P[0] = (_) => t.fileDialogOpen = _),
|
|
8010
8012
|
extensions: B.extensions,
|
|
8011
8013
|
title: B.fileDialogTitle,
|
|
8012
8014
|
"close-on-outside-click": B.fileDialogCloseOnOutsideClick,
|
|
@@ -8144,7 +8146,7 @@ const Bn = (n) => g(() => {
|
|
|
8144
8146
|
function B(_) {
|
|
8145
8147
|
q(+_.target.value);
|
|
8146
8148
|
}
|
|
8147
|
-
function
|
|
8149
|
+
function P(_) {
|
|
8148
8150
|
["ArrowDown", "ArrowUp", "ArrowRight", "ArrowLeft", "Enter"].includes(_.code) && _.preventDefault();
|
|
8149
8151
|
const h = _.code === "ArrowUp" || _.code === "ArrowRight" ? o.step * 1 : _.code === "ArrowDown" || _.code === "ArrowLeft" ? o.step * -1 : 0;
|
|
8150
8152
|
q(o.modelValue + h);
|
|
@@ -8202,7 +8204,7 @@ const Bn = (n) => g(() => {
|
|
|
8202
8204
|
tabindex: "0",
|
|
8203
8205
|
class: "ui-slider__thumb ui-slider__thumb-active",
|
|
8204
8206
|
style: oe(C.value),
|
|
8205
|
-
onKeydown:
|
|
8207
|
+
onKeydown: P
|
|
8206
8208
|
}, h[3] || (h[3] = [
|
|
8207
8209
|
v("div", { class: "ui-slider__thumb-focused-contour" }, null, -1)
|
|
8208
8210
|
]), 36)
|
|
@@ -8334,11 +8336,11 @@ function iv(n, e) {
|
|
|
8334
8336
|
const S = w[h];
|
|
8335
8337
|
if (S === t.item.el)
|
|
8336
8338
|
continue;
|
|
8337
|
-
const A = q[h],
|
|
8338
|
-
S.style.transform = `translateY(${
|
|
8339
|
+
const A = q[h], R = D[h] - A;
|
|
8340
|
+
S.style.transform = `translateY(${R}px)`, B.push(S);
|
|
8339
8341
|
}
|
|
8340
|
-
const
|
|
8341
|
-
t.item.y = t.item.y +
|
|
8342
|
+
const P = V - I;
|
|
8343
|
+
t.item.y = t.item.y + P, t.item.dy = t.item.dy - P, t.item.orderChanged = !0, t.item.el.style.setProperty("transform", `translateY(${t.item.dy}px)`), B.forEach((h) => h.classList.remove(Fe.animate)), requestAnimationFrame(function() {
|
|
8342
8344
|
B.forEach((h) => {
|
|
8343
8345
|
h.classList.add(Fe.animate), h.style.transform = "", h.addEventListener("transitionend", () => {
|
|
8344
8346
|
h.classList.remove(Fe.animate);
|
|
@@ -8353,11 +8355,11 @@ function iv(n, e) {
|
|
|
8353
8355
|
m(t.item, w.y);
|
|
8354
8356
|
const D = gt(t.item.el), I = jc(t.item.el), V = l(C), q = a(C);
|
|
8355
8357
|
V.forEach((B) => {
|
|
8356
|
-
const
|
|
8357
|
-
D + o <
|
|
8358
|
+
const P = qn(B);
|
|
8359
|
+
D + o < P && k(d(B, C));
|
|
8358
8360
|
}), q.forEach((B) => {
|
|
8359
|
-
const
|
|
8360
|
-
I - o >
|
|
8361
|
+
const P = qn(B);
|
|
8362
|
+
I - o > P && k(c(B, C));
|
|
8361
8363
|
});
|
|
8362
8364
|
}), fe(window, "mouseup", () => {
|
|
8363
8365
|
if (!t.item)
|
|
@@ -8502,9 +8504,9 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8502
8504
|
return [...o.modelValue].forEach((re) => {
|
|
8503
8505
|
re > o.max && ne.push(`Max model value must be lower than max props ${o.max}.`), re < o.min && ne.push("Min model value must be greater than max props.");
|
|
8504
8506
|
}), ne.length > 0 ? ne.join(" ") : o.error;
|
|
8505
|
-
}), V = g(() => (w.value - o.min) / c.value), q = g(() => (C.value - o.min) / c.value), B = g(() => (D.value - o.min) / c.value),
|
|
8506
|
-
right:
|
|
8507
|
-
left: 100 -
|
|
8507
|
+
}), V = g(() => (w.value - o.min) / c.value), q = g(() => (C.value - o.min) / c.value), B = g(() => (D.value - o.min) / c.value), P = g(() => R()), _ = g(() => ({
|
|
8508
|
+
right: P.value[0] + "%",
|
|
8509
|
+
left: 100 - P.value[2] + "%"
|
|
8508
8510
|
})), h = g(() => ({
|
|
8509
8511
|
right: Math.ceil((1 - V.value) * 100) + "%"
|
|
8510
8512
|
})), S = g(() => ({
|
|
@@ -8535,7 +8537,7 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8535
8537
|
const re = U(ge((j ?? 0) + ne, o.min, o.max));
|
|
8536
8538
|
L.dataset.percent = `${re}${o.measure}`, b();
|
|
8537
8539
|
}
|
|
8538
|
-
function
|
|
8540
|
+
function R() {
|
|
8539
8541
|
const L = Math.ceil((1 - V.value) * 100), j = Math.ceil((1 - q.value) * 100), ne = Math.ceil((1 - B.value) * 100);
|
|
8540
8542
|
return [L, j, ne].sort((re, Ye) => re - Ye);
|
|
8541
8543
|
}
|
|
@@ -8749,13 +8751,13 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8749
8751
|
}), i = F(), l = F(), a = F(), d = F(o.modelValue), c = F(o.modelValue[0]), m = F(o.modelValue[1]), k = g(() => o), w = Bn(k), C = g(() => [c.value, m.value].sort((b, x) => b - x).join("-")), D = g(() => o.max - o.min), I = g(() => ge((o.modelValue[0] ?? 0) + r.deltaValue1, o.min, o.max)), V = g(() => ge((o.modelValue[1] ?? 0) + r.deltaValue2, o.min, o.max)), q = g(() => {
|
|
8750
8752
|
const b = o.modelValue;
|
|
8751
8753
|
return Array.isArray(b) && b.length === 2 && b.every((L) => Number.isFinite(L)) ? o.error : "Expected model [number, number]";
|
|
8752
|
-
}), B = g(() => (I.value - o.min) / D.value),
|
|
8754
|
+
}), B = g(() => (I.value - o.min) / D.value), P = g(() => (V.value - o.min) / D.value), _ = g(() => Y()), h = g(() => ({
|
|
8753
8755
|
right: _.value[0] + "%",
|
|
8754
8756
|
left: 100 - _.value[1] + "%"
|
|
8755
8757
|
})), S = g(() => ({
|
|
8756
8758
|
right: Math.ceil((1 - B.value) * 100) + "%"
|
|
8757
8759
|
})), A = g(() => ({
|
|
8758
|
-
right: Math.ceil((1 -
|
|
8760
|
+
right: Math.ceil((1 - P.value) * 100) + "%"
|
|
8759
8761
|
}));
|
|
8760
8762
|
ie(
|
|
8761
8763
|
() => o.modelValue,
|
|
@@ -8767,20 +8769,20 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8767
8769
|
var x;
|
|
8768
8770
|
ve((x = y(i)) == null ? void 0 : x.getBoundingClientRect(), (L) => {
|
|
8769
8771
|
const { dx: j } = b;
|
|
8770
|
-
r.deltaValue1 = j / L.width * D.value, c.value =
|
|
8772
|
+
r.deltaValue1 = j / L.width * D.value, c.value = R(ge((o.modelValue[0] ?? 0) + r.deltaValue1, o.min, o.max)), d.value = [c.value, m.value].sort((ne, re) => ne - re), b.stop && (U([R(I.value), R(V.value)]), r.deltaValue1 = 0);
|
|
8771
8773
|
});
|
|
8772
8774
|
}), Ge(a, (b) => {
|
|
8773
8775
|
var x;
|
|
8774
8776
|
ve((x = y(i)) == null ? void 0 : x.getBoundingClientRect(), (L) => {
|
|
8775
8777
|
const { dx: j } = b;
|
|
8776
|
-
r.deltaValue2 = j / L.width * D.value, m.value =
|
|
8778
|
+
r.deltaValue2 = j / L.width * D.value, m.value = R(ge((o.modelValue[1] ?? 0) + r.deltaValue2, o.min, o.max)), d.value = [c.value, m.value].sort((ne, re) => ne - re), b.stop && (U([R(I.value), R(V.value)]), r.deltaValue2 = 0);
|
|
8777
8779
|
});
|
|
8778
8780
|
});
|
|
8779
8781
|
function Y() {
|
|
8780
|
-
const b = Math.ceil((1 - B.value) * 100), x = Math.ceil((1 -
|
|
8782
|
+
const b = Math.ceil((1 - B.value) * 100), x = Math.ceil((1 - P.value) * 100);
|
|
8781
8783
|
return [b, x].sort((L, j) => L - j);
|
|
8782
8784
|
}
|
|
8783
|
-
function
|
|
8785
|
+
function R(b) {
|
|
8784
8786
|
const x = ge(b, o.min, o.max);
|
|
8785
8787
|
return Math.round((x + Number.EPSILON) * (1 / o.step)) / (1 / o.step);
|
|
8786
8788
|
}
|